]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
submenu preparation in two methods encapsulated
[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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62# Configure paths for GTK+
63# Owen Taylor 1997-2001
64
65
66
67# Configure paths for GTK+
68# Owen Taylor 97-11-3
69
70
71
72
73
74
75
76
77# Guess values for system-dependent variables and create Makefiles.
78# Generated automatically using autoconf version 2.13
79# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80#
81# This configure script is free software; the Free Software Foundation
82# gives unlimited permission to copy, distribute and modify it.
83
84# Defaults:
85ac_help=
86ac_default_prefix=/usr/local
87# Any additions from configure.in:
88ac_help="$ac_help
89 --enable-gui use GUI classes"
90ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92ac_help="$ac_help
93 --with-gtk use GTK+"
94ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96ac_help="$ac_help
97 --with-mac use Mac OS X"
98ac_help="$ac_help
99 --with-wine use Wine"
100ac_help="$ac_help
101 --with-msw use MS-Windows"
102ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106ac_help="$ac_help
107 --with-microwin use MicroWindows"
108ac_help="$ac_help
109 --with-x11 use X11"
110ac_help="$ac_help
111 --enable-nanox use NanoX"
112ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130ac_help="$ac_help
131 --enable-shared create shared library code"
132ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134ac_help="$ac_help
135 --enable-optimise create optimised code"
136ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138ac_help="$ac_help
139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
140ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150ac_help="$ac_help
151 --enable-profile create code with profiling information"
152ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162ac_help="$ac_help
163 --enable-compat22 enable wxWindows 2.2 compatibility"
164ac_help="$ac_help
165 --disable-compat24 disable wxWindows 2.4 compatibility"
166ac_help="$ac_help
167 --enable-rpath=DIR output the rpath flag from wx-config"
168ac_help="$ac_help
169 --enable-intl use internationalization system"
170ac_help="$ac_help
171 --enable-config use wxConfig (and derived) classes"
172ac_help="$ac_help
173 --enable-protocols use wxProtocol and derived classes"
174ac_help="$ac_help
175 --enable-ftp use wxFTP (requires wxProtocol"
176ac_help="$ac_help
177 --enable-http use wxHTTP (requires wxProtocol"
178ac_help="$ac_help
179 --enable-fileproto use wxFileProto class (requires wxProtocol"
180ac_help="$ac_help
181 --enable-sockets use socket/network classes"
182ac_help="$ac_help
183 --enable-ole use OLE classes"
184ac_help="$ac_help
185 --enable-dataobj use data object classes"
186ac_help="$ac_help
187 --enable-ipc use interprocess communication (wxSocket etc.)"
188ac_help="$ac_help
189 --enable-cmdline use wxCmdLineParser class"
190ac_help="$ac_help
191 --enable-datetime use wxDateTime class"
192ac_help="$ac_help
193 --enable-timedate use obsolete wxDate/wxTime classes"
194ac_help="$ac_help
195 --enable-stopwatch use wxStopWatch class"
196ac_help="$ac_help
197 --enable-dialupman use dialup network classes"
198ac_help="$ac_help
199 --enable-apple_ieee use the Apple IEEE codec"
200ac_help="$ac_help
201 --enable-timer use wxTimer class"
202ac_help="$ac_help
203 --enable-wave use wxWave class"
204ac_help="$ac_help
205 --enable-fraction use wxFraction class"
206ac_help="$ac_help
207 --enable-dynlib use wxLibrary class for DLL loading"
208ac_help="$ac_help
209 --enable-dynamicloader use (new) wxDynamicLibrary class"
210ac_help="$ac_help
211 --enable-longlong use wxLongLong class"
212ac_help="$ac_help
213 --enable-geometry use geometry class"
214ac_help="$ac_help
215 --enable-log use logging system"
216ac_help="$ac_help
217 --enable-streams use wxStream etc classes"
218ac_help="$ac_help
219 --enable-file use wxFile classes"
220ac_help="$ac_help
221 --enable-ffile use wxFFile classes"
222ac_help="$ac_help
223 --enable-textbuf use wxTextBuffer class"
224ac_help="$ac_help
225 --enable-textfile use wxTextFile class"
226ac_help="$ac_help
227 --enable-fontmap use font encodings conversion classes"
228ac_help="$ac_help
229 --enable-unicode compile wxString with Unicode support"
230ac_help="$ac_help
231 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
232ac_help="$ac_help
233 --enable-wxprintfv use wxWindows implementation of vprintf()"
234ac_help="$ac_help
235 --enable-std_iostreams use standard C++ stream classes"
236ac_help="$ac_help
237 --enable-filesystem use virtual file systems classes"
238ac_help="$ac_help
239 --enable-fs_inet use virtual HTTP/FTP filesystems"
240ac_help="$ac_help
241 --enable-fs_zip use virtual ZIP filesystems"
242ac_help="$ac_help
243 --enable-zipstream use wxZipInputStream"
244ac_help="$ac_help
245 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
246ac_help="$ac_help
247 --enable-snglinst use wxSingleInstanceChecker class"
248ac_help="$ac_help
249 --enable-mimetype use wxMimeTypesManager"
250ac_help="$ac_help
251 --enable-sysoptions use wxSystemOptions"
252ac_help="$ac_help
253 --enable-url use wxURL class"
254ac_help="$ac_help
255 --enable-protocol use wxProtocol class"
256ac_help="$ac_help
257 --enable-protocol-http HTTP support in wxProtocol"
258ac_help="$ac_help
259 --enable-protocol-ftp FTP support in wxProtocol"
260ac_help="$ac_help
261 --enable-protocol-file FILE support in wxProtocol"
262ac_help="$ac_help
263 --enable-threads use threads"
264ac_help="$ac_help
265 --enable-docview use document view architecture"
266ac_help="$ac_help
267 --enable-help use help subsystem"
268ac_help="$ac_help
269 --enable-mshtmlhelp use MS HTML Help (win32)"
270ac_help="$ac_help
271 --enable-html use wxHTML sub-library"
272ac_help="$ac_help
273 --enable-htmlhelp use wxHTML-based help"
274ac_help="$ac_help
275 --enable-constraints use layout-constraints system"
276ac_help="$ac_help
277 --enable-printarch use printing architecture"
278ac_help="$ac_help
279 --enable-mdi use multiple document interface architecture"
280ac_help="$ac_help
281 --enable-loggui use standard GUI logger"
282ac_help="$ac_help
283 --enable-logwin use wxLogWindow"
284ac_help="$ac_help
285 --enable-logdialog use wxLogDialog"
286ac_help="$ac_help
287 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
288ac_help="$ac_help
289 --enable-prologio use Prolog IO library"
290ac_help="$ac_help
291 --enable-resources use wxWindows resources"
292ac_help="$ac_help
293 --enable-xresources use X resources for save (default for gtk+)"
294ac_help="$ac_help
295 --enable-clipboard use wxClipboard class"
296ac_help="$ac_help
297 --enable-dnd use Drag'n'Drop classes"
298ac_help="$ac_help
299 --enable-metafile use win32 metafiles"
300ac_help="$ac_help
301 --enable-treelayout use wxTreeLayout class"
302ac_help="$ac_help
303 --enable-controls use all usual controls"
304ac_help="$ac_help
305 --enable-accel use accelerators"
306ac_help="$ac_help
307 --enable-button use wxButton class"
308ac_help="$ac_help
309 --enable-bmpbutton use wxBitmapButton class"
310ac_help="$ac_help
311 --enable-calendar use wxCalendarCtrl class"
312ac_help="$ac_help
313 --enable-caret use wxCaret class"
314ac_help="$ac_help
315 --enable-checkbox use wxCheckBox class"
316ac_help="$ac_help
317 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
318ac_help="$ac_help
319 --enable-choice use wxChoice class"
320ac_help="$ac_help
321 --enable-combobox use wxComboBox class"
322ac_help="$ac_help
323 --enable-display use wxDisplay class"
324ac_help="$ac_help
325 --enable-gauge use wxGauge class"
326ac_help="$ac_help
327 --enable-grid use wxGrid class"
328ac_help="$ac_help
329 --enable-newgrid use new wxGrid class"
330ac_help="$ac_help
331 --enable-imaglist use wxImageList class"
332ac_help="$ac_help
333 --enable-listbox use wxListBox class"
334ac_help="$ac_help
335 --enable-listctrl use wxListCtrl class"
336ac_help="$ac_help
337 --enable-notebook use wxNotebook class"
338ac_help="$ac_help
339 --enable-propsheet use wxPropertySheet class"
340ac_help="$ac_help
341 --enable-radiobox use wxRadioBox class"
342ac_help="$ac_help
343 --enable-radiobtn use wxRadioButton class"
344ac_help="$ac_help
345 --enable-sash use wxSashWindow class"
346ac_help="$ac_help
347 --enable-scrollbar use wxScrollBar class and scrollable windows"
348ac_help="$ac_help
349 --enable-slider use wxSlider class"
350ac_help="$ac_help
351 --enable-spinbtn use wxSpinButton class"
352ac_help="$ac_help
353 --enable-spinctrl use wxSpinCtrl class"
354ac_help="$ac_help
355 --enable-splitter use wxSplitterWindow class"
356ac_help="$ac_help
357 --enable-statbmp use wxStaticBitmap class"
358ac_help="$ac_help
359 --enable-statbox use wxStaticBox class"
360ac_help="$ac_help
361 --enable-statline use wxStaticLine class"
362ac_help="$ac_help
363 --enable-stattext use wxStaticText class"
364ac_help="$ac_help
365 --enable-statusbar use wxStatusBar class"
366ac_help="$ac_help
367 --enable-tabdialog use wxTabControl class"
368ac_help="$ac_help
369 --enable-textctrl use wxTextCtrl class"
370ac_help="$ac_help
371 --enable-togglebtn use wxToggleButton class"
372ac_help="$ac_help
373 --enable-toolbar use wxToolBar class"
374ac_help="$ac_help
375 --enable-tbarnative use native wxToolBar class"
376ac_help="$ac_help
377 --enable-tbarsmpl use wxToolBarSimple class"
378ac_help="$ac_help
379 --enable-treectrl use wxTreeCtrl class"
380ac_help="$ac_help
381 --enable-tipwindow use wxTipWindow class"
382ac_help="$ac_help
383 --enable-popupwin use wxPopUpWindow class"
384ac_help="$ac_help
385 --enable-commondlg use all common dialogs"
386ac_help="$ac_help
387 --enable-choicedlg use wxChoiceDialog"
388ac_help="$ac_help
389 --enable-coldlg use wxColourDialog"
390ac_help="$ac_help
391 --enable-filedlg use wxFileDialog"
392ac_help="$ac_help
393 --enable-finddlg use wxFindReplaceDialog"
394ac_help="$ac_help
395 --enable-fontdlg use wxFontDialog"
396ac_help="$ac_help
397 --enable-dirdlg use wxDirDialog"
398ac_help="$ac_help
399 --enable-msgdlg use wxMessageDialog"
400ac_help="$ac_help
401 --enable-numberdlg use wxNumberEntryDialog"
402ac_help="$ac_help
403 --enable-splash use wxSplashScreen"
404ac_help="$ac_help
405 --enable-textdlg use wxTextDialog"
406ac_help="$ac_help
407 --enable-tipdlg use startup tips"
408ac_help="$ac_help
409 --enable-progressdlg use wxProgressDialog"
410ac_help="$ac_help
411 --enable-wizarddlg use wxWizard"
412ac_help="$ac_help
413 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
414ac_help="$ac_help
415 --enable-miniframe use wxMiniFrame class"
416ac_help="$ac_help
417 --enable-tooltips use wxToolTip class"
418ac_help="$ac_help
419 --enable-splines use spline drawing code"
420ac_help="$ac_help
421 --enable-validators use wxValidator and derived classes"
422ac_help="$ac_help
423 --enable-busyinfo use wxBusyInfo"
424ac_help="$ac_help
425 --enable-joystick use wxJoystick (Linux only)"
426ac_help="$ac_help
427 --enable-metafiles use wxMetaFile (Windows only)"
428ac_help="$ac_help
429 --enable-dragimage use wxDragImage"
430ac_help="$ac_help
431 --enable-palette use wxPalette class"
432ac_help="$ac_help
433 --enable-image use wxImage class"
434ac_help="$ac_help
435 --enable-gif use gif images (GIF file format)"
436ac_help="$ac_help
437 --enable-pcx use pcx images (PCX file format)"
438ac_help="$ac_help
439 --enable-iff use iff images (IFF file format)"
440ac_help="$ac_help
441 --enable-pnm use pnm images (PNM file format)"
442ac_help="$ac_help
443 --enable-xpm use xpm images (XPM file format)"
444ac_help="$ac_help
445 --enable-icocur use Windows ICO and CUR formats"
446ac_help="$ac_help
447 --disable-largefile omit support for large files"
448ac_help="$ac_help
449 --disable-gtktest do not try to compile and run a test GTK+ program"
450ac_help="$ac_help
451 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
452ac_help="$ac_help
453 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
454ac_help="$ac_help
455 --disable-gtktest Do not try to compile and run a test GTK program"
456ac_help="$ac_help
457 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
458ac_help="$ac_help
459 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
460ac_help="$ac_help
461 --disable-gtktest Do not try to compile and run a test GTK program"
462ac_help="$ac_help
463 --with-x use the X Window System"
464ac_help="$ac_help
465 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
466
467# Initialize some variables set by options.
468# The variables have the same names as the options, with
469# dashes changed to underlines.
470build=NONE
471cache_file=./config.cache
472exec_prefix=NONE
473host=NONE
474no_create=
475nonopt=NONE
476no_recursion=
477prefix=NONE
478program_prefix=NONE
479program_suffix=NONE
480program_transform_name=s,x,x,
481silent=
482site=
483srcdir=
484target=NONE
485verbose=
486x_includes=NONE
487x_libraries=NONE
488bindir='${exec_prefix}/bin'
489sbindir='${exec_prefix}/sbin'
490libexecdir='${exec_prefix}/libexec'
491datadir='${prefix}/share'
492sysconfdir='${prefix}/etc'
493sharedstatedir='${prefix}/com'
494localstatedir='${prefix}/var'
495libdir='${exec_prefix}/lib'
496includedir='${prefix}/include'
497oldincludedir='/usr/include'
498infodir='${prefix}/info'
499mandir='${prefix}/man'
500
501# Initialize some other variables.
502subdirs=
503MFLAGS= MAKEFLAGS=
504SHELL=${CONFIG_SHELL-/bin/sh}
505# Maximum number of lines to put in a shell here document.
506ac_max_here_lines=12
507
508ac_prev=
509for ac_option
510do
511
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 case "$ac_option" in
520 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
521 *) ac_optarg= ;;
522 esac
523
524 # Accept the important Cygnus configure options, so we can diagnose typos.
525
526 case "$ac_option" in
527
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 bindir="$ac_optarg" ;;
532
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build="$ac_optarg" ;;
537
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file="$ac_optarg" ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir="$ac_optarg" ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
553 # Reject names that are not valid shell variable names.
554 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
555 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
556 fi
557 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
558 eval "enable_${ac_feature}=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
562 # Reject names that are not valid shell variable names.
563 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
564 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
565 fi
566 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
567 case "$ac_option" in
568 *=*) ;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_${ac_feature}='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix="$ac_optarg" ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he)
587 # Omit some internal or obsolete options to make the list less imposing.
588 # This message is too long to be a string in the A/UX 3.1 sh.
589 cat << EOF
590Usage: configure [options] [host]
591Options: [defaults in brackets after descriptions]
592Configuration:
593 --cache-file=FILE cache test results in FILE
594 --help print this message
595 --no-create do not create output files
596 --quiet, --silent do not print \`checking...' messages
597 --version print the version of autoconf that created configure
598Directory and file names:
599 --prefix=PREFIX install architecture-independent files in PREFIX
600 [$ac_default_prefix]
601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
602 [same as prefix]
603 --bindir=DIR user executables in DIR [EPREFIX/bin]
604 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
605 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
606 --datadir=DIR read-only architecture-independent data in DIR
607 [PREFIX/share]
608 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
609 --sharedstatedir=DIR modifiable architecture-independent data in DIR
610 [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
612 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
613 --includedir=DIR C header files in DIR [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
615 --infodir=DIR info documentation in DIR [PREFIX/info]
616 --mandir=DIR man documentation in DIR [PREFIX/man]
617 --srcdir=DIR find the sources in DIR [configure dir or ..]
618 --program-prefix=PREFIX prepend PREFIX to installed program names
619 --program-suffix=SUFFIX append SUFFIX to installed program names
620 --program-transform-name=PROGRAM
621 run sed PROGRAM on installed program names
622EOF
623 cat << EOF
624Host type:
625 --build=BUILD configure for building on BUILD [BUILD=HOST]
626 --host=HOST configure for HOST [guessed]
627 --target=TARGET configure for TARGET [TARGET=HOST]
628Features and packages:
629 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
630 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
633 --x-includes=DIR X include files are in DIR
634 --x-libraries=DIR X library files are in DIR
635EOF
636 if test -n "$ac_help"; then
637 echo "--enable and --with options recognized:$ac_help"
638 fi
639 exit 0 ;;
640
641 -host | --host | --hos | --ho)
642 ac_prev=host ;;
643 -host=* | --host=* | --hos=* | --ho=*)
644 host="$ac_optarg" ;;
645
646 -includedir | --includedir | --includedi | --included | --include \
647 | --includ | --inclu | --incl | --inc)
648 ac_prev=includedir ;;
649 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
650 | --includ=* | --inclu=* | --incl=* | --inc=*)
651 includedir="$ac_optarg" ;;
652
653 -infodir | --infodir | --infodi | --infod | --info | --inf)
654 ac_prev=infodir ;;
655 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
656 infodir="$ac_optarg" ;;
657
658 -libdir | --libdir | --libdi | --libd)
659 ac_prev=libdir ;;
660 -libdir=* | --libdir=* | --libdi=* | --libd=*)
661 libdir="$ac_optarg" ;;
662
663 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
664 | --libexe | --libex | --libe)
665 ac_prev=libexecdir ;;
666 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
667 | --libexe=* | --libex=* | --libe=*)
668 libexecdir="$ac_optarg" ;;
669
670 -localstatedir | --localstatedir | --localstatedi | --localstated \
671 | --localstate | --localstat | --localsta | --localst \
672 | --locals | --local | --loca | --loc | --lo)
673 ac_prev=localstatedir ;;
674 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
675 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
676 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
677 localstatedir="$ac_optarg" ;;
678
679 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
680 ac_prev=mandir ;;
681 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
682 mandir="$ac_optarg" ;;
683
684 -nfp | --nfp | --nf)
685 # Obsolete; use --without-fp.
686 with_fp=no ;;
687
688 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
689 | --no-cr | --no-c)
690 no_create=yes ;;
691
692 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
693 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
694 no_recursion=yes ;;
695
696 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
697 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
698 | --oldin | --oldi | --old | --ol | --o)
699 ac_prev=oldincludedir ;;
700 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
701 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
702 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
703 oldincludedir="$ac_optarg" ;;
704
705 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
706 ac_prev=prefix ;;
707 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
708 prefix="$ac_optarg" ;;
709
710 -program-prefix | --program-prefix | --program-prefi | --program-pref \
711 | --program-pre | --program-pr | --program-p)
712 ac_prev=program_prefix ;;
713 -program-prefix=* | --program-prefix=* | --program-prefi=* \
714 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
715 program_prefix="$ac_optarg" ;;
716
717 -program-suffix | --program-suffix | --program-suffi | --program-suff \
718 | --program-suf | --program-su | --program-s)
719 ac_prev=program_suffix ;;
720 -program-suffix=* | --program-suffix=* | --program-suffi=* \
721 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
722 program_suffix="$ac_optarg" ;;
723
724 -program-transform-name | --program-transform-name \
725 | --program-transform-nam | --program-transform-na \
726 | --program-transform-n | --program-transform- \
727 | --program-transform | --program-transfor \
728 | --program-transfo | --program-transf \
729 | --program-trans | --program-tran \
730 | --progr-tra | --program-tr | --program-t)
731 ac_prev=program_transform_name ;;
732 -program-transform-name=* | --program-transform-name=* \
733 | --program-transform-nam=* | --program-transform-na=* \
734 | --program-transform-n=* | --program-transform-=* \
735 | --program-transform=* | --program-transfor=* \
736 | --program-transfo=* | --program-transf=* \
737 | --program-trans=* | --program-tran=* \
738 | --progr-tra=* | --program-tr=* | --program-t=*)
739 program_transform_name="$ac_optarg" ;;
740
741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
742 | -silent | --silent | --silen | --sile | --sil)
743 silent=yes ;;
744
745 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
746 ac_prev=sbindir ;;
747 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
748 | --sbi=* | --sb=*)
749 sbindir="$ac_optarg" ;;
750
751 -sharedstatedir | --sharedstatedir | --sharedstatedi \
752 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
753 | --sharedst | --shareds | --shared | --share | --shar \
754 | --sha | --sh)
755 ac_prev=sharedstatedir ;;
756 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
757 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
758 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
759 | --sha=* | --sh=*)
760 sharedstatedir="$ac_optarg" ;;
761
762 -site | --site | --sit)
763 ac_prev=site ;;
764 -site=* | --site=* | --sit=*)
765 site="$ac_optarg" ;;
766
767 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
768 ac_prev=srcdir ;;
769 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
770 srcdir="$ac_optarg" ;;
771
772 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
773 | --syscon | --sysco | --sysc | --sys | --sy)
774 ac_prev=sysconfdir ;;
775 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
776 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
777 sysconfdir="$ac_optarg" ;;
778
779 -target | --target | --targe | --targ | --tar | --ta | --t)
780 ac_prev=target ;;
781 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
782 target="$ac_optarg" ;;
783
784 -v | -verbose | --verbose | --verbos | --verbo | --verb)
785 verbose=yes ;;
786
787 -version | --version | --versio | --versi | --vers)
788 echo "configure generated by autoconf version 2.13"
789 exit 0 ;;
790
791 -with-* | --with-*)
792 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
793 # Reject names that are not valid shell variable names.
794 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
795 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
796 fi
797 ac_package=`echo $ac_package| sed 's/-/_/g'`
798 case "$ac_option" in
799 *=*) ;;
800 *) ac_optarg=yes ;;
801 esac
802 eval "with_${ac_package}='$ac_optarg'" ;;
803
804 -without-* | --without-*)
805 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
806 # Reject names that are not valid shell variable names.
807 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
808 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
809 fi
810 ac_package=`echo $ac_package| sed 's/-/_/g'`
811 eval "with_${ac_package}=no" ;;
812
813 --x)
814 # Obsolete; use --with-x.
815 with_x=yes ;;
816
817 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
818 | --x-incl | --x-inc | --x-in | --x-i)
819 ac_prev=x_includes ;;
820 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
821 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
822 x_includes="$ac_optarg" ;;
823
824 -x-libraries | --x-libraries | --x-librarie | --x-librari \
825 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
826 ac_prev=x_libraries ;;
827 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
828 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
829 x_libraries="$ac_optarg" ;;
830
831 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
832 ;;
833
834 *)
835 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
836 echo "configure: warning: $ac_option: invalid host type" 1>&2
837 fi
838 if test "x$nonopt" != xNONE; then
839 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
840 fi
841 nonopt="$ac_option"
842 ;;
843
844 esac
845done
846
847if test -n "$ac_prev"; then
848 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
849fi
850
851trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
852
853# File descriptor usage:
854# 0 standard input
855# 1 file creation
856# 2 errors and warnings
857# 3 some systems may open it to /dev/tty
858# 4 used on the Kubota Titan
859# 6 checking for... messages and results
860# 5 compiler messages saved in config.log
861if test "$silent" = yes; then
862 exec 6>/dev/null
863else
864 exec 6>&1
865fi
866exec 5>./config.log
867
868echo "\
869This file contains any messages produced by compilers while
870running configure, to aid debugging if configure makes a mistake.
871" 1>&5
872
873# Strip out --no-create and --no-recursion so they do not pile up.
874# Also quote any args containing shell metacharacters.
875ac_configure_args=
876for ac_arg
877do
878 case "$ac_arg" in
879 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
880 | --no-cr | --no-c) ;;
881 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
882 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
883 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
884 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
885 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
886 esac
887done
888
889# NLS nuisances.
890# Only set these to C if already set. These must not be set unconditionally
891# because not all systems understand e.g. LANG=C (notably SCO).
892# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
893# Non-C LC_CTYPE values break the ctype check.
894if test "${LANG+set}" = set; then LANG=C; export LANG; fi
895if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
896if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
897if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
898
899# confdefs.h avoids OS command line length limits that DEFS can exceed.
900rm -rf conftest* confdefs.h
901# AIX cpp loses on an empty file, so make sure it contains at least a newline.
902echo > confdefs.h
903
904# A filename unique to this package, relative to the directory that
905# configure is in, which we can look for to find out if srcdir is correct.
906ac_unique_file=wx-config.in
907
908# Find the source files, if location was not specified.
909if test -z "$srcdir"; then
910 ac_srcdir_defaulted=yes
911 # Try the directory containing this script, then its parent.
912 ac_prog=$0
913 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
914 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
915 srcdir=$ac_confdir
916 if test ! -r $srcdir/$ac_unique_file; then
917 srcdir=..
918 fi
919else
920 ac_srcdir_defaulted=no
921fi
922if test ! -r $srcdir/$ac_unique_file; then
923 if test "$ac_srcdir_defaulted" = yes; then
924 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
925 else
926 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
927 fi
928fi
929srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
930
931# Prefer explicitly selected file to automatically selected ones.
932if test -z "$CONFIG_SITE"; then
933 if test "x$prefix" != xNONE; then
934 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
935 else
936 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
937 fi
938fi
939for ac_site_file in $CONFIG_SITE; do
940 if test -r "$ac_site_file"; then
941 echo "loading site script $ac_site_file"
942 . "$ac_site_file"
943 fi
944done
945
946if test -r "$cache_file"; then
947 echo "loading cache $cache_file"
948 . $cache_file
949else
950 echo "creating cache $cache_file"
951 > $cache_file
952fi
953
954ac_ext=c
955# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956ac_cpp='$CPP $CPPFLAGS'
957ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959cross_compiling=$ac_cv_prog_cc_cross
960
961ac_exeext=
962ac_objext=o
963if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
964 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
965 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
966 ac_n= ac_c='
967' ac_t=' '
968 else
969 ac_n=-n ac_c= ac_t=
970 fi
971else
972 ac_n= ac_c='\c' ac_t=
973fi
974
975
976
977ac_aux_dir=
978for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
979 if test -f $ac_dir/install-sh; then
980 ac_aux_dir=$ac_dir
981 ac_install_sh="$ac_aux_dir/install-sh -c"
982 break
983 elif test -f $ac_dir/install.sh; then
984 ac_aux_dir=$ac_dir
985 ac_install_sh="$ac_aux_dir/install.sh -c"
986 break
987 fi
988done
989if test -z "$ac_aux_dir"; then
990 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
991fi
992ac_config_guess=$ac_aux_dir/config.guess
993ac_config_sub=$ac_aux_dir/config.sub
994ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
995
996
997# Do some error checking and defaulting for the host and target type.
998# The inputs are:
999# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1000#
1001# The rules are:
1002# 1. You are not allowed to specify --host, --target, and nonopt at the
1003# same time.
1004# 2. Host defaults to nonopt.
1005# 3. If nonopt is not specified, then host defaults to the current host,
1006# as determined by config.guess.
1007# 4. Target and build default to nonopt.
1008# 5. If nonopt is not specified, then target and build default to host.
1009
1010# The aliases save the names the user supplied, while $host etc.
1011# will get canonicalized.
1012case $host---$target---$nonopt in
1013NONE---*---* | *---NONE---* | *---*---NONE) ;;
1014*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1015esac
1016
1017
1018# Make sure we can run config.sub.
1019if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1020else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1021fi
1022
1023echo $ac_n "checking host system type""... $ac_c" 1>&6
1024echo "configure:1025: checking host system type" >&5
1025
1026host_alias=$host
1027case "$host_alias" in
1028NONE)
1029 case $nonopt in
1030 NONE)
1031 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1032 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1033 fi ;;
1034 *) host_alias=$nonopt ;;
1035 esac ;;
1036esac
1037
1038host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1039host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042echo "$ac_t""$host" 1>&6
1043
1044echo $ac_n "checking target system type""... $ac_c" 1>&6
1045echo "configure:1046: checking target system type" >&5
1046
1047target_alias=$target
1048case "$target_alias" in
1049NONE)
1050 case $nonopt in
1051 NONE) target_alias=$host_alias ;;
1052 *) target_alias=$nonopt ;;
1053 esac ;;
1054esac
1055
1056target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1057target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060echo "$ac_t""$target" 1>&6
1061
1062echo $ac_n "checking build system type""... $ac_c" 1>&6
1063echo "configure:1064: checking build system type" >&5
1064
1065build_alias=$build
1066case "$build_alias" in
1067NONE)
1068 case $nonopt in
1069 NONE) build_alias=$host_alias ;;
1070 *) build_alias=$nonopt ;;
1071 esac ;;
1072esac
1073
1074build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1075build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078echo "$ac_t""$build" 1>&6
1079
1080test "$host_alias" != "$target_alias" &&
1081 test "$program_prefix$program_suffix$program_transform_name" = \
1082 NONENONEs,x,x, &&
1083 program_prefix=${target_alias}-
1084
1085
1086
1087WX_MAJOR_VERSION_NUMBER=2
1088WX_MINOR_VERSION_NUMBER=5
1089WX_RELEASE_NUMBER=0
1090
1091WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1092WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1093
1094WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1095
1096WX_CURRENT=0
1097WX_REVISION=0
1098WX_AGE=0
1099
1100
1101
1102USE_UNIX=1
1103USE_WIN32=0
1104USE_DOS=0
1105USE_BEOS=0
1106USE_MAC=0
1107
1108USE_LINUX=
1109USE_SGI=
1110USE_HPUX=
1111USE_SYSV=
1112USE_SVR4=
1113USE_AIX=
1114USE_SUN=
1115USE_SOLARIS=
1116USE_SUNOS=
1117USE_ALPHA=
1118USE_OSF=
1119USE_BSD=
1120USE_DARWIN=
1121USE_FREEBSD=
1122USE_OPENBSD=
1123USE_NETBSD=
1124USE_VMS=
1125USE_ULTRIX=
1126USE_DATA_GENERAL=
1127
1128NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1129
1130ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1131
1132DEFAULT_wxUSE_GTK=0
1133DEFAULT_wxUSE_MAC=0
1134DEFAULT_wxUSE_MGL=0
1135DEFAULT_wxUSE_MICROWIN=0
1136DEFAULT_wxUSE_MOTIF=0
1137DEFAULT_wxUSE_MSW=0
1138DEFAULT_wxUSE_PM=0
1139DEFAULT_wxUSE_X11=0
1140
1141DEFAULT_DEFAULT_wxUSE_GTK=0
1142DEFAULT_DEFAULT_wxUSE_MAC=0
1143DEFAULT_DEFAULT_wxUSE_MGL=0
1144DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1145DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146DEFAULT_DEFAULT_wxUSE_MSW=0
1147DEFAULT_DEFAULT_wxUSE_PM=0
1148DEFAULT_DEFAULT_wxUSE_X11=0
1149
1150PROGRAM_EXT=
1151SO_SUFFIX=so
1152
1153case "${host}" in
1154 *-hp-hpux* )
1155 USE_HPUX=1
1156 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1157 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1158 SO_SUFFIX=sl
1159 cat >> confdefs.h <<\EOF
1160#define __HPUX__ 1
1161EOF
1162
1163 ;;
1164 *-*-linux* )
1165 USE_LINUX=1
1166 cat >> confdefs.h <<\EOF
1167#define __LINUX__ 1
1168EOF
1169
1170 TMP=`uname -m`
1171 if test "x$TMP" = "xalpha"; then
1172 USE_ALPHA=1
1173 cat >> confdefs.h <<\EOF
1174#define __ALPHA__ 1
1175EOF
1176
1177 fi
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-irix5* | *-*-irix6* )
1181 USE_SGI=1
1182 USE_SVR4=1
1183 cat >> confdefs.h <<\EOF
1184#define __SGI__ 1
1185EOF
1186
1187 cat >> confdefs.h <<\EOF
1188#define __SVR4__ 1
1189EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-solaris2* )
1194 USE_SUN=1
1195 USE_SOLARIS=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198#define __SUN__ 1
1199EOF
1200
1201 cat >> confdefs.h <<\EOF
1202#define __SOLARIS__ 1
1203EOF
1204
1205 cat >> confdefs.h <<\EOF
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1211 ;;
1212 *-*-sunos4* )
1213 USE_SUN=1
1214 USE_SUNOS=1
1215 USE_BSD=1
1216 cat >> confdefs.h <<\EOF
1217#define __SUN__ 1
1218EOF
1219
1220 cat >> confdefs.h <<\EOF
1221#define __SUNOS__ 1
1222EOF
1223
1224 cat >> confdefs.h <<\EOF
1225#define __BSD__ 1
1226EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-freebsd*)
1231 USE_BSD=1
1232 USE_FREEBSD=1
1233 cat >> confdefs.h <<\EOF
1234#define __FREEBSD__ 1
1235EOF
1236
1237 cat >> confdefs.h <<\EOF
1238#define __BSD__ 1
1239EOF
1240
1241 DEFAULT_DEFAULT_wxUSE_GTK=1
1242 ;;
1243 *-*-openbsd*)
1244 USE_BSD=1
1245 USE_OPENBSD=1
1246 cat >> confdefs.h <<\EOF
1247#define __OPENBSD__ 1
1248EOF
1249
1250 cat >> confdefs.h <<\EOF
1251#define __BSD__ 1
1252EOF
1253
1254 DEFAULT_DEFAULT_wxUSE_GTK=1
1255 ;;
1256 *-*-netbsd*)
1257 USE_BSD=1
1258 USE_NETBSD=1
1259 cat >> confdefs.h <<\EOF
1260#define __NETBSD__ 1
1261EOF
1262
1263 cat >> confdefs.h <<\EOF
1264#define __BSD__ 1
1265EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_GTK=1
1268 ;;
1269 *-*-osf* )
1270 USE_ALPHA=1
1271 USE_OSF=1
1272 cat >> confdefs.h <<\EOF
1273#define __ALPHA__ 1
1274EOF
1275
1276 cat >> confdefs.h <<\EOF
1277#define __OSF__ 1
1278EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1282 ;;
1283 *-*-dgux5* )
1284 USE_ALPHA=1
1285 USE_SVR4=1
1286 cat >> confdefs.h <<\EOF
1287#define __ALPHA__ 1
1288EOF
1289
1290 cat >> confdefs.h <<\EOF
1291#define __SVR4__ 1
1292EOF
1293
1294 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295 ;;
1296 *-*-sysv5* )
1297 USE_SYSV=1
1298 USE_SVR4=1
1299 cat >> confdefs.h <<\EOF
1300#define __SYSV__ 1
1301EOF
1302
1303 cat >> confdefs.h <<\EOF
1304#define __SVR4__ 1
1305EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309 *-*-aix* )
1310 USE_AIX=1
1311 USE_SYSV=1
1312 USE_SVR4=1
1313 SO_SUFFIX=a
1314 cat >> confdefs.h <<\EOF
1315#define __AIX__ 1
1316EOF
1317
1318 cat >> confdefs.h <<\EOF
1319#define __SYSV__ 1
1320EOF
1321
1322 cat >> confdefs.h <<\EOF
1323#define __SVR4__ 1
1324EOF
1325
1326 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327 ;;
1328
1329 *-*-cygwin* | *-*-mingw32* )
1330 SO_SUFFIX=dll
1331 PROGRAM_EXT=".exe"
1332 RESCOMP=windres
1333 DEFAULT_DEFAULT_wxUSE_MSW=1
1334 ;;
1335
1336 *-pc-msdosdjgpp )
1337 USE_UNIX=0
1338 USE_DOS=1
1339 cat >> confdefs.h <<\EOF
1340#define __DOS__ 1
1341EOF
1342
1343 PROGRAM_EXT=".exe"
1344 DEFAULT_DEFAULT_wxUSE_MGL=1
1345 LIBS="$LIBS -lstdc++"
1346 ;;
1347
1348 *-pc-os2_emx | *-pc-os2-emx )
1349 cat >> confdefs.h <<\EOF
1350#define __EMX__ 1
1351EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_PM=1
1355 ;;
1356
1357 powerpc-*-darwin* )
1358 USE_BSD=1
1359 USE_DARWIN=1
1360 SO_SUFFIX=dylib
1361 cat >> confdefs.h <<\EOF
1362#define __BSD__ 1
1363EOF
1364
1365 cat >> confdefs.h <<\EOF
1366#define __DARWIN__ 1
1367EOF
1368
1369 cat >> confdefs.h <<\EOF
1370#define __POWERPC__ 1
1371EOF
1372
1373 cat >> confdefs.h <<\EOF
1374#define TARGET_CARBON 1
1375EOF
1376
1377 DEFAULT_DEFAULT_wxUSE_MAC=1
1378 ;;
1379
1380 *-*-beos* )
1381 USE_BEOS=1
1382 cat >> confdefs.h <<\EOF
1383#define __BEOS__ 1
1384EOF
1385
1386 ;;
1387
1388 *)
1389 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1390esac
1391
1392
1393
1394
1395 wx_arg_cache_file="configarg.cache"
1396 echo "loading argument cache $wx_arg_cache_file"
1397 rm -f ${wx_arg_cache_file}.tmp
1398 touch ${wx_arg_cache_file}.tmp
1399 touch ${wx_arg_cache_file}
1400
1401
1402DEBUG_CONFIGURE=0
1403if test $DEBUG_CONFIGURE = 1; then
1404 DEFAULT_wxUSE_UNIVERSAL=no
1405
1406 DEFAULT_wxUSE_NANOX=no
1407
1408 DEFAULT_wxUSE_THREADS=yes
1409
1410 DEFAULT_wxUSE_SHARED=yes
1411 DEFAULT_wxUSE_SONAME=no
1412 DEFAULT_wxUSE_OPTIMISE=no
1413 DEFAULT_wxUSE_PROFILE=no
1414 DEFAULT_wxUSE_NO_DEPS=no
1415 DEFAULT_wxUSE_NO_RTTI=no
1416 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1417 DEFAULT_wxUSE_PERMISSIVE=no
1418 DEFAULT_wxUSE_DEBUG_FLAG=yes
1419 DEFAULT_wxUSE_DEBUG_INFO=yes
1420 DEFAULT_wxUSE_DEBUG_GDB=yes
1421 DEFAULT_wxUSE_MEM_TRACING=no
1422 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1423 DEFAULT_wxUSE_DMALLOC=no
1424 DEFAULT_wxUSE_PRECOMP=no
1425 DEFAULT_wxUSE_APPLE_IEEE=no
1426
1427 DEFAULT_wxUSE_LOG=yes
1428 DEFAULT_wxUSE_LOGWINDOW=no
1429 DEFAULT_wxUSE_LOGGUI=no
1430 DEFAULT_wxUSE_LOGDIALOG=no
1431
1432 DEFAULT_wxUSE_GUI=yes
1433 DEFAULT_wxUSE_CONTROLS=no
1434
1435 DEFAULT_wxUSE_REGEX=no
1436 DEFAULT_wxUSE_ZLIB=no
1437 DEFAULT_wxUSE_LIBPNG=no
1438 DEFAULT_wxUSE_LIBJPEG=no
1439 DEFAULT_wxUSE_LIBTIFF=no
1440 DEFAULT_wxUSE_ODBC=no
1441 DEFAULT_wxUSE_OPENGL=no
1442
1443 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1444 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1445 DEFAULT_wxUSE_STD_IOSTREAM=no
1446 DEFAULT_wxUSE_CMDLINE_PARSER=no
1447 DEFAULT_wxUSE_DATETIME=no
1448 DEFAULT_wxUSE_TIMEDATE=no
1449 DEFAULT_wxUSE_TIMER=no
1450 DEFAULT_wxUSE_STOPWATCH=no
1451 DEFAULT_wxUSE_FILE=no
1452 DEFAULT_wxUSE_FFILE=no
1453 DEFAULT_wxUSE_TEXTBUFFER=no
1454 DEFAULT_wxUSE_TEXTFILE=no
1455 DEFAULT_wxUSE_WAVE=no
1456 DEFAULT_wxUSE_INTL=no
1457 DEFAULT_wxUSE_CONFIG=no
1458 DEFAULT_wxUSE_FONTMAP=no
1459 DEFAULT_wxUSE_STREAMS=no
1460 DEFAULT_wxUSE_SOCKETS=no
1461 DEFAULT_wxUSE_OLE=no
1462 DEFAULT_wxUSE_DATAOBJ=no
1463 DEFAULT_wxUSE_DIALUP_MANAGER=no
1464 DEFAULT_wxUSE_JOYSTICK=no
1465 DEFAULT_wxUSE_DYNLIB_CLASS=no
1466 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1467 DEFAULT_wxUSE_LONGLONG=no
1468 DEFAULT_wxUSE_GEOMETRY=no
1469
1470 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1471 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1472 DEFAULT_wxUSE_POSTSCRIPT=no
1473
1474 DEFAULT_wxUSE_X_RESOURCES=no
1475 DEFAULT_wxUSE_CLIPBOARD=no
1476 DEFAULT_wxUSE_TOOLTIPS=no
1477 DEFAULT_wxUSE_DRAG_AND_DROP=no
1478 DEFAULT_wxUSE_DRAGIMAGE=no
1479 DEFAULT_wxUSE_SPLINES=no
1480
1481 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1482 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1483 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1484
1485 DEFAULT_wxUSE_PROLOGIO=no
1486 DEFAULT_wxUSE_RESOURCES=no
1487 DEFAULT_wxUSE_CONSTRAINTS=no
1488 DEFAULT_wxUSE_IPC=no
1489 DEFAULT_wxUSE_HELP=no
1490 DEFAULT_wxUSE_MS_HTML_HELP=no
1491 DEFAULT_wxUSE_WXHTML_HELP=no
1492 DEFAULT_wxUSE_TREELAYOUT=no
1493 DEFAULT_wxUSE_METAFILE=no
1494 DEFAULT_wxUSE_MIMETYPE=no
1495 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1496 DEFAULT_wxUSE_PROTOCOL=no
1497 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1498 DEFAULT_wxUSE_PROTOCOL_FTP=no
1499 DEFAULT_wxUSE_PROTOCOL_FILE=no
1500 DEFAULT_wxUSE_URL=no
1501
1502 DEFAULT_wxUSE_COMMONDLGS=no
1503 DEFAULT_wxUSE_CHOICEDLG=no
1504 DEFAULT_wxUSE_COLOURDLG=no
1505 DEFAULT_wxUSE_DIRDLG=no
1506 DEFAULT_wxUSE_FILEDLG=no
1507 DEFAULT_wxUSE_FINDREPLDLG=no
1508 DEFAULT_wxUSE_FONTDLG=no
1509 DEFAULT_wxUSE_MSGDLG=no
1510 DEFAULT_wxUSE_NUMBERDLG=no
1511 DEFAULT_wxUSE_TEXTDLG=no
1512 DEFAULT_wxUSE_SPLASH=no
1513 DEFAULT_wxUSE_STARTUP_TIPS=no
1514 DEFAULT_wxUSE_PROGRESSDLG=no
1515 DEFAULT_wxUSE_WIZARDDLG=no
1516
1517 DEFAULT_wxUSE_MENUS=no
1518 DEFAULT_wxUSE_MINIFRAME=no
1519 DEFAULT_wxUSE_HTML=no
1520 DEFAULT_wxUSE_FILESYSTEM=no
1521 DEFAULT_wxUSE_FS_INET=no
1522 DEFAULT_wxUSE_FS_ZIP=no
1523 DEFAULT_wxUSE_BUSYINFO=no
1524 DEFAULT_wxUSE_ZIPSTREAM=no
1525 DEFAULT_wxUSE_VALIDATORS=no
1526
1527 DEFAULT_wxUSE_ACCEL=no
1528 DEFAULT_wxUSE_BUTTON=no
1529 DEFAULT_wxUSE_BMPBUTTON=no
1530 DEFAULT_wxUSE_CALCTRL=no
1531 DEFAULT_wxUSE_CARET=no
1532 DEFAULT_wxUSE_CHECKBOX=no
1533 DEFAULT_wxUSE_CHECKLST=no
1534 DEFAULT_wxUSE_CHOICE=no
1535 DEFAULT_wxUSE_COMBOBOX=no
1536 DEFAULT_wxUSE_DISPLAY=no
1537 DEFAULT_wxUSE_GAUGE=no
1538 DEFAULT_wxUSE_GRID=no
1539 DEFAULT_wxUSE_NEW_GRID=no
1540 DEFAULT_wxUSE_IMAGLIST=no
1541 DEFAULT_wxUSE_LISTBOX=no
1542 DEFAULT_wxUSE_LISTCTRL=no
1543 DEFAULT_wxUSE_NOTEBOOK=no
1544 DEFAULT_wxUSE_PROPSHEET=no
1545 DEFAULT_wxUSE_RADIOBOX=no
1546 DEFAULT_wxUSE_RADIOBTN=no
1547 DEFAULT_wxUSE_SASH=no
1548 DEFAULT_wxUSE_SCROLLBAR=no
1549 DEFAULT_wxUSE_SLIDER=no
1550 DEFAULT_wxUSE_SPINBTN=no
1551 DEFAULT_wxUSE_SPINCTRL=no
1552 DEFAULT_wxUSE_SPLITTER=no
1553 DEFAULT_wxUSE_STATBMP=no
1554 DEFAULT_wxUSE_STATBOX=no
1555 DEFAULT_wxUSE_STATLINE=no
1556 DEFAULT_wxUSE_STATTEXT=no
1557 DEFAULT_wxUSE_STATUSBAR=yes
1558 DEFAULT_wxUSE_TABDIALOG=no
1559 DEFAULT_wxUSE_TEXTCTRL=no
1560 DEFAULT_wxUSE_TOGGLEBTN=no
1561 DEFAULT_wxUSE_TOOLBAR=no
1562 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1563 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1564 DEFAULT_wxUSE_TREECTRL=no
1565 DEFAULT_wxUSE_POPUPWIN=no
1566 DEFAULT_wxUSE_TIPWINDOW=no
1567
1568 DEFAULT_wxUSE_UNICODE=no
1569 DEFAULT_wxUSE_UNICODE_MSLU=no
1570 DEFAULT_wxUSE_WCSRTOMBS=no
1571
1572 DEFAULT_wxUSE_PALETTE=no
1573 DEFAULT_wxUSE_IMAGE=no
1574 DEFAULT_wxUSE_GIF=no
1575 DEFAULT_wxUSE_PCX=no
1576 DEFAULT_wxUSE_PNM=no
1577 DEFAULT_wxUSE_IFF=no
1578 DEFAULT_wxUSE_XPM=no
1579 DEFAULT_wxUSE_ICO_CUR=no
1580else
1581 DEFAULT_wxUSE_UNIVERSAL=no
1582
1583 DEFAULT_wxUSE_NANOX=no
1584
1585 DEFAULT_wxUSE_THREADS=yes
1586
1587 DEFAULT_wxUSE_SHARED=yes
1588 DEFAULT_wxUSE_SONAME=no
1589 DEFAULT_wxUSE_OPTIMISE=yes
1590 DEFAULT_wxUSE_PROFILE=no
1591 DEFAULT_wxUSE_NO_DEPS=no
1592 DEFAULT_wxUSE_NO_RTTI=no
1593 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1594 DEFAULT_wxUSE_PERMISSIVE=no
1595 DEFAULT_wxUSE_DEBUG_FLAG=no
1596 DEFAULT_wxUSE_DEBUG_INFO=no
1597 DEFAULT_wxUSE_DEBUG_GDB=no
1598 DEFAULT_wxUSE_MEM_TRACING=no
1599 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1600 DEFAULT_wxUSE_DMALLOC=no
1601 DEFAULT_wxUSE_PRECOMP=no
1602 DEFAULT_wxUSE_APPLE_IEEE=yes
1603
1604 DEFAULT_wxUSE_LOG=yes
1605 DEFAULT_wxUSE_LOGWINDOW=yes
1606 DEFAULT_wxUSE_LOGGUI=yes
1607 DEFAULT_wxUSE_LOGDIALOG=yes
1608
1609 DEFAULT_wxUSE_GUI=yes
1610
1611 DEFAULT_wxUSE_REGEX=yes
1612 DEFAULT_wxUSE_ZLIB=yes
1613 DEFAULT_wxUSE_LIBPNG=yes
1614 DEFAULT_wxUSE_LIBJPEG=yes
1615 DEFAULT_wxUSE_LIBTIFF=yes
1616 DEFAULT_wxUSE_ODBC=no
1617 DEFAULT_wxUSE_OPENGL=no
1618
1619 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1620 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1621 DEFAULT_wxUSE_STD_IOSTREAM=no
1622 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1623 DEFAULT_wxUSE_DATETIME=yes
1624 DEFAULT_wxUSE_TIMEDATE=no
1625 DEFAULT_wxUSE_TIMER=yes
1626 DEFAULT_wxUSE_STOPWATCH=yes
1627 DEFAULT_wxUSE_FILE=yes
1628 DEFAULT_wxUSE_FFILE=yes
1629 DEFAULT_wxUSE_TEXTBUFFER=yes
1630 DEFAULT_wxUSE_TEXTFILE=yes
1631 DEFAULT_wxUSE_WAVE=no
1632 DEFAULT_wxUSE_INTL=yes
1633 DEFAULT_wxUSE_CONFIG=yes
1634 DEFAULT_wxUSE_FONTMAP=yes
1635 DEFAULT_wxUSE_STREAMS=yes
1636 DEFAULT_wxUSE_SOCKETS=yes
1637 DEFAULT_wxUSE_OLE=yes
1638 DEFAULT_wxUSE_DATAOBJ=yes
1639 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1640 DEFAULT_wxUSE_JOYSTICK=yes
1641 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1642 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1643 DEFAULT_wxUSE_LONGLONG=yes
1644 DEFAULT_wxUSE_GEOMETRY=yes
1645
1646 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1647 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1648 DEFAULT_wxUSE_POSTSCRIPT=yes
1649
1650 DEFAULT_wxUSE_X_RESOURCES=no
1651 DEFAULT_wxUSE_CLIPBOARD=yes
1652 DEFAULT_wxUSE_TOOLTIPS=yes
1653 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1654 DEFAULT_wxUSE_DRAGIMAGE=yes
1655 DEFAULT_wxUSE_SPLINES=yes
1656
1657 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1658 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1659 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1660
1661 DEFAULT_wxUSE_PROLOGIO=no
1662 DEFAULT_wxUSE_RESOURCES=no
1663 DEFAULT_wxUSE_CONSTRAINTS=yes
1664 DEFAULT_wxUSE_IPC=yes
1665 DEFAULT_wxUSE_HELP=yes
1666 DEFAULT_wxUSE_MS_HTML_HELP=yes
1667 DEFAULT_wxUSE_WXHTML_HELP=yes
1668 DEFAULT_wxUSE_TREELAYOUT=yes
1669 DEFAULT_wxUSE_METAFILE=yes
1670 DEFAULT_wxUSE_MIMETYPE=yes
1671 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1672 DEFAULT_wxUSE_PROTOCOL=yes
1673 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1674 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1675 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1676 DEFAULT_wxUSE_URL=yes
1677
1678 DEFAULT_wxUSE_COMMONDLGS=yes
1679 DEFAULT_wxUSE_CHOICEDLG=yes
1680 DEFAULT_wxUSE_COLOURDLG=yes
1681 DEFAULT_wxUSE_DIRDLG=yes
1682 DEFAULT_wxUSE_FILEDLG=yes
1683 DEFAULT_wxUSE_FINDREPLDLG=yes
1684 DEFAULT_wxUSE_FONTDLG=yes
1685 DEFAULT_wxUSE_MSGDLG=yes
1686 DEFAULT_wxUSE_NUMBERDLG=yes
1687 DEFAULT_wxUSE_TEXTDLG=yes
1688 DEFAULT_wxUSE_SPLASH=yes
1689 DEFAULT_wxUSE_STARTUP_TIPS=yes
1690 DEFAULT_wxUSE_PROGRESSDLG=yes
1691 DEFAULT_wxUSE_WIZARDDLG=yes
1692
1693 DEFAULT_wxUSE_MENUS=yes
1694 DEFAULT_wxUSE_MINIFRAME=yes
1695 DEFAULT_wxUSE_HTML=yes
1696 DEFAULT_wxUSE_FILESYSTEM=yes
1697 DEFAULT_wxUSE_FS_INET=yes
1698 DEFAULT_wxUSE_FS_ZIP=yes
1699 DEFAULT_wxUSE_BUSYINFO=yes
1700 DEFAULT_wxUSE_ZIPSTREAM=yes
1701 DEFAULT_wxUSE_VALIDATORS=yes
1702
1703 DEFAULT_wxUSE_ACCEL=yes
1704 DEFAULT_wxUSE_BUTTON=yes
1705 DEFAULT_wxUSE_BMPBUTTON=yes
1706 DEFAULT_wxUSE_CALCTRL=yes
1707 DEFAULT_wxUSE_CARET=yes
1708 DEFAULT_wxUSE_CHECKBOX=yes
1709 DEFAULT_wxUSE_CHECKLST=yes
1710 DEFAULT_wxUSE_CHOICE=yes
1711 DEFAULT_wxUSE_COMBOBOX=yes
1712 DEFAULT_wxUSE_DISPLAY=no
1713 DEFAULT_wxUSE_GAUGE=yes
1714 DEFAULT_wxUSE_GRID=yes
1715 DEFAULT_wxUSE_NEW_GRID=yes
1716 DEFAULT_wxUSE_IMAGLIST=yes
1717 DEFAULT_wxUSE_LISTBOX=yes
1718 DEFAULT_wxUSE_LISTCTRL=yes
1719 DEFAULT_wxUSE_NOTEBOOK=yes
1720 DEFAULT_wxUSE_PROPSHEET=yes
1721 DEFAULT_wxUSE_RADIOBOX=yes
1722 DEFAULT_wxUSE_RADIOBTN=yes
1723 DEFAULT_wxUSE_SASH=yes
1724 DEFAULT_wxUSE_SCROLLBAR=yes
1725 DEFAULT_wxUSE_SLIDER=yes
1726 DEFAULT_wxUSE_SPINBTN=yes
1727 DEFAULT_wxUSE_SPINCTRL=yes
1728 DEFAULT_wxUSE_SPLITTER=yes
1729 DEFAULT_wxUSE_STATBMP=yes
1730 DEFAULT_wxUSE_STATBOX=yes
1731 DEFAULT_wxUSE_STATLINE=yes
1732 DEFAULT_wxUSE_STATTEXT=yes
1733 DEFAULT_wxUSE_STATUSBAR=yes
1734 DEFAULT_wxUSE_TABDIALOG=no
1735 DEFAULT_wxUSE_TEXTCTRL=yes
1736 DEFAULT_wxUSE_TOGGLEBTN=yes
1737 DEFAULT_wxUSE_TOOLBAR=yes
1738 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1739 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1740 DEFAULT_wxUSE_TREECTRL=yes
1741 DEFAULT_wxUSE_POPUPWIN=yes
1742 DEFAULT_wxUSE_TIPWINDOW=yes
1743
1744 DEFAULT_wxUSE_UNICODE=no
1745 DEFAULT_wxUSE_UNICODE_MSLU=yes
1746 DEFAULT_wxUSE_WCSRTOMBS=no
1747
1748 DEFAULT_wxUSE_PALETTE=yes
1749 DEFAULT_wxUSE_IMAGE=yes
1750 DEFAULT_wxUSE_GIF=yes
1751 DEFAULT_wxUSE_PCX=yes
1752 DEFAULT_wxUSE_IFF=no
1753 DEFAULT_wxUSE_PNM=yes
1754 DEFAULT_wxUSE_XPM=yes
1755 DEFAULT_wxUSE_ICO_CUR=yes
1756fi
1757
1758
1759
1760for toolkit in `echo $ALL_TOOLKITS`; do
1761 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1762 if test "x$LINE" != "x" ; then
1763 has_toolkit_in_cache=1
1764 eval "DEFAULT_$LINE"
1765 eval "CACHE_$toolkit=1"
1766 fi
1767done
1768
1769
1770
1771 enablestring=
1772 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1773echo "configure:1774: checking for --${enablestring:-enable}-gui" >&5
1774 no_cache=0
1775 # Check whether --enable-gui or --disable-gui was given.
1776if test "${enable_gui+set}" = set; then
1777 enableval="$enable_gui"
1778
1779 if test "$enableval" = yes; then
1780 ac_cv_use_gui='wxUSE_GUI=yes'
1781 else
1782 ac_cv_use_gui='wxUSE_GUI=no'
1783 fi
1784
1785else
1786
1787 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1788 if test "x$LINE" != x ; then
1789 eval "DEFAULT_$LINE"
1790 else
1791 no_cache=1
1792 fi
1793
1794 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1795
1796fi
1797
1798
1799 eval "$ac_cv_use_gui"
1800 if test "$no_cache" != 1; then
1801 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1802 fi
1803
1804 if test "$wxUSE_GUI" = yes; then
1805 echo "$ac_t""yes" 1>&6
1806 else
1807 echo "$ac_t""no" 1>&6
1808 fi
1809
1810
1811if test "$wxUSE_GUI" = "yes"; then
1812
1813
1814 enablestring=
1815 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1816echo "configure:1817: checking for --${enablestring:-enable}-universal" >&5
1817 no_cache=0
1818 # Check whether --enable-universal or --disable-universal was given.
1819if test "${enable_universal+set}" = set; then
1820 enableval="$enable_universal"
1821
1822 if test "$enableval" = yes; then
1823 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1824 else
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1826 fi
1827
1828else
1829
1830 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
1837 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1838
1839fi
1840
1841
1842 eval "$ac_cv_use_universal"
1843 if test "$no_cache" != 1; then
1844 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1845 fi
1846
1847 if test "$wxUSE_UNIVERSAL" = yes; then
1848 echo "$ac_t""yes" 1>&6
1849 else
1850 echo "$ac_t""no" 1>&6
1851 fi
1852
1853# Check whether --with-gtk or --without-gtk was given.
1854if test "${with_gtk+set}" = set; then
1855 withval="$with_gtk"
1856 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1857fi
1858
1859# Check whether --with-motif or --without-motif was given.
1860if test "${with_motif+set}" = set; then
1861 withval="$with_motif"
1862 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1863fi
1864
1865# Check whether --with-mac or --without-mac was given.
1866if test "${with_mac+set}" = set; then
1867 withval="$with_mac"
1868 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1869fi
1870
1871# Check whether --with-wine or --without-wine was given.
1872if test "${with_wine+set}" = set; then
1873 withval="$with_wine"
1874 wxUSE_WINE="$withval" CACHE_WINE=1
1875fi
1876
1877# Check whether --with-msw or --without-msw was given.
1878if test "${with_msw+set}" = set; then
1879 withval="$with_msw"
1880 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1881fi
1882
1883# Check whether --with-pm or --without-pm was given.
1884if test "${with_pm+set}" = set; then
1885 withval="$with_pm"
1886 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1887fi
1888
1889# Check whether --with-mgl or --without-mgl was given.
1890if test "${with_mgl+set}" = set; then
1891 withval="$with_mgl"
1892 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1893fi
1894
1895# Check whether --with-microwin or --without-microwin was given.
1896if test "${with_microwin+set}" = set; then
1897 withval="$with_microwin"
1898 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1899fi
1900
1901# Check whether --with-x11 or --without-x11 was given.
1902if test "${with_x11+set}" = set; then
1903 withval="$with_x11"
1904 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1905fi
1906
1907
1908 enablestring=
1909 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1910echo "configure:1911: checking for --${enablestring:-enable}-nanox" >&5
1911 no_cache=0
1912 # Check whether --enable-nanox or --disable-nanox was given.
1913if test "${enable_nanox+set}" = set; then
1914 enableval="$enable_nanox"
1915
1916 if test "$enableval" = yes; then
1917 ac_cv_use_nanox='wxUSE_NANOX=yes'
1918 else
1919 ac_cv_use_nanox='wxUSE_NANOX=no'
1920 fi
1921
1922else
1923
1924 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1925 if test "x$LINE" != x ; then
1926 eval "DEFAULT_$LINE"
1927 else
1928 no_cache=1
1929 fi
1930
1931 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1932
1933fi
1934
1935
1936 eval "$ac_cv_use_nanox"
1937 if test "$no_cache" != 1; then
1938 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1939 fi
1940
1941 if test "$wxUSE_NANOX" = yes; then
1942 echo "$ac_t""yes" 1>&6
1943 else
1944 echo "$ac_t""no" 1>&6
1945 fi
1946
1947
1948
1949 enablestring=
1950 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1951echo "configure:1952: checking for --${enablestring:-enable}-gtk2" >&5
1952 no_cache=0
1953 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1954if test "${enable_gtk2+set}" = set; then
1955 enableval="$enable_gtk2"
1956
1957 if test "$enableval" = yes; then
1958 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1959 else
1960 ac_cv_use_gtk2='wxUSE_GTK2=no'
1961 fi
1962
1963else
1964
1965 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1966 if test "x$LINE" != x ; then
1967 eval "DEFAULT_$LINE"
1968 else
1969 no_cache=1
1970 fi
1971
1972 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1973
1974fi
1975
1976
1977 eval "$ac_cv_use_gtk2"
1978 if test "$no_cache" != 1; then
1979 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1980 fi
1981
1982 if test "$wxUSE_GTK2" = yes; then
1983 echo "$ac_t""yes" 1>&6
1984 else
1985 echo "$ac_t""no" 1>&6
1986 fi
1987
1988
1989
1990 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1991echo "configure:1992: checking for --with-libpng" >&5
1992 no_cache=0
1993 # Check whether --with-libpng or --without-libpng was given.
1994if test "${with_libpng+set}" = set; then
1995 withval="$with_libpng"
1996
1997 if test "$withval" = yes; then
1998 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1999 elif test "$withval" = no; then
2000 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2001 elif test "$withval" = sys; then
2002 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2003 elif test "$withval" = builtin; then
2004 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2005 else
2006 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2007 fi
2008
2009else
2010
2011 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2012 if test "x$LINE" != x ; then
2013 eval "DEFAULT_$LINE"
2014 else
2015 no_cache=1
2016 fi
2017
2018 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2019
2020fi
2021
2022
2023 eval "$ac_cv_use_libpng"
2024 if test "$no_cache" != 1; then
2025 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2026 fi
2027
2028 if test "$wxUSE_LIBPNG" = yes; then
2029 echo "$ac_t""yes" 1>&6
2030 elif test "$wxUSE_LIBPNG" = no; then
2031 echo "$ac_t""no" 1>&6
2032 elif test "$wxUSE_LIBPNG" = sys; then
2033 echo "$ac_t""system version" 1>&6
2034 elif test "$wxUSE_LIBPNG" = builtin; then
2035 echo "$ac_t""builtin version" 1>&6
2036 else
2037 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2038 fi
2039
2040
2041 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2042echo "configure:2043: checking for --with-libjpeg" >&5
2043 no_cache=0
2044 # Check whether --with-libjpeg or --without-libjpeg was given.
2045if test "${with_libjpeg+set}" = set; then
2046 withval="$with_libjpeg"
2047
2048 if test "$withval" = yes; then
2049 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2050 elif test "$withval" = no; then
2051 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2052 elif test "$withval" = sys; then
2053 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2054 elif test "$withval" = builtin; then
2055 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2056 else
2057 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2058 fi
2059
2060else
2061
2062 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2063 if test "x$LINE" != x ; then
2064 eval "DEFAULT_$LINE"
2065 else
2066 no_cache=1
2067 fi
2068
2069 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2070
2071fi
2072
2073
2074 eval "$ac_cv_use_libjpeg"
2075 if test "$no_cache" != 1; then
2076 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2077 fi
2078
2079 if test "$wxUSE_LIBJPEG" = yes; then
2080 echo "$ac_t""yes" 1>&6
2081 elif test "$wxUSE_LIBJPEG" = no; then
2082 echo "$ac_t""no" 1>&6
2083 elif test "$wxUSE_LIBJPEG" = sys; then
2084 echo "$ac_t""system version" 1>&6
2085 elif test "$wxUSE_LIBJPEG" = builtin; then
2086 echo "$ac_t""builtin version" 1>&6
2087 else
2088 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2089 fi
2090
2091
2092 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2093echo "configure:2094: checking for --with-libtiff" >&5
2094 no_cache=0
2095 # Check whether --with-libtiff or --without-libtiff was given.
2096if test "${with_libtiff+set}" = set; then
2097 withval="$with_libtiff"
2098
2099 if test "$withval" = yes; then
2100 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2101 elif test "$withval" = no; then
2102 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2103 elif test "$withval" = sys; then
2104 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2105 elif test "$withval" = builtin; then
2106 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2107 else
2108 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2109 fi
2110
2111else
2112
2113 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2114 if test "x$LINE" != x ; then
2115 eval "DEFAULT_$LINE"
2116 else
2117 no_cache=1
2118 fi
2119
2120 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2121
2122fi
2123
2124
2125 eval "$ac_cv_use_libtiff"
2126 if test "$no_cache" != 1; then
2127 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2128 fi
2129
2130 if test "$wxUSE_LIBTIFF" = yes; then
2131 echo "$ac_t""yes" 1>&6
2132 elif test "$wxUSE_LIBTIFF" = no; then
2133 echo "$ac_t""no" 1>&6
2134 elif test "$wxUSE_LIBTIFF" = sys; then
2135 echo "$ac_t""system version" 1>&6
2136 elif test "$wxUSE_LIBTIFF" = builtin; then
2137 echo "$ac_t""builtin version" 1>&6
2138 else
2139 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2140 fi
2141
2142
2143 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2144echo "configure:2145: checking for --with-opengl" >&5
2145 no_cache=0
2146 # Check whether --with-opengl or --without-opengl was given.
2147if test "${with_opengl+set}" = set; then
2148 withval="$with_opengl"
2149
2150 if test "$withval" = yes; then
2151 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2152 else
2153 ac_cv_use_opengl='wxUSE_OPENGL=no'
2154 fi
2155
2156else
2157
2158 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2159 if test "x$LINE" != x ; then
2160 eval "DEFAULT_$LINE"
2161 else
2162 no_cache=1
2163 fi
2164
2165 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2166
2167fi
2168
2169
2170 eval "$ac_cv_use_opengl"
2171 if test "$no_cache" != 1; then
2172 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2173 fi
2174
2175 if test "$wxUSE_OPENGL" = yes; then
2176 echo "$ac_t""yes" 1>&6
2177 else
2178 echo "$ac_t""no" 1>&6
2179 fi
2180
2181
2182fi
2183
2184
2185 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2186echo "configure:2187: checking for --with-dmalloc" >&5
2187 no_cache=0
2188 # Check whether --with-dmalloc or --without-dmalloc was given.
2189if test "${with_dmalloc+set}" = set; then
2190 withval="$with_dmalloc"
2191
2192 if test "$withval" = yes; then
2193 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2194 else
2195 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2196 fi
2197
2198else
2199
2200 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2201 if test "x$LINE" != x ; then
2202 eval "DEFAULT_$LINE"
2203 else
2204 no_cache=1
2205 fi
2206
2207 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2208
2209fi
2210
2211
2212 eval "$ac_cv_use_dmalloc"
2213 if test "$no_cache" != 1; then
2214 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2215 fi
2216
2217 if test "$wxUSE_DMALLOC" = yes; then
2218 echo "$ac_t""yes" 1>&6
2219 else
2220 echo "$ac_t""no" 1>&6
2221 fi
2222
2223
2224 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2225echo "configure:2226: checking for --with-regex" >&5
2226 no_cache=0
2227 # Check whether --with-regex or --without-regex was given.
2228if test "${with_regex+set}" = set; then
2229 withval="$with_regex"
2230
2231 if test "$withval" = yes; then
2232 ac_cv_use_regex='wxUSE_REGEX=yes'
2233 elif test "$withval" = no; then
2234 ac_cv_use_regex='wxUSE_REGEX=no'
2235 elif test "$withval" = sys; then
2236 ac_cv_use_regex='wxUSE_REGEX=sys'
2237 elif test "$withval" = builtin; then
2238 ac_cv_use_regex='wxUSE_REGEX=builtin'
2239 else
2240 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2241 fi
2242
2243else
2244
2245 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2246 if test "x$LINE" != x ; then
2247 eval "DEFAULT_$LINE"
2248 else
2249 no_cache=1
2250 fi
2251
2252 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2253
2254fi
2255
2256
2257 eval "$ac_cv_use_regex"
2258 if test "$no_cache" != 1; then
2259 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2260 fi
2261
2262 if test "$wxUSE_REGEX" = yes; then
2263 echo "$ac_t""yes" 1>&6
2264 elif test "$wxUSE_REGEX" = no; then
2265 echo "$ac_t""no" 1>&6
2266 elif test "$wxUSE_REGEX" = sys; then
2267 echo "$ac_t""system version" 1>&6
2268 elif test "$wxUSE_REGEX" = builtin; then
2269 echo "$ac_t""builtin version" 1>&6
2270 else
2271 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2272 fi
2273
2274
2275 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2276echo "configure:2277: checking for --with-zlib" >&5
2277 no_cache=0
2278 # Check whether --with-zlib or --without-zlib was given.
2279if test "${with_zlib+set}" = set; then
2280 withval="$with_zlib"
2281
2282 if test "$withval" = yes; then
2283 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2284 elif test "$withval" = no; then
2285 ac_cv_use_zlib='wxUSE_ZLIB=no'
2286 elif test "$withval" = sys; then
2287 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2288 elif test "$withval" = builtin; then
2289 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2290 else
2291 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2292 fi
2293
2294else
2295
2296 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2297 if test "x$LINE" != x ; then
2298 eval "DEFAULT_$LINE"
2299 else
2300 no_cache=1
2301 fi
2302
2303 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2304
2305fi
2306
2307
2308 eval "$ac_cv_use_zlib"
2309 if test "$no_cache" != 1; then
2310 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2311 fi
2312
2313 if test "$wxUSE_ZLIB" = yes; then
2314 echo "$ac_t""yes" 1>&6
2315 elif test "$wxUSE_ZLIB" = no; then
2316 echo "$ac_t""no" 1>&6
2317 elif test "$wxUSE_ZLIB" = sys; then
2318 echo "$ac_t""system version" 1>&6
2319 elif test "$wxUSE_ZLIB" = builtin; then
2320 echo "$ac_t""builtin version" 1>&6
2321 else
2322 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2323 fi
2324
2325
2326 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2327echo "configure:2328: checking for --with-odbc" >&5
2328 no_cache=0
2329 # Check whether --with-odbc or --without-odbc was given.
2330if test "${with_odbc+set}" = set; then
2331 withval="$with_odbc"
2332
2333 if test "$withval" = yes; then
2334 ac_cv_use_odbc='wxUSE_ODBC=yes'
2335 else
2336 ac_cv_use_odbc='wxUSE_ODBC=no'
2337 fi
2338
2339else
2340
2341 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
2348 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2349
2350fi
2351
2352
2353 eval "$ac_cv_use_odbc"
2354 if test "$no_cache" != 1; then
2355 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2356 fi
2357
2358 if test "$wxUSE_ODBC" = yes; then
2359 echo "$ac_t""yes" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2362 fi
2363
2364
2365
2366
2367 enablestring=
2368 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2369echo "configure:2370: checking for --${enablestring:-enable}-shared" >&5
2370 no_cache=0
2371 # Check whether --enable-shared or --disable-shared was given.
2372if test "${enable_shared+set}" = set; then
2373 enableval="$enable_shared"
2374
2375 if test "$enableval" = yes; then
2376 ac_cv_use_shared='wxUSE_SHARED=yes'
2377 else
2378 ac_cv_use_shared='wxUSE_SHARED=no'
2379 fi
2380
2381else
2382
2383 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2384 if test "x$LINE" != x ; then
2385 eval "DEFAULT_$LINE"
2386 else
2387 no_cache=1
2388 fi
2389
2390 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2391
2392fi
2393
2394
2395 eval "$ac_cv_use_shared"
2396 if test "$no_cache" != 1; then
2397 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2398 fi
2399
2400 if test "$wxUSE_SHARED" = yes; then
2401 echo "$ac_t""yes" 1>&6
2402 else
2403 echo "$ac_t""no" 1>&6
2404 fi
2405
2406
2407 enablestring=
2408 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2409echo "configure:2410: checking for --${enablestring:-enable}-soname" >&5
2410 no_cache=0
2411 # Check whether --enable-soname or --disable-soname was given.
2412if test "${enable_soname+set}" = set; then
2413 enableval="$enable_soname"
2414
2415 if test "$enableval" = yes; then
2416 ac_cv_use_soname='wxUSE_SONAME=yes'
2417 else
2418 ac_cv_use_soname='wxUSE_SONAME=no'
2419 fi
2420
2421else
2422
2423 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2424 if test "x$LINE" != x ; then
2425 eval "DEFAULT_$LINE"
2426 else
2427 no_cache=1
2428 fi
2429
2430 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2431
2432fi
2433
2434
2435 eval "$ac_cv_use_soname"
2436 if test "$no_cache" != 1; then
2437 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2438 fi
2439
2440 if test "$wxUSE_SONAME" = yes; then
2441 echo "$ac_t""yes" 1>&6
2442 else
2443 echo "$ac_t""no" 1>&6
2444 fi
2445
2446
2447 enablestring=
2448 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2449echo "configure:2450: checking for --${enablestring:-enable}-optimise" >&5
2450 no_cache=0
2451 # Check whether --enable-optimise or --disable-optimise was given.
2452if test "${enable_optimise+set}" = set; then
2453 enableval="$enable_optimise"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2457 else
2458 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2471
2472fi
2473
2474
2475 eval "$ac_cv_use_optimise"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_OPTIMISE" = yes; then
2481 echo "$ac_t""yes" 1>&6
2482 else
2483 echo "$ac_t""no" 1>&6
2484 fi
2485
2486
2487 enablestring=
2488 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2489echo "configure:2490: checking for --${enablestring:-enable}-debug" >&5
2490 no_cache=0
2491 # Check whether --enable-debug or --disable-debug was given.
2492if test "${enable_debug+set}" = set; then
2493 enableval="$enable_debug"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_debug='wxUSE_DEBUG=yes'
2497 else
2498 ac_cv_use_debug='wxUSE_DEBUG=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_DEBUG" ${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='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2511
2512fi
2513
2514
2515 eval "$ac_cv_use_debug"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_DEBUG" = yes; then
2521 echo "$ac_t""yes" 1>&6
2522 else
2523 echo "$ac_t""no" 1>&6
2524 fi
2525
2526
2527
2528 enablestring=
2529 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2530echo "configure:2531: checking for --${enablestring:-enable}-precomp" >&5
2531 no_cache=0
2532 # Check whether --enable-precomp or --disable-precomp was given.
2533if test "${enable_precomp+set}" = set; then
2534 enableval="$enable_precomp"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2538 else
2539 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2552
2553fi
2554
2555
2556 eval "$ac_cv_use_precomp"
2557 if test "$no_cache" != 1; then
2558 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2559 fi
2560
2561 if test "$wxUSE_PRECOMP" = yes; then
2562 echo "$ac_t""yes" 1>&6
2563 else
2564 echo "$ac_t""no" 1>&6
2565 fi
2566
2567
2568if test "$wxUSE_DEBUG" = "yes"; then
2569 DEFAULT_wxUSE_DEBUG_FLAG=yes
2570 DEFAULT_wxUSE_DEBUG_INFO=yes
2571elif test "$wxUSE_DEBUG" = "no"; then
2572 DEFAULT_wxUSE_DEBUG_FLAG=no
2573 DEFAULT_wxUSE_DEBUG_INFO=no
2574fi
2575
2576
2577 enablestring=
2578 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2579echo "configure:2580: checking for --${enablestring:-enable}-debug_flag" >&5
2580 no_cache=0
2581 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2582if test "${enable_debug_flag+set}" = set; then
2583 enableval="$enable_debug_flag"
2584
2585 if test "$enableval" = yes; then
2586 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2587 else
2588 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2589 fi
2590
2591else
2592
2593 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2594 if test "x$LINE" != x ; then
2595 eval "DEFAULT_$LINE"
2596 else
2597 no_cache=1
2598 fi
2599
2600 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2601
2602fi
2603
2604
2605 eval "$ac_cv_use_debug_flag"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxUSE_DEBUG_FLAG" = yes; then
2611 echo "$ac_t""yes" 1>&6
2612 else
2613 echo "$ac_t""no" 1>&6
2614 fi
2615
2616
2617 enablestring=
2618 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2619echo "configure:2620: checking for --${enablestring:-enable}-debug_info" >&5
2620 no_cache=0
2621 # Check whether --enable-debug_info or --disable-debug_info was given.
2622if test "${enable_debug_info+set}" = set; then
2623 enableval="$enable_debug_info"
2624
2625 if test "$enableval" = yes; then
2626 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2627 else
2628 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2629 fi
2630
2631else
2632
2633 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2634 if test "x$LINE" != x ; then
2635 eval "DEFAULT_$LINE"
2636 else
2637 no_cache=1
2638 fi
2639
2640 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2641
2642fi
2643
2644
2645 eval "$ac_cv_use_debug_info"
2646 if test "$no_cache" != 1; then
2647 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2648 fi
2649
2650 if test "$wxUSE_DEBUG_INFO" = yes; then
2651 echo "$ac_t""yes" 1>&6
2652 else
2653 echo "$ac_t""no" 1>&6
2654 fi
2655
2656
2657 enablestring=
2658 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2659echo "configure:2660: checking for --${enablestring:-enable}-debug_gdb" >&5
2660 no_cache=0
2661 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2662if test "${enable_debug_gdb+set}" = set; then
2663 enableval="$enable_debug_gdb"
2664
2665 if test "$enableval" = yes; then
2666 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2667 else
2668 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2669 fi
2670
2671else
2672
2673 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2681
2682fi
2683
2684
2685 eval "$ac_cv_use_debug_gdb"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_DEBUG_GDB" = yes; then
2691 echo "$ac_t""yes" 1>&6
2692 else
2693 echo "$ac_t""no" 1>&6
2694 fi
2695
2696
2697 enablestring=
2698 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2699echo "configure:2700: checking for --${enablestring:-enable}-debug_cntxt" >&5
2700 no_cache=0
2701 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2702if test "${enable_debug_cntxt+set}" = set; then
2703 enableval="$enable_debug_cntxt"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2707 else
2708 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2709 fi
2710
2711else
2712
2713 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2721
2722fi
2723
2724
2725 eval "$ac_cv_use_debug_cntxt"
2726 if test "$no_cache" != 1; then
2727 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2728 fi
2729
2730 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2731 echo "$ac_t""yes" 1>&6
2732 else
2733 echo "$ac_t""no" 1>&6
2734 fi
2735
2736
2737 enablestring=
2738 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2739echo "configure:2740: checking for --${enablestring:-enable}-mem_tracing" >&5
2740 no_cache=0
2741 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2742if test "${enable_mem_tracing+set}" = set; then
2743 enableval="$enable_mem_tracing"
2744
2745 if test "$enableval" = yes; then
2746 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2747 else
2748 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2749 fi
2750
2751else
2752
2753 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2754 if test "x$LINE" != x ; then
2755 eval "DEFAULT_$LINE"
2756 else
2757 no_cache=1
2758 fi
2759
2760 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2761
2762fi
2763
2764
2765 eval "$ac_cv_use_mem_tracing"
2766 if test "$no_cache" != 1; then
2767 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2768 fi
2769
2770 if test "$wxUSE_MEM_TRACING" = yes; then
2771 echo "$ac_t""yes" 1>&6
2772 else
2773 echo "$ac_t""no" 1>&6
2774 fi
2775
2776
2777 enablestring=
2778 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2779echo "configure:2780: checking for --${enablestring:-enable}-profile" >&5
2780 no_cache=0
2781 # Check whether --enable-profile or --disable-profile was given.
2782if test "${enable_profile+set}" = set; then
2783 enableval="$enable_profile"
2784
2785 if test "$enableval" = yes; then
2786 ac_cv_use_profile='wxUSE_PROFILE=yes'
2787 else
2788 ac_cv_use_profile='wxUSE_PROFILE=no'
2789 fi
2790
2791else
2792
2793 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2794 if test "x$LINE" != x ; then
2795 eval "DEFAULT_$LINE"
2796 else
2797 no_cache=1
2798 fi
2799
2800 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2801
2802fi
2803
2804
2805 eval "$ac_cv_use_profile"
2806 if test "$no_cache" != 1; then
2807 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2808 fi
2809
2810 if test "$wxUSE_PROFILE" = yes; then
2811 echo "$ac_t""yes" 1>&6
2812 else
2813 echo "$ac_t""no" 1>&6
2814 fi
2815
2816
2817 enablestring=
2818 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2819echo "configure:2820: checking for --${enablestring:-enable}-no_rtti" >&5
2820 no_cache=0
2821 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2822if test "${enable_no_rtti+set}" = set; then
2823 enableval="$enable_no_rtti"
2824
2825 if test "$enableval" = yes; then
2826 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2827 else
2828 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2829 fi
2830
2831else
2832
2833 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2841
2842fi
2843
2844
2845 eval "$ac_cv_use_no_rtti"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_NO_RTTI" = yes; then
2851 echo "$ac_t""yes" 1>&6
2852 else
2853 echo "$ac_t""no" 1>&6
2854 fi
2855
2856
2857 enablestring=
2858 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2859echo "configure:2860: checking for --${enablestring:-enable}-no_exceptions" >&5
2860 no_cache=0
2861 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2862if test "${enable_no_exceptions+set}" = set; then
2863 enableval="$enable_no_exceptions"
2864
2865 if test "$enableval" = yes; then
2866 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2867 else
2868 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2869 fi
2870
2871else
2872
2873 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2874 if test "x$LINE" != x ; then
2875 eval "DEFAULT_$LINE"
2876 else
2877 no_cache=1
2878 fi
2879
2880 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2881
2882fi
2883
2884
2885 eval "$ac_cv_use_no_exceptions"
2886 if test "$no_cache" != 1; then
2887 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2888 fi
2889
2890 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2891 echo "$ac_t""yes" 1>&6
2892 else
2893 echo "$ac_t""no" 1>&6
2894 fi
2895
2896
2897 enablestring=
2898 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2899echo "configure:2900: checking for --${enablestring:-enable}-permissive" >&5
2900 no_cache=0
2901 # Check whether --enable-permissive or --disable-permissive was given.
2902if test "${enable_permissive+set}" = set; then
2903 enableval="$enable_permissive"
2904
2905 if test "$enableval" = yes; then
2906 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2907 else
2908 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2909 fi
2910
2911else
2912
2913 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2914 if test "x$LINE" != x ; then
2915 eval "DEFAULT_$LINE"
2916 else
2917 no_cache=1
2918 fi
2919
2920 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2921
2922fi
2923
2924
2925 eval "$ac_cv_use_permissive"
2926 if test "$no_cache" != 1; then
2927 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2928 fi
2929
2930 if test "$wxUSE_PERMISSIVE" = yes; then
2931 echo "$ac_t""yes" 1>&6
2932 else
2933 echo "$ac_t""no" 1>&6
2934 fi
2935
2936
2937 enablestring=
2938 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2939echo "configure:2940: checking for --${enablestring:-enable}-no_deps" >&5
2940 no_cache=0
2941 # Check whether --enable-no_deps or --disable-no_deps was given.
2942if test "${enable_no_deps+set}" = set; then
2943 enableval="$enable_no_deps"
2944
2945 if test "$enableval" = yes; then
2946 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2947 else
2948 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2949 fi
2950
2951else
2952
2953 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2954 if test "x$LINE" != x ; then
2955 eval "DEFAULT_$LINE"
2956 else
2957 no_cache=1
2958 fi
2959
2960 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2961
2962fi
2963
2964
2965 eval "$ac_cv_use_no_deps"
2966 if test "$no_cache" != 1; then
2967 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2968 fi
2969
2970 if test "$wxUSE_NO_DEPS" = yes; then
2971 echo "$ac_t""yes" 1>&6
2972 else
2973 echo "$ac_t""no" 1>&6
2974 fi
2975
2976
2977
2978 enablestring=
2979 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2980echo "configure:2981: checking for --${enablestring:-enable}-compat20" >&5
2981 no_cache=0
2982 # Check whether --enable-compat20 or --disable-compat20 was given.
2983if test "${enable_compat20+set}" = set; then
2984 enableval="$enable_compat20"
2985
2986 if test "$enableval" = yes; then
2987 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2988 else
2989 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2990 fi
2991
2992else
2993
2994 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2995 if test "x$LINE" != x ; then
2996 eval "DEFAULT_$LINE"
2997 else
2998 no_cache=1
2999 fi
3000
3001 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3002
3003fi
3004
3005
3006 eval "$ac_cv_use_compat20"
3007 if test "$no_cache" != 1; then
3008 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3009 fi
3010
3011 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3012 echo "$ac_t""yes" 1>&6
3013 else
3014 echo "$ac_t""no" 1>&6
3015 fi
3016
3017
3018 enablestring=
3019 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3020echo "configure:3021: checking for --${enablestring:-enable}-compat22" >&5
3021 no_cache=0
3022 # Check whether --enable-compat22 or --disable-compat22 was given.
3023if test "${enable_compat22+set}" = set; then
3024 enableval="$enable_compat22"
3025
3026 if test "$enableval" = yes; then
3027 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3028 else
3029 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3030 fi
3031
3032else
3033
3034 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3035 if test "x$LINE" != x ; then
3036 eval "DEFAULT_$LINE"
3037 else
3038 no_cache=1
3039 fi
3040
3041 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3042
3043fi
3044
3045
3046 eval "$ac_cv_use_compat22"
3047 if test "$no_cache" != 1; then
3048 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3049 fi
3050
3051 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3052 echo "$ac_t""yes" 1>&6
3053 else
3054 echo "$ac_t""no" 1>&6
3055 fi
3056
3057
3058 enablestring=disable
3059 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3060echo "configure:3061: checking for --${enablestring:-enable}-compat24" >&5
3061 no_cache=0
3062 # Check whether --enable-compat24 or --disable-compat24 was given.
3063if test "${enable_compat24+set}" = set; then
3064 enableval="$enable_compat24"
3065
3066 if test "$enableval" = yes; then
3067 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3068 else
3069 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3070 fi
3071
3072else
3073
3074 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3075 if test "x$LINE" != x ; then
3076 eval "DEFAULT_$LINE"
3077 else
3078 no_cache=1
3079 fi
3080
3081 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3082
3083fi
3084
3085
3086 eval "$ac_cv_use_compat24"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3092 echo "$ac_t""yes" 1>&6
3093 else
3094 echo "$ac_t""no" 1>&6
3095 fi
3096
3097
3098# Check whether --enable-rpath or --disable-rpath was given.
3099if test "${enable_rpath+set}" = set; then
3100 enableval="$enable_rpath"
3101 wxRPATH_DIR="$enableval"
3102fi
3103
3104
3105if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3106 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3107fi
3108
3109
3110
3111
3112 enablestring=
3113 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3114echo "configure:3115: checking for --${enablestring:-enable}-intl" >&5
3115 no_cache=0
3116 # Check whether --enable-intl or --disable-intl was given.
3117if test "${enable_intl+set}" = set; then
3118 enableval="$enable_intl"
3119
3120 if test "$enableval" = yes; then
3121 ac_cv_use_intl='wxUSE_INTL=yes'
3122 else
3123 ac_cv_use_intl='wxUSE_INTL=no'
3124 fi
3125
3126else
3127
3128 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3136
3137fi
3138
3139
3140 eval "$ac_cv_use_intl"
3141 if test "$no_cache" != 1; then
3142 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3143 fi
3144
3145 if test "$wxUSE_INTL" = yes; then
3146 echo "$ac_t""yes" 1>&6
3147 else
3148 echo "$ac_t""no" 1>&6
3149 fi
3150
3151
3152 enablestring=
3153 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3154echo "configure:3155: checking for --${enablestring:-enable}-config" >&5
3155 no_cache=0
3156 # Check whether --enable-config or --disable-config was given.
3157if test "${enable_config+set}" = set; then
3158 enableval="$enable_config"
3159
3160 if test "$enableval" = yes; then
3161 ac_cv_use_config='wxUSE_CONFIG=yes'
3162 else
3163 ac_cv_use_config='wxUSE_CONFIG=no'
3164 fi
3165
3166else
3167
3168 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3169 if test "x$LINE" != x ; then
3170 eval "DEFAULT_$LINE"
3171 else
3172 no_cache=1
3173 fi
3174
3175 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3176
3177fi
3178
3179
3180 eval "$ac_cv_use_config"
3181 if test "$no_cache" != 1; then
3182 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3183 fi
3184
3185 if test "$wxUSE_CONFIG" = yes; then
3186 echo "$ac_t""yes" 1>&6
3187 else
3188 echo "$ac_t""no" 1>&6
3189 fi
3190
3191
3192
3193 enablestring=
3194 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3195echo "configure:3196: checking for --${enablestring:-enable}-protocols" >&5
3196 no_cache=0
3197 # Check whether --enable-protocols or --disable-protocols was given.
3198if test "${enable_protocols+set}" = set; then
3199 enableval="$enable_protocols"
3200
3201 if test "$enableval" = yes; then
3202 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3203 else
3204 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3205 fi
3206
3207else
3208
3209 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3210 if test "x$LINE" != x ; then
3211 eval "DEFAULT_$LINE"
3212 else
3213 no_cache=1
3214 fi
3215
3216 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3217
3218fi
3219
3220
3221 eval "$ac_cv_use_protocols"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_PROTOCOL" = yes; then
3227 echo "$ac_t""yes" 1>&6
3228 else
3229 echo "$ac_t""no" 1>&6
3230 fi
3231
3232
3233 enablestring=
3234 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3235echo "configure:3236: checking for --${enablestring:-enable}-ftp" >&5
3236 no_cache=0
3237 # Check whether --enable-ftp or --disable-ftp was given.
3238if test "${enable_ftp+set}" = set; then
3239 enableval="$enable_ftp"
3240
3241 if test "$enableval" = yes; then
3242 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3243 else
3244 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3245 fi
3246
3247else
3248
3249 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3250 if test "x$LINE" != x ; then
3251 eval "DEFAULT_$LINE"
3252 else
3253 no_cache=1
3254 fi
3255
3256 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3257
3258fi
3259
3260
3261 eval "$ac_cv_use_ftp"
3262 if test "$no_cache" != 1; then
3263 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3264 fi
3265
3266 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3267 echo "$ac_t""yes" 1>&6
3268 else
3269 echo "$ac_t""no" 1>&6
3270 fi
3271
3272
3273 enablestring=
3274 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3275echo "configure:3276: checking for --${enablestring:-enable}-http" >&5
3276 no_cache=0
3277 # Check whether --enable-http or --disable-http was given.
3278if test "${enable_http+set}" = set; then
3279 enableval="$enable_http"
3280
3281 if test "$enableval" = yes; then
3282 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3283 else
3284 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3297
3298fi
3299
3300
3301 eval "$ac_cv_use_http"
3302 if test "$no_cache" != 1; then
3303 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3304 fi
3305
3306 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3307 echo "$ac_t""yes" 1>&6
3308 else
3309 echo "$ac_t""no" 1>&6
3310 fi
3311
3312
3313 enablestring=
3314 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3315echo "configure:3316: checking for --${enablestring:-enable}-fileproto" >&5
3316 no_cache=0
3317 # Check whether --enable-fileproto or --disable-fileproto was given.
3318if test "${enable_fileproto+set}" = set; then
3319 enableval="$enable_fileproto"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3323 else
3324 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3325 fi
3326
3327else
3328
3329 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3337
3338fi
3339
3340
3341 eval "$ac_cv_use_fileproto"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 enablestring=
3354 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3355echo "configure:3356: checking for --${enablestring:-enable}-sockets" >&5
3356 no_cache=0
3357 # Check whether --enable-sockets or --disable-sockets was given.
3358if test "${enable_sockets+set}" = set; then
3359 enableval="$enable_sockets"
3360
3361 if test "$enableval" = yes; then
3362 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3363 else
3364 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3365 fi
3366
3367else
3368
3369 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3377
3378fi
3379
3380
3381 eval "$ac_cv_use_sockets"
3382 if test "$no_cache" != 1; then
3383 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3384 fi
3385
3386 if test "$wxUSE_SOCKETS" = yes; then
3387 echo "$ac_t""yes" 1>&6
3388 else
3389 echo "$ac_t""no" 1>&6
3390 fi
3391
3392
3393 enablestring=
3394 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3395echo "configure:3396: checking for --${enablestring:-enable}-ole" >&5
3396 no_cache=0
3397 # Check whether --enable-ole or --disable-ole was given.
3398if test "${enable_ole+set}" = set; then
3399 enableval="$enable_ole"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_ole='wxUSE_OLE=yes'
3403 else
3404 ac_cv_use_ole='wxUSE_OLE=no'
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3417
3418fi
3419
3420
3421 eval "$ac_cv_use_ole"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_OLE" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433 enablestring=
3434 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3435echo "configure:3436: checking for --${enablestring:-enable}-dataobj" >&5
3436 no_cache=0
3437 # Check whether --enable-dataobj or --disable-dataobj was given.
3438if test "${enable_dataobj+set}" = set; then
3439 enableval="$enable_dataobj"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3443 else
3444 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3445 fi
3446
3447else
3448
3449 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3457
3458fi
3459
3460
3461 eval "$ac_cv_use_dataobj"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_DATAOBJ" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473
3474 enablestring=
3475 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3476echo "configure:3477: checking for --${enablestring:-enable}-ipc" >&5
3477 no_cache=0
3478 # Check whether --enable-ipc or --disable-ipc was given.
3479if test "${enable_ipc+set}" = set; then
3480 enableval="$enable_ipc"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_ipc='wxUSE_IPC=yes'
3484 else
3485 ac_cv_use_ipc='wxUSE_IPC=no'
3486 fi
3487
3488else
3489
3490 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3498
3499fi
3500
3501
3502 eval "$ac_cv_use_ipc"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_IPC" = yes; then
3508 echo "$ac_t""yes" 1>&6
3509 else
3510 echo "$ac_t""no" 1>&6
3511 fi
3512
3513
3514
3515 enablestring=
3516 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3517echo "configure:3518: checking for --${enablestring:-enable}-cmdline" >&5
3518 no_cache=0
3519 # Check whether --enable-cmdline or --disable-cmdline was given.
3520if test "${enable_cmdline+set}" = set; then
3521 enableval="$enable_cmdline"
3522
3523 if test "$enableval" = yes; then
3524 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3525 else
3526 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3527 fi
3528
3529else
3530
3531 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3532 if test "x$LINE" != x ; then
3533 eval "DEFAULT_$LINE"
3534 else
3535 no_cache=1
3536 fi
3537
3538 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3539
3540fi
3541
3542
3543 eval "$ac_cv_use_cmdline"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3549 echo "$ac_t""yes" 1>&6
3550 else
3551 echo "$ac_t""no" 1>&6
3552 fi
3553
3554
3555 enablestring=
3556 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3557echo "configure:3558: checking for --${enablestring:-enable}-datetime" >&5
3558 no_cache=0
3559 # Check whether --enable-datetime or --disable-datetime was given.
3560if test "${enable_datetime+set}" = set; then
3561 enableval="$enable_datetime"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3565 else
3566 ac_cv_use_datetime='wxUSE_DATETIME=no'
3567 fi
3568
3569else
3570
3571 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3579
3580fi
3581
3582
3583 eval "$ac_cv_use_datetime"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_DATETIME" = yes; then
3589 echo "$ac_t""yes" 1>&6
3590 else
3591 echo "$ac_t""no" 1>&6
3592 fi
3593
3594
3595 enablestring=
3596 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3597echo "configure:3598: checking for --${enablestring:-enable}-timedate" >&5
3598 no_cache=0
3599 # Check whether --enable-timedate or --disable-timedate was given.
3600if test "${enable_timedate+set}" = set; then
3601 enableval="$enable_timedate"
3602
3603 if test "$enableval" = yes; then
3604 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3605 else
3606 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3607 fi
3608
3609else
3610
3611 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3612 if test "x$LINE" != x ; then
3613 eval "DEFAULT_$LINE"
3614 else
3615 no_cache=1
3616 fi
3617
3618 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3619
3620fi
3621
3622
3623 eval "$ac_cv_use_timedate"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_TIMEDATE" = yes; then
3629 echo "$ac_t""yes" 1>&6
3630 else
3631 echo "$ac_t""no" 1>&6
3632 fi
3633
3634
3635 enablestring=
3636 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3637echo "configure:3638: checking for --${enablestring:-enable}-stopwatch" >&5
3638 no_cache=0
3639 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3640if test "${enable_stopwatch+set}" = set; then
3641 enableval="$enable_stopwatch"
3642
3643 if test "$enableval" = yes; then
3644 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3645 else
3646 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3647 fi
3648
3649else
3650
3651 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
3658 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3659
3660fi
3661
3662
3663 eval "$ac_cv_use_stopwatch"
3664 if test "$no_cache" != 1; then
3665 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3666 fi
3667
3668 if test "$wxUSE_STOPWATCH" = yes; then
3669 echo "$ac_t""yes" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 fi
3673
3674
3675 enablestring=
3676 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3677echo "configure:3678: checking for --${enablestring:-enable}-dialupman" >&5
3678 no_cache=0
3679 # Check whether --enable-dialupman or --disable-dialupman was given.
3680if test "${enable_dialupman+set}" = set; then
3681 enableval="$enable_dialupman"
3682
3683 if test "$enableval" = yes; then
3684 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3685 else
3686 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3687 fi
3688
3689else
3690
3691 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3692 if test "x$LINE" != x ; then
3693 eval "DEFAULT_$LINE"
3694 else
3695 no_cache=1
3696 fi
3697
3698 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3699
3700fi
3701
3702
3703 eval "$ac_cv_use_dialupman"
3704 if test "$no_cache" != 1; then
3705 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3706 fi
3707
3708 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3709 echo "$ac_t""yes" 1>&6
3710 else
3711 echo "$ac_t""no" 1>&6
3712 fi
3713
3714
3715 enablestring=
3716 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3717echo "configure:3718: checking for --${enablestring:-enable}-apple_ieee" >&5
3718 no_cache=0
3719 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3720if test "${enable_apple_ieee+set}" = set; then
3721 enableval="$enable_apple_ieee"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3725 else
3726 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3739
3740fi
3741
3742
3743 eval "$ac_cv_use_apple_ieee"
3744 if test "$no_cache" != 1; then
3745 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3746 fi
3747
3748 if test "$wxUSE_APPLE_IEEE" = yes; then
3749 echo "$ac_t""yes" 1>&6
3750 else
3751 echo "$ac_t""no" 1>&6
3752 fi
3753
3754
3755 enablestring=
3756 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3757echo "configure:3758: checking for --${enablestring:-enable}-timer" >&5
3758 no_cache=0
3759 # Check whether --enable-timer or --disable-timer was given.
3760if test "${enable_timer+set}" = set; then
3761 enableval="$enable_timer"
3762
3763 if test "$enableval" = yes; then
3764 ac_cv_use_timer='wxUSE_TIMER=yes'
3765 else
3766 ac_cv_use_timer='wxUSE_TIMER=no'
3767 fi
3768
3769else
3770
3771 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3772 if test "x$LINE" != x ; then
3773 eval "DEFAULT_$LINE"
3774 else
3775 no_cache=1
3776 fi
3777
3778 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3779
3780fi
3781
3782
3783 eval "$ac_cv_use_timer"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_TIMER" = yes; then
3789 echo "$ac_t""yes" 1>&6
3790 else
3791 echo "$ac_t""no" 1>&6
3792 fi
3793
3794
3795 enablestring=
3796 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3797echo "configure:3798: checking for --${enablestring:-enable}-wave" >&5
3798 no_cache=0
3799 # Check whether --enable-wave or --disable-wave was given.
3800if test "${enable_wave+set}" = set; then
3801 enableval="$enable_wave"
3802
3803 if test "$enableval" = yes; then
3804 ac_cv_use_wave='wxUSE_WAVE=yes'
3805 else
3806 ac_cv_use_wave='wxUSE_WAVE=no'
3807 fi
3808
3809else
3810
3811 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3819
3820fi
3821
3822
3823 eval "$ac_cv_use_wave"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_WAVE" = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 else
3831 echo "$ac_t""no" 1>&6
3832 fi
3833
3834
3835 enablestring=
3836 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3837echo "configure:3838: checking for --${enablestring:-enable}-fraction" >&5
3838 no_cache=0
3839 # Check whether --enable-fraction or --disable-fraction was given.
3840if test "${enable_fraction+set}" = set; then
3841 enableval="$enable_fraction"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3845 else
3846 ac_cv_use_fraction='wxUSE_FRACTION=no'
3847 fi
3848
3849else
3850
3851 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3859
3860fi
3861
3862
3863 eval "$ac_cv_use_fraction"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$wxUSE_FRACTION" = yes; then
3869 echo "$ac_t""yes" 1>&6
3870 else
3871 echo "$ac_t""no" 1>&6
3872 fi
3873
3874
3875 enablestring=
3876 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3877echo "configure:3878: checking for --${enablestring:-enable}-dynlib" >&5
3878 no_cache=0
3879 # Check whether --enable-dynlib or --disable-dynlib was given.
3880if test "${enable_dynlib+set}" = set; then
3881 enableval="$enable_dynlib"
3882
3883 if test "$enableval" = yes; then
3884 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3885 else
3886 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3887 fi
3888
3889else
3890
3891 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3892 if test "x$LINE" != x ; then
3893 eval "DEFAULT_$LINE"
3894 else
3895 no_cache=1
3896 fi
3897
3898 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3899
3900fi
3901
3902
3903 eval "$ac_cv_use_dynlib"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3909 echo "$ac_t""yes" 1>&6
3910 else
3911 echo "$ac_t""no" 1>&6
3912 fi
3913
3914
3915 enablestring=
3916 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3917echo "configure:3918: checking for --${enablestring:-enable}-dynamicloader" >&5
3918 no_cache=0
3919 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3920if test "${enable_dynamicloader+set}" = set; then
3921 enableval="$enable_dynamicloader"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3925 else
3926 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3939
3940fi
3941
3942
3943 eval "$ac_cv_use_dynamicloader"
3944 if test "$no_cache" != 1; then
3945 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3946 fi
3947
3948 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3949 echo "$ac_t""yes" 1>&6
3950 else
3951 echo "$ac_t""no" 1>&6
3952 fi
3953
3954
3955 enablestring=
3956 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3957echo "configure:3958: checking for --${enablestring:-enable}-longlong" >&5
3958 no_cache=0
3959 # Check whether --enable-longlong or --disable-longlong was given.
3960if test "${enable_longlong+set}" = set; then
3961 enableval="$enable_longlong"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3965 else
3966 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3979
3980fi
3981
3982
3983 eval "$ac_cv_use_longlong"
3984 if test "$no_cache" != 1; then
3985 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3986 fi
3987
3988 if test "$wxUSE_LONGLONG" = yes; then
3989 echo "$ac_t""yes" 1>&6
3990 else
3991 echo "$ac_t""no" 1>&6
3992 fi
3993
3994
3995 enablestring=
3996 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3997echo "configure:3998: checking for --${enablestring:-enable}-geometry" >&5
3998 no_cache=0
3999 # Check whether --enable-geometry or --disable-geometry was given.
4000if test "${enable_geometry+set}" = set; then
4001 enableval="$enable_geometry"
4002
4003 if test "$enableval" = yes; then
4004 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4005 else
4006 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4007 fi
4008
4009else
4010
4011 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
4018 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4019
4020fi
4021
4022
4023 eval "$ac_cv_use_geometry"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_GEOMETRY" = yes; then
4029 echo "$ac_t""yes" 1>&6
4030 else
4031 echo "$ac_t""no" 1>&6
4032 fi
4033
4034
4035 enablestring=
4036 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4037echo "configure:4038: checking for --${enablestring:-enable}-log" >&5
4038 no_cache=0
4039 # Check whether --enable-log or --disable-log was given.
4040if test "${enable_log+set}" = set; then
4041 enableval="$enable_log"
4042
4043 if test "$enableval" = yes; then
4044 ac_cv_use_log='wxUSE_LOG=yes'
4045 else
4046 ac_cv_use_log='wxUSE_LOG=no'
4047 fi
4048
4049else
4050
4051 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4052 if test "x$LINE" != x ; then
4053 eval "DEFAULT_$LINE"
4054 else
4055 no_cache=1
4056 fi
4057
4058 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4059
4060fi
4061
4062
4063 eval "$ac_cv_use_log"
4064 if test "$no_cache" != 1; then
4065 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4066 fi
4067
4068 if test "$wxUSE_LOG" = yes; then
4069 echo "$ac_t""yes" 1>&6
4070 else
4071 echo "$ac_t""no" 1>&6
4072 fi
4073
4074
4075 enablestring=
4076 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4077echo "configure:4078: checking for --${enablestring:-enable}-streams" >&5
4078 no_cache=0
4079 # Check whether --enable-streams or --disable-streams was given.
4080if test "${enable_streams+set}" = set; then
4081 enableval="$enable_streams"
4082
4083 if test "$enableval" = yes; then
4084 ac_cv_use_streams='wxUSE_STREAMS=yes'
4085 else
4086 ac_cv_use_streams='wxUSE_STREAMS=no'
4087 fi
4088
4089else
4090
4091 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4092 if test "x$LINE" != x ; then
4093 eval "DEFAULT_$LINE"
4094 else
4095 no_cache=1
4096 fi
4097
4098 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4099
4100fi
4101
4102
4103 eval "$ac_cv_use_streams"
4104 if test "$no_cache" != 1; then
4105 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4106 fi
4107
4108 if test "$wxUSE_STREAMS" = yes; then
4109 echo "$ac_t""yes" 1>&6
4110 else
4111 echo "$ac_t""no" 1>&6
4112 fi
4113
4114
4115 enablestring=
4116 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4117echo "configure:4118: checking for --${enablestring:-enable}-file" >&5
4118 no_cache=0
4119 # Check whether --enable-file or --disable-file was given.
4120if test "${enable_file+set}" = set; then
4121 enableval="$enable_file"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_file='wxUSE_FILE=yes'
4125 else
4126 ac_cv_use_file='wxUSE_FILE=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4139
4140fi
4141
4142
4143 eval "$ac_cv_use_file"
4144 if test "$no_cache" != 1; then
4145 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4146 fi
4147
4148 if test "$wxUSE_FILE" = yes; then
4149 echo "$ac_t""yes" 1>&6
4150 else
4151 echo "$ac_t""no" 1>&6
4152 fi
4153
4154
4155 enablestring=
4156 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4157echo "configure:4158: checking for --${enablestring:-enable}-ffile" >&5
4158 no_cache=0
4159 # Check whether --enable-ffile or --disable-ffile was given.
4160if test "${enable_ffile+set}" = set; then
4161 enableval="$enable_ffile"
4162
4163 if test "$enableval" = yes; then
4164 ac_cv_use_ffile='wxUSE_FFILE=yes'
4165 else
4166 ac_cv_use_ffile='wxUSE_FFILE=no'
4167 fi
4168
4169else
4170
4171 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4179
4180fi
4181
4182
4183 eval "$ac_cv_use_ffile"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_FFILE" = yes; then
4189 echo "$ac_t""yes" 1>&6
4190 else
4191 echo "$ac_t""no" 1>&6
4192 fi
4193
4194
4195 enablestring=
4196 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4197echo "configure:4198: checking for --${enablestring:-enable}-textbuf" >&5
4198 no_cache=0
4199 # Check whether --enable-textbuf or --disable-textbuf was given.
4200if test "${enable_textbuf+set}" = set; then
4201 enableval="$enable_textbuf"
4202
4203 if test "$enableval" = yes; then
4204 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4205 else
4206 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4207 fi
4208
4209else
4210
4211 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4212 if test "x$LINE" != x ; then
4213 eval "DEFAULT_$LINE"
4214 else
4215 no_cache=1
4216 fi
4217
4218 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4219
4220fi
4221
4222
4223 eval "$ac_cv_use_textbuf"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_TEXTBUFFER" = yes; then
4229 echo "$ac_t""yes" 1>&6
4230 else
4231 echo "$ac_t""no" 1>&6
4232 fi
4233
4234
4235 enablestring=
4236 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4237echo "configure:4238: checking for --${enablestring:-enable}-textfile" >&5
4238 no_cache=0
4239 # Check whether --enable-textfile or --disable-textfile was given.
4240if test "${enable_textfile+set}" = set; then
4241 enableval="$enable_textfile"
4242
4243 if test "$enableval" = yes; then
4244 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4245 else
4246 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4247 fi
4248
4249else
4250
4251 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4252 if test "x$LINE" != x ; then
4253 eval "DEFAULT_$LINE"
4254 else
4255 no_cache=1
4256 fi
4257
4258 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4259
4260fi
4261
4262
4263 eval "$ac_cv_use_textfile"
4264 if test "$no_cache" != 1; then
4265 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4266 fi
4267
4268 if test "$wxUSE_TEXTFILE" = yes; then
4269 echo "$ac_t""yes" 1>&6
4270 else
4271 echo "$ac_t""no" 1>&6
4272 fi
4273
4274
4275 enablestring=
4276 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4277echo "configure:4278: checking for --${enablestring:-enable}-fontmap" >&5
4278 no_cache=0
4279 # Check whether --enable-fontmap or --disable-fontmap was given.
4280if test "${enable_fontmap+set}" = set; then
4281 enableval="$enable_fontmap"
4282
4283 if test "$enableval" = yes; then
4284 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4285 else
4286 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4287 fi
4288
4289else
4290
4291 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4292 if test "x$LINE" != x ; then
4293 eval "DEFAULT_$LINE"
4294 else
4295 no_cache=1
4296 fi
4297
4298 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4299
4300fi
4301
4302
4303 eval "$ac_cv_use_fontmap"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_FONTMAP" = yes; then
4309 echo "$ac_t""yes" 1>&6
4310 else
4311 echo "$ac_t""no" 1>&6
4312 fi
4313
4314
4315 enablestring=
4316 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4317echo "configure:4318: checking for --${enablestring:-enable}-unicode" >&5
4318 no_cache=0
4319 # Check whether --enable-unicode or --disable-unicode was given.
4320if test "${enable_unicode+set}" = set; then
4321 enableval="$enable_unicode"
4322
4323 if test "$enableval" = yes; then
4324 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4325 else
4326 ac_cv_use_unicode='wxUSE_UNICODE=no'
4327 fi
4328
4329else
4330
4331 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4332 if test "x$LINE" != x ; then
4333 eval "DEFAULT_$LINE"
4334 else
4335 no_cache=1
4336 fi
4337
4338 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4339
4340fi
4341
4342
4343 eval "$ac_cv_use_unicode"
4344 if test "$no_cache" != 1; then
4345 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4346 fi
4347
4348 if test "$wxUSE_UNICODE" = yes; then
4349 echo "$ac_t""yes" 1>&6
4350 else
4351 echo "$ac_t""no" 1>&6
4352 fi
4353
4354
4355 enablestring=
4356 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4357echo "configure:4358: checking for --${enablestring:-enable}-mslu" >&5
4358 no_cache=0
4359 # Check whether --enable-mslu or --disable-mslu was given.
4360if test "${enable_mslu+set}" = set; then
4361 enableval="$enable_mslu"
4362
4363 if test "$enableval" = yes; then
4364 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4365 else
4366 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4367 fi
4368
4369else
4370
4371 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4372 if test "x$LINE" != x ; then
4373 eval "DEFAULT_$LINE"
4374 else
4375 no_cache=1
4376 fi
4377
4378 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4379
4380fi
4381
4382
4383 eval "$ac_cv_use_mslu"
4384 if test "$no_cache" != 1; then
4385 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4386 fi
4387
4388 if test "$wxUSE_UNICODE_MSLU" = yes; then
4389 echo "$ac_t""yes" 1>&6
4390 else
4391 echo "$ac_t""no" 1>&6
4392 fi
4393
4394
4395 enablestring=
4396 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4397echo "configure:4398: checking for --${enablestring:-enable}-wxprintfv" >&5
4398 no_cache=0
4399 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4400if test "${enable_wxprintfv+set}" = set; then
4401 enableval="$enable_wxprintfv"
4402
4403 if test "$enableval" = yes; then
4404 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4405 else
4406 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4407 fi
4408
4409else
4410
4411 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4412 if test "x$LINE" != x ; then
4413 eval "DEFAULT_$LINE"
4414 else
4415 no_cache=1
4416 fi
4417
4418 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4419
4420fi
4421
4422
4423 eval "$ac_cv_use_wxprintfv"
4424 if test "$no_cache" != 1; then
4425 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4426 fi
4427
4428 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4429 echo "$ac_t""yes" 1>&6
4430 else
4431 echo "$ac_t""no" 1>&6
4432 fi
4433
4434
4435 enablestring=
4436 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4437echo "configure:4438: checking for --${enablestring:-enable}-std_iostreams" >&5
4438 no_cache=0
4439 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4440if test "${enable_std_iostreams+set}" = set; then
4441 enableval="$enable_std_iostreams"
4442
4443 if test "$enableval" = yes; then
4444 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4445 else
4446 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4447 fi
4448
4449else
4450
4451 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4452 if test "x$LINE" != x ; then
4453 eval "DEFAULT_$LINE"
4454 else
4455 no_cache=1
4456 fi
4457
4458 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4459
4460fi
4461
4462
4463 eval "$ac_cv_use_std_iostreams"
4464 if test "$no_cache" != 1; then
4465 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4466 fi
4467
4468 if test "$wxUSE_STD_IOSTREAM" = yes; then
4469 echo "$ac_t""yes" 1>&6
4470 else
4471 echo "$ac_t""no" 1>&6
4472 fi
4473
4474
4475 enablestring=
4476 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4477echo "configure:4478: checking for --${enablestring:-enable}-filesystem" >&5
4478 no_cache=0
4479 # Check whether --enable-filesystem or --disable-filesystem was given.
4480if test "${enable_filesystem+set}" = set; then
4481 enableval="$enable_filesystem"
4482
4483 if test "$enableval" = yes; then
4484 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4485 else
4486 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4487 fi
4488
4489else
4490
4491 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4499
4500fi
4501
4502
4503 eval "$ac_cv_use_filesystem"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_FILESYSTEM" = yes; then
4509 echo "$ac_t""yes" 1>&6
4510 else
4511 echo "$ac_t""no" 1>&6
4512 fi
4513
4514
4515 enablestring=
4516 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4517echo "configure:4518: checking for --${enablestring:-enable}-fs_inet" >&5
4518 no_cache=0
4519 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4520if test "${enable_fs_inet+set}" = set; then
4521 enableval="$enable_fs_inet"
4522
4523 if test "$enableval" = yes; then
4524 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4525 else
4526 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4527 fi
4528
4529else
4530
4531 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4532 if test "x$LINE" != x ; then
4533 eval "DEFAULT_$LINE"
4534 else
4535 no_cache=1
4536 fi
4537
4538 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4539
4540fi
4541
4542
4543 eval "$ac_cv_use_fs_inet"
4544 if test "$no_cache" != 1; then
4545 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4546 fi
4547
4548 if test "$wxUSE_FS_INET" = yes; then
4549 echo "$ac_t""yes" 1>&6
4550 else
4551 echo "$ac_t""no" 1>&6
4552 fi
4553
4554
4555 enablestring=
4556 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4557echo "configure:4558: checking for --${enablestring:-enable}-fs_zip" >&5
4558 no_cache=0
4559 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4560if test "${enable_fs_zip+set}" = set; then
4561 enableval="$enable_fs_zip"
4562
4563 if test "$enableval" = yes; then
4564 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4565 else
4566 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4567 fi
4568
4569else
4570
4571 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4572 if test "x$LINE" != x ; then
4573 eval "DEFAULT_$LINE"
4574 else
4575 no_cache=1
4576 fi
4577
4578 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4579
4580fi
4581
4582
4583 eval "$ac_cv_use_fs_zip"
4584 if test "$no_cache" != 1; then
4585 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4586 fi
4587
4588 if test "$wxUSE_FS_ZIP" = yes; then
4589 echo "$ac_t""yes" 1>&6
4590 else
4591 echo "$ac_t""no" 1>&6
4592 fi
4593
4594
4595 enablestring=
4596 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4597echo "configure:4598: checking for --${enablestring:-enable}-zipstream" >&5
4598 no_cache=0
4599 # Check whether --enable-zipstream or --disable-zipstream was given.
4600if test "${enable_zipstream+set}" = set; then
4601 enableval="$enable_zipstream"
4602
4603 if test "$enableval" = yes; then
4604 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4605 else
4606 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4607 fi
4608
4609else
4610
4611 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4612 if test "x$LINE" != x ; then
4613 eval "DEFAULT_$LINE"
4614 else
4615 no_cache=1
4616 fi
4617
4618 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4619
4620fi
4621
4622
4623 eval "$ac_cv_use_zipstream"
4624 if test "$no_cache" != 1; then
4625 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4626 fi
4627
4628 if test "$wxUSE_ZIPSTREAM" = yes; then
4629 echo "$ac_t""yes" 1>&6
4630 else
4631 echo "$ac_t""no" 1>&6
4632 fi
4633
4634
4635
4636 enablestring=
4637 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4638echo "configure:4639: checking for --${enablestring:-enable}-catch_segvs" >&5
4639 no_cache=0
4640 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4641if test "${enable_catch_segvs+set}" = set; then
4642 enableval="$enable_catch_segvs"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4646 else
4647 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4648 fi
4649
4650else
4651
4652 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4660
4661fi
4662
4663
4664 eval "$ac_cv_use_catch_segvs"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4670 echo "$ac_t""yes" 1>&6
4671 else
4672 echo "$ac_t""no" 1>&6
4673 fi
4674
4675
4676 enablestring=
4677 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4678echo "configure:4679: checking for --${enablestring:-enable}-snglinst" >&5
4679 no_cache=0
4680 # Check whether --enable-snglinst or --disable-snglinst was given.
4681if test "${enable_snglinst+set}" = set; then
4682 enableval="$enable_snglinst"
4683
4684 if test "$enableval" = yes; then
4685 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4686 else
4687 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4688 fi
4689
4690else
4691
4692 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4700
4701fi
4702
4703
4704 eval "$ac_cv_use_snglinst"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4707 fi
4708
4709 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4710 echo "$ac_t""yes" 1>&6
4711 else
4712 echo "$ac_t""no" 1>&6
4713 fi
4714
4715
4716
4717 enablestring=
4718 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4719echo "configure:4720: checking for --${enablestring:-enable}-mimetype" >&5
4720 no_cache=0
4721 # Check whether --enable-mimetype or --disable-mimetype was given.
4722if test "${enable_mimetype+set}" = set; then
4723 enableval="$enable_mimetype"
4724
4725 if test "$enableval" = yes; then
4726 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4727 else
4728 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4729 fi
4730
4731else
4732
4733 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4741
4742fi
4743
4744
4745 eval "$ac_cv_use_mimetype"
4746 if test "$no_cache" != 1; then
4747 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4748 fi
4749
4750 if test "$wxUSE_MIMETYPE" = yes; then
4751 echo "$ac_t""yes" 1>&6
4752 else
4753 echo "$ac_t""no" 1>&6
4754 fi
4755
4756
4757 enablestring=
4758 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4759echo "configure:4760: checking for --${enablestring:-enable}-system_options" >&5
4760 no_cache=0
4761 # Check whether --enable-system_options or --disable-system_options was given.
4762if test "${enable_system_options+set}" = set; then
4763 enableval="$enable_system_options"
4764
4765 if test "$enableval" = yes; then
4766 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4767 else
4768 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4769 fi
4770
4771else
4772
4773 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4774 if test "x$LINE" != x ; then
4775 eval "DEFAULT_$LINE"
4776 else
4777 no_cache=1
4778 fi
4779
4780 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4781
4782fi
4783
4784
4785 eval "$ac_cv_use_system_options"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4788 fi
4789
4790 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4791 echo "$ac_t""yes" 1>&6
4792 else
4793 echo "$ac_t""no" 1>&6
4794 fi
4795
4796
4797
4798 enablestring=
4799 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4800echo "configure:4801: checking for --${enablestring:-enable}-url" >&5
4801 no_cache=0
4802 # Check whether --enable-url or --disable-url was given.
4803if test "${enable_url+set}" = set; then
4804 enableval="$enable_url"
4805
4806 if test "$enableval" = yes; then
4807 ac_cv_use_url='wxUSE_URL=yes'
4808 else
4809 ac_cv_use_url='wxUSE_URL=no'
4810 fi
4811
4812else
4813
4814 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4815 if test "x$LINE" != x ; then
4816 eval "DEFAULT_$LINE"
4817 else
4818 no_cache=1
4819 fi
4820
4821 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4822
4823fi
4824
4825
4826 eval "$ac_cv_use_url"
4827 if test "$no_cache" != 1; then
4828 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4829 fi
4830
4831 if test "$wxUSE_URL" = yes; then
4832 echo "$ac_t""yes" 1>&6
4833 else
4834 echo "$ac_t""no" 1>&6
4835 fi
4836
4837
4838 enablestring=
4839 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4840echo "configure:4841: checking for --${enablestring:-enable}-protocol" >&5
4841 no_cache=0
4842 # Check whether --enable-protocol or --disable-protocol was given.
4843if test "${enable_protocol+set}" = set; then
4844 enableval="$enable_protocol"
4845
4846 if test "$enableval" = yes; then
4847 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4848 else
4849 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4850 fi
4851
4852else
4853
4854 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4855 if test "x$LINE" != x ; then
4856 eval "DEFAULT_$LINE"
4857 else
4858 no_cache=1
4859 fi
4860
4861 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4862
4863fi
4864
4865
4866 eval "$ac_cv_use_protocol"
4867 if test "$no_cache" != 1; then
4868 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4869 fi
4870
4871 if test "$wxUSE_PROTOCOL" = yes; then
4872 echo "$ac_t""yes" 1>&6
4873 else
4874 echo "$ac_t""no" 1>&6
4875 fi
4876
4877
4878 enablestring=
4879 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4880echo "configure:4881: checking for --${enablestring:-enable}-protocol_http" >&5
4881 no_cache=0
4882 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4883if test "${enable_protocol_http+set}" = set; then
4884 enableval="$enable_protocol_http"
4885
4886 if test "$enableval" = yes; then
4887 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4888 else
4889 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4890 fi
4891
4892else
4893
4894 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4895 if test "x$LINE" != x ; then
4896 eval "DEFAULT_$LINE"
4897 else
4898 no_cache=1
4899 fi
4900
4901 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4902
4903fi
4904
4905
4906 eval "$ac_cv_use_protocol_http"
4907 if test "$no_cache" != 1; then
4908 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4909 fi
4910
4911 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4912 echo "$ac_t""yes" 1>&6
4913 else
4914 echo "$ac_t""no" 1>&6
4915 fi
4916
4917
4918 enablestring=
4919 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4920echo "configure:4921: checking for --${enablestring:-enable}-protocol_ftp" >&5
4921 no_cache=0
4922 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4923if test "${enable_protocol_ftp+set}" = set; then
4924 enableval="$enable_protocol_ftp"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4928 else
4929 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4930 fi
4931
4932else
4933
4934 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4942
4943fi
4944
4945
4946 eval "$ac_cv_use_protocol_ftp"
4947 if test "$no_cache" != 1; then
4948 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4949 fi
4950
4951 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4952 echo "$ac_t""yes" 1>&6
4953 else
4954 echo "$ac_t""no" 1>&6
4955 fi
4956
4957
4958 enablestring=
4959 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4960echo "configure:4961: checking for --${enablestring:-enable}-protocol_file" >&5
4961 no_cache=0
4962 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4963if test "${enable_protocol_file+set}" = set; then
4964 enableval="$enable_protocol_file"
4965
4966 if test "$enableval" = yes; then
4967 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4968 else
4969 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4970 fi
4971
4972else
4973
4974 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4975 if test "x$LINE" != x ; then
4976 eval "DEFAULT_$LINE"
4977 else
4978 no_cache=1
4979 fi
4980
4981 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4982
4983fi
4984
4985
4986 eval "$ac_cv_use_protocol_file"
4987 if test "$no_cache" != 1; then
4988 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4989 fi
4990
4991 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4992 echo "$ac_t""yes" 1>&6
4993 else
4994 echo "$ac_t""no" 1>&6
4995 fi
4996
4997
4998
4999
5000
5001 enablestring=
5002 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
5003echo "configure:5004: checking for --${enablestring:-enable}-threads" >&5
5004 no_cache=0
5005 # Check whether --enable-threads or --disable-threads was given.
5006if test "${enable_threads+set}" = set; then
5007 enableval="$enable_threads"
5008
5009 if test "$enableval" = yes; then
5010 ac_cv_use_threads='wxUSE_THREADS=yes'
5011 else
5012 ac_cv_use_threads='wxUSE_THREADS=no'
5013 fi
5014
5015else
5016
5017 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5018 if test "x$LINE" != x ; then
5019 eval "DEFAULT_$LINE"
5020 else
5021 no_cache=1
5022 fi
5023
5024 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5025
5026fi
5027
5028
5029 eval "$ac_cv_use_threads"
5030 if test "$no_cache" != 1; then
5031 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5032 fi
5033
5034 if test "$wxUSE_THREADS" = yes; then
5035 echo "$ac_t""yes" 1>&6
5036 else
5037 echo "$ac_t""no" 1>&6
5038 fi
5039
5040
5041if test "$wxUSE_GUI" = "yes"; then
5042
5043
5044
5045 enablestring=
5046 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5047echo "configure:5048: checking for --${enablestring:-enable}-docview" >&5
5048 no_cache=0
5049 # Check whether --enable-docview or --disable-docview was given.
5050if test "${enable_docview+set}" = set; then
5051 enableval="$enable_docview"
5052
5053 if test "$enableval" = yes; then
5054 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5055 else
5056 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5057 fi
5058
5059else
5060
5061 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5062 if test "x$LINE" != x ; then
5063 eval "DEFAULT_$LINE"
5064 else
5065 no_cache=1
5066 fi
5067
5068 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5069
5070fi
5071
5072
5073 eval "$ac_cv_use_docview"
5074 if test "$no_cache" != 1; then
5075 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5076 fi
5077
5078 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5079 echo "$ac_t""yes" 1>&6
5080 else
5081 echo "$ac_t""no" 1>&6
5082 fi
5083
5084
5085 enablestring=
5086 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5087echo "configure:5088: checking for --${enablestring:-enable}-help" >&5
5088 no_cache=0
5089 # Check whether --enable-help or --disable-help was given.
5090if test "${enable_help+set}" = set; then
5091 enableval="$enable_help"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_help='wxUSE_HELP=yes'
5095 else
5096 ac_cv_use_help='wxUSE_HELP=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5109
5110fi
5111
5112
5113 eval "$ac_cv_use_help"
5114 if test "$no_cache" != 1; then
5115 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5116 fi
5117
5118 if test "$wxUSE_HELP" = yes; then
5119 echo "$ac_t""yes" 1>&6
5120 else
5121 echo "$ac_t""no" 1>&6
5122 fi
5123
5124
5125 enablestring=
5126 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5127echo "configure:5128: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5128 no_cache=0
5129 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5130if test "${enable_mshtmlhelp+set}" = set; then
5131 enableval="$enable_mshtmlhelp"
5132
5133 if test "$enableval" = yes; then
5134 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5135 else
5136 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5137 fi
5138
5139else
5140
5141 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5142 if test "x$LINE" != x ; then
5143 eval "DEFAULT_$LINE"
5144 else
5145 no_cache=1
5146 fi
5147
5148 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5149
5150fi
5151
5152
5153 eval "$ac_cv_use_mshtmlhelp"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_MS_HTML_HELP" = yes; then
5159 echo "$ac_t""yes" 1>&6
5160 else
5161 echo "$ac_t""no" 1>&6
5162 fi
5163
5164
5165 enablestring=
5166 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5167echo "configure:5168: checking for --${enablestring:-enable}-html" >&5
5168 no_cache=0
5169 # Check whether --enable-html or --disable-html was given.
5170if test "${enable_html+set}" = set; then
5171 enableval="$enable_html"
5172
5173 if test "$enableval" = yes; then
5174 ac_cv_use_html='wxUSE_HTML=yes'
5175 else
5176 ac_cv_use_html='wxUSE_HTML=no'
5177 fi
5178
5179else
5180
5181 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5182 if test "x$LINE" != x ; then
5183 eval "DEFAULT_$LINE"
5184 else
5185 no_cache=1
5186 fi
5187
5188 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5189
5190fi
5191
5192
5193 eval "$ac_cv_use_html"
5194 if test "$no_cache" != 1; then
5195 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5196 fi
5197
5198 if test "$wxUSE_HTML" = yes; then
5199 echo "$ac_t""yes" 1>&6
5200 else
5201 echo "$ac_t""no" 1>&6
5202 fi
5203
5204
5205 enablestring=
5206 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5207echo "configure:5208: checking for --${enablestring:-enable}-htmlhelp" >&5
5208 no_cache=0
5209 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5210if test "${enable_htmlhelp+set}" = set; then
5211 enableval="$enable_htmlhelp"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5215 else
5216 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5217 fi
5218
5219else
5220
5221 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5229
5230fi
5231
5232
5233 eval "$ac_cv_use_htmlhelp"
5234 if test "$no_cache" != 1; then
5235 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5236 fi
5237
5238 if test "$wxUSE_WXHTML_HELP" = yes; then
5239 echo "$ac_t""yes" 1>&6
5240 else
5241 echo "$ac_t""no" 1>&6
5242 fi
5243
5244
5245 enablestring=
5246 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5247echo "configure:5248: checking for --${enablestring:-enable}-constraints" >&5
5248 no_cache=0
5249 # Check whether --enable-constraints or --disable-constraints was given.
5250if test "${enable_constraints+set}" = set; then
5251 enableval="$enable_constraints"
5252
5253 if test "$enableval" = yes; then
5254 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5255 else
5256 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5257 fi
5258
5259else
5260
5261 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5262 if test "x$LINE" != x ; then
5263 eval "DEFAULT_$LINE"
5264 else
5265 no_cache=1
5266 fi
5267
5268 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5269
5270fi
5271
5272
5273 eval "$ac_cv_use_constraints"
5274 if test "$no_cache" != 1; then
5275 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5276 fi
5277
5278 if test "$wxUSE_CONSTRAINTS" = yes; then
5279 echo "$ac_t""yes" 1>&6
5280 else
5281 echo "$ac_t""no" 1>&6
5282 fi
5283
5284
5285 enablestring=
5286 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5287echo "configure:5288: checking for --${enablestring:-enable}-printarch" >&5
5288 no_cache=0
5289 # Check whether --enable-printarch or --disable-printarch was given.
5290if test "${enable_printarch+set}" = set; then
5291 enableval="$enable_printarch"
5292
5293 if test "$enableval" = yes; then
5294 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5295 else
5296 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5297 fi
5298
5299else
5300
5301 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5302 if test "x$LINE" != x ; then
5303 eval "DEFAULT_$LINE"
5304 else
5305 no_cache=1
5306 fi
5307
5308 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5309
5310fi
5311
5312
5313 eval "$ac_cv_use_printarch"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5319 echo "$ac_t""yes" 1>&6
5320 else
5321 echo "$ac_t""no" 1>&6
5322 fi
5323
5324
5325 enablestring=
5326 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5327echo "configure:5328: checking for --${enablestring:-enable}-mdi" >&5
5328 no_cache=0
5329 # Check whether --enable-mdi or --disable-mdi was given.
5330if test "${enable_mdi+set}" = set; then
5331 enableval="$enable_mdi"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5335 else
5336 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5349
5350fi
5351
5352
5353 eval "$ac_cv_use_mdi"
5354 if test "$no_cache" != 1; then
5355 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5356 fi
5357
5358 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5359 echo "$ac_t""yes" 1>&6
5360 else
5361 echo "$ac_t""no" 1>&6
5362 fi
5363
5364
5365 enablestring=
5366 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5367echo "configure:5368: checking for --${enablestring:-enable}-loggui" >&5
5368 no_cache=0
5369 # Check whether --enable-loggui or --disable-loggui was given.
5370if test "${enable_loggui+set}" = set; then
5371 enableval="$enable_loggui"
5372
5373 if test "$enableval" = yes; then
5374 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5375 else
5376 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5377 fi
5378
5379else
5380
5381 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5382 if test "x$LINE" != x ; then
5383 eval "DEFAULT_$LINE"
5384 else
5385 no_cache=1
5386 fi
5387
5388 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5389
5390fi
5391
5392
5393 eval "$ac_cv_use_loggui"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_LOGGUI" = yes; then
5399 echo "$ac_t""yes" 1>&6
5400 else
5401 echo "$ac_t""no" 1>&6
5402 fi
5403
5404
5405 enablestring=
5406 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5407echo "configure:5408: checking for --${enablestring:-enable}-logwin" >&5
5408 no_cache=0
5409 # Check whether --enable-logwin or --disable-logwin was given.
5410if test "${enable_logwin+set}" = set; then
5411 enableval="$enable_logwin"
5412
5413 if test "$enableval" = yes; then
5414 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5415 else
5416 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5417 fi
5418
5419else
5420
5421 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5422 if test "x$LINE" != x ; then
5423 eval "DEFAULT_$LINE"
5424 else
5425 no_cache=1
5426 fi
5427
5428 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5429
5430fi
5431
5432
5433 eval "$ac_cv_use_logwin"
5434 if test "$no_cache" != 1; then
5435 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5436 fi
5437
5438 if test "$wxUSE_LOGWINDOW" = yes; then
5439 echo "$ac_t""yes" 1>&6
5440 else
5441 echo "$ac_t""no" 1>&6
5442 fi
5443
5444
5445 enablestring=
5446 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5447echo "configure:5448: checking for --${enablestring:-enable}-logdialog" >&5
5448 no_cache=0
5449 # Check whether --enable-logdialog or --disable-logdialog was given.
5450if test "${enable_logdialog+set}" = set; then
5451 enableval="$enable_logdialog"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5455 else
5456 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5469
5470fi
5471
5472
5473 eval "$ac_cv_use_logdialog"
5474 if test "$no_cache" != 1; then
5475 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5476 fi
5477
5478 if test "$wxUSE_LOGDIALOG" = yes; then
5479 echo "$ac_t""yes" 1>&6
5480 else
5481 echo "$ac_t""no" 1>&6
5482 fi
5483
5484
5485
5486 enablestring=
5487 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5488echo "configure:5489: checking for --${enablestring:-enable}-postscript" >&5
5489 no_cache=0
5490 # Check whether --enable-postscript or --disable-postscript was given.
5491if test "${enable_postscript+set}" = set; then
5492 enableval="$enable_postscript"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5496 else
5497 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5510
5511fi
5512
5513
5514 eval "$ac_cv_use_postscript"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_POSTSCRIPT" = yes; then
5520 echo "$ac_t""yes" 1>&6
5521 else
5522 echo "$ac_t""no" 1>&6
5523 fi
5524
5525
5526
5527
5528
5529 enablestring=
5530 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5531echo "configure:5532: checking for --${enablestring:-enable}-prologio" >&5
5532 no_cache=0
5533 # Check whether --enable-prologio or --disable-prologio was given.
5534if test "${enable_prologio+set}" = set; then
5535 enableval="$enable_prologio"
5536
5537 if test "$enableval" = yes; then
5538 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5539 else
5540 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5541 fi
5542
5543else
5544
5545 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5546 if test "x$LINE" != x ; then
5547 eval "DEFAULT_$LINE"
5548 else
5549 no_cache=1
5550 fi
5551
5552 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5553
5554fi
5555
5556
5557 eval "$ac_cv_use_prologio"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_PROLOGIO" = yes; then
5563 echo "$ac_t""yes" 1>&6
5564 else
5565 echo "$ac_t""no" 1>&6
5566 fi
5567
5568
5569 enablestring=
5570 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5571echo "configure:5572: checking for --${enablestring:-enable}-resources" >&5
5572 no_cache=0
5573 # Check whether --enable-resources or --disable-resources was given.
5574if test "${enable_resources+set}" = set; then
5575 enableval="$enable_resources"
5576
5577 if test "$enableval" = yes; then
5578 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5579 else
5580 ac_cv_use_resources='wxUSE_RESOURCES=no'
5581 fi
5582
5583else
5584
5585 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5593
5594fi
5595
5596
5597 eval "$ac_cv_use_resources"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_RESOURCES" = yes; then
5603 echo "$ac_t""yes" 1>&6
5604 else
5605 echo "$ac_t""no" 1>&6
5606 fi
5607
5608
5609
5610 enablestring=
5611 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5612echo "configure:5613: checking for --${enablestring:-enable}-xresources" >&5
5613 no_cache=0
5614 # Check whether --enable-xresources or --disable-xresources was given.
5615if test "${enable_xresources+set}" = set; then
5616 enableval="$enable_xresources"
5617
5618 if test "$enableval" = yes; then
5619 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5620 else
5621 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5622 fi
5623
5624else
5625
5626 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5627 if test "x$LINE" != x ; then
5628 eval "DEFAULT_$LINE"
5629 else
5630 no_cache=1
5631 fi
5632
5633 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5634
5635fi
5636
5637
5638 eval "$ac_cv_use_xresources"
5639 if test "$no_cache" != 1; then
5640 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5641 fi
5642
5643 if test "$wxUSE_X_RESOURCES" = yes; then
5644 echo "$ac_t""yes" 1>&6
5645 else
5646 echo "$ac_t""no" 1>&6
5647 fi
5648
5649
5650
5651
5652 enablestring=
5653 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5654echo "configure:5655: checking for --${enablestring:-enable}-clipboard" >&5
5655 no_cache=0
5656 # Check whether --enable-clipboard or --disable-clipboard was given.
5657if test "${enable_clipboard+set}" = set; then
5658 enableval="$enable_clipboard"
5659
5660 if test "$enableval" = yes; then
5661 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5662 else
5663 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5664 fi
5665
5666else
5667
5668 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5669 if test "x$LINE" != x ; then
5670 eval "DEFAULT_$LINE"
5671 else
5672 no_cache=1
5673 fi
5674
5675 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5676
5677fi
5678
5679
5680 eval "$ac_cv_use_clipboard"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_CLIPBOARD" = yes; then
5686 echo "$ac_t""yes" 1>&6
5687 else
5688 echo "$ac_t""no" 1>&6
5689 fi
5690
5691
5692 enablestring=
5693 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5694echo "configure:5695: checking for --${enablestring:-enable}-dnd" >&5
5695 no_cache=0
5696 # Check whether --enable-dnd or --disable-dnd was given.
5697if test "${enable_dnd+set}" = set; then
5698 enableval="$enable_dnd"
5699
5700 if test "$enableval" = yes; then
5701 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5702 else
5703 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5704 fi
5705
5706else
5707
5708 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5709 if test "x$LINE" != x ; then
5710 eval "DEFAULT_$LINE"
5711 else
5712 no_cache=1
5713 fi
5714
5715 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5716
5717fi
5718
5719
5720 eval "$ac_cv_use_dnd"
5721 if test "$no_cache" != 1; then
5722 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5723 fi
5724
5725 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5726 echo "$ac_t""yes" 1>&6
5727 else
5728 echo "$ac_t""no" 1>&6
5729 fi
5730
5731
5732 enablestring=
5733 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5734echo "configure:5735: checking for --${enablestring:-enable}-metafile" >&5
5735 no_cache=0
5736 # Check whether --enable-metafile or --disable-metafile was given.
5737if test "${enable_metafile+set}" = set; then
5738 enableval="$enable_metafile"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5742 else
5743 ac_cv_use_metafile='wxUSE_METAFILE=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5756
5757fi
5758
5759
5760 eval "$ac_cv_use_metafile"
5761 if test "$no_cache" != 1; then
5762 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5763 fi
5764
5765 if test "$wxUSE_METAFILE" = yes; then
5766 echo "$ac_t""yes" 1>&6
5767 else
5768 echo "$ac_t""no" 1>&6
5769 fi
5770
5771
5772
5773 enablestring=
5774 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5775echo "configure:5776: checking for --${enablestring:-enable}-treelayout" >&5
5776 no_cache=0
5777 # Check whether --enable-treelayout or --disable-treelayout was given.
5778if test "${enable_treelayout+set}" = set; then
5779 enableval="$enable_treelayout"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5783 else
5784 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5797
5798fi
5799
5800
5801 eval "$ac_cv_use_treelayout"
5802 if test "$no_cache" != 1; then
5803 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5804 fi
5805
5806 if test "$wxUSE_TREELAYOUT" = yes; then
5807 echo "$ac_t""yes" 1>&6
5808 else
5809 echo "$ac_t""no" 1>&6
5810 fi
5811
5812
5813
5814
5815 enablestring=
5816 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5817echo "configure:5818: checking for --${enablestring:-enable}-controls" >&5
5818 no_cache=0
5819 # Check whether --enable-controls or --disable-controls was given.
5820if test "${enable_controls+set}" = set; then
5821 enableval="$enable_controls"
5822
5823 if test "$enableval" = yes; then
5824 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5825 else
5826 ac_cv_use_controls='wxUSE_CONTROLS=no'
5827 fi
5828
5829else
5830
5831 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5832 if test "x$LINE" != x ; then
5833 eval "DEFAULT_$LINE"
5834 else
5835 no_cache=1
5836 fi
5837
5838 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5839
5840fi
5841
5842
5843 eval "$ac_cv_use_controls"
5844 if test "$no_cache" != 1; then
5845 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5846 fi
5847
5848 if test "$wxUSE_CONTROLS" = yes; then
5849 echo "$ac_t""yes" 1>&6
5850 else
5851 echo "$ac_t""no" 1>&6
5852 fi
5853
5854
5855if test "$wxUSE_CONTROLS" = "yes"; then
5856 DEFAULT_wxUSE_ACCEL=yes
5857 DEFAULT_wxUSE_BMPBUTTON=yes
5858 DEFAULT_wxUSE_BUTTON=yes
5859 DEFAULT_wxUSE_CALCTRL=no
5860 DEFAULT_wxUSE_CARET=yes
5861 DEFAULT_wxUSE_COMBOBOX=yes
5862 DEFAULT_wxUSE_CHECKBOX=yes
5863 DEFAULT_wxUSE_CHECKLISTBOX=yes
5864 DEFAULT_wxUSE_CHOICE=yes
5865 DEFAULT_wxUSE_GAUGE=yes
5866 DEFAULT_wxUSE_GRID=yes
5867 DEFAULT_wxUSE_NEW_GRID=yes
5868 DEFAULT_wxUSE_IMAGLIST=yes
5869 DEFAULT_wxUSE_LISTBOX=yes
5870 DEFAULT_wxUSE_LISTCTRL=yes
5871 DEFAULT_wxUSE_NOTEBOOK=yes
5872 DEFAULT_wxUSE_PROPSHEET=yes
5873 DEFAULT_wxUSE_RADIOBOX=yes
5874 DEFAULT_wxUSE_RADIOBTN=yes
5875 DEFAULT_wxUSE_SASH=yes
5876 DEFAULT_wxUSE_SCROLLBAR=yes
5877 DEFAULT_wxUSE_SLIDER=yes
5878 DEFAULT_wxUSE_SPINBTN=yes
5879 DEFAULT_wxUSE_SPINCTRL=yes
5880 DEFAULT_wxUSE_SPLITTER=yes
5881 DEFAULT_wxUSE_STATBMP=yes
5882 DEFAULT_wxUSE_STATBOX=yes
5883 DEFAULT_wxUSE_STATLINE=yes
5884 DEFAULT_wxUSE_STATUSBAR=yes
5885 DEFAULT_wxUSE_TAB_DIALOG=yes
5886 DEFAULT_wxUSE_TOGGLEBTN=yes
5887 DEFAULT_wxUSE_TOOLBAR=yes
5888 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5889 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5890 DEFAULT_wxUSE_TOOLTIPS=yes
5891 DEFAULT_wxUSE_TREECTRL=yes
5892 DEFAULT_wxUSE_POPUPWIN=yes
5893 DEFAULT_wxUSE_TIPWINDOW=yes
5894elif test "$wxUSE_CONTROLS" = "no"; then
5895 DEFAULT_wxUSE_ACCEL=no
5896 DEFAULT_wxUSE_BMPBUTTON=no
5897 DEFAULT_wxUSE_BUTTON=no
5898 DEFAULT_wxUSE_CALCTRL=no
5899 DEFAULT_wxUSE_CARET=no
5900 DEFAULT_wxUSE_COMBOBOX=no
5901 DEFAULT_wxUSE_CHECKBOX=no
5902 DEFAULT_wxUSE_CHECKLISTBOX=no
5903 DEFAULT_wxUSE_CHOICE=no
5904 DEFAULT_wxUSE_GAUGE=no
5905 DEFAULT_wxUSE_GRID=no
5906 DEFAULT_wxUSE_NEW_GRID=no
5907 DEFAULT_wxUSE_IMAGLIST=no
5908 DEFAULT_wxUSE_LISTBOX=no
5909 DEFAULT_wxUSE_LISTCTRL=no
5910 DEFAULT_wxUSE_NOTEBOOK=no
5911 DEFAULT_wxUSE_PROPSHEET=no
5912 DEFAULT_wxUSE_RADIOBOX=no
5913 DEFAULT_wxUSE_RADIOBTN=no
5914 DEFAULT_wxUSE_SASH=no
5915 DEFAULT_wxUSE_SCROLLBAR=no
5916 DEFAULT_wxUSE_SLIDER=no
5917 DEFAULT_wxUSE_SPINBTN=no
5918 DEFAULT_wxUSE_SPINCTRL=no
5919 DEFAULT_wxUSE_SPLITTER=no
5920 DEFAULT_wxUSE_STATBMP=no
5921 DEFAULT_wxUSE_STATBOX=no
5922 DEFAULT_wxUSE_STATLINE=no
5923 DEFAULT_wxUSE_STATUSBAR=no
5924 DEFAULT_wxUSE_TAB_DIALOG=no
5925 DEFAULT_wxUSE_TOGGLEBTN=no
5926 DEFAULT_wxUSE_TOOLBAR=no
5927 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5928 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5929 DEFAULT_wxUSE_TOOLTIPS=no
5930 DEFAULT_wxUSE_TREECTRL=no
5931 DEFAULT_wxUSE_POPUPWIN=no
5932 DEFAULT_wxUSE_TIPWINDOW=no
5933fi
5934
5935
5936 enablestring=
5937 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5938echo "configure:5939: checking for --${enablestring:-enable}-accel" >&5
5939 no_cache=0
5940 # Check whether --enable-accel or --disable-accel was given.
5941if test "${enable_accel+set}" = set; then
5942 enableval="$enable_accel"
5943
5944 if test "$enableval" = yes; then
5945 ac_cv_use_accel='wxUSE_ACCEL=yes'
5946 else
5947 ac_cv_use_accel='wxUSE_ACCEL=no'
5948 fi
5949
5950else
5951
5952 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5953 if test "x$LINE" != x ; then
5954 eval "DEFAULT_$LINE"
5955 else
5956 no_cache=1
5957 fi
5958
5959 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5960
5961fi
5962
5963
5964 eval "$ac_cv_use_accel"
5965 if test "$no_cache" != 1; then
5966 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5967 fi
5968
5969 if test "$wxUSE_ACCEL" = yes; then
5970 echo "$ac_t""yes" 1>&6
5971 else
5972 echo "$ac_t""no" 1>&6
5973 fi
5974
5975
5976 enablestring=
5977 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5978echo "configure:5979: checking for --${enablestring:-enable}-button" >&5
5979 no_cache=0
5980 # Check whether --enable-button or --disable-button was given.
5981if test "${enable_button+set}" = set; then
5982 enableval="$enable_button"
5983
5984 if test "$enableval" = yes; then
5985 ac_cv_use_button='wxUSE_BUTTON=yes'
5986 else
5987 ac_cv_use_button='wxUSE_BUTTON=no'
5988 fi
5989
5990else
5991
5992 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5993 if test "x$LINE" != x ; then
5994 eval "DEFAULT_$LINE"
5995 else
5996 no_cache=1
5997 fi
5998
5999 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6000
6001fi
6002
6003
6004 eval "$ac_cv_use_button"
6005 if test "$no_cache" != 1; then
6006 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6007 fi
6008
6009 if test "$wxUSE_BUTTON" = yes; then
6010 echo "$ac_t""yes" 1>&6
6011 else
6012 echo "$ac_t""no" 1>&6
6013 fi
6014
6015
6016 enablestring=
6017 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
6018echo "configure:6019: checking for --${enablestring:-enable}-bmpbutton" >&5
6019 no_cache=0
6020 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6021if test "${enable_bmpbutton+set}" = set; then
6022 enableval="$enable_bmpbutton"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6026 else
6027 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6040
6041fi
6042
6043
6044 eval "$ac_cv_use_bmpbutton"
6045 if test "$no_cache" != 1; then
6046 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6047 fi
6048
6049 if test "$wxUSE_BMPBUTTON" = yes; then
6050 echo "$ac_t""yes" 1>&6
6051 else
6052 echo "$ac_t""no" 1>&6
6053 fi
6054
6055
6056 enablestring=
6057 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6058echo "configure:6059: checking for --${enablestring:-enable}-calendar" >&5
6059 no_cache=0
6060 # Check whether --enable-calendar or --disable-calendar was given.
6061if test "${enable_calendar+set}" = set; then
6062 enableval="$enable_calendar"
6063
6064 if test "$enableval" = yes; then
6065 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6066 else
6067 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6068 fi
6069
6070else
6071
6072 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6073 if test "x$LINE" != x ; then
6074 eval "DEFAULT_$LINE"
6075 else
6076 no_cache=1
6077 fi
6078
6079 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6080
6081fi
6082
6083
6084 eval "$ac_cv_use_calendar"
6085 if test "$no_cache" != 1; then
6086 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6087 fi
6088
6089 if test "$wxUSE_CALCTRL" = yes; then
6090 echo "$ac_t""yes" 1>&6
6091 else
6092 echo "$ac_t""no" 1>&6
6093 fi
6094
6095
6096 enablestring=
6097 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6098echo "configure:6099: checking for --${enablestring:-enable}-caret" >&5
6099 no_cache=0
6100 # Check whether --enable-caret or --disable-caret was given.
6101if test "${enable_caret+set}" = set; then
6102 enableval="$enable_caret"
6103
6104 if test "$enableval" = yes; then
6105 ac_cv_use_caret='wxUSE_CARET=yes'
6106 else
6107 ac_cv_use_caret='wxUSE_CARET=no'
6108 fi
6109
6110else
6111
6112 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
6119 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6120
6121fi
6122
6123
6124 eval "$ac_cv_use_caret"
6125 if test "$no_cache" != 1; then
6126 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6127 fi
6128
6129 if test "$wxUSE_CARET" = yes; then
6130 echo "$ac_t""yes" 1>&6
6131 else
6132 echo "$ac_t""no" 1>&6
6133 fi
6134
6135
6136 enablestring=
6137 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6138echo "configure:6139: checking for --${enablestring:-enable}-checkbox" >&5
6139 no_cache=0
6140 # Check whether --enable-checkbox or --disable-checkbox was given.
6141if test "${enable_checkbox+set}" = set; then
6142 enableval="$enable_checkbox"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6146 else
6147 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6160
6161fi
6162
6163
6164 eval "$ac_cv_use_checkbox"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_CHECKBOX" = yes; then
6170 echo "$ac_t""yes" 1>&6
6171 else
6172 echo "$ac_t""no" 1>&6
6173 fi
6174
6175
6176 enablestring=
6177 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6178echo "configure:6179: checking for --${enablestring:-enable}-checklst" >&5
6179 no_cache=0
6180 # Check whether --enable-checklst or --disable-checklst was given.
6181if test "${enable_checklst+set}" = set; then
6182 enableval="$enable_checklst"
6183
6184 if test "$enableval" = yes; then
6185 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6186 else
6187 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6188 fi
6189
6190else
6191
6192 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6193 if test "x$LINE" != x ; then
6194 eval "DEFAULT_$LINE"
6195 else
6196 no_cache=1
6197 fi
6198
6199 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6200
6201fi
6202
6203
6204 eval "$ac_cv_use_checklst"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_CHECKLST" = yes; then
6210 echo "$ac_t""yes" 1>&6
6211 else
6212 echo "$ac_t""no" 1>&6
6213 fi
6214
6215
6216 enablestring=
6217 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6218echo "configure:6219: checking for --${enablestring:-enable}-choice" >&5
6219 no_cache=0
6220 # Check whether --enable-choice or --disable-choice was given.
6221if test "${enable_choice+set}" = set; then
6222 enableval="$enable_choice"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_choice='wxUSE_CHOICE=yes'
6226 else
6227 ac_cv_use_choice='wxUSE_CHOICE=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6240
6241fi
6242
6243
6244 eval "$ac_cv_use_choice"
6245 if test "$no_cache" != 1; then
6246 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6247 fi
6248
6249 if test "$wxUSE_CHOICE" = yes; then
6250 echo "$ac_t""yes" 1>&6
6251 else
6252 echo "$ac_t""no" 1>&6
6253 fi
6254
6255
6256 enablestring=
6257 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6258echo "configure:6259: checking for --${enablestring:-enable}-combobox" >&5
6259 no_cache=0
6260 # Check whether --enable-combobox or --disable-combobox was given.
6261if test "${enable_combobox+set}" = set; then
6262 enableval="$enable_combobox"
6263
6264 if test "$enableval" = yes; then
6265 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6266 else
6267 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6268 fi
6269
6270else
6271
6272 LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6280
6281fi
6282
6283
6284 eval "$ac_cv_use_combobox"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_COMBOBOX" = yes; then
6290 echo "$ac_t""yes" 1>&6
6291 else
6292 echo "$ac_t""no" 1>&6
6293 fi
6294
6295
6296 enablestring=
6297 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6298echo "configure:6299: checking for --${enablestring:-enable}-display" >&5
6299 no_cache=0
6300 # Check whether --enable-display or --disable-display was given.
6301if test "${enable_display+set}" = set; then
6302 enableval="$enable_display"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_display='wxUSE_DISPLAY=yes'
6306 else
6307 ac_cv_use_display='wxUSE_DISPLAY=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6320
6321fi
6322
6323
6324 eval "$ac_cv_use_display"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_DISPLAY" = yes; then
6330 echo "$ac_t""yes" 1>&6
6331 else
6332 echo "$ac_t""no" 1>&6
6333 fi
6334
6335
6336 enablestring=
6337 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6338echo "configure:6339: checking for --${enablestring:-enable}-gauge" >&5
6339 no_cache=0
6340 # Check whether --enable-gauge or --disable-gauge was given.
6341if test "${enable_gauge+set}" = set; then
6342 enableval="$enable_gauge"
6343
6344 if test "$enableval" = yes; then
6345 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6346 else
6347 ac_cv_use_gauge='wxUSE_GAUGE=no'
6348 fi
6349
6350else
6351
6352 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
6359 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6360
6361fi
6362
6363
6364 eval "$ac_cv_use_gauge"
6365 if test "$no_cache" != 1; then
6366 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6367 fi
6368
6369 if test "$wxUSE_GAUGE" = yes; then
6370 echo "$ac_t""yes" 1>&6
6371 else
6372 echo "$ac_t""no" 1>&6
6373 fi
6374
6375
6376 enablestring=
6377 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6378echo "configure:6379: checking for --${enablestring:-enable}-grid" >&5
6379 no_cache=0
6380 # Check whether --enable-grid or --disable-grid was given.
6381if test "${enable_grid+set}" = set; then
6382 enableval="$enable_grid"
6383
6384 if test "$enableval" = yes; then
6385 ac_cv_use_grid='wxUSE_GRID=yes'
6386 else
6387 ac_cv_use_grid='wxUSE_GRID=no'
6388 fi
6389
6390else
6391
6392 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6400
6401fi
6402
6403
6404 eval "$ac_cv_use_grid"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_GRID" = yes; then
6410 echo "$ac_t""yes" 1>&6
6411 else
6412 echo "$ac_t""no" 1>&6
6413 fi
6414
6415
6416 enablestring=
6417 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6418echo "configure:6419: checking for --${enablestring:-enable}-newgrid" >&5
6419 no_cache=0
6420 # Check whether --enable-newgrid or --disable-newgrid was given.
6421if test "${enable_newgrid+set}" = set; then
6422 enableval="$enable_newgrid"
6423
6424 if test "$enableval" = yes; then
6425 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6426 else
6427 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6428 fi
6429
6430else
6431
6432 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6433 if test "x$LINE" != x ; then
6434 eval "DEFAULT_$LINE"
6435 else
6436 no_cache=1
6437 fi
6438
6439 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6440
6441fi
6442
6443
6444 eval "$ac_cv_use_newgrid"
6445 if test "$no_cache" != 1; then
6446 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6447 fi
6448
6449 if test "$wxUSE_NEW_GRID" = yes; then
6450 echo "$ac_t""yes" 1>&6
6451 else
6452 echo "$ac_t""no" 1>&6
6453 fi
6454
6455
6456 enablestring=
6457 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6458echo "configure:6459: checking for --${enablestring:-enable}-imaglist" >&5
6459 no_cache=0
6460 # Check whether --enable-imaglist or --disable-imaglist was given.
6461if test "${enable_imaglist+set}" = set; then
6462 enableval="$enable_imaglist"
6463
6464 if test "$enableval" = yes; then
6465 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6466 else
6467 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6468 fi
6469
6470else
6471
6472 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6473 if test "x$LINE" != x ; then
6474 eval "DEFAULT_$LINE"
6475 else
6476 no_cache=1
6477 fi
6478
6479 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6480
6481fi
6482
6483
6484 eval "$ac_cv_use_imaglist"
6485 if test "$no_cache" != 1; then
6486 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6487 fi
6488
6489 if test "$wxUSE_IMAGLIST" = yes; then
6490 echo "$ac_t""yes" 1>&6
6491 else
6492 echo "$ac_t""no" 1>&6
6493 fi
6494
6495
6496 enablestring=
6497 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6498echo "configure:6499: checking for --${enablestring:-enable}-listbox" >&5
6499 no_cache=0
6500 # Check whether --enable-listbox or --disable-listbox was given.
6501if test "${enable_listbox+set}" = set; then
6502 enableval="$enable_listbox"
6503
6504 if test "$enableval" = yes; then
6505 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6506 else
6507 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6508 fi
6509
6510else
6511
6512 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6513 if test "x$LINE" != x ; then
6514 eval "DEFAULT_$LINE"
6515 else
6516 no_cache=1
6517 fi
6518
6519 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6520
6521fi
6522
6523
6524 eval "$ac_cv_use_listbox"
6525 if test "$no_cache" != 1; then
6526 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6527 fi
6528
6529 if test "$wxUSE_LISTBOX" = yes; then
6530 echo "$ac_t""yes" 1>&6
6531 else
6532 echo "$ac_t""no" 1>&6
6533 fi
6534
6535
6536 enablestring=
6537 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6538echo "configure:6539: checking for --${enablestring:-enable}-listctrl" >&5
6539 no_cache=0
6540 # Check whether --enable-listctrl or --disable-listctrl was given.
6541if test "${enable_listctrl+set}" = set; then
6542 enableval="$enable_listctrl"
6543
6544 if test "$enableval" = yes; then
6545 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6546 else
6547 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6548 fi
6549
6550else
6551
6552 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6560
6561fi
6562
6563
6564 eval "$ac_cv_use_listctrl"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_LISTCTRL" = yes; then
6570 echo "$ac_t""yes" 1>&6
6571 else
6572 echo "$ac_t""no" 1>&6
6573 fi
6574
6575
6576 enablestring=
6577 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6578echo "configure:6579: checking for --${enablestring:-enable}-notebook" >&5
6579 no_cache=0
6580 # Check whether --enable-notebook or --disable-notebook was given.
6581if test "${enable_notebook+set}" = set; then
6582 enableval="$enable_notebook"
6583
6584 if test "$enableval" = yes; then
6585 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6586 else
6587 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6588 fi
6589
6590else
6591
6592 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6593 if test "x$LINE" != x ; then
6594 eval "DEFAULT_$LINE"
6595 else
6596 no_cache=1
6597 fi
6598
6599 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6600
6601fi
6602
6603
6604 eval "$ac_cv_use_notebook"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_NOTEBOOK" = yes; then
6610 echo "$ac_t""yes" 1>&6
6611 else
6612 echo "$ac_t""no" 1>&6
6613 fi
6614
6615
6616 enablestring=
6617 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6618echo "configure:6619: checking for --${enablestring:-enable}-propsheet" >&5
6619 no_cache=0
6620 # Check whether --enable-propsheet or --disable-propsheet was given.
6621if test "${enable_propsheet+set}" = set; then
6622 enableval="$enable_propsheet"
6623
6624 if test "$enableval" = yes; then
6625 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6626 else
6627 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6628 fi
6629
6630else
6631
6632 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6633 if test "x$LINE" != x ; then
6634 eval "DEFAULT_$LINE"
6635 else
6636 no_cache=1
6637 fi
6638
6639 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6640
6641fi
6642
6643
6644 eval "$ac_cv_use_propsheet"
6645 if test "$no_cache" != 1; then
6646 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6647 fi
6648
6649 if test "$wxUSE_PROPSHEET" = yes; then
6650 echo "$ac_t""yes" 1>&6
6651 else
6652 echo "$ac_t""no" 1>&6
6653 fi
6654
6655
6656 enablestring=
6657 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6658echo "configure:6659: checking for --${enablestring:-enable}-radiobox" >&5
6659 no_cache=0
6660 # Check whether --enable-radiobox or --disable-radiobox was given.
6661if test "${enable_radiobox+set}" = set; then
6662 enableval="$enable_radiobox"
6663
6664 if test "$enableval" = yes; then
6665 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6666 else
6667 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6668 fi
6669
6670else
6671
6672 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6673 if test "x$LINE" != x ; then
6674 eval "DEFAULT_$LINE"
6675 else
6676 no_cache=1
6677 fi
6678
6679 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6680
6681fi
6682
6683
6684 eval "$ac_cv_use_radiobox"
6685 if test "$no_cache" != 1; then
6686 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6687 fi
6688
6689 if test "$wxUSE_RADIOBOX" = yes; then
6690 echo "$ac_t""yes" 1>&6
6691 else
6692 echo "$ac_t""no" 1>&6
6693 fi
6694
6695
6696 enablestring=
6697 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6698echo "configure:6699: checking for --${enablestring:-enable}-radiobtn" >&5
6699 no_cache=0
6700 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6701if test "${enable_radiobtn+set}" = set; then
6702 enableval="$enable_radiobtn"
6703
6704 if test "$enableval" = yes; then
6705 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6706 else
6707 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6708 fi
6709
6710else
6711
6712 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6713 if test "x$LINE" != x ; then
6714 eval "DEFAULT_$LINE"
6715 else
6716 no_cache=1
6717 fi
6718
6719 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6720
6721fi
6722
6723
6724 eval "$ac_cv_use_radiobtn"
6725 if test "$no_cache" != 1; then
6726 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6727 fi
6728
6729 if test "$wxUSE_RADIOBTN" = yes; then
6730 echo "$ac_t""yes" 1>&6
6731 else
6732 echo "$ac_t""no" 1>&6
6733 fi
6734
6735
6736 enablestring=
6737 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6738echo "configure:6739: checking for --${enablestring:-enable}-sash" >&5
6739 no_cache=0
6740 # Check whether --enable-sash or --disable-sash was given.
6741if test "${enable_sash+set}" = set; then
6742 enableval="$enable_sash"
6743
6744 if test "$enableval" = yes; then
6745 ac_cv_use_sash='wxUSE_SASH=yes'
6746 else
6747 ac_cv_use_sash='wxUSE_SASH=no'
6748 fi
6749
6750else
6751
6752 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6753 if test "x$LINE" != x ; then
6754 eval "DEFAULT_$LINE"
6755 else
6756 no_cache=1
6757 fi
6758
6759 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6760
6761fi
6762
6763
6764 eval "$ac_cv_use_sash"
6765 if test "$no_cache" != 1; then
6766 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6767 fi
6768
6769 if test "$wxUSE_SASH" = yes; then
6770 echo "$ac_t""yes" 1>&6
6771 else
6772 echo "$ac_t""no" 1>&6
6773 fi
6774
6775
6776 enablestring=
6777 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6778echo "configure:6779: checking for --${enablestring:-enable}-scrollbar" >&5
6779 no_cache=0
6780 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6781if test "${enable_scrollbar+set}" = set; then
6782 enableval="$enable_scrollbar"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6786 else
6787 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6788 fi
6789
6790else
6791
6792 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6800
6801fi
6802
6803
6804 eval "$ac_cv_use_scrollbar"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_SCROLLBAR" = yes; then
6810 echo "$ac_t""yes" 1>&6
6811 else
6812 echo "$ac_t""no" 1>&6
6813 fi
6814
6815
6816 enablestring=
6817 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6818echo "configure:6819: checking for --${enablestring:-enable}-slider" >&5
6819 no_cache=0
6820 # Check whether --enable-slider or --disable-slider was given.
6821if test "${enable_slider+set}" = set; then
6822 enableval="$enable_slider"
6823
6824 if test "$enableval" = yes; then
6825 ac_cv_use_slider='wxUSE_SLIDER=yes'
6826 else
6827 ac_cv_use_slider='wxUSE_SLIDER=no'
6828 fi
6829
6830else
6831
6832 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6833 if test "x$LINE" != x ; then
6834 eval "DEFAULT_$LINE"
6835 else
6836 no_cache=1
6837 fi
6838
6839 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6840
6841fi
6842
6843
6844 eval "$ac_cv_use_slider"
6845 if test "$no_cache" != 1; then
6846 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6847 fi
6848
6849 if test "$wxUSE_SLIDER" = yes; then
6850 echo "$ac_t""yes" 1>&6
6851 else
6852 echo "$ac_t""no" 1>&6
6853 fi
6854
6855
6856 enablestring=
6857 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6858echo "configure:6859: checking for --${enablestring:-enable}-spinbtn" >&5
6859 no_cache=0
6860 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6861if test "${enable_spinbtn+set}" = set; then
6862 enableval="$enable_spinbtn"
6863
6864 if test "$enableval" = yes; then
6865 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6866 else
6867 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6868 fi
6869
6870else
6871
6872 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6880
6881fi
6882
6883
6884 eval "$ac_cv_use_spinbtn"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_SPINBTN" = yes; then
6890 echo "$ac_t""yes" 1>&6
6891 else
6892 echo "$ac_t""no" 1>&6
6893 fi
6894
6895
6896 enablestring=
6897 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6898echo "configure:6899: checking for --${enablestring:-enable}-spinctrl" >&5
6899 no_cache=0
6900 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6901if test "${enable_spinctrl+set}" = set; then
6902 enableval="$enable_spinctrl"
6903
6904 if test "$enableval" = yes; then
6905 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6906 else
6907 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6908 fi
6909
6910else
6911
6912 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6913 if test "x$LINE" != x ; then
6914 eval "DEFAULT_$LINE"
6915 else
6916 no_cache=1
6917 fi
6918
6919 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6920
6921fi
6922
6923
6924 eval "$ac_cv_use_spinctrl"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_SPINCTRL" = yes; then
6930 echo "$ac_t""yes" 1>&6
6931 else
6932 echo "$ac_t""no" 1>&6
6933 fi
6934
6935
6936 enablestring=
6937 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6938echo "configure:6939: checking for --${enablestring:-enable}-splitter" >&5
6939 no_cache=0
6940 # Check whether --enable-splitter or --disable-splitter was given.
6941if test "${enable_splitter+set}" = set; then
6942 enableval="$enable_splitter"
6943
6944 if test "$enableval" = yes; then
6945 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6946 else
6947 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6948 fi
6949
6950else
6951
6952 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6953 if test "x$LINE" != x ; then
6954 eval "DEFAULT_$LINE"
6955 else
6956 no_cache=1
6957 fi
6958
6959 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6960
6961fi
6962
6963
6964 eval "$ac_cv_use_splitter"
6965 if test "$no_cache" != 1; then
6966 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6967 fi
6968
6969 if test "$wxUSE_SPLITTER" = yes; then
6970 echo "$ac_t""yes" 1>&6
6971 else
6972 echo "$ac_t""no" 1>&6
6973 fi
6974
6975
6976 enablestring=
6977 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6978echo "configure:6979: checking for --${enablestring:-enable}-statbmp" >&5
6979 no_cache=0
6980 # Check whether --enable-statbmp or --disable-statbmp was given.
6981if test "${enable_statbmp+set}" = set; then
6982 enableval="$enable_statbmp"
6983
6984 if test "$enableval" = yes; then
6985 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6986 else
6987 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6988 fi
6989
6990else
6991
6992 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7000
7001fi
7002
7003
7004 eval "$ac_cv_use_statbmp"
7005 if test "$no_cache" != 1; then
7006 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7007 fi
7008
7009 if test "$wxUSE_STATBMP" = yes; then
7010 echo "$ac_t""yes" 1>&6
7011 else
7012 echo "$ac_t""no" 1>&6
7013 fi
7014
7015
7016 enablestring=
7017 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
7018echo "configure:7019: checking for --${enablestring:-enable}-statbox" >&5
7019 no_cache=0
7020 # Check whether --enable-statbox or --disable-statbox was given.
7021if test "${enable_statbox+set}" = set; then
7022 enableval="$enable_statbox"
7023
7024 if test "$enableval" = yes; then
7025 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7026 else
7027 ac_cv_use_statbox='wxUSE_STATBOX=no'
7028 fi
7029
7030else
7031
7032 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7033 if test "x$LINE" != x ; then
7034 eval "DEFAULT_$LINE"
7035 else
7036 no_cache=1
7037 fi
7038
7039 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7040
7041fi
7042
7043
7044 eval "$ac_cv_use_statbox"
7045 if test "$no_cache" != 1; then
7046 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7047 fi
7048
7049 if test "$wxUSE_STATBOX" = yes; then
7050 echo "$ac_t""yes" 1>&6
7051 else
7052 echo "$ac_t""no" 1>&6
7053 fi
7054
7055
7056 enablestring=
7057 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7058echo "configure:7059: checking for --${enablestring:-enable}-statline" >&5
7059 no_cache=0
7060 # Check whether --enable-statline or --disable-statline was given.
7061if test "${enable_statline+set}" = set; then
7062 enableval="$enable_statline"
7063
7064 if test "$enableval" = yes; then
7065 ac_cv_use_statline='wxUSE_STATLINE=yes'
7066 else
7067 ac_cv_use_statline='wxUSE_STATLINE=no'
7068 fi
7069
7070else
7071
7072 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7073 if test "x$LINE" != x ; then
7074 eval "DEFAULT_$LINE"
7075 else
7076 no_cache=1
7077 fi
7078
7079 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7080
7081fi
7082
7083
7084 eval "$ac_cv_use_statline"
7085 if test "$no_cache" != 1; then
7086 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7087 fi
7088
7089 if test "$wxUSE_STATLINE" = yes; then
7090 echo "$ac_t""yes" 1>&6
7091 else
7092 echo "$ac_t""no" 1>&6
7093 fi
7094
7095
7096 enablestring=
7097 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7098echo "configure:7099: checking for --${enablestring:-enable}-stattext" >&5
7099 no_cache=0
7100 # Check whether --enable-stattext or --disable-stattext was given.
7101if test "${enable_stattext+set}" = set; then
7102 enableval="$enable_stattext"
7103
7104 if test "$enableval" = yes; then
7105 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7106 else
7107 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7108 fi
7109
7110else
7111
7112 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7120
7121fi
7122
7123
7124 eval "$ac_cv_use_stattext"
7125 if test "$no_cache" != 1; then
7126 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7127 fi
7128
7129 if test "$wxUSE_STATTEXT" = yes; then
7130 echo "$ac_t""yes" 1>&6
7131 else
7132 echo "$ac_t""no" 1>&6
7133 fi
7134
7135
7136 enablestring=
7137 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7138echo "configure:7139: checking for --${enablestring:-enable}-statusbar" >&5
7139 no_cache=0
7140 # Check whether --enable-statusbar or --disable-statusbar was given.
7141if test "${enable_statusbar+set}" = set; then
7142 enableval="$enable_statusbar"
7143
7144 if test "$enableval" = yes; then
7145 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7146 else
7147 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7148 fi
7149
7150else
7151
7152 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7153 if test "x$LINE" != x ; then
7154 eval "DEFAULT_$LINE"
7155 else
7156 no_cache=1
7157 fi
7158
7159 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7160
7161fi
7162
7163
7164 eval "$ac_cv_use_statusbar"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_STATUSBAR" = yes; then
7170 echo "$ac_t""yes" 1>&6
7171 else
7172 echo "$ac_t""no" 1>&6
7173 fi
7174
7175
7176 enablestring=
7177 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7178echo "configure:7179: checking for --${enablestring:-enable}-tabdialog" >&5
7179 no_cache=0
7180 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7181if test "${enable_tabdialog+set}" = set; then
7182 enableval="$enable_tabdialog"
7183
7184 if test "$enableval" = yes; then
7185 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7186 else
7187 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7188 fi
7189
7190else
7191
7192 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7193 if test "x$LINE" != x ; then
7194 eval "DEFAULT_$LINE"
7195 else
7196 no_cache=1
7197 fi
7198
7199 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7200
7201fi
7202
7203
7204 eval "$ac_cv_use_tabdialog"
7205 if test "$no_cache" != 1; then
7206 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7207 fi
7208
7209 if test "$wxUSE_TABDIALOG" = yes; then
7210 echo "$ac_t""yes" 1>&6
7211 else
7212 echo "$ac_t""no" 1>&6
7213 fi
7214
7215
7216 enablestring=
7217 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7218echo "configure:7219: checking for --${enablestring:-enable}-textctrl" >&5
7219 no_cache=0
7220 # Check whether --enable-textctrl or --disable-textctrl was given.
7221if test "${enable_textctrl+set}" = set; then
7222 enableval="$enable_textctrl"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7226 else
7227 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7240
7241fi
7242
7243
7244 eval "$ac_cv_use_textctrl"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_TEXTCTRL" = yes; then
7250 echo "$ac_t""yes" 1>&6
7251 else
7252 echo "$ac_t""no" 1>&6
7253 fi
7254
7255
7256 enablestring=
7257 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7258echo "configure:7259: checking for --${enablestring:-enable}-togglebtn" >&5
7259 no_cache=0
7260 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7261if test "${enable_togglebtn+set}" = set; then
7262 enableval="$enable_togglebtn"
7263
7264 if test "$enableval" = yes; then
7265 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7266 else
7267 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7268 fi
7269
7270else
7271
7272 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7273 if test "x$LINE" != x ; then
7274 eval "DEFAULT_$LINE"
7275 else
7276 no_cache=1
7277 fi
7278
7279 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7280
7281fi
7282
7283
7284 eval "$ac_cv_use_togglebtn"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_TOGGLEBTN" = yes; then
7290 echo "$ac_t""yes" 1>&6
7291 else
7292 echo "$ac_t""no" 1>&6
7293 fi
7294
7295
7296 enablestring=
7297 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7298echo "configure:7299: checking for --${enablestring:-enable}-toolbar" >&5
7299 no_cache=0
7300 # Check whether --enable-toolbar or --disable-toolbar was given.
7301if test "${enable_toolbar+set}" = set; then
7302 enableval="$enable_toolbar"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7306 else
7307 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7308 fi
7309
7310else
7311
7312 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7320
7321fi
7322
7323
7324 eval "$ac_cv_use_toolbar"
7325 if test "$no_cache" != 1; then
7326 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7327 fi
7328
7329 if test "$wxUSE_TOOLBAR" = yes; then
7330 echo "$ac_t""yes" 1>&6
7331 else
7332 echo "$ac_t""no" 1>&6
7333 fi
7334
7335
7336 enablestring=
7337 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7338echo "configure:7339: checking for --${enablestring:-enable}-tbarnative" >&5
7339 no_cache=0
7340 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7341if test "${enable_tbarnative+set}" = set; then
7342 enableval="$enable_tbarnative"
7343
7344 if test "$enableval" = yes; then
7345 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7346 else
7347 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7348 fi
7349
7350else
7351
7352 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7353 if test "x$LINE" != x ; then
7354 eval "DEFAULT_$LINE"
7355 else
7356 no_cache=1
7357 fi
7358
7359 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7360
7361fi
7362
7363
7364 eval "$ac_cv_use_tbarnative"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7370 echo "$ac_t""yes" 1>&6
7371 else
7372 echo "$ac_t""no" 1>&6
7373 fi
7374
7375
7376 enablestring=
7377 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7378echo "configure:7379: checking for --${enablestring:-enable}-tbarsmpl" >&5
7379 no_cache=0
7380 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7381if test "${enable_tbarsmpl+set}" = set; then
7382 enableval="$enable_tbarsmpl"
7383
7384 if test "$enableval" = yes; then
7385 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7386 else
7387 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7388 fi
7389
7390else
7391
7392 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7393 if test "x$LINE" != x ; then
7394 eval "DEFAULT_$LINE"
7395 else
7396 no_cache=1
7397 fi
7398
7399 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7400
7401fi
7402
7403
7404 eval "$ac_cv_use_tbarsmpl"
7405 if test "$no_cache" != 1; then
7406 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7407 fi
7408
7409 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7410 echo "$ac_t""yes" 1>&6
7411 else
7412 echo "$ac_t""no" 1>&6
7413 fi
7414
7415
7416 enablestring=
7417 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7418echo "configure:7419: checking for --${enablestring:-enable}-treectrl" >&5
7419 no_cache=0
7420 # Check whether --enable-treectrl or --disable-treectrl was given.
7421if test "${enable_treectrl+set}" = set; then
7422 enableval="$enable_treectrl"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7426 else
7427 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7440
7441fi
7442
7443
7444 eval "$ac_cv_use_treectrl"
7445 if test "$no_cache" != 1; then
7446 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7447 fi
7448
7449 if test "$wxUSE_TREECTRL" = yes; then
7450 echo "$ac_t""yes" 1>&6
7451 else
7452 echo "$ac_t""no" 1>&6
7453 fi
7454
7455
7456 enablestring=
7457 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7458echo "configure:7459: checking for --${enablestring:-enable}-tipwindow" >&5
7459 no_cache=0
7460 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7461if test "${enable_tipwindow+set}" = set; then
7462 enableval="$enable_tipwindow"
7463
7464 if test "$enableval" = yes; then
7465 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7466 else
7467 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7468 fi
7469
7470else
7471
7472 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7473 if test "x$LINE" != x ; then
7474 eval "DEFAULT_$LINE"
7475 else
7476 no_cache=1
7477 fi
7478
7479 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7480
7481fi
7482
7483
7484 eval "$ac_cv_use_tipwindow"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_TIPWINDOW" = yes; then
7490 echo "$ac_t""yes" 1>&6
7491 else
7492 echo "$ac_t""no" 1>&6
7493 fi
7494
7495
7496 enablestring=
7497 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7498echo "configure:7499: checking for --${enablestring:-enable}-popupwin" >&5
7499 no_cache=0
7500 # Check whether --enable-popupwin or --disable-popupwin was given.
7501if test "${enable_popupwin+set}" = set; then
7502 enableval="$enable_popupwin"
7503
7504 if test "$enableval" = yes; then
7505 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7506 else
7507 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7508 fi
7509
7510else
7511
7512 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7513 if test "x$LINE" != x ; then
7514 eval "DEFAULT_$LINE"
7515 else
7516 no_cache=1
7517 fi
7518
7519 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7520
7521fi
7522
7523
7524 eval "$ac_cv_use_popupwin"
7525 if test "$no_cache" != 1; then
7526 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7527 fi
7528
7529 if test "$wxUSE_POPUPWIN" = yes; then
7530 echo "$ac_t""yes" 1>&6
7531 else
7532 echo "$ac_t""no" 1>&6
7533 fi
7534
7535
7536
7537
7538 enablestring=
7539 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7540echo "configure:7541: checking for --${enablestring:-enable}-commondlg" >&5
7541 no_cache=0
7542 # Check whether --enable-commondlg or --disable-commondlg was given.
7543if test "${enable_commondlg+set}" = set; then
7544 enableval="$enable_commondlg"
7545
7546 if test "$enableval" = yes; then
7547 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7548 else
7549 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7550 fi
7551
7552else
7553
7554 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7555 if test "x$LINE" != x ; then
7556 eval "DEFAULT_$LINE"
7557 else
7558 no_cache=1
7559 fi
7560
7561 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7562
7563fi
7564
7565
7566 eval "$ac_cv_use_commondlg"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_COMMONDLGS" = yes; then
7572 echo "$ac_t""yes" 1>&6
7573 else
7574 echo "$ac_t""no" 1>&6
7575 fi
7576
7577
7578 enablestring=
7579 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7580echo "configure:7581: checking for --${enablestring:-enable}-choicedlg" >&5
7581 no_cache=0
7582 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7583if test "${enable_choicedlg+set}" = set; then
7584 enableval="$enable_choicedlg"
7585
7586 if test "$enableval" = yes; then
7587 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7588 else
7589 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7590 fi
7591
7592else
7593
7594 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7595 if test "x$LINE" != x ; then
7596 eval "DEFAULT_$LINE"
7597 else
7598 no_cache=1
7599 fi
7600
7601 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7602
7603fi
7604
7605
7606 eval "$ac_cv_use_choicedlg"
7607 if test "$no_cache" != 1; then
7608 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7609 fi
7610
7611 if test "$wxUSE_CHOICEDLG" = yes; then
7612 echo "$ac_t""yes" 1>&6
7613 else
7614 echo "$ac_t""no" 1>&6
7615 fi
7616
7617
7618 enablestring=
7619 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7620echo "configure:7621: checking for --${enablestring:-enable}-coldlg" >&5
7621 no_cache=0
7622 # Check whether --enable-coldlg or --disable-coldlg was given.
7623if test "${enable_coldlg+set}" = set; then
7624 enableval="$enable_coldlg"
7625
7626 if test "$enableval" = yes; then
7627 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7628 else
7629 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7630 fi
7631
7632else
7633
7634 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7635 if test "x$LINE" != x ; then
7636 eval "DEFAULT_$LINE"
7637 else
7638 no_cache=1
7639 fi
7640
7641 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7642
7643fi
7644
7645
7646 eval "$ac_cv_use_coldlg"
7647 if test "$no_cache" != 1; then
7648 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7649 fi
7650
7651 if test "$wxUSE_COLOURDLG" = yes; then
7652 echo "$ac_t""yes" 1>&6
7653 else
7654 echo "$ac_t""no" 1>&6
7655 fi
7656
7657
7658 enablestring=
7659 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7660echo "configure:7661: checking for --${enablestring:-enable}-filedlg" >&5
7661 no_cache=0
7662 # Check whether --enable-filedlg or --disable-filedlg was given.
7663if test "${enable_filedlg+set}" = set; then
7664 enableval="$enable_filedlg"
7665
7666 if test "$enableval" = yes; then
7667 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7668 else
7669 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7670 fi
7671
7672else
7673
7674 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7675 if test "x$LINE" != x ; then
7676 eval "DEFAULT_$LINE"
7677 else
7678 no_cache=1
7679 fi
7680
7681 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7682
7683fi
7684
7685
7686 eval "$ac_cv_use_filedlg"
7687 if test "$no_cache" != 1; then
7688 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7689 fi
7690
7691 if test "$wxUSE_FILEDLG" = yes; then
7692 echo "$ac_t""yes" 1>&6
7693 else
7694 echo "$ac_t""no" 1>&6
7695 fi
7696
7697
7698 enablestring=
7699 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7700echo "configure:7701: checking for --${enablestring:-enable}-finddlg" >&5
7701 no_cache=0
7702 # Check whether --enable-finddlg or --disable-finddlg was given.
7703if test "${enable_finddlg+set}" = set; then
7704 enableval="$enable_finddlg"
7705
7706 if test "$enableval" = yes; then
7707 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7708 else
7709 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7710 fi
7711
7712else
7713
7714 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7715 if test "x$LINE" != x ; then
7716 eval "DEFAULT_$LINE"
7717 else
7718 no_cache=1
7719 fi
7720
7721 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7722
7723fi
7724
7725
7726 eval "$ac_cv_use_finddlg"
7727 if test "$no_cache" != 1; then
7728 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7729 fi
7730
7731 if test "$wxUSE_FINDREPLDLG" = yes; then
7732 echo "$ac_t""yes" 1>&6
7733 else
7734 echo "$ac_t""no" 1>&6
7735 fi
7736
7737
7738 enablestring=
7739 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7740echo "configure:7741: checking for --${enablestring:-enable}-fontdlg" >&5
7741 no_cache=0
7742 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7743if test "${enable_fontdlg+set}" = set; then
7744 enableval="$enable_fontdlg"
7745
7746 if test "$enableval" = yes; then
7747 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7748 else
7749 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7750 fi
7751
7752else
7753
7754 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7755 if test "x$LINE" != x ; then
7756 eval "DEFAULT_$LINE"
7757 else
7758 no_cache=1
7759 fi
7760
7761 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7762
7763fi
7764
7765
7766 eval "$ac_cv_use_fontdlg"
7767 if test "$no_cache" != 1; then
7768 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7769 fi
7770
7771 if test "$wxUSE_FONTDLG" = yes; then
7772 echo "$ac_t""yes" 1>&6
7773 else
7774 echo "$ac_t""no" 1>&6
7775 fi
7776
7777
7778 enablestring=
7779 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7780echo "configure:7781: checking for --${enablestring:-enable}-dirdlg" >&5
7781 no_cache=0
7782 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7783if test "${enable_dirdlg+set}" = set; then
7784 enableval="$enable_dirdlg"
7785
7786 if test "$enableval" = yes; then
7787 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7788 else
7789 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7790 fi
7791
7792else
7793
7794 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7795 if test "x$LINE" != x ; then
7796 eval "DEFAULT_$LINE"
7797 else
7798 no_cache=1
7799 fi
7800
7801 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7802
7803fi
7804
7805
7806 eval "$ac_cv_use_dirdlg"
7807 if test "$no_cache" != 1; then
7808 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7809 fi
7810
7811 if test "$wxUSE_DIRDLG" = yes; then
7812 echo "$ac_t""yes" 1>&6
7813 else
7814 echo "$ac_t""no" 1>&6
7815 fi
7816
7817
7818 enablestring=
7819 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7820echo "configure:7821: checking for --${enablestring:-enable}-msgdlg" >&5
7821 no_cache=0
7822 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7823if test "${enable_msgdlg+set}" = set; then
7824 enableval="$enable_msgdlg"
7825
7826 if test "$enableval" = yes; then
7827 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7828 else
7829 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7830 fi
7831
7832else
7833
7834 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7835 if test "x$LINE" != x ; then
7836 eval "DEFAULT_$LINE"
7837 else
7838 no_cache=1
7839 fi
7840
7841 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7842
7843fi
7844
7845
7846 eval "$ac_cv_use_msgdlg"
7847 if test "$no_cache" != 1; then
7848 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7849 fi
7850
7851 if test "$wxUSE_MSGDLG" = yes; then
7852 echo "$ac_t""yes" 1>&6
7853 else
7854 echo "$ac_t""no" 1>&6
7855 fi
7856
7857
7858 enablestring=
7859 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7860echo "configure:7861: checking for --${enablestring:-enable}-numberdlg" >&5
7861 no_cache=0
7862 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7863if test "${enable_numberdlg+set}" = set; then
7864 enableval="$enable_numberdlg"
7865
7866 if test "$enableval" = yes; then
7867 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7868 else
7869 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7870 fi
7871
7872else
7873
7874 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7875 if test "x$LINE" != x ; then
7876 eval "DEFAULT_$LINE"
7877 else
7878 no_cache=1
7879 fi
7880
7881 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7882
7883fi
7884
7885
7886 eval "$ac_cv_use_numberdlg"
7887 if test "$no_cache" != 1; then
7888 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7889 fi
7890
7891 if test "$wxUSE_NUMBERDLG" = yes; then
7892 echo "$ac_t""yes" 1>&6
7893 else
7894 echo "$ac_t""no" 1>&6
7895 fi
7896
7897
7898 enablestring=
7899 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7900echo "configure:7901: checking for --${enablestring:-enable}-splash" >&5
7901 no_cache=0
7902 # Check whether --enable-splash or --disable-splash was given.
7903if test "${enable_splash+set}" = set; then
7904 enableval="$enable_splash"
7905
7906 if test "$enableval" = yes; then
7907 ac_cv_use_splash='wxUSE_SPLASH=yes'
7908 else
7909 ac_cv_use_splash='wxUSE_SPLASH=no'
7910 fi
7911
7912else
7913
7914 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7915 if test "x$LINE" != x ; then
7916 eval "DEFAULT_$LINE"
7917 else
7918 no_cache=1
7919 fi
7920
7921 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7922
7923fi
7924
7925
7926 eval "$ac_cv_use_splash"
7927 if test "$no_cache" != 1; then
7928 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7929 fi
7930
7931 if test "$wxUSE_SPLASH" = yes; then
7932 echo "$ac_t""yes" 1>&6
7933 else
7934 echo "$ac_t""no" 1>&6
7935 fi
7936
7937
7938 enablestring=
7939 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7940echo "configure:7941: checking for --${enablestring:-enable}-textdlg" >&5
7941 no_cache=0
7942 # Check whether --enable-textdlg or --disable-textdlg was given.
7943if test "${enable_textdlg+set}" = set; then
7944 enableval="$enable_textdlg"
7945
7946 if test "$enableval" = yes; then
7947 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7948 else
7949 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7950 fi
7951
7952else
7953
7954 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7955 if test "x$LINE" != x ; then
7956 eval "DEFAULT_$LINE"
7957 else
7958 no_cache=1
7959 fi
7960
7961 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7962
7963fi
7964
7965
7966 eval "$ac_cv_use_textdlg"
7967 if test "$no_cache" != 1; then
7968 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7969 fi
7970
7971 if test "$wxUSE_TEXTDLG" = yes; then
7972 echo "$ac_t""yes" 1>&6
7973 else
7974 echo "$ac_t""no" 1>&6
7975 fi
7976
7977
7978 enablestring=
7979 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7980echo "configure:7981: checking for --${enablestring:-enable}-tipdlg" >&5
7981 no_cache=0
7982 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7983if test "${enable_tipdlg+set}" = set; then
7984 enableval="$enable_tipdlg"
7985
7986 if test "$enableval" = yes; then
7987 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7988 else
7989 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7990 fi
7991
7992else
7993
7994 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7995 if test "x$LINE" != x ; then
7996 eval "DEFAULT_$LINE"
7997 else
7998 no_cache=1
7999 fi
8000
8001 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8002
8003fi
8004
8005
8006 eval "$ac_cv_use_tipdlg"
8007 if test "$no_cache" != 1; then
8008 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8009 fi
8010
8011 if test "$wxUSE_STARTUP_TIPS" = yes; then
8012 echo "$ac_t""yes" 1>&6
8013 else
8014 echo "$ac_t""no" 1>&6
8015 fi
8016
8017
8018 enablestring=
8019 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
8020echo "configure:8021: checking for --${enablestring:-enable}-progressdlg" >&5
8021 no_cache=0
8022 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8023if test "${enable_progressdlg+set}" = set; then
8024 enableval="$enable_progressdlg"
8025
8026 if test "$enableval" = yes; then
8027 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8028 else
8029 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8030 fi
8031
8032else
8033
8034 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8042
8043fi
8044
8045
8046 eval "$ac_cv_use_progressdlg"
8047 if test "$no_cache" != 1; then
8048 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8049 fi
8050
8051 if test "$wxUSE_PROGRESSDLG" = yes; then
8052 echo "$ac_t""yes" 1>&6
8053 else
8054 echo "$ac_t""no" 1>&6
8055 fi
8056
8057
8058 enablestring=
8059 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8060echo "configure:8061: checking for --${enablestring:-enable}-wizarddlg" >&5
8061 no_cache=0
8062 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8063if test "${enable_wizarddlg+set}" = set; then
8064 enableval="$enable_wizarddlg"
8065
8066 if test "$enableval" = yes; then
8067 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8068 else
8069 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8070 fi
8071
8072else
8073
8074 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8075 if test "x$LINE" != x ; then
8076 eval "DEFAULT_$LINE"
8077 else
8078 no_cache=1
8079 fi
8080
8081 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8082
8083fi
8084
8085
8086 eval "$ac_cv_use_wizarddlg"
8087 if test "$no_cache" != 1; then
8088 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8089 fi
8090
8091 if test "$wxUSE_WIZARDDLG" = yes; then
8092 echo "$ac_t""yes" 1>&6
8093 else
8094 echo "$ac_t""no" 1>&6
8095 fi
8096
8097
8098
8099
8100 enablestring=
8101 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8102echo "configure:8103: checking for --${enablestring:-enable}-menus" >&5
8103 no_cache=0
8104 # Check whether --enable-menus or --disable-menus was given.
8105if test "${enable_menus+set}" = set; then
8106 enableval="$enable_menus"
8107
8108 if test "$enableval" = yes; then
8109 ac_cv_use_menus='wxUSE_MENUS=yes'
8110 else
8111 ac_cv_use_menus='wxUSE_MENUS=no'
8112 fi
8113
8114else
8115
8116 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8124
8125fi
8126
8127
8128 eval "$ac_cv_use_menus"
8129 if test "$no_cache" != 1; then
8130 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8131 fi
8132
8133 if test "$wxUSE_MENUS" = yes; then
8134 echo "$ac_t""yes" 1>&6
8135 else
8136 echo "$ac_t""no" 1>&6
8137 fi
8138
8139
8140 enablestring=
8141 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8142echo "configure:8143: checking for --${enablestring:-enable}-miniframe" >&5
8143 no_cache=0
8144 # Check whether --enable-miniframe or --disable-miniframe was given.
8145if test "${enable_miniframe+set}" = set; then
8146 enableval="$enable_miniframe"
8147
8148 if test "$enableval" = yes; then
8149 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8150 else
8151 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8152 fi
8153
8154else
8155
8156 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8157 if test "x$LINE" != x ; then
8158 eval "DEFAULT_$LINE"
8159 else
8160 no_cache=1
8161 fi
8162
8163 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8164
8165fi
8166
8167
8168 eval "$ac_cv_use_miniframe"
8169 if test "$no_cache" != 1; then
8170 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8171 fi
8172
8173 if test "$wxUSE_MINIFRAME" = yes; then
8174 echo "$ac_t""yes" 1>&6
8175 else
8176 echo "$ac_t""no" 1>&6
8177 fi
8178
8179
8180 enablestring=
8181 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8182echo "configure:8183: checking for --${enablestring:-enable}-tooltips" >&5
8183 no_cache=0
8184 # Check whether --enable-tooltips or --disable-tooltips was given.
8185if test "${enable_tooltips+set}" = set; then
8186 enableval="$enable_tooltips"
8187
8188 if test "$enableval" = yes; then
8189 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8190 else
8191 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8192 fi
8193
8194else
8195
8196 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8204
8205fi
8206
8207
8208 eval "$ac_cv_use_tooltips"
8209 if test "$no_cache" != 1; then
8210 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8211 fi
8212
8213 if test "$wxUSE_TOOLTIPS" = yes; then
8214 echo "$ac_t""yes" 1>&6
8215 else
8216 echo "$ac_t""no" 1>&6
8217 fi
8218
8219
8220 enablestring=
8221 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8222echo "configure:8223: checking for --${enablestring:-enable}-splines" >&5
8223 no_cache=0
8224 # Check whether --enable-splines or --disable-splines was given.
8225if test "${enable_splines+set}" = set; then
8226 enableval="$enable_splines"
8227
8228 if test "$enableval" = yes; then
8229 ac_cv_use_splines='wxUSE_SPLINES=yes'
8230 else
8231 ac_cv_use_splines='wxUSE_SPLINES=no'
8232 fi
8233
8234else
8235
8236 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8237 if test "x$LINE" != x ; then
8238 eval "DEFAULT_$LINE"
8239 else
8240 no_cache=1
8241 fi
8242
8243 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8244
8245fi
8246
8247
8248 eval "$ac_cv_use_splines"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_SPLINES" = yes; then
8254 echo "$ac_t""yes" 1>&6
8255 else
8256 echo "$ac_t""no" 1>&6
8257 fi
8258
8259
8260 enablestring=
8261 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8262echo "configure:8263: checking for --${enablestring:-enable}-validators" >&5
8263 no_cache=0
8264 # Check whether --enable-validators or --disable-validators was given.
8265if test "${enable_validators+set}" = set; then
8266 enableval="$enable_validators"
8267
8268 if test "$enableval" = yes; then
8269 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8270 else
8271 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8272 fi
8273
8274else
8275
8276 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8277 if test "x$LINE" != x ; then
8278 eval "DEFAULT_$LINE"
8279 else
8280 no_cache=1
8281 fi
8282
8283 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8284
8285fi
8286
8287
8288 eval "$ac_cv_use_validators"
8289 if test "$no_cache" != 1; then
8290 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8291 fi
8292
8293 if test "$wxUSE_VALIDATORS" = yes; then
8294 echo "$ac_t""yes" 1>&6
8295 else
8296 echo "$ac_t""no" 1>&6
8297 fi
8298
8299
8300 enablestring=
8301 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8302echo "configure:8303: checking for --${enablestring:-enable}-busyinfo" >&5
8303 no_cache=0
8304 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8305if test "${enable_busyinfo+set}" = set; then
8306 enableval="$enable_busyinfo"
8307
8308 if test "$enableval" = yes; then
8309 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8310 else
8311 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8312 fi
8313
8314else
8315
8316 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8317 if test "x$LINE" != x ; then
8318 eval "DEFAULT_$LINE"
8319 else
8320 no_cache=1
8321 fi
8322
8323 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8324
8325fi
8326
8327
8328 eval "$ac_cv_use_busyinfo"
8329 if test "$no_cache" != 1; then
8330 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8331 fi
8332
8333 if test "$wxUSE_BUSYINFO" = yes; then
8334 echo "$ac_t""yes" 1>&6
8335 else
8336 echo "$ac_t""no" 1>&6
8337 fi
8338
8339
8340 enablestring=
8341 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8342echo "configure:8343: checking for --${enablestring:-enable}-joystick" >&5
8343 no_cache=0
8344 # Check whether --enable-joystick or --disable-joystick was given.
8345if test "${enable_joystick+set}" = set; then
8346 enableval="$enable_joystick"
8347
8348 if test "$enableval" = yes; then
8349 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8350 else
8351 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8352 fi
8353
8354else
8355
8356 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8357 if test "x$LINE" != x ; then
8358 eval "DEFAULT_$LINE"
8359 else
8360 no_cache=1
8361 fi
8362
8363 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8364
8365fi
8366
8367
8368 eval "$ac_cv_use_joystick"
8369 if test "$no_cache" != 1; then
8370 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8371 fi
8372
8373 if test "$wxUSE_JOYSTICK" = yes; then
8374 echo "$ac_t""yes" 1>&6
8375 else
8376 echo "$ac_t""no" 1>&6
8377 fi
8378
8379
8380 enablestring=
8381 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8382echo "configure:8383: checking for --${enablestring:-enable}-metafile" >&5
8383 no_cache=0
8384 # Check whether --enable-metafile or --disable-metafile was given.
8385if test "${enable_metafile+set}" = set; then
8386 enableval="$enable_metafile"
8387
8388 if test "$enableval" = yes; then
8389 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8390 else
8391 ac_cv_use_metafile='wxUSE_METAFILE=no'
8392 fi
8393
8394else
8395
8396 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8397 if test "x$LINE" != x ; then
8398 eval "DEFAULT_$LINE"
8399 else
8400 no_cache=1
8401 fi
8402
8403 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8404
8405fi
8406
8407
8408 eval "$ac_cv_use_metafile"
8409 if test "$no_cache" != 1; then
8410 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8411 fi
8412
8413 if test "$wxUSE_METAFILE" = yes; then
8414 echo "$ac_t""yes" 1>&6
8415 else
8416 echo "$ac_t""no" 1>&6
8417 fi
8418
8419
8420 enablestring=
8421 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8422echo "configure:8423: checking for --${enablestring:-enable}-dragimage" >&5
8423 no_cache=0
8424 # Check whether --enable-dragimage or --disable-dragimage was given.
8425if test "${enable_dragimage+set}" = set; then
8426 enableval="$enable_dragimage"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8430 else
8431 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8444
8445fi
8446
8447
8448 eval "$ac_cv_use_dragimage"
8449 if test "$no_cache" != 1; then
8450 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8451 fi
8452
8453 if test "$wxUSE_DRAGIMAGE" = yes; then
8454 echo "$ac_t""yes" 1>&6
8455 else
8456 echo "$ac_t""no" 1>&6
8457 fi
8458
8459
8460
8461
8462 enablestring=
8463 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8464echo "configure:8465: checking for --${enablestring:-enable}-palette" >&5
8465 no_cache=0
8466 # Check whether --enable-palette or --disable-palette was given.
8467if test "${enable_palette+set}" = set; then
8468 enableval="$enable_palette"
8469
8470 if test "$enableval" = yes; then
8471 ac_cv_use_palette='wxUSE_PALETTE=yes'
8472 else
8473 ac_cv_use_palette='wxUSE_PALETTE=no'
8474 fi
8475
8476else
8477
8478 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8479 if test "x$LINE" != x ; then
8480 eval "DEFAULT_$LINE"
8481 else
8482 no_cache=1
8483 fi
8484
8485 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8486
8487fi
8488
8489
8490 eval "$ac_cv_use_palette"
8491 if test "$no_cache" != 1; then
8492 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8493 fi
8494
8495 if test "$wxUSE_PALETTE" = yes; then
8496 echo "$ac_t""yes" 1>&6
8497 else
8498 echo "$ac_t""no" 1>&6
8499 fi
8500
8501
8502 enablestring=
8503 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8504echo "configure:8505: checking for --${enablestring:-enable}-image" >&5
8505 no_cache=0
8506 # Check whether --enable-image or --disable-image was given.
8507if test "${enable_image+set}" = set; then
8508 enableval="$enable_image"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_image='wxUSE_IMAGE=yes'
8512 else
8513 ac_cv_use_image='wxUSE_IMAGE=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8526
8527fi
8528
8529
8530 eval "$ac_cv_use_image"
8531 if test "$no_cache" != 1; then
8532 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8533 fi
8534
8535 if test "$wxUSE_IMAGE" = yes; then
8536 echo "$ac_t""yes" 1>&6
8537 else
8538 echo "$ac_t""no" 1>&6
8539 fi
8540
8541
8542 enablestring=
8543 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8544echo "configure:8545: checking for --${enablestring:-enable}-gif" >&5
8545 no_cache=0
8546 # Check whether --enable-gif or --disable-gif was given.
8547if test "${enable_gif+set}" = set; then
8548 enableval="$enable_gif"
8549
8550 if test "$enableval" = yes; then
8551 ac_cv_use_gif='wxUSE_GIF=yes'
8552 else
8553 ac_cv_use_gif='wxUSE_GIF=no'
8554 fi
8555
8556else
8557
8558 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8559 if test "x$LINE" != x ; then
8560 eval "DEFAULT_$LINE"
8561 else
8562 no_cache=1
8563 fi
8564
8565 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8566
8567fi
8568
8569
8570 eval "$ac_cv_use_gif"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_GIF" = yes; then
8576 echo "$ac_t""yes" 1>&6
8577 else
8578 echo "$ac_t""no" 1>&6
8579 fi
8580
8581
8582 enablestring=
8583 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8584echo "configure:8585: checking for --${enablestring:-enable}-pcx" >&5
8585 no_cache=0
8586 # Check whether --enable-pcx or --disable-pcx was given.
8587if test "${enable_pcx+set}" = set; then
8588 enableval="$enable_pcx"
8589
8590 if test "$enableval" = yes; then
8591 ac_cv_use_pcx='wxUSE_PCX=yes'
8592 else
8593 ac_cv_use_pcx='wxUSE_PCX=no'
8594 fi
8595
8596else
8597
8598 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8599 if test "x$LINE" != x ; then
8600 eval "DEFAULT_$LINE"
8601 else
8602 no_cache=1
8603 fi
8604
8605 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8606
8607fi
8608
8609
8610 eval "$ac_cv_use_pcx"
8611 if test "$no_cache" != 1; then
8612 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8613 fi
8614
8615 if test "$wxUSE_PCX" = yes; then
8616 echo "$ac_t""yes" 1>&6
8617 else
8618 echo "$ac_t""no" 1>&6
8619 fi
8620
8621
8622 enablestring=
8623 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8624echo "configure:8625: checking for --${enablestring:-enable}-iff" >&5
8625 no_cache=0
8626 # Check whether --enable-iff or --disable-iff was given.
8627if test "${enable_iff+set}" = set; then
8628 enableval="$enable_iff"
8629
8630 if test "$enableval" = yes; then
8631 ac_cv_use_iff='wxUSE_IFF=yes'
8632 else
8633 ac_cv_use_iff='wxUSE_IFF=no'
8634 fi
8635
8636else
8637
8638 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8639 if test "x$LINE" != x ; then
8640 eval "DEFAULT_$LINE"
8641 else
8642 no_cache=1
8643 fi
8644
8645 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8646
8647fi
8648
8649
8650 eval "$ac_cv_use_iff"
8651 if test "$no_cache" != 1; then
8652 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8653 fi
8654
8655 if test "$wxUSE_IFF" = yes; then
8656 echo "$ac_t""yes" 1>&6
8657 else
8658 echo "$ac_t""no" 1>&6
8659 fi
8660
8661
8662 enablestring=
8663 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8664echo "configure:8665: checking for --${enablestring:-enable}-pnm" >&5
8665 no_cache=0
8666 # Check whether --enable-pnm or --disable-pnm was given.
8667if test "${enable_pnm+set}" = set; then
8668 enableval="$enable_pnm"
8669
8670 if test "$enableval" = yes; then
8671 ac_cv_use_pnm='wxUSE_PNM=yes'
8672 else
8673 ac_cv_use_pnm='wxUSE_PNM=no'
8674 fi
8675
8676else
8677
8678 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8686
8687fi
8688
8689
8690 eval "$ac_cv_use_pnm"
8691 if test "$no_cache" != 1; then
8692 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8693 fi
8694
8695 if test "$wxUSE_PNM" = yes; then
8696 echo "$ac_t""yes" 1>&6
8697 else
8698 echo "$ac_t""no" 1>&6
8699 fi
8700
8701
8702 enablestring=
8703 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8704echo "configure:8705: checking for --${enablestring:-enable}-xpm" >&5
8705 no_cache=0
8706 # Check whether --enable-xpm or --disable-xpm was given.
8707if test "${enable_xpm+set}" = set; then
8708 enableval="$enable_xpm"
8709
8710 if test "$enableval" = yes; then
8711 ac_cv_use_xpm='wxUSE_XPM=yes'
8712 else
8713 ac_cv_use_xpm='wxUSE_XPM=no'
8714 fi
8715
8716else
8717
8718 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8719 if test "x$LINE" != x ; then
8720 eval "DEFAULT_$LINE"
8721 else
8722 no_cache=1
8723 fi
8724
8725 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8726
8727fi
8728
8729
8730 eval "$ac_cv_use_xpm"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_XPM" = yes; then
8736 echo "$ac_t""yes" 1>&6
8737 else
8738 echo "$ac_t""no" 1>&6
8739 fi
8740
8741
8742 enablestring=
8743 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8744echo "configure:8745: checking for --${enablestring:-enable}-ico_cur" >&5
8745 no_cache=0
8746 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8747if test "${enable_ico_cur+set}" = set; then
8748 enableval="$enable_ico_cur"
8749
8750 if test "$enableval" = yes; then
8751 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8752 else
8753 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8754 fi
8755
8756else
8757
8758 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8759 if test "x$LINE" != x ; then
8760 eval "DEFAULT_$LINE"
8761 else
8762 no_cache=1
8763 fi
8764
8765 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8766
8767fi
8768
8769
8770 eval "$ac_cv_use_ico_cur"
8771 if test "$no_cache" != 1; then
8772 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8773 fi
8774
8775 if test "$wxUSE_ICO_CUR" = yes; then
8776 echo "$ac_t""yes" 1>&6
8777 else
8778 echo "$ac_t""no" 1>&6
8779 fi
8780
8781
8782fi
8783
8784case "${host}" in
8785 *-pc-os2_emx | *-pc-os2-emx )
8786 PATH_IFS=';'
8787 LEX_STEM="lexyy"
8788 ;;
8789 *)
8790 PATH_IFS=':'
8791 LEX_STEM="lex.yy"
8792 ;;
8793esac
8794
8795
8796
8797 echo "saving argument cache $wx_arg_cache_file"
8798 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8799
8800
8801
8802echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8803echo "configure:8804: checking for toolkit" >&5
8804
8805# In Wine, we need to default to MSW, not GTK or MOTIF
8806if test "$wxUSE_WINE" = "yes"; then
8807 DEFAULT_DEFAULT_wxUSE_GTK=0
8808 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8809 DEFAULT_DEFAULT_wxUSE_MSW=1
8810fi
8811
8812if test "$wxUSE_GUI" = "yes"; then
8813
8814 if test "$USE_BEOS" = 1; then
8815 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8816 fi
8817
8818 if test "$TOOLKIT_GIVEN" = 1; then
8819 for toolkit in `echo $ALL_TOOLKITS`; do
8820 var=wxUSE_$toolkit
8821 eval "value=\$${var}"
8822 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8823 done
8824 else
8825 for toolkit in `echo $ALL_TOOLKITS`; do
8826 if test "$has_toolkit_in_cache" != 1; then
8827 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8828 else
8829 var=DEFAULT_wxUSE_$toolkit
8830 fi
8831 eval "wxUSE_$toolkit=\$${var}"
8832 done
8833 fi
8834
8835 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8836 + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8837
8838 case "${host}" in
8839 *-pc-os2_emx | *-pc-os2-emx )
8840 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8841 esac
8842
8843 case "$NUM_TOOLKITS" in
8844 1)
8845 ;;
8846 0)
8847 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8848 ;;
8849 *)
8850 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8851 esac
8852
8853 for toolkit in `echo $ALL_TOOLKITS`; do
8854 var=wxUSE_$toolkit
8855 eval "value=\$${var}"
8856 if test "x$value" != x; then
8857 cache_var=CACHE_$toolkit
8858 eval "cache=\$${cache_var}"
8859 if test "$cache" = 1; then
8860 echo "$var=$value" >> ${wx_arg_cache_file}
8861 fi
8862 if test "$value" = 1; then
8863 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8864 echo "$ac_t""$toolkit_echo" 1>&6
8865 fi
8866 fi
8867 done
8868else
8869 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8870fi
8871
8872wants_win32=0
8873doesnt_want_win32=0
8874case "${host}" in
8875 *-*-cygwin*)
8876 if test "$wxUSE_MSW" = 1 ; then
8877 wants_win32=1
8878 else
8879 doesnt_want_win32=1
8880 fi
8881 ;;
8882 *-*-mingw*)
8883 wants_win32=1
8884 ;;
8885esac
8886
8887if test "$wxUSE_WINE" = "yes"; then
8888 wants_win32=1
8889 CC=winegcc
8890 CXX=wineg++
8891 RESCOMP=wrc
8892fi
8893
8894if test "$wants_win32" = 1 ; then
8895 USE_UNIX=0
8896 USE_WIN32=1
8897 cat >> confdefs.h <<\EOF
8898#define __WIN32__ 1
8899EOF
8900
8901 cat >> confdefs.h <<\EOF
8902#define __WIN95__ 1
8903EOF
8904
8905 cat >> confdefs.h <<\EOF
8906#define __WINDOWS__ 1
8907EOF
8908
8909 cat >> confdefs.h <<\EOF
8910#define __GNUWIN32__ 1
8911EOF
8912
8913 cat >> confdefs.h <<\EOF
8914#define STRICT 1
8915EOF
8916
8917 cat >> confdefs.h <<\EOF
8918#define WINVER 0x0400
8919EOF
8920
8921fi
8922if test "$doesnt_want_win32" = 1 ; then
8923 USE_UNIX=1
8924 USE_WIN32=0
8925fi
8926
8927if test "$USE_UNIX" = 1 ; then
8928 wxUSE_UNIX=yes
8929 cat >> confdefs.h <<\EOF
8930#define __UNIX__ 1
8931EOF
8932
8933fi
8934
8935
8936cat > confcache <<\EOF
8937# This file is a shell script that caches the results of configure
8938# tests run on this system so they can be shared between configure
8939# scripts and configure runs. It is not useful on other systems.
8940# If it contains results you don't want to keep, you may remove or edit it.
8941#
8942# By default, configure uses ./config.cache as the cache file,
8943# creating it if it does not exist already. You can give configure
8944# the --cache-file=FILE option to use a different cache file; that is
8945# what configure does when it calls configure scripts in
8946# subdirectories, so they share the cache.
8947# Giving --cache-file=/dev/null disables caching, for debugging configure.
8948# config.status only pays attention to the cache file if you give it the
8949# --recheck option to rerun configure.
8950#
8951EOF
8952# The following way of writing the cache mishandles newlines in values,
8953# but we know of no workaround that is simple, portable, and efficient.
8954# So, don't put newlines in cache variables' values.
8955# Ultrix sh set writes to stderr and can't be redirected directly,
8956# and sets the high bit in the cache file unless we assign to the vars.
8957(set) 2>&1 |
8958 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8959 *ac_space=\ *)
8960 # `set' does not quote correctly, so add quotes (double-quote substitution
8961 # turns \\\\ into \\, and sed turns \\ into \).
8962 sed -n \
8963 -e "s/'/'\\\\''/g" \
8964 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8965 ;;
8966 *)
8967 # `set' quotes correctly as required by POSIX, so do not add quotes.
8968 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8969 ;;
8970 esac >> confcache
8971if cmp -s $cache_file confcache; then
8972 :
8973else
8974 if test -w $cache_file; then
8975 echo "updating cache $cache_file"
8976 cat confcache > $cache_file
8977 else
8978 echo "not updating unwritable cache $cache_file"
8979 fi
8980fi
8981rm -f confcache
8982
8983
8984if test "$build" != "$host" ; then
8985 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8986 CC=$host_alias-gcc
8987 CXX=$host_alias-c++
8988 AR=$host_alias-ar
8989 RANLIB=$host_alias-ranlib
8990 DLLTOOL=$host_alias-dlltool
8991 RESCOMP=$host_alias-windres
8992 LD=$host_alias-ld
8993 NM=$host_alias-nm
8994 STRIP=$host_alias-strip
8995 else
8996 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8997 fi
8998fi
8999
9000CFLAGS=${CFLAGS:=}
9001# Extract the first word of "gcc", so it can be a program name with args.
9002set dummy gcc; ac_word=$2
9003echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9004echo "configure:9005: checking for $ac_word" >&5
9005if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9007else
9008 if test -n "$CC"; then
9009 ac_cv_prog_CC="$CC" # Let the user override the test.
9010else
9011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9012 ac_dummy="$PATH"
9013 for ac_dir in $ac_dummy; do
9014 test -z "$ac_dir" && ac_dir=.
9015 if test -f $ac_dir/$ac_word; then
9016 ac_cv_prog_CC="gcc"
9017 break
9018 fi
9019 done
9020 IFS="$ac_save_ifs"
9021fi
9022fi
9023CC="$ac_cv_prog_CC"
9024if test -n "$CC"; then
9025 echo "$ac_t""$CC" 1>&6
9026else
9027 echo "$ac_t""no" 1>&6
9028fi
9029
9030if test -z "$CC"; then
9031 # Extract the first word of "cc", so it can be a program name with args.
9032set dummy cc; ac_word=$2
9033echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9034echo "configure:9035: checking for $ac_word" >&5
9035if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9037else
9038 if test -n "$CC"; then
9039 ac_cv_prog_CC="$CC" # Let the user override the test.
9040else
9041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9042 ac_prog_rejected=no
9043 ac_dummy="$PATH"
9044 for ac_dir in $ac_dummy; do
9045 test -z "$ac_dir" && ac_dir=.
9046 if test -f $ac_dir/$ac_word; then
9047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9048 ac_prog_rejected=yes
9049 continue
9050 fi
9051 ac_cv_prog_CC="cc"
9052 break
9053 fi
9054 done
9055 IFS="$ac_save_ifs"
9056if test $ac_prog_rejected = yes; then
9057 # We found a bogon in the path, so make sure we never use it.
9058 set dummy $ac_cv_prog_CC
9059 shift
9060 if test $# -gt 0; then
9061 # We chose a different compiler from the bogus one.
9062 # However, it has the same basename, so the bogon will be chosen
9063 # first if we set CC to just the basename; use the full file name.
9064 shift
9065 set dummy "$ac_dir/$ac_word" "$@"
9066 shift
9067 ac_cv_prog_CC="$@"
9068 fi
9069fi
9070fi
9071fi
9072CC="$ac_cv_prog_CC"
9073if test -n "$CC"; then
9074 echo "$ac_t""$CC" 1>&6
9075else
9076 echo "$ac_t""no" 1>&6
9077fi
9078
9079 if test -z "$CC"; then
9080 case "`uname -s`" in
9081 *win32* | *WIN32*)
9082 # Extract the first word of "cl", so it can be a program name with args.
9083set dummy cl; ac_word=$2
9084echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9085echo "configure:9086: checking for $ac_word" >&5
9086if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088else
9089 if test -n "$CC"; then
9090 ac_cv_prog_CC="$CC" # Let the user override the test.
9091else
9092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9093 ac_dummy="$PATH"
9094 for ac_dir in $ac_dummy; do
9095 test -z "$ac_dir" && ac_dir=.
9096 if test -f $ac_dir/$ac_word; then
9097 ac_cv_prog_CC="cl"
9098 break
9099 fi
9100 done
9101 IFS="$ac_save_ifs"
9102fi
9103fi
9104CC="$ac_cv_prog_CC"
9105if test -n "$CC"; then
9106 echo "$ac_t""$CC" 1>&6
9107else
9108 echo "$ac_t""no" 1>&6
9109fi
9110 ;;
9111 esac
9112 fi
9113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9114fi
9115
9116echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9117echo "configure:9118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9118
9119ac_ext=c
9120# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9121ac_cpp='$CPP $CPPFLAGS'
9122ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9123ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9124cross_compiling=$ac_cv_prog_cc_cross
9125
9126cat > conftest.$ac_ext << EOF
9127
9128#line 9129 "configure"
9129#include "confdefs.h"
9130
9131main(){return(0);}
9132EOF
9133if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 ac_cv_prog_cc_works=yes
9135 # If we can't run a trivial program, we are probably using a cross compiler.
9136 if (./conftest; exit) 2>/dev/null; then
9137 ac_cv_prog_cc_cross=no
9138 else
9139 ac_cv_prog_cc_cross=yes
9140 fi
9141else
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 ac_cv_prog_cc_works=no
9145fi
9146rm -fr conftest*
9147ac_ext=c
9148# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9149ac_cpp='$CPP $CPPFLAGS'
9150ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9151ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9152cross_compiling=$ac_cv_prog_cc_cross
9153
9154echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9155if test $ac_cv_prog_cc_works = no; then
9156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9157fi
9158echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9159echo "configure:9160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9160echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9161cross_compiling=$ac_cv_prog_cc_cross
9162
9163echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9164echo "configure:9165: checking whether we are using GNU C" >&5
9165if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9167else
9168 cat > conftest.c <<EOF
9169#ifdef __GNUC__
9170 yes;
9171#endif
9172EOF
9173if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9174 ac_cv_prog_gcc=yes
9175else
9176 ac_cv_prog_gcc=no
9177fi
9178fi
9179
9180echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9181
9182if test $ac_cv_prog_gcc = yes; then
9183 GCC=yes
9184else
9185 GCC=
9186fi
9187
9188ac_test_CFLAGS="${CFLAGS+set}"
9189ac_save_CFLAGS="$CFLAGS"
9190CFLAGS=
9191echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9192echo "configure:9193: checking whether ${CC-cc} accepts -g" >&5
9193if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9195else
9196 echo 'void f(){}' > conftest.c
9197if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9198 ac_cv_prog_cc_g=yes
9199else
9200 ac_cv_prog_cc_g=no
9201fi
9202rm -f conftest*
9203
9204fi
9205
9206echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9207if test "$ac_test_CFLAGS" = set; then
9208 CFLAGS="$ac_save_CFLAGS"
9209elif test $ac_cv_prog_cc_g = yes; then
9210 if test "$GCC" = yes; then
9211 CFLAGS="-g -O2"
9212 else
9213 CFLAGS="-g"
9214 fi
9215else
9216 if test "$GCC" = yes; then
9217 CFLAGS="-O2"
9218 else
9219 CFLAGS=
9220 fi
9221fi
9222
9223
9224echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9225echo "configure:9226: checking how to run the C preprocessor" >&5
9226# On Suns, sometimes $CPP names a directory.
9227if test -n "$CPP" && test -d "$CPP"; then
9228 CPP=
9229fi
9230if test -z "$CPP"; then
9231if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9233else
9234 # This must be in double quotes, not single quotes, because CPP may get
9235 # substituted into the Makefile and "${CC-cc}" will confuse make.
9236 CPP="${CC-cc} -E"
9237 # On the NeXT, cc -E runs the code through the compiler's parser,
9238 # not just through cpp.
9239 cat > conftest.$ac_ext <<EOF
9240#line 9241 "configure"
9241#include "confdefs.h"
9242#include <assert.h>
9243Syntax Error
9244EOF
9245ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9246{ (eval echo configure:9247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9247ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9248if test -z "$ac_err"; then
9249 :
9250else
9251 echo "$ac_err" >&5
9252 echo "configure: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9254 rm -rf conftest*
9255 CPP="${CC-cc} -E -traditional-cpp"
9256 cat > conftest.$ac_ext <<EOF
9257#line 9258 "configure"
9258#include "confdefs.h"
9259#include <assert.h>
9260Syntax Error
9261EOF
9262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9263{ (eval echo configure:9264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9265if test -z "$ac_err"; then
9266 :
9267else
9268 echo "$ac_err" >&5
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -rf conftest*
9272 CPP="${CC-cc} -nologo -E"
9273 cat > conftest.$ac_ext <<EOF
9274#line 9275 "configure"
9275#include "confdefs.h"
9276#include <assert.h>
9277Syntax Error
9278EOF
9279ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9280{ (eval echo configure:9281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9281ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9282if test -z "$ac_err"; then
9283 :
9284else
9285 echo "$ac_err" >&5
9286 echo "configure: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9288 rm -rf conftest*
9289 CPP=/lib/cpp
9290fi
9291rm -f conftest*
9292fi
9293rm -f conftest*
9294fi
9295rm -f conftest*
9296 ac_cv_prog_CPP="$CPP"
9297fi
9298 CPP="$ac_cv_prog_CPP"
9299else
9300 ac_cv_prog_CPP="$CPP"
9301fi
9302echo "$ac_t""$CPP" 1>&6
9303
9304if test $ac_cv_prog_gcc = yes; then
9305 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9306echo "configure:9307: checking whether ${CC-cc} needs -traditional" >&5
9307if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9309else
9310 ac_pattern="Autoconf.*'x'"
9311 cat > conftest.$ac_ext <<EOF
9312#line 9313 "configure"
9313#include "confdefs.h"
9314#include <sgtty.h>
9315Autoconf TIOCGETP
9316EOF
9317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9318 egrep "$ac_pattern" >/dev/null 2>&1; then
9319 rm -rf conftest*
9320 ac_cv_prog_gcc_traditional=yes
9321else
9322 rm -rf conftest*
9323 ac_cv_prog_gcc_traditional=no
9324fi
9325rm -f conftest*
9326
9327
9328 if test $ac_cv_prog_gcc_traditional = no; then
9329 cat > conftest.$ac_ext <<EOF
9330#line 9331 "configure"
9331#include "confdefs.h"
9332#include <termio.h>
9333Autoconf TCGETA
9334EOF
9335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9336 egrep "$ac_pattern" >/dev/null 2>&1; then
9337 rm -rf conftest*
9338 ac_cv_prog_gcc_traditional=yes
9339fi
9340rm -f conftest*
9341
9342 fi
9343fi
9344
9345echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9346 if test $ac_cv_prog_gcc_traditional = yes; then
9347 CC="$CC -traditional"
9348 fi
9349fi
9350
9351
9352
9353ac_ext=C
9354# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9355ac_cpp='$CXXCPP $CPPFLAGS'
9356ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9357ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9358cross_compiling=$ac_cv_prog_cxx_cross
9359
9360
9361CXXFLAGS=${CXXFLAGS:=}
9362for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9363do
9364# Extract the first word of "$ac_prog", so it can be a program name with args.
9365set dummy $ac_prog; ac_word=$2
9366echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9367echo "configure:9368: checking for $ac_word" >&5
9368if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9370else
9371 if test -n "$CXX"; then
9372 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9373else
9374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9375 ac_dummy="$PATH"
9376 for ac_dir in $ac_dummy; do
9377 test -z "$ac_dir" && ac_dir=.
9378 if test -f $ac_dir/$ac_word; then
9379 ac_cv_prog_CXX="$ac_prog"
9380 break
9381 fi
9382 done
9383 IFS="$ac_save_ifs"
9384fi
9385fi
9386CXX="$ac_cv_prog_CXX"
9387if test -n "$CXX"; then
9388 echo "$ac_t""$CXX" 1>&6
9389else
9390 echo "$ac_t""no" 1>&6
9391fi
9392
9393test -n "$CXX" && break
9394done
9395test -n "$CXX" || CXX="gcc"
9396
9397
9398echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9399echo "configure:9400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9400
9401ac_ext=C
9402# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9403ac_cpp='$CXXCPP $CPPFLAGS'
9404ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9405ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9406cross_compiling=$ac_cv_prog_cxx_cross
9407
9408cat > conftest.$ac_ext << EOF
9409
9410#line 9411 "configure"
9411#include "confdefs.h"
9412
9413int main(){return(0);}
9414EOF
9415if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9416 ac_cv_prog_cxx_works=yes
9417 # If we can't run a trivial program, we are probably using a cross compiler.
9418 if (./conftest; exit) 2>/dev/null; then
9419 ac_cv_prog_cxx_cross=no
9420 else
9421 ac_cv_prog_cxx_cross=yes
9422 fi
9423else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 ac_cv_prog_cxx_works=no
9427fi
9428rm -fr conftest*
9429ac_ext=C
9430# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9431ac_cpp='$CXXCPP $CPPFLAGS'
9432ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9433ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9434cross_compiling=$ac_cv_prog_cxx_cross
9435
9436echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9437if test $ac_cv_prog_cxx_works = no; then
9438 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9439fi
9440echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9441echo "configure:9442: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9442echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9443cross_compiling=$ac_cv_prog_cxx_cross
9444
9445echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9446echo "configure:9447: checking whether we are using GNU C++" >&5
9447if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449else
9450 cat > conftest.C <<EOF
9451#ifdef __GNUC__
9452 yes;
9453#endif
9454EOF
9455if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9456 ac_cv_prog_gxx=yes
9457else
9458 ac_cv_prog_gxx=no
9459fi
9460fi
9461
9462echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9463
9464if test $ac_cv_prog_gxx = yes; then
9465 GXX=yes
9466else
9467 GXX=
9468fi
9469
9470ac_test_CXXFLAGS="${CXXFLAGS+set}"
9471ac_save_CXXFLAGS="$CXXFLAGS"
9472CXXFLAGS=
9473echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9474echo "configure:9475: checking whether ${CXX-g++} accepts -g" >&5
9475if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9477else
9478 echo 'void f(){}' > conftest.cc
9479if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9480 ac_cv_prog_cxx_g=yes
9481else
9482 ac_cv_prog_cxx_g=no
9483fi
9484rm -f conftest*
9485
9486fi
9487
9488echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9489if test "$ac_test_CXXFLAGS" = set; then
9490 CXXFLAGS="$ac_save_CXXFLAGS"
9491elif test $ac_cv_prog_cxx_g = yes; then
9492 if test "$GXX" = yes; then
9493 CXXFLAGS="-g -O2"
9494 else
9495 CXXFLAGS="-g"
9496 fi
9497else
9498 if test "$GXX" = yes; then
9499 CXXFLAGS="-O2"
9500 else
9501 CXXFLAGS=
9502 fi
9503fi
9504
9505
9506ac_ext=c
9507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9508ac_cpp='$CPP $CPPFLAGS'
9509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9510ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9511cross_compiling=$ac_cv_prog_cc_cross
9512
9513
9514# Extract the first word of "ranlib", so it can be a program name with args.
9515set dummy ranlib; ac_word=$2
9516echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9517echo "configure:9518: checking for $ac_word" >&5
9518if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9519 echo $ac_n "(cached) $ac_c" 1>&6
9520else
9521 if test -n "$RANLIB"; then
9522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9523else
9524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9525 ac_dummy="$PATH"
9526 for ac_dir in $ac_dummy; do
9527 test -z "$ac_dir" && ac_dir=.
9528 if test -f $ac_dir/$ac_word; then
9529 ac_cv_prog_RANLIB="ranlib"
9530 break
9531 fi
9532 done
9533 IFS="$ac_save_ifs"
9534 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9535fi
9536fi
9537RANLIB="$ac_cv_prog_RANLIB"
9538if test -n "$RANLIB"; then
9539 echo "$ac_t""$RANLIB" 1>&6
9540else
9541 echo "$ac_t""no" 1>&6
9542fi
9543
9544
9545# Extract the first word of "ar", so it can be a program name with args.
9546set dummy ar; ac_word=$2
9547echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9548echo "configure:9549: checking for $ac_word" >&5
9549if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9550 echo $ac_n "(cached) $ac_c" 1>&6
9551else
9552 if test -n "$AR"; then
9553 ac_cv_prog_AR="$AR" # Let the user override the test.
9554else
9555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9556 ac_dummy="$PATH"
9557 for ac_dir in $ac_dummy; do
9558 test -z "$ac_dir" && ac_dir=.
9559 if test -f $ac_dir/$ac_word; then
9560 ac_cv_prog_AR="ar"
9561 break
9562 fi
9563 done
9564 IFS="$ac_save_ifs"
9565 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9566fi
9567fi
9568AR="$ac_cv_prog_AR"
9569if test -n "$AR"; then
9570 echo "$ac_t""$AR" 1>&6
9571else
9572 echo "$ac_t""no" 1>&6
9573fi
9574
9575
9576# Find a good install program. We prefer a C program (faster),
9577# so one script is as good as another. But avoid the broken or
9578# incompatible versions:
9579# SysV /etc/install, /usr/sbin/install
9580# SunOS /usr/etc/install
9581# IRIX /sbin/install
9582# AIX /bin/install
9583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9586# ./install, which can be erroneously created by make from ./install.sh.
9587echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9588echo "configure:9589: checking for a BSD compatible install" >&5
9589if test -z "$INSTALL"; then
9590if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9592else
9593 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9594 for ac_dir in $PATH; do
9595 # Account for people who put trailing slashes in PATH elements.
9596 case "$ac_dir/" in
9597 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9598 *)
9599 # OSF1 and SCO ODT 3.0 have their own names for install.
9600 # Don't use installbsd from OSF since it installs stuff as root
9601 # by default.
9602 for ac_prog in ginstall scoinst install; do
9603 if test -f $ac_dir/$ac_prog; then
9604 if test $ac_prog = install &&
9605 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9606 # AIX install. It has an incompatible calling convention.
9607 :
9608 else
9609 ac_cv_path_install="$ac_dir/$ac_prog -c"
9610 break 2
9611 fi
9612 fi
9613 done
9614 ;;
9615 esac
9616 done
9617 IFS="$ac_save_IFS"
9618
9619fi
9620 if test "${ac_cv_path_install+set}" = set; then
9621 INSTALL="$ac_cv_path_install"
9622 else
9623 # As a last resort, use the slow shell script. We don't cache a
9624 # path for INSTALL within a source directory, because that will
9625 # break other packages using the cache if that directory is
9626 # removed, or if the path is relative.
9627 INSTALL="$ac_install_sh"
9628 fi
9629fi
9630echo "$ac_t""$INSTALL" 1>&6
9631
9632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9633# It thinks the first close brace ends the variable substitution.
9634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9635
9636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9637
9638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9639
9640
9641case ${INSTALL} in
9642 /* ) # Absolute
9643 ;;
9644 ?:* ) # Drive letter, considered as absolute.
9645 ;;
9646 *)
9647 INSTALL=`pwd`/${INSTALL} ;;
9648esac
9649
9650case ${host} in
9651 *-hp-hpux* )
9652 INSTALL_DIR="mkdir"
9653 ;;
9654
9655 *) INSTALL_DIR="$INSTALL -d"
9656 ;;
9657esac
9658
9659
9660case "${host}" in
9661
9662 powerpc-*-darwin* )
9663 INSTALL_PROGRAM="cp -fp"
9664 INSTALL_DATA="cp -fp"
9665 ;;
9666 *)
9667 ;;
9668esac
9669
9670# Extract the first word of "strip", so it can be a program name with args.
9671set dummy strip; ac_word=$2
9672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9673echo "configure:9674: checking for $ac_word" >&5
9674if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9675 echo $ac_n "(cached) $ac_c" 1>&6
9676else
9677 if test -n "$STRIP"; then
9678 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9679else
9680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9681 ac_dummy="$PATH"
9682 for ac_dir in $ac_dummy; do
9683 test -z "$ac_dir" && ac_dir=.
9684 if test -f $ac_dir/$ac_word; then
9685 ac_cv_prog_STRIP="strip"
9686 break
9687 fi
9688 done
9689 IFS="$ac_save_ifs"
9690 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9691fi
9692fi
9693STRIP="$ac_cv_prog_STRIP"
9694if test -n "$STRIP"; then
9695 echo "$ac_t""$STRIP" 1>&6
9696else
9697 echo "$ac_t""no" 1>&6
9698fi
9699
9700
9701echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9702echo "configure:9703: checking if make is GNU make" >&5
9703if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705else
9706
9707 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9708 egrep -s GNU > /dev/null); then
9709 wx_cv_prog_makeisgnu="yes"
9710 else
9711 wx_cv_prog_makeisgnu="no"
9712 fi
9713
9714fi
9715
9716echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9717
9718if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9719 IF_GNU_MAKE=""
9720else
9721 IF_GNU_MAKE="#"
9722fi
9723
9724
9725
9726if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9727echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9728echo "configure:9729: checking if make supports VPATH" >&5
9729if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9731else
9732
9733cat - << EOF > confMake
9734check : file
9735 cp \$? \$@
9736 cp \$? final_file
9737EOF
9738
9739if test ! -d sub ; then
9740 mkdir sub
9741fi
9742echo dummy > sub/file
9743${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9744RESULT=$?
9745rm -f sub/file check final_file confMake
9746rmdir sub
9747if test "$RESULT" = 0; then
9748 wx_cv_prog_makevpath="yes"
9749else
9750 wx_cv_prog_makevpath="no"
9751fi
9752
9753fi
9754
9755echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9756
9757if test "x$wx_cv_prog_makevpath" != "xyes"; then
9758{ echo "configure: error:
9759You need a make-utility that is able to use the variable
9760VPATH correctly.
9761If your version of make does not support VPATH correctly,
9762please install GNU-make (possibly as gmake), and start
9763configure with the following command:
9764export MAKE=gmake; ./configure for sh-type shells
9765setenv MAKE gmake; ./configure for csh-type shells
9766Also please do remember to use gmake in this case every time
9767you are trying to compile.
9768" 1>&2; exit 1; }
9769fi fi
9770for ac_prog in 'bison -y' byacc
9771do
9772# Extract the first word of "$ac_prog", so it can be a program name with args.
9773set dummy $ac_prog; ac_word=$2
9774echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9775echo "configure:9776: checking for $ac_word" >&5
9776if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778else
9779 if test -n "$YACC"; then
9780 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9781else
9782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9783 ac_dummy="$PATH"
9784 for ac_dir in $ac_dummy; do
9785 test -z "$ac_dir" && ac_dir=.
9786 if test -f $ac_dir/$ac_word; then
9787 ac_cv_prog_YACC="$ac_prog"
9788 break
9789 fi
9790 done
9791 IFS="$ac_save_ifs"
9792fi
9793fi
9794YACC="$ac_cv_prog_YACC"
9795if test -n "$YACC"; then
9796 echo "$ac_t""$YACC" 1>&6
9797else
9798 echo "$ac_t""no" 1>&6
9799fi
9800
9801test -n "$YACC" && break
9802done
9803test -n "$YACC" || YACC="yacc"
9804
9805
9806# Extract the first word of "flex", so it can be a program name with args.
9807set dummy flex; ac_word=$2
9808echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9809echo "configure:9810: checking for $ac_word" >&5
9810if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9812else
9813 if test -n "$LEX"; then
9814 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9815else
9816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9817 ac_dummy="$PATH"
9818 for ac_dir in $ac_dummy; do
9819 test -z "$ac_dir" && ac_dir=.
9820 if test -f $ac_dir/$ac_word; then
9821 ac_cv_prog_LEX="flex"
9822 break
9823 fi
9824 done
9825 IFS="$ac_save_ifs"
9826 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9827fi
9828fi
9829LEX="$ac_cv_prog_LEX"
9830if test -n "$LEX"; then
9831 echo "$ac_t""$LEX" 1>&6
9832else
9833 echo "$ac_t""no" 1>&6
9834fi
9835
9836if test -z "$LEXLIB"
9837then
9838 case "$LEX" in
9839 flex*) ac_lib=fl ;;
9840 *) ac_lib=l ;;
9841 esac
9842 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9843echo "configure:9844: checking for yywrap in -l$ac_lib" >&5
9844ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9845if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9847else
9848 ac_save_LIBS="$LIBS"
9849LIBS="-l$ac_lib $LIBS"
9850cat > conftest.$ac_ext <<EOF
9851#line 9852 "configure"
9852#include "confdefs.h"
9853/* Override any gcc2 internal prototype to avoid an error. */
9854/* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9856char yywrap();
9857
9858int main() {
9859yywrap()
9860; return 0; }
9861EOF
9862if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9863 rm -rf conftest*
9864 eval "ac_cv_lib_$ac_lib_var=yes"
9865else
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 rm -rf conftest*
9869 eval "ac_cv_lib_$ac_lib_var=no"
9870fi
9871rm -f conftest*
9872LIBS="$ac_save_LIBS"
9873
9874fi
9875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9876 echo "$ac_t""yes" 1>&6
9877 LEXLIB="-l$ac_lib"
9878else
9879 echo "$ac_t""no" 1>&6
9880fi
9881
9882fi
9883
9884
9885echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9886echo "configure:9887: checking whether ln -s works" >&5
9887if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9889else
9890 rm -f conftestdata
9891if ln -s X conftestdata 2>/dev/null
9892then
9893 rm -f conftestdata
9894 ac_cv_prog_LN_S="ln -s"
9895else
9896 ac_cv_prog_LN_S=ln
9897fi
9898fi
9899LN_S="$ac_cv_prog_LN_S"
9900if test "$ac_cv_prog_LN_S" = "ln -s"; then
9901 echo "$ac_t""yes" 1>&6
9902else
9903 echo "$ac_t""no" 1>&6
9904fi
9905
9906
9907case "${host}" in
9908 *-pc-os2_emx | *-pc-os2-emx )
9909 LIBS="$LIBS -lstdcpp"
9910 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9911 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9912echo "configure:9913: checking for drand48 in -lcExt" >&5
9913ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9914if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916else
9917 ac_save_LIBS="$LIBS"
9918LIBS="-lcExt $LIBS"
9919cat > conftest.$ac_ext <<EOF
9920#line 9921 "configure"
9921#include "confdefs.h"
9922/* Override any gcc2 internal prototype to avoid an error. */
9923/* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9925char drand48();
9926
9927int main() {
9928drand48()
9929; return 0; }
9930EOF
9931if { (eval echo configure:9932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9932 rm -rf conftest*
9933 eval "ac_cv_lib_$ac_lib_var=yes"
9934else
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9937 rm -rf conftest*
9938 eval "ac_cv_lib_$ac_lib_var=no"
9939fi
9940rm -f conftest*
9941LIBS="$ac_save_LIBS"
9942
9943fi
9944if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9945 echo "$ac_t""yes" 1>&6
9946 LIBS="$LIBS -lcExt"
9947else
9948 echo "$ac_t""no" 1>&6
9949fi
9950
9951 else
9952 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9953 fi
9954 ;;
9955esac
9956
9957
9958if test "$wxUSE_MAC" != 1; then
9959 for ac_hdr in strings.h
9960do
9961ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9962echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9963echo "configure:9964: checking for $ac_hdr" >&5
9964if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9966else
9967 cat > conftest.$ac_ext <<EOF
9968#line 9969 "configure"
9969#include "confdefs.h"
9970#include <$ac_hdr>
9971EOF
9972ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9973{ (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9974ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9975if test -z "$ac_err"; then
9976 rm -rf conftest*
9977 eval "ac_cv_header_$ac_safe=yes"
9978else
9979 echo "$ac_err" >&5
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 rm -rf conftest*
9983 eval "ac_cv_header_$ac_safe=no"
9984fi
9985rm -f conftest*
9986fi
9987if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9990 cat >> confdefs.h <<EOF
9991#define $ac_tr_hdr 1
9992EOF
9993
9994else
9995 echo "$ac_t""no" 1>&6
9996fi
9997done
9998
9999fi
10000
10001for ac_hdr in stdlib.h
10002do
10003ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10004echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10005echo "configure:10006: checking for $ac_hdr" >&5
10006if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10008else
10009 cat > conftest.$ac_ext <<EOF
10010#line 10011 "configure"
10011#include "confdefs.h"
10012#include <$ac_hdr>
10013EOF
10014ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10015{ (eval echo configure:10016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10016ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10017if test -z "$ac_err"; then
10018 rm -rf conftest*
10019 eval "ac_cv_header_$ac_safe=yes"
10020else
10021 echo "$ac_err" >&5
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 rm -rf conftest*
10025 eval "ac_cv_header_$ac_safe=no"
10026fi
10027rm -f conftest*
10028fi
10029if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10030 echo "$ac_t""yes" 1>&6
10031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10032 cat >> confdefs.h <<EOF
10033#define $ac_tr_hdr 1
10034EOF
10035
10036else
10037 echo "$ac_t""no" 1>&6
10038fi
10039done
10040
10041for ac_hdr in malloc.h
10042do
10043ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10044echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10045echo "configure:10046: checking for $ac_hdr" >&5
10046if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10048else
10049 cat > conftest.$ac_ext <<EOF
10050#line 10051 "configure"
10051#include "confdefs.h"
10052#include <$ac_hdr>
10053EOF
10054ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10055{ (eval echo configure:10056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10056ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10057if test -z "$ac_err"; then
10058 rm -rf conftest*
10059 eval "ac_cv_header_$ac_safe=yes"
10060else
10061 echo "$ac_err" >&5
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 rm -rf conftest*
10065 eval "ac_cv_header_$ac_safe=no"
10066fi
10067rm -f conftest*
10068fi
10069if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10070 echo "$ac_t""yes" 1>&6
10071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10072 cat >> confdefs.h <<EOF
10073#define $ac_tr_hdr 1
10074EOF
10075
10076else
10077 echo "$ac_t""no" 1>&6
10078fi
10079done
10080
10081for ac_hdr in unistd.h
10082do
10083ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10084echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10085echo "configure:10086: checking for $ac_hdr" >&5
10086if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10087 echo $ac_n "(cached) $ac_c" 1>&6
10088else
10089 cat > conftest.$ac_ext <<EOF
10090#line 10091 "configure"
10091#include "confdefs.h"
10092#include <$ac_hdr>
10093EOF
10094ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10095{ (eval echo configure:10096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10096ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10097if test -z "$ac_err"; then
10098 rm -rf conftest*
10099 eval "ac_cv_header_$ac_safe=yes"
10100else
10101 echo "$ac_err" >&5
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 rm -rf conftest*
10105 eval "ac_cv_header_$ac_safe=no"
10106fi
10107rm -f conftest*
10108fi
10109if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10110 echo "$ac_t""yes" 1>&6
10111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10112 cat >> confdefs.h <<EOF
10113#define $ac_tr_hdr 1
10114EOF
10115
10116else
10117 echo "$ac_t""no" 1>&6
10118fi
10119done
10120
10121for ac_hdr in wchar.h
10122do
10123ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10124echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10125echo "configure:10126: checking for $ac_hdr" >&5
10126if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128else
10129 cat > conftest.$ac_ext <<EOF
10130#line 10131 "configure"
10131#include "confdefs.h"
10132#include <$ac_hdr>
10133EOF
10134ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10135{ (eval echo configure:10136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10136ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10137if test -z "$ac_err"; then
10138 rm -rf conftest*
10139 eval "ac_cv_header_$ac_safe=yes"
10140else
10141 echo "$ac_err" >&5
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 rm -rf conftest*
10145 eval "ac_cv_header_$ac_safe=no"
10146fi
10147rm -f conftest*
10148fi
10149if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10152 cat >> confdefs.h <<EOF
10153#define $ac_tr_hdr 1
10154EOF
10155
10156else
10157 echo "$ac_t""no" 1>&6
10158fi
10159done
10160
10161
10162if test "$ac_cv_header_wchar_h" != "yes"; then
10163 for ac_hdr in wcstr.h
10164do
10165ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10166echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10167echo "configure:10168: checking for $ac_hdr" >&5
10168if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10170else
10171 cat > conftest.$ac_ext <<EOF
10172#line 10173 "configure"
10173#include "confdefs.h"
10174#include <$ac_hdr>
10175EOF
10176ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10177{ (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10178ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179if test -z "$ac_err"; then
10180 rm -rf conftest*
10181 eval "ac_cv_header_$ac_safe=yes"
10182else
10183 echo "$ac_err" >&5
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 rm -rf conftest*
10187 eval "ac_cv_header_$ac_safe=no"
10188fi
10189rm -f conftest*
10190fi
10191if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10194 cat >> confdefs.h <<EOF
10195#define $ac_tr_hdr 1
10196EOF
10197
10198else
10199 echo "$ac_t""no" 1>&6
10200fi
10201done
10202
10203fi
10204
10205for ac_hdr in fnmatch.h
10206do
10207ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10208echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10209echo "configure:10210: checking for $ac_hdr" >&5
10210if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10212else
10213 cat > conftest.$ac_ext <<EOF
10214#line 10215 "configure"
10215#include "confdefs.h"
10216#include <$ac_hdr>
10217EOF
10218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10219{ (eval echo configure:10220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10221if test -z "$ac_err"; then
10222 rm -rf conftest*
10223 eval "ac_cv_header_$ac_safe=yes"
10224else
10225 echo "$ac_err" >&5
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -rf conftest*
10229 eval "ac_cv_header_$ac_safe=no"
10230fi
10231rm -f conftest*
10232fi
10233if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10234 echo "$ac_t""yes" 1>&6
10235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10236 cat >> confdefs.h <<EOF
10237#define $ac_tr_hdr 1
10238EOF
10239
10240else
10241 echo "$ac_t""no" 1>&6
10242fi
10243done
10244
10245
10246if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10247 for ac_func in fnmatch
10248do
10249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10250echo "configure:10251: checking for $ac_func" >&5
10251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10253else
10254 cat > conftest.$ac_ext <<EOF
10255#line 10256 "configure"
10256#include "confdefs.h"
10257/* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char $ac_func(); below. */
10259#include <assert.h>
10260/* Override any gcc2 internal prototype to avoid an error. */
10261/* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10263char $ac_func();
10264
10265int main() {
10266
10267/* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10271choke me
10272#else
10273$ac_func();
10274#endif
10275
10276; return 0; }
10277EOF
10278if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10279 rm -rf conftest*
10280 eval "ac_cv_func_$ac_func=yes"
10281else
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 rm -rf conftest*
10285 eval "ac_cv_func_$ac_func=no"
10286fi
10287rm -f conftest*
10288fi
10289
10290if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10293 cat >> confdefs.h <<EOF
10294#define $ac_tr_func 1
10295EOF
10296
10297else
10298 echo "$ac_t""no" 1>&6
10299fi
10300done
10301
10302fi
10303
10304for ac_hdr in langinfo.h
10305do
10306ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10307echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10308echo "configure:10309: checking for $ac_hdr" >&5
10309if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
10311else
10312 cat > conftest.$ac_ext <<EOF
10313#line 10314 "configure"
10314#include "confdefs.h"
10315#include <$ac_hdr>
10316EOF
10317ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10318{ (eval echo configure:10319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10319ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10320if test -z "$ac_err"; then
10321 rm -rf conftest*
10322 eval "ac_cv_header_$ac_safe=yes"
10323else
10324 echo "$ac_err" >&5
10325 echo "configure: failed program was:" >&5
10326 cat conftest.$ac_ext >&5
10327 rm -rf conftest*
10328 eval "ac_cv_header_$ac_safe=no"
10329fi
10330rm -f conftest*
10331fi
10332if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10333 echo "$ac_t""yes" 1>&6
10334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10335 cat >> confdefs.h <<EOF
10336#define $ac_tr_hdr 1
10337EOF
10338
10339else
10340 echo "$ac_t""no" 1>&6
10341fi
10342done
10343
10344
10345case "${host}" in
10346 *-pc-os2_emx | *-pc-os2-emx )
10347 if test $ac_cv_header_langinfo_h = "yes"; then
10348 LIBS="$LIBS -lintl"
10349 fi
10350 ;;
10351esac
10352
10353if test "$wxUSE_GUI" = "yes"; then
10354 if test "$wxUSE_UNIX" = "yes"; then
10355 for ac_hdr in X11/XKBlib.h
10356do
10357ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10358echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10359echo "configure:10360: checking for $ac_hdr" >&5
10360if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10362else
10363 cat > conftest.$ac_ext <<EOF
10364#line 10365 "configure"
10365#include "confdefs.h"
10366#include <$ac_hdr>
10367EOF
10368ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10369{ (eval echo configure:10370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10370ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10371if test -z "$ac_err"; then
10372 rm -rf conftest*
10373 eval "ac_cv_header_$ac_safe=yes"
10374else
10375 echo "$ac_err" >&5
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 rm -rf conftest*
10379 eval "ac_cv_header_$ac_safe=no"
10380fi
10381rm -f conftest*
10382fi
10383if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10386 cat >> confdefs.h <<EOF
10387#define $ac_tr_hdr 1
10388EOF
10389
10390else
10391 echo "$ac_t""no" 1>&6
10392fi
10393done
10394
10395 fi
10396fi
10397
10398
10399echo $ac_n "checking for working const""... $ac_c" 1>&6
10400echo "configure:10401: checking for working const" >&5
10401if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10403else
10404 cat > conftest.$ac_ext <<EOF
10405#line 10406 "configure"
10406#include "confdefs.h"
10407
10408int main() {
10409
10410/* Ultrix mips cc rejects this. */
10411typedef int charset[2]; const charset x;
10412/* SunOS 4.1.1 cc rejects this. */
10413char const *const *ccp;
10414char **p;
10415/* NEC SVR4.0.2 mips cc rejects this. */
10416struct point {int x, y;};
10417static struct point const zero = {0,0};
10418/* AIX XL C 1.02.0.0 rejects this.
10419 It does not let you subtract one const X* pointer from another in an arm
10420 of an if-expression whose if-part is not a constant expression */
10421const char *g = "string";
10422ccp = &g + (g ? g-g : 0);
10423/* HPUX 7.0 cc rejects these. */
10424++ccp;
10425p = (char**) ccp;
10426ccp = (char const *const *) p;
10427{ /* SCO 3.2v4 cc rejects this. */
10428 char *t;
10429 char const *s = 0 ? (char *) 0 : (char const *) 0;
10430
10431 *t++ = 0;
10432}
10433{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10434 int x[] = {25, 17};
10435 const int *foo = &x[0];
10436 ++foo;
10437}
10438{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10439 typedef const int *iptr;
10440 iptr p = 0;
10441 ++p;
10442}
10443{ /* AIX XL C 1.02.0.0 rejects this saying
10444 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10445 struct s { int j; const int *ap[3]; };
10446 struct s *b; b->j = 5;
10447}
10448{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10449 const int foo = 10;
10450}
10451
10452; return 0; }
10453EOF
10454if { (eval echo configure:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10455 rm -rf conftest*
10456 ac_cv_c_const=yes
10457else
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10460 rm -rf conftest*
10461 ac_cv_c_const=no
10462fi
10463rm -f conftest*
10464fi
10465
10466echo "$ac_t""$ac_cv_c_const" 1>&6
10467if test $ac_cv_c_const = no; then
10468 cat >> confdefs.h <<\EOF
10469#define const
10470EOF
10471
10472fi
10473
10474echo $ac_n "checking for inline""... $ac_c" 1>&6
10475echo "configure:10476: checking for inline" >&5
10476if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10478else
10479 ac_cv_c_inline=no
10480for ac_kw in inline __inline__ __inline; do
10481 cat > conftest.$ac_ext <<EOF
10482#line 10483 "configure"
10483#include "confdefs.h"
10484
10485int main() {
10486} $ac_kw foo() {
10487; return 0; }
10488EOF
10489if { (eval echo configure:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10490 rm -rf conftest*
10491 ac_cv_c_inline=$ac_kw; break
10492else
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495fi
10496rm -f conftest*
10497done
10498
10499fi
10500
10501echo "$ac_t""$ac_cv_c_inline" 1>&6
10502case "$ac_cv_c_inline" in
10503 inline | yes) ;;
10504 no) cat >> confdefs.h <<\EOF
10505#define inline
10506EOF
10507 ;;
10508 *) cat >> confdefs.h <<EOF
10509#define inline $ac_cv_c_inline
10510EOF
10511 ;;
10512esac
10513
10514
10515echo $ac_n "checking size of char""... $ac_c" 1>&6
10516echo "configure:10517: checking size of char" >&5
10517if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10518 echo $ac_n "(cached) $ac_c" 1>&6
10519else
10520 if test "$cross_compiling" = yes; then
10521 ac_cv_sizeof_char=1
10522else
10523 cat > conftest.$ac_ext <<EOF
10524#line 10525 "configure"
10525#include "confdefs.h"
10526#include <stdio.h>
10527#include <sys/types.h>
10528main()
10529{
10530 FILE *f=fopen("conftestval", "w");
10531 if (!f) exit(1);
10532 fprintf(f, "%d\n", sizeof(char));
10533 exit(0);
10534}
10535EOF
10536if { (eval echo configure:10537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10537then
10538 ac_cv_sizeof_char=`cat conftestval`
10539else
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10542 rm -fr conftest*
10543 ac_cv_sizeof_char=0
10544fi
10545rm -fr conftest*
10546fi
10547
10548fi
10549echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10550cat >> confdefs.h <<EOF
10551#define SIZEOF_CHAR $ac_cv_sizeof_char
10552EOF
10553
10554
10555echo $ac_n "checking size of short""... $ac_c" 1>&6
10556echo "configure:10557: checking size of short" >&5
10557if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10558 echo $ac_n "(cached) $ac_c" 1>&6
10559else
10560 if test "$cross_compiling" = yes; then
10561 ac_cv_sizeof_short=2
10562else
10563 cat > conftest.$ac_ext <<EOF
10564#line 10565 "configure"
10565#include "confdefs.h"
10566#include <stdio.h>
10567#include <sys/types.h>
10568main()
10569{
10570 FILE *f=fopen("conftestval", "w");
10571 if (!f) exit(1);
10572 fprintf(f, "%d\n", sizeof(short));
10573 exit(0);
10574}
10575EOF
10576if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10577then
10578 ac_cv_sizeof_short=`cat conftestval`
10579else
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 rm -fr conftest*
10583 ac_cv_sizeof_short=0
10584fi
10585rm -fr conftest*
10586fi
10587
10588fi
10589echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10590cat >> confdefs.h <<EOF
10591#define SIZEOF_SHORT $ac_cv_sizeof_short
10592EOF
10593
10594
10595echo $ac_n "checking size of void *""... $ac_c" 1>&6
10596echo "configure:10597: checking size of void *" >&5
10597if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10599else
10600 if test "$cross_compiling" = yes; then
10601 ac_cv_sizeof_void_p=4
10602else
10603 cat > conftest.$ac_ext <<EOF
10604#line 10605 "configure"
10605#include "confdefs.h"
10606#include <stdio.h>
10607#include <sys/types.h>
10608main()
10609{
10610 FILE *f=fopen("conftestval", "w");
10611 if (!f) exit(1);
10612 fprintf(f, "%d\n", sizeof(void *));
10613 exit(0);
10614}
10615EOF
10616if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10617then
10618 ac_cv_sizeof_void_p=`cat conftestval`
10619else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -fr conftest*
10623 ac_cv_sizeof_void_p=0
10624fi
10625rm -fr conftest*
10626fi
10627
10628fi
10629echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10630cat >> confdefs.h <<EOF
10631#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10632EOF
10633
10634
10635echo $ac_n "checking size of int""... $ac_c" 1>&6
10636echo "configure:10637: checking size of int" >&5
10637if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10638 echo $ac_n "(cached) $ac_c" 1>&6
10639else
10640 if test "$cross_compiling" = yes; then
10641 ac_cv_sizeof_int=4
10642else
10643 cat > conftest.$ac_ext <<EOF
10644#line 10645 "configure"
10645#include "confdefs.h"
10646#include <stdio.h>
10647#include <sys/types.h>
10648main()
10649{
10650 FILE *f=fopen("conftestval", "w");
10651 if (!f) exit(1);
10652 fprintf(f, "%d\n", sizeof(int));
10653 exit(0);
10654}
10655EOF
10656if { (eval echo configure:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10657then
10658 ac_cv_sizeof_int=`cat conftestval`
10659else
10660 echo "configure: failed program was:" >&5
10661 cat conftest.$ac_ext >&5
10662 rm -fr conftest*
10663 ac_cv_sizeof_int=0
10664fi
10665rm -fr conftest*
10666fi
10667
10668fi
10669echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10670cat >> confdefs.h <<EOF
10671#define SIZEOF_INT $ac_cv_sizeof_int
10672EOF
10673
10674
10675echo $ac_n "checking size of long""... $ac_c" 1>&6
10676echo "configure:10677: checking size of long" >&5
10677if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10678 echo $ac_n "(cached) $ac_c" 1>&6
10679else
10680 if test "$cross_compiling" = yes; then
10681 ac_cv_sizeof_long=4
10682else
10683 cat > conftest.$ac_ext <<EOF
10684#line 10685 "configure"
10685#include "confdefs.h"
10686#include <stdio.h>
10687#include <sys/types.h>
10688main()
10689{
10690 FILE *f=fopen("conftestval", "w");
10691 if (!f) exit(1);
10692 fprintf(f, "%d\n", sizeof(long));
10693 exit(0);
10694}
10695EOF
10696if { (eval echo configure:10697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10697then
10698 ac_cv_sizeof_long=`cat conftestval`
10699else
10700 echo "configure: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 rm -fr conftest*
10703 ac_cv_sizeof_long=0
10704fi
10705rm -fr conftest*
10706fi
10707
10708fi
10709echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10710cat >> confdefs.h <<EOF
10711#define SIZEOF_LONG $ac_cv_sizeof_long
10712EOF
10713
10714
10715
10716case "${host}" in
10717 arm-*-linux* )
10718 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10719echo "configure:10720: checking size of long long" >&5
10720if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10722else
10723 if test "$cross_compiling" = yes; then
10724 ac_cv_sizeof_long_long=8
10725else
10726 cat > conftest.$ac_ext <<EOF
10727#line 10728 "configure"
10728#include "confdefs.h"
10729#include <stdio.h>
10730#include <sys/types.h>
10731main()
10732{
10733 FILE *f=fopen("conftestval", "w");
10734 if (!f) exit(1);
10735 fprintf(f, "%d\n", sizeof(long long));
10736 exit(0);
10737}
10738EOF
10739if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10740then
10741 ac_cv_sizeof_long_long=`cat conftestval`
10742else
10743 echo "configure: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 rm -fr conftest*
10746 ac_cv_sizeof_long_long=0
10747fi
10748rm -fr conftest*
10749fi
10750
10751fi
10752echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10753cat >> confdefs.h <<EOF
10754#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10755EOF
10756
10757
10758 ;;
10759 *-hp-hpux* )
10760 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10761echo "configure:10762: checking size of long long" >&5
10762if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10763 echo $ac_n "(cached) $ac_c" 1>&6
10764else
10765 if test "$cross_compiling" = yes; then
10766 ac_cv_sizeof_long_long=0
10767else
10768 cat > conftest.$ac_ext <<EOF
10769#line 10770 "configure"
10770#include "confdefs.h"
10771#include <stdio.h>
10772#include <sys/types.h>
10773main()
10774{
10775 FILE *f=fopen("conftestval", "w");
10776 if (!f) exit(1);
10777 fprintf(f, "%d\n", sizeof(long long));
10778 exit(0);
10779}
10780EOF
10781if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10782then
10783 ac_cv_sizeof_long_long=`cat conftestval`
10784else
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10787 rm -fr conftest*
10788 ac_cv_sizeof_long_long=0
10789fi
10790rm -fr conftest*
10791fi
10792
10793fi
10794echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10795cat >> confdefs.h <<EOF
10796#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10797EOF
10798
10799
10800 if test "$ac_cv_sizeof_long_long" != "0"; then
10801 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10802 fi
10803 ;;
10804 * )
10805 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10806echo "configure:10807: checking size of long long" >&5
10807if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10809else
10810 if test "$cross_compiling" = yes; then
10811 ac_cv_sizeof_long_long=0
10812else
10813 cat > conftest.$ac_ext <<EOF
10814#line 10815 "configure"
10815#include "confdefs.h"
10816#include <stdio.h>
10817#include <sys/types.h>
10818main()
10819{
10820 FILE *f=fopen("conftestval", "w");
10821 if (!f) exit(1);
10822 fprintf(f, "%d\n", sizeof(long long));
10823 exit(0);
10824}
10825EOF
10826if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10827then
10828 ac_cv_sizeof_long_long=`cat conftestval`
10829else
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10832 rm -fr conftest*
10833 ac_cv_sizeof_long_long=0
10834fi
10835rm -fr conftest*
10836fi
10837
10838fi
10839echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10840cat >> confdefs.h <<EOF
10841#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10842EOF
10843
10844
10845esac
10846
10847echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10848echo "configure:10849: checking size of wchar_t" >&5
10849if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851else
10852
10853 if test "$cross_compiling" = yes; then
10854
10855 case "${host}" in
10856 *-pc-msdosdjgpp )
10857 wx_cv_sizeof_wchar_t=0
10858 ;;
10859 * )
10860 wx_cv_sizeof_wchar_t=4
10861 ;;
10862 esac
10863
10864
10865else
10866 cat > conftest.$ac_ext <<EOF
10867#line 10868 "configure"
10868#include "confdefs.h"
10869
10870 /* DJGPP only has fake wchar_t: */
10871 #ifdef __DJGPP__
10872 # error "fake wchar_t"
10873 #endif
10874 #ifdef HAVE_WCHAR_H
10875 # ifdef __CYGWIN__
10876 # include <stddef.h>
10877 # endif
10878 # include <wchar.h>
10879 #endif
10880 #ifdef HAVE_STDLIB_H
10881 # include <stdlib.h>
10882 #endif
10883 #include <stdio.h>
10884 int main()
10885 {
10886 FILE *f=fopen("conftestval", "w");
10887 if (!f) exit(1);
10888 fprintf(f, "%i", sizeof(wchar_t));
10889 exit(0);
10890 }
10891
10892EOF
10893if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10894then
10895 wx_cv_sizeof_wchar_t=`cat conftestval`
10896else
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 rm -fr conftest*
10900 wx_cv_sizeof_wchar_t=0
10901fi
10902rm -fr conftest*
10903fi
10904
10905
10906fi
10907
10908echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10909
10910cat >> confdefs.h <<EOF
10911#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10912EOF
10913
10914
10915# Check whether --enable-largefile or --disable-largefile was given.
10916if test "${enable_largefile+set}" = set; then
10917 enableval="$enable_largefile"
10918 :
10919fi
10920
10921if test "$enable_largefile" != no; then
10922 wx_largefile=no
10923
10924 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10925echo "configure:10926: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10926if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10928else
10929
10930 cat > conftest.$ac_ext <<EOF
10931#line 10932 "configure"
10932#include "confdefs.h"
10933#define _FILE_OFFSET_BITS 64
10934 #include <sys/types.h>
10935int main() {
10936typedef struct {
10937 unsigned int field: sizeof(off_t) == 8;
10938} wxlf;
10939
10940; return 0; }
10941EOF
10942if { (eval echo configure:10943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10943 rm -rf conftest*
10944 ac_cv_sys_file_offset_bits=64
10945else
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10948 rm -rf conftest*
10949 ac_cv_sys_file_offset_bits=no
10950fi
10951rm -f conftest*
10952
10953
10954fi
10955
10956echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10957
10958 if test "$ac_cv_sys_file_offset_bits" != no; then
10959 wx_largefile=yes
10960 cat >> confdefs.h <<EOF
10961#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10962EOF
10963
10964 fi
10965
10966 if test "x$wx_largefile" != "xyes"; then
10967
10968 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10969echo "configure:10970: checking for _LARGE_FILES value needed for large files" >&5
10970if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10971 echo $ac_n "(cached) $ac_c" 1>&6
10972else
10973
10974 cat > conftest.$ac_ext <<EOF
10975#line 10976 "configure"
10976#include "confdefs.h"
10977#define _LARGE_FILES 1
10978 #include <sys/types.h>
10979int main() {
10980typedef struct {
10981 unsigned int field: sizeof(off_t) == 8;
10982} wxlf;
10983
10984; return 0; }
10985EOF
10986if { (eval echo configure:10987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10987 rm -rf conftest*
10988 ac_cv_sys_large_files=1
10989else
10990 echo "configure: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10992 rm -rf conftest*
10993 ac_cv_sys_large_files=no
10994fi
10995rm -f conftest*
10996
10997
10998fi
10999
11000echo "$ac_t""$ac_cv_sys_large_files" 1>&6
11001
11002 if test "$ac_cv_sys_large_files" != no; then
11003 wx_largefile=yes
11004 cat >> confdefs.h <<EOF
11005#define _LARGE_FILES $ac_cv_sys_large_files
11006EOF
11007
11008 fi
11009
11010 fi
11011
11012 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
11013echo "configure:11014: checking if large file support is available" >&5
11014 if test "x$wx_largefile" = "xyes"; then
11015 cat >> confdefs.h <<\EOF
11016#define HAVE_LARGEFILE_SUPPORT 1
11017EOF
11018
11019 fi
11020 echo "$ac_t""$wx_largefile" 1>&6
11021fi
11022
11023
11024if test "x$wx_largefile" = "xyes"; then
11025 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
11026 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
11027 else
11028 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
11029 fi
11030 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
11031fi
11032
11033echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11034echo "configure:11035: checking whether byte ordering is bigendian" >&5
11035if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11036 echo $ac_n "(cached) $ac_c" 1>&6
11037else
11038 ac_cv_c_bigendian=unknown
11039# See if sys/param.h defines the BYTE_ORDER macro.
11040cat > conftest.$ac_ext <<EOF
11041#line 11042 "configure"
11042#include "confdefs.h"
11043#include <sys/types.h>
11044#include <sys/param.h>
11045int main() {
11046
11047#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11048 bogus endian macros
11049#endif
11050; return 0; }
11051EOF
11052if { (eval echo configure:11053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11053 rm -rf conftest*
11054 # It does; now see whether it defined to BIG_ENDIAN or not.
11055cat > conftest.$ac_ext <<EOF
11056#line 11057 "configure"
11057#include "confdefs.h"
11058#include <sys/types.h>
11059#include <sys/param.h>
11060int main() {
11061
11062#if BYTE_ORDER != BIG_ENDIAN
11063 not big endian
11064#endif
11065; return 0; }
11066EOF
11067if { (eval echo configure:11068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11068 rm -rf conftest*
11069 ac_cv_c_bigendian=yes
11070else
11071 echo "configure: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11073 rm -rf conftest*
11074 ac_cv_c_bigendian=no
11075fi
11076rm -f conftest*
11077else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080fi
11081rm -f conftest*
11082if test $ac_cv_c_bigendian = unknown; then
11083if test "$cross_compiling" = yes; then
11084 ac_cv_c_bigendian=unknown
11085else
11086 cat > conftest.$ac_ext <<EOF
11087#line 11088 "configure"
11088#include "confdefs.h"
11089main () {
11090 /* Are we little or big endian? From Harbison&Steele. */
11091 union
11092 {
11093 long l;
11094 char c[sizeof (long)];
11095 } u;
11096 u.l = 1;
11097 exit (u.c[sizeof (long) - 1] == 1);
11098}
11099EOF
11100if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11101then
11102 ac_cv_c_bigendian=no
11103else
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 rm -fr conftest*
11107 ac_cv_c_bigendian=yes
11108fi
11109rm -fr conftest*
11110fi
11111
11112fi
11113fi
11114
11115echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11116if test $ac_cv_c_bigendian = unknown; then
11117 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
11118fi
11119if test $ac_cv_c_bigendian = yes; then
11120 cat >> confdefs.h <<\EOF
11121#define WORDS_BIGENDIAN 1
11122EOF
11123
11124fi
11125
11126
11127echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11128echo "configure:11129: checking how to run the C++ preprocessor" >&5
11129if test -z "$CXXCPP"; then
11130if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11132else
11133 ac_ext=C
11134# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11135ac_cpp='$CXXCPP $CPPFLAGS'
11136ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11137ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11138cross_compiling=$ac_cv_prog_cxx_cross
11139 CXXCPP="${CXX-g++} -E"
11140 cat > conftest.$ac_ext <<EOF
11141#line 11142 "configure"
11142#include "confdefs.h"
11143#include <stdlib.h>
11144EOF
11145ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11146{ (eval echo configure:11147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11147ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11148if test -z "$ac_err"; then
11149 :
11150else
11151 echo "$ac_err" >&5
11152 echo "configure: failed program was:" >&5
11153 cat conftest.$ac_ext >&5
11154 rm -rf conftest*
11155 CXXCPP=/lib/cpp
11156fi
11157rm -f conftest*
11158 ac_cv_prog_CXXCPP="$CXXCPP"
11159ac_ext=C
11160# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11161ac_cpp='$CXXCPP $CPPFLAGS'
11162ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11163ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11164cross_compiling=$ac_cv_prog_cxx_cross
11165fi
11166fi
11167CXXCPP="$ac_cv_prog_CXXCPP"
11168echo "$ac_t""$CXXCPP" 1>&6
11169
11170
11171 if test "$cross_compiling" = "yes"; then
11172 cat >> confdefs.h <<\EOF
11173#define wxUSE_IOSTREAMH 1
11174EOF
11175
11176 else
11177
11178 ac_ext=C
11179# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11180ac_cpp='$CXXCPP $CPPFLAGS'
11181ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11182ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11183cross_compiling=$ac_cv_prog_cxx_cross
11184
11185
11186 for ac_hdr in iostream
11187do
11188ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11189echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11190echo "configure:11191: checking for $ac_hdr" >&5
11191if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11192 echo $ac_n "(cached) $ac_c" 1>&6
11193else
11194 cat > conftest.$ac_ext <<EOF
11195#line 11196 "configure"
11196#include "confdefs.h"
11197#include <$ac_hdr>
11198EOF
11199ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11200{ (eval echo configure:11201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11201ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11202if test -z "$ac_err"; then
11203 rm -rf conftest*
11204 eval "ac_cv_header_$ac_safe=yes"
11205else
11206 echo "$ac_err" >&5
11207 echo "configure: failed program was:" >&5
11208 cat conftest.$ac_ext >&5
11209 rm -rf conftest*
11210 eval "ac_cv_header_$ac_safe=no"
11211fi
11212rm -f conftest*
11213fi
11214if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11215 echo "$ac_t""yes" 1>&6
11216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11217 cat >> confdefs.h <<EOF
11218#define $ac_tr_hdr 1
11219EOF
11220
11221else
11222 echo "$ac_t""no" 1>&6
11223fi
11224done
11225
11226
11227 if test "$ac_cv_header_iostream" = "yes" ; then
11228 :
11229 else
11230 cat >> confdefs.h <<\EOF
11231#define wxUSE_IOSTREAMH 1
11232EOF
11233
11234 fi
11235
11236 ac_ext=c
11237# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11238ac_cpp='$CPP $CPPFLAGS'
11239ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11240ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11241cross_compiling=$ac_cv_prog_cc_cross
11242
11243 fi
11244
11245
11246
11247 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11248echo "configure:11249: checking if C++ compiler supports bool" >&5
11249if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11250 echo $ac_n "(cached) $ac_c" 1>&6
11251else
11252
11253
11254 ac_ext=C
11255# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11256ac_cpp='$CXXCPP $CPPFLAGS'
11257ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11258ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11259cross_compiling=$ac_cv_prog_cxx_cross
11260
11261
11262 cat > conftest.$ac_ext <<EOF
11263#line 11264 "configure"
11264#include "confdefs.h"
11265
11266
11267int main() {
11268
11269 bool b = true;
11270
11271 return 0;
11272
11273; return 0; }
11274EOF
11275if { (eval echo configure:11276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11276 rm -rf conftest*
11277
11278 wx_cv_cpp_bool=yes
11279
11280else
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11283 rm -rf conftest*
11284
11285 wx_cv_cpp_bool=no
11286
11287
11288fi
11289rm -f conftest*
11290
11291 ac_ext=c
11292# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11293ac_cpp='$CPP $CPPFLAGS'
11294ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11295ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11296cross_compiling=$ac_cv_prog_cc_cross
11297
11298
11299fi
11300
11301echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11302
11303 if test "$wx_cv_cpp_bool" = "yes"; then
11304 cat >> confdefs.h <<\EOF
11305#define HAVE_BOOL 1
11306EOF
11307
11308 fi
11309
11310
11311
11312 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11313echo "configure:11314: checking if C++ compiler supports the explicit keyword" >&5
11314if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11315 echo $ac_n "(cached) $ac_c" 1>&6
11316else
11317
11318
11319 ac_ext=C
11320# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11321ac_cpp='$CXXCPP $CPPFLAGS'
11322ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11323ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11324cross_compiling=$ac_cv_prog_cxx_cross
11325
11326
11327 cat > conftest.$ac_ext <<EOF
11328#line 11329 "configure"
11329#include "confdefs.h"
11330
11331 class Foo { public: explicit Foo(int) {} };
11332
11333int main() {
11334
11335 return 0;
11336
11337; return 0; }
11338EOF
11339if { (eval echo configure:11340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11340 rm -rf conftest*
11341
11342 cat > conftest.$ac_ext <<EOF
11343#line 11344 "configure"
11344#include "confdefs.h"
11345
11346 class Foo { public: explicit Foo(int) {} };
11347 static void TakeFoo(const Foo& foo) { }
11348
11349int main() {
11350
11351 TakeFoo(17);
11352 return 0;
11353
11354; return 0; }
11355EOF
11356if { (eval echo configure:11357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11357 rm -rf conftest*
11358 wx_cv_explicit=no
11359else
11360 echo "configure: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11362 rm -rf conftest*
11363 wx_cv_explicit=yes
11364
11365fi
11366rm -f conftest*
11367
11368else
11369 echo "configure: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 rm -rf conftest*
11372 wx_cv_explicit=no
11373
11374fi
11375rm -f conftest*
11376
11377 ac_ext=c
11378# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11379ac_cpp='$CPP $CPPFLAGS'
11380ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11381ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11382cross_compiling=$ac_cv_prog_cc_cross
11383
11384
11385fi
11386
11387echo "$ac_t""$wx_cv_explicit" 1>&6
11388
11389 if test "$wx_cv_explicit" = "yes"; then
11390 cat >> confdefs.h <<\EOF
11391#define HAVE_EXPLICIT 1
11392EOF
11393
11394 fi
11395
11396
11397
11398SEARCH_INCLUDE="\
11399 /usr/local/include \
11400 \
11401 /usr/Motif-1.2/include \
11402 /usr/Motif-2.1/include \
11403 \
11404 /usr/include/Motif1.2 \
11405 /opt/xpm/include/X11 \
11406 /opt/GBxpm/include/ \
11407 /opt/GBxpm/X11/include/ \
11408 \
11409 /usr/Motif1.2/include \
11410 /usr/dt/include \
11411 /usr/openwin/include \
11412 \
11413 /usr/include/Xm \
11414 \
11415 /usr/X11R6/include \
11416 /usr/X11R6.4/include \
11417 /usr/X11R5/include \
11418 /usr/X11R4/include \
11419 \
11420 /usr/include/X11R6 \
11421 /usr/include/X11R5 \
11422 /usr/include/X11R4 \
11423 \
11424 /usr/local/X11R6/include \
11425 /usr/local/X11R5/include \
11426 /usr/local/X11R4/include \
11427 \
11428 /usr/local/include/X11R6 \
11429 /usr/local/include/X11R5 \
11430 /usr/local/include/X11R4 \
11431 \
11432 /usr/X11/include \
11433 /usr/include/X11 \
11434 /usr/local/X11/include \
11435 /usr/local/include/X11 \
11436 \
11437 /usr/X386/include \
11438 /usr/x386/include \
11439 /usr/XFree86/include/X11 \
11440 \
11441 X:/XFree86/include \
11442 X:/XFree86/include/X11 \
11443 \
11444 /usr/include/gtk \
11445 /usr/local/include/gtk \
11446 /usr/include/glib \
11447 /usr/local/include/glib \
11448 \
11449 /usr/include/qt \
11450 /usr/local/include/qt \
11451 \
11452 /usr/include/windows \
11453 /usr/include/wine \
11454 /usr/local/include/wine \
11455 \
11456 /usr/unsupported/include \
11457 /usr/athena/include \
11458 /usr/local/x11r5/include \
11459 /usr/lpp/Xamples/include \
11460 \
11461 /usr/openwin/share/include"
11462
11463SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11464
11465
11466cat > confcache <<\EOF
11467# This file is a shell script that caches the results of configure
11468# tests run on this system so they can be shared between configure
11469# scripts and configure runs. It is not useful on other systems.
11470# If it contains results you don't want to keep, you may remove or edit it.
11471#
11472# By default, configure uses ./config.cache as the cache file,
11473# creating it if it does not exist already. You can give configure
11474# the --cache-file=FILE option to use a different cache file; that is
11475# what configure does when it calls configure scripts in
11476# subdirectories, so they share the cache.
11477# Giving --cache-file=/dev/null disables caching, for debugging configure.
11478# config.status only pays attention to the cache file if you give it the
11479# --recheck option to rerun configure.
11480#
11481EOF
11482# The following way of writing the cache mishandles newlines in values,
11483# but we know of no workaround that is simple, portable, and efficient.
11484# So, don't put newlines in cache variables' values.
11485# Ultrix sh set writes to stderr and can't be redirected directly,
11486# and sets the high bit in the cache file unless we assign to the vars.
11487(set) 2>&1 |
11488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11489 *ac_space=\ *)
11490 # `set' does not quote correctly, so add quotes (double-quote substitution
11491 # turns \\\\ into \\, and sed turns \\ into \).
11492 sed -n \
11493 -e "s/'/'\\\\''/g" \
11494 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11495 ;;
11496 *)
11497 # `set' quotes correctly as required by POSIX, so do not add quotes.
11498 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11499 ;;
11500 esac >> confcache
11501if cmp -s $cache_file confcache; then
11502 :
11503else
11504 if test -w $cache_file; then
11505 echo "updating cache $cache_file"
11506 cat confcache > $cache_file
11507 else
11508 echo "not updating unwritable cache $cache_file"
11509 fi
11510fi
11511rm -f confcache
11512
11513
11514if test "$USE_LINUX" = 1; then
11515 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11516echo "configure:11517: checking for glibc 2.1 or later" >&5
11517if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11519else
11520
11521 cat > conftest.$ac_ext <<EOF
11522#line 11523 "configure"
11523#include "confdefs.h"
11524#include <features.h>
11525int main() {
11526
11527 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11528 #error not glibc2.1
11529 #endif
11530
11531; return 0; }
11532EOF
11533if { (eval echo configure:11534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11534 rm -rf conftest*
11535
11536 wx_cv_lib_glibc21=yes
11537
11538else
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542
11543 wx_cv_lib_glibc21=no
11544
11545
11546fi
11547rm -f conftest*
11548
11549fi
11550
11551echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11552 if test "$wx_cv_lib_glibc21" = "yes"; then
11553 cat >> confdefs.h <<\EOF
11554#define wxHAVE_GLIBC2 1
11555EOF
11556
11557 fi
11558fi
11559
11560if test "x$wx_cv_lib_glibc21" = "xyes"; then
11561 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11562 cat >> confdefs.h <<\EOF
11563#define _GNU_SOURCE 1
11564EOF
11565
11566 fi
11567fi
11568
11569
11570
11571REGEX_INCLUDE=
11572if test "$wxUSE_REGEX" != "no"; then
11573 cat >> confdefs.h <<\EOF
11574#define wxUSE_REGEX 1
11575EOF
11576
11577
11578 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11579 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11580echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11581echo "configure:11582: checking for regex.h" >&5
11582if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11584else
11585 cat > conftest.$ac_ext <<EOF
11586#line 11587 "configure"
11587#include "confdefs.h"
11588#include <regex.h>
11589EOF
11590ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11591{ (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11592ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11593if test -z "$ac_err"; then
11594 rm -rf conftest*
11595 eval "ac_cv_header_$ac_safe=yes"
11596else
11597 echo "$ac_err" >&5
11598 echo "configure: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11600 rm -rf conftest*
11601 eval "ac_cv_header_$ac_safe=no"
11602fi
11603rm -f conftest*
11604fi
11605if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11606 echo "$ac_t""yes" 1>&6
11607 for ac_func in regcomp
11608do
11609echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11610echo "configure:11611: checking for $ac_func" >&5
11611if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
11613else
11614 cat > conftest.$ac_ext <<EOF
11615#line 11616 "configure"
11616#include "confdefs.h"
11617/* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func(); below. */
11619#include <assert.h>
11620/* Override any gcc2 internal prototype to avoid an error. */
11621/* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11623char $ac_func();
11624
11625int main() {
11626
11627/* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11631choke me
11632#else
11633$ac_func();
11634#endif
11635
11636; return 0; }
11637EOF
11638if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11639 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=yes"
11641else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 eval "ac_cv_func_$ac_func=no"
11646fi
11647rm -f conftest*
11648fi
11649
11650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11653 cat >> confdefs.h <<EOF
11654#define $ac_tr_func 1
11655EOF
11656
11657else
11658 echo "$ac_t""no" 1>&6
11659fi
11660done
11661
11662else
11663 echo "$ac_t""no" 1>&6
11664fi
11665
11666
11667 if test "x$ac_cv_func_regcomp" != "xyes"; then
11668 if test "$wxUSE_REGEX" = "sys" ; then
11669 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11670 else
11671 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11672 wxUSE_REGEX=builtin
11673 fi
11674 else
11675 wxUSE_REGEX=sys
11676 fi
11677 fi
11678
11679 if test "$wxUSE_REGEX" = "builtin" ; then
11680 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11681 fi
11682fi
11683
11684
11685ZLIB_INCLUDE=
11686ZLIB_LINK=
11687if test "$wxUSE_ZLIB" != "no" ; then
11688 cat >> confdefs.h <<\EOF
11689#define wxUSE_ZLIB 1
11690EOF
11691
11692
11693 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11694 if test "$USE_DARWIN" = 1; then
11695 system_zlib_h_ok="yes"
11696 else
11697 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11698echo "configure:11699: checking for zlib.h >= 1.1.4" >&5
11699if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11700 echo $ac_n "(cached) $ac_c" 1>&6
11701else
11702 if test "$cross_compiling" = yes; then
11703 unset ac_cv_header_zlib_h
11704
11705else
11706 cat > conftest.$ac_ext <<EOF
11707#line 11708 "configure"
11708#include "confdefs.h"
11709
11710 #include <zlib.h>
11711 #include <stdio.h>
11712
11713
11714 int main()
11715 {
11716 FILE *f=fopen("conftestval", "w");
11717 if (!f) exit(1);
11718 fprintf(f, "%s",
11719 ZLIB_VERSION[0] == '1' &&
11720 (ZLIB_VERSION[2] > '1' ||
11721 (ZLIB_VERSION[2] == '1' &&
11722 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11723 exit(0);
11724 }
11725
11726
11727EOF
11728if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11729then
11730 ac_cv_header_zlib_h=`cat conftestval`
11731else
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -fr conftest*
11735 ac_cv_header_zlib_h=no
11736fi
11737rm -fr conftest*
11738fi
11739
11740
11741fi
11742
11743echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11744 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11745echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11746echo "configure:11747: checking for zlib.h" >&5
11747if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11748 echo $ac_n "(cached) $ac_c" 1>&6
11749else
11750 cat > conftest.$ac_ext <<EOF
11751#line 11752 "configure"
11752#include "confdefs.h"
11753#include <zlib.h>
11754EOF
11755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11756{ (eval echo configure:11757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11757ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11758if test -z "$ac_err"; then
11759 rm -rf conftest*
11760 eval "ac_cv_header_$ac_safe=yes"
11761else
11762 echo "$ac_err" >&5
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 eval "ac_cv_header_$ac_safe=no"
11767fi
11768rm -f conftest*
11769fi
11770if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11771 echo "$ac_t""yes" 1>&6
11772 :
11773else
11774 echo "$ac_t""no" 1>&6
11775fi
11776
11777
11778 system_zlib_h_ok=$ac_cv_header_zlib_h
11779 fi
11780
11781 if test "$system_zlib_h_ok" = "yes"; then
11782 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11783echo "configure:11784: checking for deflate in -lz" >&5
11784ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11785if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11786 echo $ac_n "(cached) $ac_c" 1>&6
11787else
11788 ac_save_LIBS="$LIBS"
11789LIBS="-lz $LIBS"
11790cat > conftest.$ac_ext <<EOF
11791#line 11792 "configure"
11792#include "confdefs.h"
11793/* Override any gcc2 internal prototype to avoid an error. */
11794/* We use char because int might match the return type of a gcc2
11795 builtin and then its argument prototype would still apply. */
11796char deflate();
11797
11798int main() {
11799deflate()
11800; return 0; }
11801EOF
11802if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803 rm -rf conftest*
11804 eval "ac_cv_lib_$ac_lib_var=yes"
11805else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_lib_$ac_lib_var=no"
11810fi
11811rm -f conftest*
11812LIBS="$ac_save_LIBS"
11813
11814fi
11815if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11816 echo "$ac_t""yes" 1>&6
11817 ZLIB_LINK=" -lz"
11818else
11819 echo "$ac_t""no" 1>&6
11820fi
11821
11822 fi
11823
11824 if test "x$ZLIB_LINK" = "x" ; then
11825 if test "$wxUSE_ZLIB" = "sys" ; then
11826 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11827 else
11828 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11829 wxUSE_ZLIB=builtin
11830 fi
11831 else
11832 wxUSE_ZLIB=sys
11833 fi
11834 fi
11835
11836 if test "$wxUSE_ZLIB" = "builtin" ; then
11837 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11838 fi
11839fi
11840
11841
11842PNG_INCLUDE=
11843PNG_LINK=
11844if test "$wxUSE_LIBPNG" != "no" ; then
11845 cat >> confdefs.h <<\EOF
11846#define wxUSE_LIBPNG 1
11847EOF
11848
11849
11850 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11851 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11852 wxUSE_LIBPNG=sys
11853 fi
11854
11855 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11856 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11857 wxUSE_LIBPNG=builtin
11858 fi
11859
11860 if test "$wxUSE_MGL" != 1 ; then
11861 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11862 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11863echo "configure:11864: checking for png.h > 0.90" >&5
11864if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11866else
11867 if test "$cross_compiling" = yes; then
11868 unset ac_cv_header_png_h
11869
11870else
11871 cat > conftest.$ac_ext <<EOF
11872#line 11873 "configure"
11873#include "confdefs.h"
11874
11875 #include <png.h>
11876 #include <stdio.h>
11877
11878 int main()
11879 {
11880 FILE *f=fopen("conftestval", "w");
11881 if (!f) exit(1);
11882 fprintf(f, "%s",
11883 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11884 exit(0);
11885 }
11886
11887EOF
11888if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11889then
11890 ac_cv_header_png_h=`cat conftestval`
11891else
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11894 rm -fr conftest*
11895 ac_cv_header_png_h=no
11896fi
11897rm -fr conftest*
11898fi
11899
11900
11901fi
11902
11903echo "$ac_t""$ac_cv_header_png_h" 1>&6
11904 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11905echo $ac_n "checking for png.h""... $ac_c" 1>&6
11906echo "configure:11907: checking for png.h" >&5
11907if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11909else
11910 cat > conftest.$ac_ext <<EOF
11911#line 11912 "configure"
11912#include "confdefs.h"
11913#include <png.h>
11914EOF
11915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11916{ (eval echo configure:11917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11918if test -z "$ac_err"; then
11919 rm -rf conftest*
11920 eval "ac_cv_header_$ac_safe=yes"
11921else
11922 echo "$ac_err" >&5
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -rf conftest*
11926 eval "ac_cv_header_$ac_safe=no"
11927fi
11928rm -f conftest*
11929fi
11930if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11931 echo "$ac_t""yes" 1>&6
11932 :
11933else
11934 echo "$ac_t""no" 1>&6
11935fi
11936
11937
11938 if test "$ac_cv_header_png_h" = "yes"; then
11939 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11940echo "configure:11941: checking for png_check_sig in -lpng" >&5
11941ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11944else
11945 ac_save_LIBS="$LIBS"
11946LIBS="-lpng -lz -lm $LIBS"
11947cat > conftest.$ac_ext <<EOF
11948#line 11949 "configure"
11949#include "confdefs.h"
11950/* Override any gcc2 internal prototype to avoid an error. */
11951/* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */
11953char png_check_sig();
11954
11955int main() {
11956png_check_sig()
11957; return 0; }
11958EOF
11959if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11960 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=yes"
11962else
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 rm -rf conftest*
11966 eval "ac_cv_lib_$ac_lib_var=no"
11967fi
11968rm -f conftest*
11969LIBS="$ac_save_LIBS"
11970
11971fi
11972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11973 echo "$ac_t""yes" 1>&6
11974 PNG_LINK=" -lpng"
11975else
11976 echo "$ac_t""no" 1>&6
11977fi
11978
11979 fi
11980
11981 if test "x$PNG_LINK" = "x" ; then
11982 if test "$wxUSE_LIBPNG" = "sys" ; then
11983 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11984 else
11985 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11986 wxUSE_LIBPNG=builtin
11987 fi
11988 else
11989 wxUSE_LIBPNG=sys
11990 fi
11991 fi
11992 fi
11993
11994 if test "$wxUSE_LIBPNG" = "builtin" ; then
11995 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11996 fi
11997
11998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11999fi
12000
12001
12002JPEG_INCLUDE=
12003JPEG_LINK=
12004if test "$wxUSE_LIBJPEG" != "no" ; then
12005 cat >> confdefs.h <<\EOF
12006#define wxUSE_LIBJPEG 1
12007EOF
12008
12009
12010 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
12011 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
12012 wxUSE_LIBJPEG=sys
12013 fi
12014
12015 if test "$wxUSE_MGL" != 1 ; then
12016 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
12017 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
12018echo "configure:12019: checking for jpeglib.h" >&5
12019 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12021else
12022 cat > conftest.$ac_ext <<EOF
12023#line 12024 "configure"
12024#include "confdefs.h"
12025
12026 #undef HAVE_STDLIB_H
12027 #include <stdio.h>
12028 #include <jpeglib.h>
12029
12030int main() {
12031
12032
12033; return 0; }
12034EOF
12035if { (eval echo configure:12036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12036 rm -rf conftest*
12037 ac_cv_header_jpeglib_h=yes
12038else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 ac_cv_header_jpeglib_h=no
12043
12044fi
12045rm -f conftest*
12046
12047fi
12048
12049 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
12050
12051 if test "$ac_cv_header_jpeglib_h" = "yes"; then
12052 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
12053echo "configure:12054: checking for jpeg_read_header in -ljpeg" >&5
12054ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12057else
12058 ac_save_LIBS="$LIBS"
12059LIBS="-ljpeg $LIBS"
12060cat > conftest.$ac_ext <<EOF
12061#line 12062 "configure"
12062#include "confdefs.h"
12063/* Override any gcc2 internal prototype to avoid an error. */
12064/* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12066char jpeg_read_header();
12067
12068int main() {
12069jpeg_read_header()
12070; return 0; }
12071EOF
12072if { (eval echo configure:12073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 rm -rf conftest*
12074 eval "ac_cv_lib_$ac_lib_var=yes"
12075else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 eval "ac_cv_lib_$ac_lib_var=no"
12080fi
12081rm -f conftest*
12082LIBS="$ac_save_LIBS"
12083
12084fi
12085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
12087 JPEG_LINK=" -ljpeg"
12088else
12089 echo "$ac_t""no" 1>&6
12090fi
12091
12092 fi
12093
12094 if test "x$JPEG_LINK" = "x" ; then
12095 if test "$wxUSE_LIBJPEG" = "sys" ; then
12096 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12097 else
12098 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12099 wxUSE_LIBJPEG=builtin
12100 fi
12101 else
12102 wxUSE_LIBJPEG=sys
12103 fi
12104 fi
12105 fi
12106
12107 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12108 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12109 fi
12110fi
12111
12112
12113TIFF_INCLUDE=
12114TIFF_LINK=
12115TIFF_PREREQ_LINKS=-lm
12116if test "$wxUSE_LIBTIFF" != "no" ; then
12117 cat >> confdefs.h <<\EOF
12118#define wxUSE_LIBTIFF 1
12119EOF
12120
12121
12122 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12123 if test "$wxUSE_LIBJPEG" = "sys"; then
12124 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12125 fi
12126 if test "$wxUSE_ZLIB" = "sys"; then
12127 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12128 fi
12129 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12130echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12131echo "configure:12132: checking for tiffio.h" >&5
12132if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134else
12135 cat > conftest.$ac_ext <<EOF
12136#line 12137 "configure"
12137#include "confdefs.h"
12138#include <tiffio.h>
12139EOF
12140ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12141{ (eval echo configure:12142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12142ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12143if test -z "$ac_err"; then
12144 rm -rf conftest*
12145 eval "ac_cv_header_$ac_safe=yes"
12146else
12147 echo "$ac_err" >&5
12148 echo "configure: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 rm -rf conftest*
12151 eval "ac_cv_header_$ac_safe=no"
12152fi
12153rm -f conftest*
12154fi
12155if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12156 echo "$ac_t""yes" 1>&6
12157 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12158echo "configure:12159: checking for TIFFError in -ltiff" >&5
12159ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12162else
12163 ac_save_LIBS="$LIBS"
12164LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12165cat > conftest.$ac_ext <<EOF
12166#line 12167 "configure"
12167#include "confdefs.h"
12168/* Override any gcc2 internal prototype to avoid an error. */
12169/* We use char because int might match the return type of a gcc2
12170 builtin and then its argument prototype would still apply. */
12171char TIFFError();
12172
12173int main() {
12174TIFFError()
12175; return 0; }
12176EOF
12177if { (eval echo configure:12178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12178 rm -rf conftest*
12179 eval "ac_cv_lib_$ac_lib_var=yes"
12180else
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 rm -rf conftest*
12184 eval "ac_cv_lib_$ac_lib_var=no"
12185fi
12186rm -f conftest*
12187LIBS="$ac_save_LIBS"
12188
12189fi
12190if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12191 echo "$ac_t""yes" 1>&6
12192 TIFF_LINK=" -ltiff"
12193else
12194 echo "$ac_t""no" 1>&6
12195fi
12196
12197
12198else
12199 echo "$ac_t""no" 1>&6
12200fi
12201
12202
12203 if test "x$TIFF_LINK" = "x" ; then
12204 if test "$wxUSE_LIBTIFF" = "sys" ; then
12205 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12206 else
12207 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12208 wxUSE_LIBTIFF=builtin
12209 fi
12210 else
12211 wxUSE_LIBTIFF=sys
12212 fi
12213 fi
12214
12215 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12216 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12217 fi
12218fi
12219
12220
12221AFMINSTALL=
12222WIN32INSTALL=
12223
12224TOOLKIT=
12225TOOLKIT_INCLUDE=
12226WIDGET_SET=
12227
12228if test "$USE_WIN32" = 1 ; then
12229 for ac_hdr in w32api.h
12230do
12231ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12232echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12233echo "configure:12234: checking for $ac_hdr" >&5
12234if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12235 echo $ac_n "(cached) $ac_c" 1>&6
12236else
12237 cat > conftest.$ac_ext <<EOF
12238#line 12239 "configure"
12239#include "confdefs.h"
12240#include <$ac_hdr>
12241EOF
12242ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12243{ (eval echo configure:12244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12244ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12245if test -z "$ac_err"; then
12246 rm -rf conftest*
12247 eval "ac_cv_header_$ac_safe=yes"
12248else
12249 echo "$ac_err" >&5
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 rm -rf conftest*
12253 eval "ac_cv_header_$ac_safe=no"
12254fi
12255rm -f conftest*
12256fi
12257if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12258 echo "$ac_t""yes" 1>&6
12259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12260 cat >> confdefs.h <<EOF
12261#define $ac_tr_hdr 1
12262EOF
12263
12264else
12265 echo "$ac_t""no" 1>&6
12266fi
12267done
12268
12269 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12270echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12271echo "configure:12272: checking for windows.h" >&5
12272if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12273 echo $ac_n "(cached) $ac_c" 1>&6
12274else
12275 cat > conftest.$ac_ext <<EOF
12276#line 12277 "configure"
12277#include "confdefs.h"
12278#include <windows.h>
12279EOF
12280ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12281{ (eval echo configure:12282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12282ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12283if test -z "$ac_err"; then
12284 rm -rf conftest*
12285 eval "ac_cv_header_$ac_safe=yes"
12286else
12287 echo "$ac_err" >&5
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12290 rm -rf conftest*
12291 eval "ac_cv_header_$ac_safe=no"
12292fi
12293rm -f conftest*
12294fi
12295if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12296 echo "$ac_t""yes" 1>&6
12297 :
12298else
12299 echo "$ac_t""no" 1>&6
12300
12301 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12302
12303fi
12304
12305
12306 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12307echo "configure:12308: checking if w32api has good enough MSIE support" >&5
12308if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
12310else
12311
12312 cat > conftest.$ac_ext <<EOF
12313#line 12314 "configure"
12314#include "confdefs.h"
12315#include <w32api.h>
12316int main() {
12317
12318 #define wxCHECK_W32API_VERSION( major, minor ) \
12319 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12320 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12321 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12322
12323 #if !wxCHECK_W32API_VERSION(1,1)
12324 #error You need w32api 1.1 or newer
12325 #endif
12326
12327; return 0; }
12328EOF
12329if { (eval echo configure:12330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12330 rm -rf conftest*
12331
12332 wx_cv_w32api_win32_ie=yes
12333
12334else
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12337 rm -rf conftest*
12338
12339 wx_cv_w32api_win32_ie=no
12340
12341fi
12342rm -f conftest*
12343
12344fi
12345
12346echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12347 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12348 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12349 fi
12350
12351 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12352
12353 case "${host}" in
12354 *-*-cygwin* )
12355 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12356 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12357 esac
12358
12359 if test "$wxUSE_ODBC" = "yes" ; then
12360 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12361 fi
12362
12363 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12364 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12365
12366 WIN32INSTALL=win32install
12367fi
12368
12369if test "$USE_DARWIN" = 1; then
12370 if test "$wxUSE_PRECOMP" = "yes"; then
12371 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12372 else
12373 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12374 fi
12375fi
12376
12377if test "$wxUSE_GUI" = "yes"; then
12378 USE_GUI=1
12379
12380 GUI_TK_LIBRARY=
12381
12382 WXGTK12=
12383 WXGTK127=
12384 WXGTK20=
12385
12386 if test "$wxUSE_MSW" = 1 ; then
12387 TOOLKIT=MSW
12388 GUIDIST=MSW_DIST
12389
12390 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12391 fi
12392
12393 if test "$wxUSE_GTK" = 1; then
12394 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12395echo "configure:12396: checking for GTK+ version" >&5
12396
12397 gtk_version_cached=1
12398 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12399 echo $ac_n "(cached) $ac_c" 1>&6
12400else
12401
12402 gtk_version_cached=0
12403 echo "$ac_t""" 1>&6
12404
12405 GTK_MODULES=
12406 if test "$wxUSE_THREADS" = "yes"; then
12407 GTK_MODULES=gthread
12408 fi
12409
12410 wx_cv_lib_gtk=
12411 if test "x$wxUSE_GTK2" = "xyes"; then
12412 # Check whether --enable-gtktest or --disable-gtktest was given.
12413if test "${enable_gtktest+set}" = set; then
12414 enableval="$enable_gtktest"
12415 :
12416else
12417 enable_gtktest=yes
12418fi
12419
12420
12421 pkg_config_args=gtk+-2.0
12422 for module in . $GTK_MODULES
12423 do
12424 case "$module" in
12425 gthread)
12426 pkg_config_args="$pkg_config_args gthread-2.0"
12427 ;;
12428 esac
12429 done
12430
12431 no_gtk=""
12432
12433 # Extract the first word of "pkg-config", so it can be a program name with args.
12434set dummy pkg-config; ac_word=$2
12435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12436echo "configure:12437: checking for $ac_word" >&5
12437if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
12439else
12440 case "$PKG_CONFIG" in
12441 /*)
12442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12443 ;;
12444 ?:/*)
12445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12446 ;;
12447 *)
12448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12449 ac_dummy="$PATH"
12450 for ac_dir in $ac_dummy; do
12451 test -z "$ac_dir" && ac_dir=.
12452 if test -f $ac_dir/$ac_word; then
12453 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12454 break
12455 fi
12456 done
12457 IFS="$ac_save_ifs"
12458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12459 ;;
12460esac
12461fi
12462PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12463if test -n "$PKG_CONFIG"; then
12464 echo "$ac_t""$PKG_CONFIG" 1>&6
12465else
12466 echo "$ac_t""no" 1>&6
12467fi
12468
12469
12470 if test x$PKG_CONFIG != xno ; then
12471 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12472 :
12473 else
12474 echo *** pkg-config too old; version 0.7 or better required.
12475 no_gtk=yes
12476 PKG_CONFIG=no
12477 fi
12478 else
12479 no_gtk=yes
12480 fi
12481
12482 min_gtk_version=2.0.0
12483 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12484echo "configure:12485: checking for GTK+ - version >= $min_gtk_version" >&5
12485
12486 if test x$PKG_CONFIG != xno ; then
12487 ## don't try to run the test against uninstalled libtool libs
12488 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12489 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12490 enable_gtktest=no
12491 fi
12492
12493 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12494 :
12495 else
12496 no_gtk=yes
12497 fi
12498 fi
12499
12500 if test x"$no_gtk" = x ; then
12501 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12502 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12503 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12505 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12507 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12509 if test "x$enable_gtktest" = "xyes" ; then
12510 ac_save_CFLAGS="$CFLAGS"
12511 ac_save_LIBS="$LIBS"
12512 CFLAGS="$CFLAGS $GTK_CFLAGS"
12513 LIBS="$GTK_LIBS $LIBS"
12514 rm -f conf.gtktest
12515 if test "$cross_compiling" = yes; then
12516 echo $ac_n "cross compiling; assumed OK... $ac_c"
12517else
12518 cat > conftest.$ac_ext <<EOF
12519#line 12520 "configure"
12520#include "confdefs.h"
12521
12522#include <gtk/gtk.h>
12523#include <stdio.h>
12524#include <stdlib.h>
12525
12526int
12527main ()
12528{
12529 int major, minor, micro;
12530 char *tmp_version;
12531
12532 system ("touch conf.gtktest");
12533
12534 /* HP/UX 9 (%@#!) writes to sscanf strings */
12535 tmp_version = g_strdup("$min_gtk_version");
12536 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12537 printf("%s, bad version string\n", "$min_gtk_version");
12538 exit(1);
12539 }
12540
12541 if ((gtk_major_version != $gtk_config_major_version) ||
12542 (gtk_minor_version != $gtk_config_minor_version) ||
12543 (gtk_micro_version != $gtk_config_micro_version))
12544 {
12545 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12546 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12547 gtk_major_version, gtk_minor_version, gtk_micro_version);
12548 printf ("*** was found! If pkg-config was correct, then it is best\n");
12549 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12550 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12551 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12552 printf("*** required on your system.\n");
12553 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12554 printf("*** to point to the correct configuration files\n");
12555 }
12556 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12557 (gtk_minor_version != GTK_MINOR_VERSION) ||
12558 (gtk_micro_version != GTK_MICRO_VERSION))
12559 {
12560 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12561 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12562 printf("*** library (version %d.%d.%d)\n",
12563 gtk_major_version, gtk_minor_version, gtk_micro_version);
12564 }
12565 else
12566 {
12567 if ((gtk_major_version > major) ||
12568 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12569 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12570 {
12571 return 0;
12572 }
12573 else
12574 {
12575 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12576 gtk_major_version, gtk_minor_version, gtk_micro_version);
12577 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12578 major, minor, micro);
12579 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12580 printf("***\n");
12581 printf("*** If you have already installed a sufficiently new version, this error\n");
12582 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12583 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12584 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12585 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12586 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12587 printf("*** so that the correct libraries are found at run-time))\n");
12588 }
12589 }
12590 return 1;
12591}
12592
12593EOF
12594if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12595then
12596 :
12597else
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 rm -fr conftest*
12601 no_gtk=yes
12602fi
12603rm -fr conftest*
12604fi
12605
12606 CFLAGS="$ac_save_CFLAGS"
12607 LIBS="$ac_save_LIBS"
12608 fi
12609 fi
12610 if test "x$no_gtk" = x ; then
12611 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12612 wx_cv_lib_gtk=2.0
12613 else
12614 echo "$ac_t""no" 1>&6
12615 if test "$PKG_CONFIG" = "no" ; then
12616 echo "*** A new enough version of pkg-config was not found."
12617 echo "*** See http://pkgconfig.sourceforge.net"
12618 else
12619 if test -f conf.gtktest ; then
12620 :
12621 else
12622 echo "*** Could not run GTK+ test program, checking why..."
12623 ac_save_CFLAGS="$CFLAGS"
12624 ac_save_LIBS="$LIBS"
12625 CFLAGS="$CFLAGS $GTK_CFLAGS"
12626 LIBS="$LIBS $GTK_LIBS"
12627 cat > conftest.$ac_ext <<EOF
12628#line 12629 "configure"
12629#include "confdefs.h"
12630
12631#include <gtk/gtk.h>
12632#include <stdio.h>
12633
12634int main() {
12635 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12636; return 0; }
12637EOF
12638if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12639 rm -rf conftest*
12640 echo "*** The test program compiled, but did not run. This usually means"
12641 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12642 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12643 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12644 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12645 echo "*** is required on your system"
12646 echo "***"
12647 echo "*** If you have an old version installed, it is best to remove it, although"
12648 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12649else
12650 echo "configure: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12652 rm -rf conftest*
12653 echo "*** The test program failed to compile or link. See the file config.log for the"
12654 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12655fi
12656rm -f conftest*
12657 CFLAGS="$ac_save_CFLAGS"
12658 LIBS="$ac_save_LIBS"
12659 fi
12660 fi
12661 GTK_CFLAGS=""
12662 GTK_LIBS=""
12663 :
12664 fi
12665
12666
12667 rm -f conf.gtktest
12668
12669 else
12670 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12671if test "${with_gtk_prefix+set}" = set; then
12672 withval="$with_gtk_prefix"
12673 gtk_config_prefix="$withval"
12674else
12675 gtk_config_prefix=""
12676fi
12677
12678# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12679if test "${with_gtk_exec_prefix+set}" = set; then
12680 withval="$with_gtk_exec_prefix"
12681 gtk_config_exec_prefix="$withval"
12682else
12683 gtk_config_exec_prefix=""
12684fi
12685
12686# Check whether --enable-gtktest or --disable-gtktest was given.
12687if test "${enable_gtktest+set}" = set; then
12688 enableval="$enable_gtktest"
12689 :
12690else
12691 enable_gtktest=yes
12692fi
12693
12694
12695 for module in . $GTK_MODULES
12696 do
12697 case "$module" in
12698 gthread)
12699 gtk_config_args="$gtk_config_args gthread"
12700 ;;
12701 esac
12702 done
12703
12704 if test x$gtk_config_exec_prefix != x ; then
12705 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12706 if test x${GTK_CONFIG+set} != xset ; then
12707 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12708 fi
12709 fi
12710 if test x$gtk_config_prefix != x ; then
12711 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12712 if test x${GTK_CONFIG+set} != xset ; then
12713 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12714 fi
12715 fi
12716
12717 # Extract the first word of "gtk-config", so it can be a program name with args.
12718set dummy gtk-config; ac_word=$2
12719echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12720echo "configure:12721: checking for $ac_word" >&5
12721if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12723else
12724 case "$GTK_CONFIG" in
12725 /*)
12726 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12727 ;;
12728 ?:/*)
12729 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12730 ;;
12731 *)
12732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12733 ac_dummy="$PATH"
12734 for ac_dir in $ac_dummy; do
12735 test -z "$ac_dir" && ac_dir=.
12736 if test -f $ac_dir/$ac_word; then
12737 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12738 break
12739 fi
12740 done
12741 IFS="$ac_save_ifs"
12742 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12743 ;;
12744esac
12745fi
12746GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12747if test -n "$GTK_CONFIG"; then
12748 echo "$ac_t""$GTK_CONFIG" 1>&6
12749else
12750 echo "$ac_t""no" 1>&6
12751fi
12752
12753 min_gtk_version=1.2.7
12754 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12755echo "configure:12756: checking for GTK - version >= $min_gtk_version" >&5
12756 no_gtk=""
12757 if test "$GTK_CONFIG" = "no" ; then
12758 no_gtk=yes
12759 else
12760 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12761 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12762 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12764 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12766 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12768 if test "x$enable_gtktest" = "xyes" ; then
12769 ac_save_CFLAGS="$CFLAGS"
12770 ac_save_LIBS="$LIBS"
12771 CFLAGS="$CFLAGS $GTK_CFLAGS"
12772 LIBS="$GTK_LIBS $LIBS"
12773 rm -f conf.gtktest
12774 if test "$cross_compiling" = yes; then
12775 echo $ac_n "cross compiling; assumed OK... $ac_c"
12776else
12777 cat > conftest.$ac_ext <<EOF
12778#line 12779 "configure"
12779#include "confdefs.h"
12780
12781#include <gtk/gtk.h>
12782#include <stdio.h>
12783#include <stdlib.h>
12784
12785int
12786main ()
12787{
12788 int major, minor, micro;
12789 char *tmp_version;
12790
12791 system ("touch conf.gtktest");
12792
12793 /* HP/UX 9 (%@#!) writes to sscanf strings */
12794 tmp_version = g_strdup("$min_gtk_version");
12795 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12796 printf("%s, bad version string\n", "$min_gtk_version");
12797 exit(1);
12798 }
12799
12800 if ((gtk_major_version != $gtk_config_major_version) ||
12801 (gtk_minor_version != $gtk_config_minor_version) ||
12802 (gtk_micro_version != $gtk_config_micro_version))
12803 {
12804 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12805 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12806 gtk_major_version, gtk_minor_version, gtk_micro_version);
12807 printf ("*** was found! If gtk-config was correct, then it is best\n");
12808 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12809 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12810 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12811 printf("*** required on your system.\n");
12812 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12813 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12814 printf("*** before re-running configure\n");
12815 }
12816#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12817 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12818 (gtk_minor_version != GTK_MINOR_VERSION) ||
12819 (gtk_micro_version != GTK_MICRO_VERSION))
12820 {
12821 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12822 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12823 printf("*** library (version %d.%d.%d)\n",
12824 gtk_major_version, gtk_minor_version, gtk_micro_version);
12825 }
12826#endif /* defined (GTK_MAJOR_VERSION) ... */
12827 else
12828 {
12829 if ((gtk_major_version > major) ||
12830 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12831 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12832 {
12833 return 0;
12834 }
12835 else
12836 {
12837 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12838 gtk_major_version, gtk_minor_version, gtk_micro_version);
12839 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12840 major, minor, micro);
12841 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12842 printf("***\n");
12843 printf("*** If you have already installed a sufficiently new version, this error\n");
12844 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12845 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12846 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12847 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12848 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12849 printf("*** so that the correct libraries are found at run-time))\n");
12850 }
12851 }
12852 return 1;
12853}
12854
12855EOF
12856if { (eval echo configure:12857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12857then
12858 :
12859else
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 rm -fr conftest*
12863 no_gtk=yes
12864fi
12865rm -fr conftest*
12866fi
12867
12868 CFLAGS="$ac_save_CFLAGS"
12869 LIBS="$ac_save_LIBS"
12870 fi
12871 fi
12872 if test "x$no_gtk" = x ; then
12873 echo "$ac_t""yes" 1>&6
12874 wx_cv_lib_gtk=1.2.7
12875 else
12876 echo "$ac_t""no" 1>&6
12877 if test "$GTK_CONFIG" = "no" ; then
12878 echo "*** The gtk-config script installed by GTK could not be found"
12879 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12880 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12881 echo "*** full path to gtk-config."
12882 else
12883 if test -f conf.gtktest ; then
12884 :
12885 else
12886 echo "*** Could not run GTK test program, checking why..."
12887 CFLAGS="$CFLAGS $GTK_CFLAGS"
12888 LIBS="$LIBS $GTK_LIBS"
12889 cat > conftest.$ac_ext <<EOF
12890#line 12891 "configure"
12891#include "confdefs.h"
12892
12893#include <gtk/gtk.h>
12894#include <stdio.h>
12895
12896int main() {
12897 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12898; return 0; }
12899EOF
12900if { (eval echo configure:12901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12901 rm -rf conftest*
12902 echo "*** The test program compiled, but did not run. This usually means"
12903 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12904 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12905 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12906 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12907 echo "*** is required on your system"
12908 echo "***"
12909 echo "*** If you have an old version installed, it is best to remove it, although"
12910 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12911 echo "***"
12912 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12913 echo "*** came with the system with the command"
12914 echo "***"
12915 echo "*** rpm --erase --nodeps gtk gtk-devel"
12916else
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 rm -rf conftest*
12920 echo "*** The test program failed to compile or link. See the file config.log for the"
12921 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12922 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12923 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12924fi
12925rm -f conftest*
12926 CFLAGS="$ac_save_CFLAGS"
12927 LIBS="$ac_save_LIBS"
12928 fi
12929 fi
12930 GTK_CFLAGS=""
12931 GTK_LIBS=""
12932 :
12933 fi
12934
12935
12936 rm -f conf.gtktest
12937
12938
12939 if test -z "$wx_cv_lib_gtk"; then
12940 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12941if test "${with_gtk_prefix+set}" = set; then
12942 withval="$with_gtk_prefix"
12943 gtk_config_prefix="$withval"
12944else
12945 gtk_config_prefix=""
12946fi
12947
12948# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12949if test "${with_gtk_exec_prefix+set}" = set; then
12950 withval="$with_gtk_exec_prefix"
12951 gtk_config_exec_prefix="$withval"
12952else
12953 gtk_config_exec_prefix=""
12954fi
12955
12956# Check whether --enable-gtktest or --disable-gtktest was given.
12957if test "${enable_gtktest+set}" = set; then
12958 enableval="$enable_gtktest"
12959 :
12960else
12961 enable_gtktest=yes
12962fi
12963
12964
12965 for module in . $GTK_MODULES
12966 do
12967 case "$module" in
12968 gthread)
12969 gtk_config_args="$gtk_config_args gthread"
12970 ;;
12971 esac
12972 done
12973
12974 if test x$gtk_config_exec_prefix != x ; then
12975 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12976 if test x${GTK_CONFIG+set} != xset ; then
12977 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12978 fi
12979 fi
12980 if test x$gtk_config_prefix != x ; then
12981 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12982 if test x${GTK_CONFIG+set} != xset ; then
12983 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12984 fi
12985 fi
12986
12987 # Extract the first word of "gtk-config", so it can be a program name with args.
12988set dummy gtk-config; ac_word=$2
12989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12990echo "configure:12991: checking for $ac_word" >&5
12991if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12992 echo $ac_n "(cached) $ac_c" 1>&6
12993else
12994 case "$GTK_CONFIG" in
12995 /*)
12996 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12997 ;;
12998 ?:/*)
12999 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
13000 ;;
13001 *)
13002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13003 ac_dummy="$PATH"
13004 for ac_dir in $ac_dummy; do
13005 test -z "$ac_dir" && ac_dir=.
13006 if test -f $ac_dir/$ac_word; then
13007 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13008 break
13009 fi
13010 done
13011 IFS="$ac_save_ifs"
13012 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13013 ;;
13014esac
13015fi
13016GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
13017if test -n "$GTK_CONFIG"; then
13018 echo "$ac_t""$GTK_CONFIG" 1>&6
13019else
13020 echo "$ac_t""no" 1>&6
13021fi
13022
13023 min_gtk_version=1.2.3
13024 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
13025echo "configure:13026: checking for GTK - version >= $min_gtk_version" >&5
13026 no_gtk=""
13027 if test "$GTK_CONFIG" = "no" ; then
13028 no_gtk=yes
13029 else
13030 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13031 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13032 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13034 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13036 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13038 if test "x$enable_gtktest" = "xyes" ; then
13039 ac_save_CFLAGS="$CFLAGS"
13040 ac_save_LIBS="$LIBS"
13041 CFLAGS="$CFLAGS $GTK_CFLAGS"
13042 LIBS="$GTK_LIBS $LIBS"
13043 rm -f conf.gtktest
13044 if test "$cross_compiling" = yes; then
13045 echo $ac_n "cross compiling; assumed OK... $ac_c"
13046else
13047 cat > conftest.$ac_ext <<EOF
13048#line 13049 "configure"
13049#include "confdefs.h"
13050
13051#include <gtk/gtk.h>
13052#include <stdio.h>
13053#include <stdlib.h>
13054
13055int
13056main ()
13057{
13058 int major, minor, micro;
13059 char *tmp_version;
13060
13061 system ("touch conf.gtktest");
13062
13063 /* HP/UX 9 (%@#!) writes to sscanf strings */
13064 tmp_version = g_strdup("$min_gtk_version");
13065 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13066 printf("%s, bad version string\n", "$min_gtk_version");
13067 exit(1);
13068 }
13069
13070 if ((gtk_major_version != $gtk_config_major_version) ||
13071 (gtk_minor_version != $gtk_config_minor_version) ||
13072 (gtk_micro_version != $gtk_config_micro_version))
13073 {
13074 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13075 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13076 gtk_major_version, gtk_minor_version, gtk_micro_version);
13077 printf ("*** was found! If gtk-config was correct, then it is best\n");
13078 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13079 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13080 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13081 printf("*** required on your system.\n");
13082 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13083 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13084 printf("*** before re-running configure\n");
13085 }
13086#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13087 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13088 (gtk_minor_version != GTK_MINOR_VERSION) ||
13089 (gtk_micro_version != GTK_MICRO_VERSION))
13090 {
13091 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13092 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13093 printf("*** library (version %d.%d.%d)\n",
13094 gtk_major_version, gtk_minor_version, gtk_micro_version);
13095 }
13096#endif /* defined (GTK_MAJOR_VERSION) ... */
13097 else
13098 {
13099 if ((gtk_major_version > major) ||
13100 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13101 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13102 {
13103 return 0;
13104 }
13105 else
13106 {
13107 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13108 gtk_major_version, gtk_minor_version, gtk_micro_version);
13109 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13110 major, minor, micro);
13111 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13112 printf("***\n");
13113 printf("*** If you have already installed a sufficiently new version, this error\n");
13114 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13115 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13116 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13117 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13118 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13119 printf("*** so that the correct libraries are found at run-time))\n");
13120 }
13121 }
13122 return 1;
13123}
13124
13125EOF
13126if { (eval echo configure:13127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13127then
13128 :
13129else
13130 echo "configure: failed program was:" >&5
13131 cat conftest.$ac_ext >&5
13132 rm -fr conftest*
13133 no_gtk=yes
13134fi
13135rm -fr conftest*
13136fi
13137
13138 CFLAGS="$ac_save_CFLAGS"
13139 LIBS="$ac_save_LIBS"
13140 fi
13141 fi
13142 if test "x$no_gtk" = x ; then
13143 echo "$ac_t""yes" 1>&6
13144 wx_cv_lib_gtk=1.2.3
13145 else
13146 echo "$ac_t""no" 1>&6
13147 if test "$GTK_CONFIG" = "no" ; then
13148 echo "*** The gtk-config script installed by GTK could not be found"
13149 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13150 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13151 echo "*** full path to gtk-config."
13152 else
13153 if test -f conf.gtktest ; then
13154 :
13155 else
13156 echo "*** Could not run GTK test program, checking why..."
13157 CFLAGS="$CFLAGS $GTK_CFLAGS"
13158 LIBS="$LIBS $GTK_LIBS"
13159 cat > conftest.$ac_ext <<EOF
13160#line 13161 "configure"
13161#include "confdefs.h"
13162
13163#include <gtk/gtk.h>
13164#include <stdio.h>
13165
13166int main() {
13167 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13168; return 0; }
13169EOF
13170if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13171 rm -rf conftest*
13172 echo "*** The test program compiled, but did not run. This usually means"
13173 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13174 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13175 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13176 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13177 echo "*** is required on your system"
13178 echo "***"
13179 echo "*** If you have an old version installed, it is best to remove it, although"
13180 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13181 echo "***"
13182 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13183 echo "*** came with the system with the command"
13184 echo "***"
13185 echo "*** rpm --erase --nodeps gtk gtk-devel"
13186else
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13189 rm -rf conftest*
13190 echo "*** The test program failed to compile or link. See the file config.log for the"
13191 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13192 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13193 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13194fi
13195rm -f conftest*
13196 CFLAGS="$ac_save_CFLAGS"
13197 LIBS="$ac_save_LIBS"
13198 fi
13199 fi
13200 GTK_CFLAGS=""
13201 GTK_LIBS=""
13202 :
13203 fi
13204
13205
13206 rm -f conf.gtktest
13207
13208 fi
13209 fi
13210
13211 if test -z "$wx_cv_lib_gtk"; then
13212 wx_cv_lib_gtk=none
13213 else
13214 wx_cv_cflags_gtk=$GTK_CFLAGS
13215 wx_cv_libs_gtk=$GTK_LIBS
13216 fi
13217
13218
13219fi
13220
13221
13222 if test "$gtk_version_cached" = 1; then
13223 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13224 fi
13225
13226 case "$wx_cv_lib_gtk" in
13227 2.0) WXGTK20=1
13228 TOOLKIT_VERSION=2
13229 ;;
13230 1.2.7) WXGTK127=1
13231 WXGTK12=1
13232 ;;
13233 1.2.3) WXGTK12=1
13234 ;;
13235 *) { echo "configure: error:
13236Please check that gtk-config is in path, the directory
13237where GTK+ libraries are installed (returned by
13238'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13239equivalent variable and GTK+ is version 1.2.3 or above.
13240 " 1>&2; exit 1; }
13241 ;;
13242 esac
13243
13244 if test "$WXGTK20" = 1; then
13245 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13246
13247 succeeded=no
13248
13249 if test -z "$PKG_CONFIG"; then
13250 # Extract the first word of "pkg-config", so it can be a program name with args.
13251set dummy pkg-config; ac_word=$2
13252echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13253echo "configure:13254: checking for $ac_word" >&5
13254if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13255 echo $ac_n "(cached) $ac_c" 1>&6
13256else
13257 case "$PKG_CONFIG" in
13258 /*)
13259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13260 ;;
13261 ?:/*)
13262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13263 ;;
13264 *)
13265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13266 ac_dummy="$PATH"
13267 for ac_dir in $ac_dummy; do
13268 test -z "$ac_dir" && ac_dir=.
13269 if test -f $ac_dir/$ac_word; then
13270 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13271 break
13272 fi
13273 done
13274 IFS="$ac_save_ifs"
13275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13276 ;;
13277esac
13278fi
13279PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13280if test -n "$PKG_CONFIG"; then
13281 echo "$ac_t""$PKG_CONFIG" 1>&6
13282else
13283 echo "$ac_t""no" 1>&6
13284fi
13285
13286 fi
13287
13288 if test "$PKG_CONFIG" = "no" ; then
13289 echo "*** The pkg-config script could not be found. Make sure it is"
13290 echo "*** in your path, or set the PKG_CONFIG environment variable"
13291 echo "*** to the full path to pkg-config."
13292 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13293 else
13294 PKG_CONFIG_MIN_VERSION=0.9.0
13295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13296 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13297echo "configure:13298: checking for pangoft2" >&5
13298
13299 if $PKG_CONFIG --exists "pangoft2" ; then
13300 echo "$ac_t""yes" 1>&6
13301 succeeded=yes
13302
13303 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13304echo "configure:13305: checking PANGOFT2_CFLAGS" >&5
13305 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13306 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13307
13308 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13309echo "configure:13310: checking PANGOFT2_LIBS" >&5
13310 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13311 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13312 else
13313 PANGOFT2_CFLAGS=""
13314 PANGOFT2_LIBS=""
13315 ## If we have a custom action on failure, don't print errors, but
13316 ## do set a variable so people can do so.
13317 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13318
13319 fi
13320
13321
13322
13323 else
13324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13326 fi
13327 fi
13328
13329 if test $succeeded = yes; then
13330
13331 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13332 LIBS="$LIBS $PANGOFT2_LIBS"
13333
13334 else
13335
13336 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13337 wxUSE_PRINTING_ARCHITECTURE="no"
13338
13339
13340 fi
13341
13342 fi
13343 else
13344 if test "$wxUSE_UNICODE" = "yes"; then
13345 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13346 wxUSE_UNICODE=no
13347 fi
13348 fi
13349
13350 if test "$USE_DARWIN" != 1; then
13351 for ac_func in poll
13352do
13353echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13354echo "configure:13355: checking for $ac_func" >&5
13355if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357else
13358 cat > conftest.$ac_ext <<EOF
13359#line 13360 "configure"
13360#include "confdefs.h"
13361/* System header to define __stub macros and hopefully few prototypes,
13362 which can conflict with char $ac_func(); below. */
13363#include <assert.h>
13364/* Override any gcc2 internal prototype to avoid an error. */
13365/* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13367char $ac_func();
13368
13369int main() {
13370
13371/* The GNU C library defines this for functions which it implements
13372 to always fail with ENOSYS. Some functions are actually named
13373 something starting with __ and the normal name is an alias. */
13374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13375choke me
13376#else
13377$ac_func();
13378#endif
13379
13380; return 0; }
13381EOF
13382if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13383 rm -rf conftest*
13384 eval "ac_cv_func_$ac_func=yes"
13385else
13386 echo "configure: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13388 rm -rf conftest*
13389 eval "ac_cv_func_$ac_func=no"
13390fi
13391rm -f conftest*
13392fi
13393
13394if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13395 echo "$ac_t""yes" 1>&6
13396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13397 cat >> confdefs.h <<EOF
13398#define $ac_tr_func 1
13399EOF
13400
13401else
13402 echo "$ac_t""no" 1>&6
13403fi
13404done
13405
13406 fi
13407
13408 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13409 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13410
13411 AFMINSTALL=afminstall
13412 TOOLKIT=GTK
13413 GUIDIST=GTK_DIST
13414
13415 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13416echo "configure:13417: checking for gdk_im_open in -lgdk" >&5
13417ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13418if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
13420else
13421 ac_save_LIBS="$LIBS"
13422LIBS="-lgdk $LIBS"
13423cat > conftest.$ac_ext <<EOF
13424#line 13425 "configure"
13425#include "confdefs.h"
13426/* Override any gcc2 internal prototype to avoid an error. */
13427/* We use char because int might match the return type of a gcc2
13428 builtin and then its argument prototype would still apply. */
13429char gdk_im_open();
13430
13431int main() {
13432gdk_im_open()
13433; return 0; }
13434EOF
13435if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13436 rm -rf conftest*
13437 eval "ac_cv_lib_$ac_lib_var=yes"
13438else
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13441 rm -rf conftest*
13442 eval "ac_cv_lib_$ac_lib_var=no"
13443fi
13444rm -f conftest*
13445LIBS="$ac_save_LIBS"
13446
13447fi
13448if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13450 cat >> confdefs.h <<\EOF
13451#define HAVE_XIM 1
13452EOF
13453
13454else
13455 echo "$ac_t""no" 1>&6
13456fi
13457
13458 fi
13459
13460 if test "$wxUSE_MGL" = 1; then
13461 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13462echo "configure:13463: checking for SciTech MGL library" >&5
13463 if test "x$MGL_ROOT" = x ; then
13464 echo "$ac_t""not found" 1>&6
13465 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13466 else
13467 echo "$ac_t""$MGL_ROOT" 1>&6
13468 fi
13469
13470 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13471echo "configure:13472: checking for libmgl location" >&5
13472 case "${host}" in
13473 *-*-linux* )
13474 if test "x$wxUSE_SHARED" = xyes ; then
13475 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13476 else
13477 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13478 fi
13479 ;;
13480 *-pc-msdosdjgpp )
13481 mgl_os_candidates="dos32/dj2"
13482 ;;
13483 *)
13484 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13485 esac
13486
13487 mgl_lib_type=""
13488 mgl_os=""
13489
13490 for mgl_os_i in $mgl_os_candidates ; do
13491 if test "x$mgl_os" = x ; then
13492 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13493 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13494 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13495 mgl_lib_type=debug
13496 mgl_os=$mgl_os_i
13497 fi
13498 fi
13499 if test "x$mgl_lib_type" = x ; then
13500 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13501 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13502 mgl_lib_type=release
13503 mgl_os=$mgl_os_i
13504 fi
13505 fi
13506 fi
13507 done
13508
13509 if test "x$mgl_os" = x ; then
13510 echo "$ac_t""not found" 1>&6
13511 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13512 fi
13513 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13514
13515 wxUSE_UNIVERSAL="yes"
13516
13517 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13518 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13519
13520 AFMINSTALL=afminstall
13521 TOOLKIT=MGL
13522 GUIDIST=MGL_DIST
13523 fi
13524
13525 if test "$wxUSE_MICROWIN" = 1; then
13526 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13527echo "configure:13528: checking for MicroWindows" >&5
13528 if test "x$MICROWINDOWS" = x ; then
13529 echo "$ac_t""not found" 1>&6
13530 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13531 else
13532 echo "$ac_t""$MICROWINDOWS" 1>&6
13533 fi
13534
13535 if test -f $MICROWINDOWS/lib/libmwin.a; then
13536 echo "$ac_t""MicroWindows' libraries found." 1>&6
13537 else
13538 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13539 fi
13540
13541 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13542 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13543
13544 wxUSE_UNIVERSAL="yes"
13545
13546 AFMINSTALL=afminstall
13547 TOOLKIT=MICROWIN
13548 GUIDIST=MICROWIN_DIST
13549
13550 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13551 fi
13552
13553 if test "$wxUSE_X11" = 1; then
13554 # If we find X, set shell vars x_includes and x_libraries to the
13555# paths, otherwise set no_x=yes.
13556# Uses ac_ vars as temps to allow command line to override cache and checks.
13557# --without-x overrides everything else, but does not touch the cache.
13558echo $ac_n "checking for X""... $ac_c" 1>&6
13559echo "configure:13560: checking for X" >&5
13560
13561# Check whether --with-x or --without-x was given.
13562if test "${with_x+set}" = set; then
13563 withval="$with_x"
13564 :
13565fi
13566
13567# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13568if test "x$with_x" = xno; then
13569 # The user explicitly disabled X.
13570 have_x=disabled
13571else
13572 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13573 # Both variables are already set.
13574 have_x=yes
13575 else
13576if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13577 echo $ac_n "(cached) $ac_c" 1>&6
13578else
13579 # One or both of the vars are not set, and there is no cached value.
13580ac_x_includes=NO ac_x_libraries=NO
13581rm -fr conftestdir
13582if mkdir conftestdir; then
13583 cd conftestdir
13584 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13585 cat > Imakefile <<'EOF'
13586acfindx:
13587 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13588EOF
13589 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13591 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13592 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13593 for ac_extension in a so sl; do
13594 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13595 test -f $ac_im_libdir/libX11.$ac_extension; then
13596 ac_im_usrlibdir=$ac_im_libdir; break
13597 fi
13598 done
13599 # Screen out bogus values from the imake configuration. They are
13600 # bogus both because they are the default anyway, and because
13601 # using them would break gcc on systems where it needs fixed includes.
13602 case "$ac_im_incroot" in
13603 /usr/include) ;;
13604 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13605 esac
13606 case "$ac_im_usrlibdir" in
13607 /usr/lib | /lib) ;;
13608 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13609 esac
13610 fi
13611 cd ..
13612 rm -fr conftestdir
13613fi
13614
13615if test "$ac_x_includes" = NO; then
13616 # Guess where to find include files, by looking for this one X11 .h file.
13617 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13618
13619 # First, try using that file with no special directory specified.
13620cat > conftest.$ac_ext <<EOF
13621#line 13622 "configure"
13622#include "confdefs.h"
13623#include <$x_direct_test_include>
13624EOF
13625ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13626{ (eval echo configure:13627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13627ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13628if test -z "$ac_err"; then
13629 rm -rf conftest*
13630 # We can compile using X headers with no special include directory.
13631ac_x_includes=
13632else
13633 echo "$ac_err" >&5
13634 echo "configure: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13636 rm -rf conftest*
13637 # Look for the header file in a standard set of common directories.
13638# Check X11 before X11Rn because it is often a symlink to the current release.
13639 for ac_dir in \
13640 /usr/X11/include \
13641 /usr/X11R6/include \
13642 /usr/X11R5/include \
13643 /usr/X11R4/include \
13644 \
13645 /usr/include/X11 \
13646 /usr/include/X11R6 \
13647 /usr/include/X11R5 \
13648 /usr/include/X11R4 \
13649 \
13650 /usr/local/X11/include \
13651 /usr/local/X11R6/include \
13652 /usr/local/X11R5/include \
13653 /usr/local/X11R4/include \
13654 \
13655 /usr/local/include/X11 \
13656 /usr/local/include/X11R6 \
13657 /usr/local/include/X11R5 \
13658 /usr/local/include/X11R4 \
13659 \
13660 /usr/X386/include \
13661 /usr/x386/include \
13662 /usr/XFree86/include/X11 \
13663 \
13664 /usr/include \
13665 /usr/local/include \
13666 /usr/unsupported/include \
13667 /usr/athena/include \
13668 /usr/local/x11r5/include \
13669 /usr/lpp/Xamples/include \
13670 \
13671 /usr/openwin/include \
13672 /usr/openwin/share/include \
13673 ; \
13674 do
13675 if test -r "$ac_dir/$x_direct_test_include"; then
13676 ac_x_includes=$ac_dir
13677 break
13678 fi
13679 done
13680fi
13681rm -f conftest*
13682fi # $ac_x_includes = NO
13683
13684if test "$ac_x_libraries" = NO; then
13685 # Check for the libraries.
13686
13687 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13688 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13689
13690 # See if we find them without any special options.
13691 # Don't add to $LIBS permanently.
13692 ac_save_LIBS="$LIBS"
13693 LIBS="-l$x_direct_test_library $LIBS"
13694cat > conftest.$ac_ext <<EOF
13695#line 13696 "configure"
13696#include "confdefs.h"
13697
13698int main() {
13699${x_direct_test_function}()
13700; return 0; }
13701EOF
13702if { (eval echo configure:13703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13703 rm -rf conftest*
13704 LIBS="$ac_save_LIBS"
13705# We can link X programs with no special library path.
13706ac_x_libraries=
13707else
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 LIBS="$ac_save_LIBS"
13712# First see if replacing the include by lib works.
13713# Check X11 before X11Rn because it is often a symlink to the current release.
13714for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13715 /usr/X11/lib \
13716 /usr/X11R6/lib \
13717 /usr/X11R5/lib \
13718 /usr/X11R4/lib \
13719 \
13720 /usr/lib/X11 \
13721 /usr/lib/X11R6 \
13722 /usr/lib/X11R5 \
13723 /usr/lib/X11R4 \
13724 \
13725 /usr/local/X11/lib \
13726 /usr/local/X11R6/lib \
13727 /usr/local/X11R5/lib \
13728 /usr/local/X11R4/lib \
13729 \
13730 /usr/local/lib/X11 \
13731 /usr/local/lib/X11R6 \
13732 /usr/local/lib/X11R5 \
13733 /usr/local/lib/X11R4 \
13734 \
13735 /usr/X386/lib \
13736 /usr/x386/lib \
13737 /usr/XFree86/lib/X11 \
13738 \
13739 /usr/lib \
13740 /usr/local/lib \
13741 /usr/unsupported/lib \
13742 /usr/athena/lib \
13743 /usr/local/x11r5/lib \
13744 /usr/lpp/Xamples/lib \
13745 /lib/usr/lib/X11 \
13746 \
13747 /usr/openwin/lib \
13748 /usr/openwin/share/lib \
13749 ; \
13750do
13751 for ac_extension in a so sl; do
13752 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13753 ac_x_libraries=$ac_dir
13754 break 2
13755 fi
13756 done
13757done
13758fi
13759rm -f conftest*
13760fi # $ac_x_libraries = NO
13761
13762if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13763 # Didn't find X anywhere. Cache the known absence of X.
13764 ac_cv_have_x="have_x=no"
13765else
13766 # Record where we found X for the cache.
13767 ac_cv_have_x="have_x=yes \
13768 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13769fi
13770fi
13771 fi
13772 eval "$ac_cv_have_x"
13773fi # $with_x != no
13774
13775if test "$have_x" != yes; then
13776 echo "$ac_t""$have_x" 1>&6
13777 no_x=yes
13778else
13779 # If each of the values was on the command line, it overrides each guess.
13780 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13781 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13782 # Update the cache value to reflect the command line values.
13783 ac_cv_have_x="have_x=yes \
13784 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13785 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13786fi
13787
13788if test "$no_x" = yes; then
13789 # Not all programs may use this symbol, but it does not hurt to define it.
13790 cat >> confdefs.h <<\EOF
13791#define X_DISPLAY_MISSING 1
13792EOF
13793
13794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13795else
13796 if test -n "$x_includes"; then
13797 X_CFLAGS="$X_CFLAGS -I$x_includes"
13798 fi
13799
13800 # It would also be nice to do this for all -L options, not just this one.
13801 if test -n "$x_libraries"; then
13802 X_LIBS="$X_LIBS -L$x_libraries"
13803 # For Solaris; some versions of Sun CC require a space after -R and
13804 # others require no space. Words are not sufficient . . . .
13805 case "`(uname -sr) 2>/dev/null`" in
13806 "SunOS 5"*)
13807 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13808echo "configure:13809: checking whether -R must be followed by a space" >&5
13809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13810 cat > conftest.$ac_ext <<EOF
13811#line 13812 "configure"
13812#include "confdefs.h"
13813
13814int main() {
13815
13816; return 0; }
13817EOF
13818if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13819 rm -rf conftest*
13820 ac_R_nospace=yes
13821else
13822 echo "configure: failed program was:" >&5
13823 cat conftest.$ac_ext >&5
13824 rm -rf conftest*
13825 ac_R_nospace=no
13826fi
13827rm -f conftest*
13828 if test $ac_R_nospace = yes; then
13829 echo "$ac_t""no" 1>&6
13830 X_LIBS="$X_LIBS -R$x_libraries"
13831 else
13832 LIBS="$ac_xsave_LIBS -R $x_libraries"
13833 cat > conftest.$ac_ext <<EOF
13834#line 13835 "configure"
13835#include "confdefs.h"
13836
13837int main() {
13838
13839; return 0; }
13840EOF
13841if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13842 rm -rf conftest*
13843 ac_R_space=yes
13844else
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 rm -rf conftest*
13848 ac_R_space=no
13849fi
13850rm -f conftest*
13851 if test $ac_R_space = yes; then
13852 echo "$ac_t""yes" 1>&6
13853 X_LIBS="$X_LIBS -R $x_libraries"
13854 else
13855 echo "$ac_t""neither works" 1>&6
13856 fi
13857 fi
13858 LIBS="$ac_xsave_LIBS"
13859 esac
13860 fi
13861
13862 # Check for system-dependent libraries X programs must link with.
13863 # Do this before checking for the system-independent R6 libraries
13864 # (-lICE), since we may need -lsocket or whatever for X linking.
13865
13866 if test "$ISC" = yes; then
13867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13868 else
13869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13870 # libraries were built with DECnet support. And karl@cs.umb.edu says
13871 # the Alpha needs dnet_stub (dnet does not exist).
13872 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13873echo "configure:13874: checking for dnet_ntoa in -ldnet" >&5
13874ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13875if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13877else
13878 ac_save_LIBS="$LIBS"
13879LIBS="-ldnet $LIBS"
13880cat > conftest.$ac_ext <<EOF
13881#line 13882 "configure"
13882#include "confdefs.h"
13883/* Override any gcc2 internal prototype to avoid an error. */
13884/* We use char because int might match the return type of a gcc2
13885 builtin and then its argument prototype would still apply. */
13886char dnet_ntoa();
13887
13888int main() {
13889dnet_ntoa()
13890; return 0; }
13891EOF
13892if { (eval echo configure:13893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13893 rm -rf conftest*
13894 eval "ac_cv_lib_$ac_lib_var=yes"
13895else
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 rm -rf conftest*
13899 eval "ac_cv_lib_$ac_lib_var=no"
13900fi
13901rm -f conftest*
13902LIBS="$ac_save_LIBS"
13903
13904fi
13905if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13906 echo "$ac_t""yes" 1>&6
13907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13908else
13909 echo "$ac_t""no" 1>&6
13910fi
13911
13912 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13913 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13914echo "configure:13915: checking for dnet_ntoa in -ldnet_stub" >&5
13915ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13917 echo $ac_n "(cached) $ac_c" 1>&6
13918else
13919 ac_save_LIBS="$LIBS"
13920LIBS="-ldnet_stub $LIBS"
13921cat > conftest.$ac_ext <<EOF
13922#line 13923 "configure"
13923#include "confdefs.h"
13924/* Override any gcc2 internal prototype to avoid an error. */
13925/* We use char because int might match the return type of a gcc2
13926 builtin and then its argument prototype would still apply. */
13927char dnet_ntoa();
13928
13929int main() {
13930dnet_ntoa()
13931; return 0; }
13932EOF
13933if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13934 rm -rf conftest*
13935 eval "ac_cv_lib_$ac_lib_var=yes"
13936else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940 eval "ac_cv_lib_$ac_lib_var=no"
13941fi
13942rm -f conftest*
13943LIBS="$ac_save_LIBS"
13944
13945fi
13946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13947 echo "$ac_t""yes" 1>&6
13948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13949else
13950 echo "$ac_t""no" 1>&6
13951fi
13952
13953 fi
13954
13955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13956 # to get the SysV transport functions.
13957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13958 # needs -lnsl.
13959 # The nsl library prevents programs from opening the X display
13960 # on Irix 5.2, according to dickey@clark.net.
13961 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13962echo "configure:13963: checking for gethostbyname" >&5
13963if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13965else
13966 cat > conftest.$ac_ext <<EOF
13967#line 13968 "configure"
13968#include "confdefs.h"
13969/* System header to define __stub macros and hopefully few prototypes,
13970 which can conflict with char gethostbyname(); below. */
13971#include <assert.h>
13972/* Override any gcc2 internal prototype to avoid an error. */
13973/* We use char because int might match the return type of a gcc2
13974 builtin and then its argument prototype would still apply. */
13975char gethostbyname();
13976
13977int main() {
13978
13979/* The GNU C library defines this for functions which it implements
13980 to always fail with ENOSYS. Some functions are actually named
13981 something starting with __ and the normal name is an alias. */
13982#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13983choke me
13984#else
13985gethostbyname();
13986#endif
13987
13988; return 0; }
13989EOF
13990if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13991 rm -rf conftest*
13992 eval "ac_cv_func_gethostbyname=yes"
13993else
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 rm -rf conftest*
13997 eval "ac_cv_func_gethostbyname=no"
13998fi
13999rm -f conftest*
14000fi
14001
14002if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14003 echo "$ac_t""yes" 1>&6
14004 :
14005else
14006 echo "$ac_t""no" 1>&6
14007fi
14008
14009 if test $ac_cv_func_gethostbyname = no; then
14010 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14011echo "configure:14012: checking for gethostbyname in -lnsl" >&5
14012ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14014 echo $ac_n "(cached) $ac_c" 1>&6
14015else
14016 ac_save_LIBS="$LIBS"
14017LIBS="-lnsl $LIBS"
14018cat > conftest.$ac_ext <<EOF
14019#line 14020 "configure"
14020#include "confdefs.h"
14021/* Override any gcc2 internal prototype to avoid an error. */
14022/* We use char because int might match the return type of a gcc2
14023 builtin and then its argument prototype would still apply. */
14024char gethostbyname();
14025
14026int main() {
14027gethostbyname()
14028; return 0; }
14029EOF
14030if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14031 rm -rf conftest*
14032 eval "ac_cv_lib_$ac_lib_var=yes"
14033else
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14036 rm -rf conftest*
14037 eval "ac_cv_lib_$ac_lib_var=no"
14038fi
14039rm -f conftest*
14040LIBS="$ac_save_LIBS"
14041
14042fi
14043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14046else
14047 echo "$ac_t""no" 1>&6
14048fi
14049
14050 fi
14051
14052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14053 # socket/setsockopt and other routines are undefined under SCO ODT
14054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14055 # on later versions), says simon@lia.di.epfl.ch: it contains
14056 # gethostby* variants that don't use the nameserver (or something).
14057 # -lsocket must be given before -lnsl if both are needed.
14058 # We assume that if connect needs -lnsl, so does gethostbyname.
14059 echo $ac_n "checking for connect""... $ac_c" 1>&6
14060echo "configure:14061: checking for connect" >&5
14061if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063else
14064 cat > conftest.$ac_ext <<EOF
14065#line 14066 "configure"
14066#include "confdefs.h"
14067/* System header to define __stub macros and hopefully few prototypes,
14068 which can conflict with char connect(); below. */
14069#include <assert.h>
14070/* Override any gcc2 internal prototype to avoid an error. */
14071/* We use char because int might match the return type of a gcc2
14072 builtin and then its argument prototype would still apply. */
14073char connect();
14074
14075int main() {
14076
14077/* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080#if defined (__stub_connect) || defined (__stub___connect)
14081choke me
14082#else
14083connect();
14084#endif
14085
14086; return 0; }
14087EOF
14088if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14089 rm -rf conftest*
14090 eval "ac_cv_func_connect=yes"
14091else
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 rm -rf conftest*
14095 eval "ac_cv_func_connect=no"
14096fi
14097rm -f conftest*
14098fi
14099
14100if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14101 echo "$ac_t""yes" 1>&6
14102 :
14103else
14104 echo "$ac_t""no" 1>&6
14105fi
14106
14107 if test $ac_cv_func_connect = no; then
14108 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14109echo "configure:14110: checking for connect in -lsocket" >&5
14110ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
14113else
14114 ac_save_LIBS="$LIBS"
14115LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14116cat > conftest.$ac_ext <<EOF
14117#line 14118 "configure"
14118#include "confdefs.h"
14119/* Override any gcc2 internal prototype to avoid an error. */
14120/* We use char because int might match the return type of a gcc2
14121 builtin and then its argument prototype would still apply. */
14122char connect();
14123
14124int main() {
14125connect()
14126; return 0; }
14127EOF
14128if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14129 rm -rf conftest*
14130 eval "ac_cv_lib_$ac_lib_var=yes"
14131else
14132 echo "configure: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 rm -rf conftest*
14135 eval "ac_cv_lib_$ac_lib_var=no"
14136fi
14137rm -f conftest*
14138LIBS="$ac_save_LIBS"
14139
14140fi
14141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14142 echo "$ac_t""yes" 1>&6
14143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14144else
14145 echo "$ac_t""no" 1>&6
14146fi
14147
14148 fi
14149
14150 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14151 echo $ac_n "checking for remove""... $ac_c" 1>&6
14152echo "configure:14153: checking for remove" >&5
14153if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14154 echo $ac_n "(cached) $ac_c" 1>&6
14155else
14156 cat > conftest.$ac_ext <<EOF
14157#line 14158 "configure"
14158#include "confdefs.h"
14159/* System header to define __stub macros and hopefully few prototypes,
14160 which can conflict with char remove(); below. */
14161#include <assert.h>
14162/* Override any gcc2 internal prototype to avoid an error. */
14163/* We use char because int might match the return type of a gcc2
14164 builtin and then its argument prototype would still apply. */
14165char remove();
14166
14167int main() {
14168
14169/* The GNU C library defines this for functions which it implements
14170 to always fail with ENOSYS. Some functions are actually named
14171 something starting with __ and the normal name is an alias. */
14172#if defined (__stub_remove) || defined (__stub___remove)
14173choke me
14174#else
14175remove();
14176#endif
14177
14178; return 0; }
14179EOF
14180if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14181 rm -rf conftest*
14182 eval "ac_cv_func_remove=yes"
14183else
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14186 rm -rf conftest*
14187 eval "ac_cv_func_remove=no"
14188fi
14189rm -f conftest*
14190fi
14191
14192if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14193 echo "$ac_t""yes" 1>&6
14194 :
14195else
14196 echo "$ac_t""no" 1>&6
14197fi
14198
14199 if test $ac_cv_func_remove = no; then
14200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14201echo "configure:14202: checking for remove in -lposix" >&5
14202ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14204 echo $ac_n "(cached) $ac_c" 1>&6
14205else
14206 ac_save_LIBS="$LIBS"
14207LIBS="-lposix $LIBS"
14208cat > conftest.$ac_ext <<EOF
14209#line 14210 "configure"
14210#include "confdefs.h"
14211/* Override any gcc2 internal prototype to avoid an error. */
14212/* We use char because int might match the return type of a gcc2
14213 builtin and then its argument prototype would still apply. */
14214char remove();
14215
14216int main() {
14217remove()
14218; return 0; }
14219EOF
14220if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14221 rm -rf conftest*
14222 eval "ac_cv_lib_$ac_lib_var=yes"
14223else
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -rf conftest*
14227 eval "ac_cv_lib_$ac_lib_var=no"
14228fi
14229rm -f conftest*
14230LIBS="$ac_save_LIBS"
14231
14232fi
14233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14234 echo "$ac_t""yes" 1>&6
14235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14236else
14237 echo "$ac_t""no" 1>&6
14238fi
14239
14240 fi
14241
14242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14243 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14244echo "configure:14245: checking for shmat" >&5
14245if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14246 echo $ac_n "(cached) $ac_c" 1>&6
14247else
14248 cat > conftest.$ac_ext <<EOF
14249#line 14250 "configure"
14250#include "confdefs.h"
14251/* System header to define __stub macros and hopefully few prototypes,
14252 which can conflict with char shmat(); below. */
14253#include <assert.h>
14254/* Override any gcc2 internal prototype to avoid an error. */
14255/* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14257char shmat();
14258
14259int main() {
14260
14261/* The GNU C library defines this for functions which it implements
14262 to always fail with ENOSYS. Some functions are actually named
14263 something starting with __ and the normal name is an alias. */
14264#if defined (__stub_shmat) || defined (__stub___shmat)
14265choke me
14266#else
14267shmat();
14268#endif
14269
14270; return 0; }
14271EOF
14272if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14273 rm -rf conftest*
14274 eval "ac_cv_func_shmat=yes"
14275else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279 eval "ac_cv_func_shmat=no"
14280fi
14281rm -f conftest*
14282fi
14283
14284if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14285 echo "$ac_t""yes" 1>&6
14286 :
14287else
14288 echo "$ac_t""no" 1>&6
14289fi
14290
14291 if test $ac_cv_func_shmat = no; then
14292 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14293echo "configure:14294: checking for shmat in -lipc" >&5
14294ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14295if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14297else
14298 ac_save_LIBS="$LIBS"
14299LIBS="-lipc $LIBS"
14300cat > conftest.$ac_ext <<EOF
14301#line 14302 "configure"
14302#include "confdefs.h"
14303/* Override any gcc2 internal prototype to avoid an error. */
14304/* We use char because int might match the return type of a gcc2
14305 builtin and then its argument prototype would still apply. */
14306char shmat();
14307
14308int main() {
14309shmat()
14310; return 0; }
14311EOF
14312if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14313 rm -rf conftest*
14314 eval "ac_cv_lib_$ac_lib_var=yes"
14315else
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14318 rm -rf conftest*
14319 eval "ac_cv_lib_$ac_lib_var=no"
14320fi
14321rm -f conftest*
14322LIBS="$ac_save_LIBS"
14323
14324fi
14325if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
14327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14328else
14329 echo "$ac_t""no" 1>&6
14330fi
14331
14332 fi
14333 fi
14334
14335 # Check for libraries that X11R6 Xt/Xaw programs need.
14336 ac_save_LDFLAGS="$LDFLAGS"
14337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14339 # check for ICE first), but we must link in the order -lSM -lICE or
14340 # we get undefined symbols. So assume we have SM if we have ICE.
14341 # These have to be linked with before -lX11, unlike the other
14342 # libraries we check for below, so use a different variable.
14343 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14344 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14345echo "configure:14346: checking for IceConnectionNumber in -lICE" >&5
14346ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349else
14350 ac_save_LIBS="$LIBS"
14351LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14352cat > conftest.$ac_ext <<EOF
14353#line 14354 "configure"
14354#include "confdefs.h"
14355/* Override any gcc2 internal prototype to avoid an error. */
14356/* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14358char IceConnectionNumber();
14359
14360int main() {
14361IceConnectionNumber()
14362; return 0; }
14363EOF
14364if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14365 rm -rf conftest*
14366 eval "ac_cv_lib_$ac_lib_var=yes"
14367else
14368 echo "configure: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 rm -rf conftest*
14371 eval "ac_cv_lib_$ac_lib_var=no"
14372fi
14373rm -f conftest*
14374LIBS="$ac_save_LIBS"
14375
14376fi
14377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14378 echo "$ac_t""yes" 1>&6
14379 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14380else
14381 echo "$ac_t""no" 1>&6
14382fi
14383
14384 LDFLAGS="$ac_save_LDFLAGS"
14385
14386fi
14387
14388
14389 if test "$no_x" = "yes"; then
14390 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14391 fi
14392
14393 GUI_TK_LIBRARY="$X_LIBS"
14394 TOOLKIT_INCLUDE="$X_CFLAGS"
14395 AFMINSTALL=afminstall
14396 COMPILED_X_PROGRAM=0
14397
14398 if test "$wxUSE_NANOX" = "yes"; then
14399 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14400echo "configure:14401: checking for MicroWindows/NanoX distribution" >&5
14401 if test "x$MICROWIN" = x ; then
14402 echo "$ac_t""not found" 1>&6
14403 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14404 else
14405 echo "$ac_t""$MICROWIN" 1>&6
14406 cat >> confdefs.h <<\EOF
14407#define wxUSE_NANOX 1
14408EOF
14409
14410 fi
14411 fi
14412
14413 xpm_link=
14414 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14415echo "configure:14416: checking for Xpm library" >&5
14416
14417ac_find_libraries=
14418for ac_dir in $SEARCH_LIB /usr/lib;
14419 do
14420 for ac_extension in a so sl dylib; do
14421 if test -f "$ac_dir/libXpm.$ac_extension"; then
14422 ac_find_libraries=$ac_dir
14423 break 2
14424 fi
14425 done
14426 done
14427
14428 if test "$ac_find_libraries" != "" ; then
14429
14430 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14431 result=$?
14432 if test $result = 0; then
14433 ac_path_to_link=""
14434 else
14435 ac_path_to_link=" -L$ac_find_libraries"
14436 fi
14437
14438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14439 xpm_link=" -lXpm"
14440 cat >> confdefs.h <<\EOF
14441#define wxHAVE_LIB_XPM 1
14442EOF
14443
14444 echo "$ac_t""found at $ac_find_libraries" 1>&6
14445 else
14446 cat > conftest.$ac_ext <<EOF
14447#line 14448 "configure"
14448#include "confdefs.h"
14449
14450 #include <X11/xpm.h>
14451
14452int main() {
14453
14454 int version;
14455 version = XpmLibraryVersion();
14456
14457; return 0; }
14458EOF
14459if { (eval echo configure:14460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14460 rm -rf conftest*
14461
14462 xpm_link=" -lXpm"
14463 cat >> confdefs.h <<\EOF
14464#define wxHAVE_LIB_XPM 1
14465EOF
14466
14467 echo "$ac_t""found in default search path" 1>&6
14468 COMPILED_X_PROGRAM=0
14469
14470else
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14473 rm -rf conftest*
14474
14475 echo "$ac_t""no" 1>&6
14476 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14477
14478
14479fi
14480rm -f conftest*
14481 fi
14482
14483 if test "$wxUSE_UNICODE" = "yes"; then
14484
14485 succeeded=no
14486
14487 if test -z "$PKG_CONFIG"; then
14488 # Extract the first word of "pkg-config", so it can be a program name with args.
14489set dummy pkg-config; ac_word=$2
14490echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14491echo "configure:14492: checking for $ac_word" >&5
14492if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14493 echo $ac_n "(cached) $ac_c" 1>&6
14494else
14495 case "$PKG_CONFIG" in
14496 /*)
14497 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14498 ;;
14499 ?:/*)
14500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14501 ;;
14502 *)
14503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14504 ac_dummy="$PATH"
14505 for ac_dir in $ac_dummy; do
14506 test -z "$ac_dir" && ac_dir=.
14507 if test -f $ac_dir/$ac_word; then
14508 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14509 break
14510 fi
14511 done
14512 IFS="$ac_save_ifs"
14513 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14514 ;;
14515esac
14516fi
14517PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14518if test -n "$PKG_CONFIG"; then
14519 echo "$ac_t""$PKG_CONFIG" 1>&6
14520else
14521 echo "$ac_t""no" 1>&6
14522fi
14523
14524 fi
14525
14526 if test "$PKG_CONFIG" = "no" ; then
14527 echo "*** The pkg-config script could not be found. Make sure it is"
14528 echo "*** in your path, or set the PKG_CONFIG environment variable"
14529 echo "*** to the full path to pkg-config."
14530 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14531 else
14532 PKG_CONFIG_MIN_VERSION=0.9.0
14533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14534 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14535echo "configure:14536: checking for pangox" >&5
14536
14537 if $PKG_CONFIG --exists "pangox" ; then
14538 echo "$ac_t""yes" 1>&6
14539 succeeded=yes
14540
14541 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14542echo "configure:14543: checking PANGOX_CFLAGS" >&5
14543 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14544 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14545
14546 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14547echo "configure:14548: checking PANGOX_LIBS" >&5
14548 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14549 echo "$ac_t""$PANGOX_LIBS" 1>&6
14550 else
14551 PANGOX_CFLAGS=""
14552 PANGOX_LIBS=""
14553 ## If we have a custom action on failure, don't print errors, but
14554 ## do set a variable so people can do so.
14555 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14556
14557 fi
14558
14559
14560
14561 else
14562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14564 fi
14565 fi
14566
14567 if test $succeeded = yes; then
14568
14569 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14570 LIBS="$LIBS $PANGOX_LIBS"
14571
14572 else
14573
14574 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14575
14576
14577 fi
14578
14579
14580 succeeded=no
14581
14582 if test -z "$PKG_CONFIG"; then
14583 # Extract the first word of "pkg-config", so it can be a program name with args.
14584set dummy pkg-config; ac_word=$2
14585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14586echo "configure:14587: checking for $ac_word" >&5
14587if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14589else
14590 case "$PKG_CONFIG" in
14591 /*)
14592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14593 ;;
14594 ?:/*)
14595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14596 ;;
14597 *)
14598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14599 ac_dummy="$PATH"
14600 for ac_dir in $ac_dummy; do
14601 test -z "$ac_dir" && ac_dir=.
14602 if test -f $ac_dir/$ac_word; then
14603 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14604 break
14605 fi
14606 done
14607 IFS="$ac_save_ifs"
14608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14609 ;;
14610esac
14611fi
14612PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14613if test -n "$PKG_CONFIG"; then
14614 echo "$ac_t""$PKG_CONFIG" 1>&6
14615else
14616 echo "$ac_t""no" 1>&6
14617fi
14618
14619 fi
14620
14621 if test "$PKG_CONFIG" = "no" ; then
14622 echo "*** The pkg-config script could not be found. Make sure it is"
14623 echo "*** in your path, or set the PKG_CONFIG environment variable"
14624 echo "*** to the full path to pkg-config."
14625 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14626 else
14627 PKG_CONFIG_MIN_VERSION=0.9.0
14628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14629 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14630echo "configure:14631: checking for pangoft2" >&5
14631
14632 if $PKG_CONFIG --exists "pangoft2" ; then
14633 echo "$ac_t""yes" 1>&6
14634 succeeded=yes
14635
14636 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14637echo "configure:14638: checking PANGOFT2_CFLAGS" >&5
14638 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14639 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14640
14641 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14642echo "configure:14643: checking PANGOFT2_LIBS" >&5
14643 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14644 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14645 else
14646 PANGOFT2_CFLAGS=""
14647 PANGOFT2_LIBS=""
14648 ## If we have a custom action on failure, don't print errors, but
14649 ## do set a variable so people can do so.
14650 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14651
14652 fi
14653
14654
14655
14656 else
14657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14659 fi
14660 fi
14661
14662 if test $succeeded = yes; then
14663
14664 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14665 LIBS="$LIBS $PANGOFT2_LIBS"
14666
14667 else
14668
14669 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14670 wxUSE_PRINTING_ARCHITECTURE="no"
14671
14672
14673 fi
14674
14675
14676 succeeded=no
14677
14678 if test -z "$PKG_CONFIG"; then
14679 # Extract the first word of "pkg-config", so it can be a program name with args.
14680set dummy pkg-config; ac_word=$2
14681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14682echo "configure:14683: checking for $ac_word" >&5
14683if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14684 echo $ac_n "(cached) $ac_c" 1>&6
14685else
14686 case "$PKG_CONFIG" in
14687 /*)
14688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14689 ;;
14690 ?:/*)
14691 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14692 ;;
14693 *)
14694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14695 ac_dummy="$PATH"
14696 for ac_dir in $ac_dummy; do
14697 test -z "$ac_dir" && ac_dir=.
14698 if test -f $ac_dir/$ac_word; then
14699 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14700 break
14701 fi
14702 done
14703 IFS="$ac_save_ifs"
14704 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14705 ;;
14706esac
14707fi
14708PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14709if test -n "$PKG_CONFIG"; then
14710 echo "$ac_t""$PKG_CONFIG" 1>&6
14711else
14712 echo "$ac_t""no" 1>&6
14713fi
14714
14715 fi
14716
14717 if test "$PKG_CONFIG" = "no" ; then
14718 echo "*** The pkg-config script could not be found. Make sure it is"
14719 echo "*** in your path, or set the PKG_CONFIG environment variable"
14720 echo "*** to the full path to pkg-config."
14721 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14722 else
14723 PKG_CONFIG_MIN_VERSION=0.9.0
14724 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14725 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14726echo "configure:14727: checking for pangoxft" >&5
14727
14728 if $PKG_CONFIG --exists "pangoxft" ; then
14729 echo "$ac_t""yes" 1>&6
14730 succeeded=yes
14731
14732 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14733echo "configure:14734: checking PANGOXFT_CFLAGS" >&5
14734 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14735 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14736
14737 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14738echo "configure:14739: checking PANGOXFT_LIBS" >&5
14739 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14740 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14741 else
14742 PANGOXFT_CFLAGS=""
14743 PANGOXFT_LIBS=""
14744 ## If we have a custom action on failure, don't print errors, but
14745 ## do set a variable so people can do so.
14746 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14747
14748 fi
14749
14750
14751
14752 else
14753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14755 fi
14756 fi
14757
14758 if test $succeeded = yes; then
14759
14760 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14761 LIBS="$LIBS $PANGOXFT_LIBS"
14762
14763 else
14764
14765 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14766
14767
14768 fi
14769
14770 fi
14771
14772 wxUSE_UNIVERSAL="yes"
14773
14774 if test "$wxUSE_NANOX" = "yes"; then
14775 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14776 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14777 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14778 else
14779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14780 fi
14781
14782 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14783 TOOLKIT=X11
14784 GUIDIST=X11_DIST
14785 fi
14786
14787 if test "$wxUSE_MOTIF" = 1; then
14788 if test "$no_x" = yes; then
14789 # Not all programs may use this symbol, but it does not hurt to define it.
14790 cat >> confdefs.h <<\EOF
14791#define X_DISPLAY_MISSING 1
14792EOF
14793
14794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14795else
14796 if test -n "$x_includes"; then
14797 X_CFLAGS="$X_CFLAGS -I$x_includes"
14798 fi
14799
14800 # It would also be nice to do this for all -L options, not just this one.
14801 if test -n "$x_libraries"; then
14802 X_LIBS="$X_LIBS -L$x_libraries"
14803 # For Solaris; some versions of Sun CC require a space after -R and
14804 # others require no space. Words are not sufficient . . . .
14805 case "`(uname -sr) 2>/dev/null`" in
14806 "SunOS 5"*)
14807 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14808echo "configure:14809: checking whether -R must be followed by a space" >&5
14809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14810 cat > conftest.$ac_ext <<EOF
14811#line 14812 "configure"
14812#include "confdefs.h"
14813
14814int main() {
14815
14816; return 0; }
14817EOF
14818if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14819 rm -rf conftest*
14820 ac_R_nospace=yes
14821else
14822 echo "configure: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 rm -rf conftest*
14825 ac_R_nospace=no
14826fi
14827rm -f conftest*
14828 if test $ac_R_nospace = yes; then
14829 echo "$ac_t""no" 1>&6
14830 X_LIBS="$X_LIBS -R$x_libraries"
14831 else
14832 LIBS="$ac_xsave_LIBS -R $x_libraries"
14833 cat > conftest.$ac_ext <<EOF
14834#line 14835 "configure"
14835#include "confdefs.h"
14836
14837int main() {
14838
14839; return 0; }
14840EOF
14841if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14842 rm -rf conftest*
14843 ac_R_space=yes
14844else
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 ac_R_space=no
14849fi
14850rm -f conftest*
14851 if test $ac_R_space = yes; then
14852 echo "$ac_t""yes" 1>&6
14853 X_LIBS="$X_LIBS -R $x_libraries"
14854 else
14855 echo "$ac_t""neither works" 1>&6
14856 fi
14857 fi
14858 LIBS="$ac_xsave_LIBS"
14859 esac
14860 fi
14861
14862 # Check for system-dependent libraries X programs must link with.
14863 # Do this before checking for the system-independent R6 libraries
14864 # (-lICE), since we may need -lsocket or whatever for X linking.
14865
14866 if test "$ISC" = yes; then
14867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14868 else
14869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14870 # libraries were built with DECnet support. And karl@cs.umb.edu says
14871 # the Alpha needs dnet_stub (dnet does not exist).
14872 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14873echo "configure:14874: checking for dnet_ntoa in -ldnet" >&5
14874ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14875if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14877else
14878 ac_save_LIBS="$LIBS"
14879LIBS="-ldnet $LIBS"
14880cat > conftest.$ac_ext <<EOF
14881#line 14882 "configure"
14882#include "confdefs.h"
14883/* Override any gcc2 internal prototype to avoid an error. */
14884/* We use char because int might match the return type of a gcc2
14885 builtin and then its argument prototype would still apply. */
14886char dnet_ntoa();
14887
14888int main() {
14889dnet_ntoa()
14890; return 0; }
14891EOF
14892if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14893 rm -rf conftest*
14894 eval "ac_cv_lib_$ac_lib_var=yes"
14895else
14896 echo "configure: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14898 rm -rf conftest*
14899 eval "ac_cv_lib_$ac_lib_var=no"
14900fi
14901rm -f conftest*
14902LIBS="$ac_save_LIBS"
14903
14904fi
14905if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14906 echo "$ac_t""yes" 1>&6
14907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14908else
14909 echo "$ac_t""no" 1>&6
14910fi
14911
14912 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14913 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14914echo "configure:14915: checking for dnet_ntoa in -ldnet_stub" >&5
14915ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14918else
14919 ac_save_LIBS="$LIBS"
14920LIBS="-ldnet_stub $LIBS"
14921cat > conftest.$ac_ext <<EOF
14922#line 14923 "configure"
14923#include "confdefs.h"
14924/* Override any gcc2 internal prototype to avoid an error. */
14925/* We use char because int might match the return type of a gcc2
14926 builtin and then its argument prototype would still apply. */
14927char dnet_ntoa();
14928
14929int main() {
14930dnet_ntoa()
14931; return 0; }
14932EOF
14933if { (eval echo configure:14934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14934 rm -rf conftest*
14935 eval "ac_cv_lib_$ac_lib_var=yes"
14936else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940 eval "ac_cv_lib_$ac_lib_var=no"
14941fi
14942rm -f conftest*
14943LIBS="$ac_save_LIBS"
14944
14945fi
14946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14947 echo "$ac_t""yes" 1>&6
14948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14949else
14950 echo "$ac_t""no" 1>&6
14951fi
14952
14953 fi
14954
14955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14956 # to get the SysV transport functions.
14957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14958 # needs -lnsl.
14959 # The nsl library prevents programs from opening the X display
14960 # on Irix 5.2, according to dickey@clark.net.
14961 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14962echo "configure:14963: checking for gethostbyname" >&5
14963if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14964 echo $ac_n "(cached) $ac_c" 1>&6
14965else
14966 cat > conftest.$ac_ext <<EOF
14967#line 14968 "configure"
14968#include "confdefs.h"
14969/* System header to define __stub macros and hopefully few prototypes,
14970 which can conflict with char gethostbyname(); below. */
14971#include <assert.h>
14972/* Override any gcc2 internal prototype to avoid an error. */
14973/* We use char because int might match the return type of a gcc2
14974 builtin and then its argument prototype would still apply. */
14975char gethostbyname();
14976
14977int main() {
14978
14979/* The GNU C library defines this for functions which it implements
14980 to always fail with ENOSYS. Some functions are actually named
14981 something starting with __ and the normal name is an alias. */
14982#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14983choke me
14984#else
14985gethostbyname();
14986#endif
14987
14988; return 0; }
14989EOF
14990if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14991 rm -rf conftest*
14992 eval "ac_cv_func_gethostbyname=yes"
14993else
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 rm -rf conftest*
14997 eval "ac_cv_func_gethostbyname=no"
14998fi
14999rm -f conftest*
15000fi
15001
15002if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15003 echo "$ac_t""yes" 1>&6
15004 :
15005else
15006 echo "$ac_t""no" 1>&6
15007fi
15008
15009 if test $ac_cv_func_gethostbyname = no; then
15010 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
15011echo "configure:15012: checking for gethostbyname in -lnsl" >&5
15012ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15014 echo $ac_n "(cached) $ac_c" 1>&6
15015else
15016 ac_save_LIBS="$LIBS"
15017LIBS="-lnsl $LIBS"
15018cat > conftest.$ac_ext <<EOF
15019#line 15020 "configure"
15020#include "confdefs.h"
15021/* Override any gcc2 internal prototype to avoid an error. */
15022/* We use char because int might match the return type of a gcc2
15023 builtin and then its argument prototype would still apply. */
15024char gethostbyname();
15025
15026int main() {
15027gethostbyname()
15028; return 0; }
15029EOF
15030if { (eval echo configure:15031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15031 rm -rf conftest*
15032 eval "ac_cv_lib_$ac_lib_var=yes"
15033else
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 rm -rf conftest*
15037 eval "ac_cv_lib_$ac_lib_var=no"
15038fi
15039rm -f conftest*
15040LIBS="$ac_save_LIBS"
15041
15042fi
15043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15044 echo "$ac_t""yes" 1>&6
15045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15046else
15047 echo "$ac_t""no" 1>&6
15048fi
15049
15050 fi
15051
15052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15053 # socket/setsockopt and other routines are undefined under SCO ODT
15054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15055 # on later versions), says simon@lia.di.epfl.ch: it contains
15056 # gethostby* variants that don't use the nameserver (or something).
15057 # -lsocket must be given before -lnsl if both are needed.
15058 # We assume that if connect needs -lnsl, so does gethostbyname.
15059 echo $ac_n "checking for connect""... $ac_c" 1>&6
15060echo "configure:15061: checking for connect" >&5
15061if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15062 echo $ac_n "(cached) $ac_c" 1>&6
15063else
15064 cat > conftest.$ac_ext <<EOF
15065#line 15066 "configure"
15066#include "confdefs.h"
15067/* System header to define __stub macros and hopefully few prototypes,
15068 which can conflict with char connect(); below. */
15069#include <assert.h>
15070/* Override any gcc2 internal prototype to avoid an error. */
15071/* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15073char connect();
15074
15075int main() {
15076
15077/* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080#if defined (__stub_connect) || defined (__stub___connect)
15081choke me
15082#else
15083connect();
15084#endif
15085
15086; return 0; }
15087EOF
15088if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15089 rm -rf conftest*
15090 eval "ac_cv_func_connect=yes"
15091else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 eval "ac_cv_func_connect=no"
15096fi
15097rm -f conftest*
15098fi
15099
15100if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15101 echo "$ac_t""yes" 1>&6
15102 :
15103else
15104 echo "$ac_t""no" 1>&6
15105fi
15106
15107 if test $ac_cv_func_connect = no; then
15108 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15109echo "configure:15110: checking for connect in -lsocket" >&5
15110ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15112 echo $ac_n "(cached) $ac_c" 1>&6
15113else
15114 ac_save_LIBS="$LIBS"
15115LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15116cat > conftest.$ac_ext <<EOF
15117#line 15118 "configure"
15118#include "confdefs.h"
15119/* Override any gcc2 internal prototype to avoid an error. */
15120/* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122char connect();
15123
15124int main() {
15125connect()
15126; return 0; }
15127EOF
15128if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15129 rm -rf conftest*
15130 eval "ac_cv_lib_$ac_lib_var=yes"
15131else
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15134 rm -rf conftest*
15135 eval "ac_cv_lib_$ac_lib_var=no"
15136fi
15137rm -f conftest*
15138LIBS="$ac_save_LIBS"
15139
15140fi
15141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15142 echo "$ac_t""yes" 1>&6
15143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15144else
15145 echo "$ac_t""no" 1>&6
15146fi
15147
15148 fi
15149
15150 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15151 echo $ac_n "checking for remove""... $ac_c" 1>&6
15152echo "configure:15153: checking for remove" >&5
15153if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15155else
15156 cat > conftest.$ac_ext <<EOF
15157#line 15158 "configure"
15158#include "confdefs.h"
15159/* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char remove(); below. */
15161#include <assert.h>
15162/* Override any gcc2 internal prototype to avoid an error. */
15163/* We use char because int might match the return type of a gcc2
15164 builtin and then its argument prototype would still apply. */
15165char remove();
15166
15167int main() {
15168
15169/* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172#if defined (__stub_remove) || defined (__stub___remove)
15173choke me
15174#else
15175remove();
15176#endif
15177
15178; return 0; }
15179EOF
15180if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 rm -rf conftest*
15182 eval "ac_cv_func_remove=yes"
15183else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_func_remove=no"
15188fi
15189rm -f conftest*
15190fi
15191
15192if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 :
15195else
15196 echo "$ac_t""no" 1>&6
15197fi
15198
15199 if test $ac_cv_func_remove = no; then
15200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15201echo "configure:15202: checking for remove in -lposix" >&5
15202ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15204 echo $ac_n "(cached) $ac_c" 1>&6
15205else
15206 ac_save_LIBS="$LIBS"
15207LIBS="-lposix $LIBS"
15208cat > conftest.$ac_ext <<EOF
15209#line 15210 "configure"
15210#include "confdefs.h"
15211/* Override any gcc2 internal prototype to avoid an error. */
15212/* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15214char remove();
15215
15216int main() {
15217remove()
15218; return 0; }
15219EOF
15220if { (eval echo configure:15221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15221 rm -rf conftest*
15222 eval "ac_cv_lib_$ac_lib_var=yes"
15223else
15224 echo "configure: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15226 rm -rf conftest*
15227 eval "ac_cv_lib_$ac_lib_var=no"
15228fi
15229rm -f conftest*
15230LIBS="$ac_save_LIBS"
15231
15232fi
15233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15234 echo "$ac_t""yes" 1>&6
15235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15236else
15237 echo "$ac_t""no" 1>&6
15238fi
15239
15240 fi
15241
15242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15243 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15244echo "configure:15245: checking for shmat" >&5
15245if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15246 echo $ac_n "(cached) $ac_c" 1>&6
15247else
15248 cat > conftest.$ac_ext <<EOF
15249#line 15250 "configure"
15250#include "confdefs.h"
15251/* System header to define __stub macros and hopefully few prototypes,
15252 which can conflict with char shmat(); below. */
15253#include <assert.h>
15254/* Override any gcc2 internal prototype to avoid an error. */
15255/* We use char because int might match the return type of a gcc2
15256 builtin and then its argument prototype would still apply. */
15257char shmat();
15258
15259int main() {
15260
15261/* The GNU C library defines this for functions which it implements
15262 to always fail with ENOSYS. Some functions are actually named
15263 something starting with __ and the normal name is an alias. */
15264#if defined (__stub_shmat) || defined (__stub___shmat)
15265choke me
15266#else
15267shmat();
15268#endif
15269
15270; return 0; }
15271EOF
15272if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15273 rm -rf conftest*
15274 eval "ac_cv_func_shmat=yes"
15275else
15276 echo "configure: failed program was:" >&5
15277 cat conftest.$ac_ext >&5
15278 rm -rf conftest*
15279 eval "ac_cv_func_shmat=no"
15280fi
15281rm -f conftest*
15282fi
15283
15284if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15285 echo "$ac_t""yes" 1>&6
15286 :
15287else
15288 echo "$ac_t""no" 1>&6
15289fi
15290
15291 if test $ac_cv_func_shmat = no; then
15292 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15293echo "configure:15294: checking for shmat in -lipc" >&5
15294ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15295if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15296 echo $ac_n "(cached) $ac_c" 1>&6
15297else
15298 ac_save_LIBS="$LIBS"
15299LIBS="-lipc $LIBS"
15300cat > conftest.$ac_ext <<EOF
15301#line 15302 "configure"
15302#include "confdefs.h"
15303/* Override any gcc2 internal prototype to avoid an error. */
15304/* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15306char shmat();
15307
15308int main() {
15309shmat()
15310; return 0; }
15311EOF
15312if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15313 rm -rf conftest*
15314 eval "ac_cv_lib_$ac_lib_var=yes"
15315else
15316 echo "configure: failed program was:" >&5
15317 cat conftest.$ac_ext >&5
15318 rm -rf conftest*
15319 eval "ac_cv_lib_$ac_lib_var=no"
15320fi
15321rm -f conftest*
15322LIBS="$ac_save_LIBS"
15323
15324fi
15325if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15326 echo "$ac_t""yes" 1>&6
15327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15328else
15329 echo "$ac_t""no" 1>&6
15330fi
15331
15332 fi
15333 fi
15334
15335 # Check for libraries that X11R6 Xt/Xaw programs need.
15336 ac_save_LDFLAGS="$LDFLAGS"
15337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15339 # check for ICE first), but we must link in the order -lSM -lICE or
15340 # we get undefined symbols. So assume we have SM if we have ICE.
15341 # These have to be linked with before -lX11, unlike the other
15342 # libraries we check for below, so use a different variable.
15343 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15344 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15345echo "configure:15346: checking for IceConnectionNumber in -lICE" >&5
15346ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15348 echo $ac_n "(cached) $ac_c" 1>&6
15349else
15350 ac_save_LIBS="$LIBS"
15351LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15352cat > conftest.$ac_ext <<EOF
15353#line 15354 "configure"
15354#include "confdefs.h"
15355/* Override any gcc2 internal prototype to avoid an error. */
15356/* We use char because int might match the return type of a gcc2
15357 builtin and then its argument prototype would still apply. */
15358char IceConnectionNumber();
15359
15360int main() {
15361IceConnectionNumber()
15362; return 0; }
15363EOF
15364if { (eval echo configure:15365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15365 rm -rf conftest*
15366 eval "ac_cv_lib_$ac_lib_var=yes"
15367else
15368 echo "configure: failed program was:" >&5
15369 cat conftest.$ac_ext >&5
15370 rm -rf conftest*
15371 eval "ac_cv_lib_$ac_lib_var=no"
15372fi
15373rm -f conftest*
15374LIBS="$ac_save_LIBS"
15375
15376fi
15377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15378 echo "$ac_t""yes" 1>&6
15379 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15380else
15381 echo "$ac_t""no" 1>&6
15382fi
15383
15384 LDFLAGS="$ac_save_LDFLAGS"
15385
15386fi
15387
15388
15389 if test "$no_x" = "yes"; then
15390 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15391 fi
15392
15393 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15394 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15395 AFMINSTALL=afminstall
15396 COMPILED_X_PROGRAM=0
15397
15398 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15399echo "configure:15400: checking for Motif/Lesstif headers" >&5
15400
15401ac_find_includes=
15402for ac_dir in $SEARCH_INCLUDE /usr/include;
15403 do
15404 if test -f "$ac_dir/Xm/Xm.h"; then
15405 ac_find_includes=$ac_dir
15406 break
15407 fi
15408 done
15409
15410 if test "$ac_find_includes" != "" ; then
15411 echo "$ac_t""found in $ac_find_includes" 1>&6
15412
15413 if test "x$ac_find_includes" = "x/usr/include"; then
15414 ac_path_to_include=""
15415 else
15416 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15417 result=$?
15418 if test $result = 0; then
15419 ac_path_to_include=""
15420 else
15421 ac_path_to_include=" -I$ac_find_includes"
15422 fi
15423 fi
15424
15425 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15426 else
15427 cat > conftest.$ac_ext <<EOF
15428#line 15429 "configure"
15429#include "confdefs.h"
15430
15431 #include <Xm/Xm.h>
15432
15433int main() {
15434
15435 int version;
15436 version = xmUseVersion;
15437
15438; return 0; }
15439EOF
15440if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15441 rm -rf conftest*
15442
15443 echo "$ac_t""found in default search path" 1>&6
15444 COMPILED_X_PROGRAM=1
15445
15446else
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15449 rm -rf conftest*
15450
15451 echo "$ac_t""no" 1>&6
15452 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15453
15454
15455fi
15456rm -f conftest*
15457 fi
15458
15459 if test "$COMPILED_X_PROGRAM" = 0; then
15460 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15461echo "configure:15462: checking for Motif/Lesstif library" >&5
15462
15463ac_find_libraries=
15464for ac_dir in $SEARCH_LIB /usr/lib;
15465 do
15466 for ac_extension in a so sl dylib; do
15467 if test -f "$ac_dir/libXm.$ac_extension"; then
15468 ac_find_libraries=$ac_dir
15469 break 2
15470 fi
15471 done
15472 done
15473
15474 if test "$ac_find_libraries" != "" ; then
15475 echo "$ac_t""found at $ac_find_libraries" 1>&6
15476
15477
15478 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15479 result=$?
15480 if test $result = 0; then
15481 ac_path_to_link=""
15482 else
15483 ac_path_to_link=" -L$ac_find_libraries"
15484 fi
15485
15486 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15487 else
15488 save_CFLAGS=$CFLAGS
15489 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15490
15491 cat > conftest.$ac_ext <<EOF
15492#line 15493 "configure"
15493#include "confdefs.h"
15494
15495 #include <Xm/Xm.h>
15496
15497int main() {
15498
15499 int version;
15500 version = xmUseVersion;
15501
15502; return 0; }
15503EOF
15504if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15505 rm -rf conftest*
15506
15507 echo "$ac_t""found in default search path" 1>&6
15508 COMPILED_X_PROGRAM=1
15509
15510else
15511 echo "configure: failed program was:" >&5
15512 cat conftest.$ac_ext >&5
15513 rm -rf conftest*
15514
15515 echo "$ac_t""no" 1>&6
15516 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15517
15518
15519fi
15520rm -f conftest*
15521
15522 CFLAGS=$save_CFLAGS
15523 fi
15524 fi
15525
15526 xpm_link=
15527 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15528echo "configure:15529: checking for Xpm library" >&5
15529
15530ac_find_libraries=
15531for ac_dir in $SEARCH_LIB /usr/lib;
15532 do
15533 for ac_extension in a so sl dylib; do
15534 if test -f "$ac_dir/libXpm.$ac_extension"; then
15535 ac_find_libraries=$ac_dir
15536 break 2
15537 fi
15538 done
15539 done
15540
15541 if test "$ac_find_libraries" != "" ; then
15542
15543 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15544 result=$?
15545 if test $result = 0; then
15546 ac_path_to_link=""
15547 else
15548 ac_path_to_link=" -L$ac_find_libraries"
15549 fi
15550
15551 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15552
15553 xpm_link=" -lXpm"
15554 cat >> confdefs.h <<\EOF
15555#define wxHAVE_LIB_XPM 1
15556EOF
15557
15558 echo "$ac_t""found at $ac_find_libraries" 1>&6
15559 else
15560 save_CFLAGS=$CFLAGS
15561 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15562
15563 cat > conftest.$ac_ext <<EOF
15564#line 15565 "configure"
15565#include "confdefs.h"
15566
15567 #include <X11/xpm.h>
15568
15569int main() {
15570
15571 int version;
15572 version = XpmLibraryVersion();
15573
15574; return 0; }
15575EOF
15576if { (eval echo configure:15577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15577 rm -rf conftest*
15578
15579 xpm_link=" -lXpm"
15580 cat >> confdefs.h <<\EOF
15581#define wxHAVE_LIB_XPM 1
15582EOF
15583
15584 echo "$ac_t""found in default search path" 1>&6
15585 COMPILED_X_PROGRAM=0
15586
15587else
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 rm -rf conftest*
15591
15592 echo "$ac_t""no" 1>&6
15593 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15594
15595
15596fi
15597rm -f conftest*
15598
15599 CFLAGS=$save_CFLAGS
15600 fi
15601
15602 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15603echo "configure:15604: checking if we need -lXp and/or -lSM -lICE" >&5
15604 libp_link=""
15605 libsm_ice_link=""
15606 libs_found=0
15607 for libp in "" " -lXp"; do
15608 if test "$libs_found" = "0"; then
15609 for libsm_ice in " -lSM -lICE"; do
15610 if test "$libs_found" = "0"; then
15611 save_LIBS="$LIBS"
15612 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15613 save_CFLAGS=$CFLAGS
15614 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15615
15616 cat > conftest.$ac_ext <<EOF
15617#line 15618 "configure"
15618#include "confdefs.h"
15619
15620 #include <Xm/Xm.h>
15621 #include <Xm/List.h>
15622
15623int main() {
15624
15625 XmString string = NULL;
15626 Widget w = NULL;
15627 int position = 0;
15628 XmListAddItem(w, string, position);
15629
15630; return 0; }
15631EOF
15632if { (eval echo configure:15633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15633 rm -rf conftest*
15634
15635 libp_link="$libp"
15636 libsm_ice_link="$libsm_ice"
15637 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15638 libs_found=1
15639
15640else
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644
15645
15646fi
15647rm -f conftest*
15648
15649 LIBS="$save_LIBS"
15650 CFLAGS=$save_CFLAGS
15651 fi
15652 done
15653 fi
15654 done
15655
15656 if test "$libs_found" = "0"; then
15657 echo "$ac_t""can't find the right libraries" 1>&6
15658 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15659 fi
15660
15661 save_CFLAGS=$CFLAGS
15662 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15663 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15664echo "configure:15665: checking for Motif 2" >&5
15665 cat > conftest.$ac_ext <<EOF
15666#line 15667 "configure"
15667#include "confdefs.h"
15668
15669 #include <Xm/Xm.h>
15670
15671int main() {
15672
15673 #if XmVersion < 2000
15674 #error "Not Motif 2"
15675 #endif
15676
15677; return 0; }
15678EOF
15679if { (eval echo configure:15680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15680 rm -rf conftest*
15681
15682 cat >> confdefs.h <<\EOF
15683#define __WXMOTIF20__ 1
15684EOF
15685
15686 echo "$ac_t""found" 1>&6
15687
15688else
15689 echo "configure: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 rm -rf conftest*
15692
15693 cat >> confdefs.h <<\EOF
15694#define __WXMOTIF20__ 0
15695EOF
15696
15697 echo "$ac_t""not found" 1>&6
15698
15699fi
15700rm -f conftest*
15701 CFLAGS=$save_CFLAGS
15702
15703 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15704 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15705 TOOLKIT=MOTIF
15706 GUIDIST=MOTIF_DIST
15707 fi
15708
15709 if test "$wxUSE_MAC" = 1; then
15710 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15711
15712 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15713 TOOLKIT=MAC
15714 GUIDIST=MACX_DIST
15715 fi
15716
15717 if test "$wxUSE_PM" = 1; then
15718 TOOLKIT=PM
15719 GUIDIST=GTK_DIST
15720 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15721 wxUSE_PROLOGIO="yes"
15722 wxUSE_RESOURCES="yes"
15723 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15724 wxUSE_THREADS="no"
15725 fi
15726
15727 if test "$TOOLKIT" = "PM" ; then
15728 TOOLKIT_DIR="os2"
15729 else
15730 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15731 fi
15732
15733 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15734
15735 if test "$wxUSE_UNIVERSAL" = "yes"; then
15736 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15737
15738 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15739 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15740
15741 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15742 if test "$wxUSE_X11" = 1; then
15743 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15744 else
15745 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15746 fi
15747 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15748 WIDGET_SET=univ
15749 else
15750 ALL_OBJECTS="\$(GUIOBJS)"
15751 ALL_SOURCES="\$(ALL_SOURCES)"
15752 ALL_HEADERS="\$(ALL_HEADERS)"
15753 fi
15754
15755 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15756
15757 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15758 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15759 fi
15760
15761 if test "$wxUSE_HTML" = "yes"; then
15762 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15763 fi
15764
15765 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15766 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15767 fi
15768 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15769 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15770 fi
15771 if test "$wxUSE_LIBPNG" = "builtin" ; then
15772 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15773 fi
15774
15775 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15776 DISTDIR="wx\$(TOOLKIT)"
15777else
15778 USE_GUI=0
15779
15780 TOOLKIT_DIR="base"
15781
15782 if test "$USE_WIN32" = 1 ; then
15783 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15784 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15785
15786 TOOLKIT="MSW"
15787 else
15788 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15789 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15790 fi
15791
15792 ALL_SOURCES="\$(ALL_SOURCES)"
15793 ALL_HEADERS="\$(ALL_HEADERS)"
15794
15795 PORT_FILES="\${top_srcdir}/src/files.lst"
15796
15797 GUIDIST="BASE_DIST"
15798 DISTDIR="wxBase"
15799fi
15800
15801
15802if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15803 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15804fi
15805
15806if test "$wxUSE_REGEX" = "builtin" ; then
15807 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15808fi
15809if test "$wxUSE_ZLIB" = "builtin" ; then
15810 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15811fi
15812
15813
15814if test "$wxUSE_OPENGL" = "yes"; then
15815 if test "$wxUSE_MAC" = 1; then
15816 OPENGL_LIBS="-framework OpenGL -framework AGL"
15817 elif test "$wxUSE_MSW" = 1; then
15818 OPENGL_LIBS="-lopengl32 -lglu32"
15819 else
15820 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15821echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15822echo "configure:15823: checking for GL/gl.h" >&5
15823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
15825else
15826 cat > conftest.$ac_ext <<EOF
15827#line 15828 "configure"
15828#include "confdefs.h"
15829#include <GL/gl.h>
15830EOF
15831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15832{ (eval echo configure:15833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15834if test -z "$ac_err"; then
15835 rm -rf conftest*
15836 eval "ac_cv_header_$ac_safe=yes"
15837else
15838 echo "$ac_err" >&5
15839 echo "configure: failed program was:" >&5
15840 cat conftest.$ac_ext >&5
15841 rm -rf conftest*
15842 eval "ac_cv_header_$ac_safe=no"
15843fi
15844rm -f conftest*
15845fi
15846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15847 echo "$ac_t""yes" 1>&6
15848
15849 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15850echo "configure:15851: checking for -lGL" >&5
15851
15852ac_find_libraries=
15853for ac_dir in $SEARCH_LIB /usr/lib;
15854 do
15855 for ac_extension in a so sl dylib; do
15856 if test -f "$ac_dir/libGL.$ac_extension"; then
15857 ac_find_libraries=$ac_dir
15858 break 2
15859 fi
15860 done
15861 done
15862
15863 if test "$ac_find_libraries" != "" ; then
15864
15865 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15866 result=$?
15867 if test $result = 0; then
15868 ac_path_to_link=""
15869 else
15870 ac_path_to_link=" -L$ac_find_libraries"
15871 fi
15872
15873 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15874 LDFLAGS_GL="$LDFLAGS"
15875 else
15876 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15877 fi
15878 OPENGL_LIBS="-lGL -lGLU"
15879 echo "$ac_t""yes" 1>&6
15880 else
15881 echo "$ac_t""no" 1>&6
15882 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15883echo "configure:15884: checking for -lMesaGL" >&5
15884
15885ac_find_libraries=
15886for ac_dir in $SEARCH_LIB /usr/lib;
15887 do
15888 for ac_extension in a so sl dylib; do
15889 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15890 ac_find_libraries=$ac_dir
15891 break 2
15892 fi
15893 done
15894 done
15895
15896 if test "$ac_find_libraries" != "" ; then
15897
15898 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15899 result=$?
15900 if test $result = 0; then
15901 ac_path_to_link=""
15902 else
15903 ac_path_to_link=" -L$ac_find_libraries"
15904 fi
15905
15906 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15907 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15908 echo "$ac_t""yes" 1>&6
15909 else
15910 echo "$ac_t""no" 1>&6
15911 fi
15912 fi
15913
15914else
15915 echo "$ac_t""no" 1>&6
15916fi
15917
15918
15919 if test "x$OPENGL_LIBS" = "x"; then
15920 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15921 fi
15922 fi
15923
15924 if test "$wxUSE_OPENGL" = "yes"; then
15925 cat >> confdefs.h <<\EOF
15926#define wxUSE_OPENGL 1
15927EOF
15928
15929 cat >> confdefs.h <<\EOF
15930#define wxUSE_GLCANVAS 1
15931EOF
15932
15933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15934 fi
15935fi
15936
15937if test -z "$TOOLKIT_VPATH" ; then
15938 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15939fi
15940
15941if test -n "$TOOLKIT" ; then
15942 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15943fi
15944
15945lib_unicode_suffix=
15946if test "$wxUSE_UNICODE" = "yes"; then
15947 lib_unicode_suffix=u
15948fi
15949
15950lib_debug_suffix=
15951if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15952 lib_debug_suffix=d
15953fi
15954
15955WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15956
15957TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15958TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15959
15960if test "$cross_compiling" = "yes"; then
15961 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15962 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15963fi
15964
15965WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15966WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15967WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15968
15969WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15970WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15971
15972WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15973WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15974WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15975WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15976
15977case "${host}" in
15978 *-*-cygwin* | *-*-mingw32* )
15979
15980
15981
15982 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15983 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15984 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15985 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15986 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15987 else
15988 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15989 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15990 fi
15991 ;;
15992
15993 *-*-darwin* )
15994
15995 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15996 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15997
15998 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15999 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16000 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16001 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16002
16003 if test "$wxUSE_MAC" = 1; then
16004 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16005 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16006 fi
16007 ;;
16008esac
16009
16010WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16011WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16012
16013WXCONFIG_LIBS="-l${WX_LIBRARY}"
16014WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16015
16016if test "$wxUSE_OPENGL" = "yes"; then
16017 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16018 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16019fi
16020
16021
16022
16023if test "$wxUSE_SHARED" = "yes"; then
16024 case "${host}" in
16025 *-pc-os2_emx | *-pc-os2-emx | \
16026 *-pc-msdosdjgpp )
16027 wxUSE_SHARED=no
16028 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16029 ;;
16030 esac
16031fi
16032
16033if test "$wxUSE_SHARED" = "yes"; then
16034
16035 if test "$wxUSE_OPENGL" = "yes"; then
16036 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16037 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16038 else
16039 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16040 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16041 fi
16042
16043 if test "$GCC" = "yes"; then
16044 PIC_FLAG="-fPIC"
16045 fi
16046
16047
16048
16049 found_versioning=no
16050
16051
16052 if test $found_versioning = no ; then
16053 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16054echo "configure:16055: checking if the linker accepts --version-script" >&5
16055if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16056 echo $ac_n "(cached) $ac_c" 1>&6
16057else
16058
16059 echo "VER_1 { *; };" >conftest.sym
16060 echo "int main() { return 0; }" >conftest.cpp
16061
16062 if { ac_try='
16063 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16064 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16065 if test -s conftest.stderr ; then
16066 wx_cv_version_script=no
16067 else
16068 wx_cv_version_script=yes
16069 fi
16070 else
16071 wx_cv_version_script=no
16072 fi
16073 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16074
16075fi
16076
16077echo "$ac_t""$wx_cv_version_script" 1>&6
16078 if test $wx_cv_version_script = yes ; then
16079 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16080 fi
16081 fi
16082
16083
16084 SHARED_LD="${CXX} -shared -o"
16085
16086 case "${host}" in
16087 *-hp-hpux* )
16088 if test "$GCC" = "yes"; then
16089 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16090 else
16091 LDFLAGS="$LDFLAGS -L/usr/lib"
16092
16093 SHARED_LD="${CXX} -b -o"
16094 PIC_FLAG="+Z"
16095 fi
16096
16097 if test "$wxUSE_OPENGL" = "yes"; then
16098 WX_ALL_INSTALLED="preinstall_gl"
16099 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16100 else
16101 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16102 fi
16103 ;;
16104
16105 *-*-linux* )
16106 if test "$GCC" != "yes"; then
16107 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16108echo "configure:16109: checking for Intel compiler" >&5
16109if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16110 echo $ac_n "(cached) $ac_c" 1>&6
16111else
16112
16113 cat > conftest.$ac_ext <<EOF
16114#line 16115 "configure"
16115#include "confdefs.h"
16116
16117int main() {
16118
16119 #ifndef __INTEL_COMPILER
16120 #error Not icc
16121 #endif
16122
16123; return 0; }
16124EOF
16125if { (eval echo configure:16126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16126 rm -rf conftest*
16127 wx_cv_prog_icc=yes
16128else
16129 echo "configure: failed program was:" >&5
16130 cat conftest.$ac_ext >&5
16131 rm -rf conftest*
16132 wx_cv_prog_icc=no
16133
16134fi
16135rm -f conftest*
16136
16137fi
16138
16139echo "$ac_t""$wx_cv_prog_icc" 1>&6
16140 if test "$wx_cv_prog_icc" = "yes"; then
16141 PIC_FLAG="-KPIC"
16142 fi
16143 fi
16144
16145 if test "$wxUSE_SONAME" = "yes" ; then
16146 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16147 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16148 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16149 fi
16150 ;;
16151
16152 *-*-solaris2* )
16153 if test "$GCC" = yes ; then
16154 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16155 else
16156 SHARED_LD="${CXX} -G -o"
16157 PIC_FLAG="-KPIC"
16158 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16159 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16160 fi
16161 ;;
16162
16163 *-*-darwin* )
16164 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16165 CFLAGS="$CFLAGS -fno-common"
16166 CXXFLAGS="$CXXFLAGS -fno-common"
16167 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16168 PIC_FLAG="-dynamic -fPIC"
16169 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16170 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16171 ;;
16172
16173 *-*-aix* )
16174 if test "$GCC" != "yes"; then
16175 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16176set dummy makeC++SharedLib; ac_word=$2
16177echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16178echo "configure:16179: checking for $ac_word" >&5
16179if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16180 echo $ac_n "(cached) $ac_c" 1>&6
16181else
16182 if test -n "$AIX_CXX_LD"; then
16183 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16184else
16185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16186 ac_dummy="$PATH"
16187 for ac_dir in $ac_dummy; do
16188 test -z "$ac_dir" && ac_dir=.
16189 if test -f $ac_dir/$ac_word; then
16190 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16191 break
16192 fi
16193 done
16194 IFS="$ac_save_ifs"
16195 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16196fi
16197fi
16198AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16199if test -n "$AIX_CXX_LD"; then
16200 echo "$ac_t""$AIX_CXX_LD" 1>&6
16201else
16202 echo "$ac_t""no" 1>&6
16203fi
16204
16205
16206 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16207 fi
16208 ;;
16209
16210 *-*-cygwin* | *-*-mingw32* )
16211 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16212
16213 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16214 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16215
16216 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16217
16218 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16219 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16220
16221 if test "$wxUSE_OPENGL" = "yes"; then
16222 LIBS="${LIBS} ${OPENGL_LIBS}"
16223 fi
16224 ;;
16225
16226 *-*-beos* )
16227 SHARED_LD="${LD} -shared -o"
16228 ;;
16229
16230 *-*-irix* )
16231 if test "$GCC" != "yes"; then
16232 PIC_FLAG="-KPIC"
16233 fi
16234 ;;
16235
16236 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16237 *-*-sunos4* | \
16238 *-*-osf* | \
16239 *-*-dgux5* | \
16240 *-*-sysv5* )
16241 ;;
16242
16243 *)
16244 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16245 esac
16246
16247 if test "x$WX_TARGET_LIBRARY" = "x"; then
16248 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16249 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16250 fi
16251
16252 WX_TARGET_LIBRARY_TYPE="so"
16253 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16254fi
16255
16256if test "$wxUSE_SHARED" = "no"; then
16257
16258 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16259 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16260 fi
16261
16262 if test "$wxUSE_MAC" = 1; then
16263 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16264 fi
16265
16266 if test "$wxUSE_OPENGL" = "yes"; then
16267 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16268 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16269 else
16270 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16271 fi
16272
16273 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16274 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16275
16276 WX_TARGET_LIBRARY_TYPE="a"
16277 INSTALL_LIBRARY='$(INSTALL_DATA)'
16278
16279 STATIC_FLAG="yes"
16280else
16281 STATIC_FLAG="no"
16282fi
16283
16284MACRESCOMP="@#"
16285MACSETFILE="@#"
16286MACRESWXCONFIG="#"
16287if test "$wxUSE_MAC" = 1; then
16288 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16289 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16290 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16291 # Extract the first word of "Rez", so it can be a program name with args.
16292set dummy Rez; ac_word=$2
16293echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16294echo "configure:16295: checking for $ac_word" >&5
16295if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16296 echo $ac_n "(cached) $ac_c" 1>&6
16297else
16298 if test -n "$RESCOMP"; then
16299 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16300else
16301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16302 ac_dummy="$PATH"
16303 for ac_dir in $ac_dummy; do
16304 test -z "$ac_dir" && ac_dir=.
16305 if test -f $ac_dir/$ac_word; then
16306 ac_cv_prog_RESCOMP="Rez"
16307 break
16308 fi
16309 done
16310 IFS="$ac_save_ifs"
16311 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16312fi
16313fi
16314RESCOMP="$ac_cv_prog_RESCOMP"
16315if test -n "$RESCOMP"; then
16316 echo "$ac_t""$RESCOMP" 1>&6
16317else
16318 echo "$ac_t""no" 1>&6
16319fi
16320
16321 # Extract the first word of "DeRez", so it can be a program name with args.
16322set dummy DeRez; ac_word=$2
16323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16324echo "configure:16325: checking for $ac_word" >&5
16325if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16326 echo $ac_n "(cached) $ac_c" 1>&6
16327else
16328 if test -n "$DEREZ"; then
16329 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16330else
16331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16332 ac_dummy="$PATH"
16333 for ac_dir in $ac_dummy; do
16334 test -z "$ac_dir" && ac_dir=.
16335 if test -f $ac_dir/$ac_word; then
16336 ac_cv_prog_DEREZ="DeRez"
16337 break
16338 fi
16339 done
16340 IFS="$ac_save_ifs"
16341 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16342fi
16343fi
16344DEREZ="$ac_cv_prog_DEREZ"
16345if test -n "$DEREZ"; then
16346 echo "$ac_t""$DEREZ" 1>&6
16347else
16348 echo "$ac_t""no" 1>&6
16349fi
16350
16351 # Extract the first word of "SetFile", so it can be a program name with args.
16352set dummy SetFile; ac_word=$2
16353echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16354echo "configure:16355: checking for $ac_word" >&5
16355if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16356 echo $ac_n "(cached) $ac_c" 1>&6
16357else
16358 if test -n "$SETFILE"; then
16359 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16360else
16361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16362 ac_dummy="$PATH"
16363 for ac_dir in $ac_dummy; do
16364 test -z "$ac_dir" && ac_dir=.
16365 if test -f $ac_dir/$ac_word; then
16366 ac_cv_prog_SETFILE="SetFile"
16367 break
16368 fi
16369 done
16370 IFS="$ac_save_ifs"
16371 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16372fi
16373fi
16374SETFILE="$ac_cv_prog_SETFILE"
16375if test -n "$SETFILE"; then
16376 echo "$ac_t""$SETFILE" 1>&6
16377else
16378 echo "$ac_t""no" 1>&6
16379fi
16380
16381 MACOSX_BUNDLE="bundle"
16382 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16383 MACSETFILE="\$(SETFILE)"
16384 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16385else
16386 if test "$wxUSE_PM" = 1; then
16387 MACRESCOMP="emxbind -ep"
16388 fi
16389fi
16390
16391
16392echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16393echo "configure:16394: checking for ANSI C header files" >&5
16394if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16395 echo $ac_n "(cached) $ac_c" 1>&6
16396else
16397 cat > conftest.$ac_ext <<EOF
16398#line 16399 "configure"
16399#include "confdefs.h"
16400#include <stdlib.h>
16401#include <stdarg.h>
16402#include <string.h>
16403#include <float.h>
16404EOF
16405ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16406{ (eval echo configure:16407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16407ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16408if test -z "$ac_err"; then
16409 rm -rf conftest*
16410 ac_cv_header_stdc=yes
16411else
16412 echo "$ac_err" >&5
16413 echo "configure: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16415 rm -rf conftest*
16416 ac_cv_header_stdc=no
16417fi
16418rm -f conftest*
16419
16420if test $ac_cv_header_stdc = yes; then
16421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16422cat > conftest.$ac_ext <<EOF
16423#line 16424 "configure"
16424#include "confdefs.h"
16425#include <string.h>
16426EOF
16427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428 egrep "memchr" >/dev/null 2>&1; then
16429 :
16430else
16431 rm -rf conftest*
16432 ac_cv_header_stdc=no
16433fi
16434rm -f conftest*
16435
16436fi
16437
16438if test $ac_cv_header_stdc = yes; then
16439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16440cat > conftest.$ac_ext <<EOF
16441#line 16442 "configure"
16442#include "confdefs.h"
16443#include <stdlib.h>
16444EOF
16445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16446 egrep "free" >/dev/null 2>&1; then
16447 :
16448else
16449 rm -rf conftest*
16450 ac_cv_header_stdc=no
16451fi
16452rm -f conftest*
16453
16454fi
16455
16456if test $ac_cv_header_stdc = yes; then
16457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16458if test "$cross_compiling" = yes; then
16459 :
16460else
16461 cat > conftest.$ac_ext <<EOF
16462#line 16463 "configure"
16463#include "confdefs.h"
16464#include <ctype.h>
16465#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16466#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16467#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16468int main () { int i; for (i = 0; i < 256; i++)
16469if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16470exit (0); }
16471
16472EOF
16473if { (eval echo configure:16474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16474then
16475 :
16476else
16477 echo "configure: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16479 rm -fr conftest*
16480 ac_cv_header_stdc=no
16481fi
16482rm -fr conftest*
16483fi
16484
16485fi
16486fi
16487
16488echo "$ac_t""$ac_cv_header_stdc" 1>&6
16489if test $ac_cv_header_stdc = yes; then
16490 cat >> confdefs.h <<\EOF
16491#define STDC_HEADERS 1
16492EOF
16493
16494fi
16495
16496echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16497echo "configure:16498: checking for mode_t" >&5
16498if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16499 echo $ac_n "(cached) $ac_c" 1>&6
16500else
16501 cat > conftest.$ac_ext <<EOF
16502#line 16503 "configure"
16503#include "confdefs.h"
16504#include <sys/types.h>
16505#if STDC_HEADERS
16506#include <stdlib.h>
16507#include <stddef.h>
16508#endif
16509EOF
16510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16511 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16512 rm -rf conftest*
16513 ac_cv_type_mode_t=yes
16514else
16515 rm -rf conftest*
16516 ac_cv_type_mode_t=no
16517fi
16518rm -f conftest*
16519
16520fi
16521echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16522if test $ac_cv_type_mode_t = no; then
16523 cat >> confdefs.h <<\EOF
16524#define mode_t int
16525EOF
16526
16527fi
16528
16529echo $ac_n "checking for off_t""... $ac_c" 1>&6
16530echo "configure:16531: checking for off_t" >&5
16531if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16532 echo $ac_n "(cached) $ac_c" 1>&6
16533else
16534 cat > conftest.$ac_ext <<EOF
16535#line 16536 "configure"
16536#include "confdefs.h"
16537#include <sys/types.h>
16538#if STDC_HEADERS
16539#include <stdlib.h>
16540#include <stddef.h>
16541#endif
16542EOF
16543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16544 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16545 rm -rf conftest*
16546 ac_cv_type_off_t=yes
16547else
16548 rm -rf conftest*
16549 ac_cv_type_off_t=no
16550fi
16551rm -f conftest*
16552
16553fi
16554echo "$ac_t""$ac_cv_type_off_t" 1>&6
16555if test $ac_cv_type_off_t = no; then
16556 cat >> confdefs.h <<\EOF
16557#define off_t long
16558EOF
16559
16560fi
16561
16562echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16563echo "configure:16564: checking for pid_t" >&5
16564if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16565 echo $ac_n "(cached) $ac_c" 1>&6
16566else
16567 cat > conftest.$ac_ext <<EOF
16568#line 16569 "configure"
16569#include "confdefs.h"
16570#include <sys/types.h>
16571#if STDC_HEADERS
16572#include <stdlib.h>
16573#include <stddef.h>
16574#endif
16575EOF
16576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16577 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16578 rm -rf conftest*
16579 ac_cv_type_pid_t=yes
16580else
16581 rm -rf conftest*
16582 ac_cv_type_pid_t=no
16583fi
16584rm -f conftest*
16585
16586fi
16587echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16588if test $ac_cv_type_pid_t = no; then
16589 cat >> confdefs.h <<\EOF
16590#define pid_t int
16591EOF
16592
16593fi
16594
16595echo $ac_n "checking for size_t""... $ac_c" 1>&6
16596echo "configure:16597: checking for size_t" >&5
16597if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16598 echo $ac_n "(cached) $ac_c" 1>&6
16599else
16600 cat > conftest.$ac_ext <<EOF
16601#line 16602 "configure"
16602#include "confdefs.h"
16603#include <sys/types.h>
16604#if STDC_HEADERS
16605#include <stdlib.h>
16606#include <stddef.h>
16607#endif
16608EOF
16609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16610 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16611 rm -rf conftest*
16612 ac_cv_type_size_t=yes
16613else
16614 rm -rf conftest*
16615 ac_cv_type_size_t=no
16616fi
16617rm -f conftest*
16618
16619fi
16620echo "$ac_t""$ac_cv_type_size_t" 1>&6
16621if test $ac_cv_type_size_t = no; then
16622 cat >> confdefs.h <<\EOF
16623#define size_t unsigned
16624EOF
16625
16626fi
16627
16628echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16629echo "configure:16630: checking for uid_t in sys/types.h" >&5
16630if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16631 echo $ac_n "(cached) $ac_c" 1>&6
16632else
16633 cat > conftest.$ac_ext <<EOF
16634#line 16635 "configure"
16635#include "confdefs.h"
16636#include <sys/types.h>
16637EOF
16638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16639 egrep "uid_t" >/dev/null 2>&1; then
16640 rm -rf conftest*
16641 ac_cv_type_uid_t=yes
16642else
16643 rm -rf conftest*
16644 ac_cv_type_uid_t=no
16645fi
16646rm -f conftest*
16647
16648fi
16649
16650echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16651if test $ac_cv_type_uid_t = no; then
16652 cat >> confdefs.h <<\EOF
16653#define uid_t int
16654EOF
16655
16656 cat >> confdefs.h <<\EOF
16657#define gid_t int
16658EOF
16659
16660fi
16661
16662
16663
16664ac_ext=C
16665# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16666ac_cpp='$CXXCPP $CPPFLAGS'
16667ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16668ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16669cross_compiling=$ac_cv_prog_cxx_cross
16670
16671echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16672echo "configure:16673: checking if size_t is unsigned int" >&5
16673if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16674 echo $ac_n "(cached) $ac_c" 1>&6
16675else
16676 cat > conftest.$ac_ext <<EOF
16677#line 16678 "configure"
16678#include "confdefs.h"
16679#include <stddef.h>
16680int main() {
16681
16682 return 0; }
16683
16684 struct Foo { void foo(size_t); void foo(unsigned int); };
16685
16686 int bar() {
16687
16688; return 0; }
16689EOF
16690if { (eval echo configure:16691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16691 rm -rf conftest*
16692 wx_cv_size_t_is_uint=no
16693else
16694 echo "configure: failed program was:" >&5
16695 cat conftest.$ac_ext >&5
16696 rm -rf conftest*
16697 wx_cv_size_t_is_uint=yes
16698
16699fi
16700rm -f conftest*
16701
16702fi
16703
16704echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16705
16706if test "$wx_cv_size_t_is_uint" = "yes"; then
16707 cat >> confdefs.h <<\EOF
16708#define wxSIZE_T_IS_UINT 1
16709EOF
16710
16711else
16712 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16713echo "configure:16714: checking if size_t is unsigned long" >&5
16714if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16715 echo $ac_n "(cached) $ac_c" 1>&6
16716else
16717 cat > conftest.$ac_ext <<EOF
16718#line 16719 "configure"
16719#include "confdefs.h"
16720#include <stddef.h>
16721int main() {
16722
16723 return 0; }
16724
16725 struct Foo { void foo(size_t); void foo(unsigned long); };
16726
16727 int bar() {
16728
16729; return 0; }
16730EOF
16731if { (eval echo configure:16732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16732 rm -rf conftest*
16733 wx_cv_size_t_is_ulong=no
16734else
16735 echo "configure: failed program was:" >&5
16736 cat conftest.$ac_ext >&5
16737 rm -rf conftest*
16738 wx_cv_size_t_is_ulong=yes
16739
16740fi
16741rm -f conftest*
16742
16743fi
16744
16745echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16746
16747 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16748 cat >> confdefs.h <<\EOF
16749#define wxSIZE_T_IS_ULONG 1
16750EOF
16751
16752 fi
16753fi
16754
16755ac_ext=c
16756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16757ac_cpp='$CPP $CPPFLAGS'
16758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16760cross_compiling=$ac_cv_prog_cc_cross
16761
16762
16763
16764echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16765echo "configure:16766: checking for pw_gecos in struct passwd" >&5
16766if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16767 echo $ac_n "(cached) $ac_c" 1>&6
16768else
16769
16770 cat > conftest.$ac_ext <<EOF
16771#line 16772 "configure"
16772#include "confdefs.h"
16773#include <pwd.h>
16774int main() {
16775
16776 char *p;
16777 struct passwd *pw;
16778 p = pw->pw_gecos;
16779
16780; return 0; }
16781EOF
16782if { (eval echo configure:16783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16783 rm -rf conftest*
16784
16785 wx_cv_struct_pw_gecos=yes
16786
16787else
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16790 rm -rf conftest*
16791
16792 wx_cv_struct_pw_gecos=no
16793
16794
16795fi
16796rm -f conftest*
16797
16798
16799fi
16800
16801echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16802
16803if test "$wx_cv_struct_pw_gecos" = "yes"; then
16804 cat >> confdefs.h <<\EOF
16805#define HAVE_PW_GECOS 1
16806EOF
16807
16808fi
16809
16810
16811if test "$wx_cv_sizeof_wchar_t" != "0"; then
16812 cat >> confdefs.h <<\EOF
16813#define wxUSE_WCHAR_T 1
16814EOF
16815
16816
16817 WCSLEN_FOUND=0
16818 WCHAR_LINK=
16819 for ac_func in wcslen
16820do
16821echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16822echo "configure:16823: checking for $ac_func" >&5
16823if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16824 echo $ac_n "(cached) $ac_c" 1>&6
16825else
16826 cat > conftest.$ac_ext <<EOF
16827#line 16828 "configure"
16828#include "confdefs.h"
16829/* System header to define __stub macros and hopefully few prototypes,
16830 which can conflict with char $ac_func(); below. */
16831#include <assert.h>
16832/* Override any gcc2 internal prototype to avoid an error. */
16833/* We use char because int might match the return type of a gcc2
16834 builtin and then its argument prototype would still apply. */
16835char $ac_func();
16836
16837int main() {
16838
16839/* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16843choke me
16844#else
16845$ac_func();
16846#endif
16847
16848; return 0; }
16849EOF
16850if { (eval echo configure:16851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16851 rm -rf conftest*
16852 eval "ac_cv_func_$ac_func=yes"
16853else
16854 echo "configure: failed program was:" >&5
16855 cat conftest.$ac_ext >&5
16856 rm -rf conftest*
16857 eval "ac_cv_func_$ac_func=no"
16858fi
16859rm -f conftest*
16860fi
16861
16862if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16863 echo "$ac_t""yes" 1>&6
16864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16865 cat >> confdefs.h <<EOF
16866#define $ac_tr_func 1
16867EOF
16868 WCSLEN_FOUND=1
16869else
16870 echo "$ac_t""no" 1>&6
16871fi
16872done
16873
16874
16875 if test "$WCSLEN_FOUND" = 0; then
16876 if test "$TOOLKIT" = "MSW"; then
16877 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16878echo "configure:16879: checking for wcslen in -lmsvcrt" >&5
16879ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16881 echo $ac_n "(cached) $ac_c" 1>&6
16882else
16883 ac_save_LIBS="$LIBS"
16884LIBS="-lmsvcrt $LIBS"
16885cat > conftest.$ac_ext <<EOF
16886#line 16887 "configure"
16887#include "confdefs.h"
16888/* Override any gcc2 internal prototype to avoid an error. */
16889/* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16891char wcslen();
16892
16893int main() {
16894wcslen()
16895; return 0; }
16896EOF
16897if { (eval echo configure:16898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16898 rm -rf conftest*
16899 eval "ac_cv_lib_$ac_lib_var=yes"
16900else
16901 echo "configure: failed program was:" >&5
16902 cat conftest.$ac_ext >&5
16903 rm -rf conftest*
16904 eval "ac_cv_lib_$ac_lib_var=no"
16905fi
16906rm -f conftest*
16907LIBS="$ac_save_LIBS"
16908
16909fi
16910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16911 echo "$ac_t""yes" 1>&6
16912 WCHAR_OK=1
16913else
16914 echo "$ac_t""no" 1>&6
16915fi
16916
16917 else
16918 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16919echo "configure:16920: checking for wcslen in -lw" >&5
16920ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923else
16924 ac_save_LIBS="$LIBS"
16925LIBS="-lw $LIBS"
16926cat > conftest.$ac_ext <<EOF
16927#line 16928 "configure"
16928#include "confdefs.h"
16929/* Override any gcc2 internal prototype to avoid an error. */
16930/* We use char because int might match the return type of a gcc2
16931 builtin and then its argument prototype would still apply. */
16932char wcslen();
16933
16934int main() {
16935wcslen()
16936; return 0; }
16937EOF
16938if { (eval echo configure:16939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16939 rm -rf conftest*
16940 eval "ac_cv_lib_$ac_lib_var=yes"
16941else
16942 echo "configure: failed program was:" >&5
16943 cat conftest.$ac_ext >&5
16944 rm -rf conftest*
16945 eval "ac_cv_lib_$ac_lib_var=no"
16946fi
16947rm -f conftest*
16948LIBS="$ac_save_LIBS"
16949
16950fi
16951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16952 echo "$ac_t""yes" 1>&6
16953
16954 WCHAR_LINK=" -lw"
16955 WCSLEN_FOUND=1
16956
16957else
16958 echo "$ac_t""no" 1>&6
16959fi
16960
16961 fi
16962 fi
16963
16964 if test "$WCSLEN_FOUND" = 1; then
16965 cat >> confdefs.h <<\EOF
16966#define HAVE_WCSLEN 1
16967EOF
16968
16969 fi
16970
16971 for ac_func in wcsrtombs
16972do
16973echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16974echo "configure:16975: checking for $ac_func" >&5
16975if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16976 echo $ac_n "(cached) $ac_c" 1>&6
16977else
16978 cat > conftest.$ac_ext <<EOF
16979#line 16980 "configure"
16980#include "confdefs.h"
16981/* System header to define __stub macros and hopefully few prototypes,
16982 which can conflict with char $ac_func(); below. */
16983#include <assert.h>
16984/* Override any gcc2 internal prototype to avoid an error. */
16985/* We use char because int might match the return type of a gcc2
16986 builtin and then its argument prototype would still apply. */
16987char $ac_func();
16988
16989int main() {
16990
16991/* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
16994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16995choke me
16996#else
16997$ac_func();
16998#endif
16999
17000; return 0; }
17001EOF
17002if { (eval echo configure:17003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17003 rm -rf conftest*
17004 eval "ac_cv_func_$ac_func=yes"
17005else
17006 echo "configure: failed program was:" >&5
17007 cat conftest.$ac_ext >&5
17008 rm -rf conftest*
17009 eval "ac_cv_func_$ac_func=no"
17010fi
17011rm -f conftest*
17012fi
17013
17014if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17015 echo "$ac_t""yes" 1>&6
17016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17017 cat >> confdefs.h <<EOF
17018#define $ac_tr_func 1
17019EOF
17020
17021else
17022 echo "$ac_t""no" 1>&6
17023fi
17024done
17025
17026else
17027 echo "configure: warning: Wide character support is unavailable" 1>&2
17028fi
17029
17030
17031ac_ext=C
17032# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17033ac_cpp='$CXXCPP $CPPFLAGS'
17034ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17035ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17036cross_compiling=$ac_cv_prog_cxx_cross
17037
17038
17039for ac_func in vsnprintf
17040do
17041echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17042echo "configure:17043: checking for $ac_func" >&5
17043if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17044 echo $ac_n "(cached) $ac_c" 1>&6
17045else
17046 cat > conftest.$ac_ext <<EOF
17047#line 17048 "configure"
17048#include "confdefs.h"
17049/* System header to define __stub macros and hopefully few prototypes,
17050 which can conflict with char $ac_func(); below. */
17051#include <assert.h>
17052/* Override any gcc2 internal prototype to avoid an error. */
17053#ifdef __cplusplus
17054extern "C"
17055#endif
17056/* We use char because int might match the return type of a gcc2
17057 builtin and then its argument prototype would still apply. */
17058char $ac_func();
17059
17060int main() {
17061
17062/* The GNU C library defines this for functions which it implements
17063 to always fail with ENOSYS. Some functions are actually named
17064 something starting with __ and the normal name is an alias. */
17065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17066choke me
17067#else
17068$ac_func();
17069#endif
17070
17071; return 0; }
17072EOF
17073if { (eval echo configure:17074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17074 rm -rf conftest*
17075 eval "ac_cv_func_$ac_func=yes"
17076else
17077 echo "configure: failed program was:" >&5
17078 cat conftest.$ac_ext >&5
17079 rm -rf conftest*
17080 eval "ac_cv_func_$ac_func=no"
17081fi
17082rm -f conftest*
17083fi
17084
17085if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17086 echo "$ac_t""yes" 1>&6
17087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17088 cat >> confdefs.h <<EOF
17089#define $ac_tr_func 1
17090EOF
17091
17092else
17093 echo "$ac_t""no" 1>&6
17094fi
17095done
17096
17097
17098if test "$ac_cv_func_vsnprintf" = "yes"; then
17099 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17100echo "configure:17101: checking for vsnprintf declaration" >&5
17101if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17102 echo $ac_n "(cached) $ac_c" 1>&6
17103else
17104
17105 cat > conftest.$ac_ext <<EOF
17106#line 17107 "configure"
17107#include "confdefs.h"
17108
17109 #include <stdio.h>
17110 #include <stdarg.h>
17111
17112int main() {
17113
17114 char *buf;
17115 va_list ap;
17116 vsnprintf(buf, 10u, "%s", ap);
17117
17118; return 0; }
17119EOF
17120if { (eval echo configure:17121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17121 rm -rf conftest*
17122 wx_cv_func_vsnprintf_decl=yes
17123else
17124 echo "configure: failed program was:" >&5
17125 cat conftest.$ac_ext >&5
17126 rm -rf conftest*
17127 wx_cv_func_vsnprintf_decl=no
17128
17129fi
17130rm -f conftest*
17131
17132
17133fi
17134
17135echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17136
17137 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17138 cat >> confdefs.h <<\EOF
17139#define HAVE_VSNPRINTF_DECL 1
17140EOF
17141
17142 fi
17143fi
17144
17145if test "$wxUSE_UNICODE" = yes; then
17146 for ac_func in fputwc wprintf vswprintf
17147do
17148echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17149echo "configure:17150: checking for $ac_func" >&5
17150if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17151 echo $ac_n "(cached) $ac_c" 1>&6
17152else
17153 cat > conftest.$ac_ext <<EOF
17154#line 17155 "configure"
17155#include "confdefs.h"
17156/* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func(); below. */
17158#include <assert.h>
17159/* Override any gcc2 internal prototype to avoid an error. */
17160#ifdef __cplusplus
17161extern "C"
17162#endif
17163/* We use char because int might match the return type of a gcc2
17164 builtin and then its argument prototype would still apply. */
17165char $ac_func();
17166
17167int main() {
17168
17169/* The GNU C library defines this for functions which it implements
17170 to always fail with ENOSYS. Some functions are actually named
17171 something starting with __ and the normal name is an alias. */
17172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17173choke me
17174#else
17175$ac_func();
17176#endif
17177
17178; return 0; }
17179EOF
17180if { (eval echo configure:17181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17181 rm -rf conftest*
17182 eval "ac_cv_func_$ac_func=yes"
17183else
17184 echo "configure: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17186 rm -rf conftest*
17187 eval "ac_cv_func_$ac_func=no"
17188fi
17189rm -f conftest*
17190fi
17191
17192if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17193 echo "$ac_t""yes" 1>&6
17194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17195 cat >> confdefs.h <<EOF
17196#define $ac_tr_func 1
17197EOF
17198
17199else
17200 echo "$ac_t""no" 1>&6
17201fi
17202done
17203
17204
17205 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17206echo "configure:17207: checking for _vsnwprintf" >&5
17207 cat > conftest.$ac_ext <<EOF
17208#line 17209 "configure"
17209#include "confdefs.h"
17210#include <wchar.h>
17211int main() {
17212&_vsnwprintf;
17213; return 0; }
17214EOF
17215if { (eval echo configure:17216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17216 rm -rf conftest*
17217 echo "$ac_t""yes" 1>&6
17218 cat >> confdefs.h <<\EOF
17219#define HAVE__VSNWPRINTF 1
17220EOF
17221
17222else
17223 echo "configure: failed program was:" >&5
17224 cat conftest.$ac_ext >&5
17225 rm -rf conftest*
17226 echo "$ac_t""no" 1>&6
17227fi
17228rm -f conftest*;
17229fi
17230
17231ac_ext=c
17232# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17233ac_cpp='$CPP $CPPFLAGS'
17234ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17235ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17236cross_compiling=$ac_cv_prog_cc_cross
17237
17238
17239
17240
17241if test "$TOOLKIT" != "MSW"; then
17242
17243
17244
17245ac_ext=C
17246# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17247ac_cpp='$CXXCPP $CPPFLAGS'
17248ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17249ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17250cross_compiling=$ac_cv_prog_cxx_cross
17251
17252
17253
17254 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17255if test "${with_libiconv_prefix+set}" = set; then
17256 withval="$with_libiconv_prefix"
17257
17258 for dir in `echo "$withval" | tr : ' '`; do
17259 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17260 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17261 done
17262
17263fi
17264
17265
17266 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17267echo "configure:17268: checking for iconv" >&5
17268if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17269 echo $ac_n "(cached) $ac_c" 1>&6
17270else
17271
17272 am_cv_func_iconv="no, consider installing GNU libiconv"
17273 am_cv_lib_iconv=no
17274 cat > conftest.$ac_ext <<EOF
17275#line 17276 "configure"
17276#include "confdefs.h"
17277#include <stdlib.h>
17278#include <iconv.h>
17279int main() {
17280iconv_t cd = iconv_open("","");
17281 iconv(cd,NULL,NULL,NULL,NULL);
17282 iconv_close(cd);
17283; return 0; }
17284EOF
17285if { (eval echo configure:17286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17286 rm -rf conftest*
17287 am_cv_func_iconv=yes
17288else
17289 echo "configure: failed program was:" >&5
17290 cat conftest.$ac_ext >&5
17291fi
17292rm -f conftest*
17293 if test "$am_cv_func_iconv" != yes; then
17294 am_save_LIBS="$LIBS"
17295 LIBS="$LIBS -liconv"
17296 cat > conftest.$ac_ext <<EOF
17297#line 17298 "configure"
17298#include "confdefs.h"
17299#include <stdlib.h>
17300#include <iconv.h>
17301int main() {
17302iconv_t cd = iconv_open("","");
17303 iconv(cd,NULL,NULL,NULL,NULL);
17304 iconv_close(cd);
17305; return 0; }
17306EOF
17307if { (eval echo configure:17308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17308 rm -rf conftest*
17309 am_cv_lib_iconv=yes
17310 am_cv_func_iconv=yes
17311else
17312 echo "configure: failed program was:" >&5
17313 cat conftest.$ac_ext >&5
17314fi
17315rm -f conftest*
17316 LIBS="$am_save_LIBS"
17317 fi
17318
17319fi
17320
17321echo "$ac_t""$am_cv_func_iconv" 1>&6
17322 if test "$am_cv_func_iconv" = yes; then
17323 cat >> confdefs.h <<\EOF
17324#define HAVE_ICONV 1
17325EOF
17326
17327 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17328echo "configure:17329: checking if iconv needs const" >&5
17329if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17330 echo $ac_n "(cached) $ac_c" 1>&6
17331else
17332 cat > conftest.$ac_ext <<EOF
17333#line 17334 "configure"
17334#include "confdefs.h"
17335
17336#include <stdlib.h>
17337#include <iconv.h>
17338extern
17339#ifdef __cplusplus
17340"C"
17341#endif
17342#if defined(__STDC__) || defined(__cplusplus)
17343size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17344#else
17345size_t iconv();
17346#endif
17347
17348int main() {
17349
17350; return 0; }
17351EOF
17352if { (eval echo configure:17353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17353 rm -rf conftest*
17354 wx_cv_func_iconv_const="no"
17355else
17356 echo "configure: failed program was:" >&5
17357 cat conftest.$ac_ext >&5
17358 rm -rf conftest*
17359 wx_cv_func_iconv_const="yes"
17360
17361fi
17362rm -f conftest*
17363
17364fi
17365
17366echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17367
17368 iconv_const=
17369 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17370 iconv_const="const"
17371 fi
17372
17373 cat >> confdefs.h <<EOF
17374#define ICONV_CONST $iconv_const
17375EOF
17376
17377 fi
17378 LIBICONV=
17379 if test "$am_cv_lib_iconv" = yes; then
17380 LIBICONV="-liconv"
17381 fi
17382
17383
17384LIBS="$LIBICONV $LIBS"
17385ac_ext=c
17386# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17387ac_cpp='$CPP $CPPFLAGS'
17388ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17389ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17390cross_compiling=$ac_cv_prog_cc_cross
17391
17392
17393if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17394 for ac_func in sigaction
17395do
17396echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17397echo "configure:17398: checking for $ac_func" >&5
17398if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17399 echo $ac_n "(cached) $ac_c" 1>&6
17400else
17401 cat > conftest.$ac_ext <<EOF
17402#line 17403 "configure"
17403#include "confdefs.h"
17404/* System header to define __stub macros and hopefully few prototypes,
17405 which can conflict with char $ac_func(); below. */
17406#include <assert.h>
17407/* Override any gcc2 internal prototype to avoid an error. */
17408/* We use char because int might match the return type of a gcc2
17409 builtin and then its argument prototype would still apply. */
17410char $ac_func();
17411
17412int main() {
17413
17414/* The GNU C library defines this for functions which it implements
17415 to always fail with ENOSYS. Some functions are actually named
17416 something starting with __ and the normal name is an alias. */
17417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17418choke me
17419#else
17420$ac_func();
17421#endif
17422
17423; return 0; }
17424EOF
17425if { (eval echo configure:17426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17426 rm -rf conftest*
17427 eval "ac_cv_func_$ac_func=yes"
17428else
17429 echo "configure: failed program was:" >&5
17430 cat conftest.$ac_ext >&5
17431 rm -rf conftest*
17432 eval "ac_cv_func_$ac_func=no"
17433fi
17434rm -f conftest*
17435fi
17436
17437if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17438 echo "$ac_t""yes" 1>&6
17439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17440 cat >> confdefs.h <<EOF
17441#define $ac_tr_func 1
17442EOF
17443
17444else
17445 echo "$ac_t""no" 1>&6
17446fi
17447done
17448
17449
17450 if test "$ac_cv_func_sigaction" = "no"; then
17451 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17452 wxUSE_ON_FATAL_EXCEPTION=no
17453 fi
17454
17455 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17456
17457 ac_ext=C
17458# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17459ac_cpp='$CXXCPP $CPPFLAGS'
17460ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17461ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17462cross_compiling=$ac_cv_prog_cxx_cross
17463
17464
17465 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17466echo "configure:17467: checking for sa_handler type" >&5
17467if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17468 echo $ac_n "(cached) $ac_c" 1>&6
17469else
17470
17471 cat > conftest.$ac_ext <<EOF
17472#line 17473 "configure"
17473#include "confdefs.h"
17474#include <signal.h>
17475int main() {
17476
17477 extern void testSigHandler(int);
17478
17479 struct sigaction sa;
17480 sa.sa_handler = testSigHandler;
17481
17482; return 0; }
17483EOF
17484if { (eval echo configure:17485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17485 rm -rf conftest*
17486
17487 wx_cv_type_sa_handler=int
17488
17489else
17490 echo "configure: failed program was:" >&5
17491 cat conftest.$ac_ext >&5
17492 rm -rf conftest*
17493
17494 wx_cv_type_sa_handler=void
17495
17496fi
17497rm -f conftest*
17498
17499fi
17500
17501echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17502
17503 ac_ext=c
17504# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17505ac_cpp='$CPP $CPPFLAGS'
17506ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17507ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17508cross_compiling=$ac_cv_prog_cc_cross
17509
17510
17511 cat >> confdefs.h <<EOF
17512#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17513EOF
17514
17515 fi
17516fi
17517
17518for ac_func in mkstemp mktemp
17519do
17520echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17521echo "configure:17522: checking for $ac_func" >&5
17522if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17523 echo $ac_n "(cached) $ac_c" 1>&6
17524else
17525 cat > conftest.$ac_ext <<EOF
17526#line 17527 "configure"
17527#include "confdefs.h"
17528/* System header to define __stub macros and hopefully few prototypes,
17529 which can conflict with char $ac_func(); below. */
17530#include <assert.h>
17531/* Override any gcc2 internal prototype to avoid an error. */
17532/* We use char because int might match the return type of a gcc2
17533 builtin and then its argument prototype would still apply. */
17534char $ac_func();
17535
17536int main() {
17537
17538/* The GNU C library defines this for functions which it implements
17539 to always fail with ENOSYS. Some functions are actually named
17540 something starting with __ and the normal name is an alias. */
17541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17542choke me
17543#else
17544$ac_func();
17545#endif
17546
17547; return 0; }
17548EOF
17549if { (eval echo configure:17550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17550 rm -rf conftest*
17551 eval "ac_cv_func_$ac_func=yes"
17552else
17553 echo "configure: failed program was:" >&5
17554 cat conftest.$ac_ext >&5
17555 rm -rf conftest*
17556 eval "ac_cv_func_$ac_func=no"
17557fi
17558rm -f conftest*
17559fi
17560
17561if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17562 echo "$ac_t""yes" 1>&6
17563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17564 cat >> confdefs.h <<EOF
17565#define $ac_tr_func 1
17566EOF
17567 break
17568else
17569 echo "$ac_t""no" 1>&6
17570fi
17571done
17572
17573
17574echo $ac_n "checking for statfs""... $ac_c" 1>&6
17575echo "configure:17576: checking for statfs" >&5
17576if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17577 echo $ac_n "(cached) $ac_c" 1>&6
17578else
17579 cat > conftest.$ac_ext <<EOF
17580#line 17581 "configure"
17581#include "confdefs.h"
17582
17583 #if defined(__BSD__)
17584 #include <sys/param.h>
17585 #include <sys/mount.h>
17586 #else
17587 #include <sys/vfs.h>
17588 #endif
17589
17590int main() {
17591
17592 long l;
17593 struct statfs fs;
17594 statfs("/", &fs);
17595 l = fs.f_bsize;
17596 l += fs.f_blocks;
17597 l += fs.f_bavail;
17598
17599; return 0; }
17600EOF
17601if { (eval echo configure:17602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17602 rm -rf conftest*
17603
17604 wx_cv_func_statfs=yes
17605
17606else
17607 echo "configure: failed program was:" >&5
17608 cat conftest.$ac_ext >&5
17609 rm -rf conftest*
17610
17611 wx_cv_func_statfs=no
17612
17613
17614fi
17615rm -f conftest*
17616
17617fi
17618
17619echo "$ac_t""$wx_cv_func_statfs" 1>&6
17620
17621if test "$wx_cv_func_statfs" = "yes"; then
17622 wx_cv_type_statvfs_t="struct statfs"
17623 cat >> confdefs.h <<\EOF
17624#define HAVE_STATFS 1
17625EOF
17626
17627else
17628 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17629echo "configure:17630: checking for statvfs" >&5
17630if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17631 echo $ac_n "(cached) $ac_c" 1>&6
17632else
17633 cat > conftest.$ac_ext <<EOF
17634#line 17635 "configure"
17635#include "confdefs.h"
17636
17637 #include <stddef.h>
17638 #include <sys/statvfs.h>
17639
17640int main() {
17641
17642 statvfs("/", NULL);
17643
17644; return 0; }
17645EOF
17646if { (eval echo configure:17647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17647 rm -rf conftest*
17648 wx_cv_func_statvfs=yes
17649else
17650 echo "configure: failed program was:" >&5
17651 cat conftest.$ac_ext >&5
17652 rm -rf conftest*
17653 wx_cv_func_statvfs=no
17654
17655fi
17656rm -f conftest*
17657
17658fi
17659
17660echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17661
17662 if test "$wx_cv_func_statvfs" = "yes"; then
17663
17664 ac_ext=C
17665# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17666ac_cpp='$CXXCPP $CPPFLAGS'
17667ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17668ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17669cross_compiling=$ac_cv_prog_cxx_cross
17670
17671
17672 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17673echo "configure:17674: checking for statvfs argument type" >&5
17674if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676else
17677 cat > conftest.$ac_ext <<EOF
17678#line 17679 "configure"
17679#include "confdefs.h"
17680
17681 #include <sys/statvfs.h>
17682
17683int main() {
17684
17685 long l;
17686 statvfs_t fs;
17687 statvfs("/", &fs);
17688 l = fs.f_bsize;
17689 l += fs.f_blocks;
17690 l += fs.f_bavail;
17691
17692; return 0; }
17693EOF
17694if { (eval echo configure:17695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17695 rm -rf conftest*
17696 wx_cv_type_statvfs_t=statvfs_t
17697else
17698 echo "configure: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17700 rm -rf conftest*
17701
17702 cat > conftest.$ac_ext <<EOF
17703#line 17704 "configure"
17704#include "confdefs.h"
17705
17706 #include <sys/statvfs.h>
17707
17708int main() {
17709
17710 long l;
17711 struct statvfs fs;
17712 statvfs("/", &fs);
17713 l = fs.f_bsize;
17714 l += fs.f_blocks;
17715 l += fs.f_bavail;
17716
17717; return 0; }
17718EOF
17719if { (eval echo configure:17720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17720 rm -rf conftest*
17721 wx_cv_type_statvfs_t="struct statvfs"
17722else
17723 echo "configure: failed program was:" >&5
17724 cat conftest.$ac_ext >&5
17725 rm -rf conftest*
17726 wx_cv_type_statvfs_t="unknown"
17727
17728fi
17729rm -f conftest*
17730
17731
17732fi
17733rm -f conftest*
17734
17735fi
17736
17737echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17738
17739 ac_ext=c
17740# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17741ac_cpp='$CPP $CPPFLAGS'
17742ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17743ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17744cross_compiling=$ac_cv_prog_cc_cross
17745
17746
17747 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17748 cat >> confdefs.h <<\EOF
17749#define HAVE_STATVFS 1
17750EOF
17751
17752 fi
17753 else
17754 wx_cv_type_statvfs_t="unknown"
17755 fi
17756fi
17757
17758if test "$wx_cv_type_statvfs_t" != "unknown"; then
17759 cat >> confdefs.h <<EOF
17760#define WX_STATFS_T $wx_cv_type_statvfs_t
17761EOF
17762
17763else
17764 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17765fi
17766
17767if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17768 for ac_func in fcntl flock
17769do
17770echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17771echo "configure:17772: checking for $ac_func" >&5
17772if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17773 echo $ac_n "(cached) $ac_c" 1>&6
17774else
17775 cat > conftest.$ac_ext <<EOF
17776#line 17777 "configure"
17777#include "confdefs.h"
17778/* System header to define __stub macros and hopefully few prototypes,
17779 which can conflict with char $ac_func(); below. */
17780#include <assert.h>
17781/* Override any gcc2 internal prototype to avoid an error. */
17782/* We use char because int might match the return type of a gcc2
17783 builtin and then its argument prototype would still apply. */
17784char $ac_func();
17785
17786int main() {
17787
17788/* The GNU C library defines this for functions which it implements
17789 to always fail with ENOSYS. Some functions are actually named
17790 something starting with __ and the normal name is an alias. */
17791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17792choke me
17793#else
17794$ac_func();
17795#endif
17796
17797; return 0; }
17798EOF
17799if { (eval echo configure:17800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17800 rm -rf conftest*
17801 eval "ac_cv_func_$ac_func=yes"
17802else
17803 echo "configure: failed program was:" >&5
17804 cat conftest.$ac_ext >&5
17805 rm -rf conftest*
17806 eval "ac_cv_func_$ac_func=no"
17807fi
17808rm -f conftest*
17809fi
17810
17811if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17812 echo "$ac_t""yes" 1>&6
17813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17814 cat >> confdefs.h <<EOF
17815#define $ac_tr_func 1
17816EOF
17817 break
17818else
17819 echo "$ac_t""no" 1>&6
17820fi
17821done
17822
17823
17824 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17825 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17826 wxUSE_SNGLINST_CHECKER=no
17827 fi
17828fi
17829
17830for ac_func in timegm
17831do
17832echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17833echo "configure:17834: checking for $ac_func" >&5
17834if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17835 echo $ac_n "(cached) $ac_c" 1>&6
17836else
17837 cat > conftest.$ac_ext <<EOF
17838#line 17839 "configure"
17839#include "confdefs.h"
17840/* System header to define __stub macros and hopefully few prototypes,
17841 which can conflict with char $ac_func(); below. */
17842#include <assert.h>
17843/* Override any gcc2 internal prototype to avoid an error. */
17844/* We use char because int might match the return type of a gcc2
17845 builtin and then its argument prototype would still apply. */
17846char $ac_func();
17847
17848int main() {
17849
17850/* The GNU C library defines this for functions which it implements
17851 to always fail with ENOSYS. Some functions are actually named
17852 something starting with __ and the normal name is an alias. */
17853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17854choke me
17855#else
17856$ac_func();
17857#endif
17858
17859; return 0; }
17860EOF
17861if { (eval echo configure:17862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17862 rm -rf conftest*
17863 eval "ac_cv_func_$ac_func=yes"
17864else
17865 echo "configure: failed program was:" >&5
17866 cat conftest.$ac_ext >&5
17867 rm -rf conftest*
17868 eval "ac_cv_func_$ac_func=no"
17869fi
17870rm -f conftest*
17871fi
17872
17873if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17874 echo "$ac_t""yes" 1>&6
17875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17876 cat >> confdefs.h <<EOF
17877#define $ac_tr_func 1
17878EOF
17879
17880else
17881 echo "$ac_t""no" 1>&6
17882fi
17883done
17884
17885
17886for ac_func in putenv setenv
17887do
17888echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17889echo "configure:17890: checking for $ac_func" >&5
17890if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17891 echo $ac_n "(cached) $ac_c" 1>&6
17892else
17893 cat > conftest.$ac_ext <<EOF
17894#line 17895 "configure"
17895#include "confdefs.h"
17896/* System header to define __stub macros and hopefully few prototypes,
17897 which can conflict with char $ac_func(); below. */
17898#include <assert.h>
17899/* Override any gcc2 internal prototype to avoid an error. */
17900/* We use char because int might match the return type of a gcc2
17901 builtin and then its argument prototype would still apply. */
17902char $ac_func();
17903
17904int main() {
17905
17906/* The GNU C library defines this for functions which it implements
17907 to always fail with ENOSYS. Some functions are actually named
17908 something starting with __ and the normal name is an alias. */
17909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17910choke me
17911#else
17912$ac_func();
17913#endif
17914
17915; return 0; }
17916EOF
17917if { (eval echo configure:17918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17918 rm -rf conftest*
17919 eval "ac_cv_func_$ac_func=yes"
17920else
17921 echo "configure: failed program was:" >&5
17922 cat conftest.$ac_ext >&5
17923 rm -rf conftest*
17924 eval "ac_cv_func_$ac_func=no"
17925fi
17926rm -f conftest*
17927fi
17928
17929if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17930 echo "$ac_t""yes" 1>&6
17931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17932 cat >> confdefs.h <<EOF
17933#define $ac_tr_func 1
17934EOF
17935 break
17936else
17937 echo "$ac_t""no" 1>&6
17938fi
17939done
17940
17941
17942HAVE_SOME_SLEEP_FUNC=0
17943if test "$USE_BEOS" = 1; then
17944 cat >> confdefs.h <<\EOF
17945#define HAVE_SLEEP 1
17946EOF
17947
17948 HAVE_SOME_SLEEP_FUNC=1
17949fi
17950
17951if test "$USE_DARWIN" = 1; then
17952 cat >> confdefs.h <<\EOF
17953#define HAVE_USLEEP 1
17954EOF
17955
17956 HAVE_SOME_SLEEP_FUNC=1
17957fi
17958
17959if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17960 POSIX4_LINK=
17961 for ac_func in nanosleep
17962do
17963echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17964echo "configure:17965: checking for $ac_func" >&5
17965if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17966 echo $ac_n "(cached) $ac_c" 1>&6
17967else
17968 cat > conftest.$ac_ext <<EOF
17969#line 17970 "configure"
17970#include "confdefs.h"
17971/* System header to define __stub macros and hopefully few prototypes,
17972 which can conflict with char $ac_func(); below. */
17973#include <assert.h>
17974/* Override any gcc2 internal prototype to avoid an error. */
17975/* We use char because int might match the return type of a gcc2
17976 builtin and then its argument prototype would still apply. */
17977char $ac_func();
17978
17979int main() {
17980
17981/* The GNU C library defines this for functions which it implements
17982 to always fail with ENOSYS. Some functions are actually named
17983 something starting with __ and the normal name is an alias. */
17984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17985choke me
17986#else
17987$ac_func();
17988#endif
17989
17990; return 0; }
17991EOF
17992if { (eval echo configure:17993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17993 rm -rf conftest*
17994 eval "ac_cv_func_$ac_func=yes"
17995else
17996 echo "configure: failed program was:" >&5
17997 cat conftest.$ac_ext >&5
17998 rm -rf conftest*
17999 eval "ac_cv_func_$ac_func=no"
18000fi
18001rm -f conftest*
18002fi
18003
18004if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18005 echo "$ac_t""yes" 1>&6
18006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18007 cat >> confdefs.h <<EOF
18008#define $ac_tr_func 1
18009EOF
18010 cat >> confdefs.h <<\EOF
18011#define HAVE_NANOSLEEP 1
18012EOF
18013
18014else
18015 echo "$ac_t""no" 1>&6
18016echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18017echo "configure:18018: checking for nanosleep in -lposix4" >&5
18018ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18019if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18020 echo $ac_n "(cached) $ac_c" 1>&6
18021else
18022 ac_save_LIBS="$LIBS"
18023LIBS="-lposix4 $LIBS"
18024cat > conftest.$ac_ext <<EOF
18025#line 18026 "configure"
18026#include "confdefs.h"
18027/* Override any gcc2 internal prototype to avoid an error. */
18028/* We use char because int might match the return type of a gcc2
18029 builtin and then its argument prototype would still apply. */
18030char nanosleep();
18031
18032int main() {
18033nanosleep()
18034; return 0; }
18035EOF
18036if { (eval echo configure:18037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18037 rm -rf conftest*
18038 eval "ac_cv_lib_$ac_lib_var=yes"
18039else
18040 echo "configure: failed program was:" >&5
18041 cat conftest.$ac_ext >&5
18042 rm -rf conftest*
18043 eval "ac_cv_lib_$ac_lib_var=no"
18044fi
18045rm -f conftest*
18046LIBS="$ac_save_LIBS"
18047
18048fi
18049if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18050 echo "$ac_t""yes" 1>&6
18051
18052 cat >> confdefs.h <<\EOF
18053#define HAVE_NANOSLEEP 1
18054EOF
18055
18056 POSIX4_LINK=" -lposix4"
18057
18058else
18059 echo "$ac_t""no" 1>&6
18060
18061 for ac_func in usleep
18062do
18063echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18064echo "configure:18065: checking for $ac_func" >&5
18065if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18066 echo $ac_n "(cached) $ac_c" 1>&6
18067else
18068 cat > conftest.$ac_ext <<EOF
18069#line 18070 "configure"
18070#include "confdefs.h"
18071/* System header to define __stub macros and hopefully few prototypes,
18072 which can conflict with char $ac_func(); below. */
18073#include <assert.h>
18074/* Override any gcc2 internal prototype to avoid an error. */
18075/* We use char because int might match the return type of a gcc2
18076 builtin and then its argument prototype would still apply. */
18077char $ac_func();
18078
18079int main() {
18080
18081/* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18085choke me
18086#else
18087$ac_func();
18088#endif
18089
18090; return 0; }
18091EOF
18092if { (eval echo configure:18093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18093 rm -rf conftest*
18094 eval "ac_cv_func_$ac_func=yes"
18095else
18096 echo "configure: failed program was:" >&5
18097 cat conftest.$ac_ext >&5
18098 rm -rf conftest*
18099 eval "ac_cv_func_$ac_func=no"
18100fi
18101rm -f conftest*
18102fi
18103
18104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18105 echo "$ac_t""yes" 1>&6
18106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18107 cat >> confdefs.h <<EOF
18108#define $ac_tr_func 1
18109EOF
18110 cat >> confdefs.h <<\EOF
18111#define HAVE_USLEEP 1
18112EOF
18113
18114else
18115 echo "$ac_t""no" 1>&6
18116echo "configure: warning: wxSleep() function will not work" 1>&2
18117
18118fi
18119done
18120
18121
18122
18123fi
18124
18125
18126
18127fi
18128done
18129
18130fi
18131
18132for ac_func in uname gethostname
18133do
18134echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18135echo "configure:18136: checking for $ac_func" >&5
18136if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18137 echo $ac_n "(cached) $ac_c" 1>&6
18138else
18139 cat > conftest.$ac_ext <<EOF
18140#line 18141 "configure"
18141#include "confdefs.h"
18142/* System header to define __stub macros and hopefully few prototypes,
18143 which can conflict with char $ac_func(); below. */
18144#include <assert.h>
18145/* Override any gcc2 internal prototype to avoid an error. */
18146/* We use char because int might match the return type of a gcc2
18147 builtin and then its argument prototype would still apply. */
18148char $ac_func();
18149
18150int main() {
18151
18152/* The GNU C library defines this for functions which it implements
18153 to always fail with ENOSYS. Some functions are actually named
18154 something starting with __ and the normal name is an alias. */
18155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18156choke me
18157#else
18158$ac_func();
18159#endif
18160
18161; return 0; }
18162EOF
18163if { (eval echo configure:18164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18164 rm -rf conftest*
18165 eval "ac_cv_func_$ac_func=yes"
18166else
18167 echo "configure: failed program was:" >&5
18168 cat conftest.$ac_ext >&5
18169 rm -rf conftest*
18170 eval "ac_cv_func_$ac_func=no"
18171fi
18172rm -f conftest*
18173fi
18174
18175if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18176 echo "$ac_t""yes" 1>&6
18177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18178 cat >> confdefs.h <<EOF
18179#define $ac_tr_func 1
18180EOF
18181 break
18182else
18183 echo "$ac_t""no" 1>&6
18184fi
18185done
18186
18187
18188
18189ac_ext=C
18190# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18191ac_cpp='$CXXCPP $CPPFLAGS'
18192ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18193ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18194cross_compiling=$ac_cv_prog_cxx_cross
18195
18196
18197for ac_func in strtok_r
18198do
18199echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18200echo "configure:18201: checking for $ac_func" >&5
18201if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18202 echo $ac_n "(cached) $ac_c" 1>&6
18203else
18204 cat > conftest.$ac_ext <<EOF
18205#line 18206 "configure"
18206#include "confdefs.h"
18207/* System header to define __stub macros and hopefully few prototypes,
18208 which can conflict with char $ac_func(); below. */
18209#include <assert.h>
18210/* Override any gcc2 internal prototype to avoid an error. */
18211#ifdef __cplusplus
18212extern "C"
18213#endif
18214/* We use char because int might match the return type of a gcc2
18215 builtin and then its argument prototype would still apply. */
18216char $ac_func();
18217
18218int main() {
18219
18220/* The GNU C library defines this for functions which it implements
18221 to always fail with ENOSYS. Some functions are actually named
18222 something starting with __ and the normal name is an alias. */
18223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18224choke me
18225#else
18226$ac_func();
18227#endif
18228
18229; return 0; }
18230EOF
18231if { (eval echo configure:18232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18232 rm -rf conftest*
18233 eval "ac_cv_func_$ac_func=yes"
18234else
18235 echo "configure: failed program was:" >&5
18236 cat conftest.$ac_ext >&5
18237 rm -rf conftest*
18238 eval "ac_cv_func_$ac_func=no"
18239fi
18240rm -f conftest*
18241fi
18242
18243if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18244 echo "$ac_t""yes" 1>&6
18245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18246 cat >> confdefs.h <<EOF
18247#define $ac_tr_func 1
18248EOF
18249
18250else
18251 echo "$ac_t""no" 1>&6
18252fi
18253done
18254
18255
18256ac_ext=c
18257# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18258ac_cpp='$CPP $CPPFLAGS'
18259ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18260ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18261cross_compiling=$ac_cv_prog_cc_cross
18262
18263
18264INET_LINK=
18265for ac_func in inet_addr
18266do
18267echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18268echo "configure:18269: checking for $ac_func" >&5
18269if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18270 echo $ac_n "(cached) $ac_c" 1>&6
18271else
18272 cat > conftest.$ac_ext <<EOF
18273#line 18274 "configure"
18274#include "confdefs.h"
18275/* System header to define __stub macros and hopefully few prototypes,
18276 which can conflict with char $ac_func(); below. */
18277#include <assert.h>
18278/* Override any gcc2 internal prototype to avoid an error. */
18279/* We use char because int might match the return type of a gcc2
18280 builtin and then its argument prototype would still apply. */
18281char $ac_func();
18282
18283int main() {
18284
18285/* The GNU C library defines this for functions which it implements
18286 to always fail with ENOSYS. Some functions are actually named
18287 something starting with __ and the normal name is an alias. */
18288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18289choke me
18290#else
18291$ac_func();
18292#endif
18293
18294; return 0; }
18295EOF
18296if { (eval echo configure:18297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18297 rm -rf conftest*
18298 eval "ac_cv_func_$ac_func=yes"
18299else
18300 echo "configure: failed program was:" >&5
18301 cat conftest.$ac_ext >&5
18302 rm -rf conftest*
18303 eval "ac_cv_func_$ac_func=no"
18304fi
18305rm -f conftest*
18306fi
18307
18308if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18309 echo "$ac_t""yes" 1>&6
18310 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18311 cat >> confdefs.h <<EOF
18312#define $ac_tr_func 1
18313EOF
18314 cat >> confdefs.h <<\EOF
18315#define HAVE_INET_ADDR 1
18316EOF
18317
18318else
18319 echo "$ac_t""no" 1>&6
18320echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18321echo "configure:18322: checking for inet_addr in -lnsl" >&5
18322ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18324 echo $ac_n "(cached) $ac_c" 1>&6
18325else
18326 ac_save_LIBS="$LIBS"
18327LIBS="-lnsl $LIBS"
18328cat > conftest.$ac_ext <<EOF
18329#line 18330 "configure"
18330#include "confdefs.h"
18331/* Override any gcc2 internal prototype to avoid an error. */
18332/* We use char because int might match the return type of a gcc2
18333 builtin and then its argument prototype would still apply. */
18334char inet_addr();
18335
18336int main() {
18337inet_addr()
18338; return 0; }
18339EOF
18340if { (eval echo configure:18341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18341 rm -rf conftest*
18342 eval "ac_cv_lib_$ac_lib_var=yes"
18343else
18344 echo "configure: failed program was:" >&5
18345 cat conftest.$ac_ext >&5
18346 rm -rf conftest*
18347 eval "ac_cv_lib_$ac_lib_var=no"
18348fi
18349rm -f conftest*
18350LIBS="$ac_save_LIBS"
18351
18352fi
18353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18354 echo "$ac_t""yes" 1>&6
18355 INET_LINK="nsl"
18356else
18357 echo "$ac_t""no" 1>&6
18358echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18359echo "configure:18360: checking for inet_addr in -lresolv" >&5
18360ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18361if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18362 echo $ac_n "(cached) $ac_c" 1>&6
18363else
18364 ac_save_LIBS="$LIBS"
18365LIBS="-lresolv $LIBS"
18366cat > conftest.$ac_ext <<EOF
18367#line 18368 "configure"
18368#include "confdefs.h"
18369/* Override any gcc2 internal prototype to avoid an error. */
18370/* We use char because int might match the return type of a gcc2
18371 builtin and then its argument prototype would still apply. */
18372char inet_addr();
18373
18374int main() {
18375inet_addr()
18376; return 0; }
18377EOF
18378if { (eval echo configure:18379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18379 rm -rf conftest*
18380 eval "ac_cv_lib_$ac_lib_var=yes"
18381else
18382 echo "configure: failed program was:" >&5
18383 cat conftest.$ac_ext >&5
18384 rm -rf conftest*
18385 eval "ac_cv_lib_$ac_lib_var=no"
18386fi
18387rm -f conftest*
18388LIBS="$ac_save_LIBS"
18389
18390fi
18391if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18392 echo "$ac_t""yes" 1>&6
18393 INET_LINK="resolv"
18394else
18395 echo "$ac_t""no" 1>&6
18396echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18397echo "configure:18398: checking for inet_addr in -lsocket" >&5
18398ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18399if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18400 echo $ac_n "(cached) $ac_c" 1>&6
18401else
18402 ac_save_LIBS="$LIBS"
18403LIBS="-lsocket $LIBS"
18404cat > conftest.$ac_ext <<EOF
18405#line 18406 "configure"
18406#include "confdefs.h"
18407/* Override any gcc2 internal prototype to avoid an error. */
18408/* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410char inet_addr();
18411
18412int main() {
18413inet_addr()
18414; return 0; }
18415EOF
18416if { (eval echo configure:18417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18417 rm -rf conftest*
18418 eval "ac_cv_lib_$ac_lib_var=yes"
18419else
18420 echo "configure: failed program was:" >&5
18421 cat conftest.$ac_ext >&5
18422 rm -rf conftest*
18423 eval "ac_cv_lib_$ac_lib_var=no"
18424fi
18425rm -f conftest*
18426LIBS="$ac_save_LIBS"
18427
18428fi
18429if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18430 echo "$ac_t""yes" 1>&6
18431 INET_LINK="socket"
18432
18433else
18434 echo "$ac_t""no" 1>&6
18435fi
18436
18437
18438fi
18439
18440
18441fi
18442
18443
18444
18445fi
18446done
18447
18448
18449for ac_func in inet_aton
18450do
18451echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18452echo "configure:18453: checking for $ac_func" >&5
18453if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18454 echo $ac_n "(cached) $ac_c" 1>&6
18455else
18456 cat > conftest.$ac_ext <<EOF
18457#line 18458 "configure"
18458#include "confdefs.h"
18459/* System header to define __stub macros and hopefully few prototypes,
18460 which can conflict with char $ac_func(); below. */
18461#include <assert.h>
18462/* Override any gcc2 internal prototype to avoid an error. */
18463/* We use char because int might match the return type of a gcc2
18464 builtin and then its argument prototype would still apply. */
18465char $ac_func();
18466
18467int main() {
18468
18469/* The GNU C library defines this for functions which it implements
18470 to always fail with ENOSYS. Some functions are actually named
18471 something starting with __ and the normal name is an alias. */
18472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18473choke me
18474#else
18475$ac_func();
18476#endif
18477
18478; return 0; }
18479EOF
18480if { (eval echo configure:18481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18481 rm -rf conftest*
18482 eval "ac_cv_func_$ac_func=yes"
18483else
18484 echo "configure: failed program was:" >&5
18485 cat conftest.$ac_ext >&5
18486 rm -rf conftest*
18487 eval "ac_cv_func_$ac_func=no"
18488fi
18489rm -f conftest*
18490fi
18491
18492if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18493 echo "$ac_t""yes" 1>&6
18494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18495 cat >> confdefs.h <<EOF
18496#define $ac_tr_func 1
18497EOF
18498 cat >> confdefs.h <<\EOF
18499#define HAVE_INET_ATON 1
18500EOF
18501
18502else
18503 echo "$ac_t""no" 1>&6
18504 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18505echo "configure:18506: checking for inet_aton in -l$INET_LINK" >&5
18506ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18507if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18508 echo $ac_n "(cached) $ac_c" 1>&6
18509else
18510 ac_save_LIBS="$LIBS"
18511LIBS="-l$INET_LINK $LIBS"
18512cat > conftest.$ac_ext <<EOF
18513#line 18514 "configure"
18514#include "confdefs.h"
18515/* Override any gcc2 internal prototype to avoid an error. */
18516/* We use char because int might match the return type of a gcc2
18517 builtin and then its argument prototype would still apply. */
18518char inet_aton();
18519
18520int main() {
18521inet_aton()
18522; return 0; }
18523EOF
18524if { (eval echo configure:18525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18525 rm -rf conftest*
18526 eval "ac_cv_lib_$ac_lib_var=yes"
18527else
18528 echo "configure: failed program was:" >&5
18529 cat conftest.$ac_ext >&5
18530 rm -rf conftest*
18531 eval "ac_cv_lib_$ac_lib_var=no"
18532fi
18533rm -f conftest*
18534LIBS="$ac_save_LIBS"
18535
18536fi
18537if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18538 echo "$ac_t""yes" 1>&6
18539 cat >> confdefs.h <<\EOF
18540#define HAVE_INET_ATON 1
18541EOF
18542
18543else
18544 echo "$ac_t""no" 1>&6
18545fi
18546
18547
18548fi
18549done
18550
18551
18552if test "x$INET_LINK" != "x"; then
18553 cat >> confdefs.h <<\EOF
18554#define HAVE_INET_ADDR 1
18555EOF
18556
18557 INET_LINK=" -l$INET_LINK"
18558fi
18559
18560fi
18561
18562
18563cat > confcache <<\EOF
18564# This file is a shell script that caches the results of configure
18565# tests run on this system so they can be shared between configure
18566# scripts and configure runs. It is not useful on other systems.
18567# If it contains results you don't want to keep, you may remove or edit it.
18568#
18569# By default, configure uses ./config.cache as the cache file,
18570# creating it if it does not exist already. You can give configure
18571# the --cache-file=FILE option to use a different cache file; that is
18572# what configure does when it calls configure scripts in
18573# subdirectories, so they share the cache.
18574# Giving --cache-file=/dev/null disables caching, for debugging configure.
18575# config.status only pays attention to the cache file if you give it the
18576# --recheck option to rerun configure.
18577#
18578EOF
18579# The following way of writing the cache mishandles newlines in values,
18580# but we know of no workaround that is simple, portable, and efficient.
18581# So, don't put newlines in cache variables' values.
18582# Ultrix sh set writes to stderr and can't be redirected directly,
18583# and sets the high bit in the cache file unless we assign to the vars.
18584(set) 2>&1 |
18585 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18586 *ac_space=\ *)
18587 # `set' does not quote correctly, so add quotes (double-quote substitution
18588 # turns \\\\ into \\, and sed turns \\ into \).
18589 sed -n \
18590 -e "s/'/'\\\\''/g" \
18591 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18592 ;;
18593 *)
18594 # `set' quotes correctly as required by POSIX, so do not add quotes.
18595 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18596 ;;
18597 esac >> confcache
18598if cmp -s $cache_file confcache; then
18599 :
18600else
18601 if test -w $cache_file; then
18602 echo "updating cache $cache_file"
18603 cat confcache > $cache_file
18604 else
18605 echo "not updating unwritable cache $cache_file"
18606 fi
18607fi
18608rm -f confcache
18609
18610
18611
18612CPP_MT_FLAG=
18613if test "$TOOLKIT" != "MSW"; then
18614
18615
18616 THREADS_LINK=
18617 THREADS_CFLAGS=
18618
18619 if test "$wxUSE_THREADS" = "yes" ; then
18620 if test "$USE_BEOS" = 1; then
18621 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18622 wxUSE_THREADS="no"
18623 fi
18624 fi
18625
18626 if test "$wxUSE_THREADS" = "yes" ; then
18627
18628
18629 THREAD_OPTS="-pthread"
18630 case "${host}" in
18631 *-*-solaris2* | *-*-sunos4* )
18632 if test "x$GCC" = "xyes"; then
18633 THREAD_OPTS="-pthreads $THREAD_OPTS"
18634 else
18635 THREAD_OPTS="-mt $THREAD_OPTS"
18636 fi
18637 ;;
18638 *-*-freebsd*)
18639 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18640 ;;
18641 *-*-darwin* | *-*-cygwin* )
18642 THREAD_OPTS=""
18643 ;;
18644 *-*-aix*)
18645 THREAD_OPTS="pthreads"
18646 ;;
18647 *-hp-hpux* )
18648 if test "x$GCC" != "xyes"; then
18649 THREAD_OPTS=""
18650 fi
18651 esac
18652
18653 THREAD_OPTS="$THREAD_OPTS pthread none"
18654
18655 THREADS_OK=no
18656 for flag in $THREAD_OPTS; do
18657 case $flag in
18658 none)
18659 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18660echo "configure:18661: checking whether pthreads work without any flags" >&5
18661 ;;
18662
18663 -*)
18664 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18665echo "configure:18666: checking whether pthreads work with $flag" >&5
18666 THREADS_CFLAGS="$flag"
18667 ;;
18668
18669 *)
18670 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18671echo "configure:18672: checking for the pthreads library -l$flag" >&5
18672 THREADS_LINK="-l$flag"
18673 ;;
18674 esac
18675
18676 save_LIBS="$LIBS"
18677 save_CFLAGS="$CFLAGS"
18678 LIBS="$THREADS_LINK $LIBS"
18679 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18680
18681 cat > conftest.$ac_ext <<EOF
18682#line 18683 "configure"
18683#include "confdefs.h"
18684#include <pthread.h>
18685int main() {
18686pthread_create(0,0,0,0);
18687; return 0; }
18688EOF
18689if { (eval echo configure:18690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18690 rm -rf conftest*
18691 THREADS_OK=yes
18692else
18693 echo "configure: failed program was:" >&5
18694 cat conftest.$ac_ext >&5
18695fi
18696rm -f conftest*
18697
18698 LIBS="$save_LIBS"
18699 CFLAGS="$save_CFLAGS"
18700
18701 echo "$ac_t""$THREADS_OK" 1>&6
18702 if test "x$THREADS_OK" = "xyes"; then
18703 break;
18704 fi
18705
18706 THREADS_LINK=""
18707 THREADS_CFLAGS=""
18708 done
18709
18710 if test "x$THREADS_OK" != "xyes"; then
18711 wxUSE_THREADS=no
18712 echo "configure: warning: No thread support on this system... disabled" 1>&2
18713 else
18714 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18715 LIBS="$THREADS_LINK $LIBS"
18716
18717 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18718echo "configure:18719: checking if more special flags are required for pthreads" >&5
18719 flag=no
18720 case "${host}" in
18721 *-aix*)
18722 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18723 flag="-D_THREAD_SAFE"
18724 ;;
18725 *-freebsd*)
18726 flag="-D_THREAD_SAFE"
18727 ;;
18728 *-hp-hpux* )
18729 flag="-D_REENTRANT"
18730 if test "x$GCC" != "xyes"; then
18731 flag="$flag -D_RWSTD_MULTI_THREAD"
18732 fi
18733 ;;
18734 *solaris* | alpha*-osf*)
18735 flag="-D_REENTRANT"
18736 ;;
18737 esac
18738 echo "$ac_t""${flag}" 1>&6
18739 if test "x$flag" != xno; then
18740 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18741 fi
18742
18743 if test "x$THREADS_CFLAGS" != "x"; then
18744 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18745 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18746 fi
18747 fi
18748 fi
18749
18750 if test "$wxUSE_THREADS" = "yes" ; then
18751 for ac_func in thr_setconcurrency
18752do
18753echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18754echo "configure:18755: checking for $ac_func" >&5
18755if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18756 echo $ac_n "(cached) $ac_c" 1>&6
18757else
18758 cat > conftest.$ac_ext <<EOF
18759#line 18760 "configure"
18760#include "confdefs.h"
18761/* System header to define __stub macros and hopefully few prototypes,
18762 which can conflict with char $ac_func(); below. */
18763#include <assert.h>
18764/* Override any gcc2 internal prototype to avoid an error. */
18765/* We use char because int might match the return type of a gcc2
18766 builtin and then its argument prototype would still apply. */
18767char $ac_func();
18768
18769int main() {
18770
18771/* The GNU C library defines this for functions which it implements
18772 to always fail with ENOSYS. Some functions are actually named
18773 something starting with __ and the normal name is an alias. */
18774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18775choke me
18776#else
18777$ac_func();
18778#endif
18779
18780; return 0; }
18781EOF
18782if { (eval echo configure:18783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18783 rm -rf conftest*
18784 eval "ac_cv_func_$ac_func=yes"
18785else
18786 echo "configure: failed program was:" >&5
18787 cat conftest.$ac_ext >&5
18788 rm -rf conftest*
18789 eval "ac_cv_func_$ac_func=no"
18790fi
18791rm -f conftest*
18792fi
18793
18794if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18795 echo "$ac_t""yes" 1>&6
18796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18797 cat >> confdefs.h <<EOF
18798#define $ac_tr_func 1
18799EOF
18800
18801else
18802 echo "$ac_t""no" 1>&6
18803fi
18804done
18805
18806
18807 for ac_hdr in sched.h
18808do
18809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18811echo "configure:18812: checking for $ac_hdr" >&5
18812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18813 echo $ac_n "(cached) $ac_c" 1>&6
18814else
18815 cat > conftest.$ac_ext <<EOF
18816#line 18817 "configure"
18817#include "confdefs.h"
18818#include <$ac_hdr>
18819EOF
18820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18821{ (eval echo configure:18822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18823if test -z "$ac_err"; then
18824 rm -rf conftest*
18825 eval "ac_cv_header_$ac_safe=yes"
18826else
18827 echo "$ac_err" >&5
18828 echo "configure: failed program was:" >&5
18829 cat conftest.$ac_ext >&5
18830 rm -rf conftest*
18831 eval "ac_cv_header_$ac_safe=no"
18832fi
18833rm -f conftest*
18834fi
18835if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18836 echo "$ac_t""yes" 1>&6
18837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18838 cat >> confdefs.h <<EOF
18839#define $ac_tr_hdr 1
18840EOF
18841
18842else
18843 echo "$ac_t""no" 1>&6
18844fi
18845done
18846
18847 if test "$ac_cv_header_sched_h" = "yes"; then
18848 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18849echo "configure:18850: checking for sched_yield" >&5
18850if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18851 echo $ac_n "(cached) $ac_c" 1>&6
18852else
18853 cat > conftest.$ac_ext <<EOF
18854#line 18855 "configure"
18855#include "confdefs.h"
18856/* System header to define __stub macros and hopefully few prototypes,
18857 which can conflict with char sched_yield(); below. */
18858#include <assert.h>
18859/* Override any gcc2 internal prototype to avoid an error. */
18860/* We use char because int might match the return type of a gcc2
18861 builtin and then its argument prototype would still apply. */
18862char sched_yield();
18863
18864int main() {
18865
18866/* The GNU C library defines this for functions which it implements
18867 to always fail with ENOSYS. Some functions are actually named
18868 something starting with __ and the normal name is an alias. */
18869#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18870choke me
18871#else
18872sched_yield();
18873#endif
18874
18875; return 0; }
18876EOF
18877if { (eval echo configure:18878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18878 rm -rf conftest*
18879 eval "ac_cv_func_sched_yield=yes"
18880else
18881 echo "configure: failed program was:" >&5
18882 cat conftest.$ac_ext >&5
18883 rm -rf conftest*
18884 eval "ac_cv_func_sched_yield=no"
18885fi
18886rm -f conftest*
18887fi
18888
18889if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18890 echo "$ac_t""yes" 1>&6
18891 cat >> confdefs.h <<\EOF
18892#define HAVE_SCHED_YIELD 1
18893EOF
18894
18895else
18896 echo "$ac_t""no" 1>&6
18897
18898 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18899echo "configure:18900: checking for sched_yield in -lposix4" >&5
18900ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18901if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18902 echo $ac_n "(cached) $ac_c" 1>&6
18903else
18904 ac_save_LIBS="$LIBS"
18905LIBS="-lposix4 $LIBS"
18906cat > conftest.$ac_ext <<EOF
18907#line 18908 "configure"
18908#include "confdefs.h"
18909/* Override any gcc2 internal prototype to avoid an error. */
18910/* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
18912char sched_yield();
18913
18914int main() {
18915sched_yield()
18916; return 0; }
18917EOF
18918if { (eval echo configure:18919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18919 rm -rf conftest*
18920 eval "ac_cv_lib_$ac_lib_var=yes"
18921else
18922 echo "configure: failed program was:" >&5
18923 cat conftest.$ac_ext >&5
18924 rm -rf conftest*
18925 eval "ac_cv_lib_$ac_lib_var=no"
18926fi
18927rm -f conftest*
18928LIBS="$ac_save_LIBS"
18929
18930fi
18931if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18932 echo "$ac_t""yes" 1>&6
18933 cat >> confdefs.h <<\EOF
18934#define HAVE_SCHED_YIELD 1
18935EOF
18936 POSIX4_LINK=" -lposix4"
18937else
18938 echo "$ac_t""no" 1>&6
18939echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18940
18941fi
18942
18943
18944
18945fi
18946
18947 fi
18948
18949 HAVE_PRIOR_FUNCS=0
18950 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18951echo "configure:18952: checking for pthread_attr_getschedpolicy" >&5
18952if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18953 echo $ac_n "(cached) $ac_c" 1>&6
18954else
18955 cat > conftest.$ac_ext <<EOF
18956#line 18957 "configure"
18957#include "confdefs.h"
18958/* System header to define __stub macros and hopefully few prototypes,
18959 which can conflict with char pthread_attr_getschedpolicy(); below. */
18960#include <assert.h>
18961/* Override any gcc2 internal prototype to avoid an error. */
18962/* We use char because int might match the return type of a gcc2
18963 builtin and then its argument prototype would still apply. */
18964char pthread_attr_getschedpolicy();
18965
18966int main() {
18967
18968/* The GNU C library defines this for functions which it implements
18969 to always fail with ENOSYS. Some functions are actually named
18970 something starting with __ and the normal name is an alias. */
18971#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18972choke me
18973#else
18974pthread_attr_getschedpolicy();
18975#endif
18976
18977; return 0; }
18978EOF
18979if { (eval echo configure:18980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18980 rm -rf conftest*
18981 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18982else
18983 echo "configure: failed program was:" >&5
18984 cat conftest.$ac_ext >&5
18985 rm -rf conftest*
18986 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18987fi
18988rm -f conftest*
18989fi
18990
18991if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18992 echo "$ac_t""yes" 1>&6
18993 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18994echo "configure:18995: checking for pthread_attr_setschedparam" >&5
18995if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18996 echo $ac_n "(cached) $ac_c" 1>&6
18997else
18998 cat > conftest.$ac_ext <<EOF
18999#line 19000 "configure"
19000#include "confdefs.h"
19001/* System header to define __stub macros and hopefully few prototypes,
19002 which can conflict with char pthread_attr_setschedparam(); below. */
19003#include <assert.h>
19004/* Override any gcc2 internal prototype to avoid an error. */
19005/* We use char because int might match the return type of a gcc2
19006 builtin and then its argument prototype would still apply. */
19007char pthread_attr_setschedparam();
19008
19009int main() {
19010
19011/* The GNU C library defines this for functions which it implements
19012 to always fail with ENOSYS. Some functions are actually named
19013 something starting with __ and the normal name is an alias. */
19014#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19015choke me
19016#else
19017pthread_attr_setschedparam();
19018#endif
19019
19020; return 0; }
19021EOF
19022if { (eval echo configure:19023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19023 rm -rf conftest*
19024 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19025else
19026 echo "configure: failed program was:" >&5
19027 cat conftest.$ac_ext >&5
19028 rm -rf conftest*
19029 eval "ac_cv_func_pthread_attr_setschedparam=no"
19030fi
19031rm -f conftest*
19032fi
19033
19034if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19035 echo "$ac_t""yes" 1>&6
19036 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19037echo "configure:19038: checking for sched_get_priority_max" >&5
19038if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19039 echo $ac_n "(cached) $ac_c" 1>&6
19040else
19041 cat > conftest.$ac_ext <<EOF
19042#line 19043 "configure"
19043#include "confdefs.h"
19044/* System header to define __stub macros and hopefully few prototypes
19045else
19046 echo "$ac_t""no" 1>&6
19047which can conflict with char sched_get_priority_max(); below. */
19048#include <assert.h>
19049/* Override any gcc2 internal prototype to avoid an error. */
19050/* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052char sched_get_priority_max();
19053
19054int main() {
19055
19056/* The GNU C library defines this for functions which it implements
19057 to always fail with ENOSYS. Some functions are actually named
19058 something starting with __ and the normal name is an alias. */
19059#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19060choke me
19061#else
19062sched_get_priority_max();
19063#endif
19064
19065; return 0; }
19066EOF
19067if { (eval echo configure:19068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19068 rm -rf conftest*
19069 eval "ac_cv_func_sched_get_priority_max=yes"
19070else
19071 echo "configure: failed program was:" >&5
19072 cat conftest.$ac_ext >&5
19073 rm -rf conftest*
19074 eval "ac_cv_func_sched_get_priority_max=no"
19075fi
19076rm -f conftest*
19077fi
19078
19079if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19080 echo "$ac_t""yes" 1>&6
19081 HAVE_PRIOR_FUNCS=1
19082else
19083 echo "$ac_t""no" 1>&6
19084echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19085echo "configure:19086: checking for sched_get_priority_max in -lposix4" >&5
19086ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19087if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19088 echo $ac_n "(cached) $ac_c" 1>&6
19089else
19090 ac_save_LIBS="$LIBS"
19091LIBS="-lposix4 $LIBS"
19092cat > conftest.$ac_ext <<EOF
19093#line 19094 "configure"
19094#include "confdefs.h"
19095/* Override any gcc2 internal prototype to avoid an error. */
19096/* We use char because int might match the return type of a gcc2
19097 builtin and then its argument prototype would still apply. */
19098char sched_get_priority_max();
19099
19100int main() {
19101sched_get_priority_max()
19102; return 0; }
19103EOF
19104if { (eval echo configure:19105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19105 rm -rf conftest*
19106 eval "ac_cv_lib_$ac_lib_var=yes"
19107else
19108 echo "configure: failed program was:" >&5
19109 cat conftest.$ac_ext >&5
19110 rm -rf conftest*
19111 eval "ac_cv_lib_$ac_lib_var=no"
19112fi
19113rm -f conftest*
19114LIBS="$ac_save_LIBS"
19115
19116fi
19117if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19118 echo "$ac_t""yes" 1>&6
19119
19120 HAVE_PRIOR_FUNCS=1
19121 POSIX4_LINK=" -lposix4"
19122
19123else
19124 echo "$ac_t""no" 1>&6
19125fi
19126
19127
19128fi
19129
19130
19131else
19132 echo "$ac_t""no" 1>&6
19133fi
19134
19135
19136fi
19137
19138
19139 if test "$HAVE_PRIOR_FUNCS" = 1; then
19140 cat >> confdefs.h <<\EOF
19141#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19142EOF
19143
19144 else
19145 echo "configure: warning: Setting thread priority will not work" 1>&2
19146 fi
19147
19148 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19149echo "configure:19150: checking for pthread_cancel" >&5
19150if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19151 echo $ac_n "(cached) $ac_c" 1>&6
19152else
19153 cat > conftest.$ac_ext <<EOF
19154#line 19155 "configure"
19155#include "confdefs.h"
19156/* System header to define __stub macros and hopefully few prototypes,
19157 which can conflict with char pthread_cancel(); below. */
19158#include <assert.h>
19159/* Override any gcc2 internal prototype to avoid an error. */
19160/* We use char because int might match the return type of a gcc2
19161 builtin and then its argument prototype would still apply. */
19162char pthread_cancel();
19163
19164int main() {
19165
19166/* The GNU C library defines this for functions which it implements
19167 to always fail with ENOSYS. Some functions are actually named
19168 something starting with __ and the normal name is an alias. */
19169#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19170choke me
19171#else
19172pthread_cancel();
19173#endif
19174
19175; return 0; }
19176EOF
19177if { (eval echo configure:19178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19178 rm -rf conftest*
19179 eval "ac_cv_func_pthread_cancel=yes"
19180else
19181 echo "configure: failed program was:" >&5
19182 cat conftest.$ac_ext >&5
19183 rm -rf conftest*
19184 eval "ac_cv_func_pthread_cancel=no"
19185fi
19186rm -f conftest*
19187fi
19188
19189if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19190 echo "$ac_t""yes" 1>&6
19191 cat >> confdefs.h <<\EOF
19192#define HAVE_PTHREAD_CANCEL 1
19193EOF
19194
19195else
19196 echo "$ac_t""no" 1>&6
19197echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19198fi
19199
19200
19201 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19202echo "configure:19203: checking for pthread_cleanup_push/pop" >&5
19203if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
19205else
19206
19207 cat > conftest.$ac_ext <<EOF
19208#line 19209 "configure"
19209#include "confdefs.h"
19210#include <pthread.h>
19211int main() {
19212
19213 pthread_cleanup_push(NULL, NULL);
19214 pthread_cleanup_pop(0);
19215
19216; return 0; }
19217EOF
19218if { (eval echo configure:19219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19219 rm -rf conftest*
19220
19221 wx_cv_func_pthread_cleanup_push=yes
19222
19223else
19224 echo "configure: failed program was:" >&5
19225 cat conftest.$ac_ext >&5
19226 rm -rf conftest*
19227
19228 wx_cv_func_pthread_cleanup_push=no
19229
19230fi
19231rm -f conftest*
19232
19233fi
19234
19235echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19236
19237 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19238 cat >> confdefs.h <<\EOF
19239#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19240EOF
19241
19242 fi
19243
19244
19245 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19246echo "configure:19247: checking for pthread_mutexattr_t" >&5
19247if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19248 echo $ac_n "(cached) $ac_c" 1>&6
19249else
19250
19251 cat > conftest.$ac_ext <<EOF
19252#line 19253 "configure"
19253#include "confdefs.h"
19254#include <pthread.h>
19255int main() {
19256
19257 pthread_mutexattr_t attr;
19258 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19259
19260; return 0; }
19261EOF
19262if { (eval echo configure:19263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19263 rm -rf conftest*
19264
19265 wx_cv_type_pthread_mutexattr_t=yes
19266
19267else
19268 echo "configure: failed program was:" >&5
19269 cat conftest.$ac_ext >&5
19270 rm -rf conftest*
19271
19272 wx_cv_type_pthread_mutexattr_t=no
19273
19274
19275fi
19276rm -f conftest*
19277
19278fi
19279
19280echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19281
19282 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19283 cat >> confdefs.h <<\EOF
19284#define HAVE_PTHREAD_MUTEXATTR_T 1
19285EOF
19286
19287 else
19288 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19289echo "configure:19290: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19290if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19291 echo $ac_n "(cached) $ac_c" 1>&6
19292else
19293
19294 cat > conftest.$ac_ext <<EOF
19295#line 19296 "configure"
19296#include "confdefs.h"
19297#include <pthread.h>
19298int main() {
19299
19300 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19301
19302; return 0; }
19303EOF
19304if { (eval echo configure:19305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19305 rm -rf conftest*
19306
19307 wx_cv_type_pthread_rec_mutex_init=yes
19308
19309else
19310 echo "configure: failed program was:" >&5
19311 cat conftest.$ac_ext >&5
19312 rm -rf conftest*
19313
19314 wx_cv_type_pthread_rec_mutex_init=no
19315
19316
19317fi
19318rm -f conftest*
19319
19320fi
19321
19322echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19323 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19324 cat >> confdefs.h <<\EOF
19325#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19326EOF
19327
19328 else
19329 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19330 fi
19331 fi
19332 fi
19333
19334else
19335 if test "$wxUSE_THREADS" = "yes" ; then
19336 case "${host}" in
19337 *-*-mingw32* )
19338 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19339echo "configure:19340: checking if compiler supports -mthreads" >&5
19340if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19341 echo $ac_n "(cached) $ac_c" 1>&6
19342else
19343
19344 CFLAGS_OLD="$CFLAGS"
19345 CFLAGS="$CFLAGS -mthreads"
19346 cat > conftest.$ac_ext <<EOF
19347#line 19348 "configure"
19348#include "confdefs.h"
19349
19350int main() {
19351
19352; return 0; }
19353EOF
19354if { (eval echo configure:19355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19355 rm -rf conftest*
19356 wx_cv_cflags_mthread=yes
19357else
19358 echo "configure: failed program was:" >&5
19359 cat conftest.$ac_ext >&5
19360 rm -rf conftest*
19361 wx_cv_cflags_mthread=no
19362
19363fi
19364rm -f conftest*
19365
19366
19367fi
19368
19369echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19370
19371 if test "$wx_cv_cflags_mthread" = "yes"; then
19372 CXXFLAGS="$CXXFLAGS -mthreads"
19373 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19374 LDFLAGS="$LDFLAGS -mthreads"
19375 else
19376 CFLAGS="$CFLAGS_OLD"
19377 fi
19378 ;;
19379 esac
19380 fi
19381fi
19382
19383if test "$wxUSE_THREADS" = "yes"; then
19384 cat >> confdefs.h <<\EOF
19385#define wxUSE_THREADS 1
19386EOF
19387
19388
19389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19390else
19391 if test "$ac_cv_func_strtok_r" = "yes"; then
19392 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19393echo "configure:19394: checking if -D_REENTRANT is needed" >&5
19394 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19395 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19396 echo "$ac_t""yes" 1>&6
19397 else
19398 echo "$ac_t""no" 1>&6
19399 fi
19400 fi
19401fi
19402
19403if test "$WXGTK20" = 1 ; then
19404 cat >> confdefs.h <<EOF
19405#define __WXGTK20__ $WXGTK20
19406EOF
19407
19408 WXGTK12=1
19409fi
19410
19411if test "$WXGTK12" = 1 ; then
19412 cat >> confdefs.h <<EOF
19413#define __WXGTK12__ $WXGTK12
19414EOF
19415
19416fi
19417
19418if test "$WXGTK127" = 1 ; then
19419 cat >> confdefs.h <<EOF
19420#define __WXGTK127__ $WXGTK127
19421EOF
19422
19423fi
19424
19425WXDEBUG=
19426
19427if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19428 WXDEBUG="-g"
19429 wxUSE_OPTIMISE=no
19430fi
19431
19432if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19433 wxUSE_DEBUG_INFO=yes
19434 WXDEBUG="-ggdb"
19435fi
19436
19437if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19438 cat >> confdefs.h <<\EOF
19439#define WXDEBUG 1
19440EOF
19441
19442 WXDEBUG_DEFINE="-D__WXDEBUG__"
19443else
19444 if test "$wxUSE_GTK" = 1 ; then
19445 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19446 fi
19447fi
19448
19449if test "$wxUSE_MEM_TRACING" = "yes" ; then
19450 cat >> confdefs.h <<\EOF
19451#define wxUSE_MEMORY_TRACING 1
19452EOF
19453
19454 cat >> confdefs.h <<\EOF
19455#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19456EOF
19457
19458 cat >> confdefs.h <<\EOF
19459#define wxUSE_DEBUG_NEW_ALWAYS 1
19460EOF
19461
19462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19463fi
19464
19465if test "$wxUSE_DMALLOC" = "yes" ; then
19466 DMALLOC_LIBS="-ldmalloc"
19467fi
19468
19469PROFILE=
19470if test "$wxUSE_PROFILE" = "yes" ; then
19471 PROFILE=" -pg"
19472fi
19473
19474CODE_GEN_FLAGS=
19475CODE_GEN_FLAGS_CXX=
19476if test "$GCC" = "yes" ; then
19477 if test "$wxUSE_NO_RTTI" = "yes" ; then
19478 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19479 fi
19480 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19481 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19482 fi
19483 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19484 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19485 fi
19486 if test "$USE_WIN32" = 1 ; then
19487 # I'm not even really sure what this was ever added to solve,
19488 # but someone added it for mingw native builds, so I guess
19489 # they had a reason, right??
19490 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19491 fi
19492
19493 case "${host}" in
19494 powerpc*-*-aix* )
19495 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19496 ;;
19497 *-hppa* )
19498 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19499 ;;
19500 esac
19501fi
19502
19503OPTIMISE=
19504if test "$wxUSE_OPTIMISE" = "no" ; then
19505 if test "$GCC" = yes ; then
19506 OPTIMISE="-O0"
19507 fi
19508else
19509 if test "$GCC" = yes ; then
19510 OPTIMISE="-O2"
19511
19512 case "${host}" in
19513 i586-*-*|i686-*-* )
19514 OPTIMISE="${OPTIMISE} "
19515 ;;
19516 esac
19517 else
19518 OPTIMISE="-O"
19519 fi
19520fi
19521
19522
19523if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19524 cat >> confdefs.h <<\EOF
19525#define WXWIN_COMPATIBILITY_2 1
19526EOF
19527
19528
19529 WXWIN_COMPATIBILITY_2_2="yes"
19530fi
19531
19532if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19533 cat >> confdefs.h <<\EOF
19534#define WXWIN_COMPATIBILITY_2_2 1
19535EOF
19536
19537
19538 WXWIN_COMPATIBILITY_2_4="yes"
19539fi
19540
19541if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19542 cat >> confdefs.h <<\EOF
19543#define WXWIN_COMPATIBILITY_2_4 1
19544EOF
19545
19546fi
19547
19548
19549if test "$wxUSE_GUI" = "yes"; then
19550 cat >> confdefs.h <<\EOF
19551#define wxUSE_GUI 1
19552EOF
19553
19554
19555 else
19556 cat >> confdefs.h <<\EOF
19557#define wxUSE_NOGUI 1
19558EOF
19559
19560fi
19561
19562
19563if test "$wxUSE_UNIX" = "yes"; then
19564 cat >> confdefs.h <<\EOF
19565#define wxUSE_UNIX 1
19566EOF
19567
19568fi
19569
19570
19571if test "$wxUSE_APPLE_IEEE" = "yes"; then
19572 cat >> confdefs.h <<\EOF
19573#define wxUSE_APPLE_IEEE 1
19574EOF
19575
19576fi
19577
19578if test "$wxUSE_TIMER" = "yes"; then
19579 cat >> confdefs.h <<\EOF
19580#define wxUSE_TIMER 1
19581EOF
19582
19583fi
19584
19585if test "$wxUSE_WAVE" = "yes"; then
19586 cat >> confdefs.h <<\EOF
19587#define wxUSE_WAVE 1
19588EOF
19589
19590fi
19591
19592if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19593 cat >> confdefs.h <<\EOF
19594#define wxUSE_CMDLINE_PARSER 1
19595EOF
19596
19597fi
19598
19599if test "$wxUSE_STOPWATCH" = "yes"; then
19600 cat >> confdefs.h <<\EOF
19601#define wxUSE_STOPWATCH 1
19602EOF
19603
19604fi
19605
19606if test "$wxUSE_DATETIME" = "yes"; then
19607 cat >> confdefs.h <<\EOF
19608#define wxUSE_DATETIME 1
19609EOF
19610
19611fi
19612
19613if test "$wxUSE_TIMEDATE" = "yes"; then
19614 cat >> confdefs.h <<\EOF
19615#define wxUSE_TIMEDATE 1
19616EOF
19617
19618fi
19619
19620if test "$wxUSE_FILE" = "yes"; then
19621 cat >> confdefs.h <<\EOF
19622#define wxUSE_FILE 1
19623EOF
19624
19625fi
19626
19627if test "$wxUSE_FFILE" = "yes"; then
19628 cat >> confdefs.h <<\EOF
19629#define wxUSE_FFILE 1
19630EOF
19631
19632fi
19633
19634if test "$wxUSE_FILESYSTEM" = "yes"; then
19635 cat >> confdefs.h <<\EOF
19636#define wxUSE_FILESYSTEM 1
19637EOF
19638
19639fi
19640
19641if test "$wxUSE_FS_INET" = "yes"; then
19642 cat >> confdefs.h <<\EOF
19643#define wxUSE_FS_INET 1
19644EOF
19645
19646fi
19647
19648if test "$wxUSE_FS_ZIP" = "yes"; then
19649 cat >> confdefs.h <<\EOF
19650#define wxUSE_FS_ZIP 1
19651EOF
19652
19653fi
19654
19655if test "$wxUSE_ZIPSTREAM" = "yes"; then
19656 cat >> confdefs.h <<\EOF
19657#define wxUSE_ZIPSTREAM 1
19658EOF
19659
19660fi
19661
19662if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19663 cat >> confdefs.h <<\EOF
19664#define wxUSE_ON_FATAL_EXCEPTION 1
19665EOF
19666
19667fi
19668
19669if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19670 cat >> confdefs.h <<\EOF
19671#define wxUSE_SNGLINST_CHECKER 1
19672EOF
19673
19674fi
19675
19676if test "$wxUSE_BUSYINFO" = "yes"; then
19677 cat >> confdefs.h <<\EOF
19678#define wxUSE_BUSYINFO 1
19679EOF
19680
19681fi
19682
19683if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19684 cat >> confdefs.h <<\EOF
19685#define wxUSE_STD_IOSTREAM 1
19686EOF
19687
19688fi
19689
19690if test "$wxUSE_TEXTBUFFER" = "yes"; then
19691 cat >> confdefs.h <<\EOF
19692#define wxUSE_TEXTBUFFER 1
19693EOF
19694
19695fi
19696
19697if test "$wxUSE_TEXTFILE" = "yes"; then
19698 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19699 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19700 else
19701 cat >> confdefs.h <<\EOF
19702#define wxUSE_TEXTFILE 1
19703EOF
19704
19705 fi
19706fi
19707
19708if test "$wxUSE_CONFIG" = "yes" ; then
19709 if test "$wxUSE_TEXTFILE" != "yes"; then
19710 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19711 else
19712 cat >> confdefs.h <<\EOF
19713#define wxUSE_CONFIG 1
19714EOF
19715
19716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19717 fi
19718fi
19719
19720if test "$wxUSE_INTL" = "yes" ; then
19721 if test "$wxUSE_FILE" != "yes"; then
19722 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19723 else
19724 cat >> confdefs.h <<\EOF
19725#define wxUSE_INTL 1
19726EOF
19727
19728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19729 GUIDIST="$GUIDIST INTL_DIST"
19730 fi
19731fi
19732
19733if test "$wxUSE_LOG" = "yes"; then
19734 cat >> confdefs.h <<\EOF
19735#define wxUSE_LOG 1
19736EOF
19737
19738
19739 if test "$wxUSE_LOGGUI" = "yes"; then
19740 cat >> confdefs.h <<\EOF
19741#define wxUSE_LOGGUI 1
19742EOF
19743
19744 fi
19745
19746 if test "$wxUSE_LOGWINDOW" = "yes"; then
19747 cat >> confdefs.h <<\EOF
19748#define wxUSE_LOGWINDOW 1
19749EOF
19750
19751 fi
19752
19753 if test "$wxUSE_LOGDIALOG" = "yes"; then
19754 cat >> confdefs.h <<\EOF
19755#define wxUSE_LOG_DIALOG 1
19756EOF
19757
19758 fi
19759fi
19760
19761if test "$wxUSE_LONGLONG" = "yes"; then
19762 cat >> confdefs.h <<\EOF
19763#define wxUSE_LONGLONG 1
19764EOF
19765
19766fi
19767
19768if test "$wxUSE_GEOMETRY" = "yes"; then
19769 cat >> confdefs.h <<\EOF
19770#define wxUSE_GEOMETRY 1
19771EOF
19772
19773fi
19774
19775if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19776 cat >> confdefs.h <<\EOF
19777#define wxUSE_DIALUP_MANAGER 1
19778EOF
19779
19780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19781fi
19782
19783if test "$wxUSE_STREAMS" = "yes" ; then
19784 cat >> confdefs.h <<\EOF
19785#define wxUSE_STREAMS 1
19786EOF
19787
19788fi
19789
19790
19791if test "$wxUSE_DATETIME" = "yes"; then
19792 for ac_func in strptime
19793do
19794echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19795echo "configure:19796: checking for $ac_func" >&5
19796if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19797 echo $ac_n "(cached) $ac_c" 1>&6
19798else
19799 cat > conftest.$ac_ext <<EOF
19800#line 19801 "configure"
19801#include "confdefs.h"
19802/* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char $ac_func(); below. */
19804#include <assert.h>
19805/* Override any gcc2 internal prototype to avoid an error. */
19806/* We use char because int might match the return type of a gcc2
19807 builtin and then its argument prototype would still apply. */
19808char $ac_func();
19809
19810int main() {
19811
19812/* The GNU C library defines this for functions which it implements
19813 to always fail with ENOSYS. Some functions are actually named
19814 something starting with __ and the normal name is an alias. */
19815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19816choke me
19817#else
19818$ac_func();
19819#endif
19820
19821; return 0; }
19822EOF
19823if { (eval echo configure:19824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19824 rm -rf conftest*
19825 eval "ac_cv_func_$ac_func=yes"
19826else
19827 echo "configure: failed program was:" >&5
19828 cat conftest.$ac_ext >&5
19829 rm -rf conftest*
19830 eval "ac_cv_func_$ac_func=no"
19831fi
19832rm -f conftest*
19833fi
19834
19835if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19836 echo "$ac_t""yes" 1>&6
19837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19838 cat >> confdefs.h <<EOF
19839#define $ac_tr_func 1
19840EOF
19841
19842else
19843 echo "$ac_t""no" 1>&6
19844fi
19845done
19846
19847
19848 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19849echo "configure:19850: checking for timezone variable in <time.h>" >&5
19850if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19851 echo $ac_n "(cached) $ac_c" 1>&6
19852else
19853
19854 cat > conftest.$ac_ext <<EOF
19855#line 19856 "configure"
19856#include "confdefs.h"
19857
19858 #include <time.h>
19859
19860int main() {
19861
19862 int tz;
19863 tz = timezone;
19864
19865; return 0; }
19866EOF
19867if { (eval echo configure:19868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19868 rm -rf conftest*
19869
19870 wx_cv_var_timezone=timezone
19871
19872else
19873 echo "configure: failed program was:" >&5
19874 cat conftest.$ac_ext >&5
19875 rm -rf conftest*
19876
19877 cat > conftest.$ac_ext <<EOF
19878#line 19879 "configure"
19879#include "confdefs.h"
19880
19881 #include <time.h>
19882
19883int main() {
19884
19885 int tz;
19886 tz = _timezone;
19887
19888; return 0; }
19889EOF
19890if { (eval echo configure:19891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19891 rm -rf conftest*
19892
19893 wx_cv_var_timezone=_timezone
19894
19895else
19896 echo "configure: failed program was:" >&5
19897 cat conftest.$ac_ext >&5
19898 rm -rf conftest*
19899
19900 cat > conftest.$ac_ext <<EOF
19901#line 19902 "configure"
19902#include "confdefs.h"
19903
19904 #include <time.h>
19905
19906int main() {
19907
19908 int tz;
19909 tz = __timezone;
19910
19911; return 0; }
19912EOF
19913if { (eval echo configure:19914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19914 rm -rf conftest*
19915
19916 wx_cv_var_timezone=__timezone
19917
19918else
19919 echo "configure: failed program was:" >&5
19920 cat conftest.$ac_ext >&5
19921 rm -rf conftest*
19922
19923 if test "$USE_DOS" = 0 ; then
19924 echo "configure: warning: no timezone variable" 1>&2
19925 fi
19926
19927
19928fi
19929rm -f conftest*
19930
19931
19932fi
19933rm -f conftest*
19934
19935
19936fi
19937rm -f conftest*
19938
19939
19940fi
19941
19942echo "$ac_t""$wx_cv_var_timezone" 1>&6
19943
19944 if test "x$wx_cv_var_timezone" != x ; then
19945 cat >> confdefs.h <<EOF
19946#define WX_TIMEZONE $wx_cv_var_timezone
19947EOF
19948
19949 fi
19950
19951 for ac_func in localtime
19952do
19953echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19954echo "configure:19955: checking for $ac_func" >&5
19955if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19956 echo $ac_n "(cached) $ac_c" 1>&6
19957else
19958 cat > conftest.$ac_ext <<EOF
19959#line 19960 "configure"
19960#include "confdefs.h"
19961/* System header to define __stub macros and hopefully few prototypes,
19962 which can conflict with char $ac_func(); below. */
19963#include <assert.h>
19964/* Override any gcc2 internal prototype to avoid an error. */
19965/* We use char because int might match the return type of a gcc2
19966 builtin and then its argument prototype would still apply. */
19967char $ac_func();
19968
19969int main() {
19970
19971/* The GNU C library defines this for functions which it implements
19972 to always fail with ENOSYS. Some functions are actually named
19973 something starting with __ and the normal name is an alias. */
19974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19975choke me
19976#else
19977$ac_func();
19978#endif
19979
19980; return 0; }
19981EOF
19982if { (eval echo configure:19983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19983 rm -rf conftest*
19984 eval "ac_cv_func_$ac_func=yes"
19985else
19986 echo "configure: failed program was:" >&5
19987 cat conftest.$ac_ext >&5
19988 rm -rf conftest*
19989 eval "ac_cv_func_$ac_func=no"
19990fi
19991rm -f conftest*
19992fi
19993
19994if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19995 echo "$ac_t""yes" 1>&6
19996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19997 cat >> confdefs.h <<EOF
19998#define $ac_tr_func 1
19999EOF
20000
20001else
20002 echo "$ac_t""no" 1>&6
20003fi
20004done
20005
20006
20007 if test "$ac_cv_func_localtime" = "yes"; then
20008 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20009echo "configure:20010: checking for tm_gmtoff in struct tm" >&5
20010if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20011 echo $ac_n "(cached) $ac_c" 1>&6
20012else
20013
20014 cat > conftest.$ac_ext <<EOF
20015#line 20016 "configure"
20016#include "confdefs.h"
20017
20018 #include <time.h>
20019
20020int main() {
20021
20022 struct tm tm;
20023 tm.tm_gmtoff++;
20024
20025; return 0; }
20026EOF
20027if { (eval echo configure:20028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20028 rm -rf conftest*
20029
20030 wx_cv_struct_tm_has_gmtoff=yes
20031
20032else
20033 echo "configure: failed program was:" >&5
20034 cat conftest.$ac_ext >&5
20035 rm -rf conftest*
20036 wx_cv_struct_tm_has_gmtoff=no
20037
20038fi
20039rm -f conftest*
20040
20041fi
20042
20043echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20044 fi
20045
20046 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20047 cat >> confdefs.h <<\EOF
20048#define WX_GMTOFF_IN_TM 1
20049EOF
20050
20051 fi
20052
20053 for ac_func in gettimeofday ftime
20054do
20055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20056echo "configure:20057: checking for $ac_func" >&5
20057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20058 echo $ac_n "(cached) $ac_c" 1>&6
20059else
20060 cat > conftest.$ac_ext <<EOF
20061#line 20062 "configure"
20062#include "confdefs.h"
20063/* System header to define __stub macros and hopefully few prototypes,
20064 which can conflict with char $ac_func(); below. */
20065#include <assert.h>
20066/* Override any gcc2 internal prototype to avoid an error. */
20067/* We use char because int might match the return type of a gcc2
20068 builtin and then its argument prototype would still apply. */
20069char $ac_func();
20070
20071int main() {
20072
20073/* The GNU C library defines this for functions which it implements
20074 to always fail with ENOSYS. Some functions are actually named
20075 something starting with __ and the normal name is an alias. */
20076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20077choke me
20078#else
20079$ac_func();
20080#endif
20081
20082; return 0; }
20083EOF
20084if { (eval echo configure:20085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20085 rm -rf conftest*
20086 eval "ac_cv_func_$ac_func=yes"
20087else
20088 echo "configure: failed program was:" >&5
20089 cat conftest.$ac_ext >&5
20090 rm -rf conftest*
20091 eval "ac_cv_func_$ac_func=no"
20092fi
20093rm -f conftest*
20094fi
20095
20096if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20097 echo "$ac_t""yes" 1>&6
20098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20099 cat >> confdefs.h <<EOF
20100#define $ac_tr_func 1
20101EOF
20102 break
20103else
20104 echo "$ac_t""no" 1>&6
20105fi
20106done
20107
20108
20109 if test "$ac_cv_func_gettimeofday" = "yes"; then
20110 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20111echo "configure:20112: checking whether gettimeofday takes two arguments" >&5
20112if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20113 echo $ac_n "(cached) $ac_c" 1>&6
20114else
20115
20116
20117 ac_ext=C
20118# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20119ac_cpp='$CXXCPP $CPPFLAGS'
20120ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20121ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20122cross_compiling=$ac_cv_prog_cxx_cross
20123
20124
20125 cat > conftest.$ac_ext <<EOF
20126#line 20127 "configure"
20127#include "confdefs.h"
20128
20129 #include <sys/time.h>
20130 #include <unistd.h>
20131
20132int main() {
20133
20134 struct timeval tv;
20135 gettimeofday(&tv, NULL);
20136
20137; return 0; }
20138EOF
20139if { (eval echo configure:20140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20140 rm -rf conftest*
20141 wx_cv_func_gettimeofday_has_2_args=yes
20142else
20143 echo "configure: failed program was:" >&5
20144 cat conftest.$ac_ext >&5
20145 rm -rf conftest*
20146 cat > conftest.$ac_ext <<EOF
20147#line 20148 "configure"
20148#include "confdefs.h"
20149
20150 #include <sys/time.h>
20151 #include <unistd.h>
20152
20153int main() {
20154
20155 struct timeval tv;
20156 gettimeofday(&tv);
20157
20158; return 0; }
20159EOF
20160if { (eval echo configure:20161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20161 rm -rf conftest*
20162 wx_cv_func_gettimeofday_has_2_args=no
20163else
20164 echo "configure: failed program was:" >&5
20165 cat conftest.$ac_ext >&5
20166 rm -rf conftest*
20167
20168 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20169 wx_cv_func_gettimeofday_has_2_args=unknown
20170
20171
20172fi
20173rm -f conftest*
20174
20175fi
20176rm -f conftest*
20177 ac_ext=c
20178# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20179ac_cpp='$CPP $CPPFLAGS'
20180ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20181ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20182cross_compiling=$ac_cv_prog_cc_cross
20183
20184
20185fi
20186
20187echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20188
20189 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20190 cat >> confdefs.h <<\EOF
20191#define WX_GETTIMEOFDAY_NO_TZ 1
20192EOF
20193
20194 fi
20195 fi
20196
20197 cat >> confdefs.h <<\EOF
20198#define wxUSE_TIMEDATE 1
20199EOF
20200
20201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20202fi
20203
20204
20205if test "$wxUSE_SOCKETS" = "yes"; then
20206 if test "$wxUSE_MGL" = "1"; then
20207 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20208 wxUSE_SOCKETS="no"
20209 fi
20210fi
20211
20212if test "$wxUSE_SOCKETS" = "yes"; then
20213 if test "$TOOLKIT" != "MSW"; then
20214 echo $ac_n "checking for socket""... $ac_c" 1>&6
20215echo "configure:20216: checking for socket" >&5
20216if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20217 echo $ac_n "(cached) $ac_c" 1>&6
20218else
20219 cat > conftest.$ac_ext <<EOF
20220#line 20221 "configure"
20221#include "confdefs.h"
20222/* System header to define __stub macros and hopefully few prototypes,
20223 which can conflict with char socket(); below. */
20224#include <assert.h>
20225/* Override any gcc2 internal prototype to avoid an error. */
20226/* We use char because int might match the return type of a gcc2
20227 builtin and then its argument prototype would still apply. */
20228char socket();
20229
20230int main() {
20231
20232/* The GNU C library defines this for functions which it implements
20233 to always fail with ENOSYS. Some functions are actually named
20234 something starting with __ and the normal name is an alias. */
20235#if defined (__stub_socket) || defined (__stub___socket)
20236choke me
20237#else
20238socket();
20239#endif
20240
20241; return 0; }
20242EOF
20243if { (eval echo configure:20244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20244 rm -rf conftest*
20245 eval "ac_cv_func_socket=yes"
20246else
20247 echo "configure: failed program was:" >&5
20248 cat conftest.$ac_ext >&5
20249 rm -rf conftest*
20250 eval "ac_cv_func_socket=no"
20251fi
20252rm -f conftest*
20253fi
20254
20255if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20256 echo "$ac_t""yes" 1>&6
20257 :
20258else
20259 echo "$ac_t""no" 1>&6
20260echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20261echo "configure:20262: checking for socket in -lsocket" >&5
20262ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20264 echo $ac_n "(cached) $ac_c" 1>&6
20265else
20266 ac_save_LIBS="$LIBS"
20267LIBS="-lsocket $LIBS"
20268cat > conftest.$ac_ext <<EOF
20269#line 20270 "configure"
20270#include "confdefs.h"
20271/* Override any gcc2 internal prototype to avoid an error. */
20272/* We use char because int might match the return type of a gcc2
20273 builtin and then its argument prototype would still apply. */
20274char socket();
20275
20276int main() {
20277socket()
20278; return 0; }
20279EOF
20280if { (eval echo configure:20281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20281 rm -rf conftest*
20282 eval "ac_cv_lib_$ac_lib_var=yes"
20283else
20284 echo "configure: failed program was:" >&5
20285 cat conftest.$ac_ext >&5
20286 rm -rf conftest*
20287 eval "ac_cv_lib_$ac_lib_var=no"
20288fi
20289rm -f conftest*
20290LIBS="$ac_save_LIBS"
20291
20292fi
20293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20294 echo "$ac_t""yes" 1>&6
20295 if test "$INET_LINK" != " -lsocket"; then
20296 INET_LINK="$INET_LINK -lsocket"
20297 fi
20298else
20299 echo "$ac_t""no" 1>&6
20300
20301 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20302 wxUSE_SOCKETS=no
20303
20304
20305fi
20306
20307
20308fi
20309
20310 fi
20311fi
20312
20313if test "$wxUSE_SOCKETS" = "yes" ; then
20314 if test "$TOOLKIT" != "MSW"; then
20315 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20316echo "configure:20317: checking what is the type of the third argument of getsockname" >&5
20317if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20318 echo $ac_n "(cached) $ac_c" 1>&6
20319else
20320
20321
20322 ac_ext=C
20323# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20324ac_cpp='$CXXCPP $CPPFLAGS'
20325ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20326ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20327cross_compiling=$ac_cv_prog_cxx_cross
20328
20329
20330 cat > conftest.$ac_ext <<EOF
20331#line 20332 "configure"
20332#include "confdefs.h"
20333
20334 #include <sys/types.h>
20335 #include <sys/socket.h>
20336
20337int main() {
20338
20339 socklen_t len;
20340 getsockname(0, 0, &len);
20341
20342; return 0; }
20343EOF
20344if { (eval echo configure:20345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20345 rm -rf conftest*
20346 wx_cv_type_getsockname3=socklen_t
20347else
20348 echo "configure: failed program was:" >&5
20349 cat conftest.$ac_ext >&5
20350 rm -rf conftest*
20351 cat > conftest.$ac_ext <<EOF
20352#line 20353 "configure"
20353#include "confdefs.h"
20354
20355 #include <sys/types.h>
20356 #include <sys/socket.h>
20357
20358int main() {
20359
20360 size_t len;
20361 getsockname(0, 0, &len);
20362
20363; return 0; }
20364EOF
20365if { (eval echo configure:20366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20366 rm -rf conftest*
20367 wx_cv_type_getsockname3=size_t
20368else
20369 echo "configure: failed program was:" >&5
20370 cat conftest.$ac_ext >&5
20371 rm -rf conftest*
20372 cat > conftest.$ac_ext <<EOF
20373#line 20374 "configure"
20374#include "confdefs.h"
20375
20376 #include <sys/types.h>
20377 #include <sys/socket.h>
20378
20379int main() {
20380
20381 int len;
20382 getsockname(0, 0, &len);
20383
20384; return 0; }
20385EOF
20386if { (eval echo configure:20387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20387 rm -rf conftest*
20388 wx_cv_type_getsockname3=int
20389else
20390 echo "configure: failed program was:" >&5
20391 cat conftest.$ac_ext >&5
20392 rm -rf conftest*
20393 wx_cv_type_getsockname3=unknown
20394
20395fi
20396rm -f conftest*
20397
20398fi
20399rm -f conftest*
20400
20401fi
20402rm -f conftest*
20403
20404 ac_ext=c
20405# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20406ac_cpp='$CPP $CPPFLAGS'
20407ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20408ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20409cross_compiling=$ac_cv_prog_cc_cross
20410
20411
20412fi
20413
20414echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20415
20416 if test "$wx_cv_type_getsockname3" = "unknown"; then
20417 wxUSE_SOCKETS=no
20418 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20419 else
20420 cat >> confdefs.h <<EOF
20421#define SOCKLEN_T $wx_cv_type_getsockname3
20422EOF
20423
20424 fi
20425 fi
20426fi
20427
20428if test "$wxUSE_SOCKETS" = "yes" ; then
20429 cat >> confdefs.h <<\EOF
20430#define wxUSE_SOCKETS 1
20431EOF
20432
20433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20434fi
20435
20436
20437if test "$wxUSE_GUI" = "yes"; then
20438
20439 if test "$TOOLKIT" = "MAC"; then
20440 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20441 wxUSE_JOYSTICK=no
20442 fi
20443 if test "$TOOLKIT" = "MOTIF"; then
20444 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20445 wxUSE_JOYSTICK=no
20446 fi
20447 if test "$TOOLKIT" = "X11"; then
20448 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20449 wxUSE_JOYSTICK=no
20450 fi
20451
20452 if test "$TOOLKIT" != "MSW"; then
20453 if test "$wxUSE_JOYSTICK" = "yes"; then
20454 for ac_hdr in linux/joystick.h
20455do
20456ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20457echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20458echo "configure:20459: checking for $ac_hdr" >&5
20459if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20460 echo $ac_n "(cached) $ac_c" 1>&6
20461else
20462 cat > conftest.$ac_ext <<EOF
20463#line 20464 "configure"
20464#include "confdefs.h"
20465#include <$ac_hdr>
20466EOF
20467ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20468{ (eval echo configure:20469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20469ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20470if test -z "$ac_err"; then
20471 rm -rf conftest*
20472 eval "ac_cv_header_$ac_safe=yes"
20473else
20474 echo "$ac_err" >&5
20475 echo "configure: failed program was:" >&5
20476 cat conftest.$ac_ext >&5
20477 rm -rf conftest*
20478 eval "ac_cv_header_$ac_safe=no"
20479fi
20480rm -f conftest*
20481fi
20482if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20483 echo "$ac_t""yes" 1>&6
20484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20485 cat >> confdefs.h <<EOF
20486#define $ac_tr_hdr 1
20487EOF
20488
20489else
20490 echo "$ac_t""no" 1>&6
20491fi
20492done
20493
20494 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20495 wxUSE_JOYSTICK=no
20496 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20497 fi
20498 fi
20499 fi
20500
20501 if test "$wxUSE_JOYSTICK" = "yes"; then
20502 cat >> confdefs.h <<\EOF
20503#define wxUSE_JOYSTICK 1
20504EOF
20505
20506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20507 fi
20508fi
20509
20510
20511if test "$TOOLKIT" != "MSW"; then
20512
20513 HAVE_DL_FUNCS=0
20514 HAVE_SHL_FUNCS=0
20515 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20516 if test "$USE_DARWIN" = 1; then
20517 HAVE_DL_FUNCS=1
20518 else
20519 for ac_func in dlopen
20520do
20521echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20522echo "configure:20523: checking for $ac_func" >&5
20523if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20524 echo $ac_n "(cached) $ac_c" 1>&6
20525else
20526 cat > conftest.$ac_ext <<EOF
20527#line 20528 "configure"
20528#include "confdefs.h"
20529/* System header to define __stub macros and hopefully few prototypes,
20530 which can conflict with char $ac_func(); below. */
20531#include <assert.h>
20532/* Override any gcc2 internal prototype to avoid an error. */
20533/* We use char because int might match the return type of a gcc2
20534 builtin and then its argument prototype would still apply. */
20535char $ac_func();
20536
20537int main() {
20538
20539/* The GNU C library defines this for functions which it implements
20540 to always fail with ENOSYS. Some functions are actually named
20541 something starting with __ and the normal name is an alias. */
20542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20543choke me
20544#else
20545$ac_func();
20546#endif
20547
20548; return 0; }
20549EOF
20550if { (eval echo configure:20551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20551 rm -rf conftest*
20552 eval "ac_cv_func_$ac_func=yes"
20553else
20554 echo "configure: failed program was:" >&5
20555 cat conftest.$ac_ext >&5
20556 rm -rf conftest*
20557 eval "ac_cv_func_$ac_func=no"
20558fi
20559rm -f conftest*
20560fi
20561
20562if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20563 echo "$ac_t""yes" 1>&6
20564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20565 cat >> confdefs.h <<EOF
20566#define $ac_tr_func 1
20567EOF
20568
20569 cat >> confdefs.h <<\EOF
20570#define HAVE_DLOPEN 1
20571EOF
20572
20573 HAVE_DL_FUNCS=1
20574
20575else
20576 echo "$ac_t""no" 1>&6
20577echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20578echo "configure:20579: checking for dlopen in -ldl" >&5
20579ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20580if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20581 echo $ac_n "(cached) $ac_c" 1>&6
20582else
20583 ac_save_LIBS="$LIBS"
20584LIBS="-ldl $LIBS"
20585cat > conftest.$ac_ext <<EOF
20586#line 20587 "configure"
20587#include "confdefs.h"
20588/* Override any gcc2 internal prototype to avoid an error. */
20589/* We use char because int might match the return type of a gcc2
20590 builtin and then its argument prototype would still apply. */
20591char dlopen();
20592
20593int main() {
20594dlopen()
20595; return 0; }
20596EOF
20597if { (eval echo configure:20598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20598 rm -rf conftest*
20599 eval "ac_cv_lib_$ac_lib_var=yes"
20600else
20601 echo "configure: failed program was:" >&5
20602 cat conftest.$ac_ext >&5
20603 rm -rf conftest*
20604 eval "ac_cv_lib_$ac_lib_var=no"
20605fi
20606rm -f conftest*
20607LIBS="$ac_save_LIBS"
20608
20609fi
20610if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20611 echo "$ac_t""yes" 1>&6
20612
20613 cat >> confdefs.h <<\EOF
20614#define HAVE_DLOPEN 1
20615EOF
20616
20617 HAVE_DL_FUNCS=1
20618 DL_LINK=" -ldl$DL_LINK"
20619
20620else
20621 echo "$ac_t""no" 1>&6
20622
20623 for ac_func in shl_load
20624do
20625echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20626echo "configure:20627: checking for $ac_func" >&5
20627if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20628 echo $ac_n "(cached) $ac_c" 1>&6
20629else
20630 cat > conftest.$ac_ext <<EOF
20631#line 20632 "configure"
20632#include "confdefs.h"
20633/* System header to define __stub macros and hopefully few prototypes,
20634 which can conflict with char $ac_func(); below. */
20635#include <assert.h>
20636/* Override any gcc2 internal prototype to avoid an error. */
20637/* We use char because int might match the return type of a gcc2
20638 builtin and then its argument prototype would still apply. */
20639char $ac_func();
20640
20641int main() {
20642
20643/* The GNU C library defines this for functions which it implements
20644 to always fail with ENOSYS. Some functions are actually named
20645 something starting with __ and the normal name is an alias. */
20646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20647choke me
20648#else
20649$ac_func();
20650#endif
20651
20652; return 0; }
20653EOF
20654if { (eval echo configure:20655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20655 rm -rf conftest*
20656 eval "ac_cv_func_$ac_func=yes"
20657else
20658 echo "configure: failed program was:" >&5
20659 cat conftest.$ac_ext >&5
20660 rm -rf conftest*
20661 eval "ac_cv_func_$ac_func=no"
20662fi
20663rm -f conftest*
20664fi
20665
20666if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20667 echo "$ac_t""yes" 1>&6
20668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20669 cat >> confdefs.h <<EOF
20670#define $ac_tr_func 1
20671EOF
20672
20673 cat >> confdefs.h <<\EOF
20674#define HAVE_SHL_LOAD 1
20675EOF
20676
20677 HAVE_SHL_FUNCS=1
20678
20679else
20680 echo "$ac_t""no" 1>&6
20681echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20682echo "configure:20683: checking for dld in -lshl_load" >&5
20683ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20684if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20685 echo $ac_n "(cached) $ac_c" 1>&6
20686else
20687 ac_save_LIBS="$LIBS"
20688LIBS="-lshl_load $LIBS"
20689cat > conftest.$ac_ext <<EOF
20690#line 20691 "configure"
20691#include "confdefs.h"
20692/* Override any gcc2 internal prototype to avoid an error. */
20693/* We use char because int might match the return type of a gcc2
20694 builtin and then its argument prototype would still apply. */
20695char dld();
20696
20697int main() {
20698dld()
20699; return 0; }
20700EOF
20701if { (eval echo configure:20702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20702 rm -rf conftest*
20703 eval "ac_cv_lib_$ac_lib_var=yes"
20704else
20705 echo "configure: failed program was:" >&5
20706 cat conftest.$ac_ext >&5
20707 rm -rf conftest*
20708 eval "ac_cv_lib_$ac_lib_var=no"
20709fi
20710rm -f conftest*
20711LIBS="$ac_save_LIBS"
20712
20713fi
20714if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20715 echo "$ac_t""yes" 1>&6
20716
20717 HAVE_SHL_FUNCS=1
20718 DL_LINK=" -ldld$DL_LINK"
20719
20720else
20721 echo "$ac_t""no" 1>&6
20722fi
20723
20724
20725fi
20726done
20727
20728
20729fi
20730
20731
20732fi
20733done
20734
20735
20736 if test "$HAVE_DL_FUNCS" = 1; then
20737 for ac_func in dlerror
20738do
20739echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20740echo "configure:20741: checking for $ac_func" >&5
20741if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20742 echo $ac_n "(cached) $ac_c" 1>&6
20743else
20744 cat > conftest.$ac_ext <<EOF
20745#line 20746 "configure"
20746#include "confdefs.h"
20747/* System header to define __stub macros and hopefully few prototypes,
20748 which can conflict with char $ac_func(); below. */
20749#include <assert.h>
20750/* Override any gcc2 internal prototype to avoid an error. */
20751/* We use char because int might match the return type of a gcc2
20752 builtin and then its argument prototype would still apply. */
20753char $ac_func();
20754
20755int main() {
20756
20757/* The GNU C library defines this for functions which it implements
20758 to always fail with ENOSYS. Some functions are actually named
20759 something starting with __ and the normal name is an alias. */
20760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20761choke me
20762#else
20763$ac_func();
20764#endif
20765
20766; return 0; }
20767EOF
20768if { (eval echo configure:20769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20769 rm -rf conftest*
20770 eval "ac_cv_func_$ac_func=yes"
20771else
20772 echo "configure: failed program was:" >&5
20773 cat conftest.$ac_ext >&5
20774 rm -rf conftest*
20775 eval "ac_cv_func_$ac_func=no"
20776fi
20777rm -f conftest*
20778fi
20779
20780if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20781 echo "$ac_t""yes" 1>&6
20782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20783 cat >> confdefs.h <<EOF
20784#define $ac_tr_func 1
20785EOF
20786 cat >> confdefs.h <<\EOF
20787#define HAVE_DLERROR 1
20788EOF
20789
20790else
20791 echo "$ac_t""no" 1>&6
20792echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20793echo "configure:20794: checking for dlerror in -ldl" >&5
20794ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20796 echo $ac_n "(cached) $ac_c" 1>&6
20797else
20798 ac_save_LIBS="$LIBS"
20799LIBS="-ldl $LIBS"
20800cat > conftest.$ac_ext <<EOF
20801#line 20802 "configure"
20802#include "confdefs.h"
20803/* Override any gcc2 internal prototype to avoid an error. */
20804/* We use char because int might match the return type of a gcc2
20805 builtin and then its argument prototype would still apply. */
20806char dlerror();
20807
20808int main() {
20809dlerror()
20810; return 0; }
20811EOF
20812if { (eval echo configure:20813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20813 rm -rf conftest*
20814 eval "ac_cv_lib_$ac_lib_var=yes"
20815else
20816 echo "configure: failed program was:" >&5
20817 cat conftest.$ac_ext >&5
20818 rm -rf conftest*
20819 eval "ac_cv_lib_$ac_lib_var=no"
20820fi
20821rm -f conftest*
20822LIBS="$ac_save_LIBS"
20823
20824fi
20825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20826 echo "$ac_t""yes" 1>&6
20827 cat >> confdefs.h <<\EOF
20828#define HAVE_DLERROR 1
20829EOF
20830
20831else
20832 echo "$ac_t""no" 1>&6
20833fi
20834
20835fi
20836done
20837
20838 fi
20839 fi
20840
20841 if test "$HAVE_DL_FUNCS" = 0; then
20842 if test "$HAVE_SHL_FUNCS" = 0; then
20843 if test "$USE_UNIX" = 1; then
20844 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20845 wxUSE_DYNAMIC_LOADER=no
20846 wxUSE_DYNLIB_CLASS=no
20847 else
20848 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20849 fi
20850 fi
20851 fi
20852 fi
20853fi
20854
20855if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20856 cat >> confdefs.h <<\EOF
20857#define wxUSE_DYNAMIC_LOADER 1
20858EOF
20859
20860elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20861 cat >> confdefs.h <<\EOF
20862#define wxUSE_DYNLIB_CLASS 1
20863EOF
20864
20865fi
20866
20867
20868if test "$wxUSE_FONTMAP" = "yes" ; then
20869 cat >> confdefs.h <<\EOF
20870#define wxUSE_FONTMAP 1
20871EOF
20872
20873fi
20874
20875if test "$wxUSE_UNICODE" = "yes" ; then
20876 cat >> confdefs.h <<\EOF
20877#define wxUSE_UNICODE 1
20878EOF
20879
20880
20881 if test "$wxUSE_MSW" != 1; then
20882 wxUSE_UNICODE_MSLU=no
20883 fi
20884
20885 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20886 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20887echo "configure:20888: checking for main in -lunicows" >&5
20888ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20890 echo $ac_n "(cached) $ac_c" 1>&6
20891else
20892 ac_save_LIBS="$LIBS"
20893LIBS="-lunicows $LIBS"
20894cat > conftest.$ac_ext <<EOF
20895#line 20896 "configure"
20896#include "confdefs.h"
20897
20898int main() {
20899main()
20900; return 0; }
20901EOF
20902if { (eval echo configure:20903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20903 rm -rf conftest*
20904 eval "ac_cv_lib_$ac_lib_var=yes"
20905else
20906 echo "configure: failed program was:" >&5
20907 cat conftest.$ac_ext >&5
20908 rm -rf conftest*
20909 eval "ac_cv_lib_$ac_lib_var=no"
20910fi
20911rm -f conftest*
20912LIBS="$ac_save_LIBS"
20913
20914fi
20915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20916 echo "$ac_t""yes" 1>&6
20917
20918 cat >> confdefs.h <<\EOF
20919#define wxUSE_UNICODE_MSLU 1
20920EOF
20921
20922
20923else
20924 echo "$ac_t""no" 1>&6
20925
20926 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20927 Applications will only run on Windows NT/2000/XP!" 1>&2
20928 wxUSE_UNICODE_MSLU=no
20929
20930fi
20931
20932 fi
20933fi
20934
20935if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20936 cat >> confdefs.h <<\EOF
20937#define wxUSE_EXPERIMENTAL_PRINTF 1
20938EOF
20939
20940fi
20941
20942
20943
20944IODBC_C_SRC=""
20945if test "$wxUSE_ODBC" = "yes" ; then
20946 cat >> confdefs.h <<\EOF
20947#define wxUSE_ODBC 1
20948EOF
20949
20950 WXODBCFLAG="-D_IODBC_"
20951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20952fi
20953
20954
20955if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20956 cat >> confdefs.h <<\EOF
20957#define wxUSE_POSTSCRIPT 1
20958EOF
20959
20960fi
20961
20962cat >> confdefs.h <<\EOF
20963#define wxUSE_AFM_FOR_POSTSCRIPT 1
20964EOF
20965
20966
20967cat >> confdefs.h <<\EOF
20968#define wxUSE_NORMALIZED_PS_FONTS 1
20969EOF
20970
20971
20972
20973if test "$wxUSE_CONSTRAINTS" = "yes"; then
20974 cat >> confdefs.h <<\EOF
20975#define wxUSE_CONSTRAINTS 1
20976EOF
20977
20978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20979fi
20980
20981if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20982
20983
20984 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20985 cat >> confdefs.h <<\EOF
20986#define wxUSE_MDI_ARCHITECTURE 1
20987EOF
20988
20989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20990 fi
20991fi
20992
20993if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20994 cat >> confdefs.h <<\EOF
20995#define wxUSE_DOC_VIEW_ARCHITECTURE 1
20996EOF
20997
20998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20999 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21001 fi
21002fi
21003
21004if test "$wxUSE_HELP" = "yes"; then
21005 cat >> confdefs.h <<\EOF
21006#define wxUSE_HELP 1
21007EOF
21008
21009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21010
21011 if test "$wxUSE_MSW" = 1; then
21012 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21013 cat >> confdefs.h <<\EOF
21014#define wxUSE_MS_HTML_HELP 1
21015EOF
21016
21017 fi
21018 fi
21019
21020 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21021 if test "$wxUSE_HTML" = "yes"; then
21022 cat >> confdefs.h <<\EOF
21023#define wxUSE_WXHTML_HELP 1
21024EOF
21025
21026 else
21027 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21028 wxUSE_WXHTML_HELP=no
21029 fi
21030 fi
21031fi
21032
21033if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21034 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21035 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21036 else
21037 cat >> confdefs.h <<\EOF
21038#define wxUSE_PRINTING_ARCHITECTURE 1
21039EOF
21040
21041 fi
21042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21043fi
21044
21045if test "$wxUSE_PROLOGIO" = "yes" ; then
21046 cat >> confdefs.h <<\EOF
21047#define wxUSE_PROLOGIO 1
21048EOF
21049
21050 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21051fi
21052
21053if test "$wxUSE_RESOURCES" = "yes" ; then
21054 if test "$wxUSE_NANOX" = "yes"; then
21055 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
21056 else
21057 cat >> confdefs.h <<\EOF
21058#define wxUSE_RESOURCES 1
21059EOF
21060
21061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
21062 fi
21063 if test "$wxUSE_PROLOGIO" != "yes" ; then
21064 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21065 fi
21066fi
21067
21068if test "$wxUSE_X_RESOURCES" = "yes"; then
21069 cat >> confdefs.h <<\EOF
21070#define wxUSE_X_RESOURCES 1
21071EOF
21072
21073fi
21074
21075
21076if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21077 -o "$wxUSE_CLIPBOARD" = "yes" \
21078 -o "$wxUSE_OLE" = "yes" \
21079 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21080 for ac_hdr in ole2.h
21081do
21082ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21083echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21084echo "configure:21085: checking for $ac_hdr" >&5
21085if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21086 echo $ac_n "(cached) $ac_c" 1>&6
21087else
21088 cat > conftest.$ac_ext <<EOF
21089#line 21090 "configure"
21090#include "confdefs.h"
21091#include <$ac_hdr>
21092EOF
21093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21094{ (eval echo configure:21095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21096if test -z "$ac_err"; then
21097 rm -rf conftest*
21098 eval "ac_cv_header_$ac_safe=yes"
21099else
21100 echo "$ac_err" >&5
21101 echo "configure: failed program was:" >&5
21102 cat conftest.$ac_ext >&5
21103 rm -rf conftest*
21104 eval "ac_cv_header_$ac_safe=no"
21105fi
21106rm -f conftest*
21107fi
21108if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21109 echo "$ac_t""yes" 1>&6
21110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21111 cat >> confdefs.h <<EOF
21112#define $ac_tr_hdr 1
21113EOF
21114
21115else
21116 echo "$ac_t""no" 1>&6
21117fi
21118done
21119
21120
21121 if test "$ac_cv_header_ole2_h" = "yes" ; then
21122 if test "$GCC" = yes ; then
21123
21124 ac_ext=C
21125# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21126ac_cpp='$CXXCPP $CPPFLAGS'
21127ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21128ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21129cross_compiling=$ac_cv_prog_cxx_cross
21130
21131
21132 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21133echo "configure:21134: checking if g++ requires -fvtable-thunks" >&5
21134 cat > conftest.$ac_ext <<EOF
21135#line 21136 "configure"
21136#include "confdefs.h"
21137#include <windows.h>
21138 #include <ole2.h>
21139int main() {
21140
21141; return 0; }
21142EOF
21143if { (eval echo configure:21144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21144 rm -rf conftest*
21145 echo "$ac_t""no" 1>&6
21146else
21147 echo "configure: failed program was:" >&5
21148 cat conftest.$ac_ext >&5
21149 rm -rf conftest*
21150 echo "$ac_t""yes" 1>&6
21151 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21152fi
21153rm -f conftest*
21154 ac_ext=c
21155# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21156ac_cpp='$CPP $CPPFLAGS'
21157ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21158ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21159cross_compiling=$ac_cv_prog_cc_cross
21160
21161 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21162 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21163 cat >> confdefs.h <<\EOF
21164#define wxUSE_OLE 1
21165EOF
21166
21167
21168 fi
21169
21170 cat >> confdefs.h <<\EOF
21171#define wxUSE_DATAOBJ 1
21172EOF
21173
21174 else
21175 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21176
21177 wxUSE_CLIPBOARD=no
21178 wxUSE_DRAG_AND_DROP=no
21179 wxUSE_DATAOBJ=no
21180 wxUSE_OLE=no
21181 fi
21182
21183 if test "$wxUSE_METAFILE" = "yes"; then
21184 cat >> confdefs.h <<\EOF
21185#define wxUSE_METAFILE 1
21186EOF
21187
21188
21189 cat >> confdefs.h <<\EOF
21190#define wxUSE_ENH_METAFILE 1
21191EOF
21192
21193 fi
21194fi
21195
21196if test "$wxUSE_IPC" = "yes"; then
21197 if test "$wxUSE_SOCKETS" != "yes"; then
21198 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21199 fi
21200
21201 cat >> confdefs.h <<\EOF
21202#define wxUSE_IPC 1
21203EOF
21204
21205fi
21206
21207if test "$wxUSE_CLIPBOARD" = "yes"; then
21208 if test "$wxUSE_MGL" = 1; then
21209 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21210 wxUSE_CLIPBOARD=no
21211 fi
21212
21213 if test "$wxUSE_CLIPBOARD" = "yes"; then
21214 cat >> confdefs.h <<\EOF
21215#define wxUSE_CLIPBOARD 1
21216EOF
21217
21218
21219 cat >> confdefs.h <<\EOF
21220#define wxUSE_DATAOBJ 1
21221EOF
21222
21223 fi
21224fi
21225
21226if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21227 if test "$wxUSE_GTK" = 1; then
21228 if test "$WXGTK12" != 1; then
21229 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21230 wxUSE_DRAG_AND_DROP=no
21231 fi
21232 fi
21233
21234 if test "$wxUSE_MOTIF" = 1; then
21235 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21236 wxUSE_DRAG_AND_DROP=no
21237 fi
21238
21239 if test "$wxUSE_X11" = 1; then
21240 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21241 wxUSE_DRAG_AND_DROP=no
21242 fi
21243
21244 if test "$wxUSE_MGL" = 1; then
21245 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21246 wxUSE_DRAG_AND_DROP=no
21247 fi
21248
21249 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21250 cat >> confdefs.h <<\EOF
21251#define wxUSE_DRAG_AND_DROP 1
21252EOF
21253
21254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21255 fi
21256
21257fi
21258
21259if test "$wxUSE_SPLINES" = "yes" ; then
21260 cat >> confdefs.h <<\EOF
21261#define wxUSE_SPLINES 1
21262EOF
21263
21264fi
21265
21266
21267USES_CONTROLS=0
21268if test "$wxUSE_CONTROLS" = "yes"; then
21269 USES_CONTROLS=1
21270fi
21271
21272if test "$wxUSE_ACCEL" = "yes"; then
21273 cat >> confdefs.h <<\EOF
21274#define wxUSE_ACCEL 1
21275EOF
21276
21277 USES_CONTROLS=1
21278fi
21279
21280if test "$wxUSE_BUTTON" = "yes"; then
21281 cat >> confdefs.h <<\EOF
21282#define wxUSE_BUTTON 1
21283EOF
21284
21285 USES_CONTROLS=1
21286fi
21287
21288if test "$wxUSE_BMPBUTTON" = "yes"; then
21289 cat >> confdefs.h <<\EOF
21290#define wxUSE_BMPBUTTON 1
21291EOF
21292
21293 USES_CONTROLS=1
21294fi
21295
21296if test "$wxUSE_CALCTRL" = "yes"; then
21297 cat >> confdefs.h <<\EOF
21298#define wxUSE_CALENDARCTRL 1
21299EOF
21300
21301 USES_CONTROLS=1
21302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21303fi
21304
21305if test "$wxUSE_CARET" = "yes"; then
21306 cat >> confdefs.h <<\EOF
21307#define wxUSE_CARET 1
21308EOF
21309
21310 USES_CONTROLS=1
21311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21312fi
21313
21314if test "$wxUSE_COMBOBOX" = "yes"; then
21315 cat >> confdefs.h <<\EOF
21316#define wxUSE_COMBOBOX 1
21317EOF
21318
21319 USES_CONTROLS=1
21320fi
21321
21322if test "$wxUSE_CHOICE" = "yes"; then
21323 cat >> confdefs.h <<\EOF
21324#define wxUSE_CHOICE 1
21325EOF
21326
21327 USES_CONTROLS=1
21328fi
21329
21330if test "$wxUSE_CHECKBOX" = "yes"; then
21331 cat >> confdefs.h <<\EOF
21332#define wxUSE_CHECKBOX 1
21333EOF
21334
21335 USES_CONTROLS=1
21336fi
21337
21338if test "$wxUSE_CHECKLST" = "yes"; then
21339 cat >> confdefs.h <<\EOF
21340#define wxUSE_CHECKLISTBOX 1
21341EOF
21342
21343 USES_CONTROLS=1
21344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21345fi
21346
21347if test "$wxUSE_DISPLAY" = "yes"; then
21348 cat >> confdefs.h <<\EOF
21349#define wxUSE_DISPLAY 1
21350EOF
21351
21352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21353fi
21354
21355if test "$wxUSE_GAUGE" = "yes"; then
21356 cat >> confdefs.h <<\EOF
21357#define wxUSE_GAUGE 1
21358EOF
21359
21360 USES_CONTROLS=1
21361fi
21362
21363if test "$wxUSE_NEW_GRID" = "yes"; then
21364 wxUSE_GRID="yes"
21365 cat >> confdefs.h <<\EOF
21366#define wxUSE_NEW_GRID 1
21367EOF
21368
21369 USES_CONTROLS=1
21370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21371fi
21372
21373if test "$wxUSE_GRID" = "yes"; then
21374 cat >> confdefs.h <<\EOF
21375#define wxUSE_GRID 1
21376EOF
21377
21378 USES_CONTROLS=1
21379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21380fi
21381
21382if test "$wxUSE_IMAGLIST" = "yes"; then
21383 cat >> confdefs.h <<\EOF
21384#define wxUSE_IMAGLIST 1
21385EOF
21386
21387fi
21388
21389if test "$wxUSE_LISTBOX" = "yes"; then
21390 cat >> confdefs.h <<\EOF
21391#define wxUSE_LISTBOX 1
21392EOF
21393
21394 USES_CONTROLS=1
21395fi
21396
21397if test "$wxUSE_LISTCTRL" = "yes"; then
21398 if test "$wxUSE_IMAGLIST" = "yes"; then
21399 cat >> confdefs.h <<\EOF
21400#define wxUSE_LISTCTRL 1
21401EOF
21402
21403 USES_CONTROLS=1
21404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21405 else
21406 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21407 fi
21408fi
21409
21410if test "$wxUSE_NOTEBOOK" = "yes"; then
21411 cat >> confdefs.h <<\EOF
21412#define wxUSE_NOTEBOOK 1
21413EOF
21414
21415 USES_CONTROLS=1
21416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21417fi
21418
21419if test "$wxUSE_PROPSHEET" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421#define wxUSE_PROPSHEET 1
21422EOF
21423
21424 USES_CONTROLS=1
21425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21426fi
21427
21428if test "$wxUSE_RADIOBOX" = "yes"; then
21429 cat >> confdefs.h <<\EOF
21430#define wxUSE_RADIOBOX 1
21431EOF
21432
21433 USES_CONTROLS=1
21434fi
21435
21436if test "$wxUSE_RADIOBTN" = "yes"; then
21437 cat >> confdefs.h <<\EOF
21438#define wxUSE_RADIOBTN 1
21439EOF
21440
21441 USES_CONTROLS=1
21442fi
21443
21444if test "$wxUSE_SASH" = "yes"; then
21445 cat >> confdefs.h <<\EOF
21446#define wxUSE_SASH 1
21447EOF
21448
21449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21450fi
21451
21452if test "$wxUSE_SCROLLBAR" = "yes"; then
21453 cat >> confdefs.h <<\EOF
21454#define wxUSE_SCROLLBAR 1
21455EOF
21456
21457 USES_CONTROLS=1
21458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21459fi
21460
21461if test "$wxUSE_SLIDER" = "yes"; then
21462 cat >> confdefs.h <<\EOF
21463#define wxUSE_SLIDER 1
21464EOF
21465
21466 USES_CONTROLS=1
21467fi
21468
21469if test "$wxUSE_SPINBTN" = "yes"; then
21470 cat >> confdefs.h <<\EOF
21471#define wxUSE_SPINBTN 1
21472EOF
21473
21474 USES_CONTROLS=1
21475fi
21476
21477if test "$wxUSE_SPINCTRL" = "yes"; then
21478 cat >> confdefs.h <<\EOF
21479#define wxUSE_SPINCTRL 1
21480EOF
21481
21482 USES_CONTROLS=1
21483fi
21484
21485if test "$wxUSE_SPLITTER" = "yes"; then
21486 cat >> confdefs.h <<\EOF
21487#define wxUSE_SPLITTER 1
21488EOF
21489
21490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21491fi
21492
21493if test "$wxUSE_STATBMP" = "yes"; then
21494 cat >> confdefs.h <<\EOF
21495#define wxUSE_STATBMP 1
21496EOF
21497
21498 USES_CONTROLS=1
21499fi
21500
21501if test "$wxUSE_STATBOX" = "yes"; then
21502 cat >> confdefs.h <<\EOF
21503#define wxUSE_STATBOX 1
21504EOF
21505
21506 USES_CONTROLS=1
21507fi
21508
21509if test "$wxUSE_STATTEXT" = "yes"; then
21510 cat >> confdefs.h <<\EOF
21511#define wxUSE_STATTEXT 1
21512EOF
21513
21514 USES_CONTROLS=1
21515fi
21516
21517if test "$wxUSE_STATLINE" = "yes"; then
21518 cat >> confdefs.h <<\EOF
21519#define wxUSE_STATLINE 1
21520EOF
21521
21522 USES_CONTROLS=1
21523fi
21524
21525if test "$wxUSE_STATUSBAR" = "yes"; then
21526 cat >> confdefs.h <<\EOF
21527#define wxUSE_STATUSBAR 1
21528EOF
21529
21530 USES_CONTROLS=1
21531
21532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21533fi
21534
21535if test "$wxUSE_TABDIALOG" = "yes"; then
21536 cat >> confdefs.h <<\EOF
21537#define wxUSE_TAB_DIALOG 1
21538EOF
21539
21540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21541fi
21542
21543if test "$wxUSE_TEXTCTRL" = "yes"; then
21544 cat >> confdefs.h <<\EOF
21545#define wxUSE_TEXTCTRL 1
21546EOF
21547
21548 USES_CONTROLS=1
21549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21550fi
21551
21552if test "$wxUSE_TOGGLEBTN" = "yes"; then
21553 if test "$wxUSE_MAC" = 1; then
21554 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21555 wxUSE_TOGGLEBTN=no
21556 fi
21557 if test "$wxUSE_UNIVERSAL" = "yes"; then
21558 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21559 wxUSE_TOGGLEBTN=no
21560 fi
21561
21562 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21563 cat >> confdefs.h <<\EOF
21564#define wxUSE_TOGGLEBTN 1
21565EOF
21566
21567 USES_CONTROLS=1
21568 fi
21569fi
21570
21571if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21572 cat >> confdefs.h <<\EOF
21573#define wxUSE_TOOLBAR_SIMPLE 1
21574EOF
21575
21576 wxUSE_TOOLBAR="yes"
21577 USES_CONTROLS=1
21578fi
21579
21580if test "$wxUSE_TOOLBAR" = "yes"; then
21581 cat >> confdefs.h <<\EOF
21582#define wxUSE_TOOLBAR 1
21583EOF
21584
21585 USES_CONTROLS=1
21586
21587 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21588 wxUSE_TOOLBAR_NATIVE="yes"
21589 fi
21590
21591 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21592 cat >> confdefs.h <<\EOF
21593#define wxUSE_TOOLBAR_NATIVE 1
21594EOF
21595
21596 USES_CONTROLS=1
21597 fi
21598
21599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21600fi
21601
21602if test "$wxUSE_TOOLTIPS" = "yes"; then
21603 if test "$wxUSE_MOTIF" = 1; then
21604 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21605 else
21606 if test "$wxUSE_UNIVERSAL" = "yes"; then
21607 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21608 else
21609 cat >> confdefs.h <<\EOF
21610#define wxUSE_TOOLTIPS 1
21611EOF
21612
21613 fi
21614 fi
21615fi
21616
21617if test "$wxUSE_TREECTRL" = "yes"; then
21618 if test "$wxUSE_IMAGLIST" = "yes"; then
21619 cat >> confdefs.h <<\EOF
21620#define wxUSE_TREECTRL 1
21621EOF
21622
21623 USES_CONTROLS=1
21624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21625 else
21626 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21627 fi
21628fi
21629
21630if test "$wxUSE_POPUPWIN" = "yes"; then
21631 if test "$wxUSE_MAC" = 1; then
21632 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21633 else
21634 if test "$wxUSE_MOTIF" = 1; then
21635 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21636 else
21637 if test "$wxUSE_PM" = 1; then
21638 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21639 else
21640 cat >> confdefs.h <<\EOF
21641#define wxUSE_POPUPWIN 1
21642EOF
21643
21644
21645 USES_CONTROLS=1
21646 fi
21647 fi
21648 fi
21649fi
21650
21651if test "$wxUSE_TIPWINDOW" = "yes"; then
21652 if test "$wxUSE_PM" = 1; then
21653 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21654 else
21655 cat >> confdefs.h <<\EOF
21656#define wxUSE_TIPWINDOW 1
21657EOF
21658
21659 fi
21660fi
21661
21662if test "$USES_CONTROLS" = 1; then
21663 cat >> confdefs.h <<\EOF
21664#define wxUSE_CONTROLS 1
21665EOF
21666
21667fi
21668
21669
21670if test "$wxUSE_TREELAYOUT" = "yes"; then
21671 cat >> confdefs.h <<\EOF
21672#define wxUSE_TREELAYOUT 1
21673EOF
21674
21675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21676fi
21677
21678if test "$wxUSE_DRAGIMAGE" = "yes"; then
21679 cat >> confdefs.h <<\EOF
21680#define wxUSE_DRAGIMAGE 1
21681EOF
21682
21683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21684fi
21685
21686if test "$wxUSE_MENUS" = "yes"; then
21687 cat >> confdefs.h <<\EOF
21688#define wxUSE_MENUS 1
21689EOF
21690
21691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21692fi
21693
21694if test "$wxUSE_METAFILE" = "yes"; then
21695 cat >> confdefs.h <<\EOF
21696#define wxUSE_METAFILE 1
21697EOF
21698
21699fi
21700
21701if test "$wxUSE_MIMETYPE" = "yes"; then
21702 cat >> confdefs.h <<\EOF
21703#define wxUSE_MIMETYPE 1
21704EOF
21705
21706fi
21707
21708if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21709 cat >> confdefs.h <<\EOF
21710#define wxUSE_SYSTEM_OPTIONS 1
21711EOF
21712
21713if test "$TOOLKIT" = "MSW"; then
21714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21715fi
21716
21717fi
21718
21719if test "$wxUSE_PROTOCOL" = "yes"; then
21720 if test "$wxUSE_SOCKETS" != "yes"; then
21721 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21722 wxUSE_PROTOCOL=no
21723 fi
21724
21725 if test "$wxUSE_PROTOCOL" = "yes"; then
21726 cat >> confdefs.h <<\EOF
21727#define wxUSE_PROTOCOL 1
21728EOF
21729
21730
21731 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21732 cat >> confdefs.h <<\EOF
21733#define wxUSE_PROTOCOL_HTTP 1
21734EOF
21735
21736 fi
21737 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21738 cat >> confdefs.h <<\EOF
21739#define wxUSE_PROTOCOL_FTP 1
21740EOF
21741
21742 fi
21743 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21744 cat >> confdefs.h <<\EOF
21745#define wxUSE_PROTOCOL_FILE 1
21746EOF
21747
21748 fi
21749 fi
21750fi
21751
21752if test "$wxUSE_URL" = "yes"; then
21753 if test "$wxUSE_PROTOCOL" != "yes"; then
21754 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21755 wxUSE_URL=no
21756 fi
21757 if test "$wxUSE_URL" = "yes"; then
21758 cat >> confdefs.h <<\EOF
21759#define wxUSE_URL 1
21760EOF
21761
21762 fi
21763fi
21764
21765if test "$wxUSE_MINIFRAME" = "yes"; then
21766 cat >> confdefs.h <<\EOF
21767#define wxUSE_MINIFRAME 1
21768EOF
21769
21770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21771fi
21772
21773if test "$wxUSE_HTML" = "yes"; then
21774 cat >> confdefs.h <<\EOF
21775#define wxUSE_HTML 1
21776EOF
21777
21778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21779fi
21780
21781if test "$wxUSE_VALIDATORS" = "yes"; then
21782 cat >> confdefs.h <<\EOF
21783#define wxUSE_VALIDATORS 1
21784EOF
21785
21786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21787fi
21788
21789if test "$wxUSE_PALETTE" = "yes" ; then
21790 cat >> confdefs.h <<\EOF
21791#define wxUSE_PALETTE 1
21792EOF
21793
21794fi
21795
21796if test "$wxUSE_IMAGE" = "yes" ; then
21797 cat >> confdefs.h <<\EOF
21798#define wxUSE_IMAGE 1
21799EOF
21800
21801fi
21802
21803if test "$wxUSE_GIF" = "yes" ; then
21804 cat >> confdefs.h <<\EOF
21805#define wxUSE_GIF 1
21806EOF
21807
21808fi
21809
21810if test "$wxUSE_PCX" = "yes" ; then
21811 cat >> confdefs.h <<\EOF
21812#define wxUSE_PCX 1
21813EOF
21814
21815fi
21816
21817if test "$wxUSE_IFF" = "yes" ; then
21818 cat >> confdefs.h <<\EOF
21819#define wxUSE_IFF 1
21820EOF
21821
21822fi
21823
21824if test "$wxUSE_PNM" = "yes" ; then
21825 cat >> confdefs.h <<\EOF
21826#define wxUSE_PNM 1
21827EOF
21828
21829fi
21830
21831if test "$wxUSE_XPM" = "yes" ; then
21832 cat >> confdefs.h <<\EOF
21833#define wxUSE_XPM 1
21834EOF
21835
21836fi
21837
21838if test "$wxUSE_ICO_CUR" = "yes" ; then
21839 cat >> confdefs.h <<\EOF
21840#define wxUSE_ICO_CUR 1
21841EOF
21842
21843fi
21844
21845if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21846 LIBS=" -lunicows $LIBS"
21847fi
21848
21849
21850if test "$wxUSE_CHOICEDLG" = "yes"; then
21851 cat >> confdefs.h <<\EOF
21852#define wxUSE_CHOICEDLG 1
21853EOF
21854
21855fi
21856
21857if test "$wxUSE_COLOURDLG" = "yes"; then
21858 cat >> confdefs.h <<\EOF
21859#define wxUSE_COLOURDLG 1
21860EOF
21861
21862fi
21863
21864if test "$wxUSE_FILEDLG" = "yes"; then
21865 cat >> confdefs.h <<\EOF
21866#define wxUSE_FILEDLG 1
21867EOF
21868
21869fi
21870
21871if test "$wxUSE_FINDREPLDLG" = "yes"; then
21872 cat >> confdefs.h <<\EOF
21873#define wxUSE_FINDREPLDLG 1
21874EOF
21875
21876fi
21877
21878if test "$wxUSE_FONTDLG" = "yes"; then
21879 cat >> confdefs.h <<\EOF
21880#define wxUSE_FONTDLG 1
21881EOF
21882
21883fi
21884
21885if test "$wxUSE_DIRDLG" = "yes"; then
21886 if test "$wxUSE_TREECTRL" != "yes"; then
21887 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21888 else
21889 cat >> confdefs.h <<\EOF
21890#define wxUSE_DIRDLG 1
21891EOF
21892
21893 fi
21894fi
21895
21896if test "$wxUSE_MSGDLG" = "yes"; then
21897 cat >> confdefs.h <<\EOF
21898#define wxUSE_MSGDLG 1
21899EOF
21900
21901fi
21902
21903if test "$wxUSE_NUMBERDLG" = "yes"; then
21904 cat >> confdefs.h <<\EOF
21905#define wxUSE_NUMBERDLG 1
21906EOF
21907
21908fi
21909
21910if test "$wxUSE_PROGRESSDLG" = "yes"; then
21911 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21912 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21913 else
21914 cat >> confdefs.h <<\EOF
21915#define wxUSE_PROGRESSDLG 1
21916EOF
21917
21918 fi
21919fi
21920
21921if test "$wxUSE_SPLASH" = "yes"; then
21922 cat >> confdefs.h <<\EOF
21923#define wxUSE_SPLASH 1
21924EOF
21925
21926fi
21927
21928if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21929 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21930 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21931 else
21932 cat >> confdefs.h <<\EOF
21933#define wxUSE_STARTUP_TIPS 1
21934EOF
21935
21936 fi
21937fi
21938
21939if test "$wxUSE_TEXTDLG" = "yes"; then
21940 cat >> confdefs.h <<\EOF
21941#define wxUSE_TEXTDLG 1
21942EOF
21943
21944fi
21945
21946if test "$wxUSE_WIZARDDLG" = "yes"; then
21947 cat >> confdefs.h <<\EOF
21948#define wxUSE_WIZARDDLG 1
21949EOF
21950
21951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21952fi
21953
21954
21955if test "$cross_compiling" = "yes"; then
21956 OSINFO="\"$host\""
21957else
21958 OSINFO=`uname -s -r -m`
21959 OSINFO="\"$OSINFO\""
21960fi
21961
21962cat >> confdefs.h <<EOF
21963#define WXWIN_OS_DESCRIPTION $OSINFO
21964EOF
21965
21966
21967
21968if test "x$prefix" != "xNONE"; then
21969 wxPREFIX=$prefix
21970else
21971 wxPREFIX=$ac_default_prefix
21972fi
21973
21974cat >> confdefs.h <<EOF
21975#define wxINSTALL_PREFIX "$wxPREFIX"
21976EOF
21977
21978
21979top_builddir=`pwd`
21980
21981
21982
21983
21984if test "$wxUSE_MAC" = 1 ; then
21985 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21986fi
21987
21988
21989LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21990
21991have_cos=0
21992have_floor=0
21993for ac_func in cos
21994do
21995echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21996echo "configure:21997: checking for $ac_func" >&5
21997if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21998 echo $ac_n "(cached) $ac_c" 1>&6
21999else
22000 cat > conftest.$ac_ext <<EOF
22001#line 22002 "configure"
22002#include "confdefs.h"
22003/* System header to define __stub macros and hopefully few prototypes,
22004 which can conflict with char $ac_func(); below. */
22005#include <assert.h>
22006/* Override any gcc2 internal prototype to avoid an error. */
22007/* We use char because int might match the return type of a gcc2
22008 builtin and then its argument prototype would still apply. */
22009char $ac_func();
22010
22011int main() {
22012
22013/* The GNU C library defines this for functions which it implements
22014 to always fail with ENOSYS. Some functions are actually named
22015 something starting with __ and the normal name is an alias. */
22016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22017choke me
22018#else
22019$ac_func();
22020#endif
22021
22022; return 0; }
22023EOF
22024if { (eval echo configure:22025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22025 rm -rf conftest*
22026 eval "ac_cv_func_$ac_func=yes"
22027else
22028 echo "configure: failed program was:" >&5
22029 cat conftest.$ac_ext >&5
22030 rm -rf conftest*
22031 eval "ac_cv_func_$ac_func=no"
22032fi
22033rm -f conftest*
22034fi
22035
22036if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22037 echo "$ac_t""yes" 1>&6
22038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22039 cat >> confdefs.h <<EOF
22040#define $ac_tr_func 1
22041EOF
22042 have_cos=1
22043else
22044 echo "$ac_t""no" 1>&6
22045fi
22046done
22047
22048for ac_func in floor
22049do
22050echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22051echo "configure:22052: checking for $ac_func" >&5
22052if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22053 echo $ac_n "(cached) $ac_c" 1>&6
22054else
22055 cat > conftest.$ac_ext <<EOF
22056#line 22057 "configure"
22057#include "confdefs.h"
22058/* System header to define __stub macros and hopefully few prototypes,
22059 which can conflict with char $ac_func(); below. */
22060#include <assert.h>
22061/* Override any gcc2 internal prototype to avoid an error. */
22062/* We use char because int might match the return type of a gcc2
22063 builtin and then its argument prototype would still apply. */
22064char $ac_func();
22065
22066int main() {
22067
22068/* The GNU C library defines this for functions which it implements
22069 to always fail with ENOSYS. Some functions are actually named
22070 something starting with __ and the normal name is an alias. */
22071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22072choke me
22073#else
22074$ac_func();
22075#endif
22076
22077; return 0; }
22078EOF
22079if { (eval echo configure:22080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22080 rm -rf conftest*
22081 eval "ac_cv_func_$ac_func=yes"
22082else
22083 echo "configure: failed program was:" >&5
22084 cat conftest.$ac_ext >&5
22085 rm -rf conftest*
22086 eval "ac_cv_func_$ac_func=no"
22087fi
22088rm -f conftest*
22089fi
22090
22091if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22092 echo "$ac_t""yes" 1>&6
22093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22094 cat >> confdefs.h <<EOF
22095#define $ac_tr_func 1
22096EOF
22097 have_floor=1
22098else
22099 echo "$ac_t""no" 1>&6
22100fi
22101done
22102
22103echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22104echo "configure:22105: checking if floating point functions link without -lm" >&5
22105if test "$have_cos" = 1 -a "$have_floor" = 1; then
22106 echo "$ac_t""yes" 1>&6
22107else
22108 echo "$ac_t""no" 1>&6
22109 LIBS="$LIBS -lm"
22110 # use different functions to avoid configure caching
22111 have_sin=0
22112 have_ceil=0
22113 for ac_func in sin
22114do
22115echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22116echo "configure:22117: checking for $ac_func" >&5
22117if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22118 echo $ac_n "(cached) $ac_c" 1>&6
22119else
22120 cat > conftest.$ac_ext <<EOF
22121#line 22122 "configure"
22122#include "confdefs.h"
22123/* System header to define __stub macros and hopefully few prototypes,
22124 which can conflict with char $ac_func(); below. */
22125#include <assert.h>
22126/* Override any gcc2 internal prototype to avoid an error. */
22127/* We use char because int might match the return type of a gcc2
22128 builtin and then its argument prototype would still apply. */
22129char $ac_func();
22130
22131int main() {
22132
22133/* The GNU C library defines this for functions which it implements
22134 to always fail with ENOSYS. Some functions are actually named
22135 something starting with __ and the normal name is an alias. */
22136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22137choke me
22138#else
22139$ac_func();
22140#endif
22141
22142; return 0; }
22143EOF
22144if { (eval echo configure:22145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22145 rm -rf conftest*
22146 eval "ac_cv_func_$ac_func=yes"
22147else
22148 echo "configure: failed program was:" >&5
22149 cat conftest.$ac_ext >&5
22150 rm -rf conftest*
22151 eval "ac_cv_func_$ac_func=no"
22152fi
22153rm -f conftest*
22154fi
22155
22156if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22157 echo "$ac_t""yes" 1>&6
22158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22159 cat >> confdefs.h <<EOF
22160#define $ac_tr_func 1
22161EOF
22162 have_sin=1
22163else
22164 echo "$ac_t""no" 1>&6
22165fi
22166done
22167
22168 for ac_func in ceil
22169do
22170echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22171echo "configure:22172: checking for $ac_func" >&5
22172if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22173 echo $ac_n "(cached) $ac_c" 1>&6
22174else
22175 cat > conftest.$ac_ext <<EOF
22176#line 22177 "configure"
22177#include "confdefs.h"
22178/* System header to define __stub macros and hopefully few prototypes,
22179 which can conflict with char $ac_func(); below. */
22180#include <assert.h>
22181/* Override any gcc2 internal prototype to avoid an error. */
22182/* We use char because int might match the return type of a gcc2
22183 builtin and then its argument prototype would still apply. */
22184char $ac_func();
22185
22186int main() {
22187
22188/* The GNU C library defines this for functions which it implements
22189 to always fail with ENOSYS. Some functions are actually named
22190 something starting with __ and the normal name is an alias. */
22191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22192choke me
22193#else
22194$ac_func();
22195#endif
22196
22197; return 0; }
22198EOF
22199if { (eval echo configure:22200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22200 rm -rf conftest*
22201 eval "ac_cv_func_$ac_func=yes"
22202else
22203 echo "configure: failed program was:" >&5
22204 cat conftest.$ac_ext >&5
22205 rm -rf conftest*
22206 eval "ac_cv_func_$ac_func=no"
22207fi
22208rm -f conftest*
22209fi
22210
22211if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22212 echo "$ac_t""yes" 1>&6
22213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22214 cat >> confdefs.h <<EOF
22215#define $ac_tr_func 1
22216EOF
22217 have_ceil=1
22218else
22219 echo "$ac_t""no" 1>&6
22220fi
22221done
22222
22223 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22224echo "configure:22225: checking if floating point functions link with -lm" >&5
22225 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22226 echo "$ac_t""yes" 1>&6
22227 else
22228 echo "$ac_t""no" 1>&6
22229 # not sure we should warn the user, crash, etc.
22230 fi
22231fi
22232
22233if test "$wxUSE_GUI" = "yes"; then
22234
22235 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22236
22237
22238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22239 drawing dynamic erase event exec font image \
22240 minimal propsize rotate widgets"
22241
22242 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22243else
22244 SAMPLES_SUBDIRS="console"
22245fi
22246
22247
22248INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22249-I\${top_srcdir}/include \
22250$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22251$TOOLKIT_INCLUDE"
22252
22253if test "$wxUSE_GTK" = 1; then
22254 WXCONFIG_INCLUDE=
22255else
22256 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22257fi
22258
22259if test "$GXX" = yes ; then
22260 CXXWARNINGS="-Wall"
22261
22262 if test "$wxUSE_NO_DEPS" = "no" ; then
22263 CFLAGS="-MMD $CFLAGS"
22264 CXXFLAGS="-MMD $CXXFLAGS"
22265 fi
22266fi
22267
22268EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22269
22270CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22271CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22272CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22273LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22274
22275LDFLAGS="$LDFLAGS $PROFILE"
22276
22277SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22380echo "configure:22381: checking whether ${MAKE-make} sets \${MAKE}" >&5
22381set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22382if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22383 echo $ac_n "(cached) $ac_c" 1>&6
22384else
22385 cat > conftestmake <<\EOF
22386all:
22387 @echo 'ac_maketemp="${MAKE}"'
22388EOF
22389# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22390eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22391if test -n "$ac_maketemp"; then
22392 eval ac_cv_prog_make_${ac_make}_set=yes
22393else
22394 eval ac_cv_prog_make_${ac_make}_set=no
22395fi
22396rm -f conftestmake
22397fi
22398if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22399 echo "$ac_t""yes" 1>&6
22400 SET_MAKE=
22401else
22402 echo "$ac_t""no" 1>&6
22403 SET_MAKE="MAKE=${MAKE-make}"
22404fi
22405
22406
22407if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22408 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22409fi
22410
22411
22412
22413wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22414wx_cv_if_gnu_make=$IF_GNU_MAKE
22415wx_cv_path_ifs=$PATH_IFS
22416wx_cv_program_ext=$PROGRAM_EXT
22417wx_cv_target_library=$WX_TARGET_LIBRARY
22418wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22419wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22420wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22421wx_cv_release=${WX_RELEASE}
22422wx_cv_current=${WX_CURRENT}
22423wx_cv_revision=${WX_REVISION}
22424wx_cv_age=${WX_AGE}
22425wx_cv_use_gui=${USE_GUI}
22426wx_cv_use_resources=${wxUSE_RESOURCES}
22427export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22428 wx_cv_path_ifs wx_cv_program_ext \
22429 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22430 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22431 wx_cv_use_gui wx_cv_use_resources
22432
22433subdirs="demos samples utils contrib"
22434
22435
22436trap '' 1 2 15
22437cat > confcache <<\EOF
22438# This file is a shell script that caches the results of configure
22439# tests run on this system so they can be shared between configure
22440# scripts and configure runs. It is not useful on other systems.
22441# If it contains results you don't want to keep, you may remove or edit it.
22442#
22443# By default, configure uses ./config.cache as the cache file,
22444# creating it if it does not exist already. You can give configure
22445# the --cache-file=FILE option to use a different cache file; that is
22446# what configure does when it calls configure scripts in
22447# subdirectories, so they share the cache.
22448# Giving --cache-file=/dev/null disables caching, for debugging configure.
22449# config.status only pays attention to the cache file if you give it the
22450# --recheck option to rerun configure.
22451#
22452EOF
22453# The following way of writing the cache mishandles newlines in values,
22454# but we know of no workaround that is simple, portable, and efficient.
22455# So, don't put newlines in cache variables' values.
22456# Ultrix sh set writes to stderr and can't be redirected directly,
22457# and sets the high bit in the cache file unless we assign to the vars.
22458(set) 2>&1 |
22459 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22460 *ac_space=\ *)
22461 # `set' does not quote correctly, so add quotes (double-quote substitution
22462 # turns \\\\ into \\, and sed turns \\ into \).
22463 sed -n \
22464 -e "s/'/'\\\\''/g" \
22465 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22466 ;;
22467 *)
22468 # `set' quotes correctly as required by POSIX, so do not add quotes.
22469 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22470 ;;
22471 esac >> confcache
22472if cmp -s $cache_file confcache; then
22473 :
22474else
22475 if test -w $cache_file; then
22476 echo "updating cache $cache_file"
22477 cat confcache > $cache_file
22478 else
22479 echo "not updating unwritable cache $cache_file"
22480 fi
22481fi
22482rm -f confcache
22483
22484trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22485
22486test "x$prefix" = xNONE && prefix=$ac_default_prefix
22487# Let make expand exec_prefix.
22488test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22489
22490# Any assignment to VPATH causes Sun make to only execute
22491# the first set of double-colon rules, so remove it if not needed.
22492# If there is a colon in the path, we need to keep it.
22493if test "x$srcdir" = x.; then
22494 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22495fi
22496
22497trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22498
22499DEFS=-DHAVE_CONFIG_H
22500
22501# Without the "./", some shells look in PATH for config.status.
22502: ${CONFIG_STATUS=./config.status}
22503
22504echo creating $CONFIG_STATUS
22505rm -f $CONFIG_STATUS
22506cat > $CONFIG_STATUS <<EOF
22507#! /bin/sh
22508# Generated automatically by configure.
22509# Run this file to recreate the current configuration.
22510# This directory was configured as follows,
22511# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22512#
22513# $0 $ac_configure_args
22514#
22515# Compiler output produced by configure, useful for debugging
22516# configure, is in ./config.log if it exists.
22517
22518ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22519for ac_option
22520do
22521 case "\$ac_option" in
22522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22523 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22524 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22525 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22526 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22527 exit 0 ;;
22528 -help | --help | --hel | --he | --h)
22529 echo "\$ac_cs_usage"; exit 0 ;;
22530 *) echo "\$ac_cs_usage"; exit 1 ;;
22531 esac
22532done
22533
22534ac_given_srcdir=$srcdir
22535ac_given_INSTALL="$INSTALL"
22536
22537trap 'rm -fr `echo "
22538 wx-config
22539 version-script
22540 src/make.env
22541 src/makeprog.env
22542 src/makelib.env
22543 Makefile
22544 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22545EOF
22546cat >> $CONFIG_STATUS <<EOF
22547
22548# Protect against being on the right side of a sed subst in config.status.
22549sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22550 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22551$ac_vpsub
22552$extrasub
22553s%@SHELL@%$SHELL%g
22554s%@CFLAGS@%$CFLAGS%g
22555s%@CPPFLAGS@%$CPPFLAGS%g
22556s%@CXXFLAGS@%$CXXFLAGS%g
22557s%@FFLAGS@%$FFLAGS%g
22558s%@DEFS@%$DEFS%g
22559s%@LDFLAGS@%$LDFLAGS%g
22560s%@LIBS@%$LIBS%g
22561s%@exec_prefix@%$exec_prefix%g
22562s%@prefix@%$prefix%g
22563s%@program_transform_name@%$program_transform_name%g
22564s%@bindir@%$bindir%g
22565s%@sbindir@%$sbindir%g
22566s%@libexecdir@%$libexecdir%g
22567s%@datadir@%$datadir%g
22568s%@sysconfdir@%$sysconfdir%g
22569s%@sharedstatedir@%$sharedstatedir%g
22570s%@localstatedir@%$localstatedir%g
22571s%@libdir@%$libdir%g
22572s%@includedir@%$includedir%g
22573s%@oldincludedir@%$oldincludedir%g
22574s%@infodir@%$infodir%g
22575s%@mandir@%$mandir%g
22576s%@host@%$host%g
22577s%@host_alias@%$host_alias%g
22578s%@host_cpu@%$host_cpu%g
22579s%@host_vendor@%$host_vendor%g
22580s%@host_os@%$host_os%g
22581s%@target@%$target%g
22582s%@target_alias@%$target_alias%g
22583s%@target_cpu@%$target_cpu%g
22584s%@target_vendor@%$target_vendor%g
22585s%@target_os@%$target_os%g
22586s%@build@%$build%g
22587s%@build_alias@%$build_alias%g
22588s%@build_cpu@%$build_cpu%g
22589s%@build_vendor@%$build_vendor%g
22590s%@build_os@%$build_os%g
22591s%@CC@%$CC%g
22592s%@CPP@%$CPP%g
22593s%@CXX@%$CXX%g
22594s%@RANLIB@%$RANLIB%g
22595s%@AR@%$AR%g
22596s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22597s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22598s%@INSTALL_DATA@%$INSTALL_DATA%g
22599s%@STRIP@%$STRIP%g
22600s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22601s%@YACC@%$YACC%g
22602s%@LEX@%$LEX%g
22603s%@LEXLIB@%$LEXLIB%g
22604s%@LN_S@%$LN_S%g
22605s%@CXXCPP@%$CXXCPP%g
22606s%@PKG_CONFIG@%$PKG_CONFIG%g
22607s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22608s%@GTK_LIBS@%$GTK_LIBS%g
22609s%@GTK_CONFIG@%$GTK_CONFIG%g
22610s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22611s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22612s%@X_CFLAGS@%$X_CFLAGS%g
22613s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22614s%@X_LIBS@%$X_LIBS%g
22615s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22616s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22617s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22618s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22619s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22620s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22621s%@RESCOMP@%$RESCOMP%g
22622s%@DEREZ@%$DEREZ%g
22623s%@SETFILE@%$SETFILE%g
22624s%@LIBICONV@%$LIBICONV%g
22625s%@LEX_STEM@%$LEX_STEM%g
22626s%@PATH_IFS@%$PATH_IFS%g
22627s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22628s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22629s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22630s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22631s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22632s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22633s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22634s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22635s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22636s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22637s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22638s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22639s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22640s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22641s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22642s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22643s%@WX_ALL@%$WX_ALL%g
22644s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22645s%@SHARED_LD@%$SHARED_LD%g
22646s%@PIC_FLAG@%$PIC_FLAG%g
22647s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22648s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22649s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22650s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22651s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22652s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22653s%@STATIC_FLAG@%$STATIC_FLAG%g
22654s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22655s%@USE_GUI@%$USE_GUI%g
22656s%@AFMINSTALL@%$AFMINSTALL%g
22657s%@WIN32INSTALL@%$WIN32INSTALL%g
22658s%@TOOLKIT@%$TOOLKIT%g
22659s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22660s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22661s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22662s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22663s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22664s%@top_builddir@%$top_builddir%g
22665s%@cross_compiling@%$cross_compiling%g
22666s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22667s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22668s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22669s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22670s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22671s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22672s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22673s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22674s%@ALL_HEADERS@%$ALL_HEADERS%g
22675s%@ALL_SOURCES@%$ALL_SOURCES%g
22676s%@GUIDIST@%$GUIDIST%g
22677s%@PORT_FILES@%$PORT_FILES%g
22678s%@DISTDIR@%$DISTDIR%g
22679s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22680s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22681s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22682s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22683s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22684s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22685s%@EXTRADEFS@%$EXTRADEFS%g
22686s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22687s%@RESFLAGS@%$RESFLAGS%g
22688s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22689s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22690s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22691s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22692s%@LIBWXMACRES@%$LIBWXMACRES%g
22693s%@MACRESCOMP@%$MACRESCOMP%g
22694s%@MACSETFILE@%$MACSETFILE%g
22695s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22696s%@GCC@%$GCC%g
22697s%@DLLTOOL@%$DLLTOOL%g
22698s%@AS@%$AS%g
22699s%@NM@%$NM%g
22700s%@LD@%$LD%g
22701s%@MAKEINFO@%$MAKEINFO%g
22702s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22703s%@INSTALL_DIR@%$INSTALL_DIR%g
22704s%@SET_MAKE@%$SET_MAKE%g
22705s%@subdirs@%$subdirs%g
22706
22707CEOF
22708EOF
22709
22710cat >> $CONFIG_STATUS <<\EOF
22711
22712# Split the substitutions into bite-sized pieces for seds with
22713# small command number limits, like on Digital OSF/1 and HP-UX.
22714ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22715ac_file=1 # Number of current file.
22716ac_beg=1 # First line for current file.
22717ac_end=$ac_max_sed_cmds # Line after last line for current file.
22718ac_more_lines=:
22719ac_sed_cmds=""
22720while $ac_more_lines; do
22721 if test $ac_beg -gt 1; then
22722 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22723 else
22724 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22725 fi
22726 if test ! -s conftest.s$ac_file; then
22727 ac_more_lines=false
22728 rm -f conftest.s$ac_file
22729 else
22730 if test -z "$ac_sed_cmds"; then
22731 ac_sed_cmds="sed -f conftest.s$ac_file"
22732 else
22733 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22734 fi
22735 ac_file=`expr $ac_file + 1`
22736 ac_beg=$ac_end
22737 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22738 fi
22739done
22740if test -z "$ac_sed_cmds"; then
22741 ac_sed_cmds=cat
22742fi
22743EOF
22744
22745cat >> $CONFIG_STATUS <<EOF
22746
22747CONFIG_FILES=\${CONFIG_FILES-"wx-config
22748 version-script
22749 src/make.env
22750 src/makeprog.env
22751 src/makelib.env
22752 Makefile
22753 "}
22754EOF
22755cat >> $CONFIG_STATUS <<\EOF
22756for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22758 case "$ac_file" in
22759 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22760 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22761 *) ac_file_in="${ac_file}.in" ;;
22762 esac
22763
22764 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22765
22766 # Remove last slash and all that follows it. Not all systems have dirname.
22767 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22768 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22769 # The file is in a subdirectory.
22770 test ! -d "$ac_dir" && mkdir "$ac_dir"
22771 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22772 # A "../" for each directory in $ac_dir_suffix.
22773 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22774 else
22775 ac_dir_suffix= ac_dots=
22776 fi
22777
22778 case "$ac_given_srcdir" in
22779 .) srcdir=.
22780 if test -z "$ac_dots"; then top_srcdir=.
22781 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22782 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22783 *) # Relative path.
22784 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22785 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22786 esac
22787
22788 case "$ac_given_INSTALL" in
22789 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22790 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22791 esac
22792
22793 echo creating "$ac_file"
22794 rm -f "$ac_file"
22795 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22796 case "$ac_file" in
22797 *Makefile*) ac_comsub="1i\\
22798# $configure_input" ;;
22799 *) ac_comsub= ;;
22800 esac
22801
22802 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22803 sed -e "$ac_comsub
22804s%@configure_input@%$configure_input%g
22805s%@srcdir@%$srcdir%g
22806s%@top_srcdir@%$top_srcdir%g
22807s%@INSTALL@%$INSTALL%g
22808" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22809fi; done
22810rm -f conftest.s*
22811
22812# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22813# NAME is the cpp macro being defined and VALUE is the value it is being given.
22814#
22815# ac_d sets the value in "#define NAME VALUE" lines.
22816ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22817ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22818ac_dC='\3'
22819ac_dD='%g'
22820# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22821ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22822ac_uB='\([ ]\)%\1#\2define\3'
22823ac_uC=' '
22824ac_uD='\4%g'
22825# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22826ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22827ac_eB='$%\1#\2define\3'
22828ac_eC=' '
22829ac_eD='%g'
22830
22831if test "${CONFIG_HEADERS+set}" != set; then
22832EOF
22833cat >> $CONFIG_STATUS <<EOF
22834 CONFIG_HEADERS="setup.h:setup.h.in"
22835EOF
22836cat >> $CONFIG_STATUS <<\EOF
22837fi
22838for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22840 case "$ac_file" in
22841 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22842 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22843 *) ac_file_in="${ac_file}.in" ;;
22844 esac
22845
22846 echo creating $ac_file
22847
22848 rm -f conftest.frag conftest.in conftest.out
22849 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22850 cat $ac_file_inputs > conftest.in
22851
22852EOF
22853
22854# Transform confdefs.h into a sed script conftest.vals that substitutes
22855# the proper values into config.h.in to produce config.h. And first:
22856# Protect against being on the right side of a sed subst in config.status.
22857# Protect against being in an unquoted here document in config.status.
22858rm -f conftest.vals
22859cat > conftest.hdr <<\EOF
22860s/[\\&%]/\\&/g
22861s%[\\$`]%\\&%g
22862s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22863s%ac_d%ac_u%gp
22864s%ac_u%ac_e%gp
22865EOF
22866sed -n -f conftest.hdr confdefs.h > conftest.vals
22867rm -f conftest.hdr
22868
22869# This sed command replaces #undef with comments. This is necessary, for
22870# example, in the case of _POSIX_SOURCE, which is predefined and required
22871# on some systems where configure will not decide to define it.
22872cat >> conftest.vals <<\EOF
22873s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22874EOF
22875
22876# Break up conftest.vals because some shells have a limit on
22877# the size of here documents, and old seds have small limits too.
22878
22879rm -f conftest.tail
22880while :
22881do
22882 ac_lines=`grep -c . conftest.vals`
22883 # grep -c gives empty output for an empty file on some AIX systems.
22884 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22885 # Write a limited-size here document to conftest.frag.
22886 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22887 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22888 echo 'CEOF
22889 sed -f conftest.frag conftest.in > conftest.out
22890 rm -f conftest.in
22891 mv conftest.out conftest.in
22892' >> $CONFIG_STATUS
22893 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22894 rm -f conftest.vals
22895 mv conftest.tail conftest.vals
22896done
22897rm -f conftest.vals
22898
22899cat >> $CONFIG_STATUS <<\EOF
22900 rm -f conftest.frag conftest.h
22901 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22902 cat conftest.in >> conftest.h
22903 rm -f conftest.in
22904 if cmp -s $ac_file conftest.h 2>/dev/null; then
22905 echo "$ac_file is unchanged"
22906 rm -f conftest.h
22907 else
22908 # Remove last slash and all that follows it. Not all systems have dirname.
22909 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22910 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22911 # The file is in a subdirectory.
22912 test ! -d "$ac_dir" && mkdir "$ac_dir"
22913 fi
22914 rm -f $ac_file
22915 mv conftest.h $ac_file
22916 fi
22917fi; done
22918
22919EOF
22920cat >> $CONFIG_STATUS <<EOF
22921
22922 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22923 LN_S="${LN_S}"
22924
22925
22926EOF
22927cat >> $CONFIG_STATUS <<\EOF
22928
22929 if test ! -h wx-config; then
22930 chmod +x wx-config
22931 mv wx-config wx${TOOLCHAIN_NAME}-config
22932 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22933 fi
22934
22935 if test ! -d lib; then
22936 mkdir lib
22937 fi
22938 if test ! -d lib/wx; then
22939 mkdir lib/wx
22940 fi
22941 if test ! -d lib/wx/include; then
22942 mkdir lib/wx/include
22943 fi
22944 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22945 mkdir lib/wx/include/${TOOLCHAIN_NAME}
22946 fi
22947 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22948 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22949 fi
22950 if test -f setup.h; then
22951 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22952 fi
22953
22954exit 0
22955EOF
22956chmod +x $CONFIG_STATUS
22957rm -fr confdefs* $ac_clean_files
22958test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22959
22960if test "$no_recursion" != yes; then
22961
22962 # Remove --cache-file and --srcdir arguments so they do not pile up.
22963 ac_sub_configure_args=
22964 ac_prev=
22965 for ac_arg in $ac_configure_args; do
22966 if test -n "$ac_prev"; then
22967 ac_prev=
22968 continue
22969 fi
22970 case "$ac_arg" in
22971 -cache-file | --cache-file | --cache-fil | --cache-fi \
22972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22973 ac_prev=cache_file ;;
22974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22976 ;;
22977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22978 ac_prev=srcdir ;;
22979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22980 ;;
22981 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22982 esac
22983 done
22984
22985 for ac_config_dir in demos samples utils contrib; do
22986
22987 # Do not complain, so a configure script can configure whichever
22988 # parts of a large source tree are present.
22989 if test ! -d $srcdir/$ac_config_dir; then
22990 continue
22991 fi
22992
22993 echo configuring in $ac_config_dir
22994
22995 case "$srcdir" in
22996 .) ;;
22997 *)
22998 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22999 else
23000 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23001 fi
23002 ;;
23003 esac
23004
23005 ac_popdir=`pwd`
23006 cd $ac_config_dir
23007
23008 # A "../" for each directory in /$ac_config_dir.
23009 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23010
23011 case "$srcdir" in
23012 .) # No --srcdir option. We are building in place.
23013 ac_sub_srcdir=$srcdir ;;
23014 /*) # Absolute path.
23015 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23016 *) # Relative path.
23017 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23018 esac
23019
23020 # Check for guested configure; otherwise get Cygnus style configure.
23021 if test -f $ac_sub_srcdir/configure; then
23022 ac_sub_configure=$ac_sub_srcdir/configure
23023 elif test -f $ac_sub_srcdir/configure.in; then
23024 ac_sub_configure=$ac_configure
23025 else
23026 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23027 ac_sub_configure=
23028 fi
23029
23030 # The recursion is here.
23031 if test -n "$ac_sub_configure"; then
23032
23033 # Make the cache file name correct relative to the subdirectory.
23034 case "$cache_file" in
23035 /*) ac_sub_cache_file=$cache_file ;;
23036 *) # Relative path.
23037 ac_sub_cache_file="$ac_dots$cache_file" ;;
23038 esac
23039 case "$ac_given_INSTALL" in
23040 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23041 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23042 esac
23043
23044 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23045 # The eval makes quoting arguments work.
23046 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23047 then :
23048 else
23049 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23050 fi
23051 fi
23052
23053 cd $ac_popdir
23054 done
23055fi
23056
23057
23058echo
23059echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23060echo ""
23061echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23062
23063echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23064echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23065echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23066
23067echo " What level of wxWindows compatibility should be enabled?"
23068echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23069echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23070echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23071
23072echo " Which libraries should wxWindows use?"
23073echo " jpeg ${wxUSE_LIBJPEG-none}"
23074echo " png ${wxUSE_LIBPNG-none}"
23075echo " regex ${wxUSE_REGEX}"
23076echo " tiff ${wxUSE_LIBTIFF-none}"
23077echo " zlib ${wxUSE_ZLIB}"
23078
23079echo ""
23080