]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
added GetHpalette[Of] macros
[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-msw use MS-Windows"
72ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
74ac_help="$ac_help
75 --with-mgl use SciTech MGL"
76ac_help="$ac_help
77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
78ac_help="$ac_help
79 --with-libpng use libpng (PNG image format)"
80ac_help="$ac_help
81 --with-libjpeg use libjpeg (JPEG file format)"
82ac_help="$ac_help
83 --with-libtiff use libtiff (TIFF file format)"
84ac_help="$ac_help
85 --with-freetype use freetype (font rasterizer)"
86ac_help="$ac_help
87 --with-opengl use OpenGL (or Mesa)"
88ac_help="$ac_help
89 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
90ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
92ac_help="$ac_help
93 --with-zlib use zlib for LZW compression"
94ac_help="$ac_help
95 --with-odbc use the IODBC and wxODBC classes"
96ac_help="$ac_help
97 --enable-shared create shared library code"
98ac_help="$ac_help
99 --enable-soname set the DT_SONAME field in ELF shared libraries"
100ac_help="$ac_help
101 --enable-optimise create optimised code"
102ac_help="$ac_help
103 --enable-debug same as debug_flag and debug_info"
104ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
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 C++ exceptions handling"
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 wxWindows 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWindows 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-textbuf use wxTextBuffer class"
172ac_help="$ac_help
173 --enable-textfile use wxTextFile class"
174ac_help="$ac_help
175 --enable-fontmap use font encodings conversion classes"
176ac_help="$ac_help
177 --enable-unicode compile wxString with Unicode support"
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-mimetype 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-logdialog use wxLogDialog"
224ac_help="$ac_help
225 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
226ac_help="$ac_help
227 --enable-prologio use Prolog IO library"
228ac_help="$ac_help
229 --enable-resources use wxWindows resources"
230ac_help="$ac_help
231 --enable-xresources use X resources for save (default for gtk+)"
232ac_help="$ac_help
233 --enable-clipboard use wxClipboard classes"
234ac_help="$ac_help
235 --enable-dnd use Drag'n'Drop classes"
236ac_help="$ac_help
237 --enable-metafile use win32 metafiles"
238ac_help="$ac_help
239 --enable-treelayout use wxTreeLayout classes"
240ac_help="$ac_help
241 --enable-controls use all usual controls"
242ac_help="$ac_help
243 --enable-accel use accelerators"
244ac_help="$ac_help
245 --enable-button use wxButton class"
246ac_help="$ac_help
247 --enable-bmpbutton use wxBitmapButton class"
248ac_help="$ac_help
249 --enable-calendar use wxCalendarCtrl class"
250ac_help="$ac_help
251 --enable-caret use wxCaret class"
252ac_help="$ac_help
253 --enable-checkbox use wxCheckBox class"
254ac_help="$ac_help
255 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
256ac_help="$ac_help
257 --enable-choice use wxChoice class"
258ac_help="$ac_help
259 --enable-combobox use wxComboBox classes"
260ac_help="$ac_help
261 --enable-gauge use wxGauge class"
262ac_help="$ac_help
263 --enable-grid use wxGrid class"
264ac_help="$ac_help
265 --enable-newgrid use new wxGrid class"
266ac_help="$ac_help
267 --enable-imaglist use wxImageList class"
268ac_help="$ac_help
269 --enable-listbox use wxListBox class"
270ac_help="$ac_help
271 --enable-listctrl use wxListCtrl class"
272ac_help="$ac_help
273 --enable-notebook use wxNotebook class"
274ac_help="$ac_help
275 --enable-propsheet use wxPropertySheet class"
276ac_help="$ac_help
277 --enable-radiobox use wxRadioBox class"
278ac_help="$ac_help
279 --enable-radiobtn use wxRadioButton class"
280ac_help="$ac_help
281 --enable-sash use wxSashWindow class"
282ac_help="$ac_help
283 --enable-scrollbar use wxScrollBar class and scrollable windows"
284ac_help="$ac_help
285 --enable-slider use wxSlider class"
286ac_help="$ac_help
287 --enable-spinbtn use wxSpinButton class"
288ac_help="$ac_help
289 --enable-spinctrl use wxSpinCtrl class"
290ac_help="$ac_help
291 --enable-splitter use wxSplitterWindow class"
292ac_help="$ac_help
293 --enable-statbmp use wxStaticBitmap class"
294ac_help="$ac_help
295 --enable-statbox use wxStaticBox class"
296ac_help="$ac_help
297 --enable-statline use wxStaticLine class"
298ac_help="$ac_help
299 --enable-stattext use wxStaticText class"
300ac_help="$ac_help
301 --enable-statusbar use wxStatusBar class"
302ac_help="$ac_help
303 --enable-tabdialog use wxTabControl class"
304ac_help="$ac_help
305 --enable-textctrl use wxTextCtrl class"
306ac_help="$ac_help
307 --enable-togglebtn use wxToggleButton class"
308ac_help="$ac_help
309 --enable-toolbar use wxToolBar class"
310ac_help="$ac_help
311 --enable-tbarnative use native wxToolBar class"
312ac_help="$ac_help
313 --enable-tbarsmpl use wxToolBarSimple class"
314ac_help="$ac_help
315 --enable-treectrl use wxTreeCtrl class"
316ac_help="$ac_help
317 --enable-popupwin use wxPopUpWindow class"
318ac_help="$ac_help
319 --enable-commondlg use all common dialogs"
320ac_help="$ac_help
321 --enable-choicedlg use wxChoiceDialog"
322ac_help="$ac_help
323 --enable-coldlg use wxColourDialog"
324ac_help="$ac_help
325 --enable-filedlg use wxFileDialog"
326ac_help="$ac_help
327 --enable-finddlg use wxFindReplaceDialog"
328ac_help="$ac_help
329 --enable-fontdlg use wxFontDialog"
330ac_help="$ac_help
331 --enable-dirdlg use wxDirDialog"
332ac_help="$ac_help
333 --enable-msgdlg use wxMessageDialog"
334ac_help="$ac_help
335 --enable-numberdlg use wxNumberEntryDialog"
336ac_help="$ac_help
337 --enable-splash use wxSplashScreen"
338ac_help="$ac_help
339 --enable-textdlg use wxTextDialog"
340ac_help="$ac_help
341 --enable-tipdlg use startup tips"
342ac_help="$ac_help
343 --enable-progressdlg use wxProgressDialog"
344ac_help="$ac_help
345 --enable-wizarddlg use wxWizard"
346ac_help="$ac_help
347 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
348ac_help="$ac_help
349 --enable-miniframe use wxMiniFrame class"
350ac_help="$ac_help
351 --enable-tooltips use wxToolTip class"
352ac_help="$ac_help
353 --enable-splines use spline drawing code"
354ac_help="$ac_help
355 --enable-validators use wxValidator and derived classes"
356ac_help="$ac_help
357 --enable-busyinfo use wxBusyInfo"
358ac_help="$ac_help
359 --enable-joystick use wxJoystick (Linux only)"
360ac_help="$ac_help
361 --enable-metafiles use wxMetaFile (Windows only)"
362ac_help="$ac_help
363 --enable-dragimage use wxDragImage"
364ac_help="$ac_help
365 --enable-palette use wxPalette class"
366ac_help="$ac_help
367 --enable-image use wxImage class"
368ac_help="$ac_help
369 --enable-gif use gif images (GIF file format)"
370ac_help="$ac_help
371 --enable-pcx use pcx images (PCX file format)"
372ac_help="$ac_help
373 --enable-pnm use pnm images (PNM file format)"
374ac_help="$ac_help
375 --enable-xpm use xpm images (XPM file format)"
376ac_help="$ac_help
377 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
378ac_help="$ac_help
379 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
380ac_help="$ac_help
381 --disable-gtktest Do not try to compile and run a test GTK program"
382ac_help="$ac_help
383 --with-x use the X Window System"
384
385# Initialize some variables set by options.
386# The variables have the same names as the options, with
387# dashes changed to underlines.
388build=NONE
389cache_file=./config.cache
390exec_prefix=NONE
391host=NONE
392no_create=
393nonopt=NONE
394no_recursion=
395prefix=NONE
396program_prefix=NONE
397program_suffix=NONE
398program_transform_name=s,x,x,
399silent=
400site=
401srcdir=
402target=NONE
403verbose=
404x_includes=NONE
405x_libraries=NONE
406bindir='${exec_prefix}/bin'
407sbindir='${exec_prefix}/sbin'
408libexecdir='${exec_prefix}/libexec'
409datadir='${prefix}/share'
410sysconfdir='${prefix}/etc'
411sharedstatedir='${prefix}/com'
412localstatedir='${prefix}/var'
413libdir='${exec_prefix}/lib'
414includedir='${prefix}/include'
415oldincludedir='/usr/include'
416infodir='${prefix}/info'
417mandir='${prefix}/man'
418
419# Initialize some other variables.
420subdirs=
421MFLAGS= MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423# Maximum number of lines to put in a shell here document.
424ac_max_here_lines=12
425
426ac_prev=
427for ac_option
428do
429
430 # If the previous option needs an argument, assign it.
431 if test -n "$ac_prev"; then
432 eval "$ac_prev=\$ac_option"
433 ac_prev=
434 continue
435 fi
436
437 case "$ac_option" in
438 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
439 *) ac_optarg= ;;
440 esac
441
442 # Accept the important Cygnus configure options, so we can diagnose typos.
443
444 case "$ac_option" in
445
446 -bindir | --bindir | --bindi | --bind | --bin | --bi)
447 ac_prev=bindir ;;
448 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
449 bindir="$ac_optarg" ;;
450
451 -build | --build | --buil | --bui | --bu)
452 ac_prev=build ;;
453 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
454 build="$ac_optarg" ;;
455
456 -cache-file | --cache-file | --cache-fil | --cache-fi \
457 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
458 ac_prev=cache_file ;;
459 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
460 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
461 cache_file="$ac_optarg" ;;
462
463 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
464 ac_prev=datadir ;;
465 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
466 | --da=*)
467 datadir="$ac_optarg" ;;
468
469 -disable-* | --disable-*)
470 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
471 # Reject names that are not valid shell variable names.
472 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
473 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
474 fi
475 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
476 eval "enable_${ac_feature}=no" ;;
477
478 -enable-* | --enable-*)
479 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
480 # Reject names that are not valid shell variable names.
481 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
483 fi
484 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
485 case "$ac_option" in
486 *=*) ;;
487 *) ac_optarg=yes ;;
488 esac
489 eval "enable_${ac_feature}='$ac_optarg'" ;;
490
491 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
492 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
493 | --exec | --exe | --ex)
494 ac_prev=exec_prefix ;;
495 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
496 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
497 | --exec=* | --exe=* | --ex=*)
498 exec_prefix="$ac_optarg" ;;
499
500 -gas | --gas | --ga | --g)
501 # Obsolete; use --with-gas.
502 with_gas=yes ;;
503
504 -help | --help | --hel | --he)
505 # Omit some internal or obsolete options to make the list less imposing.
506 # This message is too long to be a string in the A/UX 3.1 sh.
507 cat << EOF
508Usage: configure [options] [host]
509Options: [defaults in brackets after descriptions]
510Configuration:
511 --cache-file=FILE cache test results in FILE
512 --help print this message
513 --no-create do not create output files
514 --quiet, --silent do not print \`checking...' messages
515 --version print the version of autoconf that created configure
516Directory and file names:
517 --prefix=PREFIX install architecture-independent files in PREFIX
518 [$ac_default_prefix]
519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
520 [same as prefix]
521 --bindir=DIR user executables in DIR [EPREFIX/bin]
522 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
523 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
524 --datadir=DIR read-only architecture-independent data in DIR
525 [PREFIX/share]
526 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
527 --sharedstatedir=DIR modifiable architecture-independent data in DIR
528 [PREFIX/com]
529 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
530 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
531 --includedir=DIR C header files in DIR [PREFIX/include]
532 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
533 --infodir=DIR info documentation in DIR [PREFIX/info]
534 --mandir=DIR man documentation in DIR [PREFIX/man]
535 --srcdir=DIR find the sources in DIR [configure dir or ..]
536 --program-prefix=PREFIX prepend PREFIX to installed program names
537 --program-suffix=SUFFIX append SUFFIX to installed program names
538 --program-transform-name=PROGRAM
539 run sed PROGRAM on installed program names
540EOF
541 cat << EOF
542Host type:
543 --build=BUILD configure for building on BUILD [BUILD=HOST]
544 --host=HOST configure for HOST [guessed]
545 --target=TARGET configure for TARGET [TARGET=HOST]
546Features and packages:
547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
551 --x-includes=DIR X include files are in DIR
552 --x-libraries=DIR X library files are in DIR
553EOF
554 if test -n "$ac_help"; then
555 echo "--enable and --with options recognized:$ac_help"
556 fi
557 exit 0 ;;
558
559 -host | --host | --hos | --ho)
560 ac_prev=host ;;
561 -host=* | --host=* | --hos=* | --ho=*)
562 host="$ac_optarg" ;;
563
564 -includedir | --includedir | --includedi | --included | --include \
565 | --includ | --inclu | --incl | --inc)
566 ac_prev=includedir ;;
567 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
568 | --includ=* | --inclu=* | --incl=* | --inc=*)
569 includedir="$ac_optarg" ;;
570
571 -infodir | --infodir | --infodi | --infod | --info | --inf)
572 ac_prev=infodir ;;
573 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
574 infodir="$ac_optarg" ;;
575
576 -libdir | --libdir | --libdi | --libd)
577 ac_prev=libdir ;;
578 -libdir=* | --libdir=* | --libdi=* | --libd=*)
579 libdir="$ac_optarg" ;;
580
581 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
582 | --libexe | --libex | --libe)
583 ac_prev=libexecdir ;;
584 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
585 | --libexe=* | --libex=* | --libe=*)
586 libexecdir="$ac_optarg" ;;
587
588 -localstatedir | --localstatedir | --localstatedi | --localstated \
589 | --localstate | --localstat | --localsta | --localst \
590 | --locals | --local | --loca | --loc | --lo)
591 ac_prev=localstatedir ;;
592 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
593 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
594 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
595 localstatedir="$ac_optarg" ;;
596
597 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
598 ac_prev=mandir ;;
599 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
600 mandir="$ac_optarg" ;;
601
602 -nfp | --nfp | --nf)
603 # Obsolete; use --without-fp.
604 with_fp=no ;;
605
606 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
607 | --no-cr | --no-c)
608 no_create=yes ;;
609
610 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
611 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
612 no_recursion=yes ;;
613
614 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
615 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
616 | --oldin | --oldi | --old | --ol | --o)
617 ac_prev=oldincludedir ;;
618 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
619 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
620 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
621 oldincludedir="$ac_optarg" ;;
622
623 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
624 ac_prev=prefix ;;
625 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
626 prefix="$ac_optarg" ;;
627
628 -program-prefix | --program-prefix | --program-prefi | --program-pref \
629 | --program-pre | --program-pr | --program-p)
630 ac_prev=program_prefix ;;
631 -program-prefix=* | --program-prefix=* | --program-prefi=* \
632 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
633 program_prefix="$ac_optarg" ;;
634
635 -program-suffix | --program-suffix | --program-suffi | --program-suff \
636 | --program-suf | --program-su | --program-s)
637 ac_prev=program_suffix ;;
638 -program-suffix=* | --program-suffix=* | --program-suffi=* \
639 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
640 program_suffix="$ac_optarg" ;;
641
642 -program-transform-name | --program-transform-name \
643 | --program-transform-nam | --program-transform-na \
644 | --program-transform-n | --program-transform- \
645 | --program-transform | --program-transfor \
646 | --program-transfo | --program-transf \
647 | --program-trans | --program-tran \
648 | --progr-tra | --program-tr | --program-t)
649 ac_prev=program_transform_name ;;
650 -program-transform-name=* | --program-transform-name=* \
651 | --program-transform-nam=* | --program-transform-na=* \
652 | --program-transform-n=* | --program-transform-=* \
653 | --program-transform=* | --program-transfor=* \
654 | --program-transfo=* | --program-transf=* \
655 | --program-trans=* | --program-tran=* \
656 | --progr-tra=* | --program-tr=* | --program-t=*)
657 program_transform_name="$ac_optarg" ;;
658
659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
660 | -silent | --silent | --silen | --sile | --sil)
661 silent=yes ;;
662
663 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
664 ac_prev=sbindir ;;
665 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
666 | --sbi=* | --sb=*)
667 sbindir="$ac_optarg" ;;
668
669 -sharedstatedir | --sharedstatedir | --sharedstatedi \
670 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
671 | --sharedst | --shareds | --shared | --share | --shar \
672 | --sha | --sh)
673 ac_prev=sharedstatedir ;;
674 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
675 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
676 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
677 | --sha=* | --sh=*)
678 sharedstatedir="$ac_optarg" ;;
679
680 -site | --site | --sit)
681 ac_prev=site ;;
682 -site=* | --site=* | --sit=*)
683 site="$ac_optarg" ;;
684
685 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
686 ac_prev=srcdir ;;
687 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
688 srcdir="$ac_optarg" ;;
689
690 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
691 | --syscon | --sysco | --sysc | --sys | --sy)
692 ac_prev=sysconfdir ;;
693 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
694 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
695 sysconfdir="$ac_optarg" ;;
696
697 -target | --target | --targe | --targ | --tar | --ta | --t)
698 ac_prev=target ;;
699 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
700 target="$ac_optarg" ;;
701
702 -v | -verbose | --verbose | --verbos | --verbo | --verb)
703 verbose=yes ;;
704
705 -version | --version | --versio | --versi | --vers)
706 echo "configure generated by autoconf version 2.13"
707 exit 0 ;;
708
709 -with-* | --with-*)
710 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
711 # Reject names that are not valid shell variable names.
712 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
713 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
714 fi
715 ac_package=`echo $ac_package| sed 's/-/_/g'`
716 case "$ac_option" in
717 *=*) ;;
718 *) ac_optarg=yes ;;
719 esac
720 eval "with_${ac_package}='$ac_optarg'" ;;
721
722 -without-* | --without-*)
723 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
724 # Reject names that are not valid shell variable names.
725 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
726 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
727 fi
728 ac_package=`echo $ac_package| sed 's/-/_/g'`
729 eval "with_${ac_package}=no" ;;
730
731 --x)
732 # Obsolete; use --with-x.
733 with_x=yes ;;
734
735 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
736 | --x-incl | --x-inc | --x-in | --x-i)
737 ac_prev=x_includes ;;
738 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
739 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
740 x_includes="$ac_optarg" ;;
741
742 -x-libraries | --x-libraries | --x-librarie | --x-librari \
743 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
744 ac_prev=x_libraries ;;
745 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
746 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
747 x_libraries="$ac_optarg" ;;
748
749 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
750 ;;
751
752 *)
753 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
754 echo "configure: warning: $ac_option: invalid host type" 1>&2
755 fi
756 if test "x$nonopt" != xNONE; then
757 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
758 fi
759 nonopt="$ac_option"
760 ;;
761
762 esac
763done
764
765if test -n "$ac_prev"; then
766 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
767fi
768
769trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
770
771# File descriptor usage:
772# 0 standard input
773# 1 file creation
774# 2 errors and warnings
775# 3 some systems may open it to /dev/tty
776# 4 used on the Kubota Titan
777# 6 checking for... messages and results
778# 5 compiler messages saved in config.log
779if test "$silent" = yes; then
780 exec 6>/dev/null
781else
782 exec 6>&1
783fi
784exec 5>./config.log
785
786echo "\
787This file contains any messages produced by compilers while
788running configure, to aid debugging if configure makes a mistake.
789" 1>&5
790
791# Strip out --no-create and --no-recursion so they do not pile up.
792# Also quote any args containing shell metacharacters.
793ac_configure_args=
794for ac_arg
795do
796 case "$ac_arg" in
797 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
798 | --no-cr | --no-c) ;;
799 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
800 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
801 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
802 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
803 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
804 esac
805done
806
807# NLS nuisances.
808# Only set these to C if already set. These must not be set unconditionally
809# because not all systems understand e.g. LANG=C (notably SCO).
810# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
811# Non-C LC_CTYPE values break the ctype check.
812if test "${LANG+set}" = set; then LANG=C; export LANG; fi
813if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
814if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
815if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
816
817# confdefs.h avoids OS command line length limits that DEFS can exceed.
818rm -rf conftest* confdefs.h
819# AIX cpp loses on an empty file, so make sure it contains at least a newline.
820echo > confdefs.h
821
822# A filename unique to this package, relative to the directory that
823# configure is in, which we can look for to find out if srcdir is correct.
824ac_unique_file=wx-config.in
825
826# Find the source files, if location was not specified.
827if test -z "$srcdir"; then
828 ac_srcdir_defaulted=yes
829 # Try the directory containing this script, then its parent.
830 ac_prog=$0
831 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
832 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
833 srcdir=$ac_confdir
834 if test ! -r $srcdir/$ac_unique_file; then
835 srcdir=..
836 fi
837else
838 ac_srcdir_defaulted=no
839fi
840if test ! -r $srcdir/$ac_unique_file; then
841 if test "$ac_srcdir_defaulted" = yes; then
842 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
843 else
844 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
845 fi
846fi
847srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
848
849# Prefer explicitly selected file to automatically selected ones.
850if test -z "$CONFIG_SITE"; then
851 if test "x$prefix" != xNONE; then
852 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
853 else
854 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
855 fi
856fi
857for ac_site_file in $CONFIG_SITE; do
858 if test -r "$ac_site_file"; then
859 echo "loading site script $ac_site_file"
860 . "$ac_site_file"
861 fi
862done
863
864if test -r "$cache_file"; then
865 echo "loading cache $cache_file"
866 . $cache_file
867else
868 echo "creating cache $cache_file"
869 > $cache_file
870fi
871
872ac_ext=c
873# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874ac_cpp='$CPP $CPPFLAGS'
875ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877cross_compiling=$ac_cv_prog_cc_cross
878
879ac_exeext=
880ac_objext=o
881if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
882 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
883 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
884 ac_n= ac_c='
885' ac_t=' '
886 else
887 ac_n=-n ac_c= ac_t=
888 fi
889else
890 ac_n= ac_c='\c' ac_t=
891fi
892
893
894
895ac_aux_dir=
896for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
897 if 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 elif test -f $ac_dir/install.sh; then
902 ac_aux_dir=$ac_dir
903 ac_install_sh="$ac_aux_dir/install.sh -c"
904 break
905 fi
906done
907if test -z "$ac_aux_dir"; then
908 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
909fi
910ac_config_guess=$ac_aux_dir/config.guess
911ac_config_sub=$ac_aux_dir/config.sub
912ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
913
914
915# Do some error checking and defaulting for the host and target type.
916# The inputs are:
917# configure --host=HOST --target=TARGET --build=BUILD NONOPT
918#
919# The rules are:
920# 1. You are not allowed to specify --host, --target, and nonopt at the
921# same time.
922# 2. Host defaults to nonopt.
923# 3. If nonopt is not specified, then host defaults to the current host,
924# as determined by config.guess.
925# 4. Target and build default to nonopt.
926# 5. If nonopt is not specified, then target and build default to host.
927
928# The aliases save the names the user supplied, while $host etc.
929# will get canonicalized.
930case $host---$target---$nonopt in
931NONE---*---* | *---NONE---* | *---*---NONE) ;;
932*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
933esac
934
935
936# Make sure we can run config.sub.
937if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
938else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
939fi
940
941echo $ac_n "checking host system type""... $ac_c" 1>&6
942echo "configure:943: checking host system type" >&5
943
944host_alias=$host
945case "$host_alias" in
946NONE)
947 case $nonopt in
948 NONE)
949 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
950 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
951 fi ;;
952 *) host_alias=$nonopt ;;
953 esac ;;
954esac
955
956host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
957host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
958host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
959host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
960echo "$ac_t""$host" 1>&6
961
962echo $ac_n "checking target system type""... $ac_c" 1>&6
963echo "configure:964: checking target system type" >&5
964
965target_alias=$target
966case "$target_alias" in
967NONE)
968 case $nonopt in
969 NONE) target_alias=$host_alias ;;
970 *) target_alias=$nonopt ;;
971 esac ;;
972esac
973
974target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
975target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978echo "$ac_t""$target" 1>&6
979
980echo $ac_n "checking build system type""... $ac_c" 1>&6
981echo "configure:982: checking build system type" >&5
982
983build_alias=$build
984case "$build_alias" in
985NONE)
986 case $nonopt in
987 NONE) build_alias=$host_alias ;;
988 *) build_alias=$nonopt ;;
989 esac ;;
990esac
991
992build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
993build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
996echo "$ac_t""$build" 1>&6
997
998test "$host_alias" != "$target_alias" &&
999 test "$program_prefix$program_suffix$program_transform_name" = \
1000 NONENONEs,x,x, &&
1001 program_prefix=${target_alias}-
1002
1003
1004
1005WX_MAJOR_VERSION_NUMBER=2
1006WX_MINOR_VERSION_NUMBER=3
1007WX_RELEASE_NUMBER=2
1008
1009WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1010WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1011
1012WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1013
1014WX_CURRENT=1
1015WX_REVISION=0
1016WX_AGE=0
1017
1018
1019
1020USE_UNIX=1
1021USE_WIN32=0
1022USE_BEOS=0
1023USE_MAC=0
1024
1025USE_LINUX=
1026USE_SGI=
1027USE_HPUX=
1028USE_SYSV=
1029USE_SVR4=
1030USE_AIX=
1031USE_SUN=
1032USE_SOLARIS=
1033USE_SUNOS=
1034USE_ALPHA=
1035USE_OSF=
1036USE_BSD=
1037USE_DARWIN=
1038USE_FREEBSD=
1039USE_OPENBSD=
1040USE_NETBSD=
1041USE_VMS=
1042USE_ULTRIX=
1043USE_DATA_GENERAL=
1044
1045NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1046
1047ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
1048
1049DEFAULT_wxUSE_GTK=0
1050DEFAULT_wxUSE_MAC=0
1051DEFAULT_wxUSE_MGL=0
1052DEFAULT_wxUSE_MOTIF=0
1053DEFAULT_wxUSE_MSW=0
1054DEFAULT_wxUSE_PM=0
1055DEFAULT_wxUSE_WINE=0
1056
1057DEFAULT_DEFAULT_wxUSE_GTK=0
1058DEFAULT_DEFAULT_wxUSE_MAC=0
1059DEFAULT_DEFAULT_wxUSE_MGL=0
1060DEFAULT_DEFAULT_wxUSE_MOTIF=0
1061DEFAULT_DEFAULT_wxUSE_MSW=0
1062DEFAULT_DEFAULT_wxUSE_PM=0
1063DEFAULT_DEFAULT_wxUSE_WINE=0
1064
1065PROGRAM_EXT=
1066SO_SUFFIX=so
1067
1068case "${host}" in
1069 *-hp-hpux* )
1070 USE_HPUX=1
1071 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1072 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1073 SO_SUFFIX=sl
1074 cat >> confdefs.h <<\EOF
1075#define __HPUX__ 1
1076EOF
1077
1078 ;;
1079 *-*-linux* )
1080 USE_LINUX=1
1081 cat >> confdefs.h <<\EOF
1082#define __LINUX__ 1
1083EOF
1084
1085 TMP=`uname -m`
1086 if test "x$TMP" = "xalpha"; then
1087 USE_ALPHA=1
1088 cat >> confdefs.h <<\EOF
1089#define __ALPHA__ 1
1090EOF
1091
1092 fi
1093 DEFAULT_DEFAULT_wxUSE_GTK=1
1094 ;;
1095 *-*-irix5* | *-*-irix6* )
1096 USE_SGI=1
1097 USE_SVR4=1
1098 cat >> confdefs.h <<\EOF
1099#define __SGI__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108 *-*-solaris2* )
1109 USE_SUN=1
1110 USE_SOLARIS=1
1111 USE_SVR4=1
1112 cat >> confdefs.h <<\EOF
1113#define __SUN__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __SOLARIS__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __SVR4__ 1
1122EOF
1123
1124 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1125 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1126 ;;
1127 *-*-sunos4* )
1128 USE_SUN=1
1129 USE_SUNOS=1
1130 USE_BSD=1
1131 cat >> confdefs.h <<\EOF
1132#define __SUN__ 1
1133EOF
1134
1135 cat >> confdefs.h <<\EOF
1136#define __SUNOS__ 1
1137EOF
1138
1139 cat >> confdefs.h <<\EOF
1140#define __BSD__ 1
1141EOF
1142
1143 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1144 ;;
1145 *-*-freebsd*)
1146 USE_BSD=1
1147 USE_FREEBSD=1
1148 cat >> confdefs.h <<\EOF
1149#define __FREEBSD__ 1
1150EOF
1151
1152 cat >> confdefs.h <<\EOF
1153#define __BSD__ 1
1154EOF
1155
1156 DEFAULT_DEFAULT_wxUSE_GTK=1
1157 ;;
1158 *-*-openbsd*)
1159 USE_BSD=1
1160 USE_OPENBSD=1
1161 cat >> confdefs.h <<\EOF
1162#define __FREEBSD__ 1
1163EOF
1164
1165 cat >> confdefs.h <<\EOF
1166#define __OPENBSD__ 1
1167EOF
1168
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-netbsd*)
1172 USE_BSD=1
1173 USE_NETBSD=1
1174 cat >> confdefs.h <<\EOF
1175#define __FREEBSD__ 1
1176EOF
1177
1178 cat >> confdefs.h <<\EOF
1179#define __NETBSD__ 1
1180EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_GTK=1
1183 ;;
1184 *-*-osf* )
1185 USE_ALPHA=1
1186 USE_OSF=1
1187 cat >> confdefs.h <<\EOF
1188#define __ALPHA__ 1
1189EOF
1190
1191 cat >> confdefs.h <<\EOF
1192#define __OSF__ 1
1193EOF
1194
1195 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1196 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1197 ;;
1198 *-*-dgux5* )
1199 USE_ALPHA=1
1200 USE_SVR4=1
1201 cat >> confdefs.h <<\EOF
1202#define __ALPHA__ 1
1203EOF
1204
1205 cat >> confdefs.h <<\EOF
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
1211 *-*-sysv5* )
1212 USE_SYSV=1
1213 USE_SVR4=1
1214 cat >> confdefs.h <<\EOF
1215#define __SYSV__ 1
1216EOF
1217
1218 cat >> confdefs.h <<\EOF
1219#define __SVR4__ 1
1220EOF
1221
1222 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1223 ;;
1224 *-*-aix* )
1225 USE_AIX=1
1226 USE_SYSV=1
1227 USE_SVR4=1
1228 cat >> confdefs.h <<\EOF
1229#define __AIX__ 1
1230EOF
1231
1232 cat >> confdefs.h <<\EOF
1233#define __SYSV__ 1
1234EOF
1235
1236 cat >> confdefs.h <<\EOF
1237#define __SVR4__ 1
1238EOF
1239
1240 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1241 ;;
1242
1243 *-*-cygwin* | *-*-mingw32* )
1244 USE_UNIX=0
1245 USE_WIN32=1
1246 SO_SUFFIX=dll
1247 cat >> confdefs.h <<\EOF
1248#define __WIN32__ 1
1249EOF
1250
1251 cat >> confdefs.h <<\EOF
1252#define __WIN95__ 1
1253EOF
1254
1255 cat >> confdefs.h <<\EOF
1256#define __WINDOWS__ 1
1257EOF
1258
1259 cat >> confdefs.h <<\EOF
1260#define __GNUWIN32__ 1
1261EOF
1262
1263 cat >> confdefs.h <<\EOF
1264#define STRICT 1
1265EOF
1266
1267 cat >> confdefs.h <<\EOF
1268#define WINVER 0x0400
1269EOF
1270
1271 PROGRAM_EXT=".exe"
1272 RESCOMP=windres
1273 DEFAULT_DEFAULT_wxUSE_MSW=1
1274 ;;
1275
1276 *-pc-os2_emx | *-pc-os2-emx )
1277 cat >> confdefs.h <<\EOF
1278#define __EMX__ 1
1279EOF
1280
1281 PROGRAM_EXT=".exe"
1282 DEFAULT_DEFAULT_wxUSE_PM=1
1283 ;;
1284
1285 powerpc-*-darwin* )
1286 USE_BSD=1
1287 USE_DARWIN=1
1288 SO_SUFFIX=dylib
1289 cat >> confdefs.h <<\EOF
1290#define __BSD__ 1
1291EOF
1292
1293 cat >> confdefs.h <<\EOF
1294#define __DARWIN__ 1
1295EOF
1296
1297 cat >> confdefs.h <<\EOF
1298#define __POWERPC__ 1
1299EOF
1300
1301 DEFAULT_DEFAULT_wxUSE_MAC=1
1302 ;;
1303
1304 *-*-beos* )
1305 USE_BEOS=1
1306 cat >> confdefs.h <<\EOF
1307#define __BEOS__ 1
1308EOF
1309
1310 ;;
1311
1312 *)
1313 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1314esac
1315
1316if test "$USE_UNIX" = 1 ; then
1317 wxUSE_UNIX=yes
1318 cat >> confdefs.h <<\EOF
1319#define __UNIX__ 1
1320EOF
1321
1322fi
1323
1324if test "$USE_LINUX" = 1; then
1325 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1326echo "configure:1327: checking for glibc 2.1 or later" >&5
1327if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1329else
1330 cat > conftest.$ac_ext <<EOF
1331#line 1332 "configure"
1332#include "confdefs.h"
1333#include <features.h>
1334int main() {
1335
1336 #if !__GLIBC_PREREQ(2, 1)
1337 #error not glibc2.1
1338 #endif
1339
1340; return 0; }
1341EOF
1342if { (eval echo configure:1343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1343 rm -rf conftest*
1344
1345 wx_lib_glibc21=yes
1346
1347else
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1350 rm -rf conftest*
1351
1352 wx_lib_glibc21=no
1353
1354
1355fi
1356rm -f conftest*
1357
1358fi
1359
1360echo "$ac_t""$wx_lib_glibc21" 1>&6
1361 if test "$wx_lib_glibc21" = "yes"; then
1362 cat >> confdefs.h <<\EOF
1363#define wxHAVE_GLIBC2 1
1364EOF
1365
1366 fi
1367fi
1368
1369
1370
1371
1372 wx_arg_cache_file="configarg.cache"
1373 echo "loading argument cache $wx_arg_cache_file"
1374 rm -f ${wx_arg_cache_file}.tmp
1375 touch ${wx_arg_cache_file}.tmp
1376 touch ${wx_arg_cache_file}
1377
1378
1379DEBUG_CONFIGURE=0
1380if test $DEBUG_CONFIGURE = 1; then
1381 DEFAULT_wxUSE_UNIVERSAL=no
1382
1383 DEFAULT_wxUSE_THREADS=yes
1384
1385 DEFAULT_wxUSE_SHARED=yes
1386 DEFAULT_wxUSE_SONAME=no
1387 DEFAULT_wxUSE_OPTIMISE=no
1388 DEFAULT_wxUSE_PROFILE=no
1389 DEFAULT_wxUSE_NO_DEPS=no
1390 DEFAULT_wxUSE_NO_RTTI=yes
1391 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1392 DEFAULT_wxUSE_PERMISSIVE=no
1393 DEFAULT_wxUSE_DEBUG_FLAG=yes
1394 DEFAULT_wxUSE_DEBUG_INFO=yes
1395 DEFAULT_wxUSE_DEBUG_GDB=yes
1396 DEFAULT_wxUSE_MEM_TRACING=no
1397 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1398 DEFAULT_wxUSE_DMALLOC=no
1399 DEFAULT_wxUSE_PRECOMP=yes
1400 DEFAULT_wxUSE_APPLE_IEEE=no
1401
1402 DEFAULT_wxUSE_LOG=yes
1403 DEFAULT_wxUSE_LOGWINDOW=no
1404 DEFAULT_wxUSE_LOGGUI=no
1405 DEFAULT_wxUSE_LOGDIALOG=no
1406
1407 DEFAULT_wxUSE_GUI=yes
1408 DEFAULT_wxUSE_CONTROLS=no
1409
1410 DEFAULT_wxUSE_REGEX=no
1411 DEFAULT_wxUSE_ZLIB=no
1412 DEFAULT_wxUSE_LIBPNG=no
1413 DEFAULT_wxUSE_LIBJPEG=no
1414 DEFAULT_wxUSE_LIBTIFF=no
1415 DEFAULT_wxUSE_ODBC=no
1416 DEFAULT_wxUSE_FREETYPE=no
1417 DEFAULT_wxUSE_OPENGL=no
1418
1419 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1420 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1421 DEFAULT_wxUSE_STD_IOSTREAM=no
1422 DEFAULT_wxUSE_CMDLINE_PARSER=no
1423 DEFAULT_wxUSE_DATETIME=no
1424 DEFAULT_wxUSE_TIMEDATE=no
1425 DEFAULT_wxUSE_TIMER=no
1426 DEFAULT_wxUSE_STOPWATCH=no
1427 DEFAULT_wxUSE_FILE=no
1428 DEFAULT_wxUSE_FFILE=no
1429 DEFAULT_wxUSE_TEXTBUFFER=no
1430 DEFAULT_wxUSE_TEXTFILE=no
1431 DEFAULT_wxUSE_WAVE=no
1432 DEFAULT_wxUSE_INTL=no
1433 DEFAULT_wxUSE_CONFIG=no
1434 DEFAULT_wxUSE_FONTMAP=no
1435 DEFAULT_wxUSE_STREAMS=no
1436 DEFAULT_wxUSE_SOCKETS=no
1437 DEFAULT_wxUSE_DIALUP_MANAGER=no
1438 DEFAULT_wxUSE_SERIAL=no
1439 DEFAULT_wxUSE_JOYSTICK=no
1440 DEFAULT_wxUSE_DYNLIB_CLASS=no
1441 DEFAULT_wxUSE_LONGLONG=no
1442 DEFAULT_wxUSE_GEOMETRY=no
1443
1444 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1445 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1446 DEFAULT_wxUSE_POSTSCRIPT=no
1447
1448 DEFAULT_wxUSE_X_RESOURCES=no
1449 DEFAULT_wxUSE_CLIPBOARD=no
1450 DEFAULT_wxUSE_TOOLTIPS=no
1451 DEFAULT_wxUSE_DRAG_AND_DROP=no
1452 DEFAULT_wxUSE_DRAGIMAGE=no
1453 DEFAULT_wxUSE_SPLINES=no
1454
1455 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1456 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1457 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1458
1459 DEFAULT_wxUSE_PROLOGIO=no
1460 DEFAULT_wxUSE_RESOURCES=no
1461 DEFAULT_wxUSE_CONSTRAINTS=no
1462 DEFAULT_wxUSE_IPC=no
1463 DEFAULT_wxUSE_HELP=no
1464 DEFAULT_wxUSE_MS_HTML_HELP=no
1465 DEFAULT_wxUSE_WXHTML_HELP=no
1466 DEFAULT_wxUSE_TREELAYOUT=no
1467 DEFAULT_wxUSE_METAFILE=no
1468 DEFAULT_wxUSE_MIMETYPE=no
1469 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1470
1471 DEFAULT_wxUSE_COMMONDLGS=no
1472 DEFAULT_wxUSE_CHOICEDLG=no
1473 DEFAULT_wxUSE_COLOURDLG=no
1474 DEFAULT_wxUSE_DIRDLG=no
1475 DEFAULT_wxUSE_FILEDLG=no
1476 DEFAULT_wxUSE_FINDREPLDLG=no
1477 DEFAULT_wxUSE_FONTDLG=no
1478 DEFAULT_wxUSE_MSGDLG=no
1479 DEFAULT_wxUSE_NUMBERDLG=no
1480 DEFAULT_wxUSE_TEXTDLG=no
1481 DEFAULT_wxUSE_SPLASH=no
1482 DEFAULT_wxUSE_STARTUP_TIPS=no
1483 DEFAULT_wxUSE_PROGRESSDLG=no
1484 DEFAULT_wxUSE_WIZARDDLG=no
1485
1486 DEFAULT_wxUSE_MENUS=no
1487 DEFAULT_wxUSE_MINIFRAME=no
1488 DEFAULT_wxUSE_HTML=no
1489 DEFAULT_wxUSE_FILESYSTEM=no
1490 DEFAULT_wxUSE_FS_INET=no
1491 DEFAULT_wxUSE_FS_ZIP=no
1492 DEFAULT_wxUSE_BUSYINFO=no
1493 DEFAULT_wxUSE_ZIPSTREAM=no
1494 DEFAULT_wxUSE_VALIDATORS=no
1495
1496 DEFAULT_wxUSE_ACCEL=no
1497 DEFAULT_wxUSE_BUTTON=no
1498 DEFAULT_wxUSE_BMPBUTTON=no
1499 DEFAULT_wxUSE_CALCTRL=no
1500 DEFAULT_wxUSE_CARET=no
1501 DEFAULT_wxUSE_CHECKBOX=no
1502 DEFAULT_wxUSE_CHECKLST=no
1503 DEFAULT_wxUSE_CHOICE=no
1504 DEFAULT_wxUSE_COMBOBOX=no
1505 DEFAULT_wxUSE_GAUGE=no
1506 DEFAULT_wxUSE_GRID=no
1507 DEFAULT_wxUSE_NEW_GRID=no
1508 DEFAULT_wxUSE_IMAGLIST=no
1509 DEFAULT_wxUSE_LISTBOX=no
1510 DEFAULT_wxUSE_LISTCTRL=no
1511 DEFAULT_wxUSE_NOTEBOOK=no
1512 DEFAULT_wxUSE_PROPSHEET=no
1513 DEFAULT_wxUSE_RADIOBOX=no
1514 DEFAULT_wxUSE_RADIOBTN=no
1515 DEFAULT_wxUSE_SASH=no
1516 DEFAULT_wxUSE_SCROLLBAR=no
1517 DEFAULT_wxUSE_SLIDER=no
1518 DEFAULT_wxUSE_SPINBTN=no
1519 DEFAULT_wxUSE_SPINCTRL=no
1520 DEFAULT_wxUSE_SPLITTER=no
1521 DEFAULT_wxUSE_STATBMP=no
1522 DEFAULT_wxUSE_STATBOX=no
1523 DEFAULT_wxUSE_STATLINE=no
1524 DEFAULT_wxUSE_STATTEXT=no
1525 DEFAULT_wxUSE_STATUSBAR=yes
1526 DEFAULT_wxUSE_TABDIALOG=no
1527 DEFAULT_wxUSE_TEXTCTRL=no
1528 DEFAULT_wxUSE_TOGGLEBTN=no
1529 DEFAULT_wxUSE_TOOLBAR=no
1530 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1531 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1532 DEFAULT_wxUSE_TREECTRL=no
1533 DEFAULT_wxUSE_POPUPWIN=no
1534
1535 DEFAULT_wxUSE_UNICODE=no
1536 DEFAULT_wxUSE_WCSRTOMBS=no
1537
1538 DEFAULT_wxUSE_PALETTE=no
1539 DEFAULT_wxUSE_IMAGE=no
1540 DEFAULT_wxUSE_GIF=no
1541 DEFAULT_wxUSE_PCX=no
1542 DEFAULT_wxUSE_PNM=no
1543 DEFAULT_wxUSE_XPM=no
1544else
1545 DEFAULT_wxUSE_UNIVERSAL=no
1546
1547 DEFAULT_wxUSE_THREADS=yes
1548
1549 DEFAULT_wxUSE_SHARED=yes
1550 DEFAULT_wxUSE_SONAME=no
1551 DEFAULT_wxUSE_OPTIMISE=yes
1552 DEFAULT_wxUSE_PROFILE=no
1553 DEFAULT_wxUSE_NO_DEPS=no
1554 DEFAULT_wxUSE_NO_RTTI=yes
1555 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1556 DEFAULT_wxUSE_PERMISSIVE=no
1557 DEFAULT_wxUSE_DEBUG_FLAG=no
1558 DEFAULT_wxUSE_DEBUG_INFO=no
1559 DEFAULT_wxUSE_DEBUG_GDB=no
1560 DEFAULT_wxUSE_MEM_TRACING=no
1561 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1562 DEFAULT_wxUSE_DMALLOC=no
1563 DEFAULT_wxUSE_PRECOMP=yes
1564 DEFAULT_wxUSE_APPLE_IEEE=yes
1565
1566 DEFAULT_wxUSE_LOG=yes
1567 DEFAULT_wxUSE_LOGWINDOW=yes
1568 DEFAULT_wxUSE_LOGGUI=yes
1569 DEFAULT_wxUSE_LOGDIALOG=yes
1570
1571 DEFAULT_wxUSE_GUI=yes
1572
1573 DEFAULT_wxUSE_REGEX=yes
1574 DEFAULT_wxUSE_ZLIB=yes
1575 DEFAULT_wxUSE_LIBPNG=yes
1576 DEFAULT_wxUSE_LIBJPEG=yes
1577 DEFAULT_wxUSE_LIBTIFF=yes
1578 DEFAULT_wxUSE_ODBC=no
1579 DEFAULT_wxUSE_FREETYPE=no
1580 DEFAULT_wxUSE_OPENGL=no
1581
1582 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1583 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1584 DEFAULT_wxUSE_STD_IOSTREAM=no
1585 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1586 DEFAULT_wxUSE_DATETIME=yes
1587 DEFAULT_wxUSE_TIMEDATE=no
1588 DEFAULT_wxUSE_TIMER=yes
1589 DEFAULT_wxUSE_STOPWATCH=yes
1590 DEFAULT_wxUSE_FILE=yes
1591 DEFAULT_wxUSE_FFILE=yes
1592 DEFAULT_wxUSE_TEXTBUFFER=yes
1593 DEFAULT_wxUSE_TEXTFILE=yes
1594 DEFAULT_wxUSE_WAVE=no
1595 DEFAULT_wxUSE_INTL=yes
1596 DEFAULT_wxUSE_CONFIG=yes
1597 DEFAULT_wxUSE_FONTMAP=yes
1598 DEFAULT_wxUSE_STREAMS=yes
1599 DEFAULT_wxUSE_SOCKETS=yes
1600 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1601 DEFAULT_wxUSE_SERIAL=yes
1602 DEFAULT_wxUSE_JOYSTICK=yes
1603 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1604 DEFAULT_wxUSE_LONGLONG=yes
1605 DEFAULT_wxUSE_GEOMETRY=yes
1606
1607 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1608 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1609 DEFAULT_wxUSE_POSTSCRIPT=yes
1610
1611 DEFAULT_wxUSE_X_RESOURCES=no
1612 DEFAULT_wxUSE_CLIPBOARD=yes
1613 DEFAULT_wxUSE_TOOLTIPS=yes
1614 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1615 DEFAULT_wxUSE_DRAGIMAGE=yes
1616 DEFAULT_wxUSE_SPLINES=yes
1617
1618 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1619 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1620 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1621
1622 DEFAULT_wxUSE_PROLOGIO=yes
1623 DEFAULT_wxUSE_RESOURCES=yes
1624 DEFAULT_wxUSE_CONSTRAINTS=yes
1625 DEFAULT_wxUSE_IPC=yes
1626 DEFAULT_wxUSE_HELP=yes
1627 DEFAULT_wxUSE_MS_HTML_HELP=yes
1628 DEFAULT_wxUSE_WXHTML_HELP=yes
1629 DEFAULT_wxUSE_TREELAYOUT=yes
1630 DEFAULT_wxUSE_METAFILE=yes
1631 DEFAULT_wxUSE_MIMETYPE=yes
1632 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1633
1634 DEFAULT_wxUSE_COMMONDLGS=yes
1635 DEFAULT_wxUSE_CHOICEDLG=yes
1636 DEFAULT_wxUSE_COLOURDLG=yes
1637 DEFAULT_wxUSE_DIRDLG=yes
1638 DEFAULT_wxUSE_FILEDLG=yes
1639 DEFAULT_wxUSE_FINDREPLDLG=yes
1640 DEFAULT_wxUSE_FONTDLG=yes
1641 DEFAULT_wxUSE_MSGDLG=yes
1642 DEFAULT_wxUSE_NUMBERDLG=yes
1643 DEFAULT_wxUSE_TEXTDLG=yes
1644 DEFAULT_wxUSE_SPLASH=yes
1645 DEFAULT_wxUSE_STARTUP_TIPS=yes
1646 DEFAULT_wxUSE_PROGRESSDLG=yes
1647 DEFAULT_wxUSE_WIZARDDLG=yes
1648
1649 DEFAULT_wxUSE_MENUS=yes
1650 DEFAULT_wxUSE_MINIFRAME=yes
1651 DEFAULT_wxUSE_HTML=yes
1652 DEFAULT_wxUSE_FILESYSTEM=yes
1653 DEFAULT_wxUSE_FS_INET=yes
1654 DEFAULT_wxUSE_FS_ZIP=yes
1655 DEFAULT_wxUSE_BUSYINFO=yes
1656 DEFAULT_wxUSE_ZIPSTREAM=yes
1657 DEFAULT_wxUSE_VALIDATORS=yes
1658
1659 DEFAULT_wxUSE_ACCEL=yes
1660 DEFAULT_wxUSE_BUTTON=yes
1661 DEFAULT_wxUSE_BMPBUTTON=yes
1662 DEFAULT_wxUSE_CALCTRL=yes
1663 DEFAULT_wxUSE_CARET=yes
1664 DEFAULT_wxUSE_CHECKBOX=yes
1665 DEFAULT_wxUSE_CHECKLST=yes
1666 DEFAULT_wxUSE_CHOICE=yes
1667 DEFAULT_wxUSE_COMBOBOX=yes
1668 DEFAULT_wxUSE_GAUGE=yes
1669 DEFAULT_wxUSE_GRID=yes
1670 DEFAULT_wxUSE_NEW_GRID=yes
1671 DEFAULT_wxUSE_IMAGLIST=yes
1672 DEFAULT_wxUSE_LISTBOX=yes
1673 DEFAULT_wxUSE_LISTCTRL=yes
1674 DEFAULT_wxUSE_NOTEBOOK=yes
1675 DEFAULT_wxUSE_PROPSHEET=yes
1676 DEFAULT_wxUSE_RADIOBOX=yes
1677 DEFAULT_wxUSE_RADIOBTN=yes
1678 DEFAULT_wxUSE_SASH=yes
1679 DEFAULT_wxUSE_SCROLLBAR=yes
1680 DEFAULT_wxUSE_SLIDER=yes
1681 DEFAULT_wxUSE_SPINBTN=yes
1682 DEFAULT_wxUSE_SPINCTRL=yes
1683 DEFAULT_wxUSE_SPLITTER=yes
1684 DEFAULT_wxUSE_STATBMP=yes
1685 DEFAULT_wxUSE_STATBOX=yes
1686 DEFAULT_wxUSE_STATLINE=yes
1687 DEFAULT_wxUSE_STATTEXT=yes
1688 DEFAULT_wxUSE_STATUSBAR=yes
1689 DEFAULT_wxUSE_TABDIALOG=no
1690 DEFAULT_wxUSE_TEXTCTRL=yes
1691 DEFAULT_wxUSE_TOGGLEBTN=yes
1692 DEFAULT_wxUSE_TOOLBAR=yes
1693 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1694 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1695 DEFAULT_wxUSE_TREECTRL=yes
1696 DEFAULT_wxUSE_POPUPWIN=yes
1697
1698 DEFAULT_wxUSE_UNICODE=no
1699 DEFAULT_wxUSE_WCSRTOMBS=no
1700
1701 DEFAULT_wxUSE_PALETTE=yes
1702 DEFAULT_wxUSE_IMAGE=yes
1703 DEFAULT_wxUSE_GIF=yes
1704 DEFAULT_wxUSE_PCX=yes
1705 DEFAULT_wxUSE_PNM=yes
1706 DEFAULT_wxUSE_XPM=yes
1707fi
1708
1709
1710
1711for toolkit in `echo $ALL_TOOLKITS`; do
1712 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1713 if test "x$LINE" != x ; then
1714 has_toolkit_in_cache=1
1715 eval "DEFAULT_$LINE"
1716 eval "CACHE_$toolkit=1"
1717 fi
1718done
1719
1720
1721
1722 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1723echo "configure:1724: checking for --enable-gui" >&5
1724 no_cache=0
1725 # Check whether --enable-gui or --disable-gui was given.
1726if test "${enable_gui+set}" = set; then
1727 enableval="$enable_gui"
1728
1729 if test "$enableval" = yes; then
1730 ac_cv_use_gui='wxUSE_GUI=yes'
1731 else
1732 ac_cv_use_gui='wxUSE_GUI=no'
1733 fi
1734
1735else
1736
1737 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1738 if test "x$LINE" != x ; then
1739 eval "DEFAULT_$LINE"
1740 else
1741 no_cache=1
1742 fi
1743
1744 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1745
1746fi
1747
1748
1749 eval "$ac_cv_use_gui"
1750 if test "$no_cache" != 1; then
1751 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1752 fi
1753
1754 if test "$wxUSE_GUI" = yes; then
1755 echo "$ac_t""yes" 1>&6
1756 else
1757 echo "$ac_t""no" 1>&6
1758 fi
1759
1760
1761if test "$wxUSE_GUI" = "yes"; then
1762
1763
1764 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1765echo "configure:1766: checking for --enable-universal" >&5
1766 no_cache=0
1767 # Check whether --enable-universal or --disable-universal was given.
1768if test "${enable_universal+set}" = set; then
1769 enableval="$enable_universal"
1770
1771 if test "$enableval" = yes; then
1772 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1773 else
1774 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1775 fi
1776
1777else
1778
1779 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 eval "DEFAULT_$LINE"
1782 else
1783 no_cache=1
1784 fi
1785
1786 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1787
1788fi
1789
1790
1791 eval "$ac_cv_use_universal"
1792 if test "$no_cache" != 1; then
1793 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1794 fi
1795
1796 if test "$wxUSE_UNIVERSAL" = yes; then
1797 echo "$ac_t""yes" 1>&6
1798 else
1799 echo "$ac_t""no" 1>&6
1800 fi
1801
1802# Check whether --with-gtk or --without-gtk was given.
1803if test "${with_gtk+set}" = set; then
1804 withval="$with_gtk"
1805 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1806fi
1807
1808# Check whether --with-motif or --without-motif was given.
1809if test "${with_motif+set}" = set; then
1810 withval="$with_motif"
1811 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1812fi
1813
1814# Check whether --with-mac or --without-mac was given.
1815if test "${with_mac+set}" = set; then
1816 withval="$with_mac"
1817 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1818fi
1819
1820# Check whether --with-wine or --without-wine was given.
1821if test "${with_wine+set}" = set; then
1822 withval="$with_wine"
1823 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1824fi
1825
1826# Check whether --with-msw or --without-msw was given.
1827if test "${with_msw+set}" = set; then
1828 withval="$with_msw"
1829 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1830fi
1831
1832# Check whether --with-pm or --without-pm was given.
1833if test "${with_pm+set}" = set; then
1834 withval="$with_pm"
1835 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1836fi
1837
1838# Check whether --with-mgl or --without-mgl was given.
1839if test "${with_mgl+set}" = set; then
1840 withval="$with_mgl"
1841 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1842fi
1843
1844
1845# Check whether --enable-gtk2 or --disable-gtk2 was given.
1846if test "${enable_gtk2+set}" = set; then
1847 enableval="$enable_gtk2"
1848 wxUSE_GTK2=1
1849else
1850 wxUSE_GTK2=0
1851fi
1852
1853
1854
1855 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1856echo "configure:1857: checking for --with-libpng" >&5
1857 no_cache=0
1858 # Check whether --with-libpng or --without-libpng was given.
1859if test "${with_libpng+set}" = set; then
1860 withval="$with_libpng"
1861
1862 if test "$withval" = yes; then
1863 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1864 elif test "$withval" = no; then
1865 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1866 elif test "$withval" = sys; then
1867 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1868 elif test "$withval" = builtin; then
1869 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1870 else
1871 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1872 fi
1873
1874else
1875
1876 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1877 if test "x$LINE" != x ; then
1878 eval "DEFAULT_$LINE"
1879 else
1880 no_cache=1
1881 fi
1882
1883 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1884
1885fi
1886
1887
1888 eval "$ac_cv_use_libpng"
1889 if test "$no_cache" != 1; then
1890 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1891 fi
1892
1893 if test "$wxUSE_LIBPNG" = yes; then
1894 echo "$ac_t""yes" 1>&6
1895 elif test "$wxUSE_LIBPNG" = no; then
1896 echo "$ac_t""no" 1>&6
1897 elif test "$wxUSE_LIBPNG" = sys; then
1898 echo "$ac_t""system version" 1>&6
1899 elif test "$wxUSE_LIBPNG" = builtin; then
1900 echo "$ac_t""builtin version" 1>&6
1901 else
1902 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1903 fi
1904
1905
1906 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1907echo "configure:1908: checking for --with-libjpeg" >&5
1908 no_cache=0
1909 # Check whether --with-libjpeg or --without-libjpeg was given.
1910if test "${with_libjpeg+set}" = set; then
1911 withval="$with_libjpeg"
1912
1913 if test "$withval" = yes; then
1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1915 elif test "$withval" = no; then
1916 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1917 elif test "$withval" = sys; then
1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1919 elif test "$withval" = builtin; then
1920 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1921 else
1922 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1923 fi
1924
1925else
1926
1927 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1928 if test "x$LINE" != x ; then
1929 eval "DEFAULT_$LINE"
1930 else
1931 no_cache=1
1932 fi
1933
1934 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1935
1936fi
1937
1938
1939 eval "$ac_cv_use_libjpeg"
1940 if test "$no_cache" != 1; then
1941 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1942 fi
1943
1944 if test "$wxUSE_LIBJPEG" = yes; then
1945 echo "$ac_t""yes" 1>&6
1946 elif test "$wxUSE_LIBJPEG" = no; then
1947 echo "$ac_t""no" 1>&6
1948 elif test "$wxUSE_LIBJPEG" = sys; then
1949 echo "$ac_t""system version" 1>&6
1950 elif test "$wxUSE_LIBJPEG" = builtin; then
1951 echo "$ac_t""builtin version" 1>&6
1952 else
1953 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1954 fi
1955
1956
1957 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1958echo "configure:1959: checking for --with-libtiff" >&5
1959 no_cache=0
1960 # Check whether --with-libtiff or --without-libtiff was given.
1961if test "${with_libtiff+set}" = set; then
1962 withval="$with_libtiff"
1963
1964 if test "$withval" = yes; then
1965 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1966 elif test "$withval" = no; then
1967 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1968 elif test "$withval" = sys; then
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1970 elif test "$withval" = builtin; then
1971 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
1972 else
1973 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1974 fi
1975
1976else
1977
1978 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
1985 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1986
1987fi
1988
1989
1990 eval "$ac_cv_use_libtiff"
1991 if test "$no_cache" != 1; then
1992 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1993 fi
1994
1995 if test "$wxUSE_LIBTIFF" = yes; then
1996 echo "$ac_t""yes" 1>&6
1997 elif test "$wxUSE_LIBTIFF" = no; then
1998 echo "$ac_t""no" 1>&6
1999 elif test "$wxUSE_LIBTIFF" = sys; then
2000 echo "$ac_t""system version" 1>&6
2001 elif test "$wxUSE_LIBTIFF" = builtin; then
2002 echo "$ac_t""builtin version" 1>&6
2003 else
2004 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2005 fi
2006
2007
2008 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2009echo "configure:2010: checking for --with-freetype" >&5
2010 no_cache=0
2011 # Check whether --with-freetype or --without-freetype was given.
2012if test "${with_freetype+set}" = set; then
2013 withval="$with_freetype"
2014
2015 if test "$withval" = yes; then
2016 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2017 elif test "$withval" = no; then
2018 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2019 elif test "$withval" = sys; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2021 elif test "$withval" = builtin; then
2022 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2023 else
2024 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2025 fi
2026
2027else
2028
2029 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
2036 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2037
2038fi
2039
2040
2041 eval "$ac_cv_use_freetype"
2042 if test "$no_cache" != 1; then
2043 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2044 fi
2045
2046 if test "$wxUSE_FREETYPE" = yes; then
2047 echo "$ac_t""yes" 1>&6
2048 elif test "$wxUSE_FREETYPE" = no; then
2049 echo "$ac_t""no" 1>&6
2050 elif test "$wxUSE_FREETYPE" = sys; then
2051 echo "$ac_t""system version" 1>&6
2052 elif test "$wxUSE_FREETYPE" = builtin; then
2053 echo "$ac_t""builtin version" 1>&6
2054 else
2055 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2056 fi
2057
2058
2059 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2060echo "configure:2061: checking for --with-opengl" >&5
2061 no_cache=0
2062 # Check whether --with-opengl or --without-opengl was given.
2063if test "${with_opengl+set}" = set; then
2064 withval="$with_opengl"
2065
2066 if test "$withval" = yes; then
2067 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2068 else
2069 ac_cv_use_opengl='wxUSE_OPENGL=no'
2070 fi
2071
2072else
2073
2074 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2075 if test "x$LINE" != x ; then
2076 eval "DEFAULT_$LINE"
2077 else
2078 no_cache=1
2079 fi
2080
2081 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2082
2083fi
2084
2085
2086 eval "$ac_cv_use_opengl"
2087 if test "$no_cache" != 1; then
2088 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2089 fi
2090
2091 if test "$wxUSE_OPENGL" = yes; then
2092 echo "$ac_t""yes" 1>&6
2093 else
2094 echo "$ac_t""no" 1>&6
2095 fi
2096
2097
2098fi
2099
2100
2101 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2102echo "configure:2103: checking for --with-dmalloc" >&5
2103 no_cache=0
2104 # Check whether --with-dmalloc or --without-dmalloc was given.
2105if test "${with_dmalloc+set}" = set; then
2106 withval="$with_dmalloc"
2107
2108 if test "$withval" = yes; then
2109 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2110 else
2111 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2112 fi
2113
2114else
2115
2116 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2117 if test "x$LINE" != x ; then
2118 eval "DEFAULT_$LINE"
2119 else
2120 no_cache=1
2121 fi
2122
2123 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2124
2125fi
2126
2127
2128 eval "$ac_cv_use_dmalloc"
2129 if test "$no_cache" != 1; then
2130 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2131 fi
2132
2133 if test "$wxUSE_DMALLOC" = yes; then
2134 echo "$ac_t""yes" 1>&6
2135 else
2136 echo "$ac_t""no" 1>&6
2137 fi
2138
2139
2140 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2141echo "configure:2142: checking for --with-regex" >&5
2142 no_cache=0
2143 # Check whether --with-regex or --without-regex was given.
2144if test "${with_regex+set}" = set; then
2145 withval="$with_regex"
2146
2147 if test "$withval" = yes; then
2148 ac_cv_use_regex='wxUSE_REGEX=yes'
2149 elif test "$withval" = no; then
2150 ac_cv_use_regex='wxUSE_REGEX=no'
2151 elif test "$withval" = sys; then
2152 ac_cv_use_regex='wxUSE_REGEX=sys'
2153 elif test "$withval" = builtin; then
2154 ac_cv_use_regex='wxUSE_REGEX=builtin'
2155 else
2156 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2157 fi
2158
2159else
2160
2161 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2162 if test "x$LINE" != x ; then
2163 eval "DEFAULT_$LINE"
2164 else
2165 no_cache=1
2166 fi
2167
2168 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2169
2170fi
2171
2172
2173 eval "$ac_cv_use_regex"
2174 if test "$no_cache" != 1; then
2175 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2176 fi
2177
2178 if test "$wxUSE_REGEX" = yes; then
2179 echo "$ac_t""yes" 1>&6
2180 elif test "$wxUSE_REGEX" = no; then
2181 echo "$ac_t""no" 1>&6
2182 elif test "$wxUSE_REGEX" = sys; then
2183 echo "$ac_t""system version" 1>&6
2184 elif test "$wxUSE_REGEX" = builtin; then
2185 echo "$ac_t""builtin version" 1>&6
2186 else
2187 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2188 fi
2189
2190
2191 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2192echo "configure:2193: checking for --with-zlib" >&5
2193 no_cache=0
2194 # Check whether --with-zlib or --without-zlib was given.
2195if test "${with_zlib+set}" = set; then
2196 withval="$with_zlib"
2197
2198 if test "$withval" = yes; then
2199 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2200 elif test "$withval" = no; then
2201 ac_cv_use_zlib='wxUSE_ZLIB=no'
2202 elif test "$withval" = sys; then
2203 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2204 elif test "$withval" = builtin; then
2205 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2206 else
2207 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2208 fi
2209
2210else
2211
2212 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
2219 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2220
2221fi
2222
2223
2224 eval "$ac_cv_use_zlib"
2225 if test "$no_cache" != 1; then
2226 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2227 fi
2228
2229 if test "$wxUSE_ZLIB" = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 elif test "$wxUSE_ZLIB" = no; then
2232 echo "$ac_t""no" 1>&6
2233 elif test "$wxUSE_ZLIB" = sys; then
2234 echo "$ac_t""system version" 1>&6
2235 elif test "$wxUSE_ZLIB" = builtin; then
2236 echo "$ac_t""builtin version" 1>&6
2237 else
2238 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2239 fi
2240
2241
2242 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2243echo "configure:2244: checking for --with-odbc" >&5
2244 no_cache=0
2245 # Check whether --with-odbc or --without-odbc was given.
2246if test "${with_odbc+set}" = set; then
2247 withval="$with_odbc"
2248
2249 if test "$withval" = yes; then
2250 ac_cv_use_odbc='wxUSE_ODBC=yes'
2251 else
2252 ac_cv_use_odbc='wxUSE_ODBC=no'
2253 fi
2254
2255else
2256
2257 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2258 if test "x$LINE" != x ; then
2259 eval "DEFAULT_$LINE"
2260 else
2261 no_cache=1
2262 fi
2263
2264 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2265
2266fi
2267
2268
2269 eval "$ac_cv_use_odbc"
2270 if test "$no_cache" != 1; then
2271 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2272 fi
2273
2274 if test "$wxUSE_ODBC" = yes; then
2275 echo "$ac_t""yes" 1>&6
2276 else
2277 echo "$ac_t""no" 1>&6
2278 fi
2279
2280
2281
2282
2283 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2284echo "configure:2285: checking for --enable-shared" >&5
2285 no_cache=0
2286 # Check whether --enable-shared or --disable-shared was given.
2287if test "${enable_shared+set}" = set; then
2288 enableval="$enable_shared"
2289
2290 if test "$enableval" = yes; then
2291 ac_cv_use_shared='wxUSE_SHARED=yes'
2292 else
2293 ac_cv_use_shared='wxUSE_SHARED=no'
2294 fi
2295
2296else
2297
2298 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2299 if test "x$LINE" != x ; then
2300 eval "DEFAULT_$LINE"
2301 else
2302 no_cache=1
2303 fi
2304
2305 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2306
2307fi
2308
2309
2310 eval "$ac_cv_use_shared"
2311 if test "$no_cache" != 1; then
2312 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2313 fi
2314
2315 if test "$wxUSE_SHARED" = yes; then
2316 echo "$ac_t""yes" 1>&6
2317 else
2318 echo "$ac_t""no" 1>&6
2319 fi
2320
2321
2322 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2323echo "configure:2324: checking for --enable-soname" >&5
2324 no_cache=0
2325 # Check whether --enable-soname or --disable-soname was given.
2326if test "${enable_soname+set}" = set; then
2327 enableval="$enable_soname"
2328
2329 if test "$enableval" = yes; then
2330 ac_cv_use_soname='wxUSE_SONAME=yes'
2331 else
2332 ac_cv_use_soname='wxUSE_SONAME=no'
2333 fi
2334
2335else
2336
2337 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2338 if test "x$LINE" != x ; then
2339 eval "DEFAULT_$LINE"
2340 else
2341 no_cache=1
2342 fi
2343
2344 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2345
2346fi
2347
2348
2349 eval "$ac_cv_use_soname"
2350 if test "$no_cache" != 1; then
2351 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2352 fi
2353
2354 if test "$wxUSE_SONAME" = yes; then
2355 echo "$ac_t""yes" 1>&6
2356 else
2357 echo "$ac_t""no" 1>&6
2358 fi
2359
2360
2361 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2362echo "configure:2363: checking for --enable-optimise" >&5
2363 no_cache=0
2364 # Check whether --enable-optimise or --disable-optimise was given.
2365if test "${enable_optimise+set}" = set; then
2366 enableval="$enable_optimise"
2367
2368 if test "$enableval" = yes; then
2369 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2370 else
2371 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2372 fi
2373
2374else
2375
2376 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2377 if test "x$LINE" != x ; then
2378 eval "DEFAULT_$LINE"
2379 else
2380 no_cache=1
2381 fi
2382
2383 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2384
2385fi
2386
2387
2388 eval "$ac_cv_use_optimise"
2389 if test "$no_cache" != 1; then
2390 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2391 fi
2392
2393 if test "$wxUSE_OPTIMISE" = yes; then
2394 echo "$ac_t""yes" 1>&6
2395 else
2396 echo "$ac_t""no" 1>&6
2397 fi
2398
2399
2400 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2401echo "configure:2402: checking for --enable-debug" >&5
2402 no_cache=0
2403 # Check whether --enable-debug or --disable-debug was given.
2404if test "${enable_debug+set}" = set; then
2405 enableval="$enable_debug"
2406
2407 if test "$enableval" = yes; then
2408 ac_cv_use_debug='wxUSE_DEBUG=yes'
2409 else
2410 ac_cv_use_debug='wxUSE_DEBUG=no'
2411 fi
2412
2413else
2414
2415 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2423
2424fi
2425
2426
2427 eval "$ac_cv_use_debug"
2428 if test "$no_cache" != 1; then
2429 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2430 fi
2431
2432 if test "$wxUSE_DEBUG" = yes; then
2433 echo "$ac_t""yes" 1>&6
2434 else
2435 echo "$ac_t""no" 1>&6
2436 fi
2437
2438
2439
2440 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2441echo "configure:2442: checking for --enable-precomp" >&5
2442 no_cache=0
2443 # Check whether --enable-precomp or --disable-precomp was given.
2444if test "${enable_precomp+set}" = set; then
2445 enableval="$enable_precomp"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2449 else
2450 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2463
2464fi
2465
2466
2467 eval "$ac_cv_use_precomp"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_PRECOMP" = yes; then
2473 echo "$ac_t""yes" 1>&6
2474 else
2475 echo "$ac_t""no" 1>&6
2476 fi
2477
2478
2479if test "$wxUSE_DEBUG" = "yes"; then
2480 DEFAULT_wxUSE_DEBUG_FLAG=yes
2481 DEFAULT_wxUSE_DEBUG_INFO=yes
2482elif test "$wxUSE_DEBUG" = "no"; then
2483 DEFAULT_wxUSE_DEBUG_FLAG=no
2484 DEFAULT_wxUSE_DEBUG_INFO=no
2485fi
2486
2487
2488 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2489echo "configure:2490: checking for --enable-debug_flag" >&5
2490 no_cache=0
2491 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2492if test "${enable_debug_flag+set}" = set; then
2493 enableval="$enable_debug_flag"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2497 else
2498 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2511
2512fi
2513
2514
2515 eval "$ac_cv_use_debug_flag"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_DEBUG_FLAG" = yes; then
2521 echo "$ac_t""yes" 1>&6
2522 else
2523 echo "$ac_t""no" 1>&6
2524 fi
2525
2526
2527 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2528echo "configure:2529: checking for --enable-debug_info" >&5
2529 no_cache=0
2530 # Check whether --enable-debug_info or --disable-debug_info was given.
2531if test "${enable_debug_info+set}" = set; then
2532 enableval="$enable_debug_info"
2533
2534 if test "$enableval" = yes; then
2535 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2536 else
2537 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2538 fi
2539
2540else
2541
2542 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2543 if test "x$LINE" != x ; then
2544 eval "DEFAULT_$LINE"
2545 else
2546 no_cache=1
2547 fi
2548
2549 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2550
2551fi
2552
2553
2554 eval "$ac_cv_use_debug_info"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_DEBUG_INFO" = yes; then
2560 echo "$ac_t""yes" 1>&6
2561 else
2562 echo "$ac_t""no" 1>&6
2563 fi
2564
2565
2566 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2567echo "configure:2568: checking for --enable-debug_gdb" >&5
2568 no_cache=0
2569 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2570if test "${enable_debug_gdb+set}" = set; then
2571 enableval="$enable_debug_gdb"
2572
2573 if test "$enableval" = yes; then
2574 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2575 else
2576 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2577 fi
2578
2579else
2580
2581 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2582 if test "x$LINE" != x ; then
2583 eval "DEFAULT_$LINE"
2584 else
2585 no_cache=1
2586 fi
2587
2588 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2589
2590fi
2591
2592
2593 eval "$ac_cv_use_debug_gdb"
2594 if test "$no_cache" != 1; then
2595 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2596 fi
2597
2598 if test "$wxUSE_DEBUG_GDB" = yes; then
2599 echo "$ac_t""yes" 1>&6
2600 else
2601 echo "$ac_t""no" 1>&6
2602 fi
2603
2604
2605 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2606echo "configure:2607: checking for --enable-debug_cntxt" >&5
2607 no_cache=0
2608 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2609if test "${enable_debug_cntxt+set}" = set; then
2610 enableval="$enable_debug_cntxt"
2611
2612 if test "$enableval" = yes; then
2613 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2614 else
2615 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2616 fi
2617
2618else
2619
2620 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2621 if test "x$LINE" != x ; then
2622 eval "DEFAULT_$LINE"
2623 else
2624 no_cache=1
2625 fi
2626
2627 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2628
2629fi
2630
2631
2632 eval "$ac_cv_use_debug_cntxt"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2638 echo "$ac_t""yes" 1>&6
2639 else
2640 echo "$ac_t""no" 1>&6
2641 fi
2642
2643
2644 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2645echo "configure:2646: checking for --enable-mem_tracing" >&5
2646 no_cache=0
2647 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2648if test "${enable_mem_tracing+set}" = set; then
2649 enableval="$enable_mem_tracing"
2650
2651 if test "$enableval" = yes; then
2652 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2653 else
2654 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2655 fi
2656
2657else
2658
2659 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
2666 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2667
2668fi
2669
2670
2671 eval "$ac_cv_use_mem_tracing"
2672 if test "$no_cache" != 1; then
2673 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2674 fi
2675
2676 if test "$wxUSE_MEM_TRACING" = yes; then
2677 echo "$ac_t""yes" 1>&6
2678 else
2679 echo "$ac_t""no" 1>&6
2680 fi
2681
2682
2683 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2684echo "configure:2685: checking for --enable-profile" >&5
2685 no_cache=0
2686 # Check whether --enable-profile or --disable-profile was given.
2687if test "${enable_profile+set}" = set; then
2688 enableval="$enable_profile"
2689
2690 if test "$enableval" = yes; then
2691 ac_cv_use_profile='wxUSE_PROFILE=yes'
2692 else
2693 ac_cv_use_profile='wxUSE_PROFILE=no'
2694 fi
2695
2696else
2697
2698 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2699 if test "x$LINE" != x ; then
2700 eval "DEFAULT_$LINE"
2701 else
2702 no_cache=1
2703 fi
2704
2705 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2706
2707fi
2708
2709
2710 eval "$ac_cv_use_profile"
2711 if test "$no_cache" != 1; then
2712 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2713 fi
2714
2715 if test "$wxUSE_PROFILE" = yes; then
2716 echo "$ac_t""yes" 1>&6
2717 else
2718 echo "$ac_t""no" 1>&6
2719 fi
2720
2721
2722 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2723echo "configure:2724: checking for --enable-no_rtti" >&5
2724 no_cache=0
2725 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2726if test "${enable_no_rtti+set}" = set; then
2727 enableval="$enable_no_rtti"
2728
2729 if test "$enableval" = yes; then
2730 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2731 else
2732 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2733 fi
2734
2735else
2736
2737 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2738 if test "x$LINE" != x ; then
2739 eval "DEFAULT_$LINE"
2740 else
2741 no_cache=1
2742 fi
2743
2744 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2745
2746fi
2747
2748
2749 eval "$ac_cv_use_no_rtti"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$wxUSE_NO_RTTI" = yes; then
2755 echo "$ac_t""yes" 1>&6
2756 else
2757 echo "$ac_t""no" 1>&6
2758 fi
2759
2760
2761 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2762echo "configure:2763: checking for --enable-no_exceptions" >&5
2763 no_cache=0
2764 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2765if test "${enable_no_exceptions+set}" = set; then
2766 enableval="$enable_no_exceptions"
2767
2768 if test "$enableval" = yes; then
2769 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2770 else
2771 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2772 fi
2773
2774else
2775
2776 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2777 if test "x$LINE" != x ; then
2778 eval "DEFAULT_$LINE"
2779 else
2780 no_cache=1
2781 fi
2782
2783 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2784
2785fi
2786
2787
2788 eval "$ac_cv_use_no_exceptions"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2794 echo "$ac_t""yes" 1>&6
2795 else
2796 echo "$ac_t""no" 1>&6
2797 fi
2798
2799
2800 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2801echo "configure:2802: checking for --enable-permissive" >&5
2802 no_cache=0
2803 # Check whether --enable-permissive or --disable-permissive was given.
2804if test "${enable_permissive+set}" = set; then
2805 enableval="$enable_permissive"
2806
2807 if test "$enableval" = yes; then
2808 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2809 else
2810 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2811 fi
2812
2813else
2814
2815 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2816 if test "x$LINE" != x ; then
2817 eval "DEFAULT_$LINE"
2818 else
2819 no_cache=1
2820 fi
2821
2822 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2823
2824fi
2825
2826
2827 eval "$ac_cv_use_permissive"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_PERMISSIVE" = yes; then
2833 echo "$ac_t""yes" 1>&6
2834 else
2835 echo "$ac_t""no" 1>&6
2836 fi
2837
2838
2839 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2840echo "configure:2841: checking for --enable-no_deps" >&5
2841 no_cache=0
2842 # Check whether --enable-no_deps or --disable-no_deps was given.
2843if test "${enable_no_deps+set}" = set; then
2844 enableval="$enable_no_deps"
2845
2846 if test "$enableval" = yes; then
2847 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2848 else
2849 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2850 fi
2851
2852else
2853
2854 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2855 if test "x$LINE" != x ; then
2856 eval "DEFAULT_$LINE"
2857 else
2858 no_cache=1
2859 fi
2860
2861 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2862
2863fi
2864
2865
2866 eval "$ac_cv_use_no_deps"
2867 if test "$no_cache" != 1; then
2868 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2869 fi
2870
2871 if test "$wxUSE_NO_DEPS" = yes; then
2872 echo "$ac_t""yes" 1>&6
2873 else
2874 echo "$ac_t""no" 1>&6
2875 fi
2876
2877
2878
2879 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2880echo "configure:2881: checking for --enable-compat20" >&5
2881 no_cache=0
2882 # Check whether --enable-compat20 or --disable-compat20 was given.
2883if test "${enable_compat20+set}" = set; then
2884 enableval="$enable_compat20"
2885
2886 if test "$enableval" = yes; then
2887 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2888 else
2889 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2890 fi
2891
2892else
2893
2894 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2895 if test "x$LINE" != x ; then
2896 eval "DEFAULT_$LINE"
2897 else
2898 no_cache=1
2899 fi
2900
2901 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2902
2903fi
2904
2905
2906 eval "$ac_cv_use_compat20"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2912 echo "$ac_t""yes" 1>&6
2913 else
2914 echo "$ac_t""no" 1>&6
2915 fi
2916
2917
2918 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2919echo "configure:2920: checking for --enable-compat22" >&5
2920 no_cache=0
2921 # Check whether --enable-compat22 or --disable-compat22 was given.
2922if test "${enable_compat22+set}" = set; then
2923 enableval="$enable_compat22"
2924
2925 if test "$enableval" = yes; then
2926 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2927 else
2928 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2929 fi
2930
2931else
2932
2933 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2941
2942fi
2943
2944
2945 eval "$ac_cv_use_compat22"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2951 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2954 fi
2955
2956
2957
2958
2959 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2960echo "configure:2961: checking for --enable-intl" >&5
2961 no_cache=0
2962 # Check whether --enable-intl or --disable-intl was given.
2963if test "${enable_intl+set}" = set; then
2964 enableval="$enable_intl"
2965
2966 if test "$enableval" = yes; then
2967 ac_cv_use_intl='wxUSE_INTL=yes'
2968 else
2969 ac_cv_use_intl='wxUSE_INTL=no'
2970 fi
2971
2972else
2973
2974 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2975 if test "x$LINE" != x ; then
2976 eval "DEFAULT_$LINE"
2977 else
2978 no_cache=1
2979 fi
2980
2981 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2982
2983fi
2984
2985
2986 eval "$ac_cv_use_intl"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_INTL" = yes; then
2992 echo "$ac_t""yes" 1>&6
2993 else
2994 echo "$ac_t""no" 1>&6
2995 fi
2996
2997
2998 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2999echo "configure:3000: checking for --enable-config" >&5
3000 no_cache=0
3001 # Check whether --enable-config or --disable-config was given.
3002if test "${enable_config+set}" = set; then
3003 enableval="$enable_config"
3004
3005 if test "$enableval" = yes; then
3006 ac_cv_use_config='wxUSE_CONFIG=yes'
3007 else
3008 ac_cv_use_config='wxUSE_CONFIG=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3021
3022fi
3023
3024
3025 eval "$ac_cv_use_config"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_CONFIG" = yes; then
3031 echo "$ac_t""yes" 1>&6
3032 else
3033 echo "$ac_t""no" 1>&6
3034 fi
3035
3036
3037
3038 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3039echo "configure:3040: checking for --enable-sockets" >&5
3040 no_cache=0
3041 # Check whether --enable-sockets or --disable-sockets was given.
3042if test "${enable_sockets+set}" = set; then
3043 enableval="$enable_sockets"
3044
3045 if test "$enableval" = yes; then
3046 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3047 else
3048 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3049 fi
3050
3051else
3052
3053 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3061
3062fi
3063
3064
3065 eval "$ac_cv_use_sockets"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_SOCKETS" = yes; then
3071 echo "$ac_t""yes" 1>&6
3072 else
3073 echo "$ac_t""no" 1>&6
3074 fi
3075
3076
3077
3078 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3079echo "configure:3080: checking for --enable-ipc" >&5
3080 no_cache=0
3081 # Check whether --enable-ipc or --disable-ipc was given.
3082if test "${enable_ipc+set}" = set; then
3083 enableval="$enable_ipc"
3084
3085 if test "$enableval" = yes; then
3086 ac_cv_use_ipc='wxUSE_IPC=yes'
3087 else
3088 ac_cv_use_ipc='wxUSE_IPC=no'
3089 fi
3090
3091else
3092
3093 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3094 if test "x$LINE" != x ; then
3095 eval "DEFAULT_$LINE"
3096 else
3097 no_cache=1
3098 fi
3099
3100 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3101
3102fi
3103
3104
3105 eval "$ac_cv_use_ipc"
3106 if test "$no_cache" != 1; then
3107 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3108 fi
3109
3110 if test "$wxUSE_IPC" = yes; then
3111 echo "$ac_t""yes" 1>&6
3112 else
3113 echo "$ac_t""no" 1>&6
3114 fi
3115
3116
3117
3118 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3119echo "configure:3120: checking for --enable-cmdline" >&5
3120 no_cache=0
3121 # Check whether --enable-cmdline or --disable-cmdline was given.
3122if test "${enable_cmdline+set}" = set; then
3123 enableval="$enable_cmdline"
3124
3125 if test "$enableval" = yes; then
3126 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3127 else
3128 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3129 fi
3130
3131else
3132
3133 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3141
3142fi
3143
3144
3145 eval "$ac_cv_use_cmdline"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3151 echo "$ac_t""yes" 1>&6
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155
3156
3157 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3158echo "configure:3159: checking for --enable-datetime" >&5
3159 no_cache=0
3160 # Check whether --enable-datetime or --disable-datetime was given.
3161if test "${enable_datetime+set}" = set; then
3162 enableval="$enable_datetime"
3163
3164 if test "$enableval" = yes; then
3165 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3166 else
3167 ac_cv_use_datetime='wxUSE_DATETIME=no'
3168 fi
3169
3170else
3171
3172 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3173 if test "x$LINE" != x ; then
3174 eval "DEFAULT_$LINE"
3175 else
3176 no_cache=1
3177 fi
3178
3179 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3180
3181fi
3182
3183
3184 eval "$ac_cv_use_datetime"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_DATETIME" = yes; then
3190 echo "$ac_t""yes" 1>&6
3191 else
3192 echo "$ac_t""no" 1>&6
3193 fi
3194
3195
3196 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3197echo "configure:3198: checking for --enable-timedate" >&5
3198 no_cache=0
3199 # Check whether --enable-timedate or --disable-timedate was given.
3200if test "${enable_timedate+set}" = set; then
3201 enableval="$enable_timedate"
3202
3203 if test "$enableval" = yes; then
3204 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3205 else
3206 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3207 fi
3208
3209else
3210
3211 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3212 if test "x$LINE" != x ; then
3213 eval "DEFAULT_$LINE"
3214 else
3215 no_cache=1
3216 fi
3217
3218 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3219
3220fi
3221
3222
3223 eval "$ac_cv_use_timedate"
3224 if test "$no_cache" != 1; then
3225 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3226 fi
3227
3228 if test "$wxUSE_TIMEDATE" = yes; then
3229 echo "$ac_t""yes" 1>&6
3230 else
3231 echo "$ac_t""no" 1>&6
3232 fi
3233
3234
3235 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3236echo "configure:3237: checking for --enable-stopwatch" >&5
3237 no_cache=0
3238 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3239if test "${enable_stopwatch+set}" = set; then
3240 enableval="$enable_stopwatch"
3241
3242 if test "$enableval" = yes; then
3243 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3244 else
3245 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3246 fi
3247
3248else
3249
3250 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3251 if test "x$LINE" != x ; then
3252 eval "DEFAULT_$LINE"
3253 else
3254 no_cache=1
3255 fi
3256
3257 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3258
3259fi
3260
3261
3262 eval "$ac_cv_use_stopwatch"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_STOPWATCH" = yes; then
3268 echo "$ac_t""yes" 1>&6
3269 else
3270 echo "$ac_t""no" 1>&6
3271 fi
3272
3273
3274 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3275echo "configure:3276: checking for --enable-dialupman" >&5
3276 no_cache=0
3277 # Check whether --enable-dialupman or --disable-dialupman was given.
3278if test "${enable_dialupman+set}" = set; then
3279 enableval="$enable_dialupman"
3280
3281 if test "$enableval" = yes; then
3282 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3283 else
3284 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3297
3298fi
3299
3300
3301 eval "$ac_cv_use_dialupman"
3302 if test "$no_cache" != 1; then
3303 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3304 fi
3305
3306 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3307 echo "$ac_t""yes" 1>&6
3308 else
3309 echo "$ac_t""no" 1>&6
3310 fi
3311
3312
3313 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3314echo "configure:3315: checking for --enable-apple_ieee" >&5
3315 no_cache=0
3316 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3317if test "${enable_apple_ieee+set}" = set; then
3318 enableval="$enable_apple_ieee"
3319
3320 if test "$enableval" = yes; then
3321 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3322 else
3323 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3324 fi
3325
3326else
3327
3328 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3329 if test "x$LINE" != x ; then
3330 eval "DEFAULT_$LINE"
3331 else
3332 no_cache=1
3333 fi
3334
3335 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3336
3337fi
3338
3339
3340 eval "$ac_cv_use_apple_ieee"
3341 if test "$no_cache" != 1; then
3342 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3343 fi
3344
3345 if test "$wxUSE_APPLE_IEEE" = yes; then
3346 echo "$ac_t""yes" 1>&6
3347 else
3348 echo "$ac_t""no" 1>&6
3349 fi
3350
3351
3352 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3353echo "configure:3354: checking for --enable-timer" >&5
3354 no_cache=0
3355 # Check whether --enable-timer or --disable-timer was given.
3356if test "${enable_timer+set}" = set; then
3357 enableval="$enable_timer"
3358
3359 if test "$enableval" = yes; then
3360 ac_cv_use_timer='wxUSE_TIMER=yes'
3361 else
3362 ac_cv_use_timer='wxUSE_TIMER=no'
3363 fi
3364
3365else
3366
3367 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3368 if test "x$LINE" != x ; then
3369 eval "DEFAULT_$LINE"
3370 else
3371 no_cache=1
3372 fi
3373
3374 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3375
3376fi
3377
3378
3379 eval "$ac_cv_use_timer"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_TIMER" = yes; then
3385 echo "$ac_t""yes" 1>&6
3386 else
3387 echo "$ac_t""no" 1>&6
3388 fi
3389
3390
3391 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3392echo "configure:3393: checking for --enable-wave" >&5
3393 no_cache=0
3394 # Check whether --enable-wave or --disable-wave was given.
3395if test "${enable_wave+set}" = set; then
3396 enableval="$enable_wave"
3397
3398 if test "$enableval" = yes; then
3399 ac_cv_use_wave='wxUSE_WAVE=yes'
3400 else
3401 ac_cv_use_wave='wxUSE_WAVE=no'
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3414
3415fi
3416
3417
3418 eval "$ac_cv_use_wave"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_WAVE" = yes; then
3424 echo "$ac_t""yes" 1>&6
3425 else
3426 echo "$ac_t""no" 1>&6
3427 fi
3428
3429
3430 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3431echo "configure:3432: checking for --enable-fraction" >&5
3432 no_cache=0
3433 # Check whether --enable-fraction or --disable-fraction was given.
3434if test "${enable_fraction+set}" = set; then
3435 enableval="$enable_fraction"
3436
3437 if test "$enableval" = yes; then
3438 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3439 else
3440 ac_cv_use_fraction='wxUSE_FRACTION=no'
3441 fi
3442
3443else
3444
3445 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3446 if test "x$LINE" != x ; then
3447 eval "DEFAULT_$LINE"
3448 else
3449 no_cache=1
3450 fi
3451
3452 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3453
3454fi
3455
3456
3457 eval "$ac_cv_use_fraction"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_FRACTION" = yes; then
3463 echo "$ac_t""yes" 1>&6
3464 else
3465 echo "$ac_t""no" 1>&6
3466 fi
3467
3468
3469 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3470echo "configure:3471: checking for --enable-dynlib" >&5
3471 no_cache=0
3472 # Check whether --enable-dynlib or --disable-dynlib was given.
3473if test "${enable_dynlib+set}" = set; then
3474 enableval="$enable_dynlib"
3475
3476 if test "$enableval" = yes; then
3477 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3478 else
3479 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3480 fi
3481
3482else
3483
3484 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3485 if test "x$LINE" != x ; then
3486 eval "DEFAULT_$LINE"
3487 else
3488 no_cache=1
3489 fi
3490
3491 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3492
3493fi
3494
3495
3496 eval "$ac_cv_use_dynlib"
3497 if test "$no_cache" != 1; then
3498 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3499 fi
3500
3501 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3502 echo "$ac_t""yes" 1>&6
3503 else
3504 echo "$ac_t""no" 1>&6
3505 fi
3506
3507
3508 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3509echo "configure:3510: checking for --enable-longlong" >&5
3510 no_cache=0
3511 # Check whether --enable-longlong or --disable-longlong was given.
3512if test "${enable_longlong+set}" = set; then
3513 enableval="$enable_longlong"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3517 else
3518 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3519 fi
3520
3521else
3522
3523 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3531
3532fi
3533
3534
3535 eval "$ac_cv_use_longlong"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_LONGLONG" = yes; then
3541 echo "$ac_t""yes" 1>&6
3542 else
3543 echo "$ac_t""no" 1>&6
3544 fi
3545
3546
3547 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3548echo "configure:3549: checking for --enable-geometry" >&5
3549 no_cache=0
3550 # Check whether --enable-geometry or --disable-geometry was given.
3551if test "${enable_geometry+set}" = set; then
3552 enableval="$enable_geometry"
3553
3554 if test "$enableval" = yes; then
3555 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3556 else
3557 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3558 fi
3559
3560else
3561
3562 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3570
3571fi
3572
3573
3574 eval "$ac_cv_use_geometry"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_GEOMETRY" = yes; then
3580 echo "$ac_t""yes" 1>&6
3581 else
3582 echo "$ac_t""no" 1>&6
3583 fi
3584
3585
3586 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3587echo "configure:3588: checking for --enable-log" >&5
3588 no_cache=0
3589 # Check whether --enable-log or --disable-log was given.
3590if test "${enable_log+set}" = set; then
3591 enableval="$enable_log"
3592
3593 if test "$enableval" = yes; then
3594 ac_cv_use_log='wxUSE_LOG=yes'
3595 else
3596 ac_cv_use_log='wxUSE_LOG=no'
3597 fi
3598
3599else
3600
3601 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3609
3610fi
3611
3612
3613 eval "$ac_cv_use_log"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_LOG" = yes; then
3619 echo "$ac_t""yes" 1>&6
3620 else
3621 echo "$ac_t""no" 1>&6
3622 fi
3623
3624
3625 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3626echo "configure:3627: checking for --enable-streams" >&5
3627 no_cache=0
3628 # Check whether --enable-streams or --disable-streams was given.
3629if test "${enable_streams+set}" = set; then
3630 enableval="$enable_streams"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_streams='wxUSE_STREAMS=yes'
3634 else
3635 ac_cv_use_streams='wxUSE_STREAMS=no'
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3648
3649fi
3650
3651
3652 eval "$ac_cv_use_streams"
3653 if test "$no_cache" != 1; then
3654 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3655 fi
3656
3657 if test "$wxUSE_STREAMS" = yes; then
3658 echo "$ac_t""yes" 1>&6
3659 else
3660 echo "$ac_t""no" 1>&6
3661 fi
3662
3663
3664 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3665echo "configure:3666: checking for --enable-file" >&5
3666 no_cache=0
3667 # Check whether --enable-file or --disable-file was given.
3668if test "${enable_file+set}" = set; then
3669 enableval="$enable_file"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_file='wxUSE_FILE=yes'
3673 else
3674 ac_cv_use_file='wxUSE_FILE=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3687
3688fi
3689
3690
3691 eval "$ac_cv_use_file"
3692 if test "$no_cache" != 1; then
3693 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3694 fi
3695
3696 if test "$wxUSE_FILE" = yes; then
3697 echo "$ac_t""yes" 1>&6
3698 else
3699 echo "$ac_t""no" 1>&6
3700 fi
3701
3702
3703 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3704echo "configure:3705: checking for --enable-ffile" >&5
3705 no_cache=0
3706 # Check whether --enable-ffile or --disable-ffile was given.
3707if test "${enable_ffile+set}" = set; then
3708 enableval="$enable_ffile"
3709
3710 if test "$enableval" = yes; then
3711 ac_cv_use_ffile='wxUSE_FFILE=yes'
3712 else
3713 ac_cv_use_ffile='wxUSE_FFILE=no'
3714 fi
3715
3716else
3717
3718 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3719 if test "x$LINE" != x ; then
3720 eval "DEFAULT_$LINE"
3721 else
3722 no_cache=1
3723 fi
3724
3725 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3726
3727fi
3728
3729
3730 eval "$ac_cv_use_ffile"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_FFILE" = yes; then
3736 echo "$ac_t""yes" 1>&6
3737 else
3738 echo "$ac_t""no" 1>&6
3739 fi
3740
3741
3742 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3743echo "configure:3744: checking for --enable-textbuf" >&5
3744 no_cache=0
3745 # Check whether --enable-textbuf or --disable-textbuf was given.
3746if test "${enable_textbuf+set}" = set; then
3747 enableval="$enable_textbuf"
3748
3749 if test "$enableval" = yes; then
3750 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3751 else
3752 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3753 fi
3754
3755else
3756
3757 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3758 if test "x$LINE" != x ; then
3759 eval "DEFAULT_$LINE"
3760 else
3761 no_cache=1
3762 fi
3763
3764 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3765
3766fi
3767
3768
3769 eval "$ac_cv_use_textbuf"
3770 if test "$no_cache" != 1; then
3771 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3772 fi
3773
3774 if test "$wxUSE_TEXTBUFFER" = yes; then
3775 echo "$ac_t""yes" 1>&6
3776 else
3777 echo "$ac_t""no" 1>&6
3778 fi
3779
3780
3781 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3782echo "configure:3783: checking for --enable-textfile" >&5
3783 no_cache=0
3784 # Check whether --enable-textfile or --disable-textfile was given.
3785if test "${enable_textfile+set}" = set; then
3786 enableval="$enable_textfile"
3787
3788 if test "$enableval" = yes; then
3789 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3790 else
3791 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3792 fi
3793
3794else
3795
3796 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3797 if test "x$LINE" != x ; then
3798 eval "DEFAULT_$LINE"
3799 else
3800 no_cache=1
3801 fi
3802
3803 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3804
3805fi
3806
3807
3808 eval "$ac_cv_use_textfile"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_TEXTFILE" = yes; then
3814 echo "$ac_t""yes" 1>&6
3815 else
3816 echo "$ac_t""no" 1>&6
3817 fi
3818
3819
3820 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3821echo "configure:3822: checking for --enable-fontmap" >&5
3822 no_cache=0
3823 # Check whether --enable-fontmap or --disable-fontmap was given.
3824if test "${enable_fontmap+set}" = set; then
3825 enableval="$enable_fontmap"
3826
3827 if test "$enableval" = yes; then
3828 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3829 else
3830 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3831 fi
3832
3833else
3834
3835 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3836 if test "x$LINE" != x ; then
3837 eval "DEFAULT_$LINE"
3838 else
3839 no_cache=1
3840 fi
3841
3842 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3843
3844fi
3845
3846
3847 eval "$ac_cv_use_fontmap"
3848 if test "$no_cache" != 1; then
3849 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3850 fi
3851
3852 if test "$wxUSE_FONTMAP" = yes; then
3853 echo "$ac_t""yes" 1>&6
3854 else
3855 echo "$ac_t""no" 1>&6
3856 fi
3857
3858
3859 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3860echo "configure:3861: checking for --enable-unicode" >&5
3861 no_cache=0
3862 # Check whether --enable-unicode or --disable-unicode was given.
3863if test "${enable_unicode+set}" = set; then
3864 enableval="$enable_unicode"
3865
3866 if test "$enableval" = yes; then
3867 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3868 else
3869 ac_cv_use_unicode='wxUSE_UNICODE=no'
3870 fi
3871
3872else
3873
3874 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3875 if test "x$LINE" != x ; then
3876 eval "DEFAULT_$LINE"
3877 else
3878 no_cache=1
3879 fi
3880
3881 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3882
3883fi
3884
3885
3886 eval "$ac_cv_use_unicode"
3887 if test "$no_cache" != 1; then
3888 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3889 fi
3890
3891 if test "$wxUSE_UNICODE" = yes; then
3892 echo "$ac_t""yes" 1>&6
3893 else
3894 echo "$ac_t""no" 1>&6
3895 fi
3896
3897
3898 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3899echo "configure:3900: checking for --enable-wxprintfv" >&5
3900 no_cache=0
3901 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3902if test "${enable_wxprintfv+set}" = set; then
3903 enableval="$enable_wxprintfv"
3904
3905 if test "$enableval" = yes; then
3906 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3907 else
3908 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3909 fi
3910
3911else
3912
3913 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3921
3922fi
3923
3924
3925 eval "$ac_cv_use_wxprintfv"
3926 if test "$no_cache" != 1; then
3927 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3928 fi
3929
3930 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3931 echo "$ac_t""yes" 1>&6
3932 else
3933 echo "$ac_t""no" 1>&6
3934 fi
3935
3936
3937 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3938echo "configure:3939: checking for --enable-std_iostreams" >&5
3939 no_cache=0
3940 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3941if test "${enable_std_iostreams+set}" = set; then
3942 enableval="$enable_std_iostreams"
3943
3944 if test "$enableval" = yes; then
3945 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3946 else
3947 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3948 fi
3949
3950else
3951
3952 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3960
3961fi
3962
3963
3964 eval "$ac_cv_use_std_iostreams"
3965 if test "$no_cache" != 1; then
3966 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3967 fi
3968
3969 if test "$wxUSE_STD_IOSTREAM" = yes; then
3970 echo "$ac_t""yes" 1>&6
3971 else
3972 echo "$ac_t""no" 1>&6
3973 fi
3974
3975
3976 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3977echo "configure:3978: checking for --enable-filesystem" >&5
3978 no_cache=0
3979 # Check whether --enable-filesystem or --disable-filesystem was given.
3980if test "${enable_filesystem+set}" = set; then
3981 enableval="$enable_filesystem"
3982
3983 if test "$enableval" = yes; then
3984 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3985 else
3986 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3987 fi
3988
3989else
3990
3991 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3999
4000fi
4001
4002
4003 eval "$ac_cv_use_filesystem"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_FILESYSTEM" = yes; then
4009 echo "$ac_t""yes" 1>&6
4010 else
4011 echo "$ac_t""no" 1>&6
4012 fi
4013
4014
4015 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4016echo "configure:4017: checking for --enable-fs_inet" >&5
4017 no_cache=0
4018 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4019if test "${enable_fs_inet+set}" = set; then
4020 enableval="$enable_fs_inet"
4021
4022 if test "$enableval" = yes; then
4023 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4024 else
4025 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4026 fi
4027
4028else
4029
4030 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4038
4039fi
4040
4041
4042 eval "$ac_cv_use_fs_inet"
4043 if test "$no_cache" != 1; then
4044 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4045 fi
4046
4047 if test "$wxUSE_FS_INET" = yes; then
4048 echo "$ac_t""yes" 1>&6
4049 else
4050 echo "$ac_t""no" 1>&6
4051 fi
4052
4053
4054 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4055echo "configure:4056: checking for --enable-fs_zip" >&5
4056 no_cache=0
4057 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4058if test "${enable_fs_zip+set}" = set; then
4059 enableval="$enable_fs_zip"
4060
4061 if test "$enableval" = yes; then
4062 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4063 else
4064 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4065 fi
4066
4067else
4068
4069 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4070 if test "x$LINE" != x ; then
4071 eval "DEFAULT_$LINE"
4072 else
4073 no_cache=1
4074 fi
4075
4076 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4077
4078fi
4079
4080
4081 eval "$ac_cv_use_fs_zip"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$wxUSE_FS_ZIP" = yes; then
4087 echo "$ac_t""yes" 1>&6
4088 else
4089 echo "$ac_t""no" 1>&6
4090 fi
4091
4092
4093 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4094echo "configure:4095: checking for --enable-zipstream" >&5
4095 no_cache=0
4096 # Check whether --enable-zipstream or --disable-zipstream was given.
4097if test "${enable_zipstream+set}" = set; then
4098 enableval="$enable_zipstream"
4099
4100 if test "$enableval" = yes; then
4101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4102 else
4103 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4104 fi
4105
4106else
4107
4108 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4109 if test "x$LINE" != x ; then
4110 eval "DEFAULT_$LINE"
4111 else
4112 no_cache=1
4113 fi
4114
4115 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4116
4117fi
4118
4119
4120 eval "$ac_cv_use_zipstream"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_ZIPSTREAM" = yes; then
4126 echo "$ac_t""yes" 1>&6
4127 else
4128 echo "$ac_t""no" 1>&6
4129 fi
4130
4131
4132
4133 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4134echo "configure:4135: checking for --enable-catch_segvs" >&5
4135 no_cache=0
4136 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4137if test "${enable_catch_segvs+set}" = set; then
4138 enableval="$enable_catch_segvs"
4139
4140 if test "$enableval" = yes; then
4141 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4142 else
4143 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4144 fi
4145
4146else
4147
4148 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4156
4157fi
4158
4159
4160 eval "$ac_cv_use_catch_segvs"
4161 if test "$no_cache" != 1; then
4162 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4163 fi
4164
4165 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4166 echo "$ac_t""yes" 1>&6
4167 else
4168 echo "$ac_t""no" 1>&6
4169 fi
4170
4171
4172 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4173echo "configure:4174: checking for --enable-snglinst" >&5
4174 no_cache=0
4175 # Check whether --enable-snglinst or --disable-snglinst was given.
4176if test "${enable_snglinst+set}" = set; then
4177 enableval="$enable_snglinst"
4178
4179 if test "$enableval" = yes; then
4180 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4181 else
4182 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4183 fi
4184
4185else
4186
4187 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4195
4196fi
4197
4198
4199 eval "$ac_cv_use_snglinst"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4205 echo "$ac_t""yes" 1>&6
4206 else
4207 echo "$ac_t""no" 1>&6
4208 fi
4209
4210
4211
4212 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4213echo "configure:4214: checking for --enable-mimetype" >&5
4214 no_cache=0
4215 # Check whether --enable-mimetype or --disable-mimetype was given.
4216if test "${enable_mimetype+set}" = set; then
4217 enableval="$enable_mimetype"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4221 else
4222 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4223 fi
4224
4225else
4226
4227 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4235
4236fi
4237
4238
4239 eval "$ac_cv_use_mimetype"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_MIMETYPE" = yes; then
4245 echo "$ac_t""yes" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4248 fi
4249
4250
4251 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4252echo "configure:4253: checking for --enable-system_options" >&5
4253 no_cache=0
4254 # Check whether --enable-system_options or --disable-system_options was given.
4255if test "${enable_system_options+set}" = set; then
4256 enableval="$enable_system_options"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4260 else
4261 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4262 fi
4263
4264else
4265
4266 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4274
4275fi
4276
4277
4278 eval "$ac_cv_use_system_options"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
4290
4291
4292 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4293echo "configure:4294: checking for --enable-threads" >&5
4294 no_cache=0
4295 # Check whether --enable-threads or --disable-threads was given.
4296if test "${enable_threads+set}" = set; then
4297 enableval="$enable_threads"
4298
4299 if test "$enableval" = yes; then
4300 ac_cv_use_threads='wxUSE_THREADS=yes'
4301 else
4302 ac_cv_use_threads='wxUSE_THREADS=no'
4303 fi
4304
4305else
4306
4307 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4315
4316fi
4317
4318
4319 eval "$ac_cv_use_threads"
4320 if test "$no_cache" != 1; then
4321 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4322 fi
4323
4324 if test "$wxUSE_THREADS" = yes; then
4325 echo "$ac_t""yes" 1>&6
4326 else
4327 echo "$ac_t""no" 1>&6
4328 fi
4329
4330
4331 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4332echo "configure:4333: checking for --enable-serial" >&5
4333 no_cache=0
4334 # Check whether --enable-serial or --disable-serial was given.
4335if test "${enable_serial+set}" = set; then
4336 enableval="$enable_serial"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_serial='wxUSE_SERIAL=yes'
4340 else
4341 ac_cv_use_serial='wxUSE_SERIAL=no'
4342 fi
4343
4344else
4345
4346 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4354
4355fi
4356
4357
4358 eval "$ac_cv_use_serial"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_SERIAL" = yes; then
4364 echo "$ac_t""yes" 1>&6
4365 else
4366 echo "$ac_t""no" 1>&6
4367 fi
4368
4369
4370if test "$wxUSE_GUI" = "yes"; then
4371
4372
4373
4374 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4375echo "configure:4376: checking for --enable-docview" >&5
4376 no_cache=0
4377 # Check whether --enable-docview or --disable-docview was given.
4378if test "${enable_docview+set}" = set; then
4379 enableval="$enable_docview"
4380
4381 if test "$enableval" = yes; then
4382 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4383 else
4384 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4385 fi
4386
4387else
4388
4389 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4390 if test "x$LINE" != x ; then
4391 eval "DEFAULT_$LINE"
4392 else
4393 no_cache=1
4394 fi
4395
4396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4397
4398fi
4399
4400
4401 eval "$ac_cv_use_docview"
4402 if test "$no_cache" != 1; then
4403 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4404 fi
4405
4406 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4407 echo "$ac_t""yes" 1>&6
4408 else
4409 echo "$ac_t""no" 1>&6
4410 fi
4411
4412
4413 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4414echo "configure:4415: checking for --enable-help" >&5
4415 no_cache=0
4416 # Check whether --enable-help or --disable-help was given.
4417if test "${enable_help+set}" = set; then
4418 enableval="$enable_help"
4419
4420 if test "$enableval" = yes; then
4421 ac_cv_use_help='wxUSE_HELP=yes'
4422 else
4423 ac_cv_use_help='wxUSE_HELP=no'
4424 fi
4425
4426else
4427
4428 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
4431 else
4432 no_cache=1
4433 fi
4434
4435 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4436
4437fi
4438
4439
4440 eval "$ac_cv_use_help"
4441 if test "$no_cache" != 1; then
4442 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4443 fi
4444
4445 if test "$wxUSE_HELP" = yes; then
4446 echo "$ac_t""yes" 1>&6
4447 else
4448 echo "$ac_t""no" 1>&6
4449 fi
4450
4451
4452 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4453echo "configure:4454: checking for --enable-mshtmlhelp" >&5
4454 no_cache=0
4455 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4456if test "${enable_mshtmlhelp+set}" = set; then
4457 enableval="$enable_mshtmlhelp"
4458
4459 if test "$enableval" = yes; then
4460 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4461 else
4462 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4463 fi
4464
4465else
4466
4467 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4468 if test "x$LINE" != x ; then
4469 eval "DEFAULT_$LINE"
4470 else
4471 no_cache=1
4472 fi
4473
4474 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4475
4476fi
4477
4478
4479 eval "$ac_cv_use_mshtmlhelp"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_MS_HTML_HELP" = yes; then
4485 echo "$ac_t""yes" 1>&6
4486 else
4487 echo "$ac_t""no" 1>&6
4488 fi
4489
4490
4491 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4492echo "configure:4493: checking for --enable-html" >&5
4493 no_cache=0
4494 # Check whether --enable-html or --disable-html was given.
4495if test "${enable_html+set}" = set; then
4496 enableval="$enable_html"
4497
4498 if test "$enableval" = yes; then
4499 ac_cv_use_html='wxUSE_HTML=yes'
4500 else
4501 ac_cv_use_html='wxUSE_HTML=no'
4502 fi
4503
4504else
4505
4506 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4507 if test "x$LINE" != x ; then
4508 eval "DEFAULT_$LINE"
4509 else
4510 no_cache=1
4511 fi
4512
4513 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4514
4515fi
4516
4517
4518 eval "$ac_cv_use_html"
4519 if test "$no_cache" != 1; then
4520 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4521 fi
4522
4523 if test "$wxUSE_HTML" = yes; then
4524 echo "$ac_t""yes" 1>&6
4525 else
4526 echo "$ac_t""no" 1>&6
4527 fi
4528
4529
4530 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4531echo "configure:4532: checking for --enable-htmlhelp" >&5
4532 no_cache=0
4533 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4534if test "${enable_htmlhelp+set}" = set; then
4535 enableval="$enable_htmlhelp"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4539 else
4540 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4553
4554fi
4555
4556
4557 eval "$ac_cv_use_htmlhelp"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_WXHTML_HELP" = yes; then
4563 echo "$ac_t""yes" 1>&6
4564 else
4565 echo "$ac_t""no" 1>&6
4566 fi
4567
4568
4569 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4570echo "configure:4571: checking for --enable-constraints" >&5
4571 no_cache=0
4572 # Check whether --enable-constraints or --disable-constraints was given.
4573if test "${enable_constraints+set}" = set; then
4574 enableval="$enable_constraints"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4578 else
4579 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4580 fi
4581
4582else
4583
4584 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4592
4593fi
4594
4595
4596 eval "$ac_cv_use_constraints"
4597 if test "$no_cache" != 1; then
4598 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4599 fi
4600
4601 if test "$wxUSE_CONSTRAINTS" = yes; then
4602 echo "$ac_t""yes" 1>&6
4603 else
4604 echo "$ac_t""no" 1>&6
4605 fi
4606
4607
4608 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4609echo "configure:4610: checking for --enable-printarch" >&5
4610 no_cache=0
4611 # Check whether --enable-printarch or --disable-printarch was given.
4612if test "${enable_printarch+set}" = set; then
4613 enableval="$enable_printarch"
4614
4615 if test "$enableval" = yes; then
4616 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4617 else
4618 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4619 fi
4620
4621else
4622
4623 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4624 if test "x$LINE" != x ; then
4625 eval "DEFAULT_$LINE"
4626 else
4627 no_cache=1
4628 fi
4629
4630 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4631
4632fi
4633
4634
4635 eval "$ac_cv_use_printarch"
4636 if test "$no_cache" != 1; then
4637 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4638 fi
4639
4640 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4641 echo "$ac_t""yes" 1>&6
4642 else
4643 echo "$ac_t""no" 1>&6
4644 fi
4645
4646
4647 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4648echo "configure:4649: checking for --enable-mdi" >&5
4649 no_cache=0
4650 # Check whether --enable-mdi or --disable-mdi was given.
4651if test "${enable_mdi+set}" = set; then
4652 enableval="$enable_mdi"
4653
4654 if test "$enableval" = yes; then
4655 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4656 else
4657 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4658 fi
4659
4660else
4661
4662 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4663 if test "x$LINE" != x ; then
4664 eval "DEFAULT_$LINE"
4665 else
4666 no_cache=1
4667 fi
4668
4669 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4670
4671fi
4672
4673
4674 eval "$ac_cv_use_mdi"
4675 if test "$no_cache" != 1; then
4676 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4677 fi
4678
4679 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4680 echo "$ac_t""yes" 1>&6
4681 else
4682 echo "$ac_t""no" 1>&6
4683 fi
4684
4685
4686 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4687echo "configure:4688: checking for --enable-loggui" >&5
4688 no_cache=0
4689 # Check whether --enable-loggui or --disable-loggui was given.
4690if test "${enable_loggui+set}" = set; then
4691 enableval="$enable_loggui"
4692
4693 if test "$enableval" = yes; then
4694 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4695 else
4696 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4697 fi
4698
4699else
4700
4701 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4702 if test "x$LINE" != x ; then
4703 eval "DEFAULT_$LINE"
4704 else
4705 no_cache=1
4706 fi
4707
4708 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4709
4710fi
4711
4712
4713 eval "$ac_cv_use_loggui"
4714 if test "$no_cache" != 1; then
4715 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4716 fi
4717
4718 if test "$wxUSE_LOGGUI" = yes; then
4719 echo "$ac_t""yes" 1>&6
4720 else
4721 echo "$ac_t""no" 1>&6
4722 fi
4723
4724
4725 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4726echo "configure:4727: checking for --enable-logwin" >&5
4727 no_cache=0
4728 # Check whether --enable-logwin or --disable-logwin was given.
4729if test "${enable_logwin+set}" = set; then
4730 enableval="$enable_logwin"
4731
4732 if test "$enableval" = yes; then
4733 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4734 else
4735 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4736 fi
4737
4738else
4739
4740 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4741 if test "x$LINE" != x ; then
4742 eval "DEFAULT_$LINE"
4743 else
4744 no_cache=1
4745 fi
4746
4747 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4748
4749fi
4750
4751
4752 eval "$ac_cv_use_logwin"
4753 if test "$no_cache" != 1; then
4754 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4755 fi
4756
4757 if test "$wxUSE_LOGWINDOW" = yes; then
4758 echo "$ac_t""yes" 1>&6
4759 else
4760 echo "$ac_t""no" 1>&6
4761 fi
4762
4763
4764 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
4765echo "configure:4766: checking for --enable-logdialog" >&5
4766 no_cache=0
4767 # Check whether --enable-logdialog or --disable-logdialog was given.
4768if test "${enable_logdialog+set}" = set; then
4769 enableval="$enable_logdialog"
4770
4771 if test "$enableval" = yes; then
4772 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4773 else
4774 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4775 fi
4776
4777else
4778
4779 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
4786 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4787
4788fi
4789
4790
4791 eval "$ac_cv_use_logdialog"
4792 if test "$no_cache" != 1; then
4793 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4794 fi
4795
4796 if test "$wxUSE_LOGDIALOG" = yes; then
4797 echo "$ac_t""yes" 1>&6
4798 else
4799 echo "$ac_t""no" 1>&6
4800 fi
4801
4802
4803
4804 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4805echo "configure:4806: checking for --enable-postscript" >&5
4806 no_cache=0
4807 # Check whether --enable-postscript or --disable-postscript was given.
4808if test "${enable_postscript+set}" = set; then
4809 enableval="$enable_postscript"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4813 else
4814 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4815 fi
4816
4817else
4818
4819 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4827
4828fi
4829
4830
4831 eval "$ac_cv_use_postscript"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_POSTSCRIPT" = yes; then
4837 echo "$ac_t""yes" 1>&6
4838 else
4839 echo "$ac_t""no" 1>&6
4840 fi
4841
4842
4843
4844
4845
4846 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4847echo "configure:4848: checking for --enable-prologio" >&5
4848 no_cache=0
4849 # Check whether --enable-prologio or --disable-prologio was given.
4850if test "${enable_prologio+set}" = set; then
4851 enableval="$enable_prologio"
4852
4853 if test "$enableval" = yes; then
4854 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4855 else
4856 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4857 fi
4858
4859else
4860
4861 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
4868 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4869
4870fi
4871
4872
4873 eval "$ac_cv_use_prologio"
4874 if test "$no_cache" != 1; then
4875 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4876 fi
4877
4878 if test "$wxUSE_PROLOGIO" = yes; then
4879 echo "$ac_t""yes" 1>&6
4880 else
4881 echo "$ac_t""no" 1>&6
4882 fi
4883
4884
4885 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4886echo "configure:4887: checking for --enable-resources" >&5
4887 no_cache=0
4888 # Check whether --enable-resources or --disable-resources was given.
4889if test "${enable_resources+set}" = set; then
4890 enableval="$enable_resources"
4891
4892 if test "$enableval" = yes; then
4893 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4894 else
4895 ac_cv_use_resources='wxUSE_RESOURCES=no'
4896 fi
4897
4898else
4899
4900 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
4907 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4908
4909fi
4910
4911
4912 eval "$ac_cv_use_resources"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4915 fi
4916
4917 if test "$wxUSE_RESOURCES" = yes; then
4918 echo "$ac_t""yes" 1>&6
4919 else
4920 echo "$ac_t""no" 1>&6
4921 fi
4922
4923
4924
4925 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4926echo "configure:4927: checking for --enable-xresources" >&5
4927 no_cache=0
4928 # Check whether --enable-xresources or --disable-xresources was given.
4929if test "${enable_xresources+set}" = set; then
4930 enableval="$enable_xresources"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4934 else
4935 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4948
4949fi
4950
4951
4952 eval "$ac_cv_use_xresources"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_X_RESOURCES" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964
4965
4966 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4967echo "configure:4968: checking for --enable-clipboard" >&5
4968 no_cache=0
4969 # Check whether --enable-clipboard or --disable-clipboard was given.
4970if test "${enable_clipboard+set}" = set; then
4971 enableval="$enable_clipboard"
4972
4973 if test "$enableval" = yes; then
4974 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4975 else
4976 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4977 fi
4978
4979else
4980
4981 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
4988 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4989
4990fi
4991
4992
4993 eval "$ac_cv_use_clipboard"
4994 if test "$no_cache" != 1; then
4995 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4996 fi
4997
4998 if test "$wxUSE_CLIPBOARD" = yes; then
4999 echo "$ac_t""yes" 1>&6
5000 else
5001 echo "$ac_t""no" 1>&6
5002 fi
5003
5004
5005 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5006echo "configure:5007: checking for --enable-dnd" >&5
5007 no_cache=0
5008 # Check whether --enable-dnd or --disable-dnd was given.
5009if test "${enable_dnd+set}" = set; then
5010 enableval="$enable_dnd"
5011
5012 if test "$enableval" = yes; then
5013 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5014 else
5015 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5016 fi
5017
5018else
5019
5020 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5021 if test "x$LINE" != x ; then
5022 eval "DEFAULT_$LINE"
5023 else
5024 no_cache=1
5025 fi
5026
5027 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5028
5029fi
5030
5031
5032 eval "$ac_cv_use_dnd"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5038 echo "$ac_t""yes" 1>&6
5039 else
5040 echo "$ac_t""no" 1>&6
5041 fi
5042
5043
5044 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5045echo "configure:5046: checking for --enable-metafile" >&5
5046 no_cache=0
5047 # Check whether --enable-metafile or --disable-metafile was given.
5048if test "${enable_metafile+set}" = set; then
5049 enableval="$enable_metafile"
5050
5051 if test "$enableval" = yes; then
5052 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5053 else
5054 ac_cv_use_metafile='wxUSE_METAFILE=no'
5055 fi
5056
5057else
5058
5059 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5060 if test "x$LINE" != x ; then
5061 eval "DEFAULT_$LINE"
5062 else
5063 no_cache=1
5064 fi
5065
5066 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5067
5068fi
5069
5070
5071 eval "$ac_cv_use_metafile"
5072 if test "$no_cache" != 1; then
5073 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5074 fi
5075
5076 if test "$wxUSE_METAFILE" = yes; then
5077 echo "$ac_t""yes" 1>&6
5078 else
5079 echo "$ac_t""no" 1>&6
5080 fi
5081
5082
5083
5084 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5085echo "configure:5086: checking for --enable-treelayout" >&5
5086 no_cache=0
5087 # Check whether --enable-treelayout or --disable-treelayout was given.
5088if test "${enable_treelayout+set}" = set; then
5089 enableval="$enable_treelayout"
5090
5091 if test "$enableval" = yes; then
5092 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5093 else
5094 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5095 fi
5096
5097else
5098
5099 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5100 if test "x$LINE" != x ; then
5101 eval "DEFAULT_$LINE"
5102 else
5103 no_cache=1
5104 fi
5105
5106 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5107
5108fi
5109
5110
5111 eval "$ac_cv_use_treelayout"
5112 if test "$no_cache" != 1; then
5113 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5114 fi
5115
5116 if test "$wxUSE_TREELAYOUT" = yes; then
5117 echo "$ac_t""yes" 1>&6
5118 else
5119 echo "$ac_t""no" 1>&6
5120 fi
5121
5122
5123
5124
5125 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5126echo "configure:5127: checking for --enable-controls" >&5
5127 no_cache=0
5128 # Check whether --enable-controls or --disable-controls was given.
5129if test "${enable_controls+set}" = set; then
5130 enableval="$enable_controls"
5131
5132 if test "$enableval" = yes; then
5133 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5134 else
5135 ac_cv_use_controls='wxUSE_CONTROLS=no'
5136 fi
5137
5138else
5139
5140 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5148
5149fi
5150
5151
5152 eval "$ac_cv_use_controls"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_CONTROLS" = yes; then
5158 echo "$ac_t""yes" 1>&6
5159 else
5160 echo "$ac_t""no" 1>&6
5161 fi
5162
5163
5164if test "$wxUSE_CONTROLS" = "yes"; then
5165 DEFAULT_wxUSE_ACCEL=yes
5166 DEFAULT_wxUSE_BMPBUTTON=yes
5167 DEFAULT_wxUSE_BUTTON=yes
5168 DEFAULT_wxUSE_CALCTRL=no
5169 DEFAULT_wxUSE_CARET=yes
5170 DEFAULT_wxUSE_COMBOBOX=yes
5171 DEFAULT_wxUSE_CHECKBOX=yes
5172 DEFAULT_wxUSE_CHECKLISTBOX=yes
5173 DEFAULT_wxUSE_CHOICE=yes
5174 DEFAULT_wxUSE_GAUGE=yes
5175 DEFAULT_wxUSE_GRID=yes
5176 DEFAULT_wxUSE_NEW_GRID=yes
5177 DEFAULT_wxUSE_IMAGLIST=yes
5178 DEFAULT_wxUSE_LISTBOX=yes
5179 DEFAULT_wxUSE_LISTCTRL=yes
5180 DEFAULT_wxUSE_NOTEBOOK=yes
5181 DEFAULT_wxUSE_PROPSHEET=yes
5182 DEFAULT_wxUSE_RADIOBOX=yes
5183 DEFAULT_wxUSE_RADIOBTN=yes
5184 DEFAULT_wxUSE_SASH=yes
5185 DEFAULT_wxUSE_SCROLLBAR=yes
5186 DEFAULT_wxUSE_SLIDER=yes
5187 DEFAULT_wxUSE_SPINBTN=yes
5188 DEFAULT_wxUSE_SPINCTRL=yes
5189 DEFAULT_wxUSE_SPLITTER=yes
5190 DEFAULT_wxUSE_STATBMP=yes
5191 DEFAULT_wxUSE_STATBOX=yes
5192 DEFAULT_wxUSE_STATLINE=yes
5193 DEFAULT_wxUSE_STATUSBAR=yes
5194 DEFAULT_wxUSE_TAB_DIALOG=yes
5195 DEFAULT_wxUSE_TOGGLEBTN=yes
5196 DEFAULT_wxUSE_TOOLBAR=yes
5197 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5198 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5199 DEFAULT_wxUSE_TOOLTIPS=yes
5200 DEFAULT_wxUSE_TREECTRL=yes
5201 DEFAULT_wxUSE_POPUPWIN=yes
5202elif test "$wxUSE_CONTROLS" = "no"; then
5203 DEFAULT_wxUSE_ACCEL=no
5204 DEFAULT_wxUSE_BMPBUTTON=no
5205 DEFAULT_wxUSE_BUTTON=no
5206 DEFAULT_wxUSE_CALCTRL=no
5207 DEFAULT_wxUSE_CARET=no
5208 DEFAULT_wxUSE_COMBOBOX=no
5209 DEFAULT_wxUSE_CHECKBOX=no
5210 DEFAULT_wxUSE_CHECKLISTBOX=no
5211 DEFAULT_wxUSE_CHOICE=no
5212 DEFAULT_wxUSE_GAUGE=no
5213 DEFAULT_wxUSE_GRID=no
5214 DEFAULT_wxUSE_NEW_GRID=no
5215 DEFAULT_wxUSE_IMAGLIST=no
5216 DEFAULT_wxUSE_LISTBOX=no
5217 DEFAULT_wxUSE_LISTCTRL=no
5218 DEFAULT_wxUSE_NOTEBOOK=no
5219 DEFAULT_wxUSE_PROPSHEET=no
5220 DEFAULT_wxUSE_RADIOBOX=no
5221 DEFAULT_wxUSE_RADIOBTN=no
5222 DEFAULT_wxUSE_SASH=no
5223 DEFAULT_wxUSE_SCROLLBAR=no
5224 DEFAULT_wxUSE_SLIDER=no
5225 DEFAULT_wxUSE_SPINBTN=no
5226 DEFAULT_wxUSE_SPINCTRL=no
5227 DEFAULT_wxUSE_SPLITTER=no
5228 DEFAULT_wxUSE_STATBMP=no
5229 DEFAULT_wxUSE_STATBOX=no
5230 DEFAULT_wxUSE_STATLINE=no
5231 DEFAULT_wxUSE_STATUSBAR=no
5232 DEFAULT_wxUSE_TAB_DIALOG=no
5233 DEFAULT_wxUSE_TOGGLEBTN=no
5234 DEFAULT_wxUSE_TOOLBAR=no
5235 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5236 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5237 DEFAULT_wxUSE_TOOLTIPS=no
5238 DEFAULT_wxUSE_TREECTRL=no
5239 DEFAULT_wxUSE_POPUPWIN=no
5240fi
5241
5242
5243 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5244echo "configure:5245: checking for --enable-accel" >&5
5245 no_cache=0
5246 # Check whether --enable-accel or --disable-accel was given.
5247if test "${enable_accel+set}" = set; then
5248 enableval="$enable_accel"
5249
5250 if test "$enableval" = yes; then
5251 ac_cv_use_accel='wxUSE_ACCEL=yes'
5252 else
5253 ac_cv_use_accel='wxUSE_ACCEL=no'
5254 fi
5255
5256else
5257
5258 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5259 if test "x$LINE" != x ; then
5260 eval "DEFAULT_$LINE"
5261 else
5262 no_cache=1
5263 fi
5264
5265 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5266
5267fi
5268
5269
5270 eval "$ac_cv_use_accel"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_ACCEL" = yes; then
5276 echo "$ac_t""yes" 1>&6
5277 else
5278 echo "$ac_t""no" 1>&6
5279 fi
5280
5281
5282 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5283echo "configure:5284: checking for --enable-button" >&5
5284 no_cache=0
5285 # Check whether --enable-button or --disable-button was given.
5286if test "${enable_button+set}" = set; then
5287 enableval="$enable_button"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_button='wxUSE_BUTTON=yes'
5291 else
5292 ac_cv_use_button='wxUSE_BUTTON=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5305
5306fi
5307
5308
5309 eval "$ac_cv_use_button"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_BUTTON" = yes; then
5315 echo "$ac_t""yes" 1>&6
5316 else
5317 echo "$ac_t""no" 1>&6
5318 fi
5319
5320
5321 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5322echo "configure:5323: checking for --enable-bmpbutton" >&5
5323 no_cache=0
5324 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5325if test "${enable_bmpbutton+set}" = set; then
5326 enableval="$enable_bmpbutton"
5327
5328 if test "$enableval" = yes; then
5329 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5330 else
5331 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5332 fi
5333
5334else
5335
5336 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5337 if test "x$LINE" != x ; then
5338 eval "DEFAULT_$LINE"
5339 else
5340 no_cache=1
5341 fi
5342
5343 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5344
5345fi
5346
5347
5348 eval "$ac_cv_use_bmpbutton"
5349 if test "$no_cache" != 1; then
5350 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5351 fi
5352
5353 if test "$wxUSE_BMPBUTTON" = yes; then
5354 echo "$ac_t""yes" 1>&6
5355 else
5356 echo "$ac_t""no" 1>&6
5357 fi
5358
5359
5360 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5361echo "configure:5362: checking for --enable-calendar" >&5
5362 no_cache=0
5363 # Check whether --enable-calendar or --disable-calendar was given.
5364if test "${enable_calendar+set}" = set; then
5365 enableval="$enable_calendar"
5366
5367 if test "$enableval" = yes; then
5368 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5369 else
5370 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5371 fi
5372
5373else
5374
5375 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5376 if test "x$LINE" != x ; then
5377 eval "DEFAULT_$LINE"
5378 else
5379 no_cache=1
5380 fi
5381
5382 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5383
5384fi
5385
5386
5387 eval "$ac_cv_use_calendar"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_CALCTRL" = yes; then
5393 echo "$ac_t""yes" 1>&6
5394 else
5395 echo "$ac_t""no" 1>&6
5396 fi
5397
5398
5399 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5400echo "configure:5401: checking for --enable-caret" >&5
5401 no_cache=0
5402 # Check whether --enable-caret or --disable-caret was given.
5403if test "${enable_caret+set}" = set; then
5404 enableval="$enable_caret"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_caret='wxUSE_CARET=yes'
5408 else
5409 ac_cv_use_caret='wxUSE_CARET=no'
5410 fi
5411
5412else
5413
5414 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5422
5423fi
5424
5425
5426 eval "$ac_cv_use_caret"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_CARET" = yes; then
5432 echo "$ac_t""yes" 1>&6
5433 else
5434 echo "$ac_t""no" 1>&6
5435 fi
5436
5437
5438 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5439echo "configure:5440: checking for --enable-checkbox" >&5
5440 no_cache=0
5441 # Check whether --enable-checkbox or --disable-checkbox was given.
5442if test "${enable_checkbox+set}" = set; then
5443 enableval="$enable_checkbox"
5444
5445 if test "$enableval" = yes; then
5446 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5447 else
5448 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5449 fi
5450
5451else
5452
5453 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5454 if test "x$LINE" != x ; then
5455 eval "DEFAULT_$LINE"
5456 else
5457 no_cache=1
5458 fi
5459
5460 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5461
5462fi
5463
5464
5465 eval "$ac_cv_use_checkbox"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_CHECKBOX" = yes; then
5471 echo "$ac_t""yes" 1>&6
5472 else
5473 echo "$ac_t""no" 1>&6
5474 fi
5475
5476
5477 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5478echo "configure:5479: checking for --enable-checklst" >&5
5479 no_cache=0
5480 # Check whether --enable-checklst or --disable-checklst was given.
5481if test "${enable_checklst+set}" = set; then
5482 enableval="$enable_checklst"
5483
5484 if test "$enableval" = yes; then
5485 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5486 else
5487 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5488 fi
5489
5490else
5491
5492 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5493 if test "x$LINE" != x ; then
5494 eval "DEFAULT_$LINE"
5495 else
5496 no_cache=1
5497 fi
5498
5499 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5500
5501fi
5502
5503
5504 eval "$ac_cv_use_checklst"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_CHECKLST" = yes; then
5510 echo "$ac_t""yes" 1>&6
5511 else
5512 echo "$ac_t""no" 1>&6
5513 fi
5514
5515
5516 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5517echo "configure:5518: checking for --enable-choice" >&5
5518 no_cache=0
5519 # Check whether --enable-choice or --disable-choice was given.
5520if test "${enable_choice+set}" = set; then
5521 enableval="$enable_choice"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_choice='wxUSE_CHOICE=yes'
5525 else
5526 ac_cv_use_choice='wxUSE_CHOICE=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5539
5540fi
5541
5542
5543 eval "$ac_cv_use_choice"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_CHOICE" = yes; then
5549 echo "$ac_t""yes" 1>&6
5550 else
5551 echo "$ac_t""no" 1>&6
5552 fi
5553
5554
5555 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5556echo "configure:5557: checking for --enable-combobox" >&5
5557 no_cache=0
5558 # Check whether --enable-combobox or --disable-combobox was given.
5559if test "${enable_combobox+set}" = set; then
5560 enableval="$enable_combobox"
5561
5562 if test "$enableval" = yes; then
5563 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5564 else
5565 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5566 fi
5567
5568else
5569
5570 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5578
5579fi
5580
5581
5582 eval "$ac_cv_use_combobox"
5583 if test "$no_cache" != 1; then
5584 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5585 fi
5586
5587 if test "$wxUSE_COMBOBOX" = yes; then
5588 echo "$ac_t""yes" 1>&6
5589 else
5590 echo "$ac_t""no" 1>&6
5591 fi
5592
5593
5594 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5595echo "configure:5596: checking for --enable-gauge" >&5
5596 no_cache=0
5597 # Check whether --enable-gauge or --disable-gauge was given.
5598if test "${enable_gauge+set}" = set; then
5599 enableval="$enable_gauge"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5603 else
5604 ac_cv_use_gauge='wxUSE_GAUGE=no'
5605 fi
5606
5607else
5608
5609 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5617
5618fi
5619
5620
5621 eval "$ac_cv_use_gauge"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_GAUGE" = yes; then
5627 echo "$ac_t""yes" 1>&6
5628 else
5629 echo "$ac_t""no" 1>&6
5630 fi
5631
5632
5633 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5634echo "configure:5635: checking for --enable-grid" >&5
5635 no_cache=0
5636 # Check whether --enable-grid or --disable-grid was given.
5637if test "${enable_grid+set}" = set; then
5638 enableval="$enable_grid"
5639
5640 if test "$enableval" = yes; then
5641 ac_cv_use_grid='wxUSE_GRID=yes'
5642 else
5643 ac_cv_use_grid='wxUSE_GRID=no'
5644 fi
5645
5646else
5647
5648 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5649 if test "x$LINE" != x ; then
5650 eval "DEFAULT_$LINE"
5651 else
5652 no_cache=1
5653 fi
5654
5655 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5656
5657fi
5658
5659
5660 eval "$ac_cv_use_grid"
5661 if test "$no_cache" != 1; then
5662 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5663 fi
5664
5665 if test "$wxUSE_GRID" = yes; then
5666 echo "$ac_t""yes" 1>&6
5667 else
5668 echo "$ac_t""no" 1>&6
5669 fi
5670
5671
5672 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5673echo "configure:5674: checking for --enable-newgrid" >&5
5674 no_cache=0
5675 # Check whether --enable-newgrid or --disable-newgrid was given.
5676if test "${enable_newgrid+set}" = set; then
5677 enableval="$enable_newgrid"
5678
5679 if test "$enableval" = yes; then
5680 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5681 else
5682 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5683 fi
5684
5685else
5686
5687 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5695
5696fi
5697
5698
5699 eval "$ac_cv_use_newgrid"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_NEW_GRID" = yes; then
5705 echo "$ac_t""yes" 1>&6
5706 else
5707 echo "$ac_t""no" 1>&6
5708 fi
5709
5710
5711 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5712echo "configure:5713: checking for --enable-imaglist" >&5
5713 no_cache=0
5714 # Check whether --enable-imaglist or --disable-imaglist was given.
5715if test "${enable_imaglist+set}" = set; then
5716 enableval="$enable_imaglist"
5717
5718 if test "$enableval" = yes; then
5719 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5720 else
5721 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5722 fi
5723
5724else
5725
5726 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5734
5735fi
5736
5737
5738 eval "$ac_cv_use_imaglist"
5739 if test "$no_cache" != 1; then
5740 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5741 fi
5742
5743 if test "$wxUSE_IMAGLIST" = yes; then
5744 echo "$ac_t""yes" 1>&6
5745 else
5746 echo "$ac_t""no" 1>&6
5747 fi
5748
5749
5750 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5751echo "configure:5752: checking for --enable-listbox" >&5
5752 no_cache=0
5753 # Check whether --enable-listbox or --disable-listbox was given.
5754if test "${enable_listbox+set}" = set; then
5755 enableval="$enable_listbox"
5756
5757 if test "$enableval" = yes; then
5758 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5759 else
5760 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5761 fi
5762
5763else
5764
5765 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5766 if test "x$LINE" != x ; then
5767 eval "DEFAULT_$LINE"
5768 else
5769 no_cache=1
5770 fi
5771
5772 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5773
5774fi
5775
5776
5777 eval "$ac_cv_use_listbox"
5778 if test "$no_cache" != 1; then
5779 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5780 fi
5781
5782 if test "$wxUSE_LISTBOX" = yes; then
5783 echo "$ac_t""yes" 1>&6
5784 else
5785 echo "$ac_t""no" 1>&6
5786 fi
5787
5788
5789 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5790echo "configure:5791: checking for --enable-listctrl" >&5
5791 no_cache=0
5792 # Check whether --enable-listctrl or --disable-listctrl was given.
5793if test "${enable_listctrl+set}" = set; then
5794 enableval="$enable_listctrl"
5795
5796 if test "$enableval" = yes; then
5797 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5798 else
5799 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5800 fi
5801
5802else
5803
5804 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
5811 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5812
5813fi
5814
5815
5816 eval "$ac_cv_use_listctrl"
5817 if test "$no_cache" != 1; then
5818 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5819 fi
5820
5821 if test "$wxUSE_LISTCTRL" = yes; then
5822 echo "$ac_t""yes" 1>&6
5823 else
5824 echo "$ac_t""no" 1>&6
5825 fi
5826
5827
5828 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5829echo "configure:5830: checking for --enable-notebook" >&5
5830 no_cache=0
5831 # Check whether --enable-notebook or --disable-notebook was given.
5832if test "${enable_notebook+set}" = set; then
5833 enableval="$enable_notebook"
5834
5835 if test "$enableval" = yes; then
5836 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5837 else
5838 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5839 fi
5840
5841else
5842
5843 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5844 if test "x$LINE" != x ; then
5845 eval "DEFAULT_$LINE"
5846 else
5847 no_cache=1
5848 fi
5849
5850 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5851
5852fi
5853
5854
5855 eval "$ac_cv_use_notebook"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_NOTEBOOK" = yes; then
5861 echo "$ac_t""yes" 1>&6
5862 else
5863 echo "$ac_t""no" 1>&6
5864 fi
5865
5866
5867 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5868echo "configure:5869: checking for --enable-propsheet" >&5
5869 no_cache=0
5870 # Check whether --enable-propsheet or --disable-propsheet was given.
5871if test "${enable_propsheet+set}" = set; then
5872 enableval="$enable_propsheet"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5876 else
5877 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5878 fi
5879
5880else
5881
5882 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5890
5891fi
5892
5893
5894 eval "$ac_cv_use_propsheet"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_PROPSHEET" = yes; then
5900 echo "$ac_t""yes" 1>&6
5901 else
5902 echo "$ac_t""no" 1>&6
5903 fi
5904
5905
5906 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5907echo "configure:5908: checking for --enable-radiobox" >&5
5908 no_cache=0
5909 # Check whether --enable-radiobox or --disable-radiobox was given.
5910if test "${enable_radiobox+set}" = set; then
5911 enableval="$enable_radiobox"
5912
5913 if test "$enableval" = yes; then
5914 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5915 else
5916 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5917 fi
5918
5919else
5920
5921 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5929
5930fi
5931
5932
5933 eval "$ac_cv_use_radiobox"
5934 if test "$no_cache" != 1; then
5935 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5936 fi
5937
5938 if test "$wxUSE_RADIOBOX" = yes; then
5939 echo "$ac_t""yes" 1>&6
5940 else
5941 echo "$ac_t""no" 1>&6
5942 fi
5943
5944
5945 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5946echo "configure:5947: checking for --enable-radiobtn" >&5
5947 no_cache=0
5948 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5949if test "${enable_radiobtn+set}" = set; then
5950 enableval="$enable_radiobtn"
5951
5952 if test "$enableval" = yes; then
5953 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5954 else
5955 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5956 fi
5957
5958else
5959
5960 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5961 if test "x$LINE" != x ; then
5962 eval "DEFAULT_$LINE"
5963 else
5964 no_cache=1
5965 fi
5966
5967 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5968
5969fi
5970
5971
5972 eval "$ac_cv_use_radiobtn"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_RADIOBTN" = yes; then
5978 echo "$ac_t""yes" 1>&6
5979 else
5980 echo "$ac_t""no" 1>&6
5981 fi
5982
5983
5984 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5985echo "configure:5986: checking for --enable-sash" >&5
5986 no_cache=0
5987 # Check whether --enable-sash or --disable-sash was given.
5988if test "${enable_sash+set}" = set; then
5989 enableval="$enable_sash"
5990
5991 if test "$enableval" = yes; then
5992 ac_cv_use_sash='wxUSE_SASH=yes'
5993 else
5994 ac_cv_use_sash='wxUSE_SASH=no'
5995 fi
5996
5997else
5998
5999 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6007
6008fi
6009
6010
6011 eval "$ac_cv_use_sash"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_SASH" = yes; then
6017 echo "$ac_t""yes" 1>&6
6018 else
6019 echo "$ac_t""no" 1>&6
6020 fi
6021
6022
6023 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6024echo "configure:6025: checking for --enable-scrollbar" >&5
6025 no_cache=0
6026 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6027if test "${enable_scrollbar+set}" = set; then
6028 enableval="$enable_scrollbar"
6029
6030 if test "$enableval" = yes; then
6031 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6032 else
6033 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6034 fi
6035
6036else
6037
6038 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
6045 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6046
6047fi
6048
6049
6050 eval "$ac_cv_use_scrollbar"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_SCROLLBAR" = yes; then
6056 echo "$ac_t""yes" 1>&6
6057 else
6058 echo "$ac_t""no" 1>&6
6059 fi
6060
6061
6062 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6063echo "configure:6064: checking for --enable-slider" >&5
6064 no_cache=0
6065 # Check whether --enable-slider or --disable-slider was given.
6066if test "${enable_slider+set}" = set; then
6067 enableval="$enable_slider"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_slider='wxUSE_SLIDER=yes'
6071 else
6072 ac_cv_use_slider='wxUSE_SLIDER=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6085
6086fi
6087
6088
6089 eval "$ac_cv_use_slider"
6090 if test "$no_cache" != 1; then
6091 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6092 fi
6093
6094 if test "$wxUSE_SLIDER" = yes; then
6095 echo "$ac_t""yes" 1>&6
6096 else
6097 echo "$ac_t""no" 1>&6
6098 fi
6099
6100
6101 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6102echo "configure:6103: checking for --enable-spinbtn" >&5
6103 no_cache=0
6104 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6105if test "${enable_spinbtn+set}" = set; then
6106 enableval="$enable_spinbtn"
6107
6108 if test "$enableval" = yes; then
6109 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6110 else
6111 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6112 fi
6113
6114else
6115
6116 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6117 if test "x$LINE" != x ; then
6118 eval "DEFAULT_$LINE"
6119 else
6120 no_cache=1
6121 fi
6122
6123 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6124
6125fi
6126
6127
6128 eval "$ac_cv_use_spinbtn"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_SPINBTN" = yes; then
6134 echo "$ac_t""yes" 1>&6
6135 else
6136 echo "$ac_t""no" 1>&6
6137 fi
6138
6139
6140 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6141echo "configure:6142: checking for --enable-spinctrl" >&5
6142 no_cache=0
6143 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6144if test "${enable_spinctrl+set}" = set; then
6145 enableval="$enable_spinctrl"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6149 else
6150 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6151 fi
6152
6153else
6154
6155 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6163
6164fi
6165
6166
6167 eval "$ac_cv_use_spinctrl"
6168 if test "$no_cache" != 1; then
6169 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6170 fi
6171
6172 if test "$wxUSE_SPINCTRL" = yes; then
6173 echo "$ac_t""yes" 1>&6
6174 else
6175 echo "$ac_t""no" 1>&6
6176 fi
6177
6178
6179 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6180echo "configure:6181: checking for --enable-splitter" >&5
6181 no_cache=0
6182 # Check whether --enable-splitter or --disable-splitter was given.
6183if test "${enable_splitter+set}" = set; then
6184 enableval="$enable_splitter"
6185
6186 if test "$enableval" = yes; then
6187 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6188 else
6189 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6190 fi
6191
6192else
6193
6194 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6202
6203fi
6204
6205
6206 eval "$ac_cv_use_splitter"
6207 if test "$no_cache" != 1; then
6208 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6209 fi
6210
6211 if test "$wxUSE_SPLITTER" = yes; then
6212 echo "$ac_t""yes" 1>&6
6213 else
6214 echo "$ac_t""no" 1>&6
6215 fi
6216
6217
6218 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6219echo "configure:6220: checking for --enable-statbmp" >&5
6220 no_cache=0
6221 # Check whether --enable-statbmp or --disable-statbmp was given.
6222if test "${enable_statbmp+set}" = set; then
6223 enableval="$enable_statbmp"
6224
6225 if test "$enableval" = yes; then
6226 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6227 else
6228 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6229 fi
6230
6231else
6232
6233 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6234 if test "x$LINE" != x ; then
6235 eval "DEFAULT_$LINE"
6236 else
6237 no_cache=1
6238 fi
6239
6240 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6241
6242fi
6243
6244
6245 eval "$ac_cv_use_statbmp"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_STATBMP" = yes; then
6251 echo "$ac_t""yes" 1>&6
6252 else
6253 echo "$ac_t""no" 1>&6
6254 fi
6255
6256
6257 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6258echo "configure:6259: checking for --enable-statbox" >&5
6259 no_cache=0
6260 # Check whether --enable-statbox or --disable-statbox was given.
6261if test "${enable_statbox+set}" = set; then
6262 enableval="$enable_statbox"
6263
6264 if test "$enableval" = yes; then
6265 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6266 else
6267 ac_cv_use_statbox='wxUSE_STATBOX=no'
6268 fi
6269
6270else
6271
6272 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6280
6281fi
6282
6283
6284 eval "$ac_cv_use_statbox"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_STATBOX" = yes; then
6290 echo "$ac_t""yes" 1>&6
6291 else
6292 echo "$ac_t""no" 1>&6
6293 fi
6294
6295
6296 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6297echo "configure:6298: checking for --enable-statline" >&5
6298 no_cache=0
6299 # Check whether --enable-statline or --disable-statline was given.
6300if test "${enable_statline+set}" = set; then
6301 enableval="$enable_statline"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_statline='wxUSE_STATLINE=yes'
6305 else
6306 ac_cv_use_statline='wxUSE_STATLINE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6319
6320fi
6321
6322
6323 eval "$ac_cv_use_statline"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_STATLINE" = yes; then
6329 echo "$ac_t""yes" 1>&6
6330 else
6331 echo "$ac_t""no" 1>&6
6332 fi
6333
6334
6335 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6336echo "configure:6337: checking for --enable-stattext" >&5
6337 no_cache=0
6338 # Check whether --enable-stattext or --disable-stattext was given.
6339if test "${enable_stattext+set}" = set; then
6340 enableval="$enable_stattext"
6341
6342 if test "$enableval" = yes; then
6343 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6344 else
6345 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6346 fi
6347
6348else
6349
6350 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6351 if test "x$LINE" != x ; then
6352 eval "DEFAULT_$LINE"
6353 else
6354 no_cache=1
6355 fi
6356
6357 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6358
6359fi
6360
6361
6362 eval "$ac_cv_use_stattext"
6363 if test "$no_cache" != 1; then
6364 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6365 fi
6366
6367 if test "$wxUSE_STATTEXT" = yes; then
6368 echo "$ac_t""yes" 1>&6
6369 else
6370 echo "$ac_t""no" 1>&6
6371 fi
6372
6373
6374 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6375echo "configure:6376: checking for --enable-statusbar" >&5
6376 no_cache=0
6377 # Check whether --enable-statusbar or --disable-statusbar was given.
6378if test "${enable_statusbar+set}" = set; then
6379 enableval="$enable_statusbar"
6380
6381 if test "$enableval" = yes; then
6382 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6383 else
6384 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6385 fi
6386
6387else
6388
6389 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
6396 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6397
6398fi
6399
6400
6401 eval "$ac_cv_use_statusbar"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_STATUSBAR" = yes; then
6407 echo "$ac_t""yes" 1>&6
6408 else
6409 echo "$ac_t""no" 1>&6
6410 fi
6411
6412
6413 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6414echo "configure:6415: checking for --enable-tabdialog" >&5
6415 no_cache=0
6416 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6417if test "${enable_tabdialog+set}" = set; then
6418 enableval="$enable_tabdialog"
6419
6420 if test "$enableval" = yes; then
6421 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6422 else
6423 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6424 fi
6425
6426else
6427
6428 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6436
6437fi
6438
6439
6440 eval "$ac_cv_use_tabdialog"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_TABDIALOG" = yes; then
6446 echo "$ac_t""yes" 1>&6
6447 else
6448 echo "$ac_t""no" 1>&6
6449 fi
6450
6451
6452 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6453echo "configure:6454: checking for --enable-textctrl" >&5
6454 no_cache=0
6455 # Check whether --enable-textctrl or --disable-textctrl was given.
6456if test "${enable_textctrl+set}" = set; then
6457 enableval="$enable_textctrl"
6458
6459 if test "$enableval" = yes; then
6460 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6461 else
6462 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6463 fi
6464
6465else
6466
6467 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6468 if test "x$LINE" != x ; then
6469 eval "DEFAULT_$LINE"
6470 else
6471 no_cache=1
6472 fi
6473
6474 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6475
6476fi
6477
6478
6479 eval "$ac_cv_use_textctrl"
6480 if test "$no_cache" != 1; then
6481 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6482 fi
6483
6484 if test "$wxUSE_TEXTCTRL" = yes; then
6485 echo "$ac_t""yes" 1>&6
6486 else
6487 echo "$ac_t""no" 1>&6
6488 fi
6489
6490
6491 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6492echo "configure:6493: checking for --enable-togglebtn" >&5
6493 no_cache=0
6494 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6495if test "${enable_togglebtn+set}" = set; then
6496 enableval="$enable_togglebtn"
6497
6498 if test "$enableval" = yes; then
6499 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6500 else
6501 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6502 fi
6503
6504else
6505
6506 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6514
6515fi
6516
6517
6518 eval "$ac_cv_use_togglebtn"
6519 if test "$no_cache" != 1; then
6520 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6521 fi
6522
6523 if test "$wxUSE_TOGGLEBTN" = yes; then
6524 echo "$ac_t""yes" 1>&6
6525 else
6526 echo "$ac_t""no" 1>&6
6527 fi
6528
6529
6530 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6531echo "configure:6532: checking for --enable-toolbar" >&5
6532 no_cache=0
6533 # Check whether --enable-toolbar or --disable-toolbar was given.
6534if test "${enable_toolbar+set}" = set; then
6535 enableval="$enable_toolbar"
6536
6537 if test "$enableval" = yes; then
6538 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6539 else
6540 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6541 fi
6542
6543else
6544
6545 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6546 if test "x$LINE" != x ; then
6547 eval "DEFAULT_$LINE"
6548 else
6549 no_cache=1
6550 fi
6551
6552 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6553
6554fi
6555
6556
6557 eval "$ac_cv_use_toolbar"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_TOOLBAR" = yes; then
6563 echo "$ac_t""yes" 1>&6
6564 else
6565 echo "$ac_t""no" 1>&6
6566 fi
6567
6568
6569 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6570echo "configure:6571: checking for --enable-tbarnative" >&5
6571 no_cache=0
6572 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6573if test "${enable_tbarnative+set}" = set; then
6574 enableval="$enable_tbarnative"
6575
6576 if test "$enableval" = yes; then
6577 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6578 else
6579 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6580 fi
6581
6582else
6583
6584 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6592
6593fi
6594
6595
6596 eval "$ac_cv_use_tbarnative"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6602 echo "$ac_t""yes" 1>&6
6603 else
6604 echo "$ac_t""no" 1>&6
6605 fi
6606
6607
6608 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6609echo "configure:6610: checking for --enable-tbarsmpl" >&5
6610 no_cache=0
6611 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6612if test "${enable_tbarsmpl+set}" = set; then
6613 enableval="$enable_tbarsmpl"
6614
6615 if test "$enableval" = yes; then
6616 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6617 else
6618 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6619 fi
6620
6621else
6622
6623 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6624 if test "x$LINE" != x ; then
6625 eval "DEFAULT_$LINE"
6626 else
6627 no_cache=1
6628 fi
6629
6630 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6631
6632fi
6633
6634
6635 eval "$ac_cv_use_tbarsmpl"
6636 if test "$no_cache" != 1; then
6637 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6638 fi
6639
6640 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6641 echo "$ac_t""yes" 1>&6
6642 else
6643 echo "$ac_t""no" 1>&6
6644 fi
6645
6646
6647 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6648echo "configure:6649: checking for --enable-treectrl" >&5
6649 no_cache=0
6650 # Check whether --enable-treectrl or --disable-treectrl was given.
6651if test "${enable_treectrl+set}" = set; then
6652 enableval="$enable_treectrl"
6653
6654 if test "$enableval" = yes; then
6655 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6656 else
6657 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6658 fi
6659
6660else
6661
6662 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6663 if test "x$LINE" != x ; then
6664 eval "DEFAULT_$LINE"
6665 else
6666 no_cache=1
6667 fi
6668
6669 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6670
6671fi
6672
6673
6674 eval "$ac_cv_use_treectrl"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6677 fi
6678
6679 if test "$wxUSE_TREECTRL" = yes; then
6680 echo "$ac_t""yes" 1>&6
6681 else
6682 echo "$ac_t""no" 1>&6
6683 fi
6684
6685
6686 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6687echo "configure:6688: checking for --enable-popupwin" >&5
6688 no_cache=0
6689 # Check whether --enable-popupwin or --disable-popupwin was given.
6690if test "${enable_popupwin+set}" = set; then
6691 enableval="$enable_popupwin"
6692
6693 if test "$enableval" = yes; then
6694 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6695 else
6696 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6697 fi
6698
6699else
6700
6701 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6702 if test "x$LINE" != x ; then
6703 eval "DEFAULT_$LINE"
6704 else
6705 no_cache=1
6706 fi
6707
6708 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6709
6710fi
6711
6712
6713 eval "$ac_cv_use_popupwin"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_POPUPWIN" = yes; then
6719 echo "$ac_t""yes" 1>&6
6720 else
6721 echo "$ac_t""no" 1>&6
6722 fi
6723
6724
6725
6726
6727 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6728echo "configure:6729: checking for --enable-commondlg" >&5
6729 no_cache=0
6730 # Check whether --enable-commondlg or --disable-commondlg was given.
6731if test "${enable_commondlg+set}" = set; then
6732 enableval="$enable_commondlg"
6733
6734 if test "$enableval" = yes; then
6735 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6736 else
6737 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6738 fi
6739
6740else
6741
6742 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6743 if test "x$LINE" != x ; then
6744 eval "DEFAULT_$LINE"
6745 else
6746 no_cache=1
6747 fi
6748
6749 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6750
6751fi
6752
6753
6754 eval "$ac_cv_use_commondlg"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_COMMONDLGS" = yes; then
6760 echo "$ac_t""yes" 1>&6
6761 else
6762 echo "$ac_t""no" 1>&6
6763 fi
6764
6765
6766 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6767echo "configure:6768: checking for --enable-choicedlg" >&5
6768 no_cache=0
6769 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6770if test "${enable_choicedlg+set}" = set; then
6771 enableval="$enable_choicedlg"
6772
6773 if test "$enableval" = yes; then
6774 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6775 else
6776 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6777 fi
6778
6779else
6780
6781 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
6788 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6789
6790fi
6791
6792
6793 eval "$ac_cv_use_choicedlg"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_CHOICEDLG" = yes; then
6799 echo "$ac_t""yes" 1>&6
6800 else
6801 echo "$ac_t""no" 1>&6
6802 fi
6803
6804
6805 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6806echo "configure:6807: checking for --enable-coldlg" >&5
6807 no_cache=0
6808 # Check whether --enable-coldlg or --disable-coldlg was given.
6809if test "${enable_coldlg+set}" = set; then
6810 enableval="$enable_coldlg"
6811
6812 if test "$enableval" = yes; then
6813 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6814 else
6815 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6816 fi
6817
6818else
6819
6820 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6821 if test "x$LINE" != x ; then
6822 eval "DEFAULT_$LINE"
6823 else
6824 no_cache=1
6825 fi
6826
6827 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6828
6829fi
6830
6831
6832 eval "$ac_cv_use_coldlg"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_COLOURDLG" = yes; then
6838 echo "$ac_t""yes" 1>&6
6839 else
6840 echo "$ac_t""no" 1>&6
6841 fi
6842
6843
6844 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6845echo "configure:6846: checking for --enable-filedlg" >&5
6846 no_cache=0
6847 # Check whether --enable-filedlg or --disable-filedlg was given.
6848if test "${enable_filedlg+set}" = set; then
6849 enableval="$enable_filedlg"
6850
6851 if test "$enableval" = yes; then
6852 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6853 else
6854 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6855 fi
6856
6857else
6858
6859 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6860 if test "x$LINE" != x ; then
6861 eval "DEFAULT_$LINE"
6862 else
6863 no_cache=1
6864 fi
6865
6866 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6867
6868fi
6869
6870
6871 eval "$ac_cv_use_filedlg"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_FILEDLG" = yes; then
6877 echo "$ac_t""yes" 1>&6
6878 else
6879 echo "$ac_t""no" 1>&6
6880 fi
6881
6882
6883 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
6884echo "configure:6885: checking for --enable-finddlg" >&5
6885 no_cache=0
6886 # Check whether --enable-finddlg or --disable-finddlg was given.
6887if test "${enable_finddlg+set}" = set; then
6888 enableval="$enable_finddlg"
6889
6890 if test "$enableval" = yes; then
6891 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
6892 else
6893 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
6894 fi
6895
6896else
6897
6898 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6899 if test "x$LINE" != x ; then
6900 eval "DEFAULT_$LINE"
6901 else
6902 no_cache=1
6903 fi
6904
6905 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6906
6907fi
6908
6909
6910 eval "$ac_cv_use_finddlg"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_FINDREPLDLG" = yes; then
6916 echo "$ac_t""yes" 1>&6
6917 else
6918 echo "$ac_t""no" 1>&6
6919 fi
6920
6921
6922 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6923echo "configure:6924: checking for --enable-fontdlg" >&5
6924 no_cache=0
6925 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6926if test "${enable_fontdlg+set}" = set; then
6927 enableval="$enable_fontdlg"
6928
6929 if test "$enableval" = yes; then
6930 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6931 else
6932 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6933 fi
6934
6935else
6936
6937 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6938 if test "x$LINE" != x ; then
6939 eval "DEFAULT_$LINE"
6940 else
6941 no_cache=1
6942 fi
6943
6944 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6945
6946fi
6947
6948
6949 eval "$ac_cv_use_fontdlg"
6950 if test "$no_cache" != 1; then
6951 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6952 fi
6953
6954 if test "$wxUSE_FONTDLG" = yes; then
6955 echo "$ac_t""yes" 1>&6
6956 else
6957 echo "$ac_t""no" 1>&6
6958 fi
6959
6960
6961 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6962echo "configure:6963: checking for --enable-dirdlg" >&5
6963 no_cache=0
6964 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6965if test "${enable_dirdlg+set}" = set; then
6966 enableval="$enable_dirdlg"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6970 else
6971 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6972 fi
6973
6974else
6975
6976 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6984
6985fi
6986
6987
6988 eval "$ac_cv_use_dirdlg"
6989 if test "$no_cache" != 1; then
6990 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6991 fi
6992
6993 if test "$wxUSE_DIRDLG" = yes; then
6994 echo "$ac_t""yes" 1>&6
6995 else
6996 echo "$ac_t""no" 1>&6
6997 fi
6998
6999
7000 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7001echo "configure:7002: checking for --enable-msgdlg" >&5
7002 no_cache=0
7003 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7004if test "${enable_msgdlg+set}" = set; then
7005 enableval="$enable_msgdlg"
7006
7007 if test "$enableval" = yes; then
7008 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7009 else
7010 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7011 fi
7012
7013else
7014
7015 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7016 if test "x$LINE" != x ; then
7017 eval "DEFAULT_$LINE"
7018 else
7019 no_cache=1
7020 fi
7021
7022 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7023
7024fi
7025
7026
7027 eval "$ac_cv_use_msgdlg"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_MSGDLG" = yes; then
7033 echo "$ac_t""yes" 1>&6
7034 else
7035 echo "$ac_t""no" 1>&6
7036 fi
7037
7038
7039 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7040echo "configure:7041: checking for --enable-numberdlg" >&5
7041 no_cache=0
7042 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7043if test "${enable_numberdlg+set}" = set; then
7044 enableval="$enable_numberdlg"
7045
7046 if test "$enableval" = yes; then
7047 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7048 else
7049 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7050 fi
7051
7052else
7053
7054 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7055 if test "x$LINE" != x ; then
7056 eval "DEFAULT_$LINE"
7057 else
7058 no_cache=1
7059 fi
7060
7061 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7062
7063fi
7064
7065
7066 eval "$ac_cv_use_numberdlg"
7067 if test "$no_cache" != 1; then
7068 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7069 fi
7070
7071 if test "$wxUSE_NUMBERDLG" = yes; then
7072 echo "$ac_t""yes" 1>&6
7073 else
7074 echo "$ac_t""no" 1>&6
7075 fi
7076
7077
7078 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7079echo "configure:7080: checking for --enable-splash" >&5
7080 no_cache=0
7081 # Check whether --enable-splash or --disable-splash was given.
7082if test "${enable_splash+set}" = set; then
7083 enableval="$enable_splash"
7084
7085 if test "$enableval" = yes; then
7086 ac_cv_use_splash='wxUSE_SPLASH=yes'
7087 else
7088 ac_cv_use_splash='wxUSE_SPLASH=no'
7089 fi
7090
7091else
7092
7093 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7094 if test "x$LINE" != x ; then
7095 eval "DEFAULT_$LINE"
7096 else
7097 no_cache=1
7098 fi
7099
7100 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7101
7102fi
7103
7104
7105 eval "$ac_cv_use_splash"
7106 if test "$no_cache" != 1; then
7107 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7108 fi
7109
7110 if test "$wxUSE_SPLASH" = yes; then
7111 echo "$ac_t""yes" 1>&6
7112 else
7113 echo "$ac_t""no" 1>&6
7114 fi
7115
7116
7117 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7118echo "configure:7119: checking for --enable-textdlg" >&5
7119 no_cache=0
7120 # Check whether --enable-textdlg or --disable-textdlg was given.
7121if test "${enable_textdlg+set}" = set; then
7122 enableval="$enable_textdlg"
7123
7124 if test "$enableval" = yes; then
7125 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7126 else
7127 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7128 fi
7129
7130else
7131
7132 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7133 if test "x$LINE" != x ; then
7134 eval "DEFAULT_$LINE"
7135 else
7136 no_cache=1
7137 fi
7138
7139 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7140
7141fi
7142
7143
7144 eval "$ac_cv_use_textdlg"
7145 if test "$no_cache" != 1; then
7146 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7147 fi
7148
7149 if test "$wxUSE_TEXTDLG" = yes; then
7150 echo "$ac_t""yes" 1>&6
7151 else
7152 echo "$ac_t""no" 1>&6
7153 fi
7154
7155
7156 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7157echo "configure:7158: checking for --enable-tipdlg" >&5
7158 no_cache=0
7159 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7160if test "${enable_tipdlg+set}" = set; then
7161 enableval="$enable_tipdlg"
7162
7163 if test "$enableval" = yes; then
7164 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7165 else
7166 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7167 fi
7168
7169else
7170
7171 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7172 if test "x$LINE" != x ; then
7173 eval "DEFAULT_$LINE"
7174 else
7175 no_cache=1
7176 fi
7177
7178 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7179
7180fi
7181
7182
7183 eval "$ac_cv_use_tipdlg"
7184 if test "$no_cache" != 1; then
7185 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7186 fi
7187
7188 if test "$wxUSE_STARTUP_TIPS" = yes; then
7189 echo "$ac_t""yes" 1>&6
7190 else
7191 echo "$ac_t""no" 1>&6
7192 fi
7193
7194
7195 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7196echo "configure:7197: checking for --enable-progressdlg" >&5
7197 no_cache=0
7198 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7199if test "${enable_progressdlg+set}" = set; then
7200 enableval="$enable_progressdlg"
7201
7202 if test "$enableval" = yes; then
7203 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7204 else
7205 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7206 fi
7207
7208else
7209
7210 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7211 if test "x$LINE" != x ; then
7212 eval "DEFAULT_$LINE"
7213 else
7214 no_cache=1
7215 fi
7216
7217 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7218
7219fi
7220
7221
7222 eval "$ac_cv_use_progressdlg"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_PROGRESSDLG" = yes; then
7228 echo "$ac_t""yes" 1>&6
7229 else
7230 echo "$ac_t""no" 1>&6
7231 fi
7232
7233
7234 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7235echo "configure:7236: checking for --enable-wizarddlg" >&5
7236 no_cache=0
7237 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7238if test "${enable_wizarddlg+set}" = set; then
7239 enableval="$enable_wizarddlg"
7240
7241 if test "$enableval" = yes; then
7242 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7243 else
7244 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7245 fi
7246
7247else
7248
7249 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7250 if test "x$LINE" != x ; then
7251 eval "DEFAULT_$LINE"
7252 else
7253 no_cache=1
7254 fi
7255
7256 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7257
7258fi
7259
7260
7261 eval "$ac_cv_use_wizarddlg"
7262 if test "$no_cache" != 1; then
7263 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7264 fi
7265
7266 if test "$wxUSE_WIZARDDLG" = yes; then
7267 echo "$ac_t""yes" 1>&6
7268 else
7269 echo "$ac_t""no" 1>&6
7270 fi
7271
7272
7273
7274
7275 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7276echo "configure:7277: checking for --enable-menus" >&5
7277 no_cache=0
7278 # Check whether --enable-menus or --disable-menus was given.
7279if test "${enable_menus+set}" = set; then
7280 enableval="$enable_menus"
7281
7282 if test "$enableval" = yes; then
7283 ac_cv_use_menus='wxUSE_MENUS=yes'
7284 else
7285 ac_cv_use_menus='wxUSE_MENUS=no'
7286 fi
7287
7288else
7289
7290 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7291 if test "x$LINE" != x ; then
7292 eval "DEFAULT_$LINE"
7293 else
7294 no_cache=1
7295 fi
7296
7297 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7298
7299fi
7300
7301
7302 eval "$ac_cv_use_menus"
7303 if test "$no_cache" != 1; then
7304 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7305 fi
7306
7307 if test "$wxUSE_MENUS" = yes; then
7308 echo "$ac_t""yes" 1>&6
7309 else
7310 echo "$ac_t""no" 1>&6
7311 fi
7312
7313
7314 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7315echo "configure:7316: checking for --enable-miniframe" >&5
7316 no_cache=0
7317 # Check whether --enable-miniframe or --disable-miniframe was given.
7318if test "${enable_miniframe+set}" = set; then
7319 enableval="$enable_miniframe"
7320
7321 if test "$enableval" = yes; then
7322 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7323 else
7324 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7325 fi
7326
7327else
7328
7329 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7337
7338fi
7339
7340
7341 eval "$ac_cv_use_miniframe"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_MINIFRAME" = yes; then
7347 echo "$ac_t""yes" 1>&6
7348 else
7349 echo "$ac_t""no" 1>&6
7350 fi
7351
7352
7353 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7354echo "configure:7355: checking for --enable-tooltips" >&5
7355 no_cache=0
7356 # Check whether --enable-tooltips or --disable-tooltips was given.
7357if test "${enable_tooltips+set}" = set; then
7358 enableval="$enable_tooltips"
7359
7360 if test "$enableval" = yes; then
7361 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7362 else
7363 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7364 fi
7365
7366else
7367
7368 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7369 if test "x$LINE" != x ; then
7370 eval "DEFAULT_$LINE"
7371 else
7372 no_cache=1
7373 fi
7374
7375 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7376
7377fi
7378
7379
7380 eval "$ac_cv_use_tooltips"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_TOOLTIPS" = yes; then
7386 echo "$ac_t""yes" 1>&6
7387 else
7388 echo "$ac_t""no" 1>&6
7389 fi
7390
7391
7392 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7393echo "configure:7394: checking for --enable-splines" >&5
7394 no_cache=0
7395 # Check whether --enable-splines or --disable-splines was given.
7396if test "${enable_splines+set}" = set; then
7397 enableval="$enable_splines"
7398
7399 if test "$enableval" = yes; then
7400 ac_cv_use_splines='wxUSE_SPLINES=yes'
7401 else
7402 ac_cv_use_splines='wxUSE_SPLINES=no'
7403 fi
7404
7405else
7406
7407 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7408 if test "x$LINE" != x ; then
7409 eval "DEFAULT_$LINE"
7410 else
7411 no_cache=1
7412 fi
7413
7414 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7415
7416fi
7417
7418
7419 eval "$ac_cv_use_splines"
7420 if test "$no_cache" != 1; then
7421 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7422 fi
7423
7424 if test "$wxUSE_SPLINES" = yes; then
7425 echo "$ac_t""yes" 1>&6
7426 else
7427 echo "$ac_t""no" 1>&6
7428 fi
7429
7430
7431 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7432echo "configure:7433: checking for --enable-validators" >&5
7433 no_cache=0
7434 # Check whether --enable-validators or --disable-validators was given.
7435if test "${enable_validators+set}" = set; then
7436 enableval="$enable_validators"
7437
7438 if test "$enableval" = yes; then
7439 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7440 else
7441 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7442 fi
7443
7444else
7445
7446 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7447 if test "x$LINE" != x ; then
7448 eval "DEFAULT_$LINE"
7449 else
7450 no_cache=1
7451 fi
7452
7453 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7454
7455fi
7456
7457
7458 eval "$ac_cv_use_validators"
7459 if test "$no_cache" != 1; then
7460 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7461 fi
7462
7463 if test "$wxUSE_VALIDATORS" = yes; then
7464 echo "$ac_t""yes" 1>&6
7465 else
7466 echo "$ac_t""no" 1>&6
7467 fi
7468
7469
7470 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7471echo "configure:7472: checking for --enable-busyinfo" >&5
7472 no_cache=0
7473 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7474if test "${enable_busyinfo+set}" = set; then
7475 enableval="$enable_busyinfo"
7476
7477 if test "$enableval" = yes; then
7478 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7479 else
7480 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7481 fi
7482
7483else
7484
7485 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7486 if test "x$LINE" != x ; then
7487 eval "DEFAULT_$LINE"
7488 else
7489 no_cache=1
7490 fi
7491
7492 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7493
7494fi
7495
7496
7497 eval "$ac_cv_use_busyinfo"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_BUSYINFO" = yes; then
7503 echo "$ac_t""yes" 1>&6
7504 else
7505 echo "$ac_t""no" 1>&6
7506 fi
7507
7508
7509 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7510echo "configure:7511: checking for --enable-joystick" >&5
7511 no_cache=0
7512 # Check whether --enable-joystick or --disable-joystick was given.
7513if test "${enable_joystick+set}" = set; then
7514 enableval="$enable_joystick"
7515
7516 if test "$enableval" = yes; then
7517 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7518 else
7519 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7520 fi
7521
7522else
7523
7524 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7525 if test "x$LINE" != x ; then
7526 eval "DEFAULT_$LINE"
7527 else
7528 no_cache=1
7529 fi
7530
7531 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7532
7533fi
7534
7535
7536 eval "$ac_cv_use_joystick"
7537 if test "$no_cache" != 1; then
7538 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7539 fi
7540
7541 if test "$wxUSE_JOYSTICK" = yes; then
7542 echo "$ac_t""yes" 1>&6
7543 else
7544 echo "$ac_t""no" 1>&6
7545 fi
7546
7547
7548 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7549echo "configure:7550: checking for --enable-metafile" >&5
7550 no_cache=0
7551 # Check whether --enable-metafile or --disable-metafile was given.
7552if test "${enable_metafile+set}" = set; then
7553 enableval="$enable_metafile"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7557 else
7558 ac_cv_use_metafile='wxUSE_METAFILE=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7571
7572fi
7573
7574
7575 eval "$ac_cv_use_metafile"
7576 if test "$no_cache" != 1; then
7577 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7578 fi
7579
7580 if test "$wxUSE_METAFILE" = yes; then
7581 echo "$ac_t""yes" 1>&6
7582 else
7583 echo "$ac_t""no" 1>&6
7584 fi
7585
7586
7587 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7588echo "configure:7589: checking for --enable-dragimage" >&5
7589 no_cache=0
7590 # Check whether --enable-dragimage or --disable-dragimage was given.
7591if test "${enable_dragimage+set}" = set; then
7592 enableval="$enable_dragimage"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7596 else
7597 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7598 fi
7599
7600else
7601
7602 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7610
7611fi
7612
7613
7614 eval "$ac_cv_use_dragimage"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_DRAGIMAGE" = yes; then
7620 echo "$ac_t""yes" 1>&6
7621 else
7622 echo "$ac_t""no" 1>&6
7623 fi
7624
7625
7626
7627
7628 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7629echo "configure:7630: checking for --enable-palette" >&5
7630 no_cache=0
7631 # Check whether --enable-palette or --disable-palette was given.
7632if test "${enable_palette+set}" = set; then
7633 enableval="$enable_palette"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_palette='wxUSE_PALETTE=yes'
7637 else
7638 ac_cv_use_palette='wxUSE_PALETTE=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7651
7652fi
7653
7654
7655 eval "$ac_cv_use_palette"
7656 if test "$no_cache" != 1; then
7657 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7658 fi
7659
7660 if test "$wxUSE_PALETTE" = yes; then
7661 echo "$ac_t""yes" 1>&6
7662 else
7663 echo "$ac_t""no" 1>&6
7664 fi
7665
7666
7667 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7668echo "configure:7669: checking for --enable-image" >&5
7669 no_cache=0
7670 # Check whether --enable-image or --disable-image was given.
7671if test "${enable_image+set}" = set; then
7672 enableval="$enable_image"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_image='wxUSE_IMAGE=yes'
7676 else
7677 ac_cv_use_image='wxUSE_IMAGE=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7690
7691fi
7692
7693
7694 eval "$ac_cv_use_image"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_IMAGE" = yes; then
7700 echo "$ac_t""yes" 1>&6
7701 else
7702 echo "$ac_t""no" 1>&6
7703 fi
7704
7705
7706 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7707echo "configure:7708: checking for --enable-gif" >&5
7708 no_cache=0
7709 # Check whether --enable-gif or --disable-gif was given.
7710if test "${enable_gif+set}" = set; then
7711 enableval="$enable_gif"
7712
7713 if test "$enableval" = yes; then
7714 ac_cv_use_gif='wxUSE_GIF=yes'
7715 else
7716 ac_cv_use_gif='wxUSE_GIF=no'
7717 fi
7718
7719else
7720
7721 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7722 if test "x$LINE" != x ; then
7723 eval "DEFAULT_$LINE"
7724 else
7725 no_cache=1
7726 fi
7727
7728 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7729
7730fi
7731
7732
7733 eval "$ac_cv_use_gif"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_GIF" = yes; then
7739 echo "$ac_t""yes" 1>&6
7740 else
7741 echo "$ac_t""no" 1>&6
7742 fi
7743
7744
7745 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7746echo "configure:7747: checking for --enable-pcx" >&5
7747 no_cache=0
7748 # Check whether --enable-pcx or --disable-pcx was given.
7749if test "${enable_pcx+set}" = set; then
7750 enableval="$enable_pcx"
7751
7752 if test "$enableval" = yes; then
7753 ac_cv_use_pcx='wxUSE_PCX=yes'
7754 else
7755 ac_cv_use_pcx='wxUSE_PCX=no'
7756 fi
7757
7758else
7759
7760 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7768
7769fi
7770
7771
7772 eval "$ac_cv_use_pcx"
7773 if test "$no_cache" != 1; then
7774 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7775 fi
7776
7777 if test "$wxUSE_PCX" = yes; then
7778 echo "$ac_t""yes" 1>&6
7779 else
7780 echo "$ac_t""no" 1>&6
7781 fi
7782
7783
7784 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7785echo "configure:7786: checking for --enable-pnm" >&5
7786 no_cache=0
7787 # Check whether --enable-pnm or --disable-pnm was given.
7788if test "${enable_pnm+set}" = set; then
7789 enableval="$enable_pnm"
7790
7791 if test "$enableval" = yes; then
7792 ac_cv_use_pnm='wxUSE_PNM=yes'
7793 else
7794 ac_cv_use_pnm='wxUSE_PNM=no'
7795 fi
7796
7797else
7798
7799 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7800 if test "x$LINE" != x ; then
7801 eval "DEFAULT_$LINE"
7802 else
7803 no_cache=1
7804 fi
7805
7806 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7807
7808fi
7809
7810
7811 eval "$ac_cv_use_pnm"
7812 if test "$no_cache" != 1; then
7813 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7814 fi
7815
7816 if test "$wxUSE_PNM" = yes; then
7817 echo "$ac_t""yes" 1>&6
7818 else
7819 echo "$ac_t""no" 1>&6
7820 fi
7821
7822
7823 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
7824echo "configure:7825: checking for --enable-xpm" >&5
7825 no_cache=0
7826 # Check whether --enable-xpm or --disable-xpm was given.
7827if test "${enable_xpm+set}" = set; then
7828 enableval="$enable_xpm"
7829
7830 if test "$enableval" = yes; then
7831 ac_cv_use_xpm='wxUSE_XPM=yes'
7832 else
7833 ac_cv_use_xpm='wxUSE_XPM=no'
7834 fi
7835
7836else
7837
7838 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7839 if test "x$LINE" != x ; then
7840 eval "DEFAULT_$LINE"
7841 else
7842 no_cache=1
7843 fi
7844
7845 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7846
7847fi
7848
7849
7850 eval "$ac_cv_use_xpm"
7851 if test "$no_cache" != 1; then
7852 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
7853 fi
7854
7855 if test "$wxUSE_XPM" = yes; then
7856 echo "$ac_t""yes" 1>&6
7857 else
7858 echo "$ac_t""no" 1>&6
7859 fi
7860
7861
7862fi
7863
7864
7865 echo "saving argument cache $wx_arg_cache_file"
7866 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7867
7868
7869
7870echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7871echo "configure:7872: checking for toolkit" >&5
7872
7873if test "$wxUSE_GUI" = "yes"; then
7874
7875 if test "$USE_BEOS" = 1; then
7876 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7877 fi
7878
7879 if test "$TOOLKIT_GIVEN" = 1; then
7880 for toolkit in `echo $ALL_TOOLKITS`; do
7881 var=wxUSE_$toolkit
7882 eval "value=\$${var}"
7883 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7884 done
7885 else
7886 for toolkit in `echo $ALL_TOOLKITS`; do
7887 if test "$has_toolkit_in_cache" != 1; then
7888 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7889 else
7890 var=DEFAULT_wxUSE_$toolkit
7891 fi
7892 eval "wxUSE_$toolkit=\$${var}"
7893 done
7894 fi
7895
7896 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7897 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
7898
7899 case "${host}" in
7900 *-pc-os2_emx | *-pc-os2-emx )
7901 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7902 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7903 LEX_STEM="lexyy"
7904 ;;
7905 *)
7906 PATH_IFS=':'
7907 LEX_STEM="lex.yy"
7908 ;;
7909 esac
7910
7911 case "$NUM_TOOLKITS" in
7912 1)
7913 ;;
7914 0)
7915 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7916 ;;
7917 *)
7918 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7919 esac
7920
7921 for toolkit in `echo $ALL_TOOLKITS`; do
7922 var=wxUSE_$toolkit
7923 eval "value=\$${var}"
7924 if test "x$value" != x; then
7925 cache_var=CACHE_$toolkit
7926 eval "cache=\$${cache_var}"
7927 if test "$cache" = 1; then
7928 echo "$var=$value" >> ${wx_arg_cache_file}
7929 fi
7930 if test "$value" = 1; then
7931 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7932 echo "$ac_t""$toolkit_echo" 1>&6
7933 fi
7934 fi
7935 done
7936else
7937 PATH_IFS=':'
7938 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7939fi
7940
7941
7942cat > confcache <<\EOF
7943# This file is a shell script that caches the results of configure
7944# tests run on this system so they can be shared between configure
7945# scripts and configure runs. It is not useful on other systems.
7946# If it contains results you don't want to keep, you may remove or edit it.
7947#
7948# By default, configure uses ./config.cache as the cache file,
7949# creating it if it does not exist already. You can give configure
7950# the --cache-file=FILE option to use a different cache file; that is
7951# what configure does when it calls configure scripts in
7952# subdirectories, so they share the cache.
7953# Giving --cache-file=/dev/null disables caching, for debugging configure.
7954# config.status only pays attention to the cache file if you give it the
7955# --recheck option to rerun configure.
7956#
7957EOF
7958# The following way of writing the cache mishandles newlines in values,
7959# but we know of no workaround that is simple, portable, and efficient.
7960# So, don't put newlines in cache variables' values.
7961# Ultrix sh set writes to stderr and can't be redirected directly,
7962# and sets the high bit in the cache file unless we assign to the vars.
7963(set) 2>&1 |
7964 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7965 *ac_space=\ *)
7966 # `set' does not quote correctly, so add quotes (double-quote substitution
7967 # turns \\\\ into \\, and sed turns \\ into \).
7968 sed -n \
7969 -e "s/'/'\\\\''/g" \
7970 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7971 ;;
7972 *)
7973 # `set' quotes correctly as required by POSIX, so do not add quotes.
7974 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7975 ;;
7976 esac >> confcache
7977if cmp -s $cache_file confcache; then
7978 :
7979else
7980 if test -w $cache_file; then
7981 echo "updating cache $cache_file"
7982 cat confcache > $cache_file
7983 else
7984 echo "not updating unwritable cache $cache_file"
7985 fi
7986fi
7987rm -f confcache
7988
7989
7990if test "$build" != "$host" ; then
7991 if test "$USE_WIN32" = 1 ; then
7992 CC=$host_alias-gcc
7993 CXX=$host_alias-c++
7994 AR=$host_alias-ar
7995 RANLIB=$host_alias-ranlib
7996 DLLTOOL=$host_alias-dlltool
7997 RESCOMP=$host_alias-windres
7998 LD=$host_alias-ld
7999 NM=$host_alias-nm
8000 STRIP=$host_alias-strip
8001 else
8002 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8003 fi
8004fi
8005
8006# Extract the first word of "gcc", so it can be a program name with args.
8007set dummy gcc; ac_word=$2
8008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8009echo "configure:8010: checking for $ac_word" >&5
8010if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8012else
8013 if test -n "$CC"; then
8014 ac_cv_prog_CC="$CC" # Let the user override the test.
8015else
8016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8017 ac_dummy="$PATH"
8018 for ac_dir in $ac_dummy; do
8019 test -z "$ac_dir" && ac_dir=.
8020 if test -f $ac_dir/$ac_word; then
8021 ac_cv_prog_CC="gcc"
8022 break
8023 fi
8024 done
8025 IFS="$ac_save_ifs"
8026fi
8027fi
8028CC="$ac_cv_prog_CC"
8029if test -n "$CC"; then
8030 echo "$ac_t""$CC" 1>&6
8031else
8032 echo "$ac_t""no" 1>&6
8033fi
8034
8035if test -z "$CC"; then
8036 # Extract the first word of "cc", so it can be a program name with args.
8037set dummy cc; ac_word=$2
8038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8039echo "configure:8040: checking for $ac_word" >&5
8040if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8042else
8043 if test -n "$CC"; then
8044 ac_cv_prog_CC="$CC" # Let the user override the test.
8045else
8046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8047 ac_prog_rejected=no
8048 ac_dummy="$PATH"
8049 for ac_dir in $ac_dummy; do
8050 test -z "$ac_dir" && ac_dir=.
8051 if test -f $ac_dir/$ac_word; then
8052 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8053 ac_prog_rejected=yes
8054 continue
8055 fi
8056 ac_cv_prog_CC="cc"
8057 break
8058 fi
8059 done
8060 IFS="$ac_save_ifs"
8061if test $ac_prog_rejected = yes; then
8062 # We found a bogon in the path, so make sure we never use it.
8063 set dummy $ac_cv_prog_CC
8064 shift
8065 if test $# -gt 0; then
8066 # We chose a different compiler from the bogus one.
8067 # However, it has the same basename, so the bogon will be chosen
8068 # first if we set CC to just the basename; use the full file name.
8069 shift
8070 set dummy "$ac_dir/$ac_word" "$@"
8071 shift
8072 ac_cv_prog_CC="$@"
8073 fi
8074fi
8075fi
8076fi
8077CC="$ac_cv_prog_CC"
8078if test -n "$CC"; then
8079 echo "$ac_t""$CC" 1>&6
8080else
8081 echo "$ac_t""no" 1>&6
8082fi
8083
8084 if test -z "$CC"; then
8085 case "`uname -s`" in
8086 *win32* | *WIN32*)
8087 # Extract the first word of "cl", so it can be a program name with args.
8088set dummy cl; ac_word=$2
8089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8090echo "configure:8091: checking for $ac_word" >&5
8091if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8093else
8094 if test -n "$CC"; then
8095 ac_cv_prog_CC="$CC" # Let the user override the test.
8096else
8097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8098 ac_dummy="$PATH"
8099 for ac_dir in $ac_dummy; do
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f $ac_dir/$ac_word; then
8102 ac_cv_prog_CC="cl"
8103 break
8104 fi
8105 done
8106 IFS="$ac_save_ifs"
8107fi
8108fi
8109CC="$ac_cv_prog_CC"
8110if test -n "$CC"; then
8111 echo "$ac_t""$CC" 1>&6
8112else
8113 echo "$ac_t""no" 1>&6
8114fi
8115 ;;
8116 esac
8117 fi
8118 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8119fi
8120
8121echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8122echo "configure:8123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8123
8124ac_ext=c
8125# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8126ac_cpp='$CPP $CPPFLAGS'
8127ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8128ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8129cross_compiling=$ac_cv_prog_cc_cross
8130
8131cat > conftest.$ac_ext << EOF
8132
8133#line 8134 "configure"
8134#include "confdefs.h"
8135
8136main(){return(0);}
8137EOF
8138if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 ac_cv_prog_cc_works=yes
8140 # If we can't run a trivial program, we are probably using a cross compiler.
8141 if (./conftest; exit) 2>/dev/null; then
8142 ac_cv_prog_cc_cross=no
8143 else
8144 ac_cv_prog_cc_cross=yes
8145 fi
8146else
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8149 ac_cv_prog_cc_works=no
8150fi
8151rm -fr conftest*
8152ac_ext=c
8153# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8154ac_cpp='$CPP $CPPFLAGS'
8155ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8156ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8157cross_compiling=$ac_cv_prog_cc_cross
8158
8159echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8160if test $ac_cv_prog_cc_works = no; then
8161 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8162fi
8163echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8164echo "configure:8165: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8165echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8166cross_compiling=$ac_cv_prog_cc_cross
8167
8168echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8169echo "configure:8170: checking whether we are using GNU C" >&5
8170if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8172else
8173 cat > conftest.c <<EOF
8174#ifdef __GNUC__
8175 yes;
8176#endif
8177EOF
8178if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8179 ac_cv_prog_gcc=yes
8180else
8181 ac_cv_prog_gcc=no
8182fi
8183fi
8184
8185echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8186
8187if test $ac_cv_prog_gcc = yes; then
8188 GCC=yes
8189else
8190 GCC=
8191fi
8192
8193ac_test_CFLAGS="${CFLAGS+set}"
8194ac_save_CFLAGS="$CFLAGS"
8195CFLAGS=
8196echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8197echo "configure:8198: checking whether ${CC-cc} accepts -g" >&5
8198if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8199 echo $ac_n "(cached) $ac_c" 1>&6
8200else
8201 echo 'void f(){}' > conftest.c
8202if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8203 ac_cv_prog_cc_g=yes
8204else
8205 ac_cv_prog_cc_g=no
8206fi
8207rm -f conftest*
8208
8209fi
8210
8211echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8212if test "$ac_test_CFLAGS" = set; then
8213 CFLAGS="$ac_save_CFLAGS"
8214elif test $ac_cv_prog_cc_g = yes; then
8215 if test "$GCC" = yes; then
8216 CFLAGS="-g -O2"
8217 else
8218 CFLAGS="-g"
8219 fi
8220else
8221 if test "$GCC" = yes; then
8222 CFLAGS="-O2"
8223 else
8224 CFLAGS=
8225 fi
8226fi
8227
8228
8229CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8230
8231echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8232echo "configure:8233: checking how to run the C preprocessor" >&5
8233# On Suns, sometimes $CPP names a directory.
8234if test -n "$CPP" && test -d "$CPP"; then
8235 CPP=
8236fi
8237if test -z "$CPP"; then
8238if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
8240else
8241 # This must be in double quotes, not single quotes, because CPP may get
8242 # substituted into the Makefile and "${CC-cc}" will confuse make.
8243 CPP="${CC-cc} -E"
8244 # On the NeXT, cc -E runs the code through the compiler's parser,
8245 # not just through cpp.
8246 cat > conftest.$ac_ext <<EOF
8247#line 8248 "configure"
8248#include "confdefs.h"
8249#include <assert.h>
8250Syntax Error
8251EOF
8252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8253{ (eval echo configure:8254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8255if test -z "$ac_err"; then
8256 :
8257else
8258 echo "$ac_err" >&5
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8261 rm -rf conftest*
8262 CPP="${CC-cc} -E -traditional-cpp"
8263 cat > conftest.$ac_ext <<EOF
8264#line 8265 "configure"
8265#include "confdefs.h"
8266#include <assert.h>
8267Syntax Error
8268EOF
8269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8270{ (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8272if test -z "$ac_err"; then
8273 :
8274else
8275 echo "$ac_err" >&5
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8278 rm -rf conftest*
8279 CPP="${CC-cc} -nologo -E"
8280 cat > conftest.$ac_ext <<EOF
8281#line 8282 "configure"
8282#include "confdefs.h"
8283#include <assert.h>
8284Syntax Error
8285EOF
8286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8287{ (eval echo configure:8288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8289if test -z "$ac_err"; then
8290 :
8291else
8292 echo "$ac_err" >&5
8293 echo "configure: failed program was:" >&5
8294 cat conftest.$ac_ext >&5
8295 rm -rf conftest*
8296 CPP=/lib/cpp
8297fi
8298rm -f conftest*
8299fi
8300rm -f conftest*
8301fi
8302rm -f conftest*
8303 ac_cv_prog_CPP="$CPP"
8304fi
8305 CPP="$ac_cv_prog_CPP"
8306else
8307 ac_cv_prog_CPP="$CPP"
8308fi
8309echo "$ac_t""$CPP" 1>&6
8310
8311if test $ac_cv_prog_gcc = yes; then
8312 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8313echo "configure:8314: checking whether ${CC-cc} needs -traditional" >&5
8314if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8316else
8317 ac_pattern="Autoconf.*'x'"
8318 cat > conftest.$ac_ext <<EOF
8319#line 8320 "configure"
8320#include "confdefs.h"
8321#include <sgtty.h>
8322Autoconf TIOCGETP
8323EOF
8324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8325 egrep "$ac_pattern" >/dev/null 2>&1; then
8326 rm -rf conftest*
8327 ac_cv_prog_gcc_traditional=yes
8328else
8329 rm -rf conftest*
8330 ac_cv_prog_gcc_traditional=no
8331fi
8332rm -f conftest*
8333
8334
8335 if test $ac_cv_prog_gcc_traditional = no; then
8336 cat > conftest.$ac_ext <<EOF
8337#line 8338 "configure"
8338#include "confdefs.h"
8339#include <termio.h>
8340Autoconf TCGETA
8341EOF
8342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8343 egrep "$ac_pattern" >/dev/null 2>&1; then
8344 rm -rf conftest*
8345 ac_cv_prog_gcc_traditional=yes
8346fi
8347rm -f conftest*
8348
8349 fi
8350fi
8351
8352echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8353 if test $ac_cv_prog_gcc_traditional = yes; then
8354 CC="$CC -traditional"
8355 fi
8356fi
8357
8358
8359
8360ac_ext=C
8361# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8362ac_cpp='$CXXCPP $CPPFLAGS'
8363ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8364ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8365cross_compiling=$ac_cv_prog_cxx_cross
8366
8367
8368for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8369do
8370# Extract the first word of "$ac_prog", so it can be a program name with args.
8371set dummy $ac_prog; ac_word=$2
8372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8373echo "configure:8374: checking for $ac_word" >&5
8374if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8375 echo $ac_n "(cached) $ac_c" 1>&6
8376else
8377 if test -n "$CXX"; then
8378 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8379else
8380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8381 ac_dummy="$PATH"
8382 for ac_dir in $ac_dummy; do
8383 test -z "$ac_dir" && ac_dir=.
8384 if test -f $ac_dir/$ac_word; then
8385 ac_cv_prog_CXX="$ac_prog"
8386 break
8387 fi
8388 done
8389 IFS="$ac_save_ifs"
8390fi
8391fi
8392CXX="$ac_cv_prog_CXX"
8393if test -n "$CXX"; then
8394 echo "$ac_t""$CXX" 1>&6
8395else
8396 echo "$ac_t""no" 1>&6
8397fi
8398
8399test -n "$CXX" && break
8400done
8401test -n "$CXX" || CXX="gcc"
8402
8403
8404echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8405echo "configure:8406: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8406
8407ac_ext=C
8408# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8409ac_cpp='$CXXCPP $CPPFLAGS'
8410ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8411ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8412cross_compiling=$ac_cv_prog_cxx_cross
8413
8414cat > conftest.$ac_ext << EOF
8415
8416#line 8417 "configure"
8417#include "confdefs.h"
8418
8419int main(){return(0);}
8420EOF
8421if { (eval echo configure:8422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8422 ac_cv_prog_cxx_works=yes
8423 # If we can't run a trivial program, we are probably using a cross compiler.
8424 if (./conftest; exit) 2>/dev/null; then
8425 ac_cv_prog_cxx_cross=no
8426 else
8427 ac_cv_prog_cxx_cross=yes
8428 fi
8429else
8430 echo "configure: failed program was:" >&5
8431 cat conftest.$ac_ext >&5
8432 ac_cv_prog_cxx_works=no
8433fi
8434rm -fr conftest*
8435ac_ext=C
8436# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8437ac_cpp='$CXXCPP $CPPFLAGS'
8438ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8439ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8440cross_compiling=$ac_cv_prog_cxx_cross
8441
8442echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8443if test $ac_cv_prog_cxx_works = no; then
8444 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8445fi
8446echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8447echo "configure:8448: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8448echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8449cross_compiling=$ac_cv_prog_cxx_cross
8450
8451echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8452echo "configure:8453: checking whether we are using GNU C++" >&5
8453if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8455else
8456 cat > conftest.C <<EOF
8457#ifdef __GNUC__
8458 yes;
8459#endif
8460EOF
8461if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8462 ac_cv_prog_gxx=yes
8463else
8464 ac_cv_prog_gxx=no
8465fi
8466fi
8467
8468echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8469
8470if test $ac_cv_prog_gxx = yes; then
8471 GXX=yes
8472else
8473 GXX=
8474fi
8475
8476ac_test_CXXFLAGS="${CXXFLAGS+set}"
8477ac_save_CXXFLAGS="$CXXFLAGS"
8478CXXFLAGS=
8479echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8480echo "configure:8481: checking whether ${CXX-g++} accepts -g" >&5
8481if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8483else
8484 echo 'void f(){}' > conftest.cc
8485if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8486 ac_cv_prog_cxx_g=yes
8487else
8488 ac_cv_prog_cxx_g=no
8489fi
8490rm -f conftest*
8491
8492fi
8493
8494echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8495if test "$ac_test_CXXFLAGS" = set; then
8496 CXXFLAGS="$ac_save_CXXFLAGS"
8497elif test $ac_cv_prog_cxx_g = yes; then
8498 if test "$GXX" = yes; then
8499 CXXFLAGS="-g -O2"
8500 else
8501 CXXFLAGS="-g"
8502 fi
8503else
8504 if test "$GXX" = yes; then
8505 CXXFLAGS="-O2"
8506 else
8507 CXXFLAGS=
8508 fi
8509fi
8510
8511
8512CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8513
8514ac_ext=c
8515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8516ac_cpp='$CPP $CPPFLAGS'
8517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8519cross_compiling=$ac_cv_prog_cc_cross
8520
8521
8522# Extract the first word of "ranlib", so it can be a program name with args.
8523set dummy ranlib; ac_word=$2
8524echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8525echo "configure:8526: checking for $ac_word" >&5
8526if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8528else
8529 if test -n "$RANLIB"; then
8530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8531else
8532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8533 ac_dummy="$PATH"
8534 for ac_dir in $ac_dummy; do
8535 test -z "$ac_dir" && ac_dir=.
8536 if test -f $ac_dir/$ac_word; then
8537 ac_cv_prog_RANLIB="ranlib"
8538 break
8539 fi
8540 done
8541 IFS="$ac_save_ifs"
8542 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8543fi
8544fi
8545RANLIB="$ac_cv_prog_RANLIB"
8546if test -n "$RANLIB"; then
8547 echo "$ac_t""$RANLIB" 1>&6
8548else
8549 echo "$ac_t""no" 1>&6
8550fi
8551
8552
8553# Extract the first word of "ar", so it can be a program name with args.
8554set dummy ar; ac_word=$2
8555echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8556echo "configure:8557: checking for $ac_word" >&5
8557if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8559else
8560 if test -n "$AR"; then
8561 ac_cv_prog_AR="$AR" # Let the user override the test.
8562else
8563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8564 ac_dummy="$PATH"
8565 for ac_dir in $ac_dummy; do
8566 test -z "$ac_dir" && ac_dir=.
8567 if test -f $ac_dir/$ac_word; then
8568 ac_cv_prog_AR="ar"
8569 break
8570 fi
8571 done
8572 IFS="$ac_save_ifs"
8573 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8574fi
8575fi
8576AR="$ac_cv_prog_AR"
8577if test -n "$AR"; then
8578 echo "$ac_t""$AR" 1>&6
8579else
8580 echo "$ac_t""no" 1>&6
8581fi
8582
8583
8584# Find a good install program. We prefer a C program (faster),
8585# so one script is as good as another. But avoid the broken or
8586# incompatible versions:
8587# SysV /etc/install, /usr/sbin/install
8588# SunOS /usr/etc/install
8589# IRIX /sbin/install
8590# AIX /bin/install
8591# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8592# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8593# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8594# ./install, which can be erroneously created by make from ./install.sh.
8595echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8596echo "configure:8597: checking for a BSD compatible install" >&5
8597if test -z "$INSTALL"; then
8598if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8600else
8601 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8602 for ac_dir in $PATH; do
8603 # Account for people who put trailing slashes in PATH elements.
8604 case "$ac_dir/" in
8605 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8606 *)
8607 # OSF1 and SCO ODT 3.0 have their own names for install.
8608 # Don't use installbsd from OSF since it installs stuff as root
8609 # by default.
8610 for ac_prog in ginstall scoinst install; do
8611 if test -f $ac_dir/$ac_prog; then
8612 if test $ac_prog = install &&
8613 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8614 # AIX install. It has an incompatible calling convention.
8615 :
8616 else
8617 ac_cv_path_install="$ac_dir/$ac_prog -c"
8618 break 2
8619 fi
8620 fi
8621 done
8622 ;;
8623 esac
8624 done
8625 IFS="$ac_save_IFS"
8626
8627fi
8628 if test "${ac_cv_path_install+set}" = set; then
8629 INSTALL="$ac_cv_path_install"
8630 else
8631 # As a last resort, use the slow shell script. We don't cache a
8632 # path for INSTALL within a source directory, because that will
8633 # break other packages using the cache if that directory is
8634 # removed, or if the path is relative.
8635 INSTALL="$ac_install_sh"
8636 fi
8637fi
8638echo "$ac_t""$INSTALL" 1>&6
8639
8640# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8641# It thinks the first close brace ends the variable substitution.
8642test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8643
8644test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8645
8646test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8647
8648case "${host}" in
8649
8650 powerpc-*-darwin* )
8651 INSTALL_PROGRAM="cp -fp"
8652 INSTALL_DATA="cp -fp"
8653 ;;
8654 *)
8655 ;;
8656esac
8657
8658# Extract the first word of "strip", so it can be a program name with args.
8659set dummy strip; ac_word=$2
8660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8661echo "configure:8662: checking for $ac_word" >&5
8662if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
8664else
8665 if test -n "$STRIP"; then
8666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8667else
8668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8669 ac_dummy="$PATH"
8670 for ac_dir in $ac_dummy; do
8671 test -z "$ac_dir" && ac_dir=.
8672 if test -f $ac_dir/$ac_word; then
8673 ac_cv_prog_STRIP="strip"
8674 break
8675 fi
8676 done
8677 IFS="$ac_save_ifs"
8678 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8679fi
8680fi
8681STRIP="$ac_cv_prog_STRIP"
8682if test -n "$STRIP"; then
8683 echo "$ac_t""$STRIP" 1>&6
8684else
8685 echo "$ac_t""no" 1>&6
8686fi
8687
8688
8689echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8690echo "configure:8691: checking make for VPATH support" >&5
8691cat - << EOF > confMake
8692check : file
8693 cp \$? \$@
8694 cp \$? final_file
8695EOF
8696
8697if test ! -d sub ; then
8698 mkdir sub
8699fi
8700echo dummy > sub/file
8701${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8702RESULT=$?
8703rm -f sub/file check final_file confMake
8704rmdir sub
8705if test "$RESULT" = 0; then
8706 echo "$ac_t""yes" 1>&6
8707else
8708 echo "$ac_t""no" 1>&6
8709 { echo "configure: error:
8710You need a make-utility that is able to use the variable
8711VPATH correctly.
8712If your version of make does not support VPATH correctly,
8713please install GNU-make (possibly as gmake), and start
8714configure with the following command:
8715export MAKE=gmake; ./configure for sh-type shells
8716setenv MAKE gmake; ./configure for csh-type shells
8717Also please do remember to use gmake in this case every time
8718you are trying to compile.
8719" 1>&2; exit 1; }
8720fi
8721
8722for ac_prog in 'bison -y' byacc
8723do
8724# Extract the first word of "$ac_prog", so it can be a program name with args.
8725set dummy $ac_prog; ac_word=$2
8726echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8727echo "configure:8728: checking for $ac_word" >&5
8728if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
8730else
8731 if test -n "$YACC"; then
8732 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8733else
8734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8735 ac_dummy="$PATH"
8736 for ac_dir in $ac_dummy; do
8737 test -z "$ac_dir" && ac_dir=.
8738 if test -f $ac_dir/$ac_word; then
8739 ac_cv_prog_YACC="$ac_prog"
8740 break
8741 fi
8742 done
8743 IFS="$ac_save_ifs"
8744fi
8745fi
8746YACC="$ac_cv_prog_YACC"
8747if test -n "$YACC"; then
8748 echo "$ac_t""$YACC" 1>&6
8749else
8750 echo "$ac_t""no" 1>&6
8751fi
8752
8753test -n "$YACC" && break
8754done
8755test -n "$YACC" || YACC="yacc"
8756
8757
8758# Extract the first word of "flex", so it can be a program name with args.
8759set dummy flex; ac_word=$2
8760echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8761echo "configure:8762: checking for $ac_word" >&5
8762if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764else
8765 if test -n "$LEX"; then
8766 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8767else
8768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8769 ac_dummy="$PATH"
8770 for ac_dir in $ac_dummy; do
8771 test -z "$ac_dir" && ac_dir=.
8772 if test -f $ac_dir/$ac_word; then
8773 ac_cv_prog_LEX="flex"
8774 break
8775 fi
8776 done
8777 IFS="$ac_save_ifs"
8778 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8779fi
8780fi
8781LEX="$ac_cv_prog_LEX"
8782if test -n "$LEX"; then
8783 echo "$ac_t""$LEX" 1>&6
8784else
8785 echo "$ac_t""no" 1>&6
8786fi
8787
8788if test -z "$LEXLIB"
8789then
8790 case "$LEX" in
8791 flex*) ac_lib=fl ;;
8792 *) ac_lib=l ;;
8793 esac
8794 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8795echo "configure:8796: checking for yywrap in -l$ac_lib" >&5
8796ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8797if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8799else
8800 ac_save_LIBS="$LIBS"
8801LIBS="-l$ac_lib $LIBS"
8802cat > conftest.$ac_ext <<EOF
8803#line 8804 "configure"
8804#include "confdefs.h"
8805/* Override any gcc2 internal prototype to avoid an error. */
8806/* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808char yywrap();
8809
8810int main() {
8811yywrap()
8812; return 0; }
8813EOF
8814if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8815 rm -rf conftest*
8816 eval "ac_cv_lib_$ac_lib_var=yes"
8817else
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8820 rm -rf conftest*
8821 eval "ac_cv_lib_$ac_lib_var=no"
8822fi
8823rm -f conftest*
8824LIBS="$ac_save_LIBS"
8825
8826fi
8827if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8828 echo "$ac_t""yes" 1>&6
8829 LEXLIB="-l$ac_lib"
8830else
8831 echo "$ac_t""no" 1>&6
8832fi
8833
8834fi
8835
8836
8837echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8838echo "configure:8839: checking whether ln -s works" >&5
8839if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8841else
8842 rm -f conftestdata
8843if ln -s X conftestdata 2>/dev/null
8844then
8845 rm -f conftestdata
8846 ac_cv_prog_LN_S="ln -s"
8847else
8848 ac_cv_prog_LN_S=ln
8849fi
8850fi
8851LN_S="$ac_cv_prog_LN_S"
8852if test "$ac_cv_prog_LN_S" = "ln -s"; then
8853 echo "$ac_t""yes" 1>&6
8854else
8855 echo "$ac_t""no" 1>&6
8856fi
8857
8858
8859
8860SEARCH_INCLUDE="\
8861 /usr/local/include \
8862 \
8863 /usr/Motif-1.2/include \
8864 /usr/Motif-2.1/include \
8865 \
8866 /usr/include/Motif1.2 \
8867 /opt/xpm/include/X11 \
8868 /opt/GBxpm/include/ \
8869 /opt/GBxpm/X11/include/ \
8870 \
8871 /usr/Motif1.2/include \
8872 /usr/dt/include \
8873 /usr/openwin/include \
8874 \
8875 /usr/include/Xm \
8876 \
8877 /usr/X11R6/include \
8878 /usr/X11R6.4/include \
8879 /usr/X11R5/include \
8880 /usr/X11R4/include \
8881 \
8882 /usr/include/X11R6 \
8883 /usr/include/X11R5 \
8884 /usr/include/X11R4 \
8885 \
8886 /usr/local/X11R6/include \
8887 /usr/local/X11R5/include \
8888 /usr/local/X11R4/include \
8889 \
8890 /usr/local/include/X11R6 \
8891 /usr/local/include/X11R5 \
8892 /usr/local/include/X11R4 \
8893 \
8894 /usr/X11/include \
8895 /usr/include/X11 \
8896 /usr/local/X11/include \
8897 /usr/local/include/X11 \
8898 \
8899 /usr/X386/include \
8900 /usr/x386/include \
8901 /usr/XFree86/include/X11 \
8902 \
8903 X:/XFree86/include \
8904 X:/XFree86/include/X11 \
8905 \
8906 /usr/include/gtk \
8907 /usr/local/include/gtk \
8908 /usr/include/glib \
8909 /usr/local/include/glib \
8910 \
8911 /usr/include/qt \
8912 /usr/local/include/qt \
8913 \
8914 /usr/include/windows \
8915 /usr/include/wine \
8916 /usr/local/include/wine \
8917 \
8918 /usr/unsupported/include \
8919 /usr/athena/include \
8920 /usr/local/x11r5/include \
8921 /usr/lpp/Xamples/include \
8922 \
8923 /usr/openwin/share/include \
8924 \
8925 /usr/include"
8926
8927SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8928
8929
8930cat > confcache <<\EOF
8931# This file is a shell script that caches the results of configure
8932# tests run on this system so they can be shared between configure
8933# scripts and configure runs. It is not useful on other systems.
8934# If it contains results you don't want to keep, you may remove or edit it.
8935#
8936# By default, configure uses ./config.cache as the cache file,
8937# creating it if it does not exist already. You can give configure
8938# the --cache-file=FILE option to use a different cache file; that is
8939# what configure does when it calls configure scripts in
8940# subdirectories, so they share the cache.
8941# Giving --cache-file=/dev/null disables caching, for debugging configure.
8942# config.status only pays attention to the cache file if you give it the
8943# --recheck option to rerun configure.
8944#
8945EOF
8946# The following way of writing the cache mishandles newlines in values,
8947# but we know of no workaround that is simple, portable, and efficient.
8948# So, don't put newlines in cache variables' values.
8949# Ultrix sh set writes to stderr and can't be redirected directly,
8950# and sets the high bit in the cache file unless we assign to the vars.
8951(set) 2>&1 |
8952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8953 *ac_space=\ *)
8954 # `set' does not quote correctly, so add quotes (double-quote substitution
8955 # turns \\\\ into \\, and sed turns \\ into \).
8956 sed -n \
8957 -e "s/'/'\\\\''/g" \
8958 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8959 ;;
8960 *)
8961 # `set' quotes correctly as required by POSIX, so do not add quotes.
8962 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8963 ;;
8964 esac >> confcache
8965if cmp -s $cache_file confcache; then
8966 :
8967else
8968 if test -w $cache_file; then
8969 echo "updating cache $cache_file"
8970 cat confcache > $cache_file
8971 else
8972 echo "not updating unwritable cache $cache_file"
8973 fi
8974fi
8975rm -f confcache
8976
8977
8978
8979
8980REGEX_INCLUDE=
8981if test "$wxUSE_REGEX" != "no"; then
8982 cat >> confdefs.h <<\EOF
8983#define wxUSE_REGEX 1
8984EOF
8985
8986
8987 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8988 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8989echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8990echo "configure:8991: checking for regex.h" >&5
8991if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993else
8994 cat > conftest.$ac_ext <<EOF
8995#line 8996 "configure"
8996#include "confdefs.h"
8997#include <regex.h>
8998EOF
8999ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9000{ (eval echo configure:9001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9001ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9002if test -z "$ac_err"; then
9003 rm -rf conftest*
9004 eval "ac_cv_header_$ac_safe=yes"
9005else
9006 echo "$ac_err" >&5
9007 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 rm -rf conftest*
9010 eval "ac_cv_header_$ac_safe=no"
9011fi
9012rm -f conftest*
9013fi
9014if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 for ac_func in regcomp
9017do
9018echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9019echo "configure:9020: checking for $ac_func" >&5
9020if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022else
9023 cat > conftest.$ac_ext <<EOF
9024#line 9025 "configure"
9025#include "confdefs.h"
9026/* System header to define __stub macros and hopefully few prototypes,
9027 which can conflict with char $ac_func(); below. */
9028#include <assert.h>
9029/* Override any gcc2 internal prototype to avoid an error. */
9030/* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9032char $ac_func();
9033
9034int main() {
9035
9036/* The GNU C library defines this for functions which it implements
9037 to always fail with ENOSYS. Some functions are actually named
9038 something starting with __ and the normal name is an alias. */
9039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9040choke me
9041#else
9042$ac_func();
9043#endif
9044
9045; return 0; }
9046EOF
9047if { (eval echo configure:9048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9048 rm -rf conftest*
9049 eval "ac_cv_func_$ac_func=yes"
9050else
9051 echo "configure: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9053 rm -rf conftest*
9054 eval "ac_cv_func_$ac_func=no"
9055fi
9056rm -f conftest*
9057fi
9058
9059if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9060 echo "$ac_t""yes" 1>&6
9061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9062 cat >> confdefs.h <<EOF
9063#define $ac_tr_func 1
9064EOF
9065
9066else
9067 echo "$ac_t""no" 1>&6
9068fi
9069done
9070
9071else
9072 echo "$ac_t""no" 1>&6
9073fi
9074
9075
9076 if test "x$ac_cv_func_regcomp" != "xyes"; then
9077 if test "$wxUSE_REGEX" = "sys" ; then
9078 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9079 else
9080 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9081 wxUSE_REGEX=builtin
9082 fi
9083 else
9084 wxUSE_REGEX=sys
9085 fi
9086 fi
9087
9088 if test "$wxUSE_REGEX" = "builtin" ; then
9089 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9090 fi
9091fi
9092
9093
9094ZLIB_INCLUDE=
9095ZLIB_LINK=
9096if test "$wxUSE_ZLIB" != "no" ; then
9097 cat >> confdefs.h <<\EOF
9098#define wxUSE_ZLIB 1
9099EOF
9100
9101
9102 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9103 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9104echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9105echo "configure:9106: checking for zlib.h" >&5
9106if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9108else
9109 cat > conftest.$ac_ext <<EOF
9110#line 9111 "configure"
9111#include "confdefs.h"
9112#include <zlib.h>
9113EOF
9114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9115{ (eval echo configure:9116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9116ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9117if test -z "$ac_err"; then
9118 rm -rf conftest*
9119 eval "ac_cv_header_$ac_safe=yes"
9120else
9121 echo "$ac_err" >&5
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 rm -rf conftest*
9125 eval "ac_cv_header_$ac_safe=no"
9126fi
9127rm -f conftest*
9128fi
9129if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9130 echo "$ac_t""yes" 1>&6
9131 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9132echo "configure:9133: checking for deflate in -lz" >&5
9133ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9135 echo $ac_n "(cached) $ac_c" 1>&6
9136else
9137 ac_save_LIBS="$LIBS"
9138LIBS="-lz $LIBS"
9139cat > conftest.$ac_ext <<EOF
9140#line 9141 "configure"
9141#include "confdefs.h"
9142/* Override any gcc2 internal prototype to avoid an error. */
9143/* We use char because int might match the return type of a gcc2
9144 builtin and then its argument prototype would still apply. */
9145char deflate();
9146
9147int main() {
9148deflate()
9149; return 0; }
9150EOF
9151if { (eval echo configure:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9152 rm -rf conftest*
9153 eval "ac_cv_lib_$ac_lib_var=yes"
9154else
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 rm -rf conftest*
9158 eval "ac_cv_lib_$ac_lib_var=no"
9159fi
9160rm -f conftest*
9161LIBS="$ac_save_LIBS"
9162
9163fi
9164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9165 echo "$ac_t""yes" 1>&6
9166 ZLIB_LINK=" -lz"
9167else
9168 echo "$ac_t""no" 1>&6
9169fi
9170
9171else
9172 echo "$ac_t""no" 1>&6
9173fi
9174
9175
9176 if test "x$ZLIB_LINK" = "x" ; then
9177 if test "$wxUSE_ZLIB" = "sys" ; then
9178 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9179 else
9180 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9181 wxUSE_ZLIB=builtin
9182 fi
9183 else
9184 wxUSE_ZLIB=sys
9185 fi
9186 fi
9187
9188 if test "$wxUSE_ZLIB" = "builtin" ; then
9189 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9190 fi
9191fi
9192
9193
9194PNG_INCLUDE=
9195PNG_LINK=
9196if test "$wxUSE_LIBPNG" != "no" ; then
9197 cat >> confdefs.h <<\EOF
9198#define wxUSE_LIBPNG 1
9199EOF
9200
9201
9202 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9203 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9204 wxUSE_LIBPNG=builtin
9205 fi
9206
9207 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9208 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9209echo $ac_n "checking for png.h""... $ac_c" 1>&6
9210echo "configure:9211: checking for png.h" >&5
9211if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9213else
9214 cat > conftest.$ac_ext <<EOF
9215#line 9216 "configure"
9216#include "confdefs.h"
9217#include <png.h>
9218EOF
9219ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9220{ (eval echo configure:9221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9221ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9222if test -z "$ac_err"; then
9223 rm -rf conftest*
9224 eval "ac_cv_header_$ac_safe=yes"
9225else
9226 echo "$ac_err" >&5
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 rm -rf conftest*
9230 eval "ac_cv_header_$ac_safe=no"
9231fi
9232rm -f conftest*
9233fi
9234if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9235 echo "$ac_t""yes" 1>&6
9236 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9237echo "configure:9238: checking for png_check_sig in -lpng" >&5
9238ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9241else
9242 ac_save_LIBS="$LIBS"
9243LIBS="-lpng -lz -lm $LIBS"
9244cat > conftest.$ac_ext <<EOF
9245#line 9246 "configure"
9246#include "confdefs.h"
9247/* Override any gcc2 internal prototype to avoid an error. */
9248/* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250char png_check_sig();
9251
9252int main() {
9253png_check_sig()
9254; return 0; }
9255EOF
9256if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9257 rm -rf conftest*
9258 eval "ac_cv_lib_$ac_lib_var=yes"
9259else
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9262 rm -rf conftest*
9263 eval "ac_cv_lib_$ac_lib_var=no"
9264fi
9265rm -f conftest*
9266LIBS="$ac_save_LIBS"
9267
9268fi
9269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9270 echo "$ac_t""yes" 1>&6
9271 PNG_LINK=" -lpng"
9272else
9273 echo "$ac_t""no" 1>&6
9274fi
9275
9276
9277else
9278 echo "$ac_t""no" 1>&6
9279fi
9280
9281
9282 if test "x$PNG_LINK" = "x" ; then
9283 if test "$wxUSE_LIBPNG" = "sys" ; then
9284 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9285 else
9286 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9287 wxUSE_LIBPNG=builtin
9288 fi
9289 else
9290 wxUSE_LIBPNG=yes
9291 fi
9292 fi
9293
9294 if test "$wxUSE_LIBPNG" = "builtin" ; then
9295 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9296 fi
9297
9298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9299fi
9300
9301
9302JPEG_INCLUDE=
9303JPEG_LINK=
9304if test "$wxUSE_LIBJPEG" != "no" ; then
9305 cat >> confdefs.h <<\EOF
9306#define wxUSE_LIBJPEG 1
9307EOF
9308
9309
9310 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9311 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9312echo "configure:9313: checking for jpeglib.h" >&5
9313 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9315else
9316 cat > conftest.$ac_ext <<EOF
9317#line 9318 "configure"
9318#include "confdefs.h"
9319
9320 #undef HAVE_STDLIB_H
9321 #include <stdio.h>
9322 #include <jpeglib.h>
9323
9324int main() {
9325
9326
9327; return 0; }
9328EOF
9329if { (eval echo configure:9330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9330 rm -rf conftest*
9331 ac_cv_header_jpeglib_h=yes
9332else
9333 echo "configure: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9335 rm -rf conftest*
9336 ac_cv_header_jpeglib_h=no
9337
9338fi
9339rm -f conftest*
9340
9341fi
9342
9343 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9344
9345 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9346 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9347echo "configure:9348: checking for jpeg_read_header in -ljpeg" >&5
9348ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9351else
9352 ac_save_LIBS="$LIBS"
9353LIBS="-ljpeg $LIBS"
9354cat > conftest.$ac_ext <<EOF
9355#line 9356 "configure"
9356#include "confdefs.h"
9357/* Override any gcc2 internal prototype to avoid an error. */
9358/* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9360char jpeg_read_header();
9361
9362int main() {
9363jpeg_read_header()
9364; return 0; }
9365EOF
9366if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9367 rm -rf conftest*
9368 eval "ac_cv_lib_$ac_lib_var=yes"
9369else
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9372 rm -rf conftest*
9373 eval "ac_cv_lib_$ac_lib_var=no"
9374fi
9375rm -f conftest*
9376LIBS="$ac_save_LIBS"
9377
9378fi
9379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9380 echo "$ac_t""yes" 1>&6
9381 JPEG_LINK=" -ljpeg"
9382else
9383 echo "$ac_t""no" 1>&6
9384fi
9385
9386 fi
9387
9388 if test "x$JPEG_LINK" = "x" ; then
9389 if test "$wxUSE_LIBJPEG" = "sys" ; then
9390 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9391 else
9392 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9393 wxUSE_LIBJPEG=builtin
9394 fi
9395 else
9396 wxUSE_LIBJPEG=sys
9397 fi
9398 fi
9399
9400 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9401 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9402 fi
9403fi
9404
9405
9406TIFF_INCLUDE=
9407TIFF_LINK=
9408if test "$wxUSE_LIBTIFF" != "no" ; then
9409 cat >> confdefs.h <<\EOF
9410#define wxUSE_LIBTIFF 1
9411EOF
9412
9413
9414 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9415 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9416echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9417echo "configure:9418: checking for tiffio.h" >&5
9418if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420else
9421 cat > conftest.$ac_ext <<EOF
9422#line 9423 "configure"
9423#include "confdefs.h"
9424#include <tiffio.h>
9425EOF
9426ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9427{ (eval echo configure:9428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9428ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9429if test -z "$ac_err"; then
9430 rm -rf conftest*
9431 eval "ac_cv_header_$ac_safe=yes"
9432else
9433 echo "$ac_err" >&5
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 rm -rf conftest*
9437 eval "ac_cv_header_$ac_safe=no"
9438fi
9439rm -f conftest*
9440fi
9441if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9444echo "configure:9445: checking for TIFFError in -ltiff" >&5
9445ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9446if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9448else
9449 ac_save_LIBS="$LIBS"
9450LIBS="-ltiff -lm $LIBS"
9451cat > conftest.$ac_ext <<EOF
9452#line 9453 "configure"
9453#include "confdefs.h"
9454/* Override any gcc2 internal prototype to avoid an error. */
9455/* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9457char TIFFError();
9458
9459int main() {
9460TIFFError()
9461; return 0; }
9462EOF
9463if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9464 rm -rf conftest*
9465 eval "ac_cv_lib_$ac_lib_var=yes"
9466else
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 rm -rf conftest*
9470 eval "ac_cv_lib_$ac_lib_var=no"
9471fi
9472rm -f conftest*
9473LIBS="$ac_save_LIBS"
9474
9475fi
9476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9477 echo "$ac_t""yes" 1>&6
9478 TIFF_LINK=" -ltiff"
9479else
9480 echo "$ac_t""no" 1>&6
9481fi
9482
9483
9484else
9485 echo "$ac_t""no" 1>&6
9486fi
9487
9488
9489 if test "x$TIFF_LINK" = "x" ; then
9490 if test "$wxUSE_LIBTIFF" = "sys" ; then
9491 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9492 else
9493 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9494 wxUSE_LIBTIFF=builtin
9495 fi
9496 else
9497 wxUSE_LIBTIFF=sys
9498 fi
9499 fi
9500
9501 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9502 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9503 fi
9504fi
9505
9506
9507FREETYPE_INCLUDE=
9508FREETYPE_LINK=
9509if test "$wxUSE_FREETYPE" != "no" ; then
9510 cat >> confdefs.h <<\EOF
9511#define wxUSE_FREETYPE 1
9512EOF
9513
9514
9515 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9516 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9517echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9518echo "configure:9519: checking for freetype.h" >&5
9519if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9521else
9522 cat > conftest.$ac_ext <<EOF
9523#line 9524 "configure"
9524#include "confdefs.h"
9525#include <freetype.h>
9526EOF
9527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9528{ (eval echo configure:9529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9530if test -z "$ac_err"; then
9531 rm -rf conftest*
9532 eval "ac_cv_header_$ac_safe=yes"
9533else
9534 echo "$ac_err" >&5
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 rm -rf conftest*
9538 eval "ac_cv_header_$ac_safe=no"
9539fi
9540rm -f conftest*
9541fi
9542if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9543 echo "$ac_t""yes" 1>&6
9544 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9545echo "configure:9546: checking for FT_Render_Glyph in -lfreetype" >&5
9546ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9549else
9550 ac_save_LIBS="$LIBS"
9551LIBS="-lfreetype -lm $LIBS"
9552cat > conftest.$ac_ext <<EOF
9553#line 9554 "configure"
9554#include "confdefs.h"
9555/* Override any gcc2 internal prototype to avoid an error. */
9556/* We use char because int might match the return type of a gcc2
9557 builtin and then its argument prototype would still apply. */
9558char FT_Render_Glyph();
9559
9560int main() {
9561FT_Render_Glyph()
9562; return 0; }
9563EOF
9564if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9565 rm -rf conftest*
9566 eval "ac_cv_lib_$ac_lib_var=yes"
9567else
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 rm -rf conftest*
9571 eval "ac_cv_lib_$ac_lib_var=no"
9572fi
9573rm -f conftest*
9574LIBS="$ac_save_LIBS"
9575
9576fi
9577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9578 echo "$ac_t""yes" 1>&6
9579 FREETYPE_LINK=" -lfreetype"
9580else
9581 echo "$ac_t""no" 1>&6
9582fi
9583
9584
9585else
9586 echo "$ac_t""no" 1>&6
9587fi
9588
9589
9590 if test "x$FREETYPE_LINK" = "x" ; then
9591 if test "$wxUSE_FREETYPE" = "sys" ; then
9592 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9593 else
9594 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9595 wxUSE_FREETYPE=builtin
9596 fi
9597 else
9598 wxUSE_FREETYPE=sys
9599 fi
9600 fi
9601
9602 if test "$wxUSE_FREETYPE" = "builtin" ; then
9603 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9604 fi
9605fi
9606
9607
9608AFMINSTALL=
9609
9610TOOLKIT=
9611TOOLKIT_INCLUDE=
9612WIDGET_SET=
9613
9614if test "$USE_WIN32" = 1 ; then
9615 for ac_hdr in w32api.h
9616do
9617ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9618echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9619echo "configure:9620: checking for $ac_hdr" >&5
9620if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9622else
9623 cat > conftest.$ac_ext <<EOF
9624#line 9625 "configure"
9625#include "confdefs.h"
9626#include <$ac_hdr>
9627EOF
9628ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9629{ (eval echo configure:9630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9630ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9631if test -z "$ac_err"; then
9632 rm -rf conftest*
9633 eval "ac_cv_header_$ac_safe=yes"
9634else
9635 echo "$ac_err" >&5
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9638 rm -rf conftest*
9639 eval "ac_cv_header_$ac_safe=no"
9640fi
9641rm -f conftest*
9642fi
9643if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9644 echo "$ac_t""yes" 1>&6
9645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9646 cat >> confdefs.h <<EOF
9647#define $ac_tr_hdr 1
9648EOF
9649
9650else
9651 echo "$ac_t""no" 1>&6
9652fi
9653done
9654
9655 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9656echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9657echo "configure:9658: checking for windows.h" >&5
9658if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9660else
9661 cat > conftest.$ac_ext <<EOF
9662#line 9663 "configure"
9663#include "confdefs.h"
9664#include <windows.h>
9665EOF
9666ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9667{ (eval echo configure:9668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9668ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9669if test -z "$ac_err"; then
9670 rm -rf conftest*
9671 eval "ac_cv_header_$ac_safe=yes"
9672else
9673 echo "$ac_err" >&5
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 rm -rf conftest*
9677 eval "ac_cv_header_$ac_safe=no"
9678fi
9679rm -f conftest*
9680fi
9681if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9682 echo "$ac_t""yes" 1>&6
9683 :
9684else
9685 echo "$ac_t""no" 1>&6
9686
9687 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9688
9689fi
9690
9691
9692 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9693echo "configure:9694: checking if w32api has good enough MSIE support" >&5
9694if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9696else
9697
9698 cat > conftest.$ac_ext <<EOF
9699#line 9700 "configure"
9700#include "confdefs.h"
9701#include <w32api.h>
9702int main() {
9703
9704 #define wxCHECK_W32API_VERSION( major, minor ) \
9705 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9706 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9707 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9708
9709 #if !wxCHECK_W32API_VERSION(1,1)
9710 #error You need w32api 1.1 or newer
9711 #endif
9712
9713; return 0; }
9714EOF
9715if { (eval echo configure:9716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9716 rm -rf conftest*
9717
9718 wx_cv_w32api_win32_ie=yes
9719
9720else
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 rm -rf conftest*
9724
9725 wx_cv_w32api_win32_ie=no
9726
9727fi
9728rm -f conftest*
9729
9730fi
9731
9732echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9733 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9734 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9735 fi
9736
9737 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9738
9739 case "${host}" in
9740 *-*-cygwin* )
9741 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9742 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9743 esac
9744
9745 if test "$wxUSE_ODBC" = "yes" ; then
9746 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
9747 fi
9748
9749 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9750 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9751fi
9752
9753if test "$wxUSE_GUI" = "yes"; then
9754 USE_GUI=1
9755
9756 GUI_TK_LIBRARY=
9757
9758 WXGTK12=
9759 WXGTK127=
9760 WXGTK20=
9761
9762 if test "$wxUSE_MSW" = 1 ; then
9763 TOOLKIT=MSW
9764 GUIDIST=MSW_DIST
9765
9766 case "${host}" in
9767 *-*-mingw32* )
9768 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
9769 esac
9770 fi
9771
9772 if test "$wxUSE_GTK" = 1; then
9773 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9774echo "configure:9775: checking for GTK+ version" >&5
9775
9776 gtk_version_cached=1
9777 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9779else
9780
9781 gtk_version_cached=0
9782 echo "$ac_t""" 1>&6
9783
9784 wx_cv_lib_gtk=
9785 if test "x$wxUSE_GTK2" = "xyes"; then
9786 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9787if test "${with_gtk_prefix+set}" = set; then
9788 withval="$with_gtk_prefix"
9789 gtk_config_prefix="$withval"
9790else
9791 gtk_config_prefix=""
9792fi
9793
9794# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9795if test "${with_gtk_exec_prefix+set}" = set; then
9796 withval="$with_gtk_exec_prefix"
9797 gtk_config_exec_prefix="$withval"
9798else
9799 gtk_config_exec_prefix=""
9800fi
9801
9802# Check whether --enable-gtktest or --disable-gtktest was given.
9803if test "${enable_gtktest+set}" = set; then
9804 enableval="$enable_gtktest"
9805 :
9806else
9807 enable_gtktest=yes
9808fi
9809
9810
9811 for module in .
9812 do
9813 case "$module" in
9814 gthread)
9815 gtk_config_args="$gtk_config_args gthread"
9816 ;;
9817 esac
9818 done
9819
9820 if test x$gtk_config_exec_prefix != x ; then
9821 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9822 if test x${GTK_CONFIG_2_0+set} != xset ; then
9823 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9824 fi
9825 fi
9826 if test x$gtk_config_prefix != x ; then
9827 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9828 if test x${GTK_CONFIG_2_0+set} != xset ; then
9829 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9830 fi
9831 fi
9832
9833 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9834set dummy gtk-config-2.0; ac_word=$2
9835echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9836echo "configure:9837: checking for $ac_word" >&5
9837if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9839else
9840 case "$GTK_CONFIG_2_0" in
9841 /*)
9842 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9843 ;;
9844 ?:/*)
9845 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9846 ;;
9847 *)
9848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9849 ac_dummy="$PATH"
9850 for ac_dir in $ac_dummy; do
9851 test -z "$ac_dir" && ac_dir=.
9852 if test -f $ac_dir/$ac_word; then
9853 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9854 break
9855 fi
9856 done
9857 IFS="$ac_save_ifs"
9858 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9859 ;;
9860esac
9861fi
9862GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9863if test -n "$GTK_CONFIG_2_0"; then
9864 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9865else
9866 echo "$ac_t""no" 1>&6
9867fi
9868
9869 min_gtk_version=1.3.1
9870 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9871echo "configure:9872: checking for GTK - version >= $min_gtk_version" >&5
9872 no_gtk=""
9873 if test "$GTK_CONFIG_2_0" = "no" ; then
9874 no_gtk=yes
9875 else
9876 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9877 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9878 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9880 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9882 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9884 if test "x$enable_gtktest" = "xyes" ; then
9885 ac_save_CFLAGS="$CFLAGS"
9886 ac_save_LIBS="$LIBS"
9887 CFLAGS="$CFLAGS $GTK_CFLAGS"
9888 LIBS="$GTK_LIBS $LIBS"
9889 rm -f conf.gtktest
9890 if test "$cross_compiling" = yes; then
9891 echo $ac_n "cross compiling; assumed OK... $ac_c"
9892else
9893 cat > conftest.$ac_ext <<EOF
9894#line 9895 "configure"
9895#include "confdefs.h"
9896
9897#include <gtk/gtk.h>
9898#include <stdio.h>
9899#include <stdlib.h>
9900
9901int
9902main ()
9903{
9904 int major, minor, micro;
9905 char *tmp_version;
9906
9907 system ("touch conf.gtktest");
9908
9909 /* HP/UX 9 (%@#!) writes to sscanf strings */
9910 tmp_version = g_strdup("$min_gtk_version");
9911 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9912 printf("%s, bad version string\n", "$min_gtk_version");
9913 exit(1);
9914 }
9915
9916 if ((gtk_major_version != $gtk_config_major_version) ||
9917 (gtk_minor_version != $gtk_config_minor_version) ||
9918 (gtk_micro_version != $gtk_config_micro_version))
9919 {
9920 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9921 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9922 gtk_major_version, gtk_minor_version, gtk_micro_version);
9923 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9924 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9925 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9926 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9927 printf("*** required on your system.\n");
9928 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9929 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9930 printf("*** before re-running configure\n");
9931 }
9932#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9933 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9934 (gtk_minor_version != GTK_MINOR_VERSION) ||
9935 (gtk_micro_version != GTK_MICRO_VERSION))
9936 {
9937 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9938 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9939 printf("*** library (version %d.%d.%d)\n",
9940 gtk_major_version, gtk_minor_version, gtk_micro_version);
9941 }
9942#endif /* defined (GTK_MAJOR_VERSION) ... */
9943 else
9944 {
9945 if ((gtk_major_version > major) ||
9946 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9947 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9948 {
9949 return 0;
9950 }
9951 else
9952 {
9953 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9954 gtk_major_version, gtk_minor_version, gtk_micro_version);
9955 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9956 major, minor, micro);
9957 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9958 printf("***\n");
9959 printf("*** If you have already installed a sufficiently new version, this error\n");
9960 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9961 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9962 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9963 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9964 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9965 printf("*** so that the correct libraries are found at run-time))\n");
9966 }
9967 }
9968 return 1;
9969}
9970
9971EOF
9972if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9973then
9974 :
9975else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -fr conftest*
9979 no_gtk=yes
9980fi
9981rm -fr conftest*
9982fi
9983
9984 CFLAGS="$ac_save_CFLAGS"
9985 LIBS="$ac_save_LIBS"
9986 fi
9987 fi
9988 if test "x$no_gtk" = x ; then
9989 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9990 wx_cv_lib_gtk=2.0
9991 else
9992 echo "$ac_t""no" 1>&6
9993 if test "$GTK_CONFIG_2_0" = "no" ; then
9994 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9995 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9996 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9997 echo "*** full path to gtk-config-2.0."
9998 else
9999 if test -f conf.gtktest ; then
10000 :
10001 else
10002 echo "*** Could not run GTK test program, checking why..."
10003 CFLAGS="$CFLAGS $GTK_CFLAGS"
10004 LIBS="$LIBS $GTK_LIBS"
10005 cat > conftest.$ac_ext <<EOF
10006#line 10007 "configure"
10007#include "confdefs.h"
10008
10009#include <gtk/gtk.h>
10010#include <stdio.h>
10011
10012int main() {
10013 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10014; return 0; }
10015EOF
10016if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10017 rm -rf conftest*
10018 echo "*** The test program compiled, but did not run. This usually means"
10019 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10020 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10021 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10022 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10023 echo "*** is required on your system"
10024 echo "***"
10025 echo "*** If you have an old version installed, it is best to remove it, although"
10026 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10027 echo "***"
10028 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10029 echo "*** came with the system with the command"
10030 echo "***"
10031 echo "*** rpm --erase --nodeps gtk gtk-devel"
10032else
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 echo "*** The test program failed to compile or link. See the file config.log for the"
10037 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10038 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10039 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10040fi
10041rm -f conftest*
10042 CFLAGS="$ac_save_CFLAGS"
10043 LIBS="$ac_save_LIBS"
10044 fi
10045 fi
10046 GTK_CFLAGS=""
10047 GTK_LIBS=""
10048 gthread
10049 fi
10050
10051
10052 rm -f conf.gtktest
10053
10054 fi
10055
10056 if test -z "$wx_cv_lib_gtk"; then
10057
10058 if test x$gtk_config_exec_prefix != x ; then
10059 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10060 if test x${GTK_CONFIG+set} != xset ; then
10061 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10062 fi
10063 fi
10064 if test x$gtk_config_prefix != x ; then
10065 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10066 if test x${GTK_CONFIG+set} != xset ; then
10067 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10068 fi
10069 fi
10070
10071 # Extract the first word of "gtk-config", so it can be a program name with args.
10072set dummy gtk-config; ac_word=$2
10073echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10074echo "configure:10075: checking for $ac_word" >&5
10075if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
10077else
10078 case "$GTK_CONFIG" in
10079 /*)
10080 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10081 ;;
10082 ?:/*)
10083 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10084 ;;
10085 *)
10086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10087 ac_dummy="$PATH"
10088 for ac_dir in $ac_dummy; do
10089 test -z "$ac_dir" && ac_dir=.
10090 if test -f $ac_dir/$ac_word; then
10091 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10092 break
10093 fi
10094 done
10095 IFS="$ac_save_ifs"
10096 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10097 ;;
10098esac
10099fi
10100GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10101if test -n "$GTK_CONFIG"; then
10102 echo "$ac_t""$GTK_CONFIG" 1>&6
10103else
10104 echo "$ac_t""no" 1>&6
10105fi
10106
10107 min_gtk_version=1.2.7
10108 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10109echo "configure:10110: checking for GTK - version >= $min_gtk_version" >&5
10110 no_gtk=""
10111 if test "$GTK_CONFIG" != "no" ; then
10112 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10113 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10114 ac_save_CFLAGS="$CFLAGS"
10115 ac_save_LIBS="$LIBS"
10116 CFLAGS="$CFLAGS $GTK_CFLAGS"
10117 LIBS="$LIBS $GTK_LIBS"
10118 if test "$cross_compiling" = yes; then
10119 echo $ac_n "cross compiling; assumed OK... $ac_c"
10120else
10121 cat > conftest.$ac_ext <<EOF
10122#line 10123 "configure"
10123#include "confdefs.h"
10124
10125#include <gtk/gtk.h>
10126#include <gtk/gtkfeatures.h>
10127#include <stdio.h>
10128#include <stdlib.h>
10129
10130int
10131main ()
10132{
10133 int major, minor, micro;
10134
10135 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10136 printf("%s, bad version string\n", "$min_gtk_version");
10137 exit(1);
10138 }
10139
10140 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10141 (GTK_MINOR_VERSION != gtk_minor_version) ||
10142 (GTK_MICRO_VERSION != gtk_micro_version)) {
10143 printf("Headers vs. library version mismatch!\n");
10144 exit(1);
10145 }
10146
10147 if (gtk_minor_version == 1) return FALSE;
10148
10149 return !((gtk_major_version > major) ||
10150 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10151 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10152}
10153
10154EOF
10155if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10156then
10157 :
10158else
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -fr conftest*
10162 no_gtk=yes
10163fi
10164rm -fr conftest*
10165fi
10166
10167 CFLAGS="$ac_save_CFLAGS"
10168 LIBS="$ac_save_LIBS"
10169 else
10170 no_gtk=yes
10171 fi
10172 if test "x$no_gtk" = x ; then
10173 echo "$ac_t""yes" 1>&6
10174 wx_cv_lib_gtk=1.2.7
10175 else
10176 echo "$ac_t""no" 1>&6
10177 GTK_CFLAGS=""
10178 GTK_LIBS=""
10179 :
10180 fi
10181
10182
10183
10184 fi
10185
10186 if test -z "$wx_cv_lib_gtk"; then
10187
10188 if test x$gtk_config_exec_prefix != x ; then
10189 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10190 if test x${GTK_CONFIG+set} != xset ; then
10191 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10192 fi
10193 fi
10194 if test x$gtk_config_prefix != x ; then
10195 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10196 if test x${GTK_CONFIG+set} != xset ; then
10197 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10198 fi
10199 fi
10200
10201 # Extract the first word of "gtk-config", so it can be a program name with args.
10202set dummy gtk-config; ac_word=$2
10203echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10204echo "configure:10205: checking for $ac_word" >&5
10205if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207else
10208 case "$GTK_CONFIG" in
10209 /*)
10210 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10211 ;;
10212 ?:/*)
10213 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10214 ;;
10215 *)
10216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10217 ac_dummy="$PATH"
10218 for ac_dir in $ac_dummy; do
10219 test -z "$ac_dir" && ac_dir=.
10220 if test -f $ac_dir/$ac_word; then
10221 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10222 break
10223 fi
10224 done
10225 IFS="$ac_save_ifs"
10226 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10227 ;;
10228esac
10229fi
10230GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10231if test -n "$GTK_CONFIG"; then
10232 echo "$ac_t""$GTK_CONFIG" 1>&6
10233else
10234 echo "$ac_t""no" 1>&6
10235fi
10236
10237 min_gtk_version=1.2.3
10238 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10239echo "configure:10240: checking for GTK - version >= $min_gtk_version" >&5
10240 no_gtk=""
10241 if test "$GTK_CONFIG" != "no" ; then
10242 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10243 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10244 ac_save_CFLAGS="$CFLAGS"
10245 ac_save_LIBS="$LIBS"
10246 CFLAGS="$CFLAGS $GTK_CFLAGS"
10247 LIBS="$LIBS $GTK_LIBS"
10248 if test "$cross_compiling" = yes; then
10249 echo $ac_n "cross compiling; assumed OK... $ac_c"
10250else
10251 cat > conftest.$ac_ext <<EOF
10252#line 10253 "configure"
10253#include "confdefs.h"
10254
10255#include <gtk/gtk.h>
10256#include <gtk/gtkfeatures.h>
10257#include <stdio.h>
10258#include <stdlib.h>
10259
10260int
10261main ()
10262{
10263 int major, minor, micro;
10264
10265 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10266 printf("%s, bad version string\n", "$min_gtk_version");
10267 exit(1);
10268 }
10269
10270 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10271 (GTK_MINOR_VERSION != gtk_minor_version) ||
10272 (GTK_MICRO_VERSION != gtk_micro_version)) {
10273 printf("Headers vs. library version mismatch!\n");
10274 exit(1);
10275 }
10276
10277 if (gtk_minor_version == 1) return FALSE;
10278
10279 return !((gtk_major_version > major) ||
10280 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10281 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10282}
10283
10284EOF
10285if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10286then
10287 :
10288else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -fr conftest*
10292 no_gtk=yes
10293fi
10294rm -fr conftest*
10295fi
10296
10297 CFLAGS="$ac_save_CFLAGS"
10298 LIBS="$ac_save_LIBS"
10299 else
10300 no_gtk=yes
10301 fi
10302 if test "x$no_gtk" = x ; then
10303 echo "$ac_t""yes" 1>&6
10304 wx_cv_lib_gtk=1.2.3
10305 else
10306 echo "$ac_t""no" 1>&6
10307 GTK_CFLAGS=""
10308 GTK_LIBS=""
10309 :
10310 fi
10311
10312
10313
10314 fi
10315
10316 if test -z "$wx_cv_lib_gtk"; then
10317 wx_cv_lib_gtk=none
10318 else
10319 wx_cv_cflags_gtk=$GTK_CFLAGS
10320 wx_cv_libs_gtk=$GTK_LIBS
10321 fi
10322
10323
10324fi
10325
10326
10327 if test "$gtk_version_cached" = 1; then
10328 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10329 fi
10330
10331 case "$wx_cv_lib_gtk" in
10332 2.0) WXGTK20=1
10333 ;;
10334 1.2.7) WXGTK127=1
10335 WXGTK12=1
10336 ;;
10337 1.2.3) WXGTK12=1
10338 ;;
10339 *) { echo "configure: error:
10340Please check that gtk-config is in path, the directory
10341where GTK+ libraries are installed (returned by
10342'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10343equivalent variable and GTK+ is version 1.2.3 or above.
10344 " 1>&2; exit 1; }
10345 ;;
10346 esac
10347
10348 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10349 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10350
10351 AFMINSTALL=afminstall
10352 TOOLKIT=GTK
10353 GUIDIST=GTK_DIST
10354
10355 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10356echo "configure:10357: checking for gdk_im_open in -lgdk" >&5
10357ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10358if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10359 echo $ac_n "(cached) $ac_c" 1>&6
10360else
10361 ac_save_LIBS="$LIBS"
10362LIBS="-lgdk $LIBS"
10363cat > conftest.$ac_ext <<EOF
10364#line 10365 "configure"
10365#include "confdefs.h"
10366/* Override any gcc2 internal prototype to avoid an error. */
10367/* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10369char gdk_im_open();
10370
10371int main() {
10372gdk_im_open()
10373; return 0; }
10374EOF
10375if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10376 rm -rf conftest*
10377 eval "ac_cv_lib_$ac_lib_var=yes"
10378else
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 rm -rf conftest*
10382 eval "ac_cv_lib_$ac_lib_var=no"
10383fi
10384rm -f conftest*
10385LIBS="$ac_save_LIBS"
10386
10387fi
10388if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 cat >> confdefs.h <<\EOF
10391#define HAVE_XIM 1
10392EOF
10393
10394else
10395 echo "$ac_t""no" 1>&6
10396fi
10397
10398 fi
10399
10400 if test "$wxUSE_MGL" = 1; then
10401
10402 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10403echo "configure:10404: checking for SciTech MGL library" >&5
10404 if test "x$MGL_ROOT" = x ; then
10405 echo "$ac_t""not found" 1>&6
10406 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10407 else
10408 echo "$ac_t""$MGL_ROOT" 1>&6
10409 fi
10410
10411 mgl_os=linux/gcc/glibc
10412 mgl_lib_type=""
10413
10414 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10415 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10416 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
10417 mgl_lib_type=debug
10418 fi
10419 fi
10420 if test "x$mgl_lib_type" = x ; then
10421 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10422 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
10423 mgl_lib_type=release
10424 else
10425 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10426 fi
10427 fi
10428
10429 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10430 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10431
10432 AFMINSTALL=afminstall
10433 TOOLKIT=MGL
10434 GUIDIST=MGL_DIST
10435 fi
10436
10437 if test "$wxUSE_WINE" = 1; then
10438 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10439echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10440echo "configure:10441: checking for windows.h" >&5
10441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10443else
10444 cat > conftest.$ac_ext <<EOF
10445#line 10446 "configure"
10446#include "confdefs.h"
10447#include <windows.h>
10448EOF
10449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10450{ (eval echo configure:10451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10452if test -z "$ac_err"; then
10453 rm -rf conftest*
10454 eval "ac_cv_header_$ac_safe=yes"
10455else
10456 echo "$ac_err" >&5
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 rm -rf conftest*
10460 eval "ac_cv_header_$ac_safe=no"
10461fi
10462rm -f conftest*
10463fi
10464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10465 echo "$ac_t""yes" 1>&6
10466 :
10467else
10468 echo "$ac_t""no" 1>&6
10469
10470 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10471
10472fi
10473
10474
10475 xpm_link=
10476 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10477echo "configure:10478: checking for Xpm library" >&5
10478
10479ac_find_libraries=
10480for ac_dir in $SEARCH_LIB;
10481 do
10482 for ac_extension in a so sl dylib; do
10483 if test -f "$ac_dir/libXpm.$ac_extension"; then
10484 ac_find_libraries=$ac_dir
10485 break 2
10486 fi
10487 done
10488 done
10489
10490 if test "$ac_find_libraries" != "" ; then
10491 GUI_TK_LIBRARY="-L$ac_find_libraries"
10492 xpm_link=" -lXpm"
10493 cat >> confdefs.h <<\EOF
10494#define wxHAVE_LIB_XPM 1
10495EOF
10496
10497 echo "$ac_t""found at $ac_find_libraries" 1>&6
10498 else
10499 echo "$ac_t""no" 1>&6
10500 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10501 fi
10502
10503 mesa_link=
10504 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10505echo "configure:10506: checking for Mesa library" >&5
10506
10507ac_find_libraries=
10508for ac_dir in $SEARCH_LIB;
10509 do
10510 for ac_extension in a so sl dylib; do
10511 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10512 ac_find_libraries=$ac_dir
10513 break 2
10514 fi
10515 done
10516 done
10517
10518 if test "$ac_find_libraries" != "" ; then
10519 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10520 mesa_link=" -lMesaGL"
10521 echo "$ac_t""found at $ac_find_libraries" 1>&6
10522 else
10523 { echo "configure: error: no" 1>&2; exit 1; }
10524 fi
10525
10526 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10527 TOOLKIT=MSW
10528 GUIDIST=MSW_DIST
10529 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10530 fi
10531
10532 if test "$wxUSE_MOTIF" = 1; then
10533 # If we find X, set shell vars x_includes and x_libraries to the
10534# paths, otherwise set no_x=yes.
10535# Uses ac_ vars as temps to allow command line to override cache and checks.
10536# --without-x overrides everything else, but does not touch the cache.
10537echo $ac_n "checking for X""... $ac_c" 1>&6
10538echo "configure:10539: checking for X" >&5
10539
10540# Check whether --with-x or --without-x was given.
10541if test "${with_x+set}" = set; then
10542 withval="$with_x"
10543 :
10544fi
10545
10546# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10547if test "x$with_x" = xno; then
10548 # The user explicitly disabled X.
10549 have_x=disabled
10550else
10551 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10552 # Both variables are already set.
10553 have_x=yes
10554 else
10555if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
10557else
10558 # One or both of the vars are not set, and there is no cached value.
10559ac_x_includes=NO ac_x_libraries=NO
10560rm -fr conftestdir
10561if mkdir conftestdir; then
10562 cd conftestdir
10563 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10564 cat > Imakefile <<'EOF'
10565acfindx:
10566 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10567EOF
10568 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10569 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10570 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10571 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10572 for ac_extension in a so sl; do
10573 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10574 test -f $ac_im_libdir/libX11.$ac_extension; then
10575 ac_im_usrlibdir=$ac_im_libdir; break
10576 fi
10577 done
10578 # Screen out bogus values from the imake configuration. They are
10579 # bogus both because they are the default anyway, and because
10580 # using them would break gcc on systems where it needs fixed includes.
10581 case "$ac_im_incroot" in
10582 /usr/include) ;;
10583 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10584 esac
10585 case "$ac_im_usrlibdir" in
10586 /usr/lib | /lib) ;;
10587 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10588 esac
10589 fi
10590 cd ..
10591 rm -fr conftestdir
10592fi
10593
10594if test "$ac_x_includes" = NO; then
10595 # Guess where to find include files, by looking for this one X11 .h file.
10596 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10597
10598 # First, try using that file with no special directory specified.
10599cat > conftest.$ac_ext <<EOF
10600#line 10601 "configure"
10601#include "confdefs.h"
10602#include <$x_direct_test_include>
10603EOF
10604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10605{ (eval echo configure:10606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10607if test -z "$ac_err"; then
10608 rm -rf conftest*
10609 # We can compile using X headers with no special include directory.
10610ac_x_includes=
10611else
10612 echo "$ac_err" >&5
10613 echo "configure: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 rm -rf conftest*
10616 # Look for the header file in a standard set of common directories.
10617# Check X11 before X11Rn because it is often a symlink to the current release.
10618 for ac_dir in \
10619 /usr/X11/include \
10620 /usr/X11R6/include \
10621 /usr/X11R5/include \
10622 /usr/X11R4/include \
10623 \
10624 /usr/include/X11 \
10625 /usr/include/X11R6 \
10626 /usr/include/X11R5 \
10627 /usr/include/X11R4 \
10628 \
10629 /usr/local/X11/include \
10630 /usr/local/X11R6/include \
10631 /usr/local/X11R5/include \
10632 /usr/local/X11R4/include \
10633 \
10634 /usr/local/include/X11 \
10635 /usr/local/include/X11R6 \
10636 /usr/local/include/X11R5 \
10637 /usr/local/include/X11R4 \
10638 \
10639 /usr/X386/include \
10640 /usr/x386/include \
10641 /usr/XFree86/include/X11 \
10642 \
10643 /usr/include \
10644 /usr/local/include \
10645 /usr/unsupported/include \
10646 /usr/athena/include \
10647 /usr/local/x11r5/include \
10648 /usr/lpp/Xamples/include \
10649 \
10650 /usr/openwin/include \
10651 /usr/openwin/share/include \
10652 ; \
10653 do
10654 if test -r "$ac_dir/$x_direct_test_include"; then
10655 ac_x_includes=$ac_dir
10656 break
10657 fi
10658 done
10659fi
10660rm -f conftest*
10661fi # $ac_x_includes = NO
10662
10663if test "$ac_x_libraries" = NO; then
10664 # Check for the libraries.
10665
10666 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10667 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10668
10669 # See if we find them without any special options.
10670 # Don't add to $LIBS permanently.
10671 ac_save_LIBS="$LIBS"
10672 LIBS="-l$x_direct_test_library $LIBS"
10673cat > conftest.$ac_ext <<EOF
10674#line 10675 "configure"
10675#include "confdefs.h"
10676
10677int main() {
10678${x_direct_test_function}()
10679; return 0; }
10680EOF
10681if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10682 rm -rf conftest*
10683 LIBS="$ac_save_LIBS"
10684# We can link X programs with no special library path.
10685ac_x_libraries=
10686else
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10689 rm -rf conftest*
10690 LIBS="$ac_save_LIBS"
10691# First see if replacing the include by lib works.
10692# Check X11 before X11Rn because it is often a symlink to the current release.
10693for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10694 /usr/X11/lib \
10695 /usr/X11R6/lib \
10696 /usr/X11R5/lib \
10697 /usr/X11R4/lib \
10698 \
10699 /usr/lib/X11 \
10700 /usr/lib/X11R6 \
10701 /usr/lib/X11R5 \
10702 /usr/lib/X11R4 \
10703 \
10704 /usr/local/X11/lib \
10705 /usr/local/X11R6/lib \
10706 /usr/local/X11R5/lib \
10707 /usr/local/X11R4/lib \
10708 \
10709 /usr/local/lib/X11 \
10710 /usr/local/lib/X11R6 \
10711 /usr/local/lib/X11R5 \
10712 /usr/local/lib/X11R4 \
10713 \
10714 /usr/X386/lib \
10715 /usr/x386/lib \
10716 /usr/XFree86/lib/X11 \
10717 \
10718 /usr/lib \
10719 /usr/local/lib \
10720 /usr/unsupported/lib \
10721 /usr/athena/lib \
10722 /usr/local/x11r5/lib \
10723 /usr/lpp/Xamples/lib \
10724 /lib/usr/lib/X11 \
10725 \
10726 /usr/openwin/lib \
10727 /usr/openwin/share/lib \
10728 ; \
10729do
10730 for ac_extension in a so sl; do
10731 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10732 ac_x_libraries=$ac_dir
10733 break 2
10734 fi
10735 done
10736done
10737fi
10738rm -f conftest*
10739fi # $ac_x_libraries = NO
10740
10741if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10742 # Didn't find X anywhere. Cache the known absence of X.
10743 ac_cv_have_x="have_x=no"
10744else
10745 # Record where we found X for the cache.
10746 ac_cv_have_x="have_x=yes \
10747 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10748fi
10749fi
10750 fi
10751 eval "$ac_cv_have_x"
10752fi # $with_x != no
10753
10754if test "$have_x" != yes; then
10755 echo "$ac_t""$have_x" 1>&6
10756 no_x=yes
10757else
10758 # If each of the values was on the command line, it overrides each guess.
10759 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10760 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10761 # Update the cache value to reflect the command line values.
10762 ac_cv_have_x="have_x=yes \
10763 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10764 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10765fi
10766
10767if test "$no_x" = yes; then
10768 # Not all programs may use this symbol, but it does not hurt to define it.
10769 cat >> confdefs.h <<\EOF
10770#define X_DISPLAY_MISSING 1
10771EOF
10772
10773 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10774else
10775 if test -n "$x_includes"; then
10776 X_CFLAGS="$X_CFLAGS -I$x_includes"
10777 fi
10778
10779 # It would also be nice to do this for all -L options, not just this one.
10780 if test -n "$x_libraries"; then
10781 X_LIBS="$X_LIBS -L$x_libraries"
10782 # For Solaris; some versions of Sun CC require a space after -R and
10783 # others require no space. Words are not sufficient . . . .
10784 case "`(uname -sr) 2>/dev/null`" in
10785 "SunOS 5"*)
10786 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10787echo "configure:10788: checking whether -R must be followed by a space" >&5
10788 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10789 cat > conftest.$ac_ext <<EOF
10790#line 10791 "configure"
10791#include "confdefs.h"
10792
10793int main() {
10794
10795; return 0; }
10796EOF
10797if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10798 rm -rf conftest*
10799 ac_R_nospace=yes
10800else
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 ac_R_nospace=no
10805fi
10806rm -f conftest*
10807 if test $ac_R_nospace = yes; then
10808 echo "$ac_t""no" 1>&6
10809 X_LIBS="$X_LIBS -R$x_libraries"
10810 else
10811 LIBS="$ac_xsave_LIBS -R $x_libraries"
10812 cat > conftest.$ac_ext <<EOF
10813#line 10814 "configure"
10814#include "confdefs.h"
10815
10816int main() {
10817
10818; return 0; }
10819EOF
10820if { (eval echo configure:10821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10821 rm -rf conftest*
10822 ac_R_space=yes
10823else
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 ac_R_space=no
10828fi
10829rm -f conftest*
10830 if test $ac_R_space = yes; then
10831 echo "$ac_t""yes" 1>&6
10832 X_LIBS="$X_LIBS -R $x_libraries"
10833 else
10834 echo "$ac_t""neither works" 1>&6
10835 fi
10836 fi
10837 LIBS="$ac_xsave_LIBS"
10838 esac
10839 fi
10840
10841 # Check for system-dependent libraries X programs must link with.
10842 # Do this before checking for the system-independent R6 libraries
10843 # (-lICE), since we may need -lsocket or whatever for X linking.
10844
10845 if test "$ISC" = yes; then
10846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10847 else
10848 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10849 # libraries were built with DECnet support. And karl@cs.umb.edu says
10850 # the Alpha needs dnet_stub (dnet does not exist).
10851 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10852echo "configure:10853: checking for dnet_ntoa in -ldnet" >&5
10853ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10854if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10856else
10857 ac_save_LIBS="$LIBS"
10858LIBS="-ldnet $LIBS"
10859cat > conftest.$ac_ext <<EOF
10860#line 10861 "configure"
10861#include "confdefs.h"
10862/* Override any gcc2 internal prototype to avoid an error. */
10863/* We use char because int might match the return type of a gcc2
10864 builtin and then its argument prototype would still apply. */
10865char dnet_ntoa();
10866
10867int main() {
10868dnet_ntoa()
10869; return 0; }
10870EOF
10871if { (eval echo configure:10872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10872 rm -rf conftest*
10873 eval "ac_cv_lib_$ac_lib_var=yes"
10874else
10875 echo "configure: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10877 rm -rf conftest*
10878 eval "ac_cv_lib_$ac_lib_var=no"
10879fi
10880rm -f conftest*
10881LIBS="$ac_save_LIBS"
10882
10883fi
10884if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10885 echo "$ac_t""yes" 1>&6
10886 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10887else
10888 echo "$ac_t""no" 1>&6
10889fi
10890
10891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10892 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10893echo "configure:10894: checking for dnet_ntoa in -ldnet_stub" >&5
10894ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10895if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897else
10898 ac_save_LIBS="$LIBS"
10899LIBS="-ldnet_stub $LIBS"
10900cat > conftest.$ac_ext <<EOF
10901#line 10902 "configure"
10902#include "confdefs.h"
10903/* Override any gcc2 internal prototype to avoid an error. */
10904/* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10906char dnet_ntoa();
10907
10908int main() {
10909dnet_ntoa()
10910; return 0; }
10911EOF
10912if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10913 rm -rf conftest*
10914 eval "ac_cv_lib_$ac_lib_var=yes"
10915else
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10918 rm -rf conftest*
10919 eval "ac_cv_lib_$ac_lib_var=no"
10920fi
10921rm -f conftest*
10922LIBS="$ac_save_LIBS"
10923
10924fi
10925if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10927 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10928else
10929 echo "$ac_t""no" 1>&6
10930fi
10931
10932 fi
10933
10934 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10935 # to get the SysV transport functions.
10936 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10937 # needs -lnsl.
10938 # The nsl library prevents programs from opening the X display
10939 # on Irix 5.2, according to dickey@clark.net.
10940 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10941echo "configure:10942: checking for gethostbyname" >&5
10942if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944else
10945 cat > conftest.$ac_ext <<EOF
10946#line 10947 "configure"
10947#include "confdefs.h"
10948/* System header to define __stub macros and hopefully few prototypes,
10949 which can conflict with char gethostbyname(); below. */
10950#include <assert.h>
10951/* Override any gcc2 internal prototype to avoid an error. */
10952/* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954char gethostbyname();
10955
10956int main() {
10957
10958/* The GNU C library defines this for functions which it implements
10959 to always fail with ENOSYS. Some functions are actually named
10960 something starting with __ and the normal name is an alias. */
10961#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10962choke me
10963#else
10964gethostbyname();
10965#endif
10966
10967; return 0; }
10968EOF
10969if { (eval echo configure:10970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10970 rm -rf conftest*
10971 eval "ac_cv_func_gethostbyname=yes"
10972else
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 rm -rf conftest*
10976 eval "ac_cv_func_gethostbyname=no"
10977fi
10978rm -f conftest*
10979fi
10980
10981if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10982 echo "$ac_t""yes" 1>&6
10983 :
10984else
10985 echo "$ac_t""no" 1>&6
10986fi
10987
10988 if test $ac_cv_func_gethostbyname = no; then
10989 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10990echo "configure:10991: checking for gethostbyname in -lnsl" >&5
10991ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10992if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
10994else
10995 ac_save_LIBS="$LIBS"
10996LIBS="-lnsl $LIBS"
10997cat > conftest.$ac_ext <<EOF
10998#line 10999 "configure"
10999#include "confdefs.h"
11000/* Override any gcc2 internal prototype to avoid an error. */
11001/* We use char because int might match the return type of a gcc2
11002 builtin and then its argument prototype would still apply. */
11003char gethostbyname();
11004
11005int main() {
11006gethostbyname()
11007; return 0; }
11008EOF
11009if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11010 rm -rf conftest*
11011 eval "ac_cv_lib_$ac_lib_var=yes"
11012else
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11015 rm -rf conftest*
11016 eval "ac_cv_lib_$ac_lib_var=no"
11017fi
11018rm -f conftest*
11019LIBS="$ac_save_LIBS"
11020
11021fi
11022if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11023 echo "$ac_t""yes" 1>&6
11024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11025else
11026 echo "$ac_t""no" 1>&6
11027fi
11028
11029 fi
11030
11031 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11032 # socket/setsockopt and other routines are undefined under SCO ODT
11033 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11034 # on later versions), says simon@lia.di.epfl.ch: it contains
11035 # gethostby* variants that don't use the nameserver (or something).
11036 # -lsocket must be given before -lnsl if both are needed.
11037 # We assume that if connect needs -lnsl, so does gethostbyname.
11038 echo $ac_n "checking for connect""... $ac_c" 1>&6
11039echo "configure:11040: checking for connect" >&5
11040if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11041 echo $ac_n "(cached) $ac_c" 1>&6
11042else
11043 cat > conftest.$ac_ext <<EOF
11044#line 11045 "configure"
11045#include "confdefs.h"
11046/* System header to define __stub macros and hopefully few prototypes,
11047 which can conflict with char connect(); below. */
11048#include <assert.h>
11049/* Override any gcc2 internal prototype to avoid an error. */
11050/* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052char connect();
11053
11054int main() {
11055
11056/* The GNU C library defines this for functions which it implements
11057 to always fail with ENOSYS. Some functions are actually named
11058 something starting with __ and the normal name is an alias. */
11059#if defined (__stub_connect) || defined (__stub___connect)
11060choke me
11061#else
11062connect();
11063#endif
11064
11065; return 0; }
11066EOF
11067if { (eval echo configure:11068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11068 rm -rf conftest*
11069 eval "ac_cv_func_connect=yes"
11070else
11071 echo "configure: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11073 rm -rf conftest*
11074 eval "ac_cv_func_connect=no"
11075fi
11076rm -f conftest*
11077fi
11078
11079if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11080 echo "$ac_t""yes" 1>&6
11081 :
11082else
11083 echo "$ac_t""no" 1>&6
11084fi
11085
11086 if test $ac_cv_func_connect = no; then
11087 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11088echo "configure:11089: checking for connect in -lsocket" >&5
11089ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11090if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11091 echo $ac_n "(cached) $ac_c" 1>&6
11092else
11093 ac_save_LIBS="$LIBS"
11094LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11095cat > conftest.$ac_ext <<EOF
11096#line 11097 "configure"
11097#include "confdefs.h"
11098/* Override any gcc2 internal prototype to avoid an error. */
11099/* We use char because int might match the return type of a gcc2
11100 builtin and then its argument prototype would still apply. */
11101char connect();
11102
11103int main() {
11104connect()
11105; return 0; }
11106EOF
11107if { (eval echo configure:11108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11108 rm -rf conftest*
11109 eval "ac_cv_lib_$ac_lib_var=yes"
11110else
11111 echo "configure: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11113 rm -rf conftest*
11114 eval "ac_cv_lib_$ac_lib_var=no"
11115fi
11116rm -f conftest*
11117LIBS="$ac_save_LIBS"
11118
11119fi
11120if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11121 echo "$ac_t""yes" 1>&6
11122 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11123else
11124 echo "$ac_t""no" 1>&6
11125fi
11126
11127 fi
11128
11129 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11130 echo $ac_n "checking for remove""... $ac_c" 1>&6
11131echo "configure:11132: checking for remove" >&5
11132if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11133 echo $ac_n "(cached) $ac_c" 1>&6
11134else
11135 cat > conftest.$ac_ext <<EOF
11136#line 11137 "configure"
11137#include "confdefs.h"
11138/* System header to define __stub macros and hopefully few prototypes,
11139 which can conflict with char remove(); below. */
11140#include <assert.h>
11141/* Override any gcc2 internal prototype to avoid an error. */
11142/* We use char because int might match the return type of a gcc2
11143 builtin and then its argument prototype would still apply. */
11144char remove();
11145
11146int main() {
11147
11148/* The GNU C library defines this for functions which it implements
11149 to always fail with ENOSYS. Some functions are actually named
11150 something starting with __ and the normal name is an alias. */
11151#if defined (__stub_remove) || defined (__stub___remove)
11152choke me
11153#else
11154remove();
11155#endif
11156
11157; return 0; }
11158EOF
11159if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160 rm -rf conftest*
11161 eval "ac_cv_func_remove=yes"
11162else
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11165 rm -rf conftest*
11166 eval "ac_cv_func_remove=no"
11167fi
11168rm -f conftest*
11169fi
11170
11171if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11172 echo "$ac_t""yes" 1>&6
11173 :
11174else
11175 echo "$ac_t""no" 1>&6
11176fi
11177
11178 if test $ac_cv_func_remove = no; then
11179 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11180echo "configure:11181: checking for remove in -lposix" >&5
11181ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11182if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11184else
11185 ac_save_LIBS="$LIBS"
11186LIBS="-lposix $LIBS"
11187cat > conftest.$ac_ext <<EOF
11188#line 11189 "configure"
11189#include "confdefs.h"
11190/* Override any gcc2 internal prototype to avoid an error. */
11191/* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193char remove();
11194
11195int main() {
11196remove()
11197; return 0; }
11198EOF
11199if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11200 rm -rf conftest*
11201 eval "ac_cv_lib_$ac_lib_var=yes"
11202else
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 rm -rf conftest*
11206 eval "ac_cv_lib_$ac_lib_var=no"
11207fi
11208rm -f conftest*
11209LIBS="$ac_save_LIBS"
11210
11211fi
11212if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11213 echo "$ac_t""yes" 1>&6
11214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11215else
11216 echo "$ac_t""no" 1>&6
11217fi
11218
11219 fi
11220
11221 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11222 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11223echo "configure:11224: checking for shmat" >&5
11224if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226else
11227 cat > conftest.$ac_ext <<EOF
11228#line 11229 "configure"
11229#include "confdefs.h"
11230/* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char shmat(); below. */
11232#include <assert.h>
11233/* Override any gcc2 internal prototype to avoid an error. */
11234/* We use char because int might match the return type of a gcc2
11235 builtin and then its argument prototype would still apply. */
11236char shmat();
11237
11238int main() {
11239
11240/* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243#if defined (__stub_shmat) || defined (__stub___shmat)
11244choke me
11245#else
11246shmat();
11247#endif
11248
11249; return 0; }
11250EOF
11251if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11252 rm -rf conftest*
11253 eval "ac_cv_func_shmat=yes"
11254else
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 rm -rf conftest*
11258 eval "ac_cv_func_shmat=no"
11259fi
11260rm -f conftest*
11261fi
11262
11263if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11264 echo "$ac_t""yes" 1>&6
11265 :
11266else
11267 echo "$ac_t""no" 1>&6
11268fi
11269
11270 if test $ac_cv_func_shmat = no; then
11271 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11272echo "configure:11273: checking for shmat in -lipc" >&5
11273ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11274if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11275 echo $ac_n "(cached) $ac_c" 1>&6
11276else
11277 ac_save_LIBS="$LIBS"
11278LIBS="-lipc $LIBS"
11279cat > conftest.$ac_ext <<EOF
11280#line 11281 "configure"
11281#include "confdefs.h"
11282/* Override any gcc2 internal prototype to avoid an error. */
11283/* We use char because int might match the return type of a gcc2
11284 builtin and then its argument prototype would still apply. */
11285char shmat();
11286
11287int main() {
11288shmat()
11289; return 0; }
11290EOF
11291if { (eval echo configure:11292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11292 rm -rf conftest*
11293 eval "ac_cv_lib_$ac_lib_var=yes"
11294else
11295 echo "configure: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11297 rm -rf conftest*
11298 eval "ac_cv_lib_$ac_lib_var=no"
11299fi
11300rm -f conftest*
11301LIBS="$ac_save_LIBS"
11302
11303fi
11304if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11305 echo "$ac_t""yes" 1>&6
11306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11307else
11308 echo "$ac_t""no" 1>&6
11309fi
11310
11311 fi
11312 fi
11313
11314 # Check for libraries that X11R6 Xt/Xaw programs need.
11315 ac_save_LDFLAGS="$LDFLAGS"
11316 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11317 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11318 # check for ICE first), but we must link in the order -lSM -lICE or
11319 # we get undefined symbols. So assume we have SM if we have ICE.
11320 # These have to be linked with before -lX11, unlike the other
11321 # libraries we check for below, so use a different variable.
11322 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11323 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11324echo "configure:11325: checking for IceConnectionNumber in -lICE" >&5
11325ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11326if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11327 echo $ac_n "(cached) $ac_c" 1>&6
11328else
11329 ac_save_LIBS="$LIBS"
11330LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11331cat > conftest.$ac_ext <<EOF
11332#line 11333 "configure"
11333#include "confdefs.h"
11334/* Override any gcc2 internal prototype to avoid an error. */
11335/* We use char because int might match the return type of a gcc2
11336 builtin and then its argument prototype would still apply. */
11337char IceConnectionNumber();
11338
11339int main() {
11340IceConnectionNumber()
11341; return 0; }
11342EOF
11343if { (eval echo configure:11344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11344 rm -rf conftest*
11345 eval "ac_cv_lib_$ac_lib_var=yes"
11346else
11347 echo "configure: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11349 rm -rf conftest*
11350 eval "ac_cv_lib_$ac_lib_var=no"
11351fi
11352rm -f conftest*
11353LIBS="$ac_save_LIBS"
11354
11355fi
11356if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11357 echo "$ac_t""yes" 1>&6
11358 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11359else
11360 echo "$ac_t""no" 1>&6
11361fi
11362
11363 LDFLAGS="$ac_save_LDFLAGS"
11364
11365fi
11366
11367
11368 if test "$no_x" = "yes"; then
11369 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11370 fi
11371
11372 GUI_TK_LIBRARY="$X_LIBS"
11373 TOOLKIT_INCLUDE="$X_CFLAGS"
11374 AFMINSTALL=afminstall
11375 COMPILED_X_PROGRAM=0
11376
11377 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11378echo "configure:11379: checking for Motif/Lesstif headers" >&5
11379
11380ac_find_includes=
11381for ac_dir in $SEARCH_INCLUDE;
11382 do
11383 if test -f "$ac_dir/Xm/Xm.h"; then
11384 ac_find_includes=$ac_dir
11385 break
11386 fi
11387 done
11388
11389 if test "$ac_find_includes" != "" ; then
11390 echo "$ac_t""found $ac_find_includes" 1>&6
11391 else
11392 cat > conftest.$ac_ext <<EOF
11393#line 11394 "configure"
11394#include "confdefs.h"
11395
11396 #include <Xm/Xm.h>
11397
11398int main() {
11399
11400 int version;
11401 version = xmUseVersion;
11402
11403; return 0; }
11404EOF
11405if { (eval echo configure:11406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11406 rm -rf conftest*
11407
11408 echo "$ac_t""found in default search path" 1>&6
11409 COMPILED_X_PROGRAM=1
11410
11411else
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 rm -rf conftest*
11415
11416 echo "$ac_t""no" 1>&6
11417 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11418
11419
11420fi
11421rm -f conftest*
11422 fi
11423
11424 if test "$COMPILED_X_PROGRAM" = 0; then
11425 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11426echo "configure:11427: checking for Motif/Lesstif library" >&5
11427
11428ac_find_libraries=
11429for ac_dir in $SEARCH_LIB;
11430 do
11431 for ac_extension in a so sl dylib; do
11432 if test -f "$ac_dir/libXm.$ac_extension"; then
11433 ac_find_libraries=$ac_dir
11434 break 2
11435 fi
11436 done
11437 done
11438
11439 if test "$ac_find_libraries" != "" ; then
11440
11441 ac_path_to_include=$ac_find_includes
11442 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11443 result=$?
11444 if test $result = 0; then
11445 ac_path_to_include=""
11446 else
11447 ac_path_to_include=" -I$ac_find_includes"
11448 fi
11449
11450
11451 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11452 result=$?
11453 if test $result = 0; then
11454 ac_path_to_link=""
11455 else
11456 ac_path_to_link=" -L$ac_find_libraries"
11457 fi
11458
11459
11460 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11461 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
11462 echo "$ac_t""found at $ac_find_libraries" 1>&6
11463 else
11464 cat > conftest.$ac_ext <<EOF
11465#line 11466 "configure"
11466#include "confdefs.h"
11467
11468 #include <Xm/Xm.h>
11469
11470int main() {
11471
11472 int version;
11473 version = xmUseVersion;
11474
11475; return 0; }
11476EOF
11477if { (eval echo configure:11478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11478 rm -rf conftest*
11479
11480 echo "$ac_t""found in default search path" 1>&6
11481 COMPILED_X_PROGRAM=1
11482
11483else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487
11488 echo "$ac_t""no" 1>&6
11489 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11490
11491
11492fi
11493rm -f conftest*
11494 fi
11495 fi
11496
11497 xpm_link=
11498 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11499echo "configure:11500: checking for Xpm library" >&5
11500
11501ac_find_libraries=
11502for ac_dir in $SEARCH_LIB;
11503 do
11504 for ac_extension in a so sl dylib; do
11505 if test -f "$ac_dir/libXpm.$ac_extension"; then
11506 ac_find_libraries=$ac_dir
11507 break 2
11508 fi
11509 done
11510 done
11511
11512 if test "$ac_find_libraries" != "" ; then
11513
11514 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11515 result=$?
11516 if test $result = 0; then
11517 ac_path_to_link=""
11518 else
11519 ac_path_to_link=" -L$ac_find_libraries"
11520 fi
11521
11522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11523 xpm_link=" -lXpm"
11524 cat >> confdefs.h <<\EOF
11525#define wxHAVE_LIB_XPM 1
11526EOF
11527
11528 echo "$ac_t""found at $ac_find_libraries" 1>&6
11529 else
11530 cat > conftest.$ac_ext <<EOF
11531#line 11532 "configure"
11532#include "confdefs.h"
11533
11534 #include <X11/xpm.h>
11535
11536int main() {
11537
11538 int version;
11539 version = XpmLibraryVersion();
11540
11541; return 0; }
11542EOF
11543if { (eval echo configure:11544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11544 rm -rf conftest*
11545
11546 xpm_link=" -lXpm"
11547 cat >> confdefs.h <<\EOF
11548#define wxHAVE_LIB_XPM 1
11549EOF
11550
11551 echo "$ac_t""found in default search path" 1>&6
11552 COMPILED_X_PROGRAM=0
11553
11554else
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -rf conftest*
11558
11559 echo "$ac_t""no" 1>&6
11560 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11561
11562
11563fi
11564rm -f conftest*
11565 fi
11566
11567 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
11568 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
11569 TOOLKIT=MOTIF
11570 GUIDIST=MOTIF_DIST
11571 fi
11572
11573 if test "$wxUSE_MAC" = 1; then
11574 if test "$wxUSE_PRECOMP" = "yes"; then
11575 CPPFLAGS="$CPPFLAGS -cpp-precomp"
11576 fi
11577 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11578 CFLAGS="$CFLAGS -fpascal-strings"
11579 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11580 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
11581
11582 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
11583 TOOLKIT=MAC
11584 GUIDIST=MACX_DIST
11585 fi
11586
11587 if test "$wxUSE_PM" = 1; then
11588 TOOLKIT=PM
11589 GUIDIST=GTK_DIST
11590 fi
11591
11592 if test "$TOOLKIT" = "PM" ; then
11593 TOOLKIT_DIR="os2"
11594 else
11595 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
11596 fi
11597
11598 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
11599
11600 if test "$wxUSE_UNIVERSAL" = "yes"; then
11601 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11602 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11603 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11604 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11605 WIDGET_SET=univ
11606 else
11607 ALL_OBJECTS="\$(GUIOBJS)"
11608 fi
11609
11610 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
11611
11612 if test "$TOOLKIT" != "MSW"; then
11613 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11614 fi
11615
11616 if test "$wxUSE_HTML" = "yes"; then
11617 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11618 fi
11619
11620 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11621 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
11622 fi
11623 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11624 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
11625 fi
11626 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11627 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11628 fi
11629 if test "$wxUSE_LIBPNG" = "builtin" ; then
11630 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11631 fi
11632 if test "$wxUSE_FREETYPE" = "builtin" ; then
11633 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11634 fi
11635
11636 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11637 DISTDIR="wx\$(TOOLKIT)"
11638else
11639 USE_GUI=0
11640
11641 TOOLKIT_DIR="base"
11642
11643 if test "$USE_WIN32" = 1 ; then
11644 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11645 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
11646
11647 TOOLKIT="MSW"
11648 else
11649 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11650 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
11651 fi
11652
11653 PORT_FILES="\${top_srcdir}/src/files.lst"
11654
11655 GUIDIST="BASE_DIST"
11656 DISTDIR="wxBase"
11657fi
11658
11659if test "$wxUSE_REGEX" = "builtin" ; then
11660 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11661fi
11662if test "$wxUSE_ZLIB" = "builtin" ; then
11663 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11664fi
11665
11666if test "$wxUSE_OPENGL" = "yes"; then
11667 if test "$wxUSE_MAC" = 1; then
11668 OPENGL_LIBS="-framework OpenGL -framework AGL"
11669 else
11670
11671 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11672echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11673echo "configure:11674: checking for GL/gl.h" >&5
11674if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11675 echo $ac_n "(cached) $ac_c" 1>&6
11676else
11677 cat > conftest.$ac_ext <<EOF
11678#line 11679 "configure"
11679#include "confdefs.h"
11680#include <GL/gl.h>
11681EOF
11682ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11683{ (eval echo configure:11684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11684ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11685if test -z "$ac_err"; then
11686 rm -rf conftest*
11687 eval "ac_cv_header_$ac_safe=yes"
11688else
11689 echo "$ac_err" >&5
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 eval "ac_cv_header_$ac_safe=no"
11694fi
11695rm -f conftest*
11696fi
11697if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11698 echo "$ac_t""yes" 1>&6
11699
11700 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
11701echo "configure:11702: checking for -lGL" >&5
11702
11703ac_find_libraries=
11704for ac_dir in $SEARCH_LIB;
11705 do
11706 for ac_extension in a so sl dylib; do
11707 if test -f "$ac_dir/libGL.$ac_extension"; then
11708 ac_find_libraries=$ac_dir
11709 break 2
11710 fi
11711 done
11712 done
11713
11714 if test "$ac_find_libraries" != "" ; then
11715
11716 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11717 result=$?
11718 if test $result = 0; then
11719 ac_path_to_link=""
11720 else
11721 ac_path_to_link=" -L$ac_find_libraries"
11722 fi
11723
11724 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11725 OPENGL_LIBS="-lGL -lGLU"
11726 echo "$ac_t""yes" 1>&6
11727 else
11728 echo "$ac_t""no" 1>&6
11729 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
11730echo "configure:11731: checking for -lMesaGL" >&5
11731
11732ac_find_libraries=
11733for ac_dir in $SEARCH_LIB;
11734 do
11735 for ac_extension in a so sl dylib; do
11736 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11737 ac_find_libraries=$ac_dir
11738 break 2
11739 fi
11740 done
11741 done
11742
11743 if test "$ac_find_libraries" != "" ; then
11744
11745 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11746 result=$?
11747 if test $result = 0; then
11748 ac_path_to_link=""
11749 else
11750 ac_path_to_link=" -L$ac_find_libraries"
11751 fi
11752
11753 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11754 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11755 echo "$ac_t""yes" 1>&6
11756 else
11757 echo "$ac_t""no" 1>&6
11758 fi
11759 fi
11760
11761else
11762 echo "$ac_t""no" 1>&6
11763fi
11764
11765
11766
11767# AC_CHECK_HEADER(GL/gl.h,
11768# [
11769# AC_CHECK_LIB(GL, glFlush,
11770# [
11771# OPENGL_LIBS="-lGL -lGLU"
11772# ],
11773# [
11774# AC_CHECK_LIB(MesaGL, glFlush,
11775# [
11776# OPENGL_LIBS="-lMesaGL -lMesaGLU"
11777# ],
11778# [],
11779# [-lm])
11780# ],
11781# [-lm])
11782# ])
11783
11784 if test "x$OPENGL_LIBS" = "x"; then
11785 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11786 fi
11787 fi
11788
11789 if test "$wxUSE_OPENGL" = "yes"; then
11790 cat >> confdefs.h <<\EOF
11791#define wxUSE_OPENGL 1
11792EOF
11793
11794 cat >> confdefs.h <<\EOF
11795#define wxUSE_GLCANVAS 1
11796EOF
11797
11798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11799 fi
11800fi
11801
11802if test -z "$TOOLKIT_VPATH" ; then
11803 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11804fi
11805
11806if test -n "$TOOLKIT" ; then
11807 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11808fi
11809
11810lib_unicode_suffix=
11811if test "$wxUSE_UNICODE" = "yes"; then
11812 lib_unicode_suffix=u
11813fi
11814
11815lib_debug_suffix=
11816if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11817 lib_debug_suffix=d
11818fi
11819
11820TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11821TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
11822
11823if test "$cross_compiling" = "yes"; then
11824 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11825 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11826fi
11827
11828WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11829WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11830
11831WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11832WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11833
11834WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11835WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11836WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11837WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11838
11839WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11840WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
11841
11842case "${host}" in
11843 *-*-cygwin* | *-*-mingw32* )
11844
11845
11846
11847 if test "$cross_compiling" != "yes"; then
11848 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11849 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11850 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11851 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
11852 else
11853 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
11854 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11855 fi
11856
11857esac
11858
11859WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11860WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11861
11862WXCONFIG_LIBS="-l${WX_LIBRARY}"
11863WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
11864
11865if test "$wxUSE_OPENGL" = "yes"; then
11866 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
11867 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
11868fi
11869
11870
11871
11872if test "$wxUSE_SHARED" = "yes"; then
11873
11874 if test "$wxUSE_OPENGL" = "yes"; then
11875 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11876 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11877 else
11878 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11879 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11880 fi
11881
11882 if test "$GCC" = "yes"; then
11883 PIC_FLAG="-fPIC"
11884 fi
11885
11886 SHARED_LD="${CXX} -shared -o"
11887
11888 case "${host}" in
11889 *-hp-hpux* )
11890 if test "$GCC" != "yes"; then
11891 LDFLAGS="$LDFLAGS -L/usr/lib"
11892
11893 SHARED_LD="${CXX} -b -o"
11894 PIC_FLAG="+Z"
11895 fi
11896
11897 if test "$wxUSE_OPENGL" = "yes"; then
11898 WX_ALL_INSTALLED="preinstall_gl"
11899 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11900 else
11901 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11902 fi
11903 ;;
11904
11905 *-*-linux* )
11906 if test "$GCC" != "yes"; then
11907 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11908echo "configure:11909: checking for Intel compiler" >&5
11909if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11910 echo $ac_n "(cached) $ac_c" 1>&6
11911else
11912
11913 cat > conftest.$ac_ext <<EOF
11914#line 11915 "configure"
11915#include "confdefs.h"
11916
11917int main() {
11918
11919 #ifndef __INTEL_COMPILER
11920 #error Not icc
11921 #endif
11922
11923; return 0; }
11924EOF
11925if { (eval echo configure:11926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11926 rm -rf conftest*
11927 wx_cv_prog_icc=yes
11928else
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 rm -rf conftest*
11932 wx_cv_prog_icc=no
11933
11934fi
11935rm -f conftest*
11936
11937fi
11938
11939echo "$ac_t""$wx_cv_prog_icc" 1>&6
11940 if test "$wx_cv_prog_icc" = "yes"; then
11941 PIC_FLAG="-KPIC"
11942 fi
11943 fi
11944
11945 if test "$wxUSE_SONAME" = "yes" ; then
11946 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11947 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11948 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11949 fi
11950 ;;
11951
11952 *-*-solaris2* )
11953 if test "$GCC" = yes ; then
11954 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11955 else
11956 SHARED_LD="${CXX} -G -o"
11957 PIC_FLAG="-KPIC"
11958 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11959 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11960 fi
11961 ;;
11962
11963 *-*-darwin* )
11964 CFLAGS="$CFLAGS -fno-common"
11965 CXXFLAGS="$CXXFLAGS -fno-common"
11966 SHARED_LD="$CXX -dynamiclib -o"
11967 PIC_FLAG="-dynamic -fPIC"
11968 ;;
11969
11970 *-*-aix* )
11971 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11972 ;;
11973
11974 *-*-cygwin* | *-*-mingw32* )
11975
11976 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
11977
11978 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
11979 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
11980
11981 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11982
11983 if test "$wxUSE_OPENGL" = "yes"; then
11984 WX_ALL_INSTALLED="preinstall_gl"
11985 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11986 else
11987 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11988 fi
11989 ;;
11990
11991 *-pc-os2_emx | *-pc-os2-emx )
11992 wxUSE_SHARED=no
11993 ;;
11994
11995 *-*-beos* )
11996 SHARED_LD="${LD} -shared -o"
11997 ;;
11998
11999 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12000 *-*-sunos4* | \
12001 *-*-irix5* | *-*-irix6* | \
12002 *-*-osf* | \
12003 *-*-dgux5* | \
12004 *-*-sysv5* )
12005 ;;
12006
12007 *)
12008 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12009 esac
12010
12011 if test "x$WX_TARGET_LIBRARY" = "x"; then
12012 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12013 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12014 fi
12015
12016 WX_TARGET_LIBRARY_TYPE="so"
12017 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12018fi
12019
12020if test "$wxUSE_SHARED" = "no"; then
12021
12022 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12023 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12024 fi
12025
12026 if test "$wxUSE_MAC" = 1; then
12027 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12028 fi
12029
12030 if test "$wxUSE_OPENGL" = "yes"; then
12031 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12032 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12033 else
12034 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12035 fi
12036
12037 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12038 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12039
12040 WX_TARGET_LIBRARY_TYPE="a"
12041 INSTALL_LIBRARY='$(INSTALL_DATA)'
12042fi
12043
12044if test "$wxUSE_MAC" = 1; then
12045 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12046 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12047 # Extract the first word of "Rez", so it can be a program name with args.
12048set dummy Rez; ac_word=$2
12049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12050echo "configure:12051: checking for $ac_word" >&5
12051if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12052 echo $ac_n "(cached) $ac_c" 1>&6
12053else
12054 if test -n "$RESCOMP"; then
12055 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12056else
12057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12058 ac_dummy="$PATH"
12059 for ac_dir in $ac_dummy; do
12060 test -z "$ac_dir" && ac_dir=.
12061 if test -f $ac_dir/$ac_word; then
12062 ac_cv_prog_RESCOMP="Rez"
12063 break
12064 fi
12065 done
12066 IFS="$ac_save_ifs"
12067 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12068fi
12069fi
12070RESCOMP="$ac_cv_prog_RESCOMP"
12071if test -n "$RESCOMP"; then
12072 echo "$ac_t""$RESCOMP" 1>&6
12073else
12074 echo "$ac_t""no" 1>&6
12075fi
12076
12077 # Extract the first word of "Derez", so it can be a program name with args.
12078set dummy Derez; ac_word=$2
12079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12080echo "configure:12081: checking for $ac_word" >&5
12081if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12083else
12084 if test -n "$DEREZ"; then
12085 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12086else
12087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12088 ac_dummy="$PATH"
12089 for ac_dir in $ac_dummy; do
12090 test -z "$ac_dir" && ac_dir=.
12091 if test -f $ac_dir/$ac_word; then
12092 ac_cv_prog_DEREZ="Derez"
12093 break
12094 fi
12095 done
12096 IFS="$ac_save_ifs"
12097 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
12098fi
12099fi
12100DEREZ="$ac_cv_prog_DEREZ"
12101if test -n "$DEREZ"; then
12102 echo "$ac_t""$DEREZ" 1>&6
12103else
12104 echo "$ac_t""no" 1>&6
12105fi
12106
12107 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12108 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12109 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12110fi
12111
12112
12113if test "$wxUSE_MAC" != 1; then
12114 for ac_hdr in strings.h
12115do
12116ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12117echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12118echo "configure:12119: checking for $ac_hdr" >&5
12119if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12120 echo $ac_n "(cached) $ac_c" 1>&6
12121else
12122 cat > conftest.$ac_ext <<EOF
12123#line 12124 "configure"
12124#include "confdefs.h"
12125#include <$ac_hdr>
12126EOF
12127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12128{ (eval echo configure:12129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12129ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12130if test -z "$ac_err"; then
12131 rm -rf conftest*
12132 eval "ac_cv_header_$ac_safe=yes"
12133else
12134 echo "$ac_err" >&5
12135 echo "configure: failed program was:" >&5
12136 cat conftest.$ac_ext >&5
12137 rm -rf conftest*
12138 eval "ac_cv_header_$ac_safe=no"
12139fi
12140rm -f conftest*
12141fi
12142if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12143 echo "$ac_t""yes" 1>&6
12144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12145 cat >> confdefs.h <<EOF
12146#define $ac_tr_hdr 1
12147EOF
12148
12149else
12150 echo "$ac_t""no" 1>&6
12151fi
12152done
12153
12154fi
12155
12156for ac_hdr in stdlib.h
12157do
12158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12160echo "configure:12161: checking for $ac_hdr" >&5
12161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12162 echo $ac_n "(cached) $ac_c" 1>&6
12163else
12164 cat > conftest.$ac_ext <<EOF
12165#line 12166 "configure"
12166#include "confdefs.h"
12167#include <$ac_hdr>
12168EOF
12169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12170{ (eval echo configure:12171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12172if test -z "$ac_err"; then
12173 rm -rf conftest*
12174 eval "ac_cv_header_$ac_safe=yes"
12175else
12176 echo "$ac_err" >&5
12177 echo "configure: failed program was:" >&5
12178 cat conftest.$ac_ext >&5
12179 rm -rf conftest*
12180 eval "ac_cv_header_$ac_safe=no"
12181fi
12182rm -f conftest*
12183fi
12184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12185 echo "$ac_t""yes" 1>&6
12186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12187 cat >> confdefs.h <<EOF
12188#define $ac_tr_hdr 1
12189EOF
12190
12191else
12192 echo "$ac_t""no" 1>&6
12193fi
12194done
12195
12196for ac_hdr in unistd.h
12197do
12198ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12199echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12200echo "configure:12201: checking for $ac_hdr" >&5
12201if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
12203else
12204 cat > conftest.$ac_ext <<EOF
12205#line 12206 "configure"
12206#include "confdefs.h"
12207#include <$ac_hdr>
12208EOF
12209ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12210{ (eval echo configure:12211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12211ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12212if test -z "$ac_err"; then
12213 rm -rf conftest*
12214 eval "ac_cv_header_$ac_safe=yes"
12215else
12216 echo "$ac_err" >&5
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 rm -rf conftest*
12220 eval "ac_cv_header_$ac_safe=no"
12221fi
12222rm -f conftest*
12223fi
12224if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12225 echo "$ac_t""yes" 1>&6
12226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12227 cat >> confdefs.h <<EOF
12228#define $ac_tr_hdr 1
12229EOF
12230
12231else
12232 echo "$ac_t""no" 1>&6
12233fi
12234done
12235
12236for ac_hdr in wchar.h
12237do
12238ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12239echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12240echo "configure:12241: checking for $ac_hdr" >&5
12241if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12242 echo $ac_n "(cached) $ac_c" 1>&6
12243else
12244 cat > conftest.$ac_ext <<EOF
12245#line 12246 "configure"
12246#include "confdefs.h"
12247#include <$ac_hdr>
12248EOF
12249ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12250{ (eval echo configure:12251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12251ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12252if test -z "$ac_err"; then
12253 rm -rf conftest*
12254 eval "ac_cv_header_$ac_safe=yes"
12255else
12256 echo "$ac_err" >&5
12257 echo "configure: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12259 rm -rf conftest*
12260 eval "ac_cv_header_$ac_safe=no"
12261fi
12262rm -f conftest*
12263fi
12264if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12265 echo "$ac_t""yes" 1>&6
12266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12267 cat >> confdefs.h <<EOF
12268#define $ac_tr_hdr 1
12269EOF
12270
12271else
12272 echo "$ac_t""no" 1>&6
12273fi
12274done
12275
12276for ac_hdr in wcstr.h
12277do
12278ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12279echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12280echo "configure:12281: checking for $ac_hdr" >&5
12281if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283else
12284 cat > conftest.$ac_ext <<EOF
12285#line 12286 "configure"
12286#include "confdefs.h"
12287#include <$ac_hdr>
12288EOF
12289ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12290{ (eval echo configure:12291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12291ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12292if test -z "$ac_err"; then
12293 rm -rf conftest*
12294 eval "ac_cv_header_$ac_safe=yes"
12295else
12296 echo "$ac_err" >&5
12297 echo "configure: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299 rm -rf conftest*
12300 eval "ac_cv_header_$ac_safe=no"
12301fi
12302rm -f conftest*
12303fi
12304if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12305 echo "$ac_t""yes" 1>&6
12306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12307 cat >> confdefs.h <<EOF
12308#define $ac_tr_hdr 1
12309EOF
12310
12311else
12312 echo "$ac_t""no" 1>&6
12313fi
12314done
12315
12316for ac_hdr in wctype.h
12317do
12318ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12319echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12320echo "configure:12321: checking for $ac_hdr" >&5
12321if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12323else
12324 cat > conftest.$ac_ext <<EOF
12325#line 12326 "configure"
12326#include "confdefs.h"
12327#include <$ac_hdr>
12328EOF
12329ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12330{ (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12331ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12332if test -z "$ac_err"; then
12333 rm -rf conftest*
12334 eval "ac_cv_header_$ac_safe=yes"
12335else
12336 echo "$ac_err" >&5
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12339 rm -rf conftest*
12340 eval "ac_cv_header_$ac_safe=no"
12341fi
12342rm -f conftest*
12343fi
12344if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12345 echo "$ac_t""yes" 1>&6
12346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12347 cat >> confdefs.h <<EOF
12348#define $ac_tr_hdr 1
12349EOF
12350
12351else
12352 echo "$ac_t""no" 1>&6
12353fi
12354done
12355
12356for ac_hdr in fnmatch.h
12357do
12358ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12359echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12360echo "configure:12361: checking for $ac_hdr" >&5
12361if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
12363else
12364 cat > conftest.$ac_ext <<EOF
12365#line 12366 "configure"
12366#include "confdefs.h"
12367#include <$ac_hdr>
12368EOF
12369ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12370{ (eval echo configure:12371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12371ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12372if test -z "$ac_err"; then
12373 rm -rf conftest*
12374 eval "ac_cv_header_$ac_safe=yes"
12375else
12376 echo "$ac_err" >&5
12377 echo "configure: failed program was:" >&5
12378 cat conftest.$ac_ext >&5
12379 rm -rf conftest*
12380 eval "ac_cv_header_$ac_safe=no"
12381fi
12382rm -f conftest*
12383fi
12384if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12385 echo "$ac_t""yes" 1>&6
12386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12387 cat >> confdefs.h <<EOF
12388#define $ac_tr_hdr 1
12389EOF
12390
12391else
12392 echo "$ac_t""no" 1>&6
12393fi
12394done
12395
12396for ac_hdr in iconv.h
12397do
12398ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12399echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12400echo "configure:12401: checking for $ac_hdr" >&5
12401if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12402 echo $ac_n "(cached) $ac_c" 1>&6
12403else
12404 cat > conftest.$ac_ext <<EOF
12405#line 12406 "configure"
12406#include "confdefs.h"
12407#include <$ac_hdr>
12408EOF
12409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12410{ (eval echo configure:12411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12412if test -z "$ac_err"; then
12413 rm -rf conftest*
12414 eval "ac_cv_header_$ac_safe=yes"
12415else
12416 echo "$ac_err" >&5
12417 echo "configure: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12419 rm -rf conftest*
12420 eval "ac_cv_header_$ac_safe=no"
12421fi
12422rm -f conftest*
12423fi
12424if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12425 echo "$ac_t""yes" 1>&6
12426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12427 cat >> confdefs.h <<EOF
12428#define $ac_tr_hdr 1
12429EOF
12430
12431else
12432 echo "$ac_t""no" 1>&6
12433fi
12434done
12435
12436for ac_hdr in langinfo.h
12437do
12438ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12439echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12440echo "configure:12441: checking for $ac_hdr" >&5
12441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443else
12444 cat > conftest.$ac_ext <<EOF
12445#line 12446 "configure"
12446#include "confdefs.h"
12447#include <$ac_hdr>
12448EOF
12449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12450{ (eval echo configure:12451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12452if test -z "$ac_err"; then
12453 rm -rf conftest*
12454 eval "ac_cv_header_$ac_safe=yes"
12455else
12456 echo "$ac_err" >&5
12457 echo "configure: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 rm -rf conftest*
12460 eval "ac_cv_header_$ac_safe=no"
12461fi
12462rm -f conftest*
12463fi
12464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12465 echo "$ac_t""yes" 1>&6
12466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12467 cat >> confdefs.h <<EOF
12468#define $ac_tr_hdr 1
12469EOF
12470
12471else
12472 echo "$ac_t""no" 1>&6
12473fi
12474done
12475
12476
12477if test "$wxUSE_GUI" = "yes"; then
12478 if test "$wxUSE_UNIX" = "yes"; then
12479 for ac_hdr in X11/XKBlib.h
12480do
12481ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12482echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12483echo "configure:12484: checking for $ac_hdr" >&5
12484if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12486else
12487 cat > conftest.$ac_ext <<EOF
12488#line 12489 "configure"
12489#include "confdefs.h"
12490#include <$ac_hdr>
12491EOF
12492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12493{ (eval echo configure:12494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12494ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12495if test -z "$ac_err"; then
12496 rm -rf conftest*
12497 eval "ac_cv_header_$ac_safe=yes"
12498else
12499 echo "$ac_err" >&5
12500 echo "configure: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 rm -rf conftest*
12503 eval "ac_cv_header_$ac_safe=no"
12504fi
12505rm -f conftest*
12506fi
12507if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12508 echo "$ac_t""yes" 1>&6
12509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12510 cat >> confdefs.h <<EOF
12511#define $ac_tr_hdr 1
12512EOF
12513
12514else
12515 echo "$ac_t""no" 1>&6
12516fi
12517done
12518
12519 fi
12520fi
12521
12522
12523echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12524echo "configure:12525: checking for ANSI C header files" >&5
12525if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12527else
12528 cat > conftest.$ac_ext <<EOF
12529#line 12530 "configure"
12530#include "confdefs.h"
12531#include <stdlib.h>
12532#include <stdarg.h>
12533#include <string.h>
12534#include <float.h>
12535EOF
12536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12537{ (eval echo configure:12538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12539if test -z "$ac_err"; then
12540 rm -rf conftest*
12541 ac_cv_header_stdc=yes
12542else
12543 echo "$ac_err" >&5
12544 echo "configure: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12546 rm -rf conftest*
12547 ac_cv_header_stdc=no
12548fi
12549rm -f conftest*
12550
12551if test $ac_cv_header_stdc = yes; then
12552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12553cat > conftest.$ac_ext <<EOF
12554#line 12555 "configure"
12555#include "confdefs.h"
12556#include <string.h>
12557EOF
12558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12559 egrep "memchr" >/dev/null 2>&1; then
12560 :
12561else
12562 rm -rf conftest*
12563 ac_cv_header_stdc=no
12564fi
12565rm -f conftest*
12566
12567fi
12568
12569if test $ac_cv_header_stdc = yes; then
12570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12571cat > conftest.$ac_ext <<EOF
12572#line 12573 "configure"
12573#include "confdefs.h"
12574#include <stdlib.h>
12575EOF
12576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12577 egrep "free" >/dev/null 2>&1; then
12578 :
12579else
12580 rm -rf conftest*
12581 ac_cv_header_stdc=no
12582fi
12583rm -f conftest*
12584
12585fi
12586
12587if test $ac_cv_header_stdc = yes; then
12588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12589if test "$cross_compiling" = yes; then
12590 :
12591else
12592 cat > conftest.$ac_ext <<EOF
12593#line 12594 "configure"
12594#include "confdefs.h"
12595#include <ctype.h>
12596#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12597#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12598#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12599int main () { int i; for (i = 0; i < 256; i++)
12600if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12601exit (0); }
12602
12603EOF
12604if { (eval echo configure:12605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12605then
12606 :
12607else
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12610 rm -fr conftest*
12611 ac_cv_header_stdc=no
12612fi
12613rm -fr conftest*
12614fi
12615
12616fi
12617fi
12618
12619echo "$ac_t""$ac_cv_header_stdc" 1>&6
12620if test $ac_cv_header_stdc = yes; then
12621 cat >> confdefs.h <<\EOF
12622#define STDC_HEADERS 1
12623EOF
12624
12625fi
12626
12627echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12628echo "configure:12629: checking for mode_t" >&5
12629if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12630 echo $ac_n "(cached) $ac_c" 1>&6
12631else
12632 cat > conftest.$ac_ext <<EOF
12633#line 12634 "configure"
12634#include "confdefs.h"
12635#include <sys/types.h>
12636#if STDC_HEADERS
12637#include <stdlib.h>
12638#include <stddef.h>
12639#endif
12640EOF
12641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12642 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12643 rm -rf conftest*
12644 ac_cv_type_mode_t=yes
12645else
12646 rm -rf conftest*
12647 ac_cv_type_mode_t=no
12648fi
12649rm -f conftest*
12650
12651fi
12652echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12653if test $ac_cv_type_mode_t = no; then
12654 cat >> confdefs.h <<\EOF
12655#define mode_t int
12656EOF
12657
12658fi
12659
12660echo $ac_n "checking for off_t""... $ac_c" 1>&6
12661echo "configure:12662: checking for off_t" >&5
12662if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12663 echo $ac_n "(cached) $ac_c" 1>&6
12664else
12665 cat > conftest.$ac_ext <<EOF
12666#line 12667 "configure"
12667#include "confdefs.h"
12668#include <sys/types.h>
12669#if STDC_HEADERS
12670#include <stdlib.h>
12671#include <stddef.h>
12672#endif
12673EOF
12674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12675 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12676 rm -rf conftest*
12677 ac_cv_type_off_t=yes
12678else
12679 rm -rf conftest*
12680 ac_cv_type_off_t=no
12681fi
12682rm -f conftest*
12683
12684fi
12685echo "$ac_t""$ac_cv_type_off_t" 1>&6
12686if test $ac_cv_type_off_t = no; then
12687 cat >> confdefs.h <<\EOF
12688#define off_t long
12689EOF
12690
12691fi
12692
12693echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12694echo "configure:12695: checking for pid_t" >&5
12695if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12696 echo $ac_n "(cached) $ac_c" 1>&6
12697else
12698 cat > conftest.$ac_ext <<EOF
12699#line 12700 "configure"
12700#include "confdefs.h"
12701#include <sys/types.h>
12702#if STDC_HEADERS
12703#include <stdlib.h>
12704#include <stddef.h>
12705#endif
12706EOF
12707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12708 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12709 rm -rf conftest*
12710 ac_cv_type_pid_t=yes
12711else
12712 rm -rf conftest*
12713 ac_cv_type_pid_t=no
12714fi
12715rm -f conftest*
12716
12717fi
12718echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12719if test $ac_cv_type_pid_t = no; then
12720 cat >> confdefs.h <<\EOF
12721#define pid_t int
12722EOF
12723
12724fi
12725
12726echo $ac_n "checking for size_t""... $ac_c" 1>&6
12727echo "configure:12728: checking for size_t" >&5
12728if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12729 echo $ac_n "(cached) $ac_c" 1>&6
12730else
12731 cat > conftest.$ac_ext <<EOF
12732#line 12733 "configure"
12733#include "confdefs.h"
12734#include <sys/types.h>
12735#if STDC_HEADERS
12736#include <stdlib.h>
12737#include <stddef.h>
12738#endif
12739EOF
12740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12742 rm -rf conftest*
12743 ac_cv_type_size_t=yes
12744else
12745 rm -rf conftest*
12746 ac_cv_type_size_t=no
12747fi
12748rm -f conftest*
12749
12750fi
12751echo "$ac_t""$ac_cv_type_size_t" 1>&6
12752if test $ac_cv_type_size_t = no; then
12753 cat >> confdefs.h <<\EOF
12754#define size_t unsigned
12755EOF
12756
12757fi
12758
12759echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12760echo "configure:12761: checking for uid_t in sys/types.h" >&5
12761if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12762 echo $ac_n "(cached) $ac_c" 1>&6
12763else
12764 cat > conftest.$ac_ext <<EOF
12765#line 12766 "configure"
12766#include "confdefs.h"
12767#include <sys/types.h>
12768EOF
12769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12770 egrep "uid_t" >/dev/null 2>&1; then
12771 rm -rf conftest*
12772 ac_cv_type_uid_t=yes
12773else
12774 rm -rf conftest*
12775 ac_cv_type_uid_t=no
12776fi
12777rm -f conftest*
12778
12779fi
12780
12781echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12782if test $ac_cv_type_uid_t = no; then
12783 cat >> confdefs.h <<\EOF
12784#define uid_t int
12785EOF
12786
12787 cat >> confdefs.h <<\EOF
12788#define gid_t int
12789EOF
12790
12791fi
12792
12793
12794echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12795echo "configure:12796: checking for wchar_t" >&5
12796if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12797 echo $ac_n "(cached) $ac_c" 1>&6
12798else
12799
12800 cat > conftest.$ac_ext <<EOF
12801#line 12802 "configure"
12802#include "confdefs.h"
12803
12804 #ifdef HAVE_WCHAR_H
12805 # ifdef __CYGWIN__
12806 # include <stddef.h>
12807 # endif
12808 # include <wchar.h>
12809 #endif
12810 #ifdef HAVE_STDLIB_H
12811 # include <stdlib.h>
12812 #endif
12813
12814int main() {
12815
12816 wchar_t wc, *ws;
12817 wc = L'a';
12818 ws = L"Hello, world!";
12819
12820; return 0; }
12821EOF
12822if { (eval echo configure:12823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12823 rm -rf conftest*
12824 wx_cv_type_wchar_t=yes
12825else
12826 echo "configure: failed program was:" >&5
12827 cat conftest.$ac_ext >&5
12828 rm -rf conftest*
12829 wx_cv_type_wchar_t=no
12830
12831fi
12832rm -f conftest*
12833
12834fi
12835
12836echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12837
12838if test "$wx_cv_type_wchar_t" = "yes"; then
12839 cat >> confdefs.h <<\EOF
12840#define wxUSE_WCHAR_T 1
12841EOF
12842
12843fi
12844
12845
12846ac_ext=C
12847# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12848ac_cpp='$CXXCPP $CPPFLAGS'
12849ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12850ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12851cross_compiling=$ac_cv_prog_cxx_cross
12852
12853echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12854echo "configure:12855: checking if size_t is unsigned int" >&5
12855if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12856 echo $ac_n "(cached) $ac_c" 1>&6
12857else
12858 cat > conftest.$ac_ext <<EOF
12859#line 12860 "configure"
12860#include "confdefs.h"
12861#include <stddef.h>
12862int main() {
12863
12864 return 0; }
12865
12866 struct Foo { void foo(size_t); void foo(unsigned int); };
12867
12868 int bar() {
12869
12870; return 0; }
12871EOF
12872if { (eval echo configure:12873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12873 rm -rf conftest*
12874 wx_cv_size_t_is_uint=no
12875else
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12878 rm -rf conftest*
12879 wx_cv_size_t_is_uint=yes
12880
12881fi
12882rm -f conftest*
12883
12884fi
12885
12886echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12887
12888if test "$wx_cv_size_t_is_uint" = "yes"; then
12889 cat >> confdefs.h <<\EOF
12890#define wxSIZE_T_IS_UINT 1
12891EOF
12892
12893else
12894 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12895echo "configure:12896: checking if size_t is unsigned long" >&5
12896if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12897 echo $ac_n "(cached) $ac_c" 1>&6
12898else
12899 cat > conftest.$ac_ext <<EOF
12900#line 12901 "configure"
12901#include "confdefs.h"
12902#include <stddef.h>
12903int main() {
12904
12905 return 0; }
12906
12907 struct Foo { void foo(size_t); void foo(unsigned long); };
12908
12909 int bar() {
12910
12911; return 0; }
12912EOF
12913if { (eval echo configure:12914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12914 rm -rf conftest*
12915 wx_cv_size_t_is_ulong=no
12916else
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 rm -rf conftest*
12920 wx_cv_size_t_is_ulong=yes
12921
12922fi
12923rm -f conftest*
12924
12925fi
12926
12927echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12928
12929 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12930 cat >> confdefs.h <<\EOF
12931#define wxSIZE_T_IS_ULONG 1
12932EOF
12933
12934 fi
12935fi
12936
12937ac_ext=c
12938# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12939ac_cpp='$CPP $CPPFLAGS'
12940ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12941ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12942cross_compiling=$ac_cv_prog_cc_cross
12943
12944
12945
12946echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12947echo "configure:12948: checking for pw_gecos in struct passwd" >&5
12948if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12949 echo $ac_n "(cached) $ac_c" 1>&6
12950else
12951
12952 cat > conftest.$ac_ext <<EOF
12953#line 12954 "configure"
12954#include "confdefs.h"
12955#include <pwd.h>
12956int main() {
12957
12958 char *p;
12959 struct passwd *pw;
12960 p = pw->pw_gecos;
12961
12962; return 0; }
12963EOF
12964if { (eval echo configure:12965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12965 rm -rf conftest*
12966
12967 wx_cv_struct_pw_gecos=yes
12968
12969else
12970 echo "configure: failed program was:" >&5
12971 cat conftest.$ac_ext >&5
12972 rm -rf conftest*
12973
12974 wx_cv_struct_pw_gecos=no
12975
12976
12977fi
12978rm -f conftest*
12979
12980
12981fi
12982
12983echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12984
12985if test "$wx_cv_struct_pw_gecos" = "yes"; then
12986 cat >> confdefs.h <<\EOF
12987#define HAVE_PW_GECOS 1
12988EOF
12989
12990fi
12991
12992
12993echo $ac_n "checking for working const""... $ac_c" 1>&6
12994echo "configure:12995: checking for working const" >&5
12995if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12996 echo $ac_n "(cached) $ac_c" 1>&6
12997else
12998 cat > conftest.$ac_ext <<EOF
12999#line 13000 "configure"
13000#include "confdefs.h"
13001
13002int main() {
13003
13004/* Ultrix mips cc rejects this. */
13005typedef int charset[2]; const charset x = {0,0};
13006/* SunOS 4.1.1 cc rejects this. */
13007char const *const *ccp;
13008char **p;
13009/* NEC SVR4.0.2 mips cc rejects this. */
13010struct point {int x, y;};
13011static struct point const zero = {0,0};
13012/* AIX XL C 1.02.0.0 rejects this.
13013 It does not let you subtract one const X* pointer from another in an arm
13014 of an if-expression whose if-part is not a constant expression */
13015const char *g = "string";
13016ccp = &g + (g ? g-g : 0);
13017/* HPUX 7.0 cc rejects these. */
13018++ccp;
13019p = (char**) ccp;
13020ccp = (char const *const *) p;
13021{ /* SCO 3.2v4 cc rejects this. */
13022 char *t;
13023 char const *s = 0 ? (char *) 0 : (char const *) 0;
13024
13025 *t++ = 0;
13026}
13027{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13028 int x[] = {25, 17};
13029 const int *foo = &x[0];
13030 ++foo;
13031}
13032{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13033 typedef const int *iptr;
13034 iptr p = 0;
13035 ++p;
13036}
13037{ /* AIX XL C 1.02.0.0 rejects this saying
13038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13039 struct s { int j; const int *ap[3]; };
13040 struct s *b; b->j = 5;
13041}
13042{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13043 const int foo = 10;
13044}
13045
13046; return 0; }
13047EOF
13048if { (eval echo configure:13049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13049 rm -rf conftest*
13050 ac_cv_c_const=yes
13051else
13052 echo "configure: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13054 rm -rf conftest*
13055 ac_cv_c_const=no
13056fi
13057rm -f conftest*
13058fi
13059
13060echo "$ac_t""$ac_cv_c_const" 1>&6
13061if test $ac_cv_c_const = no; then
13062 cat >> confdefs.h <<\EOF
13063#define const
13064EOF
13065
13066fi
13067
13068echo $ac_n "checking for inline""... $ac_c" 1>&6
13069echo "configure:13070: checking for inline" >&5
13070if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
13071 echo $ac_n "(cached) $ac_c" 1>&6
13072else
13073 ac_cv_c_inline=no
13074for ac_kw in inline __inline__ __inline; do
13075 cat > conftest.$ac_ext <<EOF
13076#line 13077 "configure"
13077#include "confdefs.h"
13078
13079int main() {
13080} int $ac_kw foo() {
13081; return 0; }
13082EOF
13083if { (eval echo configure:13084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13084 rm -rf conftest*
13085 ac_cv_c_inline=$ac_kw; break
13086else
13087 echo "configure: failed program was:" >&5
13088 cat conftest.$ac_ext >&5
13089fi
13090rm -f conftest*
13091done
13092
13093fi
13094
13095echo "$ac_t""$ac_cv_c_inline" 1>&6
13096case "$ac_cv_c_inline" in
13097 inline | yes) ;;
13098 no) cat >> confdefs.h <<\EOF
13099#define inline
13100EOF
13101 ;;
13102 *) cat >> confdefs.h <<EOF
13103#define inline $ac_cv_c_inline
13104EOF
13105 ;;
13106esac
13107
13108
13109echo $ac_n "checking size of char""... $ac_c" 1>&6
13110echo "configure:13111: checking size of char" >&5
13111if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
13112 echo $ac_n "(cached) $ac_c" 1>&6
13113else
13114 if test "$cross_compiling" = yes; then
13115 ac_cv_sizeof_char=1
13116else
13117 cat > conftest.$ac_ext <<EOF
13118#line 13119 "configure"
13119#include "confdefs.h"
13120#include <stdio.h>
13121main()
13122{
13123 FILE *f=fopen("conftestval", "w");
13124 if (!f) exit(1);
13125 fprintf(f, "%d\n", sizeof(char));
13126 exit(0);
13127}
13128EOF
13129if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13130then
13131 ac_cv_sizeof_char=`cat conftestval`
13132else
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13135 rm -fr conftest*
13136 ac_cv_sizeof_char=0
13137fi
13138rm -fr conftest*
13139fi
13140
13141fi
13142echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13143cat >> confdefs.h <<EOF
13144#define SIZEOF_CHAR $ac_cv_sizeof_char
13145EOF
13146
13147
13148echo $ac_n "checking size of short""... $ac_c" 1>&6
13149echo "configure:13150: checking size of short" >&5
13150if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13151 echo $ac_n "(cached) $ac_c" 1>&6
13152else
13153 if test "$cross_compiling" = yes; then
13154 ac_cv_sizeof_short=2
13155else
13156 cat > conftest.$ac_ext <<EOF
13157#line 13158 "configure"
13158#include "confdefs.h"
13159#include <stdio.h>
13160main()
13161{
13162 FILE *f=fopen("conftestval", "w");
13163 if (!f) exit(1);
13164 fprintf(f, "%d\n", sizeof(short));
13165 exit(0);
13166}
13167EOF
13168if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13169then
13170 ac_cv_sizeof_short=`cat conftestval`
13171else
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 rm -fr conftest*
13175 ac_cv_sizeof_short=0
13176fi
13177rm -fr conftest*
13178fi
13179
13180fi
13181echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13182cat >> confdefs.h <<EOF
13183#define SIZEOF_SHORT $ac_cv_sizeof_short
13184EOF
13185
13186
13187echo $ac_n "checking size of int *""... $ac_c" 1>&6
13188echo "configure:13189: checking size of int *" >&5
13189if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13190 echo $ac_n "(cached) $ac_c" 1>&6
13191else
13192 if test "$cross_compiling" = yes; then
13193 ac_cv_sizeof_int_p=4
13194else
13195 cat > conftest.$ac_ext <<EOF
13196#line 13197 "configure"
13197#include "confdefs.h"
13198#include <stdio.h>
13199main()
13200{
13201 FILE *f=fopen("conftestval", "w");
13202 if (!f) exit(1);
13203 fprintf(f, "%d\n", sizeof(int *));
13204 exit(0);
13205}
13206EOF
13207if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13208then
13209 ac_cv_sizeof_int_p=`cat conftestval`
13210else
13211 echo "configure: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13213 rm -fr conftest*
13214 ac_cv_sizeof_int_p=0
13215fi
13216rm -fr conftest*
13217fi
13218
13219fi
13220echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13221cat >> confdefs.h <<EOF
13222#define SIZEOF_INT_P $ac_cv_sizeof_int_p
13223EOF
13224
13225
13226echo $ac_n "checking size of int""... $ac_c" 1>&6
13227echo "configure:13228: checking size of int" >&5
13228if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13229 echo $ac_n "(cached) $ac_c" 1>&6
13230else
13231 if test "$cross_compiling" = yes; then
13232 ac_cv_sizeof_int=4
13233else
13234 cat > conftest.$ac_ext <<EOF
13235#line 13236 "configure"
13236#include "confdefs.h"
13237#include <stdio.h>
13238main()
13239{
13240 FILE *f=fopen("conftestval", "w");
13241 if (!f) exit(1);
13242 fprintf(f, "%d\n", sizeof(int));
13243 exit(0);
13244}
13245EOF
13246if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13247then
13248 ac_cv_sizeof_int=`cat conftestval`
13249else
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 rm -fr conftest*
13253 ac_cv_sizeof_int=0
13254fi
13255rm -fr conftest*
13256fi
13257
13258fi
13259echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13260cat >> confdefs.h <<EOF
13261#define SIZEOF_INT $ac_cv_sizeof_int
13262EOF
13263
13264
13265echo $ac_n "checking size of long""... $ac_c" 1>&6
13266echo "configure:13267: checking size of long" >&5
13267if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13268 echo $ac_n "(cached) $ac_c" 1>&6
13269else
13270 if test "$cross_compiling" = yes; then
13271 ac_cv_sizeof_long=4
13272else
13273 cat > conftest.$ac_ext <<EOF
13274#line 13275 "configure"
13275#include "confdefs.h"
13276#include <stdio.h>
13277main()
13278{
13279 FILE *f=fopen("conftestval", "w");
13280 if (!f) exit(1);
13281 fprintf(f, "%d\n", sizeof(long));
13282 exit(0);
13283}
13284EOF
13285if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13286then
13287 ac_cv_sizeof_long=`cat conftestval`
13288else
13289 echo "configure: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13291 rm -fr conftest*
13292 ac_cv_sizeof_long=0
13293fi
13294rm -fr conftest*
13295fi
13296
13297fi
13298echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13299cat >> confdefs.h <<EOF
13300#define SIZEOF_LONG $ac_cv_sizeof_long
13301EOF
13302
13303
13304echo $ac_n "checking size of long long""... $ac_c" 1>&6
13305echo "configure:13306: checking size of long long" >&5
13306if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13307 echo $ac_n "(cached) $ac_c" 1>&6
13308else
13309 if test "$cross_compiling" = yes; then
13310 ac_cv_sizeof_long_long=0
13311else
13312 cat > conftest.$ac_ext <<EOF
13313#line 13314 "configure"
13314#include "confdefs.h"
13315#include <stdio.h>
13316main()
13317{
13318 FILE *f=fopen("conftestval", "w");
13319 if (!f) exit(1);
13320 fprintf(f, "%d\n", sizeof(long long));
13321 exit(0);
13322}
13323EOF
13324if { (eval echo configure:13325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13325then
13326 ac_cv_sizeof_long_long=`cat conftestval`
13327else
13328 echo "configure: failed program was:" >&5
13329 cat conftest.$ac_ext >&5
13330 rm -fr conftest*
13331 ac_cv_sizeof_long_long=0
13332fi
13333rm -fr conftest*
13334fi
13335
13336fi
13337echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13338cat >> confdefs.h <<EOF
13339#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13340EOF
13341
13342
13343
13344echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13345echo "configure:13346: checking size of wchar_t" >&5
13346if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13347 echo $ac_n "(cached) $ac_c" 1>&6
13348else
13349
13350 if test "$cross_compiling" = yes; then
13351 wx_cv_sizeof_wchar_t=4
13352
13353else
13354 cat > conftest.$ac_ext <<EOF
13355#line 13356 "configure"
13356#include "confdefs.h"
13357
13358 #ifdef HAVE_WCHAR_H
13359 # ifdef __CYGWIN__
13360 # include <stddef.h>
13361 # endif
13362 # include <wchar.h>
13363 #endif
13364 #ifdef HAVE_STDLIB_H
13365 # include <stdlib.h>
13366 #endif
13367 #include <stdio.h>
13368 int main()
13369 {
13370 FILE *f=fopen("conftestval", "w");
13371 if (!f) exit(1);
13372 fprintf(f, "%i", sizeof(wchar_t));
13373 exit(0);
13374 }
13375
13376EOF
13377if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13378then
13379 wx_cv_sizeof_wchar_t=`cat conftestval`
13380else
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 rm -fr conftest*
13384 wx_cv_sizeof_wchar_t=0
13385fi
13386rm -fr conftest*
13387fi
13388
13389
13390fi
13391
13392echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13393
13394cat >> confdefs.h <<EOF
13395#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13396EOF
13397
13398
13399echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13400echo "configure:13401: checking whether byte ordering is bigendian" >&5
13401if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13402 echo $ac_n "(cached) $ac_c" 1>&6
13403else
13404 ac_cv_c_bigendian=unknown
13405# See if sys/param.h defines the BYTE_ORDER macro.
13406cat > conftest.$ac_ext <<EOF
13407#line 13408 "configure"
13408#include "confdefs.h"
13409#include <sys/types.h>
13410#include <sys/param.h>
13411int main() {
13412
13413#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13414 bogus endian macros
13415#endif
13416; return 0; }
13417EOF
13418if { (eval echo configure:13419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13419 rm -rf conftest*
13420 # It does; now see whether it defined to BIG_ENDIAN or not.
13421cat > conftest.$ac_ext <<EOF
13422#line 13423 "configure"
13423#include "confdefs.h"
13424#include <sys/types.h>
13425#include <sys/param.h>
13426int main() {
13427
13428#if BYTE_ORDER != BIG_ENDIAN
13429 not big endian
13430#endif
13431; return 0; }
13432EOF
13433if { (eval echo configure:13434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13434 rm -rf conftest*
13435 ac_cv_c_bigendian=yes
13436else
13437 echo "configure: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13439 rm -rf conftest*
13440 ac_cv_c_bigendian=no
13441fi
13442rm -f conftest*
13443else
13444 echo "configure: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13446fi
13447rm -f conftest*
13448if test $ac_cv_c_bigendian = unknown; then
13449if test "$cross_compiling" = yes; then
13450 ac_cv_c_bigendian=unknown
13451else
13452 cat > conftest.$ac_ext <<EOF
13453#line 13454 "configure"
13454#include "confdefs.h"
13455main () {
13456 /* Are we little or big endian? From Harbison&Steele. */
13457 union
13458 {
13459 long l;
13460 char c[sizeof (long)];
13461 } u;
13462 u.l = 1;
13463 exit (u.c[sizeof (long) - 1] == 1);
13464}
13465EOF
13466if { (eval echo configure:13467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13467then
13468 ac_cv_c_bigendian=no
13469else
13470 echo "configure: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13472 rm -fr conftest*
13473 ac_cv_c_bigendian=yes
13474fi
13475rm -fr conftest*
13476fi
13477
13478fi
13479fi
13480
13481echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13482if test $ac_cv_c_bigendian = unknown; then
13483 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
13484fi
13485if test $ac_cv_c_bigendian = yes; then
13486 cat >> confdefs.h <<\EOF
13487#define WORDS_BIGENDIAN 1
13488EOF
13489
13490fi
13491
13492
13493echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13494echo "configure:13495: checking how to run the C++ preprocessor" >&5
13495if test -z "$CXXCPP"; then
13496if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13497 echo $ac_n "(cached) $ac_c" 1>&6
13498else
13499 ac_ext=C
13500# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13501ac_cpp='$CXXCPP $CPPFLAGS'
13502ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13503ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13504cross_compiling=$ac_cv_prog_cxx_cross
13505 CXXCPP="${CXX-g++} -E"
13506 cat > conftest.$ac_ext <<EOF
13507#line 13508 "configure"
13508#include "confdefs.h"
13509#include <stdlib.h>
13510EOF
13511ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13512{ (eval echo configure:13513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13513ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13514if test -z "$ac_err"; then
13515 :
13516else
13517 echo "$ac_err" >&5
13518 echo "configure: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13520 rm -rf conftest*
13521 CXXCPP=/lib/cpp
13522fi
13523rm -f conftest*
13524 ac_cv_prog_CXXCPP="$CXXCPP"
13525ac_ext=C
13526# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13527ac_cpp='$CXXCPP $CPPFLAGS'
13528ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13529ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13530cross_compiling=$ac_cv_prog_cxx_cross
13531fi
13532fi
13533CXXCPP="$ac_cv_prog_CXXCPP"
13534echo "$ac_t""$CXXCPP" 1>&6
13535
13536
13537 if test "$cross_compiling" = "yes"; then
13538 cat >> confdefs.h <<\EOF
13539#define wxUSE_IOSTREAMH 1
13540EOF
13541
13542 else
13543
13544 ac_ext=C
13545# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13546ac_cpp='$CXXCPP $CPPFLAGS'
13547ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13548ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13549cross_compiling=$ac_cv_prog_cxx_cross
13550
13551
13552 for ac_hdr in iostream
13553do
13554ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13555echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13556echo "configure:13557: checking for $ac_hdr" >&5
13557if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13558 echo $ac_n "(cached) $ac_c" 1>&6
13559else
13560 cat > conftest.$ac_ext <<EOF
13561#line 13562 "configure"
13562#include "confdefs.h"
13563#include <$ac_hdr>
13564EOF
13565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13566{ (eval echo configure:13567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13568if test -z "$ac_err"; then
13569 rm -rf conftest*
13570 eval "ac_cv_header_$ac_safe=yes"
13571else
13572 echo "$ac_err" >&5
13573 echo "configure: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 rm -rf conftest*
13576 eval "ac_cv_header_$ac_safe=no"
13577fi
13578rm -f conftest*
13579fi
13580if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13581 echo "$ac_t""yes" 1>&6
13582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13583 cat >> confdefs.h <<EOF
13584#define $ac_tr_hdr 1
13585EOF
13586
13587else
13588 echo "$ac_t""no" 1>&6
13589fi
13590done
13591
13592
13593 if test "$ac_cv_header_iostream" = "yes" ; then
13594 :
13595 else
13596 cat >> confdefs.h <<\EOF
13597#define wxUSE_IOSTREAMH 1
13598EOF
13599
13600 fi
13601
13602 ac_ext=c
13603# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13604ac_cpp='$CPP $CPPFLAGS'
13605ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13606ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13607cross_compiling=$ac_cv_prog_cc_cross
13608
13609 fi
13610
13611
13612
13613 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
13614echo "configure:13615: checking if C++ compiler supports bool" >&5
13615if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
13616 echo $ac_n "(cached) $ac_c" 1>&6
13617else
13618
13619
13620 ac_ext=C
13621# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13622ac_cpp='$CXXCPP $CPPFLAGS'
13623ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13624ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13625cross_compiling=$ac_cv_prog_cxx_cross
13626
13627
13628 cat > conftest.$ac_ext <<EOF
13629#line 13630 "configure"
13630#include "confdefs.h"
13631
13632
13633int main() {
13634
13635 bool b = true;
13636
13637 return 0;
13638
13639; return 0; }
13640EOF
13641if { (eval echo configure:13642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13642 rm -rf conftest*
13643
13644 wx_cv_cpp_bool=yes
13645
13646else
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 rm -rf conftest*
13650
13651 wx_cv_cpp_bool=no
13652
13653
13654fi
13655rm -f conftest*
13656
13657 ac_ext=c
13658# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13659ac_cpp='$CPP $CPPFLAGS'
13660ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13661ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13662cross_compiling=$ac_cv_prog_cc_cross
13663
13664
13665fi
13666
13667echo "$ac_t""$wx_cv_cpp_bool" 1>&6
13668
13669 if test "$wx_cv_cpp_bool" = "yes"; then
13670 cat >> confdefs.h <<\EOF
13671#define HAVE_BOOL 1
13672EOF
13673
13674 fi
13675
13676
13677
13678echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
13679echo "configure:13680: checking for wcslen in -lc" >&5
13680ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13681if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13683else
13684 ac_save_LIBS="$LIBS"
13685LIBS="-lc $LIBS"
13686cat > conftest.$ac_ext <<EOF
13687#line 13688 "configure"
13688#include "confdefs.h"
13689/* Override any gcc2 internal prototype to avoid an error. */
13690/* We use char because int might match the return type of a gcc2
13691 builtin and then its argument prototype would still apply. */
13692char wcslen();
13693
13694int main() {
13695wcslen()
13696; return 0; }
13697EOF
13698if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13699 rm -rf conftest*
13700 eval "ac_cv_lib_$ac_lib_var=yes"
13701else
13702 echo "configure: failed program was:" >&5
13703 cat conftest.$ac_ext >&5
13704 rm -rf conftest*
13705 eval "ac_cv_lib_$ac_lib_var=no"
13706fi
13707rm -f conftest*
13708LIBS="$ac_save_LIBS"
13709
13710fi
13711if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13712 echo "$ac_t""yes" 1>&6
13713
13714 cat >> confdefs.h <<\EOF
13715#define HAVE_WCSLEN 1
13716EOF
13717
13718 WCHAR_LINK=
13719
13720else
13721 echo "$ac_t""no" 1>&6
13722
13723 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
13724echo "configure:13725: checking for wcslen in -lw" >&5
13725ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13727 echo $ac_n "(cached) $ac_c" 1>&6
13728else
13729 ac_save_LIBS="$LIBS"
13730LIBS="-lw $LIBS"
13731cat > conftest.$ac_ext <<EOF
13732#line 13733 "configure"
13733#include "confdefs.h"
13734/* Override any gcc2 internal prototype to avoid an error. */
13735/* We use char because int might match the return type of a gcc2
13736 builtin and then its argument prototype would still apply. */
13737char wcslen();
13738
13739int main() {
13740wcslen()
13741; return 0; }
13742EOF
13743if { (eval echo configure:13744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 rm -rf conftest*
13745 eval "ac_cv_lib_$ac_lib_var=yes"
13746else
13747 echo "configure: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 rm -rf conftest*
13750 eval "ac_cv_lib_$ac_lib_var=no"
13751fi
13752rm -f conftest*
13753LIBS="$ac_save_LIBS"
13754
13755fi
13756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13757 echo "$ac_t""yes" 1>&6
13758
13759 cat >> confdefs.h <<\EOF
13760#define HAVE_WCSLEN 1
13761EOF
13762
13763 WCHAR_LINK=" -lw"
13764
13765else
13766 echo "$ac_t""no" 1>&6
13767
13768 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13769echo "configure:13770: checking for wcslen in -lmsvcrt" >&5
13770ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13771if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13773else
13774 ac_save_LIBS="$LIBS"
13775LIBS="-lmsvcrt $LIBS"
13776cat > conftest.$ac_ext <<EOF
13777#line 13778 "configure"
13778#include "confdefs.h"
13779/* Override any gcc2 internal prototype to avoid an error. */
13780/* We use char because int might match the return type of a gcc2
13781 builtin and then its argument prototype would still apply. */
13782char wcslen();
13783
13784int main() {
13785wcslen()
13786; return 0; }
13787EOF
13788if { (eval echo configure:13789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13789 rm -rf conftest*
13790 eval "ac_cv_lib_$ac_lib_var=yes"
13791else
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 rm -rf conftest*
13795 eval "ac_cv_lib_$ac_lib_var=no"
13796fi
13797rm -f conftest*
13798LIBS="$ac_save_LIBS"
13799
13800fi
13801if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13802 echo "$ac_t""yes" 1>&6
13803
13804 cat >> confdefs.h <<\EOF
13805#define HAVE_WCSLEN 1
13806EOF
13807
13808 WCHAR_LINK=
13809
13810else
13811 echo "$ac_t""no" 1>&6
13812fi
13813
13814
13815fi
13816
13817
13818fi
13819
13820
13821for ac_func in wcsrtombs
13822do
13823echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13824echo "configure:13825: checking for $ac_func" >&5
13825if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13826 echo $ac_n "(cached) $ac_c" 1>&6
13827else
13828 cat > conftest.$ac_ext <<EOF
13829#line 13830 "configure"
13830#include "confdefs.h"
13831/* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char $ac_func(); below. */
13833#include <assert.h>
13834/* Override any gcc2 internal prototype to avoid an error. */
13835/* We use char because int might match the return type of a gcc2
13836 builtin and then its argument prototype would still apply. */
13837char $ac_func();
13838
13839int main() {
13840
13841/* The GNU C library defines this for functions which it implements
13842 to always fail with ENOSYS. Some functions are actually named
13843 something starting with __ and the normal name is an alias. */
13844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13845choke me
13846#else
13847$ac_func();
13848#endif
13849
13850; return 0; }
13851EOF
13852if { (eval echo configure:13853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13853 rm -rf conftest*
13854 eval "ac_cv_func_$ac_func=yes"
13855else
13856 echo "configure: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 rm -rf conftest*
13859 eval "ac_cv_func_$ac_func=no"
13860fi
13861rm -f conftest*
13862fi
13863
13864if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13867 cat >> confdefs.h <<EOF
13868#define $ac_tr_func 1
13869EOF
13870
13871else
13872 echo "$ac_t""no" 1>&6
13873fi
13874done
13875
13876
13877echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13878echo "configure:13879: checking for vprintf" >&5
13879if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13881else
13882 cat > conftest.$ac_ext <<EOF
13883#line 13884 "configure"
13884#include "confdefs.h"
13885/* System header to define __stub macros and hopefully few prototypes,
13886 which can conflict with char vprintf(); below. */
13887#include <assert.h>
13888/* Override any gcc2 internal prototype to avoid an error. */
13889/* We use char because int might match the return type of a gcc2
13890 builtin and then its argument prototype would still apply. */
13891char vprintf();
13892
13893int main() {
13894
13895/* The GNU C library defines this for functions which it implements
13896 to always fail with ENOSYS. Some functions are actually named
13897 something starting with __ and the normal name is an alias. */
13898#if defined (__stub_vprintf) || defined (__stub___vprintf)
13899choke me
13900#else
13901vprintf();
13902#endif
13903
13904; return 0; }
13905EOF
13906if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13907 rm -rf conftest*
13908 eval "ac_cv_func_vprintf=yes"
13909else
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13912 rm -rf conftest*
13913 eval "ac_cv_func_vprintf=no"
13914fi
13915rm -f conftest*
13916fi
13917
13918if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13919 echo "$ac_t""yes" 1>&6
13920 cat >> confdefs.h <<\EOF
13921#define HAVE_VPRINTF 1
13922EOF
13923
13924else
13925 echo "$ac_t""no" 1>&6
13926fi
13927
13928if test "$ac_cv_func_vprintf" != yes; then
13929echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13930echo "configure:13931: checking for _doprnt" >&5
13931if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13932 echo $ac_n "(cached) $ac_c" 1>&6
13933else
13934 cat > conftest.$ac_ext <<EOF
13935#line 13936 "configure"
13936#include "confdefs.h"
13937/* System header to define __stub macros and hopefully few prototypes,
13938 which can conflict with char _doprnt(); below. */
13939#include <assert.h>
13940/* Override any gcc2 internal prototype to avoid an error. */
13941/* We use char because int might match the return type of a gcc2
13942 builtin and then its argument prototype would still apply. */
13943char _doprnt();
13944
13945int main() {
13946
13947/* The GNU C library defines this for functions which it implements
13948 to always fail with ENOSYS. Some functions are actually named
13949 something starting with __ and the normal name is an alias. */
13950#if defined (__stub__doprnt) || defined (__stub____doprnt)
13951choke me
13952#else
13953_doprnt();
13954#endif
13955
13956; return 0; }
13957EOF
13958if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13959 rm -rf conftest*
13960 eval "ac_cv_func__doprnt=yes"
13961else
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 rm -rf conftest*
13965 eval "ac_cv_func__doprnt=no"
13966fi
13967rm -f conftest*
13968fi
13969
13970if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13971 echo "$ac_t""yes" 1>&6
13972 cat >> confdefs.h <<\EOF
13973#define HAVE_DOPRNT 1
13974EOF
13975
13976else
13977 echo "$ac_t""no" 1>&6
13978fi
13979
13980fi
13981
13982
13983
13984
13985
13986
13987echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13988echo "configure:13989: checking for vsnprintf" >&5
13989if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13990 echo $ac_n "(cached) $ac_c" 1>&6
13991else
13992
13993 cat > conftest.$ac_ext <<EOF
13994#line 13995 "configure"
13995#include "confdefs.h"
13996
13997 #include <stdio.h>
13998 #include <stdarg.h>
13999
14000int main() {
14001
14002 int wx_test_vsnprintf(const char *, ...);
14003
14004 wx_test_vsnprintf("%s");
14005 return 0;
14006 }
14007
14008 int wx_test_vsnprintf(const char *fmt, ...)
14009 {
14010 char *s;
14011
14012 va_list argp;
14013 va_start(argp, fmt);
14014 vsnprintf(s, 42, fmt, argp);
14015 va_end(argp);
14016
14017; return 0; }
14018EOF
14019if { (eval echo configure:14020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14020 rm -rf conftest*
14021
14022 wx_cv_func_vsnprintf=yes
14023
14024else
14025 echo "configure: failed program was:" >&5
14026 cat conftest.$ac_ext >&5
14027 rm -rf conftest*
14028
14029 cat > conftest.$ac_ext <<EOF
14030#line 14031 "configure"
14031#include "confdefs.h"
14032
14033 #include <stdio.h>
14034 #include <stdarg.h>
14035
14036int main() {
14037
14038 int wx_test_vsnprintf(const char *, ...);
14039
14040 wx_test_vsnprintf("%s");
14041 return 0;
14042 }
14043
14044 int wx_test_vsnprintf(const char *fmt, ...)
14045 {
14046 char *s;
14047
14048 va_list argp;
14049 va_start(argp, fmt);
14050 _vsnprintf(s, 42, fmt, argp);
14051 va_end(argp);
14052
14053; return 0; }
14054EOF
14055if { (eval echo configure:14056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14056 rm -rf conftest*
14057
14058 wx_cv_func_vsnprintf=yes
14059
14060else
14061 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14063 rm -rf conftest*
14064
14065 wx_cv_func_vsnprintf=no
14066
14067fi
14068rm -f conftest*
14069
14070fi
14071rm -f conftest*
14072
14073fi
14074
14075echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
14076
14077if test "$wx_cv_func_vsnprintf" = yes; then
14078 cat >> confdefs.h <<\EOF
14079#define HAVE_VSNPRINTF 1
14080EOF
14081
14082else
14083 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
14084fi
14085
14086echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14087echo "configure:14088: checking for vsscanf" >&5
14088if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
14089 echo $ac_n "(cached) $ac_c" 1>&6
14090else
14091
14092 cat > conftest.$ac_ext <<EOF
14093#line 14094 "configure"
14094#include "confdefs.h"
14095
14096 #include <stdio.h>
14097 #include <stdarg.h>
14098
14099int main() {
14100
14101 int wx_test_vsscanf(const char *, ...);
14102
14103 wx_test_vsscanf("%d");
14104 return 0;
14105 }
14106
14107 int wx_test_vsscanf(const char *fmt, ...)
14108 {
14109 va_list argp;
14110 va_start(argp, fmt);
14111 vsscanf("42", fmt, argp);
14112 va_end(argp);
14113
14114; return 0; }
14115EOF
14116if { (eval echo configure:14117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14117 rm -rf conftest*
14118
14119 wx_cv_func_vsscanf=yes
14120
14121else
14122 echo "configure: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14124 rm -rf conftest*
14125
14126 wx_cv_func_vsscanf=no
14127
14128fi
14129rm -f conftest*
14130
14131fi
14132
14133echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14134
14135if test "$wx_cv_func_vsscanf" = yes; then
14136 cat >> confdefs.h <<\EOF
14137#define HAVE_VSSCANF 1
14138EOF
14139
14140fi
14141
14142if test "$TOOLKIT" != "MSW"; then
14143
14144
14145
14146ac_ext=C
14147# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14148ac_cpp='$CXXCPP $CPPFLAGS'
14149ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14150ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14151cross_compiling=$ac_cv_prog_cxx_cross
14152
14153echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14154echo "configure:14155: checking if iconv() takes char**" >&5
14155if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14156 echo $ac_n "(cached) $ac_c" 1>&6
14157else
14158
14159 cat > conftest.$ac_ext <<EOF
14160#line 14161 "configure"
14161#include "confdefs.h"
14162#include <iconv.h>
14163int main() {
14164
14165 char **inbuf, **outbuf;
14166 iconv_t cd;
14167 size_t insz, outsz;
14168 iconv(cd, inbuf, &insz, outbuf, &outsz);
14169
14170; return 0; }
14171EOF
14172if { (eval echo configure:14173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14173 rm -rf conftest*
14174 wx_cv_iconv_takes_char=yes
14175else
14176 echo "configure: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14178 rm -rf conftest*
14179 wx_cv_iconv_takes_char=no
14180fi
14181rm -f conftest*
14182
14183fi
14184
14185echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14186ac_ext=c
14187# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14188ac_cpp='$CPP $CPPFLAGS'
14189ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14190ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14191cross_compiling=$ac_cv_prog_cc_cross
14192
14193if test "$wx_cv_iconv_takes_char" = yes ; then
14194 cat >> confdefs.h <<\EOF
14195#define WX_ICONV_TAKES_CHAR 1
14196EOF
14197
14198fi
14199
14200
14201if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14202 for ac_func in sigaction
14203do
14204echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14205echo "configure:14206: checking for $ac_func" >&5
14206if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14207 echo $ac_n "(cached) $ac_c" 1>&6
14208else
14209 cat > conftest.$ac_ext <<EOF
14210#line 14211 "configure"
14211#include "confdefs.h"
14212/* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char $ac_func(); below. */
14214#include <assert.h>
14215/* Override any gcc2 internal prototype to avoid an error. */
14216/* We use char because int might match the return type of a gcc2
14217 builtin and then its argument prototype would still apply. */
14218char $ac_func();
14219
14220int main() {
14221
14222/* The GNU C library defines this for functions which it implements
14223 to always fail with ENOSYS. Some functions are actually named
14224 something starting with __ and the normal name is an alias. */
14225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14226choke me
14227#else
14228$ac_func();
14229#endif
14230
14231; return 0; }
14232EOF
14233if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14234 rm -rf conftest*
14235 eval "ac_cv_func_$ac_func=yes"
14236else
14237 echo "configure: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14239 rm -rf conftest*
14240 eval "ac_cv_func_$ac_func=no"
14241fi
14242rm -f conftest*
14243fi
14244
14245if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14246 echo "$ac_t""yes" 1>&6
14247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14248 cat >> confdefs.h <<EOF
14249#define $ac_tr_func 1
14250EOF
14251
14252else
14253 echo "$ac_t""no" 1>&6
14254fi
14255done
14256
14257
14258 if test "$ac_cv_func_sigaction" = "no"; then
14259 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14260 wxUSE_ON_FATAL_EXCEPTION=no
14261 fi
14262
14263 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14264
14265 ac_ext=C
14266# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14267ac_cpp='$CXXCPP $CPPFLAGS'
14268ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14269ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14270cross_compiling=$ac_cv_prog_cxx_cross
14271
14272
14273 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14274echo "configure:14275: checking for sa_handler type" >&5
14275if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14276 echo $ac_n "(cached) $ac_c" 1>&6
14277else
14278
14279 cat > conftest.$ac_ext <<EOF
14280#line 14281 "configure"
14281#include "confdefs.h"
14282#include <signal.h>
14283int main() {
14284
14285 extern void testSigHandler(int);
14286
14287 struct sigaction sa;
14288 sa.sa_handler = testSigHandler;
14289
14290; return 0; }
14291EOF
14292if { (eval echo configure:14293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14293 rm -rf conftest*
14294
14295 wx_cv_type_sa_handler=int
14296
14297else
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -rf conftest*
14301
14302 wx_cv_type_sa_handler=void
14303
14304fi
14305rm -f conftest*
14306
14307fi
14308
14309echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14310
14311 ac_ext=c
14312# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14313ac_cpp='$CPP $CPPFLAGS'
14314ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14315ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14316cross_compiling=$ac_cv_prog_cc_cross
14317
14318
14319 cat >> confdefs.h <<EOF
14320#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14321EOF
14322
14323 fi
14324fi
14325
14326for ac_func in vfork
14327do
14328echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14329echo "configure:14330: checking for $ac_func" >&5
14330if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14331 echo $ac_n "(cached) $ac_c" 1>&6
14332else
14333 cat > conftest.$ac_ext <<EOF
14334#line 14335 "configure"
14335#include "confdefs.h"
14336/* System header to define __stub macros and hopefully few prototypes,
14337 which can conflict with char $ac_func(); below. */
14338#include <assert.h>
14339/* Override any gcc2 internal prototype to avoid an error. */
14340/* We use char because int might match the return type of a gcc2
14341 builtin and then its argument prototype would still apply. */
14342char $ac_func();
14343
14344int main() {
14345
14346/* The GNU C library defines this for functions which it implements
14347 to always fail with ENOSYS. Some functions are actually named
14348 something starting with __ and the normal name is an alias. */
14349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14350choke me
14351#else
14352$ac_func();
14353#endif
14354
14355; return 0; }
14356EOF
14357if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14358 rm -rf conftest*
14359 eval "ac_cv_func_$ac_func=yes"
14360else
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 rm -rf conftest*
14364 eval "ac_cv_func_$ac_func=no"
14365fi
14366rm -f conftest*
14367fi
14368
14369if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14370 echo "$ac_t""yes" 1>&6
14371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14372 cat >> confdefs.h <<EOF
14373#define $ac_tr_func 1
14374EOF
14375
14376else
14377 echo "$ac_t""no" 1>&6
14378fi
14379done
14380
14381
14382echo $ac_n "checking for statfs""... $ac_c" 1>&6
14383echo "configure:14384: checking for statfs" >&5
14384if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14385 echo $ac_n "(cached) $ac_c" 1>&6
14386else
14387 cat > conftest.$ac_ext <<EOF
14388#line 14389 "configure"
14389#include "confdefs.h"
14390
14391 #if defined(__BSD__)
14392 #include <sys/param.h>
14393 #include <sys/mount.h>
14394 #else
14395 #include <sys/vfs.h>
14396 #endif
14397
14398int main() {
14399
14400 long l;
14401 struct statfs fs;
14402 statfs("/", &fs);
14403 l = fs.f_bsize;
14404 l += fs.f_blocks;
14405 l += fs.f_bavail;
14406
14407; return 0; }
14408EOF
14409if { (eval echo configure:14410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14410 rm -rf conftest*
14411
14412 wx_cv_func_statfs=yes
14413
14414else
14415 echo "configure: failed program was:" >&5
14416 cat conftest.$ac_ext >&5
14417 rm -rf conftest*
14418
14419 wx_cv_func_statfs=no
14420
14421
14422fi
14423rm -f conftest*
14424
14425fi
14426
14427echo "$ac_t""$wx_cv_func_statfs" 1>&6
14428
14429if test "$wx_cv_func_statfs" = "yes"; then
14430 cat >> confdefs.h <<\EOF
14431#define HAVE_STATFS 1
14432EOF
14433
14434else
14435 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14436echo "configure:14437: checking for statvfs" >&5
14437if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14438 echo $ac_n "(cached) $ac_c" 1>&6
14439else
14440 cat > conftest.$ac_ext <<EOF
14441#line 14442 "configure"
14442#include "confdefs.h"
14443
14444 #include <sys/statvfs.h>
14445
14446int main() {
14447
14448 long l;
14449 struct statvfs fs;
14450 statvfs("/", &fs);
14451 l = fs.f_bsize;
14452 l += fs.f_blocks;
14453 l += fs.f_bavail;
14454
14455; return 0; }
14456EOF
14457if { (eval echo configure:14458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14458 rm -rf conftest*
14459
14460 wx_cv_func_statvfs=yes
14461
14462else
14463 echo "configure: failed program was:" >&5
14464 cat conftest.$ac_ext >&5
14465 rm -rf conftest*
14466
14467 wx_cv_func_statvfs=no
14468
14469
14470fi
14471rm -f conftest*
14472
14473fi
14474
14475echo "$ac_t""$wx_cv_func_statvfs" 1>&6
14476
14477 if test "$wx_cv_func_statvfs" = "yes"; then
14478 cat >> confdefs.h <<\EOF
14479#define HAVE_STATVFS 1
14480EOF
14481
14482 else
14483 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14484 fi
14485fi
14486
14487if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14488 for ac_func in fcntl flock
14489do
14490echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14491echo "configure:14492: checking for $ac_func" >&5
14492if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14493 echo $ac_n "(cached) $ac_c" 1>&6
14494else
14495 cat > conftest.$ac_ext <<EOF
14496#line 14497 "configure"
14497#include "confdefs.h"
14498/* System header to define __stub macros and hopefully few prototypes,
14499 which can conflict with char $ac_func(); below. */
14500#include <assert.h>
14501/* Override any gcc2 internal prototype to avoid an error. */
14502/* We use char because int might match the return type of a gcc2
14503 builtin and then its argument prototype would still apply. */
14504char $ac_func();
14505
14506int main() {
14507
14508/* The GNU C library defines this for functions which it implements
14509 to always fail with ENOSYS. Some functions are actually named
14510 something starting with __ and the normal name is an alias. */
14511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14512choke me
14513#else
14514$ac_func();
14515#endif
14516
14517; return 0; }
14518EOF
14519if { (eval echo configure:14520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14520 rm -rf conftest*
14521 eval "ac_cv_func_$ac_func=yes"
14522else
14523 echo "configure: failed program was:" >&5
14524 cat conftest.$ac_ext >&5
14525 rm -rf conftest*
14526 eval "ac_cv_func_$ac_func=no"
14527fi
14528rm -f conftest*
14529fi
14530
14531if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14532 echo "$ac_t""yes" 1>&6
14533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14534 cat >> confdefs.h <<EOF
14535#define $ac_tr_func 1
14536EOF
14537 break
14538else
14539 echo "$ac_t""no" 1>&6
14540fi
14541done
14542
14543
14544 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14545 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14546 wxUSE_SNGLINST_CHECKER=no
14547 fi
14548fi
14549
14550for ac_func in timegm
14551do
14552echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14553echo "configure:14554: checking for $ac_func" >&5
14554if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14555 echo $ac_n "(cached) $ac_c" 1>&6
14556else
14557 cat > conftest.$ac_ext <<EOF
14558#line 14559 "configure"
14559#include "confdefs.h"
14560/* System header to define __stub macros and hopefully few prototypes,
14561 which can conflict with char $ac_func(); below. */
14562#include <assert.h>
14563/* Override any gcc2 internal prototype to avoid an error. */
14564/* We use char because int might match the return type of a gcc2
14565 builtin and then its argument prototype would still apply. */
14566char $ac_func();
14567
14568int main() {
14569
14570/* The GNU C library defines this for functions which it implements
14571 to always fail with ENOSYS. Some functions are actually named
14572 something starting with __ and the normal name is an alias. */
14573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14574choke me
14575#else
14576$ac_func();
14577#endif
14578
14579; return 0; }
14580EOF
14581if { (eval echo configure:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14582 rm -rf conftest*
14583 eval "ac_cv_func_$ac_func=yes"
14584else
14585 echo "configure: failed program was:" >&5
14586 cat conftest.$ac_ext >&5
14587 rm -rf conftest*
14588 eval "ac_cv_func_$ac_func=no"
14589fi
14590rm -f conftest*
14591fi
14592
14593if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14594 echo "$ac_t""yes" 1>&6
14595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14596 cat >> confdefs.h <<EOF
14597#define $ac_tr_func 1
14598EOF
14599
14600else
14601 echo "$ac_t""no" 1>&6
14602fi
14603done
14604
14605
14606for ac_func in putenv setenv
14607do
14608echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14609echo "configure:14610: checking for $ac_func" >&5
14610if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14611 echo $ac_n "(cached) $ac_c" 1>&6
14612else
14613 cat > conftest.$ac_ext <<EOF
14614#line 14615 "configure"
14615#include "confdefs.h"
14616/* System header to define __stub macros and hopefully few prototypes,
14617 which can conflict with char $ac_func(); below. */
14618#include <assert.h>
14619/* Override any gcc2 internal prototype to avoid an error. */
14620/* We use char because int might match the return type of a gcc2
14621 builtin and then its argument prototype would still apply. */
14622char $ac_func();
14623
14624int main() {
14625
14626/* The GNU C library defines this for functions which it implements
14627 to always fail with ENOSYS. Some functions are actually named
14628 something starting with __ and the normal name is an alias. */
14629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14630choke me
14631#else
14632$ac_func();
14633#endif
14634
14635; return 0; }
14636EOF
14637if { (eval echo configure:14638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14638 rm -rf conftest*
14639 eval "ac_cv_func_$ac_func=yes"
14640else
14641 echo "configure: failed program was:" >&5
14642 cat conftest.$ac_ext >&5
14643 rm -rf conftest*
14644 eval "ac_cv_func_$ac_func=no"
14645fi
14646rm -f conftest*
14647fi
14648
14649if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14650 echo "$ac_t""yes" 1>&6
14651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14652 cat >> confdefs.h <<EOF
14653#define $ac_tr_func 1
14654EOF
14655 break
14656else
14657 echo "$ac_t""no" 1>&6
14658fi
14659done
14660
14661
14662HAVE_SOME_SLEEP_FUNC=0
14663if test "$USE_BEOS" = 1; then
14664 cat >> confdefs.h <<\EOF
14665#define HAVE_SLEEP 1
14666EOF
14667
14668 HAVE_SOME_SLEEP_FUNC=1
14669fi
14670
14671if test "$USE_DARWIN" = 1; then
14672 cat >> confdefs.h <<\EOF
14673#define HAVE_USLEEP 1
14674EOF
14675
14676 HAVE_SOME_SLEEP_FUNC=1
14677fi
14678
14679if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14680 POSIX4_LINK=
14681 for ac_func in nanosleep
14682do
14683echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14684echo "configure:14685: checking for $ac_func" >&5
14685if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14686 echo $ac_n "(cached) $ac_c" 1>&6
14687else
14688 cat > conftest.$ac_ext <<EOF
14689#line 14690 "configure"
14690#include "confdefs.h"
14691/* System header to define __stub macros and hopefully few prototypes,
14692 which can conflict with char $ac_func(); below. */
14693#include <assert.h>
14694/* Override any gcc2 internal prototype to avoid an error. */
14695/* We use char because int might match the return type of a gcc2
14696 builtin and then its argument prototype would still apply. */
14697char $ac_func();
14698
14699int main() {
14700
14701/* The GNU C library defines this for functions which it implements
14702 to always fail with ENOSYS. Some functions are actually named
14703 something starting with __ and the normal name is an alias. */
14704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14705choke me
14706#else
14707$ac_func();
14708#endif
14709
14710; return 0; }
14711EOF
14712if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14713 rm -rf conftest*
14714 eval "ac_cv_func_$ac_func=yes"
14715else
14716 echo "configure: failed program was:" >&5
14717 cat conftest.$ac_ext >&5
14718 rm -rf conftest*
14719 eval "ac_cv_func_$ac_func=no"
14720fi
14721rm -f conftest*
14722fi
14723
14724if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14725 echo "$ac_t""yes" 1>&6
14726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14727 cat >> confdefs.h <<EOF
14728#define $ac_tr_func 1
14729EOF
14730 cat >> confdefs.h <<\EOF
14731#define HAVE_NANOSLEEP 1
14732EOF
14733
14734else
14735 echo "$ac_t""no" 1>&6
14736echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
14737echo "configure:14738: checking for nanosleep in -lposix4" >&5
14738ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14739if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14740 echo $ac_n "(cached) $ac_c" 1>&6
14741else
14742 ac_save_LIBS="$LIBS"
14743LIBS="-lposix4 $LIBS"
14744cat > conftest.$ac_ext <<EOF
14745#line 14746 "configure"
14746#include "confdefs.h"
14747/* Override any gcc2 internal prototype to avoid an error. */
14748/* We use char because int might match the return type of a gcc2
14749 builtin and then its argument prototype would still apply. */
14750char nanosleep();
14751
14752int main() {
14753nanosleep()
14754; return 0; }
14755EOF
14756if { (eval echo configure:14757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14757 rm -rf conftest*
14758 eval "ac_cv_lib_$ac_lib_var=yes"
14759else
14760 echo "configure: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 rm -rf conftest*
14763 eval "ac_cv_lib_$ac_lib_var=no"
14764fi
14765rm -f conftest*
14766LIBS="$ac_save_LIBS"
14767
14768fi
14769if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14770 echo "$ac_t""yes" 1>&6
14771
14772 cat >> confdefs.h <<\EOF
14773#define HAVE_NANOSLEEP 1
14774EOF
14775
14776 POSIX4_LINK=" -lposix4"
14777
14778else
14779 echo "$ac_t""no" 1>&6
14780
14781 for ac_func in usleep
14782do
14783echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14784echo "configure:14785: checking for $ac_func" >&5
14785if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14786 echo $ac_n "(cached) $ac_c" 1>&6
14787else
14788 cat > conftest.$ac_ext <<EOF
14789#line 14790 "configure"
14790#include "confdefs.h"
14791/* System header to define __stub macros and hopefully few prototypes,
14792 which can conflict with char $ac_func(); below. */
14793#include <assert.h>
14794/* Override any gcc2 internal prototype to avoid an error. */
14795/* We use char because int might match the return type of a gcc2
14796 builtin and then its argument prototype would still apply. */
14797char $ac_func();
14798
14799int main() {
14800
14801/* The GNU C library defines this for functions which it implements
14802 to always fail with ENOSYS. Some functions are actually named
14803 something starting with __ and the normal name is an alias. */
14804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14805choke me
14806#else
14807$ac_func();
14808#endif
14809
14810; return 0; }
14811EOF
14812if { (eval echo configure:14813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14813 rm -rf conftest*
14814 eval "ac_cv_func_$ac_func=yes"
14815else
14816 echo "configure: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14818 rm -rf conftest*
14819 eval "ac_cv_func_$ac_func=no"
14820fi
14821rm -f conftest*
14822fi
14823
14824if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14825 echo "$ac_t""yes" 1>&6
14826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14827 cat >> confdefs.h <<EOF
14828#define $ac_tr_func 1
14829EOF
14830 cat >> confdefs.h <<\EOF
14831#define HAVE_USLEEP 1
14832EOF
14833
14834else
14835 echo "$ac_t""no" 1>&6
14836echo "configure: warning: wxSleep() function will not work" 1>&2
14837
14838fi
14839done
14840
14841
14842
14843fi
14844
14845
14846
14847fi
14848done
14849
14850fi
14851
14852for ac_func in uname gethostname
14853do
14854echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14855echo "configure:14856: checking for $ac_func" >&5
14856if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14857 echo $ac_n "(cached) $ac_c" 1>&6
14858else
14859 cat > conftest.$ac_ext <<EOF
14860#line 14861 "configure"
14861#include "confdefs.h"
14862/* System header to define __stub macros and hopefully few prototypes,
14863 which can conflict with char $ac_func(); below. */
14864#include <assert.h>
14865/* Override any gcc2 internal prototype to avoid an error. */
14866/* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14868char $ac_func();
14869
14870int main() {
14871
14872/* The GNU C library defines this for functions which it implements
14873 to always fail with ENOSYS. Some functions are actually named
14874 something starting with __ and the normal name is an alias. */
14875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14876choke me
14877#else
14878$ac_func();
14879#endif
14880
14881; return 0; }
14882EOF
14883if { (eval echo configure:14884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14884 rm -rf conftest*
14885 eval "ac_cv_func_$ac_func=yes"
14886else
14887 echo "configure: failed program was:" >&5
14888 cat conftest.$ac_ext >&5
14889 rm -rf conftest*
14890 eval "ac_cv_func_$ac_func=no"
14891fi
14892rm -f conftest*
14893fi
14894
14895if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14896 echo "$ac_t""yes" 1>&6
14897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14898 cat >> confdefs.h <<EOF
14899#define $ac_tr_func 1
14900EOF
14901 break
14902else
14903 echo "$ac_t""no" 1>&6
14904fi
14905done
14906
14907
14908
14909ac_ext=C
14910# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14911ac_cpp='$CXXCPP $CPPFLAGS'
14912ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14913ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14914cross_compiling=$ac_cv_prog_cxx_cross
14915
14916
14917for ac_func in strtok_r
14918do
14919echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14920echo "configure:14921: checking for $ac_func" >&5
14921if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14922 echo $ac_n "(cached) $ac_c" 1>&6
14923else
14924 cat > conftest.$ac_ext <<EOF
14925#line 14926 "configure"
14926#include "confdefs.h"
14927/* System header to define __stub macros and hopefully few prototypes,
14928 which can conflict with char $ac_func(); below. */
14929#include <assert.h>
14930/* Override any gcc2 internal prototype to avoid an error. */
14931#ifdef __cplusplus
14932extern "C"
14933#endif
14934/* We use char because int might match the return type of a gcc2
14935 builtin and then its argument prototype would still apply. */
14936char $ac_func();
14937
14938int main() {
14939
14940/* The GNU C library defines this for functions which it implements
14941 to always fail with ENOSYS. Some functions are actually named
14942 something starting with __ and the normal name is an alias. */
14943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14944choke me
14945#else
14946$ac_func();
14947#endif
14948
14949; return 0; }
14950EOF
14951if { (eval echo configure:14952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14952 rm -rf conftest*
14953 eval "ac_cv_func_$ac_func=yes"
14954else
14955 echo "configure: failed program was:" >&5
14956 cat conftest.$ac_ext >&5
14957 rm -rf conftest*
14958 eval "ac_cv_func_$ac_func=no"
14959fi
14960rm -f conftest*
14961fi
14962
14963if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14964 echo "$ac_t""yes" 1>&6
14965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14966 cat >> confdefs.h <<EOF
14967#define $ac_tr_func 1
14968EOF
14969
14970else
14971 echo "$ac_t""no" 1>&6
14972fi
14973done
14974
14975
14976ac_ext=c
14977# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14978ac_cpp='$CPP $CPPFLAGS'
14979ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14980ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14981cross_compiling=$ac_cv_prog_cc_cross
14982
14983
14984INET_LINK=
14985for ac_func in inet_addr
14986do
14987echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14988echo "configure:14989: checking for $ac_func" >&5
14989if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14990 echo $ac_n "(cached) $ac_c" 1>&6
14991else
14992 cat > conftest.$ac_ext <<EOF
14993#line 14994 "configure"
14994#include "confdefs.h"
14995/* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char $ac_func(); below. */
14997#include <assert.h>
14998/* Override any gcc2 internal prototype to avoid an error. */
14999/* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15001char $ac_func();
15002
15003int main() {
15004
15005/* The GNU C library defines this for functions which it implements
15006 to always fail with ENOSYS. Some functions are actually named
15007 something starting with __ and the normal name is an alias. */
15008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15009choke me
15010#else
15011$ac_func();
15012#endif
15013
15014; return 0; }
15015EOF
15016if { (eval echo configure:15017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15017 rm -rf conftest*
15018 eval "ac_cv_func_$ac_func=yes"
15019else
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 rm -rf conftest*
15023 eval "ac_cv_func_$ac_func=no"
15024fi
15025rm -f conftest*
15026fi
15027
15028if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15029 echo "$ac_t""yes" 1>&6
15030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15031 cat >> confdefs.h <<EOF
15032#define $ac_tr_func 1
15033EOF
15034 cat >> confdefs.h <<\EOF
15035#define HAVE_INET_ADDR 1
15036EOF
15037
15038else
15039 echo "$ac_t""no" 1>&6
15040echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
15041echo "configure:15042: checking for inet_addr in -lnsl" >&5
15042ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
15043if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15044 echo $ac_n "(cached) $ac_c" 1>&6
15045else
15046 ac_save_LIBS="$LIBS"
15047LIBS="-lnsl $LIBS"
15048cat > conftest.$ac_ext <<EOF
15049#line 15050 "configure"
15050#include "confdefs.h"
15051/* Override any gcc2 internal prototype to avoid an error. */
15052/* We use char because int might match the return type of a gcc2
15053 builtin and then its argument prototype would still apply. */
15054char inet_addr();
15055
15056int main() {
15057inet_addr()
15058; return 0; }
15059EOF
15060if { (eval echo configure:15061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15061 rm -rf conftest*
15062 eval "ac_cv_lib_$ac_lib_var=yes"
15063else
15064 echo "configure: failed program was:" >&5
15065 cat conftest.$ac_ext >&5
15066 rm -rf conftest*
15067 eval "ac_cv_lib_$ac_lib_var=no"
15068fi
15069rm -f conftest*
15070LIBS="$ac_save_LIBS"
15071
15072fi
15073if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15074 echo "$ac_t""yes" 1>&6
15075 INET_LINK="nsl"
15076else
15077 echo "$ac_t""no" 1>&6
15078echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
15079echo "configure:15080: checking for inet_addr in -lresolv" >&5
15080ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
15081if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
15083else
15084 ac_save_LIBS="$LIBS"
15085LIBS="-lresolv $LIBS"
15086cat > conftest.$ac_ext <<EOF
15087#line 15088 "configure"
15088#include "confdefs.h"
15089/* Override any gcc2 internal prototype to avoid an error. */
15090/* We use char because int might match the return type of a gcc2
15091 builtin and then its argument prototype would still apply. */
15092char inet_addr();
15093
15094int main() {
15095inet_addr()
15096; return 0; }
15097EOF
15098if { (eval echo configure:15099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15099 rm -rf conftest*
15100 eval "ac_cv_lib_$ac_lib_var=yes"
15101else
15102 echo "configure: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15104 rm -rf conftest*
15105 eval "ac_cv_lib_$ac_lib_var=no"
15106fi
15107rm -f conftest*
15108LIBS="$ac_save_LIBS"
15109
15110fi
15111if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15112 echo "$ac_t""yes" 1>&6
15113 INET_LINK="resolv"
15114
15115else
15116 echo "$ac_t""no" 1>&6
15117fi
15118
15119
15120fi
15121
15122
15123
15124fi
15125done
15126
15127
15128for ac_func in inet_aton
15129do
15130echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15131echo "configure:15132: checking for $ac_func" >&5
15132if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15133 echo $ac_n "(cached) $ac_c" 1>&6
15134else
15135 cat > conftest.$ac_ext <<EOF
15136#line 15137 "configure"
15137#include "confdefs.h"
15138/* System header to define __stub macros and hopefully few prototypes,
15139 which can conflict with char $ac_func(); below. */
15140#include <assert.h>
15141/* Override any gcc2 internal prototype to avoid an error. */
15142/* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15144char $ac_func();
15145
15146int main() {
15147
15148/* The GNU C library defines this for functions which it implements
15149 to always fail with ENOSYS. Some functions are actually named
15150 something starting with __ and the normal name is an alias. */
15151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15152choke me
15153#else
15154$ac_func();
15155#endif
15156
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_func_$ac_func=yes"
15162else
15163 echo "configure: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 rm -rf conftest*
15166 eval "ac_cv_func_$ac_func=no"
15167fi
15168rm -f conftest*
15169fi
15170
15171if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15172 echo "$ac_t""yes" 1>&6
15173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15174 cat >> confdefs.h <<EOF
15175#define $ac_tr_func 1
15176EOF
15177 cat >> confdefs.h <<\EOF
15178#define HAVE_INET_ATON 1
15179EOF
15180
15181else
15182 echo "$ac_t""no" 1>&6
15183 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15184echo "configure:15185: checking for inet_aton in -l$INET_LINK" >&5
15185ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15186if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
15188else
15189 ac_save_LIBS="$LIBS"
15190LIBS="-l$INET_LINK $LIBS"
15191cat > conftest.$ac_ext <<EOF
15192#line 15193 "configure"
15193#include "confdefs.h"
15194/* Override any gcc2 internal prototype to avoid an error. */
15195/* We use char because int might match the return type of a gcc2
15196 builtin and then its argument prototype would still apply. */
15197char inet_aton();
15198
15199int main() {
15200inet_aton()
15201; return 0; }
15202EOF
15203if { (eval echo configure:15204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15204 rm -rf conftest*
15205 eval "ac_cv_lib_$ac_lib_var=yes"
15206else
15207 echo "configure: failed program was:" >&5
15208 cat conftest.$ac_ext >&5
15209 rm -rf conftest*
15210 eval "ac_cv_lib_$ac_lib_var=no"
15211fi
15212rm -f conftest*
15213LIBS="$ac_save_LIBS"
15214
15215fi
15216if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15217 echo "$ac_t""yes" 1>&6
15218 cat >> confdefs.h <<\EOF
15219#define HAVE_INET_ATON 1
15220EOF
15221
15222else
15223 echo "$ac_t""no" 1>&6
15224fi
15225
15226
15227fi
15228done
15229
15230
15231if test "x$INET_LINK" != "x"; then
15232 cat >> confdefs.h <<\EOF
15233#define HAVE_INET_ADDR 1
15234EOF
15235
15236 INET_LINK=" -l$INET_LINK"
15237fi
15238
15239fi
15240
15241
15242cat > confcache <<\EOF
15243# This file is a shell script that caches the results of configure
15244# tests run on this system so they can be shared between configure
15245# scripts and configure runs. It is not useful on other systems.
15246# If it contains results you don't want to keep, you may remove or edit it.
15247#
15248# By default, configure uses ./config.cache as the cache file,
15249# creating it if it does not exist already. You can give configure
15250# the --cache-file=FILE option to use a different cache file; that is
15251# what configure does when it calls configure scripts in
15252# subdirectories, so they share the cache.
15253# Giving --cache-file=/dev/null disables caching, for debugging configure.
15254# config.status only pays attention to the cache file if you give it the
15255# --recheck option to rerun configure.
15256#
15257EOF
15258# The following way of writing the cache mishandles newlines in values,
15259# but we know of no workaround that is simple, portable, and efficient.
15260# So, don't put newlines in cache variables' values.
15261# Ultrix sh set writes to stderr and can't be redirected directly,
15262# and sets the high bit in the cache file unless we assign to the vars.
15263(set) 2>&1 |
15264 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15265 *ac_space=\ *)
15266 # `set' does not quote correctly, so add quotes (double-quote substitution
15267 # turns \\\\ into \\, and sed turns \\ into \).
15268 sed -n \
15269 -e "s/'/'\\\\''/g" \
15270 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15271 ;;
15272 *)
15273 # `set' quotes correctly as required by POSIX, so do not add quotes.
15274 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15275 ;;
15276 esac >> confcache
15277if cmp -s $cache_file confcache; then
15278 :
15279else
15280 if test -w $cache_file; then
15281 echo "updating cache $cache_file"
15282 cat confcache > $cache_file
15283 else
15284 echo "not updating unwritable cache $cache_file"
15285 fi
15286fi
15287rm -f confcache
15288
15289
15290
15291if test "$TOOLKIT" != "MSW"; then
15292
15293
15294 THREADS_LINK=
15295 THREADS_OBJ=
15296 CODE_GEN_FLAGS=
15297 CODE_GEN_FLAGS_CXX=
15298
15299 if test "$wxUSE_THREADS" = "yes" ; then
15300 if test "$wxUSE_WINE" = 1 ; then
15301 echo "configure: warning: Threads are not supported under WINE" 1>&2
15302 wxUSE_THREADS="no"
15303 elif test "$USE_BEOS" = 1; then
15304 echo "configure: warning: BeOS threads are not yet supported" 1>&2
15305 wxUSE_THREADS="no"
15306 fi
15307 fi
15308
15309 if test "$wxUSE_THREADS" = "yes" ; then
15310
15311 if test "$USE_AIX" = 1; then
15312 THREADS_LIB=pthreads
15313 else
15314 THREADS_LIB=pthread
15315 fi
15316
15317 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15318echo "configure:15319: checking for pthread_create in -l$THREADS_LIB" >&5
15319ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15321 echo $ac_n "(cached) $ac_c" 1>&6
15322else
15323 ac_save_LIBS="$LIBS"
15324LIBS="-l$THREADS_LIB $LIBS"
15325cat > conftest.$ac_ext <<EOF
15326#line 15327 "configure"
15327#include "confdefs.h"
15328/* Override any gcc2 internal prototype to avoid an error. */
15329/* We use char because int might match the return type of a gcc2
15330 builtin and then its argument prototype would still apply. */
15331char pthread_create();
15332
15333int main() {
15334pthread_create()
15335; return 0; }
15336EOF
15337if { (eval echo configure:15338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15338 rm -rf conftest*
15339 eval "ac_cv_lib_$ac_lib_var=yes"
15340else
15341 echo "configure: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15343 rm -rf conftest*
15344 eval "ac_cv_lib_$ac_lib_var=no"
15345fi
15346rm -f conftest*
15347LIBS="$ac_save_LIBS"
15348
15349fi
15350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15351 echo "$ac_t""yes" 1>&6
15352
15353 THREADS_OBJ="threadpsx.lo"
15354 THREADS_LINK=$THREADS_LIB
15355
15356else
15357 echo "$ac_t""no" 1>&6
15358
15359 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15360echo "configure:15361: checking for pthread_create in -lc_r" >&5
15361ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15362if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15363 echo $ac_n "(cached) $ac_c" 1>&6
15364else
15365 ac_save_LIBS="$LIBS"
15366LIBS="-lc_r $LIBS"
15367cat > conftest.$ac_ext <<EOF
15368#line 15369 "configure"
15369#include "confdefs.h"
15370/* Override any gcc2 internal prototype to avoid an error. */
15371/* We use char because int might match the return type of a gcc2
15372 builtin and then its argument prototype would still apply. */
15373char pthread_create();
15374
15375int main() {
15376pthread_create()
15377; return 0; }
15378EOF
15379if { (eval echo configure:15380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15380 rm -rf conftest*
15381 eval "ac_cv_lib_$ac_lib_var=yes"
15382else
15383 echo "configure: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 rm -rf conftest*
15386 eval "ac_cv_lib_$ac_lib_var=no"
15387fi
15388rm -f conftest*
15389LIBS="$ac_save_LIBS"
15390
15391fi
15392if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15393 echo "$ac_t""yes" 1>&6
15394
15395 THREADS_OBJ="threadpsx.lo"
15396 THREADS_LINK="c_r"
15397
15398else
15399 echo "$ac_t""no" 1>&6
15400
15401 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15402echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15403echo "configure:15404: checking for sys/prctl.h" >&5
15404if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15405 echo $ac_n "(cached) $ac_c" 1>&6
15406else
15407 cat > conftest.$ac_ext <<EOF
15408#line 15409 "configure"
15409#include "confdefs.h"
15410#include <sys/prctl.h>
15411EOF
15412ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15413{ (eval echo configure:15414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15414ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15415if test -z "$ac_err"; then
15416 rm -rf conftest*
15417 eval "ac_cv_header_$ac_safe=yes"
15418else
15419 echo "$ac_err" >&5
15420 echo "configure: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15422 rm -rf conftest*
15423 eval "ac_cv_header_$ac_safe=no"
15424fi
15425rm -f conftest*
15426fi
15427if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15428 echo "$ac_t""yes" 1>&6
15429
15430 THREADS_OBJ="threadsgi.lo"
15431
15432else
15433 echo "$ac_t""no" 1>&6
15434fi
15435
15436
15437fi
15438
15439
15440fi
15441
15442
15443 if test -z "$THREADS_OBJ" ; then
15444 wxUSE_THREADS=no
15445 echo "configure: warning: No thread support on this system" 1>&2
15446 fi
15447 fi
15448
15449 if test "$wxUSE_THREADS" = "yes" ; then
15450 for ac_func in thr_setconcurrency
15451do
15452echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15453echo "configure:15454: checking for $ac_func" >&5
15454if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15455 echo $ac_n "(cached) $ac_c" 1>&6
15456else
15457 cat > conftest.$ac_ext <<EOF
15458#line 15459 "configure"
15459#include "confdefs.h"
15460/* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char $ac_func(); below. */
15462#include <assert.h>
15463/* Override any gcc2 internal prototype to avoid an error. */
15464/* We use char because int might match the return type of a gcc2
15465 builtin and then its argument prototype would still apply. */
15466char $ac_func();
15467
15468int main() {
15469
15470/* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15474choke me
15475#else
15476$ac_func();
15477#endif
15478
15479; return 0; }
15480EOF
15481if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15482 rm -rf conftest*
15483 eval "ac_cv_func_$ac_func=yes"
15484else
15485 echo "configure: failed program was:" >&5
15486 cat conftest.$ac_ext >&5
15487 rm -rf conftest*
15488 eval "ac_cv_func_$ac_func=no"
15489fi
15490rm -f conftest*
15491fi
15492
15493if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15494 echo "$ac_t""yes" 1>&6
15495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15496 cat >> confdefs.h <<EOF
15497#define $ac_tr_func 1
15498EOF
15499
15500else
15501 echo "$ac_t""no" 1>&6
15502fi
15503done
15504
15505
15506
15507 for ac_hdr in sched.h
15508do
15509ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15510echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15511echo "configure:15512: checking for $ac_hdr" >&5
15512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514else
15515 cat > conftest.$ac_ext <<EOF
15516#line 15517 "configure"
15517#include "confdefs.h"
15518#include <$ac_hdr>
15519EOF
15520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15521{ (eval echo configure:15522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15523if test -z "$ac_err"; then
15524 rm -rf conftest*
15525 eval "ac_cv_header_$ac_safe=yes"
15526else
15527 echo "$ac_err" >&5
15528 echo "configure: failed program was:" >&5
15529 cat conftest.$ac_ext >&5
15530 rm -rf conftest*
15531 eval "ac_cv_header_$ac_safe=no"
15532fi
15533rm -f conftest*
15534fi
15535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15536 echo "$ac_t""yes" 1>&6
15537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15538 cat >> confdefs.h <<EOF
15539#define $ac_tr_hdr 1
15540EOF
15541
15542else
15543 echo "$ac_t""no" 1>&6
15544fi
15545done
15546
15547
15548 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
15549echo "configure:15550: checking for sched_yield in -l$THREADS_LINK" >&5
15550ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15552 echo $ac_n "(cached) $ac_c" 1>&6
15553else
15554 ac_save_LIBS="$LIBS"
15555LIBS="-l$THREADS_LINK $LIBS"
15556cat > conftest.$ac_ext <<EOF
15557#line 15558 "configure"
15558#include "confdefs.h"
15559/* Override any gcc2 internal prototype to avoid an error. */
15560/* We use char because int might match the return type of a gcc2
15561 builtin and then its argument prototype would still apply. */
15562char sched_yield();
15563
15564int main() {
15565sched_yield()
15566; return 0; }
15567EOF
15568if { (eval echo configure:15569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15569 rm -rf conftest*
15570 eval "ac_cv_lib_$ac_lib_var=yes"
15571else
15572 echo "configure: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 rm -rf conftest*
15575 eval "ac_cv_lib_$ac_lib_var=no"
15576fi
15577rm -f conftest*
15578LIBS="$ac_save_LIBS"
15579
15580fi
15581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15582 echo "$ac_t""yes" 1>&6
15583 cat >> confdefs.h <<\EOF
15584#define HAVE_SCHED_YIELD 1
15585EOF
15586
15587else
15588 echo "$ac_t""no" 1>&6
15589echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
15590echo "configure:15591: checking for sched_yield in -lposix4" >&5
15591ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15593 echo $ac_n "(cached) $ac_c" 1>&6
15594else
15595 ac_save_LIBS="$LIBS"
15596LIBS="-lposix4 $LIBS"
15597cat > conftest.$ac_ext <<EOF
15598#line 15599 "configure"
15599#include "confdefs.h"
15600/* Override any gcc2 internal prototype to avoid an error. */
15601/* We use char because int might match the return type of a gcc2
15602 builtin and then its argument prototype would still apply. */
15603char sched_yield();
15604
15605int main() {
15606sched_yield()
15607; return 0; }
15608EOF
15609if { (eval echo configure:15610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15610 rm -rf conftest*
15611 eval "ac_cv_lib_$ac_lib_var=yes"
15612else
15613 echo "configure: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15615 rm -rf conftest*
15616 eval "ac_cv_lib_$ac_lib_var=no"
15617fi
15618rm -f conftest*
15619LIBS="$ac_save_LIBS"
15620
15621fi
15622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15623 echo "$ac_t""yes" 1>&6
15624 cat >> confdefs.h <<\EOF
15625#define HAVE_SCHED_YIELD 1
15626EOF
15627 POSIX4_LINK=" -lposix4"
15628else
15629 echo "$ac_t""no" 1>&6
15630echo "configure: warning: wxThread::Yield will not work properly" 1>&2
15631
15632fi
15633
15634
15635fi
15636
15637
15638 HAVE_PRIOR_FUNCS=0
15639 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
15640echo "configure:15641: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
15641ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15642if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15643 echo $ac_n "(cached) $ac_c" 1>&6
15644else
15645 ac_save_LIBS="$LIBS"
15646LIBS="-l$THREADS_LINK $LIBS"
15647cat > conftest.$ac_ext <<EOF
15648#line 15649 "configure"
15649#include "confdefs.h"
15650/* Override any gcc2 internal prototype to avoid an error. */
15651/* We use char because int might match the return type of a gcc2
15652 builtin and then its argument prototype would still apply. */
15653char pthread_attr_getschedpolicy();
15654
15655int main() {
15656pthread_attr_getschedpolicy()
15657; return 0; }
15658EOF
15659if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15660 rm -rf conftest*
15661 eval "ac_cv_lib_$ac_lib_var=yes"
15662else
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15665 rm -rf conftest*
15666 eval "ac_cv_lib_$ac_lib_var=no"
15667fi
15668rm -f conftest*
15669LIBS="$ac_save_LIBS"
15670
15671fi
15672if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15673 echo "$ac_t""yes" 1>&6
15674 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
15675echo "configure:15676: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
15676ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
15677if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15678 echo $ac_n "(cached) $ac_c" 1>&6
15679else
15680 ac_save_LIBS="$LIBS"
15681LIBS="-l$THREADS_LINK $LIBS"
15682cat > conftest.$ac_ext <<EOF
15683#line 15684 "configure"
15684#include "confdefs.h"
15685/* Override any gcc2 internal prototype to avoid an error. */
15686/* We use char because int might match the return type of a gcc2
15687 builtin and then its argument prototype would still apply. */
15688char pthread_attr_setschedparam();
15689
15690int main() {
15691pthread_attr_setschedparam()
15692; return 0; }
15693EOF
15694if { (eval echo configure:15695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15695 rm -rf conftest*
15696 eval "ac_cv_lib_$ac_lib_var=yes"
15697else
15698 echo "configure: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15700 rm -rf conftest*
15701 eval "ac_cv_lib_$ac_lib_var=no"
15702fi
15703rm -f conftest*
15704LIBS="$ac_save_LIBS"
15705
15706fi
15707if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15708 echo "$ac_t""yes" 1>&6
15709 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
15710echo "configure:15711: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
15711ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15712if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15713 echo $ac_n "(cached) $ac_c" 1>&6
15714else
15715 ac_save_LIBS="$LIBS"
15716LIBS="-l$THREADS_LINK $LIBS"
15717cat > conftest.$ac_ext <<EOF
15718#line 15719 "configure"
15719#include "confdefs.h"
15720/* Override any gcc2 internal prototype to avoid an error. */
15721/* We use char because int might match the return type of a gcc2
15722 builtin and then its argument prototype would still apply. */
15723char sched_get_priority_max();
15724
15725int main() {
15726sched_get_priority_max()
15727; return 0; }
15728EOF
15729if { (eval echo configure:15730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15730 rm -rf conftest*
15731 eval "ac_cv_lib_$ac_lib_var=yes"
15732else
15733 echo "configure: failed program was:" >&5
15734 cat conftest.$ac_ext >&5
15735 rm -rf conftest*
15736 eval "ac_cv_lib_$ac_lib_var=no"
15737fi
15738rm -f conftest*
15739LIBS="$ac_save_LIBS"
15740
15741fi
15742if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15743 echo "$ac_t""yes" 1>&6
15744 HAVE_PRIOR_FUNCS=1
15745else
15746 echo "$ac_t""no" 1>&6
15747echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
15748echo "configure:15749: checking for sched_get_priority_max in -lposix4" >&5
15749ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15751 echo $ac_n "(cached) $ac_c" 1>&6
15752else
15753 ac_save_LIBS="$LIBS"
15754LIBS="-lposix4 $LIBS"
15755cat > conftest.$ac_ext <<EOF
15756#line 15757 "configure"
15757#include "confdefs.h"
15758/* Override any gcc2 internal prototype to avoid an error. */
15759/* We use char because int might match the return type of a gcc2
15760 builtin and then its argument prototype would still apply. */
15761char sched_get_priority_max();
15762
15763int main() {
15764sched_get_priority_max()
15765; return 0; }
15766EOF
15767if { (eval echo configure:15768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15768 rm -rf conftest*
15769 eval "ac_cv_lib_$ac_lib_var=yes"
15770else
15771 echo "configure: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 rm -rf conftest*
15774 eval "ac_cv_lib_$ac_lib_var=no"
15775fi
15776rm -f conftest*
15777LIBS="$ac_save_LIBS"
15778
15779fi
15780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15781 echo "$ac_t""yes" 1>&6
15782
15783 HAVE_PRIOR_FUNCS=1
15784 POSIX4_LINK=" -lposix4"
15785
15786else
15787 echo "$ac_t""no" 1>&6
15788fi
15789
15790
15791fi
15792
15793
15794else
15795 echo "$ac_t""no" 1>&6
15796fi
15797
15798
15799else
15800 echo "$ac_t""no" 1>&6
15801fi
15802
15803
15804 if test "$HAVE_PRIOR_FUNCS" = 1; then
15805 cat >> confdefs.h <<\EOF
15806#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15807EOF
15808
15809 else
15810 echo "configure: warning: Setting thread priority will not work" 1>&2
15811 fi
15812
15813 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15814echo "configure:15815: checking for pthread_cancel in -l$THREADS_LINK" >&5
15815ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15816if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15817 echo $ac_n "(cached) $ac_c" 1>&6
15818else
15819 ac_save_LIBS="$LIBS"
15820LIBS="-l$THREADS_LINK $LIBS"
15821cat > conftest.$ac_ext <<EOF
15822#line 15823 "configure"
15823#include "confdefs.h"
15824/* Override any gcc2 internal prototype to avoid an error. */
15825/* We use char because int might match the return type of a gcc2
15826 builtin and then its argument prototype would still apply. */
15827char pthread_cancel();
15828
15829int main() {
15830pthread_cancel()
15831; return 0; }
15832EOF
15833if { (eval echo configure:15834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15834 rm -rf conftest*
15835 eval "ac_cv_lib_$ac_lib_var=yes"
15836else
15837 echo "configure: failed program was:" >&5
15838 cat conftest.$ac_ext >&5
15839 rm -rf conftest*
15840 eval "ac_cv_lib_$ac_lib_var=no"
15841fi
15842rm -f conftest*
15843LIBS="$ac_save_LIBS"
15844
15845fi
15846if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15847 echo "$ac_t""yes" 1>&6
15848 cat >> confdefs.h <<\EOF
15849#define HAVE_PTHREAD_CANCEL 1
15850EOF
15851
15852else
15853 echo "$ac_t""no" 1>&6
15854echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15855fi
15856
15857
15858 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15859echo "configure:15860: checking for pthread_cleanup_push/pop" >&5
15860if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15861 echo $ac_n "(cached) $ac_c" 1>&6
15862else
15863
15864 cat > conftest.$ac_ext <<EOF
15865#line 15866 "configure"
15866#include "confdefs.h"
15867#include <pthread.h>
15868int main() {
15869
15870 pthread_cleanup_push(NULL, NULL);
15871 pthread_cleanup_pop(0);
15872
15873; return 0; }
15874EOF
15875if { (eval echo configure:15876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15876 rm -rf conftest*
15877
15878 wx_cv_func_pthread_cleanup_push=yes
15879
15880else
15881 echo "configure: failed program was:" >&5
15882 cat conftest.$ac_ext >&5
15883 rm -rf conftest*
15884
15885 wx_cv_func_pthread_cleanup_push=no
15886
15887fi
15888rm -f conftest*
15889
15890fi
15891
15892echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15893
15894 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15895 cat >> confdefs.h <<\EOF
15896#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15897EOF
15898
15899 fi
15900
15901
15902 if test "x$wx_lib_glibc21" = "xyes"; then
15903 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15904 fi
15905
15906 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15907echo "configure:15908: checking for pthread_mutexattr_t" >&5
15908if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15909 echo $ac_n "(cached) $ac_c" 1>&6
15910else
15911
15912 cat > conftest.$ac_ext <<EOF
15913#line 15914 "configure"
15914#include "confdefs.h"
15915#include <pthread.h>
15916int main() {
15917
15918 pthread_mutexattr_t attr;
15919 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15920
15921; return 0; }
15922EOF
15923if { (eval echo configure:15924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15924 rm -rf conftest*
15925
15926 wx_cv_type_pthread_mutexattr_t=yes
15927
15928else
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931 rm -rf conftest*
15932
15933 wx_cv_type_pthread_mutexattr_t=no
15934
15935
15936fi
15937rm -f conftest*
15938
15939fi
15940
15941echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15942
15943 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15944 cat >> confdefs.h <<\EOF
15945#define HAVE_PTHREAD_MUTEXATTR_T 1
15946EOF
15947
15948 else
15949 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15950echo "configure:15951: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15951if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15952 echo $ac_n "(cached) $ac_c" 1>&6
15953else
15954
15955 cat > conftest.$ac_ext <<EOF
15956#line 15957 "configure"
15957#include "confdefs.h"
15958#include <pthread.h>
15959int main() {
15960
15961 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15962
15963; return 0; }
15964EOF
15965if { (eval echo configure:15966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15966 rm -rf conftest*
15967
15968 wx_cv_type_pthread_rec_mutex_init=yes
15969
15970else
15971 echo "configure: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15973 rm -rf conftest*
15974
15975 wx_cv_type_pthread_rec_mutex_init=no
15976
15977
15978fi
15979rm -f conftest*
15980
15981fi
15982
15983echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15984 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15985 cat >> confdefs.h <<\EOF
15986#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15987EOF
15988
15989 else
15990 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15991 fi
15992 fi
15993
15994 THREADS_LINK=" -l$THREADS_LINK"
15995
15996 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15997 CPPFLAGS="$CFLAGS -mt"
15998 CXXFLAGS="$CXXFLAGS -mt"
15999 LDFLAGS="$LDFLAGS -mt"
16000 fi
16001 fi
16002
16003fi
16004
16005if test "$wxUSE_THREADS" = "yes"; then
16006 cat >> confdefs.h <<\EOF
16007#define wxUSE_THREADS 1
16008EOF
16009
16010
16011 if test "$USE_DARWIN" != 1; then
16012 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT"
16013 fi
16014
16015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
16016else
16017 if test "$ac_cv_func_strtok_r" = "yes"; then
16018 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
16019echo "configure:16020: checking if -D_REENTRANT is needed" >&5
16020 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16021 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16022 echo "$ac_t""yes" 1>&6
16023 else
16024 echo "$ac_t""no" 1>&6
16025 fi
16026 fi
16027fi
16028
16029if test "$WXGTK20" = 1 ; then
16030 cat >> confdefs.h <<EOF
16031#define __WXGTK20__ $WXGTK20
16032EOF
16033
16034 WXGTK12=1
16035fi
16036
16037if test "$WXGTK12" = 1 ; then
16038 cat >> confdefs.h <<EOF
16039#define __WXGTK12__ $WXGTK12
16040EOF
16041
16042fi
16043
16044if test "$WXGTK127" = 1 ; then
16045 cat >> confdefs.h <<EOF
16046#define __WXGTK127__ $WXGTK127
16047EOF
16048
16049fi
16050
16051WXDEBUG=
16052
16053if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16054 WXDEBUG="-g"
16055 wxUSE_OPTIMISE=no
16056fi
16057
16058if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16059 wxUSE_DEBUG_INFO=yes
16060 WXDEBUG="-ggdb"
16061fi
16062
16063if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16064 cat >> confdefs.h <<\EOF
16065#define WXDEBUG 1
16066EOF
16067
16068 WXDEBUG_DEFINE="-D__WXDEBUG__"
16069else
16070 if test "$wxUSE_GTK" = 1 ; then
16071 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16072 fi
16073fi
16074
16075if test "$wxUSE_MEM_TRACING" = "yes" ; then
16076 cat >> confdefs.h <<\EOF
16077#define wxUSE_MEMORY_TRACING 1
16078EOF
16079
16080 cat >> confdefs.h <<\EOF
16081#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16082EOF
16083
16084 cat >> confdefs.h <<\EOF
16085#define wxUSE_DEBUG_NEW_ALWAYS 1
16086EOF
16087
16088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16089fi
16090
16091if test "$wxUSE_DMALLOC" = "yes" ; then
16092 DMALLOC_LIBS="-ldmalloc"
16093fi
16094
16095PROFILE=
16096if test "$wxUSE_PROFILE" = "yes" ; then
16097 PROFILE=" -pg"
16098fi
16099
16100if test "$GCC" = "yes" ; then
16101 if test "$wxUSE_NO_RTTI" = "yes" ; then
16102 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
16103 fi
16104 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16105 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16106 fi
16107 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16108 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16109 fi
16110 if test "$USE_WIN32" = 1 ; then
16111 # I'm not even really sure what this was ever added to solve,
16112 # but someone added it for mingw native builds, so I guess
16113 # they had a reason, right??
16114 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16115 fi
16116fi
16117
16118
16119CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16120CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16121if test "$wxUSE_OPTIMISE" = "no" ; then
16122 OPTIMISE=
16123else
16124 if test "$GCC" = yes ; then
16125 OPTIMISE="-O2"
16126 case "${host}" in
16127 i586-*-*|i686-*-* )
16128 OPTIMISE="${OPTIMISE} "
16129 ;;
16130 esac
16131 else
16132 OPTIMISE="-O"
16133 fi
16134fi
16135
16136if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16137 cat >> confdefs.h <<\EOF
16138#define WXWIN_COMPATIBILITY_2 1
16139EOF
16140
16141
16142 WXWIN_COMPATIBILITY_2_2="yes"
16143fi
16144
16145if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16146 cat >> confdefs.h <<\EOF
16147#define WXWIN_COMPATIBILITY_2_2 1
16148EOF
16149
16150fi
16151
16152
16153if test "$wxUSE_GUI" = "yes"; then
16154 cat >> confdefs.h <<\EOF
16155#define wxUSE_GUI 1
16156EOF
16157
16158
16159 else
16160 cat >> confdefs.h <<\EOF
16161#define wxUSE_NOGUI 1
16162EOF
16163
16164fi
16165
16166
16167if test "$wxUSE_UNIX" = "yes"; then
16168 cat >> confdefs.h <<\EOF
16169#define wxUSE_UNIX 1
16170EOF
16171
16172fi
16173
16174
16175if test "$wxUSE_APPLE_IEEE" = "yes"; then
16176 cat >> confdefs.h <<\EOF
16177#define wxUSE_APPLE_IEEE 1
16178EOF
16179
16180fi
16181
16182if test "$wxUSE_TIMER" = "yes"; then
16183 cat >> confdefs.h <<\EOF
16184#define wxUSE_TIMER 1
16185EOF
16186
16187fi
16188
16189if test "$wxUSE_WAVE" = "yes"; then
16190 cat >> confdefs.h <<\EOF
16191#define wxUSE_WAVE 1
16192EOF
16193
16194fi
16195
16196if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16197 cat >> confdefs.h <<\EOF
16198#define wxUSE_CMDLINE_PARSER 1
16199EOF
16200
16201fi
16202
16203if test "$wxUSE_STOPWATCH" = "yes"; then
16204 cat >> confdefs.h <<\EOF
16205#define wxUSE_STOPWATCH 1
16206EOF
16207
16208fi
16209
16210if test "$wxUSE_DATETIME" = "yes"; then
16211 cat >> confdefs.h <<\EOF
16212#define wxUSE_DATETIME 1
16213EOF
16214
16215fi
16216
16217if test "$wxUSE_TIMEDATE" = "yes"; then
16218 cat >> confdefs.h <<\EOF
16219#define wxUSE_TIMEDATE 1
16220EOF
16221
16222fi
16223
16224if test "$wxUSE_FILE" = "yes"; then
16225 cat >> confdefs.h <<\EOF
16226#define wxUSE_FILE 1
16227EOF
16228
16229fi
16230
16231if test "$wxUSE_FFILE" = "yes"; then
16232 cat >> confdefs.h <<\EOF
16233#define wxUSE_FFILE 1
16234EOF
16235
16236fi
16237
16238if test "$wxUSE_FILESYSTEM" = "yes"; then
16239 cat >> confdefs.h <<\EOF
16240#define wxUSE_FILESYSTEM 1
16241EOF
16242
16243fi
16244
16245if test "$wxUSE_FS_INET" = "yes"; then
16246 cat >> confdefs.h <<\EOF
16247#define wxUSE_FS_INET 1
16248EOF
16249
16250fi
16251
16252if test "$wxUSE_FS_ZIP" = "yes"; then
16253 cat >> confdefs.h <<\EOF
16254#define wxUSE_FS_ZIP 1
16255EOF
16256
16257fi
16258
16259if test "$wxUSE_ZIPSTREAM" = "yes"; then
16260 cat >> confdefs.h <<\EOF
16261#define wxUSE_ZIPSTREAM 1
16262EOF
16263
16264fi
16265
16266if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16267 cat >> confdefs.h <<\EOF
16268#define wxUSE_ON_FATAL_EXCEPTION 1
16269EOF
16270
16271fi
16272
16273if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16274 cat >> confdefs.h <<\EOF
16275#define wxUSE_SNGLINST_CHECKER 1
16276EOF
16277
16278fi
16279
16280if test "$wxUSE_BUSYINFO" = "yes"; then
16281 cat >> confdefs.h <<\EOF
16282#define wxUSE_BUSYINFO 1
16283EOF
16284
16285fi
16286
16287if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16288 cat >> confdefs.h <<\EOF
16289#define wxUSE_STD_IOSTREAM 1
16290EOF
16291
16292fi
16293
16294if test "$wxUSE_TEXTBUFFER" = "yes"; then
16295 cat >> confdefs.h <<\EOF
16296#define wxUSE_TEXTBUFFER 1
16297EOF
16298
16299fi
16300
16301if test "$wxUSE_TEXTFILE" = "yes"; then
16302 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
16303 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer and won't be compiled without them" 1>&2
16304 else
16305 cat >> confdefs.h <<\EOF
16306#define wxUSE_TEXTFILE 1
16307EOF
16308
16309 fi
16310fi
16311
16312if test "$wxUSE_CONFIG" = "yes" ; then
16313 if test "$wxUSE_TEXTFILE" != "yes"; then
16314 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
16315 else
16316 cat >> confdefs.h <<\EOF
16317#define wxUSE_CONFIG 1
16318EOF
16319
16320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16321 fi
16322fi
16323
16324if test "$wxUSE_INTL" = "yes" ; then
16325 if test "$wxUSE_FILE" != "yes"; then
16326 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
16327 else
16328 cat >> confdefs.h <<\EOF
16329#define wxUSE_INTL 1
16330EOF
16331
16332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16333 GUIDIST="$GUIDIST INTL_DIST"
16334 fi
16335fi
16336
16337if test "$wxUSE_LOG" = "yes"; then
16338 cat >> confdefs.h <<\EOF
16339#define wxUSE_LOG 1
16340EOF
16341
16342
16343 if test "$wxUSE_LOGGUI" = "yes"; then
16344 cat >> confdefs.h <<\EOF
16345#define wxUSE_LOGGUI 1
16346EOF
16347
16348 fi
16349
16350 if test "$wxUSE_LOGWINDOW" = "yes"; then
16351 cat >> confdefs.h <<\EOF
16352#define wxUSE_LOGWINDOW 1
16353EOF
16354
16355 fi
16356
16357 if test "$wxUSE_LOGDIALOG" = "yes"; then
16358 cat >> confdefs.h <<\EOF
16359#define wxUSE_LOG_DIALOG 1
16360EOF
16361
16362 fi
16363fi
16364
16365if test "$wxUSE_LONGLONG" = "yes"; then
16366 cat >> confdefs.h <<\EOF
16367#define wxUSE_LONGLONG 1
16368EOF
16369
16370fi
16371
16372if test "$wxUSE_GEOMETRY" = "yes"; then
16373 cat >> confdefs.h <<\EOF
16374#define wxUSE_GEOMETRY 1
16375EOF
16376
16377fi
16378
16379if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16380 cat >> confdefs.h <<\EOF
16381#define wxUSE_DIALUP_MANAGER 1
16382EOF
16383
16384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16385fi
16386
16387if test "$wxUSE_STREAMS" = "yes" ; then
16388 cat >> confdefs.h <<\EOF
16389#define wxUSE_STREAMS 1
16390EOF
16391
16392fi
16393
16394
16395if test "$wxUSE_DATETIME" = "yes"; then
16396 for ac_func in strptime
16397do
16398echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16399echo "configure:16400: checking for $ac_func" >&5
16400if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16401 echo $ac_n "(cached) $ac_c" 1>&6
16402else
16403 cat > conftest.$ac_ext <<EOF
16404#line 16405 "configure"
16405#include "confdefs.h"
16406/* System header to define __stub macros and hopefully few prototypes,
16407 which can conflict with char $ac_func(); below. */
16408#include <assert.h>
16409/* Override any gcc2 internal prototype to avoid an error. */
16410/* We use char because int might match the return type of a gcc2
16411 builtin and then its argument prototype would still apply. */
16412char $ac_func();
16413
16414int main() {
16415
16416/* The GNU C library defines this for functions which it implements
16417 to always fail with ENOSYS. Some functions are actually named
16418 something starting with __ and the normal name is an alias. */
16419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16420choke me
16421#else
16422$ac_func();
16423#endif
16424
16425; return 0; }
16426EOF
16427if { (eval echo configure:16428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16428 rm -rf conftest*
16429 eval "ac_cv_func_$ac_func=yes"
16430else
16431 echo "configure: failed program was:" >&5
16432 cat conftest.$ac_ext >&5
16433 rm -rf conftest*
16434 eval "ac_cv_func_$ac_func=no"
16435fi
16436rm -f conftest*
16437fi
16438
16439if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16440 echo "$ac_t""yes" 1>&6
16441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16442 cat >> confdefs.h <<EOF
16443#define $ac_tr_func 1
16444EOF
16445
16446else
16447 echo "$ac_t""no" 1>&6
16448fi
16449done
16450
16451
16452 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16453echo "configure:16454: checking for timezone variable in <time.h>" >&5
16454if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16455 echo $ac_n "(cached) $ac_c" 1>&6
16456else
16457
16458 cat > conftest.$ac_ext <<EOF
16459#line 16460 "configure"
16460#include "confdefs.h"
16461
16462 #include <time.h>
16463
16464int main() {
16465
16466 int tz;
16467 tz = timezone;
16468
16469; return 0; }
16470EOF
16471if { (eval echo configure:16472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16472 rm -rf conftest*
16473
16474 wx_cv_var_timezone=timezone
16475
16476else
16477 echo "configure: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16479 rm -rf conftest*
16480
16481 cat > conftest.$ac_ext <<EOF
16482#line 16483 "configure"
16483#include "confdefs.h"
16484
16485 #include <time.h>
16486
16487int main() {
16488
16489 int tz;
16490 tz = _timezone;
16491
16492; return 0; }
16493EOF
16494if { (eval echo configure:16495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16495 rm -rf conftest*
16496
16497 wx_cv_var_timezone=_timezone
16498
16499else
16500 echo "configure: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16502 rm -rf conftest*
16503
16504 cat > conftest.$ac_ext <<EOF
16505#line 16506 "configure"
16506#include "confdefs.h"
16507
16508 #include <time.h>
16509
16510int main() {
16511
16512 int tz;
16513 tz = __timezone;
16514
16515; return 0; }
16516EOF
16517if { (eval echo configure:16518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16518 rm -rf conftest*
16519
16520 wx_cv_var_timezone=__timezone
16521
16522else
16523 echo "configure: failed program was:" >&5
16524 cat conftest.$ac_ext >&5
16525 rm -rf conftest*
16526 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16527
16528fi
16529rm -f conftest*
16530
16531
16532fi
16533rm -f conftest*
16534
16535
16536fi
16537rm -f conftest*
16538
16539
16540fi
16541
16542echo "$ac_t""$wx_cv_var_timezone" 1>&6
16543
16544 cat >> confdefs.h <<EOF
16545#define WX_TIMEZONE $wx_cv_var_timezone
16546EOF
16547
16548
16549 for ac_func in localtime
16550do
16551echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16552echo "configure:16553: checking for $ac_func" >&5
16553if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16554 echo $ac_n "(cached) $ac_c" 1>&6
16555else
16556 cat > conftest.$ac_ext <<EOF
16557#line 16558 "configure"
16558#include "confdefs.h"
16559/* System header to define __stub macros and hopefully few prototypes,
16560 which can conflict with char $ac_func(); below. */
16561#include <assert.h>
16562/* Override any gcc2 internal prototype to avoid an error. */
16563/* We use char because int might match the return type of a gcc2
16564 builtin and then its argument prototype would still apply. */
16565char $ac_func();
16566
16567int main() {
16568
16569/* The GNU C library defines this for functions which it implements
16570 to always fail with ENOSYS. Some functions are actually named
16571 something starting with __ and the normal name is an alias. */
16572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16573choke me
16574#else
16575$ac_func();
16576#endif
16577
16578; return 0; }
16579EOF
16580if { (eval echo configure:16581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16581 rm -rf conftest*
16582 eval "ac_cv_func_$ac_func=yes"
16583else
16584 echo "configure: failed program was:" >&5
16585 cat conftest.$ac_ext >&5
16586 rm -rf conftest*
16587 eval "ac_cv_func_$ac_func=no"
16588fi
16589rm -f conftest*
16590fi
16591
16592if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16593 echo "$ac_t""yes" 1>&6
16594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16595 cat >> confdefs.h <<EOF
16596#define $ac_tr_func 1
16597EOF
16598
16599else
16600 echo "$ac_t""no" 1>&6
16601fi
16602done
16603
16604
16605 if test "$ac_cv_func_localtime" = "yes"; then
16606 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16607echo "configure:16608: checking for tm_gmtoff in struct tm" >&5
16608if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16609 echo $ac_n "(cached) $ac_c" 1>&6
16610else
16611
16612 cat > conftest.$ac_ext <<EOF
16613#line 16614 "configure"
16614#include "confdefs.h"
16615
16616 #include <time.h>
16617
16618int main() {
16619
16620 struct tm tm;
16621 tm.tm_gmtoff++;
16622
16623; return 0; }
16624EOF
16625if { (eval echo configure:16626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16626 rm -rf conftest*
16627
16628 wx_cv_struct_tm_has_gmtoff=yes
16629
16630else
16631 echo "configure: failed program was:" >&5
16632 cat conftest.$ac_ext >&5
16633 rm -rf conftest*
16634 wx_cv_struct_tm_has_gmtoff=no
16635
16636fi
16637rm -f conftest*
16638
16639fi
16640
16641echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16642 fi
16643
16644 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16645 cat >> confdefs.h <<\EOF
16646#define WX_GMTOFF_IN_TM 1
16647EOF
16648
16649 fi
16650
16651 for ac_func in gettimeofday ftime
16652do
16653echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16654echo "configure:16655: checking for $ac_func" >&5
16655if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657else
16658 cat > conftest.$ac_ext <<EOF
16659#line 16660 "configure"
16660#include "confdefs.h"
16661/* System header to define __stub macros and hopefully few prototypes,
16662 which can conflict with char $ac_func(); below. */
16663#include <assert.h>
16664/* Override any gcc2 internal prototype to avoid an error. */
16665/* We use char because int might match the return type of a gcc2
16666 builtin and then its argument prototype would still apply. */
16667char $ac_func();
16668
16669int main() {
16670
16671/* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16675choke me
16676#else
16677$ac_func();
16678#endif
16679
16680; return 0; }
16681EOF
16682if { (eval echo configure:16683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16683 rm -rf conftest*
16684 eval "ac_cv_func_$ac_func=yes"
16685else
16686 echo "configure: failed program was:" >&5
16687 cat conftest.$ac_ext >&5
16688 rm -rf conftest*
16689 eval "ac_cv_func_$ac_func=no"
16690fi
16691rm -f conftest*
16692fi
16693
16694if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16695 echo "$ac_t""yes" 1>&6
16696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16697 cat >> confdefs.h <<EOF
16698#define $ac_tr_func 1
16699EOF
16700 break
16701else
16702 echo "$ac_t""no" 1>&6
16703fi
16704done
16705
16706
16707 if test "$ac_cv_func_gettimeofday" = "yes"; then
16708 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16709echo "configure:16710: checking whether gettimeofday takes two arguments" >&5
16710if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
16712else
16713
16714
16715 ac_ext=C
16716# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16717ac_cpp='$CXXCPP $CPPFLAGS'
16718ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16719ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16720cross_compiling=$ac_cv_prog_cxx_cross
16721
16722
16723 cat > conftest.$ac_ext <<EOF
16724#line 16725 "configure"
16725#include "confdefs.h"
16726
16727 #include <sys/time.h>
16728 #include <unistd.h>
16729
16730int main() {
16731
16732 struct timeval tv;
16733 gettimeofday(&tv, NULL);
16734
16735; return 0; }
16736EOF
16737if { (eval echo configure:16738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16738 rm -rf conftest*
16739 wx_cv_func_gettimeofday_has_2_args=yes
16740else
16741 echo "configure: failed program was:" >&5
16742 cat conftest.$ac_ext >&5
16743 rm -rf conftest*
16744 cat > conftest.$ac_ext <<EOF
16745#line 16746 "configure"
16746#include "confdefs.h"
16747
16748 #include <sys/time.h>
16749 #include <unistd.h>
16750
16751int main() {
16752
16753 struct timeval tv;
16754 gettimeofday(&tv);
16755
16756; return 0; }
16757EOF
16758if { (eval echo configure:16759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16759 rm -rf conftest*
16760 wx_cv_func_gettimeofday_has_2_args=no
16761else
16762 echo "configure: failed program was:" >&5
16763 cat conftest.$ac_ext >&5
16764 rm -rf conftest*
16765
16766 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16767 wx_cv_func_gettimeofday_has_2_args=unknown
16768
16769
16770fi
16771rm -f conftest*
16772
16773fi
16774rm -f conftest*
16775 ac_ext=c
16776# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16777ac_cpp='$CPP $CPPFLAGS'
16778ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16779ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16780cross_compiling=$ac_cv_prog_cc_cross
16781
16782
16783fi
16784
16785echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16786
16787 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16788 cat >> confdefs.h <<\EOF
16789#define WX_GETTIMEOFDAY_NO_TZ 1
16790EOF
16791
16792 fi
16793 fi
16794
16795 cat >> confdefs.h <<\EOF
16796#define wxUSE_TIMEDATE 1
16797EOF
16798
16799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16800fi
16801
16802
16803if test "$TOOLKIT" != "MSW"; then
16804
16805 if test "$wxUSE_SOCKETS" = "yes"; then
16806 echo $ac_n "checking for socket""... $ac_c" 1>&6
16807echo "configure:16808: checking for socket" >&5
16808if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16809 echo $ac_n "(cached) $ac_c" 1>&6
16810else
16811 cat > conftest.$ac_ext <<EOF
16812#line 16813 "configure"
16813#include "confdefs.h"
16814/* System header to define __stub macros and hopefully few prototypes,
16815 which can conflict with char socket(); below. */
16816#include <assert.h>
16817/* Override any gcc2 internal prototype to avoid an error. */
16818/* We use char because int might match the return type of a gcc2
16819 builtin and then its argument prototype would still apply. */
16820char socket();
16821
16822int main() {
16823
16824/* The GNU C library defines this for functions which it implements
16825 to always fail with ENOSYS. Some functions are actually named
16826 something starting with __ and the normal name is an alias. */
16827#if defined (__stub_socket) || defined (__stub___socket)
16828choke me
16829#else
16830socket();
16831#endif
16832
16833; return 0; }
16834EOF
16835if { (eval echo configure:16836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16836 rm -rf conftest*
16837 eval "ac_cv_func_socket=yes"
16838else
16839 echo "configure: failed program was:" >&5
16840 cat conftest.$ac_ext >&5
16841 rm -rf conftest*
16842 eval "ac_cv_func_socket=no"
16843fi
16844rm -f conftest*
16845fi
16846
16847if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16848 echo "$ac_t""yes" 1>&6
16849 :
16850else
16851 echo "$ac_t""no" 1>&6
16852echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16853echo "configure:16854: checking for socket in -lsocket" >&5
16854ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16856 echo $ac_n "(cached) $ac_c" 1>&6
16857else
16858 ac_save_LIBS="$LIBS"
16859LIBS="-lsocket $LIBS"
16860cat > conftest.$ac_ext <<EOF
16861#line 16862 "configure"
16862#include "confdefs.h"
16863/* Override any gcc2 internal prototype to avoid an error. */
16864/* We use char because int might match the return type of a gcc2
16865 builtin and then its argument prototype would still apply. */
16866char socket();
16867
16868int main() {
16869socket()
16870; return 0; }
16871EOF
16872if { (eval echo configure:16873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16873 rm -rf conftest*
16874 eval "ac_cv_lib_$ac_lib_var=yes"
16875else
16876 echo "configure: failed program was:" >&5
16877 cat conftest.$ac_ext >&5
16878 rm -rf conftest*
16879 eval "ac_cv_lib_$ac_lib_var=no"
16880fi
16881rm -f conftest*
16882LIBS="$ac_save_LIBS"
16883
16884fi
16885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16886 echo "$ac_t""yes" 1>&6
16887 INET_LINK="$INET_LINK -lsocket"
16888else
16889 echo "$ac_t""no" 1>&6
16890
16891 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16892 wxUSE_SOCKETS=no
16893
16894
16895fi
16896
16897
16898fi
16899
16900 fi
16901
16902
16903 if test "$wxUSE_SOCKETS" = "yes" ; then
16904 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16905echo "configure:16906: checking what is the type of the third argument of getsockname" >&5
16906if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16907 echo $ac_n "(cached) $ac_c" 1>&6
16908else
16909
16910
16911 ac_ext=C
16912# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16913ac_cpp='$CXXCPP $CPPFLAGS'
16914ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16915ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16916cross_compiling=$ac_cv_prog_cxx_cross
16917
16918
16919 cat > conftest.$ac_ext <<EOF
16920#line 16921 "configure"
16921#include "confdefs.h"
16922
16923 #include <sys/types.h>
16924 #include <sys/socket.h>
16925
16926int main() {
16927
16928 socklen_t len;
16929 getsockname(0, 0, &len);
16930
16931; return 0; }
16932EOF
16933if { (eval echo configure:16934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16934 rm -rf conftest*
16935 wx_cv_type_getsockname3=socklen_t
16936else
16937 echo "configure: failed program was:" >&5
16938 cat conftest.$ac_ext >&5
16939 rm -rf conftest*
16940 cat > conftest.$ac_ext <<EOF
16941#line 16942 "configure"
16942#include "confdefs.h"
16943
16944 #include <sys/types.h>
16945 #include <sys/socket.h>
16946
16947int main() {
16948
16949 size_t len;
16950 getsockname(0, 0, &len);
16951
16952; return 0; }
16953EOF
16954if { (eval echo configure:16955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16955 rm -rf conftest*
16956 wx_cv_type_getsockname3=size_t
16957else
16958 echo "configure: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 rm -rf conftest*
16961 cat > conftest.$ac_ext <<EOF
16962#line 16963 "configure"
16963#include "confdefs.h"
16964
16965 #include <sys/types.h>
16966 #include <sys/socket.h>
16967
16968int main() {
16969
16970 int len;
16971 getsockname(0, 0, &len);
16972
16973; return 0; }
16974EOF
16975if { (eval echo configure:16976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16976 rm -rf conftest*
16977 wx_cv_type_getsockname3=int
16978else
16979 echo "configure: failed program was:" >&5
16980 cat conftest.$ac_ext >&5
16981 rm -rf conftest*
16982 wx_cv_type_getsockname3=unknown
16983
16984fi
16985rm -f conftest*
16986
16987fi
16988rm -f conftest*
16989
16990fi
16991rm -f conftest*
16992
16993 ac_ext=c
16994# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16995ac_cpp='$CPP $CPPFLAGS'
16996ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16997ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16998cross_compiling=$ac_cv_prog_cc_cross
16999
17000
17001fi
17002
17003echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
17004
17005 if test "$wx_cv_type_getsockname3" = "unknown"; then
17006 wxUSE_SOCKETS=no
17007 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17008 else
17009 cat >> confdefs.h <<EOF
17010#define SOCKLEN_T $wx_cv_type_getsockname3
17011EOF
17012
17013 fi
17014 fi
17015fi
17016
17017if test "$wxUSE_SOCKETS" = "yes" ; then
17018 cat >> confdefs.h <<\EOF
17019#define wxUSE_SOCKETS 1
17020EOF
17021
17022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
17023fi
17024
17025
17026if test "$wxUSE_GUI" = "yes"; then
17027
17028 if test "$TOOLKIT" != "MSW"; then
17029 if test "$wxUSE_JOYSTICK" = "yes"; then
17030 for ac_hdr in linux/joystick.h
17031do
17032ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17033echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17034echo "configure:17035: checking for $ac_hdr" >&5
17035if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17036 echo $ac_n "(cached) $ac_c" 1>&6
17037else
17038 cat > conftest.$ac_ext <<EOF
17039#line 17040 "configure"
17040#include "confdefs.h"
17041#include <$ac_hdr>
17042EOF
17043ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17044{ (eval echo configure:17045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17045ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17046if test -z "$ac_err"; then
17047 rm -rf conftest*
17048 eval "ac_cv_header_$ac_safe=yes"
17049else
17050 echo "$ac_err" >&5
17051 echo "configure: failed program was:" >&5
17052 cat conftest.$ac_ext >&5
17053 rm -rf conftest*
17054 eval "ac_cv_header_$ac_safe=no"
17055fi
17056rm -f conftest*
17057fi
17058if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17059 echo "$ac_t""yes" 1>&6
17060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17061 cat >> confdefs.h <<EOF
17062#define $ac_tr_hdr 1
17063EOF
17064
17065else
17066 echo "$ac_t""no" 1>&6
17067fi
17068done
17069
17070 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17071 wxUSE_JOYSTICK=no
17072 echo "configure: warning: Joystick not supported by this system" 1>&2
17073 fi
17074 fi
17075 fi
17076
17077 if test "$wxUSE_JOYSTICK" = "yes"; then
17078 cat >> confdefs.h <<\EOF
17079#define wxUSE_JOYSTICK 1
17080EOF
17081
17082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17083 fi
17084fi
17085
17086
17087if test "$TOOLKIT" != "MSW"; then
17088
17089 HAVE_DL_FUNCS=0
17090 HAVE_SHL_FUNCS=0
17091 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
17092 if test "$USE_DARWIN" = 1; then
17093 HAVE_DL_FUNCS=1
17094 else
17095 for ac_func in dlopen
17096do
17097echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17098echo "configure:17099: checking for $ac_func" >&5
17099if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17100 echo $ac_n "(cached) $ac_c" 1>&6
17101else
17102 cat > conftest.$ac_ext <<EOF
17103#line 17104 "configure"
17104#include "confdefs.h"
17105/* System header to define __stub macros and hopefully few prototypes,
17106 which can conflict with char $ac_func(); below. */
17107#include <assert.h>
17108/* Override any gcc2 internal prototype to avoid an error. */
17109/* We use char because int might match the return type of a gcc2
17110 builtin and then its argument prototype would still apply. */
17111char $ac_func();
17112
17113int main() {
17114
17115/* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17119choke me
17120#else
17121$ac_func();
17122#endif
17123
17124; return 0; }
17125EOF
17126if { (eval echo configure:17127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17127 rm -rf conftest*
17128 eval "ac_cv_func_$ac_func=yes"
17129else
17130 echo "configure: failed program was:" >&5
17131 cat conftest.$ac_ext >&5
17132 rm -rf conftest*
17133 eval "ac_cv_func_$ac_func=no"
17134fi
17135rm -f conftest*
17136fi
17137
17138if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17139 echo "$ac_t""yes" 1>&6
17140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17141 cat >> confdefs.h <<EOF
17142#define $ac_tr_func 1
17143EOF
17144
17145 cat >> confdefs.h <<\EOF
17146#define HAVE_DLOPEN 1
17147EOF
17148
17149 HAVE_DL_FUNCS=1
17150
17151else
17152 echo "$ac_t""no" 1>&6
17153echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17154echo "configure:17155: checking for dlopen in -ldl" >&5
17155ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17156if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17157 echo $ac_n "(cached) $ac_c" 1>&6
17158else
17159 ac_save_LIBS="$LIBS"
17160LIBS="-ldl $LIBS"
17161cat > conftest.$ac_ext <<EOF
17162#line 17163 "configure"
17163#include "confdefs.h"
17164/* Override any gcc2 internal prototype to avoid an error. */
17165/* We use char because int might match the return type of a gcc2
17166 builtin and then its argument prototype would still apply. */
17167char dlopen();
17168
17169int main() {
17170dlopen()
17171; return 0; }
17172EOF
17173if { (eval echo configure:17174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17174 rm -rf conftest*
17175 eval "ac_cv_lib_$ac_lib_var=yes"
17176else
17177 echo "configure: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17179 rm -rf conftest*
17180 eval "ac_cv_lib_$ac_lib_var=no"
17181fi
17182rm -f conftest*
17183LIBS="$ac_save_LIBS"
17184
17185fi
17186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17187 echo "$ac_t""yes" 1>&6
17188
17189 cat >> confdefs.h <<\EOF
17190#define HAVE_DLOPEN 1
17191EOF
17192
17193 HAVE_DL_FUNCS=1
17194 DL_LINK=" -ldl$DL_LINK"
17195
17196else
17197 echo "$ac_t""no" 1>&6
17198
17199 for ac_func in shl_load
17200do
17201echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17202echo "configure:17203: checking for $ac_func" >&5
17203if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17204 echo $ac_n "(cached) $ac_c" 1>&6
17205else
17206 cat > conftest.$ac_ext <<EOF
17207#line 17208 "configure"
17208#include "confdefs.h"
17209/* System header to define __stub macros and hopefully few prototypes,
17210 which can conflict with char $ac_func(); below. */
17211#include <assert.h>
17212/* Override any gcc2 internal prototype to avoid an error. */
17213/* We use char because int might match the return type of a gcc2
17214 builtin and then its argument prototype would still apply. */
17215char $ac_func();
17216
17217int main() {
17218
17219/* The GNU C library defines this for functions which it implements
17220 to always fail with ENOSYS. Some functions are actually named
17221 something starting with __ and the normal name is an alias. */
17222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17223choke me
17224#else
17225$ac_func();
17226#endif
17227
17228; return 0; }
17229EOF
17230if { (eval echo configure:17231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17231 rm -rf conftest*
17232 eval "ac_cv_func_$ac_func=yes"
17233else
17234 echo "configure: failed program was:" >&5
17235 cat conftest.$ac_ext >&5
17236 rm -rf conftest*
17237 eval "ac_cv_func_$ac_func=no"
17238fi
17239rm -f conftest*
17240fi
17241
17242if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17243 echo "$ac_t""yes" 1>&6
17244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17245 cat >> confdefs.h <<EOF
17246#define $ac_tr_func 1
17247EOF
17248
17249 cat >> confdefs.h <<\EOF
17250#define HAVE_SHL_LOAD 1
17251EOF
17252
17253 HAVE_SHL_FUNCS=1
17254
17255else
17256 echo "$ac_t""no" 1>&6
17257echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17258echo "configure:17259: checking for dld in -lshl_load" >&5
17259ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17260if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17261 echo $ac_n "(cached) $ac_c" 1>&6
17262else
17263 ac_save_LIBS="$LIBS"
17264LIBS="-lshl_load $LIBS"
17265cat > conftest.$ac_ext <<EOF
17266#line 17267 "configure"
17267#include "confdefs.h"
17268/* Override any gcc2 internal prototype to avoid an error. */
17269/* We use char because int might match the return type of a gcc2
17270 builtin and then its argument prototype would still apply. */
17271char dld();
17272
17273int main() {
17274dld()
17275; return 0; }
17276EOF
17277if { (eval echo configure:17278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17278 rm -rf conftest*
17279 eval "ac_cv_lib_$ac_lib_var=yes"
17280else
17281 echo "configure: failed program was:" >&5
17282 cat conftest.$ac_ext >&5
17283 rm -rf conftest*
17284 eval "ac_cv_lib_$ac_lib_var=no"
17285fi
17286rm -f conftest*
17287LIBS="$ac_save_LIBS"
17288
17289fi
17290if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17291 echo "$ac_t""yes" 1>&6
17292
17293 HAVE_SHL_FUNCS=1
17294 DL_LINK=" -ldld$DL_LINK"
17295
17296else
17297 echo "$ac_t""no" 1>&6
17298fi
17299
17300
17301fi
17302done
17303
17304
17305fi
17306
17307
17308fi
17309done
17310
17311
17312 if test "$HAVE_DL_FUNCS" = 1; then
17313 for ac_func in dlerror
17314do
17315echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17316echo "configure:17317: checking for $ac_func" >&5
17317if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17318 echo $ac_n "(cached) $ac_c" 1>&6
17319else
17320 cat > conftest.$ac_ext <<EOF
17321#line 17322 "configure"
17322#include "confdefs.h"
17323/* System header to define __stub macros and hopefully few prototypes,
17324 which can conflict with char $ac_func(); below. */
17325#include <assert.h>
17326/* Override any gcc2 internal prototype to avoid an error. */
17327/* We use char because int might match the return type of a gcc2
17328 builtin and then its argument prototype would still apply. */
17329char $ac_func();
17330
17331int main() {
17332
17333/* The GNU C library defines this for functions which it implements
17334 to always fail with ENOSYS. Some functions are actually named
17335 something starting with __ and the normal name is an alias. */
17336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17337choke me
17338#else
17339$ac_func();
17340#endif
17341
17342; return 0; }
17343EOF
17344if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17345 rm -rf conftest*
17346 eval "ac_cv_func_$ac_func=yes"
17347else
17348 echo "configure: failed program was:" >&5
17349 cat conftest.$ac_ext >&5
17350 rm -rf conftest*
17351 eval "ac_cv_func_$ac_func=no"
17352fi
17353rm -f conftest*
17354fi
17355
17356if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17357 echo "$ac_t""yes" 1>&6
17358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17359 cat >> confdefs.h <<EOF
17360#define $ac_tr_func 1
17361EOF
17362 cat >> confdefs.h <<\EOF
17363#define HAVE_DLERROR 1
17364EOF
17365
17366else
17367 echo "$ac_t""no" 1>&6
17368echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17369echo "configure:17370: checking for dlerror in -ldl" >&5
17370ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17371if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17372 echo $ac_n "(cached) $ac_c" 1>&6
17373else
17374 ac_save_LIBS="$LIBS"
17375LIBS="-ldl $LIBS"
17376cat > conftest.$ac_ext <<EOF
17377#line 17378 "configure"
17378#include "confdefs.h"
17379/* Override any gcc2 internal prototype to avoid an error. */
17380/* We use char because int might match the return type of a gcc2
17381 builtin and then its argument prototype would still apply. */
17382char dlerror();
17383
17384int main() {
17385dlerror()
17386; return 0; }
17387EOF
17388if { (eval echo configure:17389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17389 rm -rf conftest*
17390 eval "ac_cv_lib_$ac_lib_var=yes"
17391else
17392 echo "configure: failed program was:" >&5
17393 cat conftest.$ac_ext >&5
17394 rm -rf conftest*
17395 eval "ac_cv_lib_$ac_lib_var=no"
17396fi
17397rm -f conftest*
17398LIBS="$ac_save_LIBS"
17399
17400fi
17401if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17402 echo "$ac_t""yes" 1>&6
17403 cat >> confdefs.h <<\EOF
17404#define HAVE_DLERROR 1
17405EOF
17406
17407else
17408 echo "$ac_t""no" 1>&6
17409fi
17410
17411fi
17412done
17413
17414 fi
17415 fi
17416
17417 if test "$HAVE_DL_FUNCS" = 0; then
17418 if test "$HAVE_SHL_FUNCS" = 0; then
17419 if test "$USE_UNIX" = 1; then
17420 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17421 wxUSE_DYNLIB_CLASS=no
17422 else
17423 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17424 fi
17425 fi
17426 fi
17427 fi
17428fi
17429
17430if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17431 cat >> confdefs.h <<\EOF
17432#define wxUSE_DYNLIB_CLASS 1
17433EOF
17434
17435else
17436 wxUSE_ODBC=no
17437 wxUSE_SERIAL=no
17438fi
17439
17440
17441if test "$wxUSE_FONTMAP" = "yes" ; then
17442 cat >> confdefs.h <<\EOF
17443#define wxUSE_FONTMAP 1
17444EOF
17445
17446fi
17447
17448if test "$wxUSE_UNICODE" = "yes" ; then
17449 cat >> confdefs.h <<\EOF
17450#define wxUSE_UNICODE 1
17451EOF
17452
17453fi
17454
17455if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17456 cat >> confdefs.h <<\EOF
17457#define wxUSE_EXPERIMENTAL_PRINTF 1
17458EOF
17459
17460fi
17461
17462
17463if test "$wxUSE_SERIAL" = "yes" ; then
17464 cat >> confdefs.h <<\EOF
17465#define wxUSE_SERIAL 1
17466EOF
17467
17468fi
17469
17470
17471IODBC_C_SRC=""
17472if test "$wxUSE_ODBC" = "yes" ; then
17473 cat >> confdefs.h <<\EOF
17474#define wxUSE_ODBC 1
17475EOF
17476
17477 WXODBCFLAG="-D_IODBC_"
17478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17479fi
17480
17481
17482if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17483 cat >> confdefs.h <<\EOF
17484#define wxUSE_POSTSCRIPT 1
17485EOF
17486
17487fi
17488
17489cat >> confdefs.h <<\EOF
17490#define wxUSE_AFM_FOR_POSTSCRIPT 1
17491EOF
17492
17493
17494cat >> confdefs.h <<\EOF
17495#define wxUSE_NORMALIZED_PS_FONTS 1
17496EOF
17497
17498
17499
17500if test "$wxUSE_CONSTRAINTS" = "yes"; then
17501 cat >> confdefs.h <<\EOF
17502#define wxUSE_CONSTRAINTS 1
17503EOF
17504
17505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17506fi
17507
17508if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17509 if test "$wxUSE_UNIVERSAL" = "yes"; then
17510 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17511 wxUSE_MDI_ARCHITECTURE=no
17512 fi
17513
17514 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17515 cat >> confdefs.h <<\EOF
17516#define wxUSE_MDI_ARCHITECTURE 1
17517EOF
17518
17519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17520 fi
17521fi
17522
17523if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17524 cat >> confdefs.h <<\EOF
17525#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17526EOF
17527
17528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17529 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17531 fi
17532fi
17533
17534if test "$wxUSE_HELP" = "yes"; then
17535 cat >> confdefs.h <<\EOF
17536#define wxUSE_HELP 1
17537EOF
17538
17539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17540
17541 if test "$wxUSE_MSW" = 1; then
17542 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17543 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17544echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17545echo "configure:17546: checking for htmlhelp.h" >&5
17546if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17547 echo $ac_n "(cached) $ac_c" 1>&6
17548else
17549 cat > conftest.$ac_ext <<EOF
17550#line 17551 "configure"
17551#include "confdefs.h"
17552#include <htmlhelp.h>
17553EOF
17554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17555{ (eval echo configure:17556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17557if test -z "$ac_err"; then
17558 rm -rf conftest*
17559 eval "ac_cv_header_$ac_safe=yes"
17560else
17561 echo "$ac_err" >&5
17562 echo "configure: failed program was:" >&5
17563 cat conftest.$ac_ext >&5
17564 rm -rf conftest*
17565 eval "ac_cv_header_$ac_safe=no"
17566fi
17567rm -f conftest*
17568fi
17569if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17570 echo "$ac_t""yes" 1>&6
17571
17572 cat >> confdefs.h <<\EOF
17573#define wxUSE_MS_HTML_HELP 1
17574EOF
17575
17576
17577else
17578 echo "$ac_t""no" 1>&6
17579
17580 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17581 wxUSE_MS_HTML_HELP=no
17582
17583fi
17584
17585 fi
17586 fi
17587
17588 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17589 if test "$wxUSE_HTML" = "yes"; then
17590 cat >> confdefs.h <<\EOF
17591#define wxUSE_WXHTML_HELP 1
17592EOF
17593
17594 else
17595 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17596 wxUSE_WXHTML_HELP=no
17597 fi
17598 fi
17599fi
17600
17601if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17602 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17603 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17604 else
17605 cat >> confdefs.h <<\EOF
17606#define wxUSE_PRINTING_ARCHITECTURE 1
17607EOF
17608
17609 fi
17610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17611fi
17612
17613if test "$wxUSE_PROLOGIO" = "yes" ; then
17614 cat >> confdefs.h <<\EOF
17615#define wxUSE_PROLOGIO 1
17616EOF
17617
17618fi
17619
17620if test "$wxUSE_RESOURCES" = "yes" ; then
17621 cat >> confdefs.h <<\EOF
17622#define wxUSE_RESOURCES 1
17623EOF
17624
17625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17626fi
17627
17628if test "$wxUSE_X_RESOURCES" = "yes"; then
17629 cat >> confdefs.h <<\EOF
17630#define wxUSE_X_RESOURCES 1
17631EOF
17632
17633fi
17634
17635
17636if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17637 -o "$wxUSE_CLIPBOARD" = "yes" \
17638 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17639 for ac_hdr in ole2.h
17640do
17641ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17642echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17643echo "configure:17644: checking for $ac_hdr" >&5
17644if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17645 echo $ac_n "(cached) $ac_c" 1>&6
17646else
17647 cat > conftest.$ac_ext <<EOF
17648#line 17649 "configure"
17649#include "confdefs.h"
17650#include <$ac_hdr>
17651EOF
17652ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17653{ (eval echo configure:17654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17654ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17655if test -z "$ac_err"; then
17656 rm -rf conftest*
17657 eval "ac_cv_header_$ac_safe=yes"
17658else
17659 echo "$ac_err" >&5
17660 echo "configure: failed program was:" >&5
17661 cat conftest.$ac_ext >&5
17662 rm -rf conftest*
17663 eval "ac_cv_header_$ac_safe=no"
17664fi
17665rm -f conftest*
17666fi
17667if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17668 echo "$ac_t""yes" 1>&6
17669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17670 cat >> confdefs.h <<EOF
17671#define $ac_tr_hdr 1
17672EOF
17673
17674else
17675 echo "$ac_t""no" 1>&6
17676fi
17677done
17678
17679
17680 if test "$ac_cv_header_ole2_h" = "yes" ; then
17681 if test "$GCC" = yes ; then
17682 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17683 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17684 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
17685 cat >> confdefs.h <<\EOF
17686#define wxUSE_OLE 1
17687EOF
17688
17689
17690 fi
17691
17692 cat >> confdefs.h <<\EOF
17693#define wxUSE_DATAOBJ 1
17694EOF
17695
17696 else
17697 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17698
17699 wxUSE_CLIPBOARD=no
17700 wxUSE_DRAG_AND_DROP=no
17701 wxUSE_DATAOBJ=no
17702 fi
17703
17704 if test "$wxUSE_METAFILE" = "yes"; then
17705 cat >> confdefs.h <<\EOF
17706#define wxUSE_METAFILE 1
17707EOF
17708
17709
17710 cat >> confdefs.h <<\EOF
17711#define wxUSE_ENH_METAFILE 1
17712EOF
17713
17714 fi
17715fi
17716
17717if test "$wxUSE_IPC" = "yes"; then
17718 if test "$wxUSE_SOCKETS" != "yes"; then
17719 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17720 fi
17721
17722 cat >> confdefs.h <<\EOF
17723#define wxUSE_IPC 1
17724EOF
17725
17726fi
17727
17728if test "$wxUSE_CLIPBOARD" = "yes"; then
17729 cat >> confdefs.h <<\EOF
17730#define wxUSE_CLIPBOARD 1
17731EOF
17732
17733
17734 cat >> confdefs.h <<\EOF
17735#define wxUSE_DATAOBJ 1
17736EOF
17737
17738fi
17739
17740if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17741 if test "$wxUSE_GTK" = 1; then
17742 if test "$WXGTK12" != 1; then
17743 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17744 wxUSE_DRAG_AND_DROP=no
17745 fi
17746 fi
17747
17748 if test "$wxUSE_MOTIF" = 1; then
17749 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17750 wxUSE_DRAG_AND_DROP=no
17751 fi
17752
17753 if test "$wxUSE_MAC" = 1; then
17754 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17755 wxUSE_DRAG_AND_DROP=no
17756 fi
17757
17758 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17759 cat >> confdefs.h <<\EOF
17760#define wxUSE_DRAG_AND_DROP 1
17761EOF
17762
17763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17764 fi
17765
17766fi
17767
17768if test "$wxUSE_SPLINES" = "yes" ; then
17769 cat >> confdefs.h <<\EOF
17770#define wxUSE_SPLINES 1
17771EOF
17772
17773fi
17774
17775
17776USES_CONTROLS=0
17777if test "$wxUSE_CONTROLS" = "yes"; then
17778 USES_CONTROLS=1
17779fi
17780
17781if test "$wxUSE_ACCEL" = "yes"; then
17782 cat >> confdefs.h <<\EOF
17783#define wxUSE_ACCEL 1
17784EOF
17785
17786 USES_CONTROLS=1
17787fi
17788
17789if test "$wxUSE_BUTTON" = "yes"; then
17790 cat >> confdefs.h <<\EOF
17791#define wxUSE_BUTTON 1
17792EOF
17793
17794 USES_CONTROLS=1
17795fi
17796
17797if test "$wxUSE_BMPBUTTON" = "yes"; then
17798 cat >> confdefs.h <<\EOF
17799#define wxUSE_BMPBUTTON 1
17800EOF
17801
17802 USES_CONTROLS=1
17803fi
17804
17805if test "$wxUSE_CALCTRL" = "yes"; then
17806 cat >> confdefs.h <<\EOF
17807#define wxUSE_CALENDARCTRL 1
17808EOF
17809
17810 USES_CONTROLS=1
17811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17812fi
17813
17814if test "$wxUSE_CARET" = "yes"; then
17815 cat >> confdefs.h <<\EOF
17816#define wxUSE_CARET 1
17817EOF
17818
17819 USES_CONTROLS=1
17820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17821fi
17822
17823if test "$wxUSE_COMBOBOX" = "yes"; then
17824 cat >> confdefs.h <<\EOF
17825#define wxUSE_COMBOBOX 1
17826EOF
17827
17828 USES_CONTROLS=1
17829fi
17830
17831if test "$wxUSE_CHOICE" = "yes"; then
17832 cat >> confdefs.h <<\EOF
17833#define wxUSE_CHOICE 1
17834EOF
17835
17836 USES_CONTROLS=1
17837fi
17838
17839if test "$wxUSE_CHECKBOX" = "yes"; then
17840 cat >> confdefs.h <<\EOF
17841#define wxUSE_CHECKBOX 1
17842EOF
17843
17844 USES_CONTROLS=1
17845fi
17846
17847if test "$wxUSE_CHECKLST" = "yes"; then
17848 cat >> confdefs.h <<\EOF
17849#define wxUSE_CHECKLISTBOX 1
17850EOF
17851
17852 USES_CONTROLS=1
17853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17854fi
17855
17856if test "$wxUSE_GAUGE" = "yes"; then
17857 cat >> confdefs.h <<\EOF
17858#define wxUSE_GAUGE 1
17859EOF
17860
17861 USES_CONTROLS=1
17862fi
17863
17864if test "$wxUSE_NEW_GRID" = "yes"; then
17865 wxUSE_GRID="yes"
17866 cat >> confdefs.h <<\EOF
17867#define wxUSE_NEW_GRID 1
17868EOF
17869
17870 USES_CONTROLS=1
17871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17872fi
17873
17874if test "$wxUSE_GRID" = "yes"; then
17875 cat >> confdefs.h <<\EOF
17876#define wxUSE_GRID 1
17877EOF
17878
17879 USES_CONTROLS=1
17880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17881fi
17882
17883if test "$wxUSE_IMAGLIST" = "yes"; then
17884 cat >> confdefs.h <<\EOF
17885#define wxUSE_IMAGLIST 1
17886EOF
17887
17888fi
17889
17890if test "$wxUSE_LISTBOX" = "yes"; then
17891 cat >> confdefs.h <<\EOF
17892#define wxUSE_LISTBOX 1
17893EOF
17894
17895 USES_CONTROLS=1
17896fi
17897
17898if test "$wxUSE_LISTCTRL" = "yes"; then
17899 if test "$wxUSE_IMAGLIST" = "yes"; then
17900 cat >> confdefs.h <<\EOF
17901#define wxUSE_LISTCTRL 1
17902EOF
17903
17904 USES_CONTROLS=1
17905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17906 else
17907 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17908 fi
17909fi
17910
17911if test "$wxUSE_NOTEBOOK" = "yes"; then
17912 cat >> confdefs.h <<\EOF
17913#define wxUSE_NOTEBOOK 1
17914EOF
17915
17916 USES_CONTROLS=1
17917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17918fi
17919
17920if test "$wxUSE_PROPSHEET" = "yes"; then
17921 cat >> confdefs.h <<\EOF
17922#define wxUSE_PROPSHEET 1
17923EOF
17924
17925 USES_CONTROLS=1
17926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17927fi
17928
17929if test "$wxUSE_RADIOBOX" = "yes"; then
17930 cat >> confdefs.h <<\EOF
17931#define wxUSE_RADIOBOX 1
17932EOF
17933
17934 USES_CONTROLS=1
17935fi
17936
17937if test "$wxUSE_RADIOBTN" = "yes"; then
17938 cat >> confdefs.h <<\EOF
17939#define wxUSE_RADIOBTN 1
17940EOF
17941
17942 USES_CONTROLS=1
17943fi
17944
17945if test "$wxUSE_SASH" = "yes"; then
17946 cat >> confdefs.h <<\EOF
17947#define wxUSE_SASH 1
17948EOF
17949
17950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17951fi
17952
17953if test "$wxUSE_SCROLLBAR" = "yes"; then
17954 cat >> confdefs.h <<\EOF
17955#define wxUSE_SCROLLBAR 1
17956EOF
17957
17958 USES_CONTROLS=1
17959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17960fi
17961
17962if test "$wxUSE_SLIDER" = "yes"; then
17963 cat >> confdefs.h <<\EOF
17964#define wxUSE_SLIDER 1
17965EOF
17966
17967 USES_CONTROLS=1
17968fi
17969
17970if test "$wxUSE_SPINBTN" = "yes"; then
17971 cat >> confdefs.h <<\EOF
17972#define wxUSE_SPINBTN 1
17973EOF
17974
17975 USES_CONTROLS=1
17976fi
17977
17978if test "$wxUSE_SPINCTRL" = "yes"; then
17979 cat >> confdefs.h <<\EOF
17980#define wxUSE_SPINCTRL 1
17981EOF
17982
17983 USES_CONTROLS=1
17984fi
17985
17986if test "$wxUSE_SPLITTER" = "yes"; then
17987 cat >> confdefs.h <<\EOF
17988#define wxUSE_SPLITTER 1
17989EOF
17990
17991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17992fi
17993
17994if test "$wxUSE_STATBMP" = "yes"; then
17995 cat >> confdefs.h <<\EOF
17996#define wxUSE_STATBMP 1
17997EOF
17998
17999 USES_CONTROLS=1
18000fi
18001
18002if test "$wxUSE_STATBOX" = "yes"; then
18003 cat >> confdefs.h <<\EOF
18004#define wxUSE_STATBOX 1
18005EOF
18006
18007 USES_CONTROLS=1
18008fi
18009
18010if test "$wxUSE_STATTEXT" = "yes"; then
18011 cat >> confdefs.h <<\EOF
18012#define wxUSE_STATTEXT 1
18013EOF
18014
18015 USES_CONTROLS=1
18016fi
18017
18018if test "$wxUSE_STATLINE" = "yes"; then
18019 if test "$wxUSE_WINE" = 1 ; then
18020 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
18021 else
18022 cat >> confdefs.h <<\EOF
18023#define wxUSE_STATLINE 1
18024EOF
18025
18026 USES_CONTROLS=1
18027 fi
18028fi
18029
18030if test "$wxUSE_STATUSBAR" = "yes"; then
18031 cat >> confdefs.h <<\EOF
18032#define wxUSE_STATUSBAR 1
18033EOF
18034
18035 USES_CONTROLS=1
18036
18037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
18038fi
18039
18040if test "$wxUSE_TABDIALOG" = "yes"; then
18041 cat >> confdefs.h <<\EOF
18042#define wxUSE_TAB_DIALOG 1
18043EOF
18044
18045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18046fi
18047
18048if test "$wxUSE_TEXTCTRL" = "yes"; then
18049 cat >> confdefs.h <<\EOF
18050#define wxUSE_TEXTCTRL 1
18051EOF
18052
18053 USES_CONTROLS=1
18054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18055fi
18056
18057if test "$wxUSE_TOGGLEBTN" = "yes"; then
18058 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
18059 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
18060 wxUSE_TOGGLEBTN=no
18061 fi
18062
18063 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18064 cat >> confdefs.h <<\EOF
18065#define wxUSE_TOGGLEBTN 1
18066EOF
18067
18068 USES_CONTROLS=1
18069 fi
18070fi
18071
18072if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
18073 cat >> confdefs.h <<\EOF
18074#define wxUSE_TOOLBAR_SIMPLE 1
18075EOF
18076
18077 wxUSE_TOOLBAR="yes"
18078 USES_CONTROLS=1
18079fi
18080
18081if test "$wxUSE_TOOLBAR" = "yes"; then
18082 cat >> confdefs.h <<\EOF
18083#define wxUSE_TOOLBAR 1
18084EOF
18085
18086 USES_CONTROLS=1
18087
18088 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18089 wxUSE_TOOLBAR_NATIVE="yes"
18090 fi
18091
18092 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18093 cat >> confdefs.h <<\EOF
18094#define wxUSE_TOOLBAR_NATIVE 1
18095EOF
18096
18097 USES_CONTROLS=1
18098 fi
18099
18100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
18101fi
18102
18103if test "$wxUSE_TOOLTIPS" = "yes"; then
18104 if test "$wxUSE_MOTIF" = 1; then
18105 echo "configure: warning: wxTooltip not supported yet under Motif ... disabled" 1>&2
18106 else
18107 if test "$wxUSE_WINE" = 1; then
18108 echo "configure: warning: wxTooltip not supported under WINE ... disabled" 1>&2
18109 else
18110 if test "$wxUSE_UNIVERSAL" = "yes"; then
18111 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL ... disabled" 1>&2
18112 else
18113 cat >> confdefs.h <<\EOF
18114#define wxUSE_TOOLTIPS 1
18115EOF
18116
18117 fi
18118 fi
18119 fi
18120fi
18121
18122if test "$wxUSE_TREECTRL" = "yes"; then
18123 if test "$wxUSE_IMAGLIST" = "yes"; then
18124 cat >> confdefs.h <<\EOF
18125#define wxUSE_TREECTRL 1
18126EOF
18127
18128 USES_CONTROLS=1
18129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18130 else
18131 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
18132 fi
18133fi
18134
18135if test "$wxUSE_POPUPWIN" = "yes"; then
18136 if test "$wxUSE_MAC" = 1; then
18137 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
18138 else
18139 cat >> confdefs.h <<\EOF
18140#define wxUSE_POPUPWIN 1
18141EOF
18142
18143 USES_CONTROLS=1
18144 fi
18145fi
18146
18147if test "$USES_CONTROLS" = 1; then
18148 cat >> confdefs.h <<\EOF
18149#define wxUSE_CONTROLS 1
18150EOF
18151
18152fi
18153
18154
18155if test "$wxUSE_TREELAYOUT" = "yes"; then
18156 cat >> confdefs.h <<\EOF
18157#define wxUSE_TREELAYOUT 1
18158EOF
18159
18160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18161fi
18162
18163if test "$wxUSE_DRAGIMAGE" = "yes"; then
18164 cat >> confdefs.h <<\EOF
18165#define wxUSE_DRAGIMAGE 1
18166EOF
18167
18168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18169fi
18170
18171if test "$wxUSE_MENUS" = "yes"; then
18172 cat >> confdefs.h <<\EOF
18173#define wxUSE_MENUS 1
18174EOF
18175
18176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18177fi
18178
18179if test "$wxUSE_METAFILE" = "yes"; then
18180 cat >> confdefs.h <<\EOF
18181#define wxUSE_METAFILE 1
18182EOF
18183
18184fi
18185
18186if test "$wxUSE_MIMETYPE" = "yes"; then
18187 cat >> confdefs.h <<\EOF
18188#define wxUSE_MIMETYPE 1
18189EOF
18190
18191fi
18192
18193if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18194 cat >> confdefs.h <<\EOF
18195#define wxUSE_SYSTEM_OPTIONS 1
18196EOF
18197
18198fi
18199
18200if test "$wxUSE_MINIFRAME" = "yes"; then
18201 cat >> confdefs.h <<\EOF
18202#define wxUSE_MINIFRAME 1
18203EOF
18204
18205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18206fi
18207
18208if test "$wxUSE_HTML" = "yes"; then
18209 cat >> confdefs.h <<\EOF
18210#define wxUSE_HTML 1
18211EOF
18212
18213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18214fi
18215
18216if test "$wxUSE_VALIDATORS" = "yes"; then
18217 cat >> confdefs.h <<\EOF
18218#define wxUSE_VALIDATORS 1
18219EOF
18220
18221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18222fi
18223
18224if test "$wxUSE_PALETTE" = "yes" ; then
18225 cat >> confdefs.h <<\EOF
18226#define wxUSE_PALETTE 1
18227EOF
18228
18229fi
18230
18231if test "$wxUSE_IMAGE" = "yes" ; then
18232 cat >> confdefs.h <<\EOF
18233#define wxUSE_IMAGE 1
18234EOF
18235
18236fi
18237
18238if test "$wxUSE_GIF" = "yes" ; then
18239 cat >> confdefs.h <<\EOF
18240#define wxUSE_GIF 1
18241EOF
18242
18243fi
18244
18245if test "$wxUSE_PCX" = "yes" ; then
18246 cat >> confdefs.h <<\EOF
18247#define wxUSE_PCX 1
18248EOF
18249
18250fi
18251
18252if test "$wxUSE_PNM" = "yes" ; then
18253 cat >> confdefs.h <<\EOF
18254#define wxUSE_PNM 1
18255EOF
18256
18257fi
18258
18259if test "$wxUSE_XPM" = "yes" ; then
18260 cat >> confdefs.h <<\EOF
18261#define wxUSE_XPM 1
18262EOF
18263
18264fi
18265
18266
18267if test "$wxUSE_CHOICEDLG" = "yes"; then
18268 cat >> confdefs.h <<\EOF
18269#define wxUSE_CHOICEDLG 1
18270EOF
18271
18272fi
18273
18274if test "$wxUSE_COLOURDLG" = "yes"; then
18275 cat >> confdefs.h <<\EOF
18276#define wxUSE_COLOURDLG 1
18277EOF
18278
18279fi
18280
18281if test "$wxUSE_FILEDLG" = "yes"; then
18282 cat >> confdefs.h <<\EOF
18283#define wxUSE_FILEDLG 1
18284EOF
18285
18286fi
18287
18288if test "$wxUSE_FINDREPLDLG" = "yes"; then
18289 cat >> confdefs.h <<\EOF
18290#define wxUSE_FINDREPLDLG 1
18291EOF
18292
18293fi
18294
18295if test "$wxUSE_FONTDLG" = "yes"; then
18296 cat >> confdefs.h <<\EOF
18297#define wxUSE_FONTDLG 1
18298EOF
18299
18300fi
18301
18302if test "$wxUSE_DIRDLG" = "yes"; then
18303 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18304 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18305 else
18306 if test "$wxUSE_TREECTRL" != "yes"; then
18307 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18308 else
18309 cat >> confdefs.h <<\EOF
18310#define wxUSE_DIRDLG 1
18311EOF
18312
18313 fi
18314 fi
18315fi
18316
18317if test "$wxUSE_MSGDLG" = "yes"; then
18318 cat >> confdefs.h <<\EOF
18319#define wxUSE_MSGDLG 1
18320EOF
18321
18322fi
18323
18324if test "$wxUSE_NUMBERDLG" = "yes"; then
18325 cat >> confdefs.h <<\EOF
18326#define wxUSE_NUMBERDLG 1
18327EOF
18328
18329fi
18330
18331if test "$wxUSE_PROGRESSDLG" = "yes"; then
18332 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18333 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18334 else
18335 cat >> confdefs.h <<\EOF
18336#define wxUSE_PROGRESSDLG 1
18337EOF
18338
18339 fi
18340fi
18341
18342if test "$wxUSE_SPLASH" = "yes"; then
18343 cat >> confdefs.h <<\EOF
18344#define wxUSE_SPLASH 1
18345EOF
18346
18347fi
18348
18349if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18350 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18351 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18352 else
18353 cat >> confdefs.h <<\EOF
18354#define wxUSE_STARTUP_TIPS 1
18355EOF
18356
18357 fi
18358fi
18359
18360if test "$wxUSE_TEXTDLG" = "yes"; then
18361 cat >> confdefs.h <<\EOF
18362#define wxUSE_TEXTDLG 1
18363EOF
18364
18365fi
18366
18367if test "$wxUSE_WIZARDDLG" = "yes"; then
18368 cat >> confdefs.h <<\EOF
18369#define wxUSE_WIZARDDLG 1
18370EOF
18371
18372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18373fi
18374
18375
18376if test "$cross_compiling" = "yes"; then
18377 OSINFO="\"$host\""
18378else
18379 OSINFO=`uname -s -r -m`
18380 OSINFO="\"$OSINFO\""
18381fi
18382
18383cat >> confdefs.h <<EOF
18384#define WXWIN_OS_DESCRIPTION $OSINFO
18385EOF
18386
18387
18388
18389if test "x$prefix" != "xNONE"; then
18390 wxPREFIX=$prefix
18391else
18392 wxPREFIX=$ac_default_prefix
18393fi
18394
18395cat >> confdefs.h <<EOF
18396#define wxINSTALL_PREFIX "$wxPREFIX"
18397EOF
18398
18399
18400
18401
18402
18403if test "$wxUSE_MAC" = 1 ; then
18404 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
18405fi
18406
18407
18408LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18409
18410if test "$wxUSE_GUI" = "yes"; then
18411
18412 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
18413
18414
18415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18416 drawing dynamic erase event exec font image \
18417 minimal richedit rotate widgets"
18418
18419 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18420else
18421 SAMPLES_SUBDIRS="console"
18422fi
18423
18424
18425INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18426$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18427$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18428
18429if test "$wxUSE_GTK" = 1; then
18430 WXCONFIG_INCLUDE=
18431else
18432 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18433fi
18434
18435if test "$GXX" = yes ; then
18436 CXXWARNINGS="-Wall"
18437
18438 if test "$wxUSE_NO_DEPS" = "no" ; then
18439 CFLAGS="-MMD $CFLAGS"
18440 CXXFLAGS="-MMD $CXXFLAGS"
18441 fi
18442fi
18443
18444EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
18445
18446CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18447CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18448
18449LDFLAGS="$LDFLAGS$PROFILE"
18450
18451SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18540echo "configure:18541: checking whether ${MAKE-make} sets \${MAKE}" >&5
18541set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18542if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18543 echo $ac_n "(cached) $ac_c" 1>&6
18544else
18545 cat > conftestmake <<\EOF
18546all:
18547 @echo 'ac_maketemp="${MAKE}"'
18548EOF
18549# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18550eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18551if test -n "$ac_maketemp"; then
18552 eval ac_cv_prog_make_${ac_make}_set=yes
18553else
18554 eval ac_cv_prog_make_${ac_make}_set=no
18555fi
18556rm -f conftestmake
18557fi
18558if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18559 echo "$ac_t""yes" 1>&6
18560 SET_MAKE=
18561else
18562 echo "$ac_t""no" 1>&6
18563 SET_MAKE="MAKE=${MAKE-make}"
18564fi
18565
18566
18567if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18568 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18569fi
18570
18571
18572
18573if test "$wxUSE_GUI" = "yes"; then
18574 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18575 wx_cv_path_ifs=$PATH_IFS
18576 wx_cv_program_ext=$PROGRAM_EXT
18577 wx_cv_target_library=$WX_TARGET_LIBRARY
18578 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18579 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18580 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18581 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18582 subdirs="demos samples utils contrib"
18583
18584fi
18585
18586trap '' 1 2 15
18587cat > confcache <<\EOF
18588# This file is a shell script that caches the results of configure
18589# tests run on this system so they can be shared between configure
18590# scripts and configure runs. It is not useful on other systems.
18591# If it contains results you don't want to keep, you may remove or edit it.
18592#
18593# By default, configure uses ./config.cache as the cache file,
18594# creating it if it does not exist already. You can give configure
18595# the --cache-file=FILE option to use a different cache file; that is
18596# what configure does when it calls configure scripts in
18597# subdirectories, so they share the cache.
18598# Giving --cache-file=/dev/null disables caching, for debugging configure.
18599# config.status only pays attention to the cache file if you give it the
18600# --recheck option to rerun configure.
18601#
18602EOF
18603# The following way of writing the cache mishandles newlines in values,
18604# but we know of no workaround that is simple, portable, and efficient.
18605# So, don't put newlines in cache variables' values.
18606# Ultrix sh set writes to stderr and can't be redirected directly,
18607# and sets the high bit in the cache file unless we assign to the vars.
18608(set) 2>&1 |
18609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18610 *ac_space=\ *)
18611 # `set' does not quote correctly, so add quotes (double-quote substitution
18612 # turns \\\\ into \\, and sed turns \\ into \).
18613 sed -n \
18614 -e "s/'/'\\\\''/g" \
18615 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18616 ;;
18617 *)
18618 # `set' quotes correctly as required by POSIX, so do not add quotes.
18619 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18620 ;;
18621 esac >> confcache
18622if cmp -s $cache_file confcache; then
18623 :
18624else
18625 if test -w $cache_file; then
18626 echo "updating cache $cache_file"
18627 cat confcache > $cache_file
18628 else
18629 echo "not updating unwritable cache $cache_file"
18630 fi
18631fi
18632rm -f confcache
18633
18634trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18635
18636test "x$prefix" = xNONE && prefix=$ac_default_prefix
18637# Let make expand exec_prefix.
18638test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18639
18640# Any assignment to VPATH causes Sun make to only execute
18641# the first set of double-colon rules, so remove it if not needed.
18642# If there is a colon in the path, we need to keep it.
18643if test "x$srcdir" = x.; then
18644 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18645fi
18646
18647trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18648
18649DEFS=-DHAVE_CONFIG_H
18650
18651# Without the "./", some shells look in PATH for config.status.
18652: ${CONFIG_STATUS=./config.status}
18653
18654echo creating $CONFIG_STATUS
18655rm -f $CONFIG_STATUS
18656cat > $CONFIG_STATUS <<EOF
18657#! /bin/sh
18658# Generated automatically by configure.
18659# Run this file to recreate the current configuration.
18660# This directory was configured as follows,
18661# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18662#
18663# $0 $ac_configure_args
18664#
18665# Compiler output produced by configure, useful for debugging
18666# configure, is in ./config.log if it exists.
18667
18668ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18669for ac_option
18670do
18671 case "\$ac_option" in
18672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18673 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18674 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18675 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18676 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18677 exit 0 ;;
18678 -help | --help | --hel | --he | --h)
18679 echo "\$ac_cs_usage"; exit 0 ;;
18680 *) echo "\$ac_cs_usage"; exit 1 ;;
18681 esac
18682done
18683
18684ac_given_srcdir=$srcdir
18685ac_given_INSTALL="$INSTALL"
18686
18687trap 'rm -fr `echo "
18688 wx-config
18689 src/make.env
18690 src/makeprog.env
18691 src/makelib.env
18692 Makefile
18693 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18694EOF
18695cat >> $CONFIG_STATUS <<EOF
18696
18697# Protect against being on the right side of a sed subst in config.status.
18698sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18699 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18700$ac_vpsub
18701$extrasub
18702s%@SHELL@%$SHELL%g
18703s%@CFLAGS@%$CFLAGS%g
18704s%@CPPFLAGS@%$CPPFLAGS%g
18705s%@CXXFLAGS@%$CXXFLAGS%g
18706s%@FFLAGS@%$FFLAGS%g
18707s%@DEFS@%$DEFS%g
18708s%@LDFLAGS@%$LDFLAGS%g
18709s%@LIBS@%$LIBS%g
18710s%@exec_prefix@%$exec_prefix%g
18711s%@prefix@%$prefix%g
18712s%@program_transform_name@%$program_transform_name%g
18713s%@bindir@%$bindir%g
18714s%@sbindir@%$sbindir%g
18715s%@libexecdir@%$libexecdir%g
18716s%@datadir@%$datadir%g
18717s%@sysconfdir@%$sysconfdir%g
18718s%@sharedstatedir@%$sharedstatedir%g
18719s%@localstatedir@%$localstatedir%g
18720s%@libdir@%$libdir%g
18721s%@includedir@%$includedir%g
18722s%@oldincludedir@%$oldincludedir%g
18723s%@infodir@%$infodir%g
18724s%@mandir@%$mandir%g
18725s%@host@%$host%g
18726s%@host_alias@%$host_alias%g
18727s%@host_cpu@%$host_cpu%g
18728s%@host_vendor@%$host_vendor%g
18729s%@host_os@%$host_os%g
18730s%@target@%$target%g
18731s%@target_alias@%$target_alias%g
18732s%@target_cpu@%$target_cpu%g
18733s%@target_vendor@%$target_vendor%g
18734s%@target_os@%$target_os%g
18735s%@build@%$build%g
18736s%@build_alias@%$build_alias%g
18737s%@build_cpu@%$build_cpu%g
18738s%@build_vendor@%$build_vendor%g
18739s%@build_os@%$build_os%g
18740s%@CC@%$CC%g
18741s%@CPP@%$CPP%g
18742s%@CXX@%$CXX%g
18743s%@RANLIB@%$RANLIB%g
18744s%@AR@%$AR%g
18745s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18746s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18747s%@INSTALL_DATA@%$INSTALL_DATA%g
18748s%@STRIP@%$STRIP%g
18749s%@YACC@%$YACC%g
18750s%@LEX@%$LEX%g
18751s%@LEXLIB@%$LEXLIB%g
18752s%@LN_S@%$LN_S%g
18753s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18754s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18755s%@GTK_LIBS@%$GTK_LIBS%g
18756s%@GTK_CONFIG@%$GTK_CONFIG%g
18757s%@X_CFLAGS@%$X_CFLAGS%g
18758s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18759s%@X_LIBS@%$X_LIBS%g
18760s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18761s%@RESCOMP@%$RESCOMP%g
18762s%@DEREZ@%$DEREZ%g
18763s%@CXXCPP@%$CXXCPP%g
18764s%@LEX_STEM@%$LEX_STEM%g
18765s%@PATH_IFS@%$PATH_IFS%g
18766s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18767s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18768s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18769s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18770s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18771s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
18772s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18773s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18774s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18775s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18776s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18777s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18778s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18779s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18780s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18781s%@WX_ALL@%$WX_ALL%g
18782s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18783s%@SHARED_LD@%$SHARED_LD%g
18784s%@PIC_FLAG@%$PIC_FLAG%g
18785s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18786s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18787s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18788s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18789s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18790s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18791s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18792s%@USE_GUI@%$USE_GUI%g
18793s%@AFMINSTALL@%$AFMINSTALL%g
18794s%@TOOLKIT@%$TOOLKIT%g
18795s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18796s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18797s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18798s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18799s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
18800s%@cross_compiling@%$cross_compiling%g
18801s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18802s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18803s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
18804s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
18805s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18806s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18807s%@GUIDIST@%$GUIDIST%g
18808s%@PORT_FILES@%$PORT_FILES%g
18809s%@DISTDIR@%$DISTDIR%g
18810s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18811s%@LDFLAGS_GL@%$LDFLAGS_GL%g
18812s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18813s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
18814s%@EXTRADEFS@%$EXTRADEFS%g
18815s%@RESFLAGS@%$RESFLAGS%g
18816s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18817s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18818s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
18819s%@LIBWXMACRES@%$LIBWXMACRES%g
18820s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18821s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
18822s%@DLLTOOL@%$DLLTOOL%g
18823s%@AS@%$AS%g
18824s%@NM@%$NM%g
18825s%@LD@%$LD%g
18826s%@MAKEINFO@%$MAKEINFO%g
18827s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
18828s%@SET_MAKE@%$SET_MAKE%g
18829s%@subdirs@%$subdirs%g
18830
18831CEOF
18832EOF
18833
18834cat >> $CONFIG_STATUS <<\EOF
18835
18836# Split the substitutions into bite-sized pieces for seds with
18837# small command number limits, like on Digital OSF/1 and HP-UX.
18838ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18839ac_file=1 # Number of current file.
18840ac_beg=1 # First line for current file.
18841ac_end=$ac_max_sed_cmds # Line after last line for current file.
18842ac_more_lines=:
18843ac_sed_cmds=""
18844while $ac_more_lines; do
18845 if test $ac_beg -gt 1; then
18846 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18847 else
18848 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18849 fi
18850 if test ! -s conftest.s$ac_file; then
18851 ac_more_lines=false
18852 rm -f conftest.s$ac_file
18853 else
18854 if test -z "$ac_sed_cmds"; then
18855 ac_sed_cmds="sed -f conftest.s$ac_file"
18856 else
18857 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18858 fi
18859 ac_file=`expr $ac_file + 1`
18860 ac_beg=$ac_end
18861 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18862 fi
18863done
18864if test -z "$ac_sed_cmds"; then
18865 ac_sed_cmds=cat
18866fi
18867EOF
18868
18869cat >> $CONFIG_STATUS <<EOF
18870
18871CONFIG_FILES=\${CONFIG_FILES-"wx-config
18872 src/make.env
18873 src/makeprog.env
18874 src/makelib.env
18875 Makefile
18876 "}
18877EOF
18878cat >> $CONFIG_STATUS <<\EOF
18879for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18881 case "$ac_file" in
18882 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18883 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18884 *) ac_file_in="${ac_file}.in" ;;
18885 esac
18886
18887 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18888
18889 # Remove last slash and all that follows it. Not all systems have dirname.
18890 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18891 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18892 # The file is in a subdirectory.
18893 test ! -d "$ac_dir" && mkdir "$ac_dir"
18894 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18895 # A "../" for each directory in $ac_dir_suffix.
18896 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18897 else
18898 ac_dir_suffix= ac_dots=
18899 fi
18900
18901 case "$ac_given_srcdir" in
18902 .) srcdir=.
18903 if test -z "$ac_dots"; then top_srcdir=.
18904 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18905 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18906 *) # Relative path.
18907 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18908 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18909 esac
18910
18911 case "$ac_given_INSTALL" in
18912 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18913 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18914 esac
18915
18916 echo creating "$ac_file"
18917 rm -f "$ac_file"
18918 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18919 case "$ac_file" in
18920 *Makefile*) ac_comsub="1i\\
18921# $configure_input" ;;
18922 *) ac_comsub= ;;
18923 esac
18924
18925 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18926 sed -e "$ac_comsub
18927s%@configure_input@%$configure_input%g
18928s%@srcdir@%$srcdir%g
18929s%@top_srcdir@%$top_srcdir%g
18930s%@INSTALL@%$INSTALL%g
18931" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18932fi; done
18933rm -f conftest.s*
18934
18935# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18936# NAME is the cpp macro being defined and VALUE is the value it is being given.
18937#
18938# ac_d sets the value in "#define NAME VALUE" lines.
18939ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18940ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18941ac_dC='\3'
18942ac_dD='%g'
18943# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18944ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18945ac_uB='\([ ]\)%\1#\2define\3'
18946ac_uC=' '
18947ac_uD='\4%g'
18948# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18949ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18950ac_eB='$%\1#\2define\3'
18951ac_eC=' '
18952ac_eD='%g'
18953
18954if test "${CONFIG_HEADERS+set}" != set; then
18955EOF
18956cat >> $CONFIG_STATUS <<EOF
18957 CONFIG_HEADERS="setup.h:setup.h.in"
18958EOF
18959cat >> $CONFIG_STATUS <<\EOF
18960fi
18961for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18962 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18963 case "$ac_file" in
18964 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18965 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18966 *) ac_file_in="${ac_file}.in" ;;
18967 esac
18968
18969 echo creating $ac_file
18970
18971 rm -f conftest.frag conftest.in conftest.out
18972 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18973 cat $ac_file_inputs > conftest.in
18974
18975EOF
18976
18977# Transform confdefs.h into a sed script conftest.vals that substitutes
18978# the proper values into config.h.in to produce config.h. And first:
18979# Protect against being on the right side of a sed subst in config.status.
18980# Protect against being in an unquoted here document in config.status.
18981rm -f conftest.vals
18982cat > conftest.hdr <<\EOF
18983s/[\\&%]/\\&/g
18984s%[\\$`]%\\&%g
18985s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18986s%ac_d%ac_u%gp
18987s%ac_u%ac_e%gp
18988EOF
18989sed -n -f conftest.hdr confdefs.h > conftest.vals
18990rm -f conftest.hdr
18991
18992# This sed command replaces #undef with comments. This is necessary, for
18993# example, in the case of _POSIX_SOURCE, which is predefined and required
18994# on some systems where configure will not decide to define it.
18995cat >> conftest.vals <<\EOF
18996s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18997EOF
18998
18999# Break up conftest.vals because some shells have a limit on
19000# the size of here documents, and old seds have small limits too.
19001
19002rm -f conftest.tail
19003while :
19004do
19005 ac_lines=`grep -c . conftest.vals`
19006 # grep -c gives empty output for an empty file on some AIX systems.
19007 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19008 # Write a limited-size here document to conftest.frag.
19009 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19010 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19011 echo 'CEOF
19012 sed -f conftest.frag conftest.in > conftest.out
19013 rm -f conftest.in
19014 mv conftest.out conftest.in
19015' >> $CONFIG_STATUS
19016 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19017 rm -f conftest.vals
19018 mv conftest.tail conftest.vals
19019done
19020rm -f conftest.vals
19021
19022cat >> $CONFIG_STATUS <<\EOF
19023 rm -f conftest.frag conftest.h
19024 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19025 cat conftest.in >> conftest.h
19026 rm -f conftest.in
19027 if cmp -s $ac_file conftest.h 2>/dev/null; then
19028 echo "$ac_file is unchanged"
19029 rm -f conftest.h
19030 else
19031 # Remove last slash and all that follows it. Not all systems have dirname.
19032 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19033 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19034 # The file is in a subdirectory.
19035 test ! -d "$ac_dir" && mkdir "$ac_dir"
19036 fi
19037 rm -f $ac_file
19038 mv conftest.h $ac_file
19039 fi
19040fi; done
19041
19042EOF
19043cat >> $CONFIG_STATUS <<EOF
19044
19045 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
19046 LN_S="${LN_S}"
19047
19048
19049EOF
19050cat >> $CONFIG_STATUS <<\EOF
19051
19052 if test ! -h wx-config; then
19053 chmod +x wx-config
19054 mv wx-config wx${TOOLCHAIN_NAME}-config
19055 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
19056 fi
19057
19058 if test ! -d lib; then
19059 mkdir lib
19060 fi
19061 if test ! -d lib/wx; then
19062 mkdir lib/wx
19063 fi
19064 if test ! -d lib/wx/include; then
19065 mkdir lib/wx/include
19066 fi
19067 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19068 mkdir lib/wx/include/${TOOLCHAIN_NAME}
19069 fi
19070 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19071 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
19072 fi
19073 if test -f setup.h; then
19074 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
19075 fi
19076
19077exit 0
19078EOF
19079chmod +x $CONFIG_STATUS
19080rm -fr confdefs* $ac_clean_files
19081test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19082
19083if test "$no_recursion" != yes; then
19084
19085 # Remove --cache-file and --srcdir arguments so they do not pile up.
19086 ac_sub_configure_args=
19087 ac_prev=
19088 for ac_arg in $ac_configure_args; do
19089 if test -n "$ac_prev"; then
19090 ac_prev=
19091 continue
19092 fi
19093 case "$ac_arg" in
19094 -cache-file | --cache-file | --cache-fil | --cache-fi \
19095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19096 ac_prev=cache_file ;;
19097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
19099 ;;
19100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19101 ac_prev=srcdir ;;
19102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19103 ;;
19104 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19105 esac
19106 done
19107
19108 for ac_config_dir in demos samples utils contrib; do
19109
19110 # Do not complain, so a configure script can configure whichever
19111 # parts of a large source tree are present.
19112 if test ! -d $srcdir/$ac_config_dir; then
19113 continue
19114 fi
19115
19116 echo configuring in $ac_config_dir
19117
19118 case "$srcdir" in
19119 .) ;;
19120 *)
19121 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19122 else
19123 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19124 fi
19125 ;;
19126 esac
19127
19128 ac_popdir=`pwd`
19129 cd $ac_config_dir
19130
19131 # A "../" for each directory in /$ac_config_dir.
19132 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
19133
19134 case "$srcdir" in
19135 .) # No --srcdir option. We are building in place.
19136 ac_sub_srcdir=$srcdir ;;
19137 /*) # Absolute path.
19138 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
19139 *) # Relative path.
19140 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
19141 esac
19142
19143 # Check for guested configure; otherwise get Cygnus style configure.
19144 if test -f $ac_sub_srcdir/configure; then
19145 ac_sub_configure=$ac_sub_srcdir/configure
19146 elif test -f $ac_sub_srcdir/configure.in; then
19147 ac_sub_configure=$ac_configure
19148 else
19149 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19150 ac_sub_configure=
19151 fi
19152
19153 # The recursion is here.
19154 if test -n "$ac_sub_configure"; then
19155
19156 # Make the cache file name correct relative to the subdirectory.
19157 case "$cache_file" in
19158 /*) ac_sub_cache_file=$cache_file ;;
19159 *) # Relative path.
19160 ac_sub_cache_file="$ac_dots$cache_file" ;;
19161 esac
19162 case "$ac_given_INSTALL" in
19163 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19164 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19165 esac
19166
19167 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19168 # The eval makes quoting arguments work.
19169 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19170 then :
19171 else
19172 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19173 fi
19174 fi
19175
19176 cd $ac_popdir
19177 done
19178fi
19179
19180