]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
compilation fix after my previos m_exitOnFrameDelete changes
[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# Configure paths for GTK+
60# Owen Taylor 1997-2001
61
62
63
64
65
66
67
68
69# Configure paths for GTK+
70# Owen Taylor 97-11-3
71
72
73
74# Guess values for system-dependent variables and create Makefiles.
75# Generated automatically using autoconf version 2.13
76# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77#
78# This configure script is free software; the Free Software Foundation
79# gives unlimited permission to copy, distribute and modify it.
80
81# Defaults:
82ac_help=
83ac_default_prefix=/usr/local
84# Any additions from configure.in:
85ac_help="$ac_help
86 --enable-gui use GUI classes"
87ac_help="$ac_help
88 --enable-universal use wxWindows GUI controls instead of native ones"
89ac_help="$ac_help
90 --with-gtk use GTK+"
91ac_help="$ac_help
92 --with-motif use Motif/Lesstif"
93ac_help="$ac_help
94 --with-mac use Mac OS X"
95ac_help="$ac_help
96 --with-wine use WINE"
97ac_help="$ac_help
98 --with-msw use MS-Windows"
99ac_help="$ac_help
100 --with-pm use OS/2 Presentation Manager"
101ac_help="$ac_help
102 --with-mgl use SciTech MGL"
103ac_help="$ac_help
104 --with-microwin use MicroWindows"
105ac_help="$ac_help
106 --with-x11 use X11"
107ac_help="$ac_help
108 --enable-nanox use NanoX"
109ac_help="$ac_help
110 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
111ac_help="$ac_help
112 --with-libpng use libpng (PNG image format)"
113ac_help="$ac_help
114 --with-libjpeg use libjpeg (JPEG file format)"
115ac_help="$ac_help
116 --with-libtiff use libtiff (TIFF file format)"
117ac_help="$ac_help
118 --with-opengl use OpenGL (or Mesa)"
119ac_help="$ac_help
120 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
121ac_help="$ac_help
122 --with-regex enable support for wxRegEx class"
123ac_help="$ac_help
124 --with-zlib use zlib for LZW compression"
125ac_help="$ac_help
126 --with-odbc use the IODBC and wxODBC classes"
127ac_help="$ac_help
128 --enable-shared create shared library code"
129ac_help="$ac_help
130 --enable-soname set the DT_SONAME field in ELF shared libraries"
131ac_help="$ac_help
132 --enable-optimise create optimised code"
133ac_help="$ac_help
134 --enable-debug same as debug_flag and debug_info"
135ac_help="$ac_help
136 --enable-precomp enable use of precompiled headers (Mac OS X)"
137ac_help="$ac_help
138 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
139ac_help="$ac_help
140 --enable-debug_info create code with debugging information"
141ac_help="$ac_help
142 --enable-debug_gdb create code with extra GDB debugging information"
143ac_help="$ac_help
144 --enable-debug_cntxt use wxDebugContext"
145ac_help="$ac_help
146 --enable-mem_tracing create code with memory tracing"
147ac_help="$ac_help
148 --enable-profile create code with profiling information"
149ac_help="$ac_help
150 --enable-no_rtti create code without RTTI information"
151ac_help="$ac_help
152 --enable-no_exceptions create code without C++ exceptions handling"
153ac_help="$ac_help
154 --enable-permissive compile code disregarding strict ANSI"
155ac_help="$ac_help
156 --enable-no_deps create code without dependency information"
157ac_help="$ac_help
158 --enable-compat20 enable wxWindows 2.0 compatibility"
159ac_help="$ac_help
160 --disable-compat22 disable wxWindows 2.2 compatibility"
161ac_help="$ac_help
162 --enable-rpath=DIR output the rpath flag from wx-config"
163ac_help="$ac_help
164 --enable-intl use internationalization system"
165ac_help="$ac_help
166 --enable-config use wxConfig (and derived) classes"
167ac_help="$ac_help
168 --enable-protocols use wxProtocol and derived classes"
169ac_help="$ac_help
170 --enable-ftp use wxFTP (requires wxProtocol"
171ac_help="$ac_help
172 --enable-http use wxHTTP (requires wxProtocol"
173ac_help="$ac_help
174 --enable-fileproto use wxFileProto class (requires wxProtocol"
175ac_help="$ac_help
176 --enable-sockets use socket/network classes"
177ac_help="$ac_help
178 --enable-ipc use interprocess communication (wxSocket etc.)"
179ac_help="$ac_help
180 --enable-cmdline use wxCmdLineParser class"
181ac_help="$ac_help
182 --enable-datetime use wxDateTime class"
183ac_help="$ac_help
184 --enable-timedate use obsolete wxDate/wxTime classes"
185ac_help="$ac_help
186 --enable-stopwatch use wxStopWatch class"
187ac_help="$ac_help
188 --enable-dialupman use dialup network classes"
189ac_help="$ac_help
190 --enable-apple_ieee use the Apple IEEE codec"
191ac_help="$ac_help
192 --enable-timer use wxTimer class"
193ac_help="$ac_help
194 --enable-wave use wxWave class"
195ac_help="$ac_help
196 --enable-fraction use wxFraction class"
197ac_help="$ac_help
198 --enable-dynlib use wxLibrary class for DLL loading"
199ac_help="$ac_help
200 --enable-dynamicloader use (new) wxDynamicLibrary class"
201ac_help="$ac_help
202 --enable-longlong use wxLongLong class"
203ac_help="$ac_help
204 --enable-geometry use geometry class"
205ac_help="$ac_help
206 --enable-log use logging system"
207ac_help="$ac_help
208 --enable-streams use wxStream etc classes"
209ac_help="$ac_help
210 --enable-file use wxFile classes"
211ac_help="$ac_help
212 --enable-ffile use wxFFile classes"
213ac_help="$ac_help
214 --enable-textbuf use wxTextBuffer class"
215ac_help="$ac_help
216 --enable-textfile use wxTextFile class"
217ac_help="$ac_help
218 --enable-fontmap use font encodings conversion classes"
219ac_help="$ac_help
220 --enable-unicode compile wxString with Unicode support"
221ac_help="$ac_help
222 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
223ac_help="$ac_help
224 --enable-wxprintfv use wxWindows implementation of vprintf()"
225ac_help="$ac_help
226 --enable-std_iostreams use standard C++ stream classes"
227ac_help="$ac_help
228 --enable-filesystem use virtual file systems classes"
229ac_help="$ac_help
230 --enable-fs_inet use virtual HTTP/FTP filesystems"
231ac_help="$ac_help
232 --enable-fs_zip use virtual ZIP filesystems"
233ac_help="$ac_help
234 --enable-zipstream use wxZipInputStream"
235ac_help="$ac_help
236 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
237ac_help="$ac_help
238 --enable-snglinst use wxSingleInstanceChecker class"
239ac_help="$ac_help
240 --enable-mimetype use wxMimeTypesManager"
241ac_help="$ac_help
242 --enable-sysoptions use wxSystemOptions"
243ac_help="$ac_help
244 --enable-url use wxURL class"
245ac_help="$ac_help
246 --enable-protocol use wxProtocol class"
247ac_help="$ac_help
248 --enable-protocol-http HTTP support in wxProtocol"
249ac_help="$ac_help
250 --enable-protocol-ftp FTP support in wxProtocol"
251ac_help="$ac_help
252 --enable-protocol-file FILE support in wxProtocol"
253ac_help="$ac_help
254 --enable-threads use threads"
255ac_help="$ac_help
256 --enable-docview use document view architecture"
257ac_help="$ac_help
258 --enable-help use help subsystem"
259ac_help="$ac_help
260 --enable-mshtmlhelp use MS HTML Help (win32)"
261ac_help="$ac_help
262 --enable-html use wxHTML sub-library"
263ac_help="$ac_help
264 --enable-htmlhelp use wxHTML-based help"
265ac_help="$ac_help
266 --enable-constraints use layout-constraints system"
267ac_help="$ac_help
268 --enable-printarch use printing architecture"
269ac_help="$ac_help
270 --enable-mdi use multiple document interface architecture"
271ac_help="$ac_help
272 --enable-loggui use standard GUI logger"
273ac_help="$ac_help
274 --enable-logwin use wxLogWindow"
275ac_help="$ac_help
276 --enable-logdialog use wxLogDialog"
277ac_help="$ac_help
278 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
279ac_help="$ac_help
280 --enable-prologio use Prolog IO library"
281ac_help="$ac_help
282 --enable-resources use wxWindows resources"
283ac_help="$ac_help
284 --enable-xresources use X resources for save (default for gtk+)"
285ac_help="$ac_help
286 --enable-clipboard use wxClipboard classes"
287ac_help="$ac_help
288 --enable-dnd use Drag'n'Drop classes"
289ac_help="$ac_help
290 --enable-metafile use win32 metafiles"
291ac_help="$ac_help
292 --enable-treelayout use wxTreeLayout classes"
293ac_help="$ac_help
294 --enable-controls use all usual controls"
295ac_help="$ac_help
296 --enable-accel use accelerators"
297ac_help="$ac_help
298 --enable-button use wxButton class"
299ac_help="$ac_help
300 --enable-bmpbutton use wxBitmapButton class"
301ac_help="$ac_help
302 --enable-calendar use wxCalendarCtrl class"
303ac_help="$ac_help
304 --enable-caret use wxCaret class"
305ac_help="$ac_help
306 --enable-checkbox use wxCheckBox class"
307ac_help="$ac_help
308 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
309ac_help="$ac_help
310 --enable-choice use wxChoice class"
311ac_help="$ac_help
312 --enable-combobox use wxComboBox classes"
313ac_help="$ac_help
314 --enable-gauge use wxGauge class"
315ac_help="$ac_help
316 --enable-grid use wxGrid class"
317ac_help="$ac_help
318 --enable-newgrid use new wxGrid class"
319ac_help="$ac_help
320 --enable-imaglist use wxImageList class"
321ac_help="$ac_help
322 --enable-listbox use wxListBox class"
323ac_help="$ac_help
324 --enable-listctrl use wxListCtrl class"
325ac_help="$ac_help
326 --enable-notebook use wxNotebook class"
327ac_help="$ac_help
328 --enable-propsheet use wxPropertySheet class"
329ac_help="$ac_help
330 --enable-radiobox use wxRadioBox class"
331ac_help="$ac_help
332 --enable-radiobtn use wxRadioButton class"
333ac_help="$ac_help
334 --enable-sash use wxSashWindow class"
335ac_help="$ac_help
336 --enable-scrollbar use wxScrollBar class and scrollable windows"
337ac_help="$ac_help
338 --enable-slider use wxSlider class"
339ac_help="$ac_help
340 --enable-spinbtn use wxSpinButton class"
341ac_help="$ac_help
342 --enable-spinctrl use wxSpinCtrl class"
343ac_help="$ac_help
344 --enable-splitter use wxSplitterWindow class"
345ac_help="$ac_help
346 --enable-statbmp use wxStaticBitmap class"
347ac_help="$ac_help
348 --enable-statbox use wxStaticBox class"
349ac_help="$ac_help
350 --enable-statline use wxStaticLine class"
351ac_help="$ac_help
352 --enable-stattext use wxStaticText class"
353ac_help="$ac_help
354 --enable-statusbar use wxStatusBar class"
355ac_help="$ac_help
356 --enable-tabdialog use wxTabControl class"
357ac_help="$ac_help
358 --enable-textctrl use wxTextCtrl class"
359ac_help="$ac_help
360 --enable-togglebtn use wxToggleButton class"
361ac_help="$ac_help
362 --enable-toolbar use wxToolBar class"
363ac_help="$ac_help
364 --enable-tbarnative use native wxToolBar class"
365ac_help="$ac_help
366 --enable-tbarsmpl use wxToolBarSimple class"
367ac_help="$ac_help
368 --enable-treectrl use wxTreeCtrl class"
369ac_help="$ac_help
370 --enable-tipwindow use wxTipWindow class"
371ac_help="$ac_help
372 --enable-popupwin use wxPopUpWindow class"
373ac_help="$ac_help
374 --enable-commondlg use all common dialogs"
375ac_help="$ac_help
376 --enable-choicedlg use wxChoiceDialog"
377ac_help="$ac_help
378 --enable-coldlg use wxColourDialog"
379ac_help="$ac_help
380 --enable-filedlg use wxFileDialog"
381ac_help="$ac_help
382 --enable-finddlg use wxFindReplaceDialog"
383ac_help="$ac_help
384 --enable-fontdlg use wxFontDialog"
385ac_help="$ac_help
386 --enable-dirdlg use wxDirDialog"
387ac_help="$ac_help
388 --enable-msgdlg use wxMessageDialog"
389ac_help="$ac_help
390 --enable-numberdlg use wxNumberEntryDialog"
391ac_help="$ac_help
392 --enable-splash use wxSplashScreen"
393ac_help="$ac_help
394 --enable-textdlg use wxTextDialog"
395ac_help="$ac_help
396 --enable-tipdlg use startup tips"
397ac_help="$ac_help
398 --enable-progressdlg use wxProgressDialog"
399ac_help="$ac_help
400 --enable-wizarddlg use wxWizard"
401ac_help="$ac_help
402 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
403ac_help="$ac_help
404 --enable-miniframe use wxMiniFrame class"
405ac_help="$ac_help
406 --enable-tooltips use wxToolTip class"
407ac_help="$ac_help
408 --enable-splines use spline drawing code"
409ac_help="$ac_help
410 --enable-validators use wxValidator and derived classes"
411ac_help="$ac_help
412 --enable-busyinfo use wxBusyInfo"
413ac_help="$ac_help
414 --enable-joystick use wxJoystick (Linux only)"
415ac_help="$ac_help
416 --enable-metafiles use wxMetaFile (Windows only)"
417ac_help="$ac_help
418 --enable-dragimage use wxDragImage"
419ac_help="$ac_help
420 --enable-palette use wxPalette class"
421ac_help="$ac_help
422 --enable-image use wxImage class"
423ac_help="$ac_help
424 --enable-gif use gif images (GIF file format)"
425ac_help="$ac_help
426 --enable-pcx use pcx images (PCX file format)"
427ac_help="$ac_help
428 --enable-iff use iff images (IFF file format)"
429ac_help="$ac_help
430 --enable-pnm use pnm images (PNM file format)"
431ac_help="$ac_help
432 --enable-xpm use xpm images (XPM file format)"
433ac_help="$ac_help
434 --enable-icocur use Windows ICO and CUR formats"
435ac_help="$ac_help
436 --disable-largefile omit support for large files"
437ac_help="$ac_help
438 --disable-gtktest do not try to compile and run a test GTK+ program"
439ac_help="$ac_help
440 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
441ac_help="$ac_help
442 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
443ac_help="$ac_help
444 --disable-gtktest Do not try to compile and run a test GTK program"
445ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451ac_help="$ac_help
452 --with-x use the X Window System"
453ac_help="$ac_help
454 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
455
456# Initialize some variables set by options.
457# The variables have the same names as the options, with
458# dashes changed to underlines.
459build=NONE
460cache_file=./config.cache
461exec_prefix=NONE
462host=NONE
463no_create=
464nonopt=NONE
465no_recursion=
466prefix=NONE
467program_prefix=NONE
468program_suffix=NONE
469program_transform_name=s,x,x,
470silent=
471site=
472srcdir=
473target=NONE
474verbose=
475x_includes=NONE
476x_libraries=NONE
477bindir='${exec_prefix}/bin'
478sbindir='${exec_prefix}/sbin'
479libexecdir='${exec_prefix}/libexec'
480datadir='${prefix}/share'
481sysconfdir='${prefix}/etc'
482sharedstatedir='${prefix}/com'
483localstatedir='${prefix}/var'
484libdir='${exec_prefix}/lib'
485includedir='${prefix}/include'
486oldincludedir='/usr/include'
487infodir='${prefix}/info'
488mandir='${prefix}/man'
489
490# Initialize some other variables.
491subdirs=
492MFLAGS= MAKEFLAGS=
493SHELL=${CONFIG_SHELL-/bin/sh}
494# Maximum number of lines to put in a shell here document.
495ac_max_here_lines=12
496
497ac_prev=
498for ac_option
499do
500
501 # If the previous option needs an argument, assign it.
502 if test -n "$ac_prev"; then
503 eval "$ac_prev=\$ac_option"
504 ac_prev=
505 continue
506 fi
507
508 case "$ac_option" in
509 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
510 *) ac_optarg= ;;
511 esac
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
515 case "$ac_option" in
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir="$ac_optarg" ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build="$ac_optarg" ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file="$ac_optarg" ;;
533
534 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 ac_prev=datadir ;;
536 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 | --da=*)
538 datadir="$ac_optarg" ;;
539
540 -disable-* | --disable-*)
541 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
542 # Reject names that are not valid shell variable names.
543 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
544 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
545 fi
546 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
547 eval "enable_${ac_feature}=no" ;;
548
549 -enable-* | --enable-*)
550 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 case "$ac_option" in
557 *=*) ;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "enable_${ac_feature}='$ac_optarg'" ;;
561
562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564 | --exec | --exe | --ex)
565 ac_prev=exec_prefix ;;
566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568 | --exec=* | --exe=* | --ex=*)
569 exec_prefix="$ac_optarg" ;;
570
571 -gas | --gas | --ga | --g)
572 # Obsolete; use --with-gas.
573 with_gas=yes ;;
574
575 -help | --help | --hel | --he)
576 # Omit some internal or obsolete options to make the list less imposing.
577 # This message is too long to be a string in the A/UX 3.1 sh.
578 cat << EOF
579Usage: configure [options] [host]
580Options: [defaults in brackets after descriptions]
581Configuration:
582 --cache-file=FILE cache test results in FILE
583 --help print this message
584 --no-create do not create output files
585 --quiet, --silent do not print \`checking...' messages
586 --version print the version of autoconf that created configure
587Directory and file names:
588 --prefix=PREFIX install architecture-independent files in PREFIX
589 [$ac_default_prefix]
590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
591 [same as prefix]
592 --bindir=DIR user executables in DIR [EPREFIX/bin]
593 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
594 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
595 --datadir=DIR read-only architecture-independent data in DIR
596 [PREFIX/share]
597 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
598 --sharedstatedir=DIR modifiable architecture-independent data in DIR
599 [PREFIX/com]
600 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
601 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
602 --includedir=DIR C header files in DIR [PREFIX/include]
603 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
604 --infodir=DIR info documentation in DIR [PREFIX/info]
605 --mandir=DIR man documentation in DIR [PREFIX/man]
606 --srcdir=DIR find the sources in DIR [configure dir or ..]
607 --program-prefix=PREFIX prepend PREFIX to installed program names
608 --program-suffix=SUFFIX append SUFFIX to installed program names
609 --program-transform-name=PROGRAM
610 run sed PROGRAM on installed program names
611EOF
612 cat << EOF
613Host type:
614 --build=BUILD configure for building on BUILD [BUILD=HOST]
615 --host=HOST configure for HOST [guessed]
616 --target=TARGET configure for TARGET [TARGET=HOST]
617Features and packages:
618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
622 --x-includes=DIR X include files are in DIR
623 --x-libraries=DIR X library files are in DIR
624EOF
625 if test -n "$ac_help"; then
626 echo "--enable and --with options recognized:$ac_help"
627 fi
628 exit 0 ;;
629
630 -host | --host | --hos | --ho)
631 ac_prev=host ;;
632 -host=* | --host=* | --hos=* | --ho=*)
633 host="$ac_optarg" ;;
634
635 -includedir | --includedir | --includedi | --included | --include \
636 | --includ | --inclu | --incl | --inc)
637 ac_prev=includedir ;;
638 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
639 | --includ=* | --inclu=* | --incl=* | --inc=*)
640 includedir="$ac_optarg" ;;
641
642 -infodir | --infodir | --infodi | --infod | --info | --inf)
643 ac_prev=infodir ;;
644 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
645 infodir="$ac_optarg" ;;
646
647 -libdir | --libdir | --libdi | --libd)
648 ac_prev=libdir ;;
649 -libdir=* | --libdir=* | --libdi=* | --libd=*)
650 libdir="$ac_optarg" ;;
651
652 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
653 | --libexe | --libex | --libe)
654 ac_prev=libexecdir ;;
655 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
656 | --libexe=* | --libex=* | --libe=*)
657 libexecdir="$ac_optarg" ;;
658
659 -localstatedir | --localstatedir | --localstatedi | --localstated \
660 | --localstate | --localstat | --localsta | --localst \
661 | --locals | --local | --loca | --loc | --lo)
662 ac_prev=localstatedir ;;
663 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
664 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
665 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
666 localstatedir="$ac_optarg" ;;
667
668 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
669 ac_prev=mandir ;;
670 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
671 mandir="$ac_optarg" ;;
672
673 -nfp | --nfp | --nf)
674 # Obsolete; use --without-fp.
675 with_fp=no ;;
676
677 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
678 | --no-cr | --no-c)
679 no_create=yes ;;
680
681 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
682 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
683 no_recursion=yes ;;
684
685 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
686 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
687 | --oldin | --oldi | --old | --ol | --o)
688 ac_prev=oldincludedir ;;
689 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
690 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
691 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
692 oldincludedir="$ac_optarg" ;;
693
694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
695 ac_prev=prefix ;;
696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
697 prefix="$ac_optarg" ;;
698
699 -program-prefix | --program-prefix | --program-prefi | --program-pref \
700 | --program-pre | --program-pr | --program-p)
701 ac_prev=program_prefix ;;
702 -program-prefix=* | --program-prefix=* | --program-prefi=* \
703 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
704 program_prefix="$ac_optarg" ;;
705
706 -program-suffix | --program-suffix | --program-suffi | --program-suff \
707 | --program-suf | --program-su | --program-s)
708 ac_prev=program_suffix ;;
709 -program-suffix=* | --program-suffix=* | --program-suffi=* \
710 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
711 program_suffix="$ac_optarg" ;;
712
713 -program-transform-name | --program-transform-name \
714 | --program-transform-nam | --program-transform-na \
715 | --program-transform-n | --program-transform- \
716 | --program-transform | --program-transfor \
717 | --program-transfo | --program-transf \
718 | --program-trans | --program-tran \
719 | --progr-tra | --program-tr | --program-t)
720 ac_prev=program_transform_name ;;
721 -program-transform-name=* | --program-transform-name=* \
722 | --program-transform-nam=* | --program-transform-na=* \
723 | --program-transform-n=* | --program-transform-=* \
724 | --program-transform=* | --program-transfor=* \
725 | --program-transfo=* | --program-transf=* \
726 | --program-trans=* | --program-tran=* \
727 | --progr-tra=* | --program-tr=* | --program-t=*)
728 program_transform_name="$ac_optarg" ;;
729
730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
731 | -silent | --silent | --silen | --sile | --sil)
732 silent=yes ;;
733
734 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
735 ac_prev=sbindir ;;
736 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
737 | --sbi=* | --sb=*)
738 sbindir="$ac_optarg" ;;
739
740 -sharedstatedir | --sharedstatedir | --sharedstatedi \
741 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
742 | --sharedst | --shareds | --shared | --share | --shar \
743 | --sha | --sh)
744 ac_prev=sharedstatedir ;;
745 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
746 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
747 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
748 | --sha=* | --sh=*)
749 sharedstatedir="$ac_optarg" ;;
750
751 -site | --site | --sit)
752 ac_prev=site ;;
753 -site=* | --site=* | --sit=*)
754 site="$ac_optarg" ;;
755
756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
757 ac_prev=srcdir ;;
758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
759 srcdir="$ac_optarg" ;;
760
761 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
762 | --syscon | --sysco | --sysc | --sys | --sy)
763 ac_prev=sysconfdir ;;
764 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
765 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
766 sysconfdir="$ac_optarg" ;;
767
768 -target | --target | --targe | --targ | --tar | --ta | --t)
769 ac_prev=target ;;
770 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
771 target="$ac_optarg" ;;
772
773 -v | -verbose | --verbose | --verbos | --verbo | --verb)
774 verbose=yes ;;
775
776 -version | --version | --versio | --versi | --vers)
777 echo "configure generated by autoconf version 2.13"
778 exit 0 ;;
779
780 -with-* | --with-*)
781 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
782 # Reject names that are not valid shell variable names.
783 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
784 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
785 fi
786 ac_package=`echo $ac_package| sed 's/-/_/g'`
787 case "$ac_option" in
788 *=*) ;;
789 *) ac_optarg=yes ;;
790 esac
791 eval "with_${ac_package}='$ac_optarg'" ;;
792
793 -without-* | --without-*)
794 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
795 # Reject names that are not valid shell variable names.
796 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
797 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
798 fi
799 ac_package=`echo $ac_package| sed 's/-/_/g'`
800 eval "with_${ac_package}=no" ;;
801
802 --x)
803 # Obsolete; use --with-x.
804 with_x=yes ;;
805
806 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
807 | --x-incl | --x-inc | --x-in | --x-i)
808 ac_prev=x_includes ;;
809 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
810 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
811 x_includes="$ac_optarg" ;;
812
813 -x-libraries | --x-libraries | --x-librarie | --x-librari \
814 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
815 ac_prev=x_libraries ;;
816 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
817 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
818 x_libraries="$ac_optarg" ;;
819
820 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
821 ;;
822
823 *)
824 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
825 echo "configure: warning: $ac_option: invalid host type" 1>&2
826 fi
827 if test "x$nonopt" != xNONE; then
828 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
829 fi
830 nonopt="$ac_option"
831 ;;
832
833 esac
834done
835
836if test -n "$ac_prev"; then
837 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
838fi
839
840trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
841
842# File descriptor usage:
843# 0 standard input
844# 1 file creation
845# 2 errors and warnings
846# 3 some systems may open it to /dev/tty
847# 4 used on the Kubota Titan
848# 6 checking for... messages and results
849# 5 compiler messages saved in config.log
850if test "$silent" = yes; then
851 exec 6>/dev/null
852else
853 exec 6>&1
854fi
855exec 5>./config.log
856
857echo "\
858This file contains any messages produced by compilers while
859running configure, to aid debugging if configure makes a mistake.
860" 1>&5
861
862# Strip out --no-create and --no-recursion so they do not pile up.
863# Also quote any args containing shell metacharacters.
864ac_configure_args=
865for ac_arg
866do
867 case "$ac_arg" in
868 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869 | --no-cr | --no-c) ;;
870 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
873 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
874 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
875 esac
876done
877
878# NLS nuisances.
879# Only set these to C if already set. These must not be set unconditionally
880# because not all systems understand e.g. LANG=C (notably SCO).
881# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
882# Non-C LC_CTYPE values break the ctype check.
883if test "${LANG+set}" = set; then LANG=C; export LANG; fi
884if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
885if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
886if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
887
888# confdefs.h avoids OS command line length limits that DEFS can exceed.
889rm -rf conftest* confdefs.h
890# AIX cpp loses on an empty file, so make sure it contains at least a newline.
891echo > confdefs.h
892
893# A filename unique to this package, relative to the directory that
894# configure is in, which we can look for to find out if srcdir is correct.
895ac_unique_file=wx-config.in
896
897# Find the source files, if location was not specified.
898if test -z "$srcdir"; then
899 ac_srcdir_defaulted=yes
900 # Try the directory containing this script, then its parent.
901 ac_prog=$0
902 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
903 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
904 srcdir=$ac_confdir
905 if test ! -r $srcdir/$ac_unique_file; then
906 srcdir=..
907 fi
908else
909 ac_srcdir_defaulted=no
910fi
911if test ! -r $srcdir/$ac_unique_file; then
912 if test "$ac_srcdir_defaulted" = yes; then
913 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
914 else
915 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
916 fi
917fi
918srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
919
920# Prefer explicitly selected file to automatically selected ones.
921if test -z "$CONFIG_SITE"; then
922 if test "x$prefix" != xNONE; then
923 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
924 else
925 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
926 fi
927fi
928for ac_site_file in $CONFIG_SITE; do
929 if test -r "$ac_site_file"; then
930 echo "loading site script $ac_site_file"
931 . "$ac_site_file"
932 fi
933done
934
935if test -r "$cache_file"; then
936 echo "loading cache $cache_file"
937 . $cache_file
938else
939 echo "creating cache $cache_file"
940 > $cache_file
941fi
942
943ac_ext=c
944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945ac_cpp='$CPP $CPPFLAGS'
946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948cross_compiling=$ac_cv_prog_cc_cross
949
950ac_exeext=
951ac_objext=o
952if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
953 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
954 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
955 ac_n= ac_c='
956' ac_t=' '
957 else
958 ac_n=-n ac_c= ac_t=
959 fi
960else
961 ac_n= ac_c='\c' ac_t=
962fi
963
964
965
966ac_aux_dir=
967for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968 if test -f $ac_dir/install-sh; then
969 ac_aux_dir=$ac_dir
970 ac_install_sh="$ac_aux_dir/install-sh -c"
971 break
972 elif test -f $ac_dir/install.sh; then
973 ac_aux_dir=$ac_dir
974 ac_install_sh="$ac_aux_dir/install.sh -c"
975 break
976 fi
977done
978if test -z "$ac_aux_dir"; then
979 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
980fi
981ac_config_guess=$ac_aux_dir/config.guess
982ac_config_sub=$ac_aux_dir/config.sub
983ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
984
985
986# Do some error checking and defaulting for the host and target type.
987# The inputs are:
988# configure --host=HOST --target=TARGET --build=BUILD NONOPT
989#
990# The rules are:
991# 1. You are not allowed to specify --host, --target, and nonopt at the
992# same time.
993# 2. Host defaults to nonopt.
994# 3. If nonopt is not specified, then host defaults to the current host,
995# as determined by config.guess.
996# 4. Target and build default to nonopt.
997# 5. If nonopt is not specified, then target and build default to host.
998
999# The aliases save the names the user supplied, while $host etc.
1000# will get canonicalized.
1001case $host---$target---$nonopt in
1002NONE---*---* | *---NONE---* | *---*---NONE) ;;
1003*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1004esac
1005
1006
1007# Make sure we can run config.sub.
1008if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1009else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1010fi
1011
1012echo $ac_n "checking host system type""... $ac_c" 1>&6
1013echo "configure:1014: checking host system type" >&5
1014
1015host_alias=$host
1016case "$host_alias" in
1017NONE)
1018 case $nonopt in
1019 NONE)
1020 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1021 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1022 fi ;;
1023 *) host_alias=$nonopt ;;
1024 esac ;;
1025esac
1026
1027host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1028host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031echo "$ac_t""$host" 1>&6
1032
1033echo $ac_n "checking target system type""... $ac_c" 1>&6
1034echo "configure:1035: checking target system type" >&5
1035
1036target_alias=$target
1037case "$target_alias" in
1038NONE)
1039 case $nonopt in
1040 NONE) target_alias=$host_alias ;;
1041 *) target_alias=$nonopt ;;
1042 esac ;;
1043esac
1044
1045target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1046target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049echo "$ac_t""$target" 1>&6
1050
1051echo $ac_n "checking build system type""... $ac_c" 1>&6
1052echo "configure:1053: checking build system type" >&5
1053
1054build_alias=$build
1055case "$build_alias" in
1056NONE)
1057 case $nonopt in
1058 NONE) build_alias=$host_alias ;;
1059 *) build_alias=$nonopt ;;
1060 esac ;;
1061esac
1062
1063build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1064build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067echo "$ac_t""$build" 1>&6
1068
1069test "$host_alias" != "$target_alias" &&
1070 test "$program_prefix$program_suffix$program_transform_name" = \
1071 NONENONEs,x,x, &&
1072 program_prefix=${target_alias}-
1073
1074
1075
1076WX_MAJOR_VERSION_NUMBER=2
1077WX_MINOR_VERSION_NUMBER=3
1078WX_RELEASE_NUMBER=3
1079
1080WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1081WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1082
1083WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1084
1085WX_CURRENT=2
1086WX_REVISION=0
1087WX_AGE=0
1088
1089
1090
1091USE_UNIX=1
1092USE_WIN32=0
1093USE_DOS=0
1094USE_BEOS=0
1095USE_MAC=0
1096
1097USE_LINUX=
1098USE_SGI=
1099USE_HPUX=
1100USE_SYSV=
1101USE_SVR4=
1102USE_AIX=
1103USE_SUN=
1104USE_SOLARIS=
1105USE_SUNOS=
1106USE_ALPHA=
1107USE_OSF=
1108USE_BSD=
1109USE_DARWIN=
1110USE_FREEBSD=
1111USE_OPENBSD=
1112USE_NETBSD=
1113USE_VMS=
1114USE_ULTRIX=
1115USE_DATA_GENERAL=
1116
1117NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1118
1119ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1120
1121DEFAULT_wxUSE_GTK=0
1122DEFAULT_wxUSE_MAC=0
1123DEFAULT_wxUSE_MGL=0
1124DEFAULT_wxUSE_MICROWIN=0
1125DEFAULT_wxUSE_MOTIF=0
1126DEFAULT_wxUSE_MSW=0
1127DEFAULT_wxUSE_PM=0
1128DEFAULT_wxUSE_WINE=0
1129DEFAULT_wxUSE_X11=0
1130
1131DEFAULT_DEFAULT_wxUSE_GTK=0
1132DEFAULT_DEFAULT_wxUSE_MAC=0
1133DEFAULT_DEFAULT_wxUSE_MGL=0
1134DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1135DEFAULT_DEFAULT_wxUSE_MOTIF=0
1136DEFAULT_DEFAULT_wxUSE_MSW=0
1137DEFAULT_DEFAULT_wxUSE_PM=0
1138DEFAULT_DEFAULT_wxUSE_WINE=0
1139DEFAULT_DEFAULT_wxUSE_X11=0
1140
1141PROGRAM_EXT=
1142SO_SUFFIX=so
1143
1144case "${host}" in
1145 *-hp-hpux* )
1146 USE_HPUX=1
1147 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1148 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1149 SO_SUFFIX=sl
1150 cat >> confdefs.h <<\EOF
1151#define __HPUX__ 1
1152EOF
1153
1154 ;;
1155 *-*-linux* )
1156 USE_LINUX=1
1157 cat >> confdefs.h <<\EOF
1158#define __LINUX__ 1
1159EOF
1160
1161 TMP=`uname -m`
1162 if test "x$TMP" = "xalpha"; then
1163 USE_ALPHA=1
1164 cat >> confdefs.h <<\EOF
1165#define __ALPHA__ 1
1166EOF
1167
1168 fi
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-irix5* | *-*-irix6* )
1172 USE_SGI=1
1173 USE_SVR4=1
1174 cat >> confdefs.h <<\EOF
1175#define __SGI__ 1
1176EOF
1177
1178 cat >> confdefs.h <<\EOF
1179#define __SVR4__ 1
1180EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183 ;;
1184 *-*-solaris2* )
1185 USE_SUN=1
1186 USE_SOLARIS=1
1187 USE_SVR4=1
1188 cat >> confdefs.h <<\EOF
1189#define __SUN__ 1
1190EOF
1191
1192 cat >> confdefs.h <<\EOF
1193#define __SOLARIS__ 1
1194EOF
1195
1196 cat >> confdefs.h <<\EOF
1197#define __SVR4__ 1
1198EOF
1199
1200 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1201 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1202 ;;
1203 *-*-sunos4* )
1204 USE_SUN=1
1205 USE_SUNOS=1
1206 USE_BSD=1
1207 cat >> confdefs.h <<\EOF
1208#define __SUN__ 1
1209EOF
1210
1211 cat >> confdefs.h <<\EOF
1212#define __SUNOS__ 1
1213EOF
1214
1215 cat >> confdefs.h <<\EOF
1216#define __BSD__ 1
1217EOF
1218
1219 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1220 ;;
1221 *-*-freebsd*)
1222 USE_BSD=1
1223 USE_FREEBSD=1
1224 cat >> confdefs.h <<\EOF
1225#define __FREEBSD__ 1
1226EOF
1227
1228 cat >> confdefs.h <<\EOF
1229#define __BSD__ 1
1230EOF
1231
1232 DEFAULT_DEFAULT_wxUSE_GTK=1
1233 ;;
1234 *-*-openbsd*)
1235 USE_BSD=1
1236 USE_OPENBSD=1
1237 cat >> confdefs.h <<\EOF
1238#define __FREEBSD__ 1
1239EOF
1240
1241 cat >> confdefs.h <<\EOF
1242#define __OPENBSD__ 1
1243EOF
1244
1245 DEFAULT_DEFAULT_wxUSE_GTK=1
1246 ;;
1247 *-*-netbsd*)
1248 USE_BSD=1
1249 USE_NETBSD=1
1250 cat >> confdefs.h <<\EOF
1251#define __FREEBSD__ 1
1252EOF
1253
1254 cat >> confdefs.h <<\EOF
1255#define __NETBSD__ 1
1256EOF
1257
1258 DEFAULT_DEFAULT_wxUSE_GTK=1
1259 ;;
1260 *-*-osf* )
1261 USE_ALPHA=1
1262 USE_OSF=1
1263 cat >> confdefs.h <<\EOF
1264#define __ALPHA__ 1
1265EOF
1266
1267 cat >> confdefs.h <<\EOF
1268#define __OSF__ 1
1269EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1273 ;;
1274 *-*-dgux5* )
1275 USE_ALPHA=1
1276 USE_SVR4=1
1277 cat >> confdefs.h <<\EOF
1278#define __ALPHA__ 1
1279EOF
1280
1281 cat >> confdefs.h <<\EOF
1282#define __SVR4__ 1
1283EOF
1284
1285 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1286 ;;
1287 *-*-sysv5* )
1288 USE_SYSV=1
1289 USE_SVR4=1
1290 cat >> confdefs.h <<\EOF
1291#define __SYSV__ 1
1292EOF
1293
1294 cat >> confdefs.h <<\EOF
1295#define __SVR4__ 1
1296EOF
1297
1298 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1299 ;;
1300 *-*-aix* )
1301 USE_AIX=1
1302 USE_SYSV=1
1303 USE_SVR4=1
1304 SO_SUFFIX=a
1305 cat >> confdefs.h <<\EOF
1306#define __AIX__ 1
1307EOF
1308
1309 cat >> confdefs.h <<\EOF
1310#define __SYSV__ 1
1311EOF
1312
1313 cat >> confdefs.h <<\EOF
1314#define __SVR4__ 1
1315EOF
1316
1317 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1318 ;;
1319
1320 *-*-cygwin* | *-*-mingw32* )
1321 SO_SUFFIX=dll
1322 PROGRAM_EXT=".exe"
1323 RESCOMP=windres
1324 DEFAULT_DEFAULT_wxUSE_MSW=1
1325 ;;
1326
1327 *-pc-msdosdjgpp )
1328 USE_UNIX=0
1329 USE_DOS=1
1330 cat >> confdefs.h <<\EOF
1331#define __DOS__ 1
1332EOF
1333
1334 PROGRAM_EXT=".exe"
1335 DEFAULT_DEFAULT_wxUSE_MGL=1
1336 LIBS="$LIBS -lstdc++"
1337 ;;
1338
1339 *-pc-os2_emx | *-pc-os2-emx )
1340 cat >> confdefs.h <<\EOF
1341#define __EMX__ 1
1342EOF
1343
1344 PROGRAM_EXT=".exe"
1345 DEFAULT_DEFAULT_wxUSE_PM=1
1346 LIBS="$LIBS -lstdcpp"
1347 ;;
1348
1349 powerpc-*-darwin* )
1350 USE_BSD=1
1351 USE_DARWIN=1
1352 SO_SUFFIX=dylib
1353 cat >> confdefs.h <<\EOF
1354#define __BSD__ 1
1355EOF
1356
1357 cat >> confdefs.h <<\EOF
1358#define __DARWIN__ 1
1359EOF
1360
1361 cat >> confdefs.h <<\EOF
1362#define __POWERPC__ 1
1363EOF
1364
1365 DEFAULT_DEFAULT_wxUSE_MAC=1
1366 ;;
1367
1368 *-*-beos* )
1369 USE_BEOS=1
1370 cat >> confdefs.h <<\EOF
1371#define __BEOS__ 1
1372EOF
1373
1374 ;;
1375
1376 *)
1377 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1378esac
1379
1380
1381
1382
1383 wx_arg_cache_file="configarg.cache"
1384 echo "loading argument cache $wx_arg_cache_file"
1385 rm -f ${wx_arg_cache_file}.tmp
1386 touch ${wx_arg_cache_file}.tmp
1387 touch ${wx_arg_cache_file}
1388
1389
1390DEBUG_CONFIGURE=0
1391if test $DEBUG_CONFIGURE = 1; then
1392 DEFAULT_wxUSE_UNIVERSAL=no
1393
1394 DEFAULT_wxUSE_NANOX=no
1395
1396 DEFAULT_wxUSE_THREADS=yes
1397
1398 DEFAULT_wxUSE_SHARED=yes
1399 DEFAULT_wxUSE_SONAME=no
1400 DEFAULT_wxUSE_OPTIMISE=no
1401 DEFAULT_wxUSE_PROFILE=no
1402 DEFAULT_wxUSE_NO_DEPS=no
1403 DEFAULT_wxUSE_NO_RTTI=no
1404 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1405 DEFAULT_wxUSE_PERMISSIVE=no
1406 DEFAULT_wxUSE_DEBUG_FLAG=yes
1407 DEFAULT_wxUSE_DEBUG_INFO=yes
1408 DEFAULT_wxUSE_DEBUG_GDB=yes
1409 DEFAULT_wxUSE_MEM_TRACING=no
1410 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1411 DEFAULT_wxUSE_DMALLOC=no
1412 DEFAULT_wxUSE_PRECOMP=no
1413 DEFAULT_wxUSE_APPLE_IEEE=no
1414
1415 DEFAULT_wxUSE_LOG=yes
1416 DEFAULT_wxUSE_LOGWINDOW=no
1417 DEFAULT_wxUSE_LOGGUI=no
1418 DEFAULT_wxUSE_LOGDIALOG=no
1419
1420 DEFAULT_wxUSE_GUI=yes
1421 DEFAULT_wxUSE_CONTROLS=no
1422
1423 DEFAULT_wxUSE_REGEX=no
1424 DEFAULT_wxUSE_ZLIB=no
1425 DEFAULT_wxUSE_LIBPNG=no
1426 DEFAULT_wxUSE_LIBJPEG=no
1427 DEFAULT_wxUSE_LIBTIFF=no
1428 DEFAULT_wxUSE_ODBC=no
1429 DEFAULT_wxUSE_OPENGL=no
1430
1431 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1432 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1433 DEFAULT_wxUSE_STD_IOSTREAM=no
1434 DEFAULT_wxUSE_CMDLINE_PARSER=no
1435 DEFAULT_wxUSE_DATETIME=no
1436 DEFAULT_wxUSE_TIMEDATE=no
1437 DEFAULT_wxUSE_TIMER=no
1438 DEFAULT_wxUSE_STOPWATCH=no
1439 DEFAULT_wxUSE_FILE=no
1440 DEFAULT_wxUSE_FFILE=no
1441 DEFAULT_wxUSE_TEXTBUFFER=no
1442 DEFAULT_wxUSE_TEXTFILE=no
1443 DEFAULT_wxUSE_WAVE=no
1444 DEFAULT_wxUSE_INTL=no
1445 DEFAULT_wxUSE_CONFIG=no
1446 DEFAULT_wxUSE_FONTMAP=no
1447 DEFAULT_wxUSE_STREAMS=no
1448 DEFAULT_wxUSE_SOCKETS=no
1449 DEFAULT_wxUSE_DIALUP_MANAGER=no
1450 DEFAULT_wxUSE_JOYSTICK=no
1451 DEFAULT_wxUSE_DYNLIB_CLASS=no
1452 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1453 DEFAULT_wxUSE_LONGLONG=no
1454 DEFAULT_wxUSE_GEOMETRY=no
1455
1456 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1457 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1458 DEFAULT_wxUSE_POSTSCRIPT=no
1459
1460 DEFAULT_wxUSE_X_RESOURCES=no
1461 DEFAULT_wxUSE_CLIPBOARD=no
1462 DEFAULT_wxUSE_TOOLTIPS=no
1463 DEFAULT_wxUSE_DRAG_AND_DROP=no
1464 DEFAULT_wxUSE_DRAGIMAGE=no
1465 DEFAULT_wxUSE_SPLINES=no
1466
1467 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1468 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1469 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1470
1471 DEFAULT_wxUSE_PROLOGIO=no
1472 DEFAULT_wxUSE_RESOURCES=no
1473 DEFAULT_wxUSE_CONSTRAINTS=no
1474 DEFAULT_wxUSE_IPC=no
1475 DEFAULT_wxUSE_HELP=no
1476 DEFAULT_wxUSE_MS_HTML_HELP=no
1477 DEFAULT_wxUSE_WXHTML_HELP=no
1478 DEFAULT_wxUSE_TREELAYOUT=no
1479 DEFAULT_wxUSE_METAFILE=no
1480 DEFAULT_wxUSE_MIMETYPE=no
1481 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1482 DEFAULT_wxUSE_PROTOCOL=no
1483 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1484 DEFAULT_wxUSE_PROTOCOL_FTP=no
1485 DEFAULT_wxUSE_PROTOCOL_FILE=no
1486 DEFAULT_wxUSE_URL=no
1487
1488 DEFAULT_wxUSE_COMMONDLGS=no
1489 DEFAULT_wxUSE_CHOICEDLG=no
1490 DEFAULT_wxUSE_COLOURDLG=no
1491 DEFAULT_wxUSE_DIRDLG=no
1492 DEFAULT_wxUSE_FILEDLG=no
1493 DEFAULT_wxUSE_FINDREPLDLG=no
1494 DEFAULT_wxUSE_FONTDLG=no
1495 DEFAULT_wxUSE_MSGDLG=no
1496 DEFAULT_wxUSE_NUMBERDLG=no
1497 DEFAULT_wxUSE_TEXTDLG=no
1498 DEFAULT_wxUSE_SPLASH=no
1499 DEFAULT_wxUSE_STARTUP_TIPS=no
1500 DEFAULT_wxUSE_PROGRESSDLG=no
1501 DEFAULT_wxUSE_WIZARDDLG=no
1502
1503 DEFAULT_wxUSE_MENUS=no
1504 DEFAULT_wxUSE_MINIFRAME=no
1505 DEFAULT_wxUSE_HTML=no
1506 DEFAULT_wxUSE_FILESYSTEM=no
1507 DEFAULT_wxUSE_FS_INET=no
1508 DEFAULT_wxUSE_FS_ZIP=no
1509 DEFAULT_wxUSE_BUSYINFO=no
1510 DEFAULT_wxUSE_ZIPSTREAM=no
1511 DEFAULT_wxUSE_VALIDATORS=no
1512
1513 DEFAULT_wxUSE_ACCEL=no
1514 DEFAULT_wxUSE_BUTTON=no
1515 DEFAULT_wxUSE_BMPBUTTON=no
1516 DEFAULT_wxUSE_CALCTRL=no
1517 DEFAULT_wxUSE_CARET=no
1518 DEFAULT_wxUSE_CHECKBOX=no
1519 DEFAULT_wxUSE_CHECKLST=no
1520 DEFAULT_wxUSE_CHOICE=no
1521 DEFAULT_wxUSE_COMBOBOX=no
1522 DEFAULT_wxUSE_GAUGE=no
1523 DEFAULT_wxUSE_GRID=no
1524 DEFAULT_wxUSE_NEW_GRID=no
1525 DEFAULT_wxUSE_IMAGLIST=no
1526 DEFAULT_wxUSE_LISTBOX=no
1527 DEFAULT_wxUSE_LISTCTRL=no
1528 DEFAULT_wxUSE_NOTEBOOK=no
1529 DEFAULT_wxUSE_PROPSHEET=no
1530 DEFAULT_wxUSE_RADIOBOX=no
1531 DEFAULT_wxUSE_RADIOBTN=no
1532 DEFAULT_wxUSE_SASH=no
1533 DEFAULT_wxUSE_SCROLLBAR=no
1534 DEFAULT_wxUSE_SLIDER=no
1535 DEFAULT_wxUSE_SPINBTN=no
1536 DEFAULT_wxUSE_SPINCTRL=no
1537 DEFAULT_wxUSE_SPLITTER=no
1538 DEFAULT_wxUSE_STATBMP=no
1539 DEFAULT_wxUSE_STATBOX=no
1540 DEFAULT_wxUSE_STATLINE=no
1541 DEFAULT_wxUSE_STATTEXT=no
1542 DEFAULT_wxUSE_STATUSBAR=yes
1543 DEFAULT_wxUSE_TABDIALOG=no
1544 DEFAULT_wxUSE_TEXTCTRL=no
1545 DEFAULT_wxUSE_TOGGLEBTN=no
1546 DEFAULT_wxUSE_TOOLBAR=no
1547 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1548 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1549 DEFAULT_wxUSE_TREECTRL=no
1550 DEFAULT_wxUSE_POPUPWIN=no
1551 DEFAULT_wxUSE_TIPWINDOW=no
1552
1553 DEFAULT_wxUSE_UNICODE=no
1554 DEFAULT_wxUSE_UNICODE_MSLU=no
1555 DEFAULT_wxUSE_WCSRTOMBS=no
1556
1557 DEFAULT_wxUSE_PALETTE=no
1558 DEFAULT_wxUSE_IMAGE=no
1559 DEFAULT_wxUSE_GIF=no
1560 DEFAULT_wxUSE_PCX=no
1561 DEFAULT_wxUSE_PNM=no
1562 DEFAULT_wxUSE_IFF=no
1563 DEFAULT_wxUSE_XPM=no
1564 DEFAULT_wxUSE_ICO_CUR=no
1565else
1566 DEFAULT_wxUSE_UNIVERSAL=no
1567
1568 DEFAULT_wxUSE_NANOX=no
1569
1570 DEFAULT_wxUSE_THREADS=yes
1571
1572 DEFAULT_wxUSE_SHARED=yes
1573 DEFAULT_wxUSE_SONAME=no
1574 DEFAULT_wxUSE_OPTIMISE=yes
1575 DEFAULT_wxUSE_PROFILE=no
1576 DEFAULT_wxUSE_NO_DEPS=no
1577 DEFAULT_wxUSE_NO_RTTI=no
1578 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1579 DEFAULT_wxUSE_PERMISSIVE=no
1580 DEFAULT_wxUSE_DEBUG_FLAG=no
1581 DEFAULT_wxUSE_DEBUG_INFO=no
1582 DEFAULT_wxUSE_DEBUG_GDB=no
1583 DEFAULT_wxUSE_MEM_TRACING=no
1584 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1585 DEFAULT_wxUSE_DMALLOC=no
1586 DEFAULT_wxUSE_PRECOMP=no
1587 DEFAULT_wxUSE_APPLE_IEEE=yes
1588
1589 DEFAULT_wxUSE_LOG=yes
1590 DEFAULT_wxUSE_LOGWINDOW=yes
1591 DEFAULT_wxUSE_LOGGUI=yes
1592 DEFAULT_wxUSE_LOGDIALOG=yes
1593
1594 DEFAULT_wxUSE_GUI=yes
1595
1596 DEFAULT_wxUSE_REGEX=yes
1597 DEFAULT_wxUSE_ZLIB=yes
1598 DEFAULT_wxUSE_LIBPNG=yes
1599 DEFAULT_wxUSE_LIBJPEG=yes
1600 DEFAULT_wxUSE_LIBTIFF=yes
1601 DEFAULT_wxUSE_ODBC=no
1602 DEFAULT_wxUSE_OPENGL=no
1603
1604 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1605 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1606 DEFAULT_wxUSE_STD_IOSTREAM=no
1607 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1608 DEFAULT_wxUSE_DATETIME=yes
1609 DEFAULT_wxUSE_TIMEDATE=no
1610 DEFAULT_wxUSE_TIMER=yes
1611 DEFAULT_wxUSE_STOPWATCH=yes
1612 DEFAULT_wxUSE_FILE=yes
1613 DEFAULT_wxUSE_FFILE=yes
1614 DEFAULT_wxUSE_TEXTBUFFER=yes
1615 DEFAULT_wxUSE_TEXTFILE=yes
1616 DEFAULT_wxUSE_WAVE=no
1617 DEFAULT_wxUSE_INTL=yes
1618 DEFAULT_wxUSE_CONFIG=yes
1619 DEFAULT_wxUSE_FONTMAP=yes
1620 DEFAULT_wxUSE_STREAMS=yes
1621 DEFAULT_wxUSE_SOCKETS=yes
1622 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1623 DEFAULT_wxUSE_JOYSTICK=yes
1624 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1625 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1626 DEFAULT_wxUSE_LONGLONG=yes
1627 DEFAULT_wxUSE_GEOMETRY=yes
1628
1629 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1630 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1631 DEFAULT_wxUSE_POSTSCRIPT=yes
1632
1633 DEFAULT_wxUSE_X_RESOURCES=no
1634 DEFAULT_wxUSE_CLIPBOARD=yes
1635 DEFAULT_wxUSE_TOOLTIPS=yes
1636 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1637 DEFAULT_wxUSE_DRAGIMAGE=yes
1638 DEFAULT_wxUSE_SPLINES=yes
1639
1640 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1641 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1642 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1643
1644 DEFAULT_wxUSE_PROLOGIO=yes
1645 DEFAULT_wxUSE_RESOURCES=yes
1646 DEFAULT_wxUSE_CONSTRAINTS=yes
1647 DEFAULT_wxUSE_IPC=yes
1648 DEFAULT_wxUSE_HELP=yes
1649 DEFAULT_wxUSE_MS_HTML_HELP=yes
1650 DEFAULT_wxUSE_WXHTML_HELP=yes
1651 DEFAULT_wxUSE_TREELAYOUT=yes
1652 DEFAULT_wxUSE_METAFILE=yes
1653 DEFAULT_wxUSE_MIMETYPE=yes
1654 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1655 DEFAULT_wxUSE_PROTOCOL=yes
1656 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1657 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1658 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1659 DEFAULT_wxUSE_URL=yes
1660
1661 DEFAULT_wxUSE_COMMONDLGS=yes
1662 DEFAULT_wxUSE_CHOICEDLG=yes
1663 DEFAULT_wxUSE_COLOURDLG=yes
1664 DEFAULT_wxUSE_DIRDLG=yes
1665 DEFAULT_wxUSE_FILEDLG=yes
1666 DEFAULT_wxUSE_FINDREPLDLG=yes
1667 DEFAULT_wxUSE_FONTDLG=yes
1668 DEFAULT_wxUSE_MSGDLG=yes
1669 DEFAULT_wxUSE_NUMBERDLG=yes
1670 DEFAULT_wxUSE_TEXTDLG=yes
1671 DEFAULT_wxUSE_SPLASH=yes
1672 DEFAULT_wxUSE_STARTUP_TIPS=yes
1673 DEFAULT_wxUSE_PROGRESSDLG=yes
1674 DEFAULT_wxUSE_WIZARDDLG=yes
1675
1676 DEFAULT_wxUSE_MENUS=yes
1677 DEFAULT_wxUSE_MINIFRAME=yes
1678 DEFAULT_wxUSE_HTML=yes
1679 DEFAULT_wxUSE_FILESYSTEM=yes
1680 DEFAULT_wxUSE_FS_INET=yes
1681 DEFAULT_wxUSE_FS_ZIP=yes
1682 DEFAULT_wxUSE_BUSYINFO=yes
1683 DEFAULT_wxUSE_ZIPSTREAM=yes
1684 DEFAULT_wxUSE_VALIDATORS=yes
1685
1686 DEFAULT_wxUSE_ACCEL=yes
1687 DEFAULT_wxUSE_BUTTON=yes
1688 DEFAULT_wxUSE_BMPBUTTON=yes
1689 DEFAULT_wxUSE_CALCTRL=yes
1690 DEFAULT_wxUSE_CARET=yes
1691 DEFAULT_wxUSE_CHECKBOX=yes
1692 DEFAULT_wxUSE_CHECKLST=yes
1693 DEFAULT_wxUSE_CHOICE=yes
1694 DEFAULT_wxUSE_COMBOBOX=yes
1695 DEFAULT_wxUSE_GAUGE=yes
1696 DEFAULT_wxUSE_GRID=yes
1697 DEFAULT_wxUSE_NEW_GRID=yes
1698 DEFAULT_wxUSE_IMAGLIST=yes
1699 DEFAULT_wxUSE_LISTBOX=yes
1700 DEFAULT_wxUSE_LISTCTRL=yes
1701 DEFAULT_wxUSE_NOTEBOOK=yes
1702 DEFAULT_wxUSE_PROPSHEET=yes
1703 DEFAULT_wxUSE_RADIOBOX=yes
1704 DEFAULT_wxUSE_RADIOBTN=yes
1705 DEFAULT_wxUSE_SASH=yes
1706 DEFAULT_wxUSE_SCROLLBAR=yes
1707 DEFAULT_wxUSE_SLIDER=yes
1708 DEFAULT_wxUSE_SPINBTN=yes
1709 DEFAULT_wxUSE_SPINCTRL=yes
1710 DEFAULT_wxUSE_SPLITTER=yes
1711 DEFAULT_wxUSE_STATBMP=yes
1712 DEFAULT_wxUSE_STATBOX=yes
1713 DEFAULT_wxUSE_STATLINE=yes
1714 DEFAULT_wxUSE_STATTEXT=yes
1715 DEFAULT_wxUSE_STATUSBAR=yes
1716 DEFAULT_wxUSE_TABDIALOG=no
1717 DEFAULT_wxUSE_TEXTCTRL=yes
1718 DEFAULT_wxUSE_TOGGLEBTN=yes
1719 DEFAULT_wxUSE_TOOLBAR=yes
1720 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1721 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1722 DEFAULT_wxUSE_TREECTRL=yes
1723 DEFAULT_wxUSE_POPUPWIN=yes
1724 DEFAULT_wxUSE_TIPWINDOW=yes
1725
1726 DEFAULT_wxUSE_UNICODE=no
1727 DEFAULT_wxUSE_UNICODE_MSLU=yes
1728 DEFAULT_wxUSE_WCSRTOMBS=no
1729
1730 DEFAULT_wxUSE_PALETTE=yes
1731 DEFAULT_wxUSE_IMAGE=yes
1732 DEFAULT_wxUSE_GIF=yes
1733 DEFAULT_wxUSE_PCX=yes
1734 DEFAULT_wxUSE_IFF=no
1735 DEFAULT_wxUSE_PNM=yes
1736 DEFAULT_wxUSE_XPM=yes
1737 DEFAULT_wxUSE_ICO_CUR=yes
1738fi
1739
1740
1741
1742for toolkit in `echo $ALL_TOOLKITS`; do
1743 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1744 if test "x$LINE" != x ; then
1745 has_toolkit_in_cache=1
1746 eval "DEFAULT_$LINE"
1747 eval "CACHE_$toolkit=1"
1748 fi
1749done
1750
1751
1752
1753 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1754echo "configure:1755: checking for --enable-gui" >&5
1755 no_cache=0
1756 # Check whether --enable-gui or --disable-gui was given.
1757if test "${enable_gui+set}" = set; then
1758 enableval="$enable_gui"
1759
1760 if test "$enableval" = yes; then
1761 ac_cv_use_gui='wxUSE_GUI=yes'
1762 else
1763 ac_cv_use_gui='wxUSE_GUI=no'
1764 fi
1765
1766else
1767
1768 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1769 if test "x$LINE" != x ; then
1770 eval "DEFAULT_$LINE"
1771 else
1772 no_cache=1
1773 fi
1774
1775 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1776
1777fi
1778
1779
1780 eval "$ac_cv_use_gui"
1781 if test "$no_cache" != 1; then
1782 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1783 fi
1784
1785 if test "$wxUSE_GUI" = yes; then
1786 echo "$ac_t""yes" 1>&6
1787 else
1788 echo "$ac_t""no" 1>&6
1789 fi
1790
1791
1792if test "$wxUSE_GUI" = "yes"; then
1793
1794
1795 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1796echo "configure:1797: checking for --enable-universal" >&5
1797 no_cache=0
1798 # Check whether --enable-universal or --disable-universal was given.
1799if test "${enable_universal+set}" = set; then
1800 enableval="$enable_universal"
1801
1802 if test "$enableval" = yes; then
1803 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1804 else
1805 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1806 fi
1807
1808else
1809
1810 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1811 if test "x$LINE" != x ; then
1812 eval "DEFAULT_$LINE"
1813 else
1814 no_cache=1
1815 fi
1816
1817 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1818
1819fi
1820
1821
1822 eval "$ac_cv_use_universal"
1823 if test "$no_cache" != 1; then
1824 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1825 fi
1826
1827 if test "$wxUSE_UNIVERSAL" = yes; then
1828 echo "$ac_t""yes" 1>&6
1829 else
1830 echo "$ac_t""no" 1>&6
1831 fi
1832
1833# Check whether --with-gtk or --without-gtk was given.
1834if test "${with_gtk+set}" = set; then
1835 withval="$with_gtk"
1836 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1837fi
1838
1839# Check whether --with-motif or --without-motif was given.
1840if test "${with_motif+set}" = set; then
1841 withval="$with_motif"
1842 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1843fi
1844
1845# Check whether --with-mac or --without-mac was given.
1846if test "${with_mac+set}" = set; then
1847 withval="$with_mac"
1848 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1849fi
1850
1851# Check whether --with-wine or --without-wine was given.
1852if test "${with_wine+set}" = set; then
1853 withval="$with_wine"
1854 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1855fi
1856
1857# Check whether --with-msw or --without-msw was given.
1858if test "${with_msw+set}" = set; then
1859 withval="$with_msw"
1860 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1861fi
1862
1863# Check whether --with-pm or --without-pm was given.
1864if test "${with_pm+set}" = set; then
1865 withval="$with_pm"
1866 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1867fi
1868
1869# Check whether --with-mgl or --without-mgl was given.
1870if test "${with_mgl+set}" = set; then
1871 withval="$with_mgl"
1872 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1873fi
1874
1875# Check whether --with-microwin or --without-microwin was given.
1876if test "${with_microwin+set}" = set; then
1877 withval="$with_microwin"
1878 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1879fi
1880
1881# Check whether --with-x11 or --without-x11 was given.
1882if test "${with_x11+set}" = set; then
1883 withval="$with_x11"
1884 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1885fi
1886
1887
1888 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1889echo "configure:1890: checking for --enable-nanox" >&5
1890 no_cache=0
1891 # Check whether --enable-nanox or --disable-nanox was given.
1892if test "${enable_nanox+set}" = set; then
1893 enableval="$enable_nanox"
1894
1895 if test "$enableval" = yes; then
1896 ac_cv_use_nanox='wxUSE_NANOX=yes'
1897 else
1898 ac_cv_use_nanox='wxUSE_NANOX=no'
1899 fi
1900
1901else
1902
1903 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
1910 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1911
1912fi
1913
1914
1915 eval "$ac_cv_use_nanox"
1916 if test "$no_cache" != 1; then
1917 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1918 fi
1919
1920 if test "$wxUSE_NANOX" = yes; then
1921 echo "$ac_t""yes" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925
1926
1927# Check whether --enable-gtk2 or --disable-gtk2 was given.
1928if test "${enable_gtk2+set}" = set; then
1929 enableval="$enable_gtk2"
1930 wxUSE_GTK2="yes"
1931else
1932 wxUSE_GTK2="no"
1933fi
1934
1935
1936
1937 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1938echo "configure:1939: checking for --with-libpng" >&5
1939 no_cache=0
1940 # Check whether --with-libpng or --without-libpng was given.
1941if test "${with_libpng+set}" = set; then
1942 withval="$with_libpng"
1943
1944 if test "$withval" = yes; then
1945 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1946 elif test "$withval" = no; then
1947 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1948 elif test "$withval" = sys; then
1949 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1950 elif test "$withval" = builtin; then
1951 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1952 else
1953 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1954 fi
1955
1956else
1957
1958 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1959 if test "x$LINE" != x ; then
1960 eval "DEFAULT_$LINE"
1961 else
1962 no_cache=1
1963 fi
1964
1965 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1966
1967fi
1968
1969
1970 eval "$ac_cv_use_libpng"
1971 if test "$no_cache" != 1; then
1972 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1973 fi
1974
1975 if test "$wxUSE_LIBPNG" = yes; then
1976 echo "$ac_t""yes" 1>&6
1977 elif test "$wxUSE_LIBPNG" = no; then
1978 echo "$ac_t""no" 1>&6
1979 elif test "$wxUSE_LIBPNG" = sys; then
1980 echo "$ac_t""system version" 1>&6
1981 elif test "$wxUSE_LIBPNG" = builtin; then
1982 echo "$ac_t""builtin version" 1>&6
1983 else
1984 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1985 fi
1986
1987
1988 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1989echo "configure:1990: checking for --with-libjpeg" >&5
1990 no_cache=0
1991 # Check whether --with-libjpeg or --without-libjpeg was given.
1992if test "${with_libjpeg+set}" = set; then
1993 withval="$with_libjpeg"
1994
1995 if test "$withval" = yes; then
1996 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1997 elif test "$withval" = no; then
1998 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1999 elif test "$withval" = sys; then
2000 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2001 elif test "$withval" = builtin; then
2002 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2003 else
2004 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2005 fi
2006
2007else
2008
2009 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2010 if test "x$LINE" != x ; then
2011 eval "DEFAULT_$LINE"
2012 else
2013 no_cache=1
2014 fi
2015
2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2017
2018fi
2019
2020
2021 eval "$ac_cv_use_libjpeg"
2022 if test "$no_cache" != 1; then
2023 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2024 fi
2025
2026 if test "$wxUSE_LIBJPEG" = yes; then
2027 echo "$ac_t""yes" 1>&6
2028 elif test "$wxUSE_LIBJPEG" = no; then
2029 echo "$ac_t""no" 1>&6
2030 elif test "$wxUSE_LIBJPEG" = sys; then
2031 echo "$ac_t""system version" 1>&6
2032 elif test "$wxUSE_LIBJPEG" = builtin; then
2033 echo "$ac_t""builtin version" 1>&6
2034 else
2035 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2036 fi
2037
2038
2039 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2040echo "configure:2041: checking for --with-libtiff" >&5
2041 no_cache=0
2042 # Check whether --with-libtiff or --without-libtiff was given.
2043if test "${with_libtiff+set}" = set; then
2044 withval="$with_libtiff"
2045
2046 if test "$withval" = yes; then
2047 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2048 elif test "$withval" = no; then
2049 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2050 elif test "$withval" = sys; then
2051 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2052 elif test "$withval" = builtin; then
2053 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2054 else
2055 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2056 fi
2057
2058else
2059
2060 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2061 if test "x$LINE" != x ; then
2062 eval "DEFAULT_$LINE"
2063 else
2064 no_cache=1
2065 fi
2066
2067 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2068
2069fi
2070
2071
2072 eval "$ac_cv_use_libtiff"
2073 if test "$no_cache" != 1; then
2074 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2075 fi
2076
2077 if test "$wxUSE_LIBTIFF" = yes; then
2078 echo "$ac_t""yes" 1>&6
2079 elif test "$wxUSE_LIBTIFF" = no; then
2080 echo "$ac_t""no" 1>&6
2081 elif test "$wxUSE_LIBTIFF" = sys; then
2082 echo "$ac_t""system version" 1>&6
2083 elif test "$wxUSE_LIBTIFF" = builtin; then
2084 echo "$ac_t""builtin version" 1>&6
2085 else
2086 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2087 fi
2088
2089
2090 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2091echo "configure:2092: checking for --with-opengl" >&5
2092 no_cache=0
2093 # Check whether --with-opengl or --without-opengl was given.
2094if test "${with_opengl+set}" = set; then
2095 withval="$with_opengl"
2096
2097 if test "$withval" = yes; then
2098 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2099 else
2100 ac_cv_use_opengl='wxUSE_OPENGL=no'
2101 fi
2102
2103else
2104
2105 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
2112 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2113
2114fi
2115
2116
2117 eval "$ac_cv_use_opengl"
2118 if test "$no_cache" != 1; then
2119 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2120 fi
2121
2122 if test "$wxUSE_OPENGL" = yes; then
2123 echo "$ac_t""yes" 1>&6
2124 else
2125 echo "$ac_t""no" 1>&6
2126 fi
2127
2128
2129fi
2130
2131
2132 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2133echo "configure:2134: checking for --with-dmalloc" >&5
2134 no_cache=0
2135 # Check whether --with-dmalloc or --without-dmalloc was given.
2136if test "${with_dmalloc+set}" = set; then
2137 withval="$with_dmalloc"
2138
2139 if test "$withval" = yes; then
2140 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2141 else
2142 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2143 fi
2144
2145else
2146
2147 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2148 if test "x$LINE" != x ; then
2149 eval "DEFAULT_$LINE"
2150 else
2151 no_cache=1
2152 fi
2153
2154 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2155
2156fi
2157
2158
2159 eval "$ac_cv_use_dmalloc"
2160 if test "$no_cache" != 1; then
2161 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2162 fi
2163
2164 if test "$wxUSE_DMALLOC" = yes; then
2165 echo "$ac_t""yes" 1>&6
2166 else
2167 echo "$ac_t""no" 1>&6
2168 fi
2169
2170
2171 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2172echo "configure:2173: checking for --with-regex" >&5
2173 no_cache=0
2174 # Check whether --with-regex or --without-regex was given.
2175if test "${with_regex+set}" = set; then
2176 withval="$with_regex"
2177
2178 if test "$withval" = yes; then
2179 ac_cv_use_regex='wxUSE_REGEX=yes'
2180 elif test "$withval" = no; then
2181 ac_cv_use_regex='wxUSE_REGEX=no'
2182 elif test "$withval" = sys; then
2183 ac_cv_use_regex='wxUSE_REGEX=sys'
2184 elif test "$withval" = builtin; then
2185 ac_cv_use_regex='wxUSE_REGEX=builtin'
2186 else
2187 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2188 fi
2189
2190else
2191
2192 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
2199 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2200
2201fi
2202
2203
2204 eval "$ac_cv_use_regex"
2205 if test "$no_cache" != 1; then
2206 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2207 fi
2208
2209 if test "$wxUSE_REGEX" = yes; then
2210 echo "$ac_t""yes" 1>&6
2211 elif test "$wxUSE_REGEX" = no; then
2212 echo "$ac_t""no" 1>&6
2213 elif test "$wxUSE_REGEX" = sys; then
2214 echo "$ac_t""system version" 1>&6
2215 elif test "$wxUSE_REGEX" = builtin; then
2216 echo "$ac_t""builtin version" 1>&6
2217 else
2218 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2219 fi
2220
2221
2222 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2223echo "configure:2224: checking for --with-zlib" >&5
2224 no_cache=0
2225 # Check whether --with-zlib or --without-zlib was given.
2226if test "${with_zlib+set}" = set; then
2227 withval="$with_zlib"
2228
2229 if test "$withval" = yes; then
2230 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2231 elif test "$withval" = no; then
2232 ac_cv_use_zlib='wxUSE_ZLIB=no'
2233 elif test "$withval" = sys; then
2234 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2235 elif test "$withval" = builtin; then
2236 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2237 else
2238 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2239 fi
2240
2241else
2242
2243 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2244 if test "x$LINE" != x ; then
2245 eval "DEFAULT_$LINE"
2246 else
2247 no_cache=1
2248 fi
2249
2250 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2251
2252fi
2253
2254
2255 eval "$ac_cv_use_zlib"
2256 if test "$no_cache" != 1; then
2257 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2258 fi
2259
2260 if test "$wxUSE_ZLIB" = yes; then
2261 echo "$ac_t""yes" 1>&6
2262 elif test "$wxUSE_ZLIB" = no; then
2263 echo "$ac_t""no" 1>&6
2264 elif test "$wxUSE_ZLIB" = sys; then
2265 echo "$ac_t""system version" 1>&6
2266 elif test "$wxUSE_ZLIB" = builtin; then
2267 echo "$ac_t""builtin version" 1>&6
2268 else
2269 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2270 fi
2271
2272
2273 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2274echo "configure:2275: checking for --with-odbc" >&5
2275 no_cache=0
2276 # Check whether --with-odbc or --without-odbc was given.
2277if test "${with_odbc+set}" = set; then
2278 withval="$with_odbc"
2279
2280 if test "$withval" = yes; then
2281 ac_cv_use_odbc='wxUSE_ODBC=yes'
2282 else
2283 ac_cv_use_odbc='wxUSE_ODBC=no'
2284 fi
2285
2286else
2287
2288 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
2295 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2296
2297fi
2298
2299
2300 eval "$ac_cv_use_odbc"
2301 if test "$no_cache" != 1; then
2302 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2303 fi
2304
2305 if test "$wxUSE_ODBC" = yes; then
2306 echo "$ac_t""yes" 1>&6
2307 else
2308 echo "$ac_t""no" 1>&6
2309 fi
2310
2311
2312
2313
2314 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2315echo "configure:2316: checking for --enable-shared" >&5
2316 no_cache=0
2317 # Check whether --enable-shared or --disable-shared was given.
2318if test "${enable_shared+set}" = set; then
2319 enableval="$enable_shared"
2320
2321 if test "$enableval" = yes; then
2322 ac_cv_use_shared='wxUSE_SHARED=yes'
2323 else
2324 ac_cv_use_shared='wxUSE_SHARED=no'
2325 fi
2326
2327else
2328
2329 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2330 if test "x$LINE" != x ; then
2331 eval "DEFAULT_$LINE"
2332 else
2333 no_cache=1
2334 fi
2335
2336 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2337
2338fi
2339
2340
2341 eval "$ac_cv_use_shared"
2342 if test "$no_cache" != 1; then
2343 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2344 fi
2345
2346 if test "$wxUSE_SHARED" = yes; then
2347 echo "$ac_t""yes" 1>&6
2348 else
2349 echo "$ac_t""no" 1>&6
2350 fi
2351
2352
2353 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2354echo "configure:2355: checking for --enable-soname" >&5
2355 no_cache=0
2356 # Check whether --enable-soname or --disable-soname was given.
2357if test "${enable_soname+set}" = set; then
2358 enableval="$enable_soname"
2359
2360 if test "$enableval" = yes; then
2361 ac_cv_use_soname='wxUSE_SONAME=yes'
2362 else
2363 ac_cv_use_soname='wxUSE_SONAME=no'
2364 fi
2365
2366else
2367
2368 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2369 if test "x$LINE" != x ; then
2370 eval "DEFAULT_$LINE"
2371 else
2372 no_cache=1
2373 fi
2374
2375 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2376
2377fi
2378
2379
2380 eval "$ac_cv_use_soname"
2381 if test "$no_cache" != 1; then
2382 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2383 fi
2384
2385 if test "$wxUSE_SONAME" = yes; then
2386 echo "$ac_t""yes" 1>&6
2387 else
2388 echo "$ac_t""no" 1>&6
2389 fi
2390
2391
2392 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2393echo "configure:2394: checking for --enable-optimise" >&5
2394 no_cache=0
2395 # Check whether --enable-optimise or --disable-optimise was given.
2396if test "${enable_optimise+set}" = set; then
2397 enableval="$enable_optimise"
2398
2399 if test "$enableval" = yes; then
2400 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2401 else
2402 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2403 fi
2404
2405else
2406
2407 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2415
2416fi
2417
2418
2419 eval "$ac_cv_use_optimise"
2420 if test "$no_cache" != 1; then
2421 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2422 fi
2423
2424 if test "$wxUSE_OPTIMISE" = yes; then
2425 echo "$ac_t""yes" 1>&6
2426 else
2427 echo "$ac_t""no" 1>&6
2428 fi
2429
2430
2431 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2432echo "configure:2433: checking for --enable-debug" >&5
2433 no_cache=0
2434 # Check whether --enable-debug or --disable-debug was given.
2435if test "${enable_debug+set}" = set; then
2436 enableval="$enable_debug"
2437
2438 if test "$enableval" = yes; then
2439 ac_cv_use_debug='wxUSE_DEBUG=yes'
2440 else
2441 ac_cv_use_debug='wxUSE_DEBUG=no'
2442 fi
2443
2444else
2445
2446 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2447 if test "x$LINE" != x ; then
2448 eval "DEFAULT_$LINE"
2449 else
2450 no_cache=1
2451 fi
2452
2453 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2454
2455fi
2456
2457
2458 eval "$ac_cv_use_debug"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_DEBUG" = yes; then
2464 echo "$ac_t""yes" 1>&6
2465 else
2466 echo "$ac_t""no" 1>&6
2467 fi
2468
2469
2470
2471 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2472echo "configure:2473: checking for --enable-precomp" >&5
2473 no_cache=0
2474 # Check whether --enable-precomp or --disable-precomp was given.
2475if test "${enable_precomp+set}" = set; then
2476 enableval="$enable_precomp"
2477
2478 if test "$enableval" = yes; then
2479 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2480 else
2481 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2482 fi
2483
2484else
2485
2486 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2487 if test "x$LINE" != x ; then
2488 eval "DEFAULT_$LINE"
2489 else
2490 no_cache=1
2491 fi
2492
2493 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2494
2495fi
2496
2497
2498 eval "$ac_cv_use_precomp"
2499 if test "$no_cache" != 1; then
2500 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2501 fi
2502
2503 if test "$wxUSE_PRECOMP" = yes; then
2504 echo "$ac_t""yes" 1>&6
2505 else
2506 echo "$ac_t""no" 1>&6
2507 fi
2508
2509
2510if test "$wxUSE_DEBUG" = "yes"; then
2511 DEFAULT_wxUSE_DEBUG_FLAG=yes
2512 DEFAULT_wxUSE_DEBUG_INFO=yes
2513elif test "$wxUSE_DEBUG" = "no"; then
2514 DEFAULT_wxUSE_DEBUG_FLAG=no
2515 DEFAULT_wxUSE_DEBUG_INFO=no
2516fi
2517
2518
2519 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2520echo "configure:2521: checking for --enable-debug_flag" >&5
2521 no_cache=0
2522 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2523if test "${enable_debug_flag+set}" = set; then
2524 enableval="$enable_debug_flag"
2525
2526 if test "$enableval" = yes; then
2527 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2528 else
2529 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2530 fi
2531
2532else
2533
2534 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2535 if test "x$LINE" != x ; then
2536 eval "DEFAULT_$LINE"
2537 else
2538 no_cache=1
2539 fi
2540
2541 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2542
2543fi
2544
2545
2546 eval "$ac_cv_use_debug_flag"
2547 if test "$no_cache" != 1; then
2548 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2549 fi
2550
2551 if test "$wxUSE_DEBUG_FLAG" = yes; then
2552 echo "$ac_t""yes" 1>&6
2553 else
2554 echo "$ac_t""no" 1>&6
2555 fi
2556
2557
2558 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2559echo "configure:2560: checking for --enable-debug_info" >&5
2560 no_cache=0
2561 # Check whether --enable-debug_info or --disable-debug_info was given.
2562if test "${enable_debug_info+set}" = set; then
2563 enableval="$enable_debug_info"
2564
2565 if test "$enableval" = yes; then
2566 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2567 else
2568 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2569 fi
2570
2571else
2572
2573 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2574 if test "x$LINE" != x ; then
2575 eval "DEFAULT_$LINE"
2576 else
2577 no_cache=1
2578 fi
2579
2580 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2581
2582fi
2583
2584
2585 eval "$ac_cv_use_debug_info"
2586 if test "$no_cache" != 1; then
2587 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2588 fi
2589
2590 if test "$wxUSE_DEBUG_INFO" = yes; then
2591 echo "$ac_t""yes" 1>&6
2592 else
2593 echo "$ac_t""no" 1>&6
2594 fi
2595
2596
2597 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2598echo "configure:2599: checking for --enable-debug_gdb" >&5
2599 no_cache=0
2600 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2601if test "${enable_debug_gdb+set}" = set; then
2602 enableval="$enable_debug_gdb"
2603
2604 if test "$enableval" = yes; then
2605 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2606 else
2607 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2608 fi
2609
2610else
2611
2612 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2613 if test "x$LINE" != x ; then
2614 eval "DEFAULT_$LINE"
2615 else
2616 no_cache=1
2617 fi
2618
2619 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2620
2621fi
2622
2623
2624 eval "$ac_cv_use_debug_gdb"
2625 if test "$no_cache" != 1; then
2626 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2627 fi
2628
2629 if test "$wxUSE_DEBUG_GDB" = yes; then
2630 echo "$ac_t""yes" 1>&6
2631 else
2632 echo "$ac_t""no" 1>&6
2633 fi
2634
2635
2636 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2637echo "configure:2638: checking for --enable-debug_cntxt" >&5
2638 no_cache=0
2639 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2640if test "${enable_debug_cntxt+set}" = set; then
2641 enableval="$enable_debug_cntxt"
2642
2643 if test "$enableval" = yes; then
2644 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2645 else
2646 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2647 fi
2648
2649else
2650
2651 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2652 if test "x$LINE" != x ; then
2653 eval "DEFAULT_$LINE"
2654 else
2655 no_cache=1
2656 fi
2657
2658 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2659
2660fi
2661
2662
2663 eval "$ac_cv_use_debug_cntxt"
2664 if test "$no_cache" != 1; then
2665 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2666 fi
2667
2668 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2669 echo "$ac_t""yes" 1>&6
2670 else
2671 echo "$ac_t""no" 1>&6
2672 fi
2673
2674
2675 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2676echo "configure:2677: checking for --enable-mem_tracing" >&5
2677 no_cache=0
2678 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2679if test "${enable_mem_tracing+set}" = set; then
2680 enableval="$enable_mem_tracing"
2681
2682 if test "$enableval" = yes; then
2683 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2684 else
2685 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2686 fi
2687
2688else
2689
2690 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2691 if test "x$LINE" != x ; then
2692 eval "DEFAULT_$LINE"
2693 else
2694 no_cache=1
2695 fi
2696
2697 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2698
2699fi
2700
2701
2702 eval "$ac_cv_use_mem_tracing"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_MEM_TRACING" = yes; then
2708 echo "$ac_t""yes" 1>&6
2709 else
2710 echo "$ac_t""no" 1>&6
2711 fi
2712
2713
2714 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2715echo "configure:2716: checking for --enable-profile" >&5
2716 no_cache=0
2717 # Check whether --enable-profile or --disable-profile was given.
2718if test "${enable_profile+set}" = set; then
2719 enableval="$enable_profile"
2720
2721 if test "$enableval" = yes; then
2722 ac_cv_use_profile='wxUSE_PROFILE=yes'
2723 else
2724 ac_cv_use_profile='wxUSE_PROFILE=no'
2725 fi
2726
2727else
2728
2729 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2730 if test "x$LINE" != x ; then
2731 eval "DEFAULT_$LINE"
2732 else
2733 no_cache=1
2734 fi
2735
2736 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2737
2738fi
2739
2740
2741 eval "$ac_cv_use_profile"
2742 if test "$no_cache" != 1; then
2743 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2744 fi
2745
2746 if test "$wxUSE_PROFILE" = yes; then
2747 echo "$ac_t""yes" 1>&6
2748 else
2749 echo "$ac_t""no" 1>&6
2750 fi
2751
2752
2753 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2754echo "configure:2755: checking for --enable-no_rtti" >&5
2755 no_cache=0
2756 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2757if test "${enable_no_rtti+set}" = set; then
2758 enableval="$enable_no_rtti"
2759
2760 if test "$enableval" = yes; then
2761 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2762 else
2763 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2764 fi
2765
2766else
2767
2768 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2769 if test "x$LINE" != x ; then
2770 eval "DEFAULT_$LINE"
2771 else
2772 no_cache=1
2773 fi
2774
2775 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2776
2777fi
2778
2779
2780 eval "$ac_cv_use_no_rtti"
2781 if test "$no_cache" != 1; then
2782 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2783 fi
2784
2785 if test "$wxUSE_NO_RTTI" = yes; then
2786 echo "$ac_t""yes" 1>&6
2787 else
2788 echo "$ac_t""no" 1>&6
2789 fi
2790
2791
2792 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2793echo "configure:2794: checking for --enable-no_exceptions" >&5
2794 no_cache=0
2795 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2796if test "${enable_no_exceptions+set}" = set; then
2797 enableval="$enable_no_exceptions"
2798
2799 if test "$enableval" = yes; then
2800 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2801 else
2802 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2803 fi
2804
2805else
2806
2807 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
2814 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2815
2816fi
2817
2818
2819 eval "$ac_cv_use_no_exceptions"
2820 if test "$no_cache" != 1; then
2821 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2822 fi
2823
2824 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2825 echo "$ac_t""yes" 1>&6
2826 else
2827 echo "$ac_t""no" 1>&6
2828 fi
2829
2830
2831 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2832echo "configure:2833: checking for --enable-permissive" >&5
2833 no_cache=0
2834 # Check whether --enable-permissive or --disable-permissive was given.
2835if test "${enable_permissive+set}" = set; then
2836 enableval="$enable_permissive"
2837
2838 if test "$enableval" = yes; then
2839 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2840 else
2841 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2842 fi
2843
2844else
2845
2846 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2847 if test "x$LINE" != x ; then
2848 eval "DEFAULT_$LINE"
2849 else
2850 no_cache=1
2851 fi
2852
2853 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2854
2855fi
2856
2857
2858 eval "$ac_cv_use_permissive"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_PERMISSIVE" = yes; then
2864 echo "$ac_t""yes" 1>&6
2865 else
2866 echo "$ac_t""no" 1>&6
2867 fi
2868
2869
2870 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2871echo "configure:2872: checking for --enable-no_deps" >&5
2872 no_cache=0
2873 # Check whether --enable-no_deps or --disable-no_deps was given.
2874if test "${enable_no_deps+set}" = set; then
2875 enableval="$enable_no_deps"
2876
2877 if test "$enableval" = yes; then
2878 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2879 else
2880 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2881 fi
2882
2883else
2884
2885 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2886 if test "x$LINE" != x ; then
2887 eval "DEFAULT_$LINE"
2888 else
2889 no_cache=1
2890 fi
2891
2892 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2893
2894fi
2895
2896
2897 eval "$ac_cv_use_no_deps"
2898 if test "$no_cache" != 1; then
2899 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2900 fi
2901
2902 if test "$wxUSE_NO_DEPS" = yes; then
2903 echo "$ac_t""yes" 1>&6
2904 else
2905 echo "$ac_t""no" 1>&6
2906 fi
2907
2908
2909
2910 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2911echo "configure:2912: checking for --enable-compat20" >&5
2912 no_cache=0
2913 # Check whether --enable-compat20 or --disable-compat20 was given.
2914if test "${enable_compat20+set}" = set; then
2915 enableval="$enable_compat20"
2916
2917 if test "$enableval" = yes; then
2918 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2919 else
2920 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2921 fi
2922
2923else
2924
2925 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2933
2934fi
2935
2936
2937 eval "$ac_cv_use_compat20"
2938 if test "$no_cache" != 1; then
2939 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2940 fi
2941
2942 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2943 echo "$ac_t""yes" 1>&6
2944 else
2945 echo "$ac_t""no" 1>&6
2946 fi
2947
2948
2949 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2950echo "configure:2951: checking for --enable-compat22" >&5
2951 no_cache=0
2952 # Check whether --enable-compat22 or --disable-compat22 was given.
2953if test "${enable_compat22+set}" = set; then
2954 enableval="$enable_compat22"
2955
2956 if test "$enableval" = yes; then
2957 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2958 else
2959 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2960 fi
2961
2962else
2963
2964 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2965 if test "x$LINE" != x ; then
2966 eval "DEFAULT_$LINE"
2967 else
2968 no_cache=1
2969 fi
2970
2971 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2972
2973fi
2974
2975
2976 eval "$ac_cv_use_compat22"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2982 echo "$ac_t""yes" 1>&6
2983 else
2984 echo "$ac_t""no" 1>&6
2985 fi
2986
2987
2988# Check whether --enable-rpath or --disable-rpath was given.
2989if test "${enable_rpath+set}" = set; then
2990 enableval="$enable_rpath"
2991 wxRPATH_DIR="$enableval"
2992fi
2993
2994
2995if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
2996 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
2997fi
2998
2999
3000
3001
3002 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3003echo "configure:3004: checking for --enable-intl" >&5
3004 no_cache=0
3005 # Check whether --enable-intl or --disable-intl was given.
3006if test "${enable_intl+set}" = set; then
3007 enableval="$enable_intl"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_intl='wxUSE_INTL=yes'
3011 else
3012 ac_cv_use_intl='wxUSE_INTL=no'
3013 fi
3014
3015else
3016
3017 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3025
3026fi
3027
3028
3029 eval "$ac_cv_use_intl"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_INTL" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3042echo "configure:3043: checking for --enable-config" >&5
3043 no_cache=0
3044 # Check whether --enable-config or --disable-config was given.
3045if test "${enable_config+set}" = set; then
3046 enableval="$enable_config"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_config='wxUSE_CONFIG=yes'
3050 else
3051 ac_cv_use_config='wxUSE_CONFIG=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3064
3065fi
3066
3067
3068 eval "$ac_cv_use_config"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_CONFIG" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080
3081 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3082echo "configure:3083: checking for --enable-protocols" >&5
3083 no_cache=0
3084 # Check whether --enable-protocols or --disable-protocols was given.
3085if test "${enable_protocols+set}" = set; then
3086 enableval="$enable_protocols"
3087
3088 if test "$enableval" = yes; then
3089 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3090 else
3091 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3092 fi
3093
3094else
3095
3096 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3104
3105fi
3106
3107
3108 eval "$ac_cv_use_protocols"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_PROTOCOL" = yes; then
3114 echo "$ac_t""yes" 1>&6
3115 else
3116 echo "$ac_t""no" 1>&6
3117 fi
3118
3119
3120 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3121echo "configure:3122: checking for --enable-ftp" >&5
3122 no_cache=0
3123 # Check whether --enable-ftp or --disable-ftp was given.
3124if test "${enable_ftp+set}" = set; then
3125 enableval="$enable_ftp"
3126
3127 if test "$enableval" = yes; then
3128 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3129 else
3130 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3131 fi
3132
3133else
3134
3135 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3136 if test "x$LINE" != x ; then
3137 eval "DEFAULT_$LINE"
3138 else
3139 no_cache=1
3140 fi
3141
3142 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3143
3144fi
3145
3146
3147 eval "$ac_cv_use_ftp"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3153 echo "$ac_t""yes" 1>&6
3154 else
3155 echo "$ac_t""no" 1>&6
3156 fi
3157
3158
3159 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3160echo "configure:3161: checking for --enable-http" >&5
3161 no_cache=0
3162 # Check whether --enable-http or --disable-http was given.
3163if test "${enable_http+set}" = set; then
3164 enableval="$enable_http"
3165
3166 if test "$enableval" = yes; then
3167 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3168 else
3169 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3170 fi
3171
3172else
3173
3174 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3182
3183fi
3184
3185
3186 eval "$ac_cv_use_http"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3192 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3195 fi
3196
3197
3198 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3199echo "configure:3200: checking for --enable-fileproto" >&5
3200 no_cache=0
3201 # Check whether --enable-fileproto or --disable-fileproto was given.
3202if test "${enable_fileproto+set}" = set; then
3203 enableval="$enable_fileproto"
3204
3205 if test "$enableval" = yes; then
3206 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3207 else
3208 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3209 fi
3210
3211else
3212
3213 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3221
3222fi
3223
3224
3225 eval "$ac_cv_use_fileproto"
3226 if test "$no_cache" != 1; then
3227 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3228 fi
3229
3230 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3231 echo "$ac_t""yes" 1>&6
3232 else
3233 echo "$ac_t""no" 1>&6
3234 fi
3235
3236
3237 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3238echo "configure:3239: checking for --enable-sockets" >&5
3239 no_cache=0
3240 # Check whether --enable-sockets or --disable-sockets was given.
3241if test "${enable_sockets+set}" = set; then
3242 enableval="$enable_sockets"
3243
3244 if test "$enableval" = yes; then
3245 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3246 else
3247 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3248 fi
3249
3250else
3251
3252 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3260
3261fi
3262
3263
3264 eval "$ac_cv_use_sockets"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_SOCKETS" = yes; then
3270 echo "$ac_t""yes" 1>&6
3271 else
3272 echo "$ac_t""no" 1>&6
3273 fi
3274
3275
3276
3277 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3278echo "configure:3279: checking for --enable-ipc" >&5
3279 no_cache=0
3280 # Check whether --enable-ipc or --disable-ipc was given.
3281if test "${enable_ipc+set}" = set; then
3282 enableval="$enable_ipc"
3283
3284 if test "$enableval" = yes; then
3285 ac_cv_use_ipc='wxUSE_IPC=yes'
3286 else
3287 ac_cv_use_ipc='wxUSE_IPC=no'
3288 fi
3289
3290else
3291
3292 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3300
3301fi
3302
3303
3304 eval "$ac_cv_use_ipc"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_IPC" = yes; then
3310 echo "$ac_t""yes" 1>&6
3311 else
3312 echo "$ac_t""no" 1>&6
3313 fi
3314
3315
3316
3317 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3318echo "configure:3319: checking for --enable-cmdline" >&5
3319 no_cache=0
3320 # Check whether --enable-cmdline or --disable-cmdline was given.
3321if test "${enable_cmdline+set}" = set; then
3322 enableval="$enable_cmdline"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3326 else
3327 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3328 fi
3329
3330else
3331
3332 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3340
3341fi
3342
3343
3344 eval "$ac_cv_use_cmdline"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3357echo "configure:3358: checking for --enable-datetime" >&5
3358 no_cache=0
3359 # Check whether --enable-datetime or --disable-datetime was given.
3360if test "${enable_datetime+set}" = set; then
3361 enableval="$enable_datetime"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3365 else
3366 ac_cv_use_datetime='wxUSE_DATETIME=no'
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3379
3380fi
3381
3382
3383 eval "$ac_cv_use_datetime"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_DATETIME" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3396echo "configure:3397: checking for --enable-timedate" >&5
3397 no_cache=0
3398 # Check whether --enable-timedate or --disable-timedate was given.
3399if test "${enable_timedate+set}" = set; then
3400 enableval="$enable_timedate"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3404 else
3405 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3406 fi
3407
3408else
3409
3410 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3418
3419fi
3420
3421
3422 eval "$ac_cv_use_timedate"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_TIMEDATE" = yes; then
3428 echo "$ac_t""yes" 1>&6
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433
3434 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3435echo "configure:3436: checking for --enable-stopwatch" >&5
3436 no_cache=0
3437 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3438if test "${enable_stopwatch+set}" = set; then
3439 enableval="$enable_stopwatch"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3443 else
3444 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3445 fi
3446
3447else
3448
3449 LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3457
3458fi
3459
3460
3461 eval "$ac_cv_use_stopwatch"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_STOPWATCH" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3474echo "configure:3475: checking for --enable-dialupman" >&5
3475 no_cache=0
3476 # Check whether --enable-dialupman or --disable-dialupman was given.
3477if test "${enable_dialupman+set}" = set; then
3478 enableval="$enable_dialupman"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3482 else
3483 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3484 fi
3485
3486else
3487
3488 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3496
3497fi
3498
3499
3500 eval "$ac_cv_use_dialupman"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3506 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3509 fi
3510
3511
3512 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3513echo "configure:3514: checking for --enable-apple_ieee" >&5
3514 no_cache=0
3515 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3516if test "${enable_apple_ieee+set}" = set; then
3517 enableval="$enable_apple_ieee"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3521 else
3522 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3523 fi
3524
3525else
3526
3527 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3535
3536fi
3537
3538
3539 eval "$ac_cv_use_apple_ieee"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_APPLE_IEEE" = yes; then
3545 echo "$ac_t""yes" 1>&6
3546 else
3547 echo "$ac_t""no" 1>&6
3548 fi
3549
3550
3551 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3552echo "configure:3553: checking for --enable-timer" >&5
3553 no_cache=0
3554 # Check whether --enable-timer or --disable-timer was given.
3555if test "${enable_timer+set}" = set; then
3556 enableval="$enable_timer"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_timer='wxUSE_TIMER=yes'
3560 else
3561 ac_cv_use_timer='wxUSE_TIMER=no'
3562 fi
3563
3564else
3565
3566 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3574
3575fi
3576
3577
3578 eval "$ac_cv_use_timer"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_TIMER" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3591echo "configure:3592: checking for --enable-wave" >&5
3592 no_cache=0
3593 # Check whether --enable-wave or --disable-wave was given.
3594if test "${enable_wave+set}" = set; then
3595 enableval="$enable_wave"
3596
3597 if test "$enableval" = yes; then
3598 ac_cv_use_wave='wxUSE_WAVE=yes'
3599 else
3600 ac_cv_use_wave='wxUSE_WAVE=no'
3601 fi
3602
3603else
3604
3605 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3613
3614fi
3615
3616
3617 eval "$ac_cv_use_wave"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_WAVE" = yes; then
3623 echo "$ac_t""yes" 1>&6
3624 else
3625 echo "$ac_t""no" 1>&6
3626 fi
3627
3628
3629 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3630echo "configure:3631: checking for --enable-fraction" >&5
3631 no_cache=0
3632 # Check whether --enable-fraction or --disable-fraction was given.
3633if test "${enable_fraction+set}" = set; then
3634 enableval="$enable_fraction"
3635
3636 if test "$enableval" = yes; then
3637 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3638 else
3639 ac_cv_use_fraction='wxUSE_FRACTION=no'
3640 fi
3641
3642else
3643
3644 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3652
3653fi
3654
3655
3656 eval "$ac_cv_use_fraction"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_FRACTION" = yes; then
3662 echo "$ac_t""yes" 1>&6
3663 else
3664 echo "$ac_t""no" 1>&6
3665 fi
3666
3667
3668 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3669echo "configure:3670: checking for --enable-dynlib" >&5
3670 no_cache=0
3671 # Check whether --enable-dynlib or --disable-dynlib was given.
3672if test "${enable_dynlib+set}" = set; then
3673 enableval="$enable_dynlib"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3677 else
3678 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3679 fi
3680
3681else
3682
3683 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3691
3692fi
3693
3694
3695 eval "$ac_cv_use_dynlib"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3708echo "configure:3709: checking for --enable-dynamicloader" >&5
3709 no_cache=0
3710 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3711if test "${enable_dynamicloader+set}" = set; then
3712 enableval="$enable_dynamicloader"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3716 else
3717 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3718 fi
3719
3720else
3721
3722 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3730
3731fi
3732
3733
3734 eval "$ac_cv_use_dynamicloader"
3735 if test "$no_cache" != 1; then
3736 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3737 fi
3738
3739 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3740 echo "$ac_t""yes" 1>&6
3741 else
3742 echo "$ac_t""no" 1>&6
3743 fi
3744
3745
3746 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3747echo "configure:3748: checking for --enable-longlong" >&5
3748 no_cache=0
3749 # Check whether --enable-longlong or --disable-longlong was given.
3750if test "${enable_longlong+set}" = set; then
3751 enableval="$enable_longlong"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3755 else
3756 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3769
3770fi
3771
3772
3773 eval "$ac_cv_use_longlong"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_LONGLONG" = yes; then
3779 echo "$ac_t""yes" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783
3784
3785 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3786echo "configure:3787: checking for --enable-geometry" >&5
3787 no_cache=0
3788 # Check whether --enable-geometry or --disable-geometry was given.
3789if test "${enable_geometry+set}" = set; then
3790 enableval="$enable_geometry"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3794 else
3795 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3796 fi
3797
3798else
3799
3800 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3808
3809fi
3810
3811
3812 eval "$ac_cv_use_geometry"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_GEOMETRY" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3825echo "configure:3826: checking for --enable-log" >&5
3826 no_cache=0
3827 # Check whether --enable-log or --disable-log was given.
3828if test "${enable_log+set}" = set; then
3829 enableval="$enable_log"
3830
3831 if test "$enableval" = yes; then
3832 ac_cv_use_log='wxUSE_LOG=yes'
3833 else
3834 ac_cv_use_log='wxUSE_LOG=no'
3835 fi
3836
3837else
3838
3839 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
3846 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3847
3848fi
3849
3850
3851 eval "$ac_cv_use_log"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_LOG" = yes; then
3857 echo "$ac_t""yes" 1>&6
3858 else
3859 echo "$ac_t""no" 1>&6
3860 fi
3861
3862
3863 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3864echo "configure:3865: checking for --enable-streams" >&5
3865 no_cache=0
3866 # Check whether --enable-streams or --disable-streams was given.
3867if test "${enable_streams+set}" = set; then
3868 enableval="$enable_streams"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_streams='wxUSE_STREAMS=yes'
3872 else
3873 ac_cv_use_streams='wxUSE_STREAMS=no'
3874 fi
3875
3876else
3877
3878 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3886
3887fi
3888
3889
3890 eval "$ac_cv_use_streams"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_STREAMS" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3903echo "configure:3904: checking for --enable-file" >&5
3904 no_cache=0
3905 # Check whether --enable-file or --disable-file was given.
3906if test "${enable_file+set}" = set; then
3907 enableval="$enable_file"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_file='wxUSE_FILE=yes'
3911 else
3912 ac_cv_use_file='wxUSE_FILE=no'
3913 fi
3914
3915else
3916
3917 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3925
3926fi
3927
3928
3929 eval "$ac_cv_use_file"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_FILE" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3942echo "configure:3943: checking for --enable-ffile" >&5
3943 no_cache=0
3944 # Check whether --enable-ffile or --disable-ffile was given.
3945if test "${enable_ffile+set}" = set; then
3946 enableval="$enable_ffile"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_ffile='wxUSE_FFILE=yes'
3950 else
3951 ac_cv_use_ffile='wxUSE_FFILE=no'
3952 fi
3953
3954else
3955
3956 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3964
3965fi
3966
3967
3968 eval "$ac_cv_use_ffile"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_FFILE" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3981echo "configure:3982: checking for --enable-textbuf" >&5
3982 no_cache=0
3983 # Check whether --enable-textbuf or --disable-textbuf was given.
3984if test "${enable_textbuf+set}" = set; then
3985 enableval="$enable_textbuf"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3989 else
3990 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3991 fi
3992
3993else
3994
3995 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4003
4004fi
4005
4006
4007 eval "$ac_cv_use_textbuf"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_TEXTBUFFER" = yes; then
4013 echo "$ac_t""yes" 1>&6
4014 else
4015 echo "$ac_t""no" 1>&6
4016 fi
4017
4018
4019 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4020echo "configure:4021: checking for --enable-textfile" >&5
4021 no_cache=0
4022 # Check whether --enable-textfile or --disable-textfile was given.
4023if test "${enable_textfile+set}" = set; then
4024 enableval="$enable_textfile"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4028 else
4029 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4030 fi
4031
4032else
4033
4034 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4042
4043fi
4044
4045
4046 eval "$ac_cv_use_textfile"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_TEXTFILE" = yes; then
4052 echo "$ac_t""yes" 1>&6
4053 else
4054 echo "$ac_t""no" 1>&6
4055 fi
4056
4057
4058 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4059echo "configure:4060: checking for --enable-fontmap" >&5
4060 no_cache=0
4061 # Check whether --enable-fontmap or --disable-fontmap was given.
4062if test "${enable_fontmap+set}" = set; then
4063 enableval="$enable_fontmap"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4067 else
4068 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4069 fi
4070
4071else
4072
4073 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4081
4082fi
4083
4084
4085 eval "$ac_cv_use_fontmap"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_FONTMAP" = yes; then
4091 echo "$ac_t""yes" 1>&6
4092 else
4093 echo "$ac_t""no" 1>&6
4094 fi
4095
4096
4097 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4098echo "configure:4099: checking for --enable-unicode" >&5
4099 no_cache=0
4100 # Check whether --enable-unicode or --disable-unicode was given.
4101if test "${enable_unicode+set}" = set; then
4102 enableval="$enable_unicode"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4106 else
4107 ac_cv_use_unicode='wxUSE_UNICODE=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4120
4121fi
4122
4123
4124 eval "$ac_cv_use_unicode"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_UNICODE" = yes; then
4130 echo "$ac_t""yes" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135
4136 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4137echo "configure:4138: checking for --enable-mslu" >&5
4138 no_cache=0
4139 # Check whether --enable-mslu or --disable-mslu was given.
4140if test "${enable_mslu+set}" = set; then
4141 enableval="$enable_mslu"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4145 else
4146 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4159
4160fi
4161
4162
4163 eval "$ac_cv_use_mslu"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_UNICODE_MSLU" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4176echo "configure:4177: checking for --enable-wxprintfv" >&5
4177 no_cache=0
4178 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4179if test "${enable_wxprintfv+set}" = set; then
4180 enableval="$enable_wxprintfv"
4181
4182 if test "$enableval" = yes; then
4183 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4184 else
4185 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4186 fi
4187
4188else
4189
4190 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4198
4199fi
4200
4201
4202 eval "$ac_cv_use_wxprintfv"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4208 echo "$ac_t""yes" 1>&6
4209 else
4210 echo "$ac_t""no" 1>&6
4211 fi
4212
4213
4214 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4215echo "configure:4216: checking for --enable-std_iostreams" >&5
4216 no_cache=0
4217 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4218if test "${enable_std_iostreams+set}" = set; then
4219 enableval="$enable_std_iostreams"
4220
4221 if test "$enableval" = yes; then
4222 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4223 else
4224 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4225 fi
4226
4227else
4228
4229 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4230 if test "x$LINE" != x ; then
4231 eval "DEFAULT_$LINE"
4232 else
4233 no_cache=1
4234 fi
4235
4236 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4237
4238fi
4239
4240
4241 eval "$ac_cv_use_std_iostreams"
4242 if test "$no_cache" != 1; then
4243 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4244 fi
4245
4246 if test "$wxUSE_STD_IOSTREAM" = yes; then
4247 echo "$ac_t""yes" 1>&6
4248 else
4249 echo "$ac_t""no" 1>&6
4250 fi
4251
4252
4253 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4254echo "configure:4255: checking for --enable-filesystem" >&5
4255 no_cache=0
4256 # Check whether --enable-filesystem or --disable-filesystem was given.
4257if test "${enable_filesystem+set}" = set; then
4258 enableval="$enable_filesystem"
4259
4260 if test "$enableval" = yes; then
4261 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4262 else
4263 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4264 fi
4265
4266else
4267
4268 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4269 if test "x$LINE" != x ; then
4270 eval "DEFAULT_$LINE"
4271 else
4272 no_cache=1
4273 fi
4274
4275 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4276
4277fi
4278
4279
4280 eval "$ac_cv_use_filesystem"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_FILESYSTEM" = yes; then
4286 echo "$ac_t""yes" 1>&6
4287 else
4288 echo "$ac_t""no" 1>&6
4289 fi
4290
4291
4292 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4293echo "configure:4294: checking for --enable-fs_inet" >&5
4294 no_cache=0
4295 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4296if test "${enable_fs_inet+set}" = set; then
4297 enableval="$enable_fs_inet"
4298
4299 if test "$enableval" = yes; then
4300 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4301 else
4302 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4303 fi
4304
4305else
4306
4307 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4315
4316fi
4317
4318
4319 eval "$ac_cv_use_fs_inet"
4320 if test "$no_cache" != 1; then
4321 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4322 fi
4323
4324 if test "$wxUSE_FS_INET" = yes; then
4325 echo "$ac_t""yes" 1>&6
4326 else
4327 echo "$ac_t""no" 1>&6
4328 fi
4329
4330
4331 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4332echo "configure:4333: checking for --enable-fs_zip" >&5
4333 no_cache=0
4334 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4335if test "${enable_fs_zip+set}" = set; then
4336 enableval="$enable_fs_zip"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4340 else
4341 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4342 fi
4343
4344else
4345
4346 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4354
4355fi
4356
4357
4358 eval "$ac_cv_use_fs_zip"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_FS_ZIP" = yes; then
4364 echo "$ac_t""yes" 1>&6
4365 else
4366 echo "$ac_t""no" 1>&6
4367 fi
4368
4369
4370 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4371echo "configure:4372: checking for --enable-zipstream" >&5
4372 no_cache=0
4373 # Check whether --enable-zipstream or --disable-zipstream was given.
4374if test "${enable_zipstream+set}" = set; then
4375 enableval="$enable_zipstream"
4376
4377 if test "$enableval" = yes; then
4378 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4379 else
4380 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4381 fi
4382
4383else
4384
4385 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4386 if test "x$LINE" != x ; then
4387 eval "DEFAULT_$LINE"
4388 else
4389 no_cache=1
4390 fi
4391
4392 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4393
4394fi
4395
4396
4397 eval "$ac_cv_use_zipstream"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_ZIPSTREAM" = yes; then
4403 echo "$ac_t""yes" 1>&6
4404 else
4405 echo "$ac_t""no" 1>&6
4406 fi
4407
4408
4409
4410 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4411echo "configure:4412: checking for --enable-catch_segvs" >&5
4412 no_cache=0
4413 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4414if test "${enable_catch_segvs+set}" = set; then
4415 enableval="$enable_catch_segvs"
4416
4417 if test "$enableval" = yes; then
4418 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4419 else
4420 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4421 fi
4422
4423else
4424
4425 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4426 if test "x$LINE" != x ; then
4427 eval "DEFAULT_$LINE"
4428 else
4429 no_cache=1
4430 fi
4431
4432 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4433
4434fi
4435
4436
4437 eval "$ac_cv_use_catch_segvs"
4438 if test "$no_cache" != 1; then
4439 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4440 fi
4441
4442 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4443 echo "$ac_t""yes" 1>&6
4444 else
4445 echo "$ac_t""no" 1>&6
4446 fi
4447
4448
4449 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4450echo "configure:4451: checking for --enable-snglinst" >&5
4451 no_cache=0
4452 # Check whether --enable-snglinst or --disable-snglinst was given.
4453if test "${enable_snglinst+set}" = set; then
4454 enableval="$enable_snglinst"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4458 else
4459 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4460 fi
4461
4462else
4463
4464 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4472
4473fi
4474
4475
4476 eval "$ac_cv_use_snglinst"
4477 if test "$no_cache" != 1; then
4478 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4479 fi
4480
4481 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4482 echo "$ac_t""yes" 1>&6
4483 else
4484 echo "$ac_t""no" 1>&6
4485 fi
4486
4487
4488
4489 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4490echo "configure:4491: checking for --enable-mimetype" >&5
4491 no_cache=0
4492 # Check whether --enable-mimetype or --disable-mimetype was given.
4493if test "${enable_mimetype+set}" = set; then
4494 enableval="$enable_mimetype"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4498 else
4499 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4512
4513fi
4514
4515
4516 eval "$ac_cv_use_mimetype"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_MIMETYPE" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
4528 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4529echo "configure:4530: checking for --enable-system_options" >&5
4530 no_cache=0
4531 # Check whether --enable-system_options or --disable-system_options was given.
4532if test "${enable_system_options+set}" = set; then
4533 enableval="$enable_system_options"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4537 else
4538 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4539 fi
4540
4541else
4542
4543 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4551
4552fi
4553
4554
4555 eval "$ac_cv_use_system_options"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4561 echo "$ac_t""yes" 1>&6
4562 else
4563 echo "$ac_t""no" 1>&6
4564 fi
4565
4566
4567
4568 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4569echo "configure:4570: checking for --enable-url" >&5
4570 no_cache=0
4571 # Check whether --enable-url or --disable-url was given.
4572if test "${enable_url+set}" = set; then
4573 enableval="$enable_url"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_url='wxUSE_URL=yes'
4577 else
4578 ac_cv_use_url='wxUSE_URL=no'
4579 fi
4580
4581else
4582
4583 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4591
4592fi
4593
4594
4595 eval "$ac_cv_use_url"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_URL" = yes; then
4601 echo "$ac_t""yes" 1>&6
4602 else
4603 echo "$ac_t""no" 1>&6
4604 fi
4605
4606
4607 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4608echo "configure:4609: checking for --enable-protocol" >&5
4609 no_cache=0
4610 # Check whether --enable-protocol or --disable-protocol was given.
4611if test "${enable_protocol+set}" = set; then
4612 enableval="$enable_protocol"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4616 else
4617 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4630
4631fi
4632
4633
4634 eval "$ac_cv_use_protocol"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_PROTOCOL" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
4646 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4647echo "configure:4648: checking for --enable-protocol_http" >&5
4648 no_cache=0
4649 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4650if test "${enable_protocol_http+set}" = set; then
4651 enableval="$enable_protocol_http"
4652
4653 if test "$enableval" = yes; then
4654 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4655 else
4656 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4657 fi
4658
4659else
4660
4661 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4669
4670fi
4671
4672
4673 eval "$ac_cv_use_protocol_http"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683
4684
4685 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4686echo "configure:4687: checking for --enable-protocol_ftp" >&5
4687 no_cache=0
4688 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4689if test "${enable_protocol_ftp+set}" = set; then
4690 enableval="$enable_protocol_ftp"
4691
4692 if test "$enableval" = yes; then
4693 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4694 else
4695 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4696 fi
4697
4698else
4699
4700 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4708
4709fi
4710
4711
4712 eval "$ac_cv_use_protocol_ftp"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4718 echo "$ac_t""yes" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4721 fi
4722
4723
4724 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4725echo "configure:4726: checking for --enable-protocol_file" >&5
4726 no_cache=0
4727 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4728if test "${enable_protocol_file+set}" = set; then
4729 enableval="$enable_protocol_file"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4733 else
4734 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4735 fi
4736
4737else
4738
4739 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4747
4748fi
4749
4750
4751 eval "$ac_cv_use_protocol_file"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763
4764
4765
4766 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4767echo "configure:4768: checking for --enable-threads" >&5
4768 no_cache=0
4769 # Check whether --enable-threads or --disable-threads was given.
4770if test "${enable_threads+set}" = set; then
4771 enableval="$enable_threads"
4772
4773 if test "$enableval" = yes; then
4774 ac_cv_use_threads='wxUSE_THREADS=yes'
4775 else
4776 ac_cv_use_threads='wxUSE_THREADS=no'
4777 fi
4778
4779else
4780
4781 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4789
4790fi
4791
4792
4793 eval "$ac_cv_use_threads"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_THREADS" = yes; then
4799 echo "$ac_t""yes" 1>&6
4800 else
4801 echo "$ac_t""no" 1>&6
4802 fi
4803
4804
4805if test "$wxUSE_GUI" = "yes"; then
4806
4807
4808
4809 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4810echo "configure:4811: checking for --enable-docview" >&5
4811 no_cache=0
4812 # Check whether --enable-docview or --disable-docview was given.
4813if test "${enable_docview+set}" = set; then
4814 enableval="$enable_docview"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4818 else
4819 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4820 fi
4821
4822else
4823
4824 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4832
4833fi
4834
4835
4836 eval "$ac_cv_use_docview"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4842 echo "$ac_t""yes" 1>&6
4843 else
4844 echo "$ac_t""no" 1>&6
4845 fi
4846
4847
4848 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4849echo "configure:4850: checking for --enable-help" >&5
4850 no_cache=0
4851 # Check whether --enable-help or --disable-help was given.
4852if test "${enable_help+set}" = set; then
4853 enableval="$enable_help"
4854
4855 if test "$enableval" = yes; then
4856 ac_cv_use_help='wxUSE_HELP=yes'
4857 else
4858 ac_cv_use_help='wxUSE_HELP=no'
4859 fi
4860
4861else
4862
4863 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4864 if test "x$LINE" != x ; then
4865 eval "DEFAULT_$LINE"
4866 else
4867 no_cache=1
4868 fi
4869
4870 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4871
4872fi
4873
4874
4875 eval "$ac_cv_use_help"
4876 if test "$no_cache" != 1; then
4877 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4878 fi
4879
4880 if test "$wxUSE_HELP" = yes; then
4881 echo "$ac_t""yes" 1>&6
4882 else
4883 echo "$ac_t""no" 1>&6
4884 fi
4885
4886
4887 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4888echo "configure:4889: checking for --enable-mshtmlhelp" >&5
4889 no_cache=0
4890 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4891if test "${enable_mshtmlhelp+set}" = set; then
4892 enableval="$enable_mshtmlhelp"
4893
4894 if test "$enableval" = yes; then
4895 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4896 else
4897 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4898 fi
4899
4900else
4901
4902 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
4909 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4910
4911fi
4912
4913
4914 eval "$ac_cv_use_mshtmlhelp"
4915 if test "$no_cache" != 1; then
4916 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4917 fi
4918
4919 if test "$wxUSE_MS_HTML_HELP" = yes; then
4920 echo "$ac_t""yes" 1>&6
4921 else
4922 echo "$ac_t""no" 1>&6
4923 fi
4924
4925
4926 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4927echo "configure:4928: checking for --enable-html" >&5
4928 no_cache=0
4929 # Check whether --enable-html or --disable-html was given.
4930if test "${enable_html+set}" = set; then
4931 enableval="$enable_html"
4932
4933 if test "$enableval" = yes; then
4934 ac_cv_use_html='wxUSE_HTML=yes'
4935 else
4936 ac_cv_use_html='wxUSE_HTML=no'
4937 fi
4938
4939else
4940
4941 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
4948 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4949
4950fi
4951
4952
4953 eval "$ac_cv_use_html"
4954 if test "$no_cache" != 1; then
4955 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4956 fi
4957
4958 if test "$wxUSE_HTML" = yes; then
4959 echo "$ac_t""yes" 1>&6
4960 else
4961 echo "$ac_t""no" 1>&6
4962 fi
4963
4964
4965 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4966echo "configure:4967: checking for --enable-htmlhelp" >&5
4967 no_cache=0
4968 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4969if test "${enable_htmlhelp+set}" = set; then
4970 enableval="$enable_htmlhelp"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4974 else
4975 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4976 fi
4977
4978else
4979
4980 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4988
4989fi
4990
4991
4992 eval "$ac_cv_use_htmlhelp"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_WXHTML_HELP" = yes; then
4998 echo "$ac_t""yes" 1>&6
4999 else
5000 echo "$ac_t""no" 1>&6
5001 fi
5002
5003
5004 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5005echo "configure:5006: checking for --enable-constraints" >&5
5006 no_cache=0
5007 # Check whether --enable-constraints or --disable-constraints was given.
5008if test "${enable_constraints+set}" = set; then
5009 enableval="$enable_constraints"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5013 else
5014 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5015 fi
5016
5017else
5018
5019 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5027
5028fi
5029
5030
5031 eval "$ac_cv_use_constraints"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_CONSTRAINTS" = yes; then
5037 echo "$ac_t""yes" 1>&6
5038 else
5039 echo "$ac_t""no" 1>&6
5040 fi
5041
5042
5043 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5044echo "configure:5045: checking for --enable-printarch" >&5
5045 no_cache=0
5046 # Check whether --enable-printarch or --disable-printarch was given.
5047if test "${enable_printarch+set}" = set; then
5048 enableval="$enable_printarch"
5049
5050 if test "$enableval" = yes; then
5051 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5052 else
5053 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5054 fi
5055
5056else
5057
5058 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5059 if test "x$LINE" != x ; then
5060 eval "DEFAULT_$LINE"
5061 else
5062 no_cache=1
5063 fi
5064
5065 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5066
5067fi
5068
5069
5070 eval "$ac_cv_use_printarch"
5071 if test "$no_cache" != 1; then
5072 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5073 fi
5074
5075 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5076 echo "$ac_t""yes" 1>&6
5077 else
5078 echo "$ac_t""no" 1>&6
5079 fi
5080
5081
5082 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5083echo "configure:5084: checking for --enable-mdi" >&5
5084 no_cache=0
5085 # Check whether --enable-mdi or --disable-mdi was given.
5086if test "${enable_mdi+set}" = set; then
5087 enableval="$enable_mdi"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5091 else
5092 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5093 fi
5094
5095else
5096
5097 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5105
5106fi
5107
5108
5109 eval "$ac_cv_use_mdi"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5115 echo "$ac_t""yes" 1>&6
5116 else
5117 echo "$ac_t""no" 1>&6
5118 fi
5119
5120
5121 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5122echo "configure:5123: checking for --enable-loggui" >&5
5123 no_cache=0
5124 # Check whether --enable-loggui or --disable-loggui was given.
5125if test "${enable_loggui+set}" = set; then
5126 enableval="$enable_loggui"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5130 else
5131 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5144
5145fi
5146
5147
5148 eval "$ac_cv_use_loggui"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_LOGGUI" = yes; then
5154 echo "$ac_t""yes" 1>&6
5155 else
5156 echo "$ac_t""no" 1>&6
5157 fi
5158
5159
5160 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5161echo "configure:5162: checking for --enable-logwin" >&5
5162 no_cache=0
5163 # Check whether --enable-logwin or --disable-logwin was given.
5164if test "${enable_logwin+set}" = set; then
5165 enableval="$enable_logwin"
5166
5167 if test "$enableval" = yes; then
5168 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5169 else
5170 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5171 fi
5172
5173else
5174
5175 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5176 if test "x$LINE" != x ; then
5177 eval "DEFAULT_$LINE"
5178 else
5179 no_cache=1
5180 fi
5181
5182 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5183
5184fi
5185
5186
5187 eval "$ac_cv_use_logwin"
5188 if test "$no_cache" != 1; then
5189 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5190 fi
5191
5192 if test "$wxUSE_LOGWINDOW" = yes; then
5193 echo "$ac_t""yes" 1>&6
5194 else
5195 echo "$ac_t""no" 1>&6
5196 fi
5197
5198
5199 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5200echo "configure:5201: checking for --enable-logdialog" >&5
5201 no_cache=0
5202 # Check whether --enable-logdialog or --disable-logdialog was given.
5203if test "${enable_logdialog+set}" = set; then
5204 enableval="$enable_logdialog"
5205
5206 if test "$enableval" = yes; then
5207 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5208 else
5209 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5210 fi
5211
5212else
5213
5214 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5215 if test "x$LINE" != x ; then
5216 eval "DEFAULT_$LINE"
5217 else
5218 no_cache=1
5219 fi
5220
5221 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5222
5223fi
5224
5225
5226 eval "$ac_cv_use_logdialog"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_LOGDIALOG" = yes; then
5232 echo "$ac_t""yes" 1>&6
5233 else
5234 echo "$ac_t""no" 1>&6
5235 fi
5236
5237
5238
5239 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5240echo "configure:5241: checking for --enable-postscript" >&5
5241 no_cache=0
5242 # Check whether --enable-postscript or --disable-postscript was given.
5243if test "${enable_postscript+set}" = set; then
5244 enableval="$enable_postscript"
5245
5246 if test "$enableval" = yes; then
5247 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5248 else
5249 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5250 fi
5251
5252else
5253
5254 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 else
5258 no_cache=1
5259 fi
5260
5261 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5262
5263fi
5264
5265
5266 eval "$ac_cv_use_postscript"
5267 if test "$no_cache" != 1; then
5268 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5269 fi
5270
5271 if test "$wxUSE_POSTSCRIPT" = yes; then
5272 echo "$ac_t""yes" 1>&6
5273 else
5274 echo "$ac_t""no" 1>&6
5275 fi
5276
5277
5278
5279
5280
5281 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5282echo "configure:5283: checking for --enable-prologio" >&5
5283 no_cache=0
5284 # Check whether --enable-prologio or --disable-prologio was given.
5285if test "${enable_prologio+set}" = set; then
5286 enableval="$enable_prologio"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5290 else
5291 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5292 fi
5293
5294else
5295
5296 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5304
5305fi
5306
5307
5308 eval "$ac_cv_use_prologio"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_PROLOGIO" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
5320 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5321echo "configure:5322: checking for --enable-resources" >&5
5322 no_cache=0
5323 # Check whether --enable-resources or --disable-resources was given.
5324if test "${enable_resources+set}" = set; then
5325 enableval="$enable_resources"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5329 else
5330 ac_cv_use_resources='wxUSE_RESOURCES=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5343
5344fi
5345
5346
5347 eval "$ac_cv_use_resources"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_RESOURCES" = yes; then
5353 echo "$ac_t""yes" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358
5359
5360 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5361echo "configure:5362: checking for --enable-xresources" >&5
5362 no_cache=0
5363 # Check whether --enable-xresources or --disable-xresources was given.
5364if test "${enable_xresources+set}" = set; then
5365 enableval="$enable_xresources"
5366
5367 if test "$enableval" = yes; then
5368 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5369 else
5370 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5371 fi
5372
5373else
5374
5375 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5376 if test "x$LINE" != x ; then
5377 eval "DEFAULT_$LINE"
5378 else
5379 no_cache=1
5380 fi
5381
5382 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5383
5384fi
5385
5386
5387 eval "$ac_cv_use_xresources"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_X_RESOURCES" = yes; then
5393 echo "$ac_t""yes" 1>&6
5394 else
5395 echo "$ac_t""no" 1>&6
5396 fi
5397
5398
5399
5400
5401 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5402echo "configure:5403: checking for --enable-clipboard" >&5
5403 no_cache=0
5404 # Check whether --enable-clipboard or --disable-clipboard was given.
5405if test "${enable_clipboard+set}" = set; then
5406 enableval="$enable_clipboard"
5407
5408 if test "$enableval" = yes; then
5409 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5410 else
5411 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5412 fi
5413
5414else
5415
5416 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5424
5425fi
5426
5427
5428 eval "$ac_cv_use_clipboard"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_CLIPBOARD" = yes; then
5434 echo "$ac_t""yes" 1>&6
5435 else
5436 echo "$ac_t""no" 1>&6
5437 fi
5438
5439
5440 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5441echo "configure:5442: checking for --enable-dnd" >&5
5442 no_cache=0
5443 # Check whether --enable-dnd or --disable-dnd was given.
5444if test "${enable_dnd+set}" = set; then
5445 enableval="$enable_dnd"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5449 else
5450 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5451 fi
5452
5453else
5454
5455 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5463
5464fi
5465
5466
5467 eval "$ac_cv_use_dnd"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5473 echo "$ac_t""yes" 1>&6
5474 else
5475 echo "$ac_t""no" 1>&6
5476 fi
5477
5478
5479 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5480echo "configure:5481: checking for --enable-metafile" >&5
5481 no_cache=0
5482 # Check whether --enable-metafile or --disable-metafile was given.
5483if test "${enable_metafile+set}" = set; then
5484 enableval="$enable_metafile"
5485
5486 if test "$enableval" = yes; then
5487 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5488 else
5489 ac_cv_use_metafile='wxUSE_METAFILE=no'
5490 fi
5491
5492else
5493
5494 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5502
5503fi
5504
5505
5506 eval "$ac_cv_use_metafile"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_METAFILE" = yes; then
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516
5517
5518
5519 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5520echo "configure:5521: checking for --enable-treelayout" >&5
5521 no_cache=0
5522 # Check whether --enable-treelayout or --disable-treelayout was given.
5523if test "${enable_treelayout+set}" = set; then
5524 enableval="$enable_treelayout"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5528 else
5529 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5530 fi
5531
5532else
5533
5534 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5542
5543fi
5544
5545
5546 eval "$ac_cv_use_treelayout"
5547 if test "$no_cache" != 1; then
5548 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5549 fi
5550
5551 if test "$wxUSE_TREELAYOUT" = yes; then
5552 echo "$ac_t""yes" 1>&6
5553 else
5554 echo "$ac_t""no" 1>&6
5555 fi
5556
5557
5558
5559
5560 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5561echo "configure:5562: checking for --enable-controls" >&5
5562 no_cache=0
5563 # Check whether --enable-controls or --disable-controls was given.
5564if test "${enable_controls+set}" = set; then
5565 enableval="$enable_controls"
5566
5567 if test "$enableval" = yes; then
5568 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5569 else
5570 ac_cv_use_controls='wxUSE_CONTROLS=no'
5571 fi
5572
5573else
5574
5575 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5583
5584fi
5585
5586
5587 eval "$ac_cv_use_controls"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_CONTROLS" = yes; then
5593 echo "$ac_t""yes" 1>&6
5594 else
5595 echo "$ac_t""no" 1>&6
5596 fi
5597
5598
5599if test "$wxUSE_CONTROLS" = "yes"; then
5600 DEFAULT_wxUSE_ACCEL=yes
5601 DEFAULT_wxUSE_BMPBUTTON=yes
5602 DEFAULT_wxUSE_BUTTON=yes
5603 DEFAULT_wxUSE_CALCTRL=no
5604 DEFAULT_wxUSE_CARET=yes
5605 DEFAULT_wxUSE_COMBOBOX=yes
5606 DEFAULT_wxUSE_CHECKBOX=yes
5607 DEFAULT_wxUSE_CHECKLISTBOX=yes
5608 DEFAULT_wxUSE_CHOICE=yes
5609 DEFAULT_wxUSE_GAUGE=yes
5610 DEFAULT_wxUSE_GRID=yes
5611 DEFAULT_wxUSE_NEW_GRID=yes
5612 DEFAULT_wxUSE_IMAGLIST=yes
5613 DEFAULT_wxUSE_LISTBOX=yes
5614 DEFAULT_wxUSE_LISTCTRL=yes
5615 DEFAULT_wxUSE_NOTEBOOK=yes
5616 DEFAULT_wxUSE_PROPSHEET=yes
5617 DEFAULT_wxUSE_RADIOBOX=yes
5618 DEFAULT_wxUSE_RADIOBTN=yes
5619 DEFAULT_wxUSE_SASH=yes
5620 DEFAULT_wxUSE_SCROLLBAR=yes
5621 DEFAULT_wxUSE_SLIDER=yes
5622 DEFAULT_wxUSE_SPINBTN=yes
5623 DEFAULT_wxUSE_SPINCTRL=yes
5624 DEFAULT_wxUSE_SPLITTER=yes
5625 DEFAULT_wxUSE_STATBMP=yes
5626 DEFAULT_wxUSE_STATBOX=yes
5627 DEFAULT_wxUSE_STATLINE=yes
5628 DEFAULT_wxUSE_STATUSBAR=yes
5629 DEFAULT_wxUSE_TAB_DIALOG=yes
5630 DEFAULT_wxUSE_TOGGLEBTN=yes
5631 DEFAULT_wxUSE_TOOLBAR=yes
5632 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5633 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5634 DEFAULT_wxUSE_TOOLTIPS=yes
5635 DEFAULT_wxUSE_TREECTRL=yes
5636 DEFAULT_wxUSE_POPUPWIN=yes
5637 DEFAULT_wxUSE_TIPWINDOW=yes
5638elif test "$wxUSE_CONTROLS" = "no"; then
5639 DEFAULT_wxUSE_ACCEL=no
5640 DEFAULT_wxUSE_BMPBUTTON=no
5641 DEFAULT_wxUSE_BUTTON=no
5642 DEFAULT_wxUSE_CALCTRL=no
5643 DEFAULT_wxUSE_CARET=no
5644 DEFAULT_wxUSE_COMBOBOX=no
5645 DEFAULT_wxUSE_CHECKBOX=no
5646 DEFAULT_wxUSE_CHECKLISTBOX=no
5647 DEFAULT_wxUSE_CHOICE=no
5648 DEFAULT_wxUSE_GAUGE=no
5649 DEFAULT_wxUSE_GRID=no
5650 DEFAULT_wxUSE_NEW_GRID=no
5651 DEFAULT_wxUSE_IMAGLIST=no
5652 DEFAULT_wxUSE_LISTBOX=no
5653 DEFAULT_wxUSE_LISTCTRL=no
5654 DEFAULT_wxUSE_NOTEBOOK=no
5655 DEFAULT_wxUSE_PROPSHEET=no
5656 DEFAULT_wxUSE_RADIOBOX=no
5657 DEFAULT_wxUSE_RADIOBTN=no
5658 DEFAULT_wxUSE_SASH=no
5659 DEFAULT_wxUSE_SCROLLBAR=no
5660 DEFAULT_wxUSE_SLIDER=no
5661 DEFAULT_wxUSE_SPINBTN=no
5662 DEFAULT_wxUSE_SPINCTRL=no
5663 DEFAULT_wxUSE_SPLITTER=no
5664 DEFAULT_wxUSE_STATBMP=no
5665 DEFAULT_wxUSE_STATBOX=no
5666 DEFAULT_wxUSE_STATLINE=no
5667 DEFAULT_wxUSE_STATUSBAR=no
5668 DEFAULT_wxUSE_TAB_DIALOG=no
5669 DEFAULT_wxUSE_TOGGLEBTN=no
5670 DEFAULT_wxUSE_TOOLBAR=no
5671 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5672 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5673 DEFAULT_wxUSE_TOOLTIPS=no
5674 DEFAULT_wxUSE_TREECTRL=no
5675 DEFAULT_wxUSE_POPUPWIN=no
5676 DEFAULT_wxUSE_TIPWINDOW=no
5677fi
5678
5679
5680 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5681echo "configure:5682: checking for --enable-accel" >&5
5682 no_cache=0
5683 # Check whether --enable-accel or --disable-accel was given.
5684if test "${enable_accel+set}" = set; then
5685 enableval="$enable_accel"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_accel='wxUSE_ACCEL=yes'
5689 else
5690 ac_cv_use_accel='wxUSE_ACCEL=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5703
5704fi
5705
5706
5707 eval "$ac_cv_use_accel"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_ACCEL" = yes; then
5713 echo "$ac_t""yes" 1>&6
5714 else
5715 echo "$ac_t""no" 1>&6
5716 fi
5717
5718
5719 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5720echo "configure:5721: checking for --enable-button" >&5
5721 no_cache=0
5722 # Check whether --enable-button or --disable-button was given.
5723if test "${enable_button+set}" = set; then
5724 enableval="$enable_button"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_button='wxUSE_BUTTON=yes'
5728 else
5729 ac_cv_use_button='wxUSE_BUTTON=no'
5730 fi
5731
5732else
5733
5734 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5742
5743fi
5744
5745
5746 eval "$ac_cv_use_button"
5747 if test "$no_cache" != 1; then
5748 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5749 fi
5750
5751 if test "$wxUSE_BUTTON" = yes; then
5752 echo "$ac_t""yes" 1>&6
5753 else
5754 echo "$ac_t""no" 1>&6
5755 fi
5756
5757
5758 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5759echo "configure:5760: checking for --enable-bmpbutton" >&5
5760 no_cache=0
5761 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5762if test "${enable_bmpbutton+set}" = set; then
5763 enableval="$enable_bmpbutton"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5767 else
5768 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5769 fi
5770
5771else
5772
5773 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5781
5782fi
5783
5784
5785 eval "$ac_cv_use_bmpbutton"
5786 if test "$no_cache" != 1; then
5787 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5788 fi
5789
5790 if test "$wxUSE_BMPBUTTON" = yes; then
5791 echo "$ac_t""yes" 1>&6
5792 else
5793 echo "$ac_t""no" 1>&6
5794 fi
5795
5796
5797 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5798echo "configure:5799: checking for --enable-calendar" >&5
5799 no_cache=0
5800 # Check whether --enable-calendar or --disable-calendar was given.
5801if test "${enable_calendar+set}" = set; then
5802 enableval="$enable_calendar"
5803
5804 if test "$enableval" = yes; then
5805 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5806 else
5807 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5808 fi
5809
5810else
5811
5812 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5820
5821fi
5822
5823
5824 eval "$ac_cv_use_calendar"
5825 if test "$no_cache" != 1; then
5826 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5827 fi
5828
5829 if test "$wxUSE_CALCTRL" = yes; then
5830 echo "$ac_t""yes" 1>&6
5831 else
5832 echo "$ac_t""no" 1>&6
5833 fi
5834
5835
5836 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5837echo "configure:5838: checking for --enable-caret" >&5
5838 no_cache=0
5839 # Check whether --enable-caret or --disable-caret was given.
5840if test "${enable_caret+set}" = set; then
5841 enableval="$enable_caret"
5842
5843 if test "$enableval" = yes; then
5844 ac_cv_use_caret='wxUSE_CARET=yes'
5845 else
5846 ac_cv_use_caret='wxUSE_CARET=no'
5847 fi
5848
5849else
5850
5851 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5852 if test "x$LINE" != x ; then
5853 eval "DEFAULT_$LINE"
5854 else
5855 no_cache=1
5856 fi
5857
5858 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5859
5860fi
5861
5862
5863 eval "$ac_cv_use_caret"
5864 if test "$no_cache" != 1; then
5865 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5866 fi
5867
5868 if test "$wxUSE_CARET" = yes; then
5869 echo "$ac_t""yes" 1>&6
5870 else
5871 echo "$ac_t""no" 1>&6
5872 fi
5873
5874
5875 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5876echo "configure:5877: checking for --enable-checkbox" >&5
5877 no_cache=0
5878 # Check whether --enable-checkbox or --disable-checkbox was given.
5879if test "${enable_checkbox+set}" = set; then
5880 enableval="$enable_checkbox"
5881
5882 if test "$enableval" = yes; then
5883 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5884 else
5885 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5886 fi
5887
5888else
5889
5890 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5891 if test "x$LINE" != x ; then
5892 eval "DEFAULT_$LINE"
5893 else
5894 no_cache=1
5895 fi
5896
5897 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5898
5899fi
5900
5901
5902 eval "$ac_cv_use_checkbox"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_CHECKBOX" = yes; then
5908 echo "$ac_t""yes" 1>&6
5909 else
5910 echo "$ac_t""no" 1>&6
5911 fi
5912
5913
5914 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5915echo "configure:5916: checking for --enable-checklst" >&5
5916 no_cache=0
5917 # Check whether --enable-checklst or --disable-checklst was given.
5918if test "${enable_checklst+set}" = set; then
5919 enableval="$enable_checklst"
5920
5921 if test "$enableval" = yes; then
5922 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5923 else
5924 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5925 fi
5926
5927else
5928
5929 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5937
5938fi
5939
5940
5941 eval "$ac_cv_use_checklst"
5942 if test "$no_cache" != 1; then
5943 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5944 fi
5945
5946 if test "$wxUSE_CHECKLST" = yes; then
5947 echo "$ac_t""yes" 1>&6
5948 else
5949 echo "$ac_t""no" 1>&6
5950 fi
5951
5952
5953 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5954echo "configure:5955: checking for --enable-choice" >&5
5955 no_cache=0
5956 # Check whether --enable-choice or --disable-choice was given.
5957if test "${enable_choice+set}" = set; then
5958 enableval="$enable_choice"
5959
5960 if test "$enableval" = yes; then
5961 ac_cv_use_choice='wxUSE_CHOICE=yes'
5962 else
5963 ac_cv_use_choice='wxUSE_CHOICE=no'
5964 fi
5965
5966else
5967
5968 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5969 if test "x$LINE" != x ; then
5970 eval "DEFAULT_$LINE"
5971 else
5972 no_cache=1
5973 fi
5974
5975 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5976
5977fi
5978
5979
5980 eval "$ac_cv_use_choice"
5981 if test "$no_cache" != 1; then
5982 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5983 fi
5984
5985 if test "$wxUSE_CHOICE" = yes; then
5986 echo "$ac_t""yes" 1>&6
5987 else
5988 echo "$ac_t""no" 1>&6
5989 fi
5990
5991
5992 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5993echo "configure:5994: checking for --enable-combobox" >&5
5994 no_cache=0
5995 # Check whether --enable-combobox or --disable-combobox was given.
5996if test "${enable_combobox+set}" = set; then
5997 enableval="$enable_combobox"
5998
5999 if test "$enableval" = yes; then
6000 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6001 else
6002 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6003 fi
6004
6005else
6006
6007 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6008 if test "x$LINE" != x ; then
6009 eval "DEFAULT_$LINE"
6010 else
6011 no_cache=1
6012 fi
6013
6014 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6015
6016fi
6017
6018
6019 eval "$ac_cv_use_combobox"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_COMBOBOX" = yes; then
6025 echo "$ac_t""yes" 1>&6
6026 else
6027 echo "$ac_t""no" 1>&6
6028 fi
6029
6030
6031 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6032echo "configure:6033: checking for --enable-gauge" >&5
6033 no_cache=0
6034 # Check whether --enable-gauge or --disable-gauge was given.
6035if test "${enable_gauge+set}" = set; then
6036 enableval="$enable_gauge"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6040 else
6041 ac_cv_use_gauge='wxUSE_GAUGE=no'
6042 fi
6043
6044else
6045
6046 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6054
6055fi
6056
6057
6058 eval "$ac_cv_use_gauge"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_GAUGE" = yes; then
6064 echo "$ac_t""yes" 1>&6
6065 else
6066 echo "$ac_t""no" 1>&6
6067 fi
6068
6069
6070 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6071echo "configure:6072: checking for --enable-grid" >&5
6072 no_cache=0
6073 # Check whether --enable-grid or --disable-grid was given.
6074if test "${enable_grid+set}" = set; then
6075 enableval="$enable_grid"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_grid='wxUSE_GRID=yes'
6079 else
6080 ac_cv_use_grid='wxUSE_GRID=no'
6081 fi
6082
6083else
6084
6085 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6093
6094fi
6095
6096
6097 eval "$ac_cv_use_grid"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_GRID" = yes; then
6103 echo "$ac_t""yes" 1>&6
6104 else
6105 echo "$ac_t""no" 1>&6
6106 fi
6107
6108
6109 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6110echo "configure:6111: checking for --enable-newgrid" >&5
6111 no_cache=0
6112 # Check whether --enable-newgrid or --disable-newgrid was given.
6113if test "${enable_newgrid+set}" = set; then
6114 enableval="$enable_newgrid"
6115
6116 if test "$enableval" = yes; then
6117 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6118 else
6119 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6120 fi
6121
6122else
6123
6124 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6125 if test "x$LINE" != x ; then
6126 eval "DEFAULT_$LINE"
6127 else
6128 no_cache=1
6129 fi
6130
6131 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6132
6133fi
6134
6135
6136 eval "$ac_cv_use_newgrid"
6137 if test "$no_cache" != 1; then
6138 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6139 fi
6140
6141 if test "$wxUSE_NEW_GRID" = yes; then
6142 echo "$ac_t""yes" 1>&6
6143 else
6144 echo "$ac_t""no" 1>&6
6145 fi
6146
6147
6148 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6149echo "configure:6150: checking for --enable-imaglist" >&5
6150 no_cache=0
6151 # Check whether --enable-imaglist or --disable-imaglist was given.
6152if test "${enable_imaglist+set}" = set; then
6153 enableval="$enable_imaglist"
6154
6155 if test "$enableval" = yes; then
6156 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6157 else
6158 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6159 fi
6160
6161else
6162
6163 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6164 if test "x$LINE" != x ; then
6165 eval "DEFAULT_$LINE"
6166 else
6167 no_cache=1
6168 fi
6169
6170 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6171
6172fi
6173
6174
6175 eval "$ac_cv_use_imaglist"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_IMAGLIST" = yes; then
6181 echo "$ac_t""yes" 1>&6
6182 else
6183 echo "$ac_t""no" 1>&6
6184 fi
6185
6186
6187 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6188echo "configure:6189: checking for --enable-listbox" >&5
6189 no_cache=0
6190 # Check whether --enable-listbox or --disable-listbox was given.
6191if test "${enable_listbox+set}" = set; then
6192 enableval="$enable_listbox"
6193
6194 if test "$enableval" = yes; then
6195 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6196 else
6197 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6198 fi
6199
6200else
6201
6202 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6203 if test "x$LINE" != x ; then
6204 eval "DEFAULT_$LINE"
6205 else
6206 no_cache=1
6207 fi
6208
6209 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6210
6211fi
6212
6213
6214 eval "$ac_cv_use_listbox"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_LISTBOX" = yes; then
6220 echo "$ac_t""yes" 1>&6
6221 else
6222 echo "$ac_t""no" 1>&6
6223 fi
6224
6225
6226 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6227echo "configure:6228: checking for --enable-listctrl" >&5
6228 no_cache=0
6229 # Check whether --enable-listctrl or --disable-listctrl was given.
6230if test "${enable_listctrl+set}" = set; then
6231 enableval="$enable_listctrl"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6235 else
6236 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6237 fi
6238
6239else
6240
6241 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6249
6250fi
6251
6252
6253 eval "$ac_cv_use_listctrl"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_LISTCTRL" = yes; then
6259 echo "$ac_t""yes" 1>&6
6260 else
6261 echo "$ac_t""no" 1>&6
6262 fi
6263
6264
6265 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6266echo "configure:6267: checking for --enable-notebook" >&5
6267 no_cache=0
6268 # Check whether --enable-notebook or --disable-notebook was given.
6269if test "${enable_notebook+set}" = set; then
6270 enableval="$enable_notebook"
6271
6272 if test "$enableval" = yes; then
6273 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6274 else
6275 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6276 fi
6277
6278else
6279
6280 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6288
6289fi
6290
6291
6292 eval "$ac_cv_use_notebook"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_NOTEBOOK" = yes; then
6298 echo "$ac_t""yes" 1>&6
6299 else
6300 echo "$ac_t""no" 1>&6
6301 fi
6302
6303
6304 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6305echo "configure:6306: checking for --enable-propsheet" >&5
6306 no_cache=0
6307 # Check whether --enable-propsheet or --disable-propsheet was given.
6308if test "${enable_propsheet+set}" = set; then
6309 enableval="$enable_propsheet"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6313 else
6314 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6315 fi
6316
6317else
6318
6319 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6327
6328fi
6329
6330
6331 eval "$ac_cv_use_propsheet"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_PROPSHEET" = yes; then
6337 echo "$ac_t""yes" 1>&6
6338 else
6339 echo "$ac_t""no" 1>&6
6340 fi
6341
6342
6343 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6344echo "configure:6345: checking for --enable-radiobox" >&5
6345 no_cache=0
6346 # Check whether --enable-radiobox or --disable-radiobox was given.
6347if test "${enable_radiobox+set}" = set; then
6348 enableval="$enable_radiobox"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6352 else
6353 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6354 fi
6355
6356else
6357
6358 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6366
6367fi
6368
6369
6370 eval "$ac_cv_use_radiobox"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_RADIOBOX" = yes; then
6376 echo "$ac_t""yes" 1>&6
6377 else
6378 echo "$ac_t""no" 1>&6
6379 fi
6380
6381
6382 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6383echo "configure:6384: checking for --enable-radiobtn" >&5
6384 no_cache=0
6385 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6386if test "${enable_radiobtn+set}" = set; then
6387 enableval="$enable_radiobtn"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6391 else
6392 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6393 fi
6394
6395else
6396
6397 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6405
6406fi
6407
6408
6409 eval "$ac_cv_use_radiobtn"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_RADIOBTN" = yes; then
6415 echo "$ac_t""yes" 1>&6
6416 else
6417 echo "$ac_t""no" 1>&6
6418 fi
6419
6420
6421 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6422echo "configure:6423: checking for --enable-sash" >&5
6423 no_cache=0
6424 # Check whether --enable-sash or --disable-sash was given.
6425if test "${enable_sash+set}" = set; then
6426 enableval="$enable_sash"
6427
6428 if test "$enableval" = yes; then
6429 ac_cv_use_sash='wxUSE_SASH=yes'
6430 else
6431 ac_cv_use_sash='wxUSE_SASH=no'
6432 fi
6433
6434else
6435
6436 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6437 if test "x$LINE" != x ; then
6438 eval "DEFAULT_$LINE"
6439 else
6440 no_cache=1
6441 fi
6442
6443 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6444
6445fi
6446
6447
6448 eval "$ac_cv_use_sash"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_SASH" = yes; then
6454 echo "$ac_t""yes" 1>&6
6455 else
6456 echo "$ac_t""no" 1>&6
6457 fi
6458
6459
6460 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6461echo "configure:6462: checking for --enable-scrollbar" >&5
6462 no_cache=0
6463 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6464if test "${enable_scrollbar+set}" = set; then
6465 enableval="$enable_scrollbar"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6469 else
6470 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6483
6484fi
6485
6486
6487 eval "$ac_cv_use_scrollbar"
6488 if test "$no_cache" != 1; then
6489 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6490 fi
6491
6492 if test "$wxUSE_SCROLLBAR" = yes; then
6493 echo "$ac_t""yes" 1>&6
6494 else
6495 echo "$ac_t""no" 1>&6
6496 fi
6497
6498
6499 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6500echo "configure:6501: checking for --enable-slider" >&5
6501 no_cache=0
6502 # Check whether --enable-slider or --disable-slider was given.
6503if test "${enable_slider+set}" = set; then
6504 enableval="$enable_slider"
6505
6506 if test "$enableval" = yes; then
6507 ac_cv_use_slider='wxUSE_SLIDER=yes'
6508 else
6509 ac_cv_use_slider='wxUSE_SLIDER=no'
6510 fi
6511
6512else
6513
6514 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6522
6523fi
6524
6525
6526 eval "$ac_cv_use_slider"
6527 if test "$no_cache" != 1; then
6528 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6529 fi
6530
6531 if test "$wxUSE_SLIDER" = yes; then
6532 echo "$ac_t""yes" 1>&6
6533 else
6534 echo "$ac_t""no" 1>&6
6535 fi
6536
6537
6538 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6539echo "configure:6540: checking for --enable-spinbtn" >&5
6540 no_cache=0
6541 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6542if test "${enable_spinbtn+set}" = set; then
6543 enableval="$enable_spinbtn"
6544
6545 if test "$enableval" = yes; then
6546 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6547 else
6548 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6549 fi
6550
6551else
6552
6553 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6554 if test "x$LINE" != x ; then
6555 eval "DEFAULT_$LINE"
6556 else
6557 no_cache=1
6558 fi
6559
6560 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6561
6562fi
6563
6564
6565 eval "$ac_cv_use_spinbtn"
6566 if test "$no_cache" != 1; then
6567 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6568 fi
6569
6570 if test "$wxUSE_SPINBTN" = yes; then
6571 echo "$ac_t""yes" 1>&6
6572 else
6573 echo "$ac_t""no" 1>&6
6574 fi
6575
6576
6577 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6578echo "configure:6579: checking for --enable-spinctrl" >&5
6579 no_cache=0
6580 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6581if test "${enable_spinctrl+set}" = set; then
6582 enableval="$enable_spinctrl"
6583
6584 if test "$enableval" = yes; then
6585 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6586 else
6587 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6588 fi
6589
6590else
6591
6592 LINE=`grep "wxUSE_SPINCTRL" ${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_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6600
6601fi
6602
6603
6604 eval "$ac_cv_use_spinctrl"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_SPINCTRL" = yes; then
6610 echo "$ac_t""yes" 1>&6
6611 else
6612 echo "$ac_t""no" 1>&6
6613 fi
6614
6615
6616 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6617echo "configure:6618: checking for --enable-splitter" >&5
6618 no_cache=0
6619 # Check whether --enable-splitter or --disable-splitter was given.
6620if test "${enable_splitter+set}" = set; then
6621 enableval="$enable_splitter"
6622
6623 if test "$enableval" = yes; then
6624 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6625 else
6626 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6627 fi
6628
6629else
6630
6631 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
6638 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6639
6640fi
6641
6642
6643 eval "$ac_cv_use_splitter"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_SPLITTER" = yes; then
6649 echo "$ac_t""yes" 1>&6
6650 else
6651 echo "$ac_t""no" 1>&6
6652 fi
6653
6654
6655 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6656echo "configure:6657: checking for --enable-statbmp" >&5
6657 no_cache=0
6658 # Check whether --enable-statbmp or --disable-statbmp was given.
6659if test "${enable_statbmp+set}" = set; then
6660 enableval="$enable_statbmp"
6661
6662 if test "$enableval" = yes; then
6663 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6664 else
6665 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6666 fi
6667
6668else
6669
6670 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6678
6679fi
6680
6681
6682 eval "$ac_cv_use_statbmp"
6683 if test "$no_cache" != 1; then
6684 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6685 fi
6686
6687 if test "$wxUSE_STATBMP" = yes; then
6688 echo "$ac_t""yes" 1>&6
6689 else
6690 echo "$ac_t""no" 1>&6
6691 fi
6692
6693
6694 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6695echo "configure:6696: checking for --enable-statbox" >&5
6696 no_cache=0
6697 # Check whether --enable-statbox or --disable-statbox was given.
6698if test "${enable_statbox+set}" = set; then
6699 enableval="$enable_statbox"
6700
6701 if test "$enableval" = yes; then
6702 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6703 else
6704 ac_cv_use_statbox='wxUSE_STATBOX=no'
6705 fi
6706
6707else
6708
6709 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6717
6718fi
6719
6720
6721 eval "$ac_cv_use_statbox"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_STATBOX" = yes; then
6727 echo "$ac_t""yes" 1>&6
6728 else
6729 echo "$ac_t""no" 1>&6
6730 fi
6731
6732
6733 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6734echo "configure:6735: checking for --enable-statline" >&5
6735 no_cache=0
6736 # Check whether --enable-statline or --disable-statline was given.
6737if test "${enable_statline+set}" = set; then
6738 enableval="$enable_statline"
6739
6740 if test "$enableval" = yes; then
6741 ac_cv_use_statline='wxUSE_STATLINE=yes'
6742 else
6743 ac_cv_use_statline='wxUSE_STATLINE=no'
6744 fi
6745
6746else
6747
6748 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6756
6757fi
6758
6759
6760 eval "$ac_cv_use_statline"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_STATLINE" = yes; then
6766 echo "$ac_t""yes" 1>&6
6767 else
6768 echo "$ac_t""no" 1>&6
6769 fi
6770
6771
6772 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6773echo "configure:6774: checking for --enable-stattext" >&5
6774 no_cache=0
6775 # Check whether --enable-stattext or --disable-stattext was given.
6776if test "${enable_stattext+set}" = set; then
6777 enableval="$enable_stattext"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6781 else
6782 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6783 fi
6784
6785else
6786
6787 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6795
6796fi
6797
6798
6799 eval "$ac_cv_use_stattext"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_STATTEXT" = yes; then
6805 echo "$ac_t""yes" 1>&6
6806 else
6807 echo "$ac_t""no" 1>&6
6808 fi
6809
6810
6811 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6812echo "configure:6813: checking for --enable-statusbar" >&5
6813 no_cache=0
6814 # Check whether --enable-statusbar or --disable-statusbar was given.
6815if test "${enable_statusbar+set}" = set; then
6816 enableval="$enable_statusbar"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6820 else
6821 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6834
6835fi
6836
6837
6838 eval "$ac_cv_use_statusbar"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_STATUSBAR" = yes; then
6844 echo "$ac_t""yes" 1>&6
6845 else
6846 echo "$ac_t""no" 1>&6
6847 fi
6848
6849
6850 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6851echo "configure:6852: checking for --enable-tabdialog" >&5
6852 no_cache=0
6853 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6854if test "${enable_tabdialog+set}" = set; then
6855 enableval="$enable_tabdialog"
6856
6857 if test "$enableval" = yes; then
6858 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6859 else
6860 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6861 fi
6862
6863else
6864
6865 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6873
6874fi
6875
6876
6877 eval "$ac_cv_use_tabdialog"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_TABDIALOG" = yes; then
6883 echo "$ac_t""yes" 1>&6
6884 else
6885 echo "$ac_t""no" 1>&6
6886 fi
6887
6888
6889 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6890echo "configure:6891: checking for --enable-textctrl" >&5
6891 no_cache=0
6892 # Check whether --enable-textctrl or --disable-textctrl was given.
6893if test "${enable_textctrl+set}" = set; then
6894 enableval="$enable_textctrl"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6898 else
6899 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6912
6913fi
6914
6915
6916 eval "$ac_cv_use_textctrl"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_TEXTCTRL" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
6928 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6929echo "configure:6930: checking for --enable-togglebtn" >&5
6930 no_cache=0
6931 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6932if test "${enable_togglebtn+set}" = set; then
6933 enableval="$enable_togglebtn"
6934
6935 if test "$enableval" = yes; then
6936 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6937 else
6938 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6939 fi
6940
6941else
6942
6943 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6944 if test "x$LINE" != x ; then
6945 eval "DEFAULT_$LINE"
6946 else
6947 no_cache=1
6948 fi
6949
6950 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6951
6952fi
6953
6954
6955 eval "$ac_cv_use_togglebtn"
6956 if test "$no_cache" != 1; then
6957 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6958 fi
6959
6960 if test "$wxUSE_TOGGLEBTN" = yes; then
6961 echo "$ac_t""yes" 1>&6
6962 else
6963 echo "$ac_t""no" 1>&6
6964 fi
6965
6966
6967 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6968echo "configure:6969: checking for --enable-toolbar" >&5
6969 no_cache=0
6970 # Check whether --enable-toolbar or --disable-toolbar was given.
6971if test "${enable_toolbar+set}" = set; then
6972 enableval="$enable_toolbar"
6973
6974 if test "$enableval" = yes; then
6975 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6976 else
6977 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6978 fi
6979
6980else
6981
6982 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6983 if test "x$LINE" != x ; then
6984 eval "DEFAULT_$LINE"
6985 else
6986 no_cache=1
6987 fi
6988
6989 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6990
6991fi
6992
6993
6994 eval "$ac_cv_use_toolbar"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_TOOLBAR" = yes; then
7000 echo "$ac_t""yes" 1>&6
7001 else
7002 echo "$ac_t""no" 1>&6
7003 fi
7004
7005
7006 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7007echo "configure:7008: checking for --enable-tbarnative" >&5
7008 no_cache=0
7009 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7010if test "${enable_tbarnative+set}" = set; then
7011 enableval="$enable_tbarnative"
7012
7013 if test "$enableval" = yes; then
7014 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7015 else
7016 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7017 fi
7018
7019else
7020
7021 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7022 if test "x$LINE" != x ; then
7023 eval "DEFAULT_$LINE"
7024 else
7025 no_cache=1
7026 fi
7027
7028 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7029
7030fi
7031
7032
7033 eval "$ac_cv_use_tbarnative"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7039 echo "$ac_t""yes" 1>&6
7040 else
7041 echo "$ac_t""no" 1>&6
7042 fi
7043
7044
7045 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7046echo "configure:7047: checking for --enable-tbarsmpl" >&5
7047 no_cache=0
7048 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7049if test "${enable_tbarsmpl+set}" = set; then
7050 enableval="$enable_tbarsmpl"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7054 else
7055 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7068
7069fi
7070
7071
7072 eval "$ac_cv_use_tbarsmpl"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7078 echo "$ac_t""yes" 1>&6
7079 else
7080 echo "$ac_t""no" 1>&6
7081 fi
7082
7083
7084 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7085echo "configure:7086: checking for --enable-treectrl" >&5
7086 no_cache=0
7087 # Check whether --enable-treectrl or --disable-treectrl was given.
7088if test "${enable_treectrl+set}" = set; then
7089 enableval="$enable_treectrl"
7090
7091 if test "$enableval" = yes; then
7092 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7093 else
7094 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7095 fi
7096
7097else
7098
7099 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7100 if test "x$LINE" != x ; then
7101 eval "DEFAULT_$LINE"
7102 else
7103 no_cache=1
7104 fi
7105
7106 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7107
7108fi
7109
7110
7111 eval "$ac_cv_use_treectrl"
7112 if test "$no_cache" != 1; then
7113 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7114 fi
7115
7116 if test "$wxUSE_TREECTRL" = yes; then
7117 echo "$ac_t""yes" 1>&6
7118 else
7119 echo "$ac_t""no" 1>&6
7120 fi
7121
7122
7123 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7124echo "configure:7125: checking for --enable-tipwindow" >&5
7125 no_cache=0
7126 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7127if test "${enable_tipwindow+set}" = set; then
7128 enableval="$enable_tipwindow"
7129
7130 if test "$enableval" = yes; then
7131 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7132 else
7133 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7134 fi
7135
7136else
7137
7138 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7139 if test "x$LINE" != x ; then
7140 eval "DEFAULT_$LINE"
7141 else
7142 no_cache=1
7143 fi
7144
7145 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7146
7147fi
7148
7149
7150 eval "$ac_cv_use_tipwindow"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_TIPWINDOW" = yes; then
7156 echo "$ac_t""yes" 1>&6
7157 else
7158 echo "$ac_t""no" 1>&6
7159 fi
7160
7161
7162 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7163echo "configure:7164: checking for --enable-popupwin" >&5
7164 no_cache=0
7165 # Check whether --enable-popupwin or --disable-popupwin was given.
7166if test "${enable_popupwin+set}" = set; then
7167 enableval="$enable_popupwin"
7168
7169 if test "$enableval" = yes; then
7170 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7171 else
7172 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7173 fi
7174
7175else
7176
7177 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7178 if test "x$LINE" != x ; then
7179 eval "DEFAULT_$LINE"
7180 else
7181 no_cache=1
7182 fi
7183
7184 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7185
7186fi
7187
7188
7189 eval "$ac_cv_use_popupwin"
7190 if test "$no_cache" != 1; then
7191 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7192 fi
7193
7194 if test "$wxUSE_POPUPWIN" = yes; then
7195 echo "$ac_t""yes" 1>&6
7196 else
7197 echo "$ac_t""no" 1>&6
7198 fi
7199
7200
7201
7202
7203 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7204echo "configure:7205: checking for --enable-commondlg" >&5
7205 no_cache=0
7206 # Check whether --enable-commondlg or --disable-commondlg was given.
7207if test "${enable_commondlg+set}" = set; then
7208 enableval="$enable_commondlg"
7209
7210 if test "$enableval" = yes; then
7211 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7212 else
7213 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7214 fi
7215
7216else
7217
7218 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7219 if test "x$LINE" != x ; then
7220 eval "DEFAULT_$LINE"
7221 else
7222 no_cache=1
7223 fi
7224
7225 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7226
7227fi
7228
7229
7230 eval "$ac_cv_use_commondlg"
7231 if test "$no_cache" != 1; then
7232 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7233 fi
7234
7235 if test "$wxUSE_COMMONDLGS" = yes; then
7236 echo "$ac_t""yes" 1>&6
7237 else
7238 echo "$ac_t""no" 1>&6
7239 fi
7240
7241
7242 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7243echo "configure:7244: checking for --enable-choicedlg" >&5
7244 no_cache=0
7245 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7246if test "${enable_choicedlg+set}" = set; then
7247 enableval="$enable_choicedlg"
7248
7249 if test "$enableval" = yes; then
7250 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7251 else
7252 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7253 fi
7254
7255else
7256
7257 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7258 if test "x$LINE" != x ; then
7259 eval "DEFAULT_$LINE"
7260 else
7261 no_cache=1
7262 fi
7263
7264 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7265
7266fi
7267
7268
7269 eval "$ac_cv_use_choicedlg"
7270 if test "$no_cache" != 1; then
7271 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7272 fi
7273
7274 if test "$wxUSE_CHOICEDLG" = yes; then
7275 echo "$ac_t""yes" 1>&6
7276 else
7277 echo "$ac_t""no" 1>&6
7278 fi
7279
7280
7281 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7282echo "configure:7283: checking for --enable-coldlg" >&5
7283 no_cache=0
7284 # Check whether --enable-coldlg or --disable-coldlg was given.
7285if test "${enable_coldlg+set}" = set; then
7286 enableval="$enable_coldlg"
7287
7288 if test "$enableval" = yes; then
7289 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7290 else
7291 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7292 fi
7293
7294else
7295
7296 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7304
7305fi
7306
7307
7308 eval "$ac_cv_use_coldlg"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_COLOURDLG" = yes; then
7314 echo "$ac_t""yes" 1>&6
7315 else
7316 echo "$ac_t""no" 1>&6
7317 fi
7318
7319
7320 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7321echo "configure:7322: checking for --enable-filedlg" >&5
7322 no_cache=0
7323 # Check whether --enable-filedlg or --disable-filedlg was given.
7324if test "${enable_filedlg+set}" = set; then
7325 enableval="$enable_filedlg"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7329 else
7330 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7331 fi
7332
7333else
7334
7335 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7343
7344fi
7345
7346
7347 eval "$ac_cv_use_filedlg"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_FILEDLG" = yes; then
7353 echo "$ac_t""yes" 1>&6
7354 else
7355 echo "$ac_t""no" 1>&6
7356 fi
7357
7358
7359 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7360echo "configure:7361: checking for --enable-finddlg" >&5
7361 no_cache=0
7362 # Check whether --enable-finddlg or --disable-finddlg was given.
7363if test "${enable_finddlg+set}" = set; then
7364 enableval="$enable_finddlg"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7368 else
7369 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7370 fi
7371
7372else
7373
7374 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7382
7383fi
7384
7385
7386 eval "$ac_cv_use_finddlg"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_FINDREPLDLG" = yes; then
7392 echo "$ac_t""yes" 1>&6
7393 else
7394 echo "$ac_t""no" 1>&6
7395 fi
7396
7397
7398 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7399echo "configure:7400: checking for --enable-fontdlg" >&5
7400 no_cache=0
7401 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7402if test "${enable_fontdlg+set}" = set; then
7403 enableval="$enable_fontdlg"
7404
7405 if test "$enableval" = yes; then
7406 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7407 else
7408 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7409 fi
7410
7411else
7412
7413 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7414 if test "x$LINE" != x ; then
7415 eval "DEFAULT_$LINE"
7416 else
7417 no_cache=1
7418 fi
7419
7420 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7421
7422fi
7423
7424
7425 eval "$ac_cv_use_fontdlg"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_FONTDLG" = yes; then
7431 echo "$ac_t""yes" 1>&6
7432 else
7433 echo "$ac_t""no" 1>&6
7434 fi
7435
7436
7437 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7438echo "configure:7439: checking for --enable-dirdlg" >&5
7439 no_cache=0
7440 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7441if test "${enable_dirdlg+set}" = set; then
7442 enableval="$enable_dirdlg"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7446 else
7447 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7460
7461fi
7462
7463
7464 eval "$ac_cv_use_dirdlg"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_DIRDLG" = yes; then
7470 echo "$ac_t""yes" 1>&6
7471 else
7472 echo "$ac_t""no" 1>&6
7473 fi
7474
7475
7476 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7477echo "configure:7478: checking for --enable-msgdlg" >&5
7478 no_cache=0
7479 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7480if test "${enable_msgdlg+set}" = set; then
7481 enableval="$enable_msgdlg"
7482
7483 if test "$enableval" = yes; then
7484 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7485 else
7486 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7487 fi
7488
7489else
7490
7491 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7492 if test "x$LINE" != x ; then
7493 eval "DEFAULT_$LINE"
7494 else
7495 no_cache=1
7496 fi
7497
7498 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7499
7500fi
7501
7502
7503 eval "$ac_cv_use_msgdlg"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_MSGDLG" = yes; then
7509 echo "$ac_t""yes" 1>&6
7510 else
7511 echo "$ac_t""no" 1>&6
7512 fi
7513
7514
7515 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7516echo "configure:7517: checking for --enable-numberdlg" >&5
7517 no_cache=0
7518 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7519if test "${enable_numberdlg+set}" = set; then
7520 enableval="$enable_numberdlg"
7521
7522 if test "$enableval" = yes; then
7523 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7524 else
7525 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7526 fi
7527
7528else
7529
7530 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7538
7539fi
7540
7541
7542 eval "$ac_cv_use_numberdlg"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_NUMBERDLG" = yes; then
7548 echo "$ac_t""yes" 1>&6
7549 else
7550 echo "$ac_t""no" 1>&6
7551 fi
7552
7553
7554 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7555echo "configure:7556: checking for --enable-splash" >&5
7556 no_cache=0
7557 # Check whether --enable-splash or --disable-splash was given.
7558if test "${enable_splash+set}" = set; then
7559 enableval="$enable_splash"
7560
7561 if test "$enableval" = yes; then
7562 ac_cv_use_splash='wxUSE_SPLASH=yes'
7563 else
7564 ac_cv_use_splash='wxUSE_SPLASH=no'
7565 fi
7566
7567else
7568
7569 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7577
7578fi
7579
7580
7581 eval "$ac_cv_use_splash"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_SPLASH" = yes; then
7587 echo "$ac_t""yes" 1>&6
7588 else
7589 echo "$ac_t""no" 1>&6
7590 fi
7591
7592
7593 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7594echo "configure:7595: checking for --enable-textdlg" >&5
7595 no_cache=0
7596 # Check whether --enable-textdlg or --disable-textdlg was given.
7597if test "${enable_textdlg+set}" = set; then
7598 enableval="$enable_textdlg"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7602 else
7603 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7604 fi
7605
7606else
7607
7608 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7616
7617fi
7618
7619
7620 eval "$ac_cv_use_textdlg"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_TEXTDLG" = yes; then
7626 echo "$ac_t""yes" 1>&6
7627 else
7628 echo "$ac_t""no" 1>&6
7629 fi
7630
7631
7632 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7633echo "configure:7634: checking for --enable-tipdlg" >&5
7634 no_cache=0
7635 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7636if test "${enable_tipdlg+set}" = set; then
7637 enableval="$enable_tipdlg"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7641 else
7642 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7643 fi
7644
7645else
7646
7647 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7655
7656fi
7657
7658
7659 eval "$ac_cv_use_tipdlg"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_STARTUP_TIPS" = yes; then
7665 echo "$ac_t""yes" 1>&6
7666 else
7667 echo "$ac_t""no" 1>&6
7668 fi
7669
7670
7671 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7672echo "configure:7673: checking for --enable-progressdlg" >&5
7673 no_cache=0
7674 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7675if test "${enable_progressdlg+set}" = set; then
7676 enableval="$enable_progressdlg"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7680 else
7681 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7682 fi
7683
7684else
7685
7686 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7694
7695fi
7696
7697
7698 eval "$ac_cv_use_progressdlg"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_PROGRESSDLG" = yes; then
7704 echo "$ac_t""yes" 1>&6
7705 else
7706 echo "$ac_t""no" 1>&6
7707 fi
7708
7709
7710 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7711echo "configure:7712: checking for --enable-wizarddlg" >&5
7712 no_cache=0
7713 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7714if test "${enable_wizarddlg+set}" = set; then
7715 enableval="$enable_wizarddlg"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7719 else
7720 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7733
7734fi
7735
7736
7737 eval "$ac_cv_use_wizarddlg"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_WIZARDDLG" = yes; then
7743 echo "$ac_t""yes" 1>&6
7744 else
7745 echo "$ac_t""no" 1>&6
7746 fi
7747
7748
7749
7750
7751 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7752echo "configure:7753: checking for --enable-menus" >&5
7753 no_cache=0
7754 # Check whether --enable-menus or --disable-menus was given.
7755if test "${enable_menus+set}" = set; then
7756 enableval="$enable_menus"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_menus='wxUSE_MENUS=yes'
7760 else
7761 ac_cv_use_menus='wxUSE_MENUS=no'
7762 fi
7763
7764else
7765
7766 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7774
7775fi
7776
7777
7778 eval "$ac_cv_use_menus"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_MENUS" = yes; then
7784 echo "$ac_t""yes" 1>&6
7785 else
7786 echo "$ac_t""no" 1>&6
7787 fi
7788
7789
7790 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7791echo "configure:7792: checking for --enable-miniframe" >&5
7792 no_cache=0
7793 # Check whether --enable-miniframe or --disable-miniframe was given.
7794if test "${enable_miniframe+set}" = set; then
7795 enableval="$enable_miniframe"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7799 else
7800 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7813
7814fi
7815
7816
7817 eval "$ac_cv_use_miniframe"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_MINIFRAME" = yes; then
7823 echo "$ac_t""yes" 1>&6
7824 else
7825 echo "$ac_t""no" 1>&6
7826 fi
7827
7828
7829 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7830echo "configure:7831: checking for --enable-tooltips" >&5
7831 no_cache=0
7832 # Check whether --enable-tooltips or --disable-tooltips was given.
7833if test "${enable_tooltips+set}" = set; then
7834 enableval="$enable_tooltips"
7835
7836 if test "$enableval" = yes; then
7837 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7838 else
7839 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7840 fi
7841
7842else
7843
7844 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7845 if test "x$LINE" != x ; then
7846 eval "DEFAULT_$LINE"
7847 else
7848 no_cache=1
7849 fi
7850
7851 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7852
7853fi
7854
7855
7856 eval "$ac_cv_use_tooltips"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_TOOLTIPS" = yes; then
7862 echo "$ac_t""yes" 1>&6
7863 else
7864 echo "$ac_t""no" 1>&6
7865 fi
7866
7867
7868 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7869echo "configure:7870: checking for --enable-splines" >&5
7870 no_cache=0
7871 # Check whether --enable-splines or --disable-splines was given.
7872if test "${enable_splines+set}" = set; then
7873 enableval="$enable_splines"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_splines='wxUSE_SPLINES=yes'
7877 else
7878 ac_cv_use_splines='wxUSE_SPLINES=no'
7879 fi
7880
7881else
7882
7883 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7891
7892fi
7893
7894
7895 eval "$ac_cv_use_splines"
7896 if test "$no_cache" != 1; then
7897 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7898 fi
7899
7900 if test "$wxUSE_SPLINES" = yes; then
7901 echo "$ac_t""yes" 1>&6
7902 else
7903 echo "$ac_t""no" 1>&6
7904 fi
7905
7906
7907 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7908echo "configure:7909: checking for --enable-validators" >&5
7909 no_cache=0
7910 # Check whether --enable-validators or --disable-validators was given.
7911if test "${enable_validators+set}" = set; then
7912 enableval="$enable_validators"
7913
7914 if test "$enableval" = yes; then
7915 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7916 else
7917 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7918 fi
7919
7920else
7921
7922 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7923 if test "x$LINE" != x ; then
7924 eval "DEFAULT_$LINE"
7925 else
7926 no_cache=1
7927 fi
7928
7929 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7930
7931fi
7932
7933
7934 eval "$ac_cv_use_validators"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_VALIDATORS" = yes; then
7940 echo "$ac_t""yes" 1>&6
7941 else
7942 echo "$ac_t""no" 1>&6
7943 fi
7944
7945
7946 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7947echo "configure:7948: checking for --enable-busyinfo" >&5
7948 no_cache=0
7949 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7950if test "${enable_busyinfo+set}" = set; then
7951 enableval="$enable_busyinfo"
7952
7953 if test "$enableval" = yes; then
7954 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7955 else
7956 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7957 fi
7958
7959else
7960
7961 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7962 if test "x$LINE" != x ; then
7963 eval "DEFAULT_$LINE"
7964 else
7965 no_cache=1
7966 fi
7967
7968 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7969
7970fi
7971
7972
7973 eval "$ac_cv_use_busyinfo"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_BUSYINFO" = yes; then
7979 echo "$ac_t""yes" 1>&6
7980 else
7981 echo "$ac_t""no" 1>&6
7982 fi
7983
7984
7985 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7986echo "configure:7987: checking for --enable-joystick" >&5
7987 no_cache=0
7988 # Check whether --enable-joystick or --disable-joystick was given.
7989if test "${enable_joystick+set}" = set; then
7990 enableval="$enable_joystick"
7991
7992 if test "$enableval" = yes; then
7993 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7994 else
7995 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7996 fi
7997
7998else
7999
8000 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8001 if test "x$LINE" != x ; then
8002 eval "DEFAULT_$LINE"
8003 else
8004 no_cache=1
8005 fi
8006
8007 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8008
8009fi
8010
8011
8012 eval "$ac_cv_use_joystick"
8013 if test "$no_cache" != 1; then
8014 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8015 fi
8016
8017 if test "$wxUSE_JOYSTICK" = yes; then
8018 echo "$ac_t""yes" 1>&6
8019 else
8020 echo "$ac_t""no" 1>&6
8021 fi
8022
8023
8024 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8025echo "configure:8026: checking for --enable-metafile" >&5
8026 no_cache=0
8027 # Check whether --enable-metafile or --disable-metafile was given.
8028if test "${enable_metafile+set}" = set; then
8029 enableval="$enable_metafile"
8030
8031 if test "$enableval" = yes; then
8032 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8033 else
8034 ac_cv_use_metafile='wxUSE_METAFILE=no'
8035 fi
8036
8037else
8038
8039 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8040 if test "x$LINE" != x ; then
8041 eval "DEFAULT_$LINE"
8042 else
8043 no_cache=1
8044 fi
8045
8046 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8047
8048fi
8049
8050
8051 eval "$ac_cv_use_metafile"
8052 if test "$no_cache" != 1; then
8053 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8054 fi
8055
8056 if test "$wxUSE_METAFILE" = yes; then
8057 echo "$ac_t""yes" 1>&6
8058 else
8059 echo "$ac_t""no" 1>&6
8060 fi
8061
8062
8063 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8064echo "configure:8065: checking for --enable-dragimage" >&5
8065 no_cache=0
8066 # Check whether --enable-dragimage or --disable-dragimage was given.
8067if test "${enable_dragimage+set}" = set; then
8068 enableval="$enable_dragimage"
8069
8070 if test "$enableval" = yes; then
8071 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8072 else
8073 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8074 fi
8075
8076else
8077
8078 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8079 if test "x$LINE" != x ; then
8080 eval "DEFAULT_$LINE"
8081 else
8082 no_cache=1
8083 fi
8084
8085 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8086
8087fi
8088
8089
8090 eval "$ac_cv_use_dragimage"
8091 if test "$no_cache" != 1; then
8092 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8093 fi
8094
8095 if test "$wxUSE_DRAGIMAGE" = yes; then
8096 echo "$ac_t""yes" 1>&6
8097 else
8098 echo "$ac_t""no" 1>&6
8099 fi
8100
8101
8102
8103
8104 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8105echo "configure:8106: checking for --enable-palette" >&5
8106 no_cache=0
8107 # Check whether --enable-palette or --disable-palette was given.
8108if test "${enable_palette+set}" = set; then
8109 enableval="$enable_palette"
8110
8111 if test "$enableval" = yes; then
8112 ac_cv_use_palette='wxUSE_PALETTE=yes'
8113 else
8114 ac_cv_use_palette='wxUSE_PALETTE=no'
8115 fi
8116
8117else
8118
8119 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8120 if test "x$LINE" != x ; then
8121 eval "DEFAULT_$LINE"
8122 else
8123 no_cache=1
8124 fi
8125
8126 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8127
8128fi
8129
8130
8131 eval "$ac_cv_use_palette"
8132 if test "$no_cache" != 1; then
8133 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8134 fi
8135
8136 if test "$wxUSE_PALETTE" = yes; then
8137 echo "$ac_t""yes" 1>&6
8138 else
8139 echo "$ac_t""no" 1>&6
8140 fi
8141
8142
8143 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8144echo "configure:8145: checking for --enable-image" >&5
8145 no_cache=0
8146 # Check whether --enable-image or --disable-image was given.
8147if test "${enable_image+set}" = set; then
8148 enableval="$enable_image"
8149
8150 if test "$enableval" = yes; then
8151 ac_cv_use_image='wxUSE_IMAGE=yes'
8152 else
8153 ac_cv_use_image='wxUSE_IMAGE=no'
8154 fi
8155
8156else
8157
8158 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8159 if test "x$LINE" != x ; then
8160 eval "DEFAULT_$LINE"
8161 else
8162 no_cache=1
8163 fi
8164
8165 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8166
8167fi
8168
8169
8170 eval "$ac_cv_use_image"
8171 if test "$no_cache" != 1; then
8172 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8173 fi
8174
8175 if test "$wxUSE_IMAGE" = yes; then
8176 echo "$ac_t""yes" 1>&6
8177 else
8178 echo "$ac_t""no" 1>&6
8179 fi
8180
8181
8182 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8183echo "configure:8184: checking for --enable-gif" >&5
8184 no_cache=0
8185 # Check whether --enable-gif or --disable-gif was given.
8186if test "${enable_gif+set}" = set; then
8187 enableval="$enable_gif"
8188
8189 if test "$enableval" = yes; then
8190 ac_cv_use_gif='wxUSE_GIF=yes'
8191 else
8192 ac_cv_use_gif='wxUSE_GIF=no'
8193 fi
8194
8195else
8196
8197 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8198 if test "x$LINE" != x ; then
8199 eval "DEFAULT_$LINE"
8200 else
8201 no_cache=1
8202 fi
8203
8204 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8205
8206fi
8207
8208
8209 eval "$ac_cv_use_gif"
8210 if test "$no_cache" != 1; then
8211 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8212 fi
8213
8214 if test "$wxUSE_GIF" = yes; then
8215 echo "$ac_t""yes" 1>&6
8216 else
8217 echo "$ac_t""no" 1>&6
8218 fi
8219
8220
8221 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8222echo "configure:8223: checking for --enable-pcx" >&5
8223 no_cache=0
8224 # Check whether --enable-pcx or --disable-pcx was given.
8225if test "${enable_pcx+set}" = set; then
8226 enableval="$enable_pcx"
8227
8228 if test "$enableval" = yes; then
8229 ac_cv_use_pcx='wxUSE_PCX=yes'
8230 else
8231 ac_cv_use_pcx='wxUSE_PCX=no'
8232 fi
8233
8234else
8235
8236 LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8244
8245fi
8246
8247
8248 eval "$ac_cv_use_pcx"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_PCX" = yes; then
8254 echo "$ac_t""yes" 1>&6
8255 else
8256 echo "$ac_t""no" 1>&6
8257 fi
8258
8259
8260 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8261echo "configure:8262: checking for --enable-iff" >&5
8262 no_cache=0
8263 # Check whether --enable-iff or --disable-iff was given.
8264if test "${enable_iff+set}" = set; then
8265 enableval="$enable_iff"
8266
8267 if test "$enableval" = yes; then
8268 ac_cv_use_iff='wxUSE_IFF=yes'
8269 else
8270 ac_cv_use_iff='wxUSE_IFF=no'
8271 fi
8272
8273else
8274
8275 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8276 if test "x$LINE" != x ; then
8277 eval "DEFAULT_$LINE"
8278 else
8279 no_cache=1
8280 fi
8281
8282 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8283
8284fi
8285
8286
8287 eval "$ac_cv_use_iff"
8288 if test "$no_cache" != 1; then
8289 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8290 fi
8291
8292 if test "$wxUSE_IFF" = yes; then
8293 echo "$ac_t""yes" 1>&6
8294 else
8295 echo "$ac_t""no" 1>&6
8296 fi
8297
8298
8299 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8300echo "configure:8301: checking for --enable-pnm" >&5
8301 no_cache=0
8302 # Check whether --enable-pnm or --disable-pnm was given.
8303if test "${enable_pnm+set}" = set; then
8304 enableval="$enable_pnm"
8305
8306 if test "$enableval" = yes; then
8307 ac_cv_use_pnm='wxUSE_PNM=yes'
8308 else
8309 ac_cv_use_pnm='wxUSE_PNM=no'
8310 fi
8311
8312else
8313
8314 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8315 if test "x$LINE" != x ; then
8316 eval "DEFAULT_$LINE"
8317 else
8318 no_cache=1
8319 fi
8320
8321 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8322
8323fi
8324
8325
8326 eval "$ac_cv_use_pnm"
8327 if test "$no_cache" != 1; then
8328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8329 fi
8330
8331 if test "$wxUSE_PNM" = yes; then
8332 echo "$ac_t""yes" 1>&6
8333 else
8334 echo "$ac_t""no" 1>&6
8335 fi
8336
8337
8338 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8339echo "configure:8340: checking for --enable-xpm" >&5
8340 no_cache=0
8341 # Check whether --enable-xpm or --disable-xpm was given.
8342if test "${enable_xpm+set}" = set; then
8343 enableval="$enable_xpm"
8344
8345 if test "$enableval" = yes; then
8346 ac_cv_use_xpm='wxUSE_XPM=yes'
8347 else
8348 ac_cv_use_xpm='wxUSE_XPM=no'
8349 fi
8350
8351else
8352
8353 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8354 if test "x$LINE" != x ; then
8355 eval "DEFAULT_$LINE"
8356 else
8357 no_cache=1
8358 fi
8359
8360 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8361
8362fi
8363
8364
8365 eval "$ac_cv_use_xpm"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_XPM" = yes; then
8371 echo "$ac_t""yes" 1>&6
8372 else
8373 echo "$ac_t""no" 1>&6
8374 fi
8375
8376
8377 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8378echo "configure:8379: checking for --enable-ico_cur" >&5
8379 no_cache=0
8380 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8381if test "${enable_ico_cur+set}" = set; then
8382 enableval="$enable_ico_cur"
8383
8384 if test "$enableval" = yes; then
8385 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8386 else
8387 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8388 fi
8389
8390else
8391
8392 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
8399 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8400
8401fi
8402
8403
8404 eval "$ac_cv_use_ico_cur"
8405 if test "$no_cache" != 1; then
8406 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8407 fi
8408
8409 if test "$wxUSE_ICO_CUR" = yes; then
8410 echo "$ac_t""yes" 1>&6
8411 else
8412 echo "$ac_t""no" 1>&6
8413 fi
8414
8415
8416fi
8417
8418case "${host}" in
8419 *-pc-os2_emx | *-pc-os2-emx )
8420 LEX_STEM="lexyy"
8421 ;;
8422 *)
8423 PATH_IFS=':'
8424 LEX_STEM="lex.yy"
8425 ;;
8426esac
8427
8428
8429
8430 echo "saving argument cache $wx_arg_cache_file"
8431 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8432
8433
8434
8435echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8436echo "configure:8437: checking for toolkit" >&5
8437
8438if test "$wxUSE_GUI" = "yes"; then
8439
8440 if test "$USE_BEOS" = 1; then
8441 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8442 fi
8443
8444 if test "$TOOLKIT_GIVEN" = 1; then
8445 for toolkit in `echo $ALL_TOOLKITS`; do
8446 var=wxUSE_$toolkit
8447 eval "value=\$${var}"
8448 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8449 done
8450 else
8451 for toolkit in `echo $ALL_TOOLKITS`; do
8452 if test "$has_toolkit_in_cache" != 1; then
8453 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8454 else
8455 var=DEFAULT_wxUSE_$toolkit
8456 fi
8457 eval "wxUSE_$toolkit=\$${var}"
8458 done
8459 fi
8460
8461 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8462 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8463
8464 case "${host}" in
8465 *-pc-os2_emx | *-pc-os2-emx )
8466 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8467 esac
8468
8469 case "$NUM_TOOLKITS" in
8470 1)
8471 ;;
8472 0)
8473 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8474 ;;
8475 *)
8476 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8477 esac
8478
8479 for toolkit in `echo $ALL_TOOLKITS`; do
8480 var=wxUSE_$toolkit
8481 eval "value=\$${var}"
8482 if test "x$value" != x; then
8483 cache_var=CACHE_$toolkit
8484 eval "cache=\$${cache_var}"
8485 if test "$cache" = 1; then
8486 echo "$var=$value" >> ${wx_arg_cache_file}
8487 fi
8488 if test "$value" = 1; then
8489 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8490 echo "$ac_t""$toolkit_echo" 1>&6
8491 fi
8492 fi
8493 done
8494else
8495 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8496fi
8497
8498
8499wants_win32=0
8500doesnt_want_win32=0
8501case "${host}" in
8502 *-*-cygwin*)
8503 if test "$wxUSE_MSW" = 1 ; then
8504 wants_win32=1
8505 else
8506 doesnt_want_win32=1
8507 fi
8508 ;;
8509 *-*-mingw*)
8510 wants_win32=1
8511 ;;
8512esac
8513
8514if test "$wants_win32" = 1 ; then
8515 USE_UNIX=0
8516 USE_WIN32=1
8517 cat >> confdefs.h <<\EOF
8518#define __WIN32__ 1
8519EOF
8520
8521 cat >> confdefs.h <<\EOF
8522#define __WIN95__ 1
8523EOF
8524
8525 cat >> confdefs.h <<\EOF
8526#define __WINDOWS__ 1
8527EOF
8528
8529 cat >> confdefs.h <<\EOF
8530#define __GNUWIN32__ 1
8531EOF
8532
8533 cat >> confdefs.h <<\EOF
8534#define STRICT 1
8535EOF
8536
8537 cat >> confdefs.h <<\EOF
8538#define WINVER 0x0400
8539EOF
8540
8541fi
8542if test "$doesnt_want_win32" = 1 ; then
8543 USE_UNIX=1
8544 USE_WIN32=0
8545fi
8546
8547if test "$USE_UNIX" = 1 ; then
8548 wxUSE_UNIX=yes
8549 cat >> confdefs.h <<\EOF
8550#define __UNIX__ 1
8551EOF
8552
8553fi
8554
8555
8556cat > confcache <<\EOF
8557# This file is a shell script that caches the results of configure
8558# tests run on this system so they can be shared between configure
8559# scripts and configure runs. It is not useful on other systems.
8560# If it contains results you don't want to keep, you may remove or edit it.
8561#
8562# By default, configure uses ./config.cache as the cache file,
8563# creating it if it does not exist already. You can give configure
8564# the --cache-file=FILE option to use a different cache file; that is
8565# what configure does when it calls configure scripts in
8566# subdirectories, so they share the cache.
8567# Giving --cache-file=/dev/null disables caching, for debugging configure.
8568# config.status only pays attention to the cache file if you give it the
8569# --recheck option to rerun configure.
8570#
8571EOF
8572# The following way of writing the cache mishandles newlines in values,
8573# but we know of no workaround that is simple, portable, and efficient.
8574# So, don't put newlines in cache variables' values.
8575# Ultrix sh set writes to stderr and can't be redirected directly,
8576# and sets the high bit in the cache file unless we assign to the vars.
8577(set) 2>&1 |
8578 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8579 *ac_space=\ *)
8580 # `set' does not quote correctly, so add quotes (double-quote substitution
8581 # turns \\\\ into \\, and sed turns \\ into \).
8582 sed -n \
8583 -e "s/'/'\\\\''/g" \
8584 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8585 ;;
8586 *)
8587 # `set' quotes correctly as required by POSIX, so do not add quotes.
8588 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8589 ;;
8590 esac >> confcache
8591if cmp -s $cache_file confcache; then
8592 :
8593else
8594 if test -w $cache_file; then
8595 echo "updating cache $cache_file"
8596 cat confcache > $cache_file
8597 else
8598 echo "not updating unwritable cache $cache_file"
8599 fi
8600fi
8601rm -f confcache
8602
8603
8604if test "$build" != "$host" ; then
8605 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8606 CC=$host_alias-gcc
8607 CXX=$host_alias-c++
8608 AR=$host_alias-ar
8609 RANLIB=$host_alias-ranlib
8610 DLLTOOL=$host_alias-dlltool
8611 RESCOMP=$host_alias-windres
8612 LD=$host_alias-ld
8613 NM=$host_alias-nm
8614 STRIP=$host_alias-strip
8615 else
8616 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8617 fi
8618fi
8619
8620CFLAGS=${CFLAGS:=}
8621# Extract the first word of "gcc", so it can be a program name with args.
8622set dummy gcc; ac_word=$2
8623echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8624echo "configure:8625: checking for $ac_word" >&5
8625if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8627else
8628 if test -n "$CC"; then
8629 ac_cv_prog_CC="$CC" # Let the user override the test.
8630else
8631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8632 ac_dummy="$PATH"
8633 for ac_dir in $ac_dummy; do
8634 test -z "$ac_dir" && ac_dir=.
8635 if test -f $ac_dir/$ac_word; then
8636 ac_cv_prog_CC="gcc"
8637 break
8638 fi
8639 done
8640 IFS="$ac_save_ifs"
8641fi
8642fi
8643CC="$ac_cv_prog_CC"
8644if test -n "$CC"; then
8645 echo "$ac_t""$CC" 1>&6
8646else
8647 echo "$ac_t""no" 1>&6
8648fi
8649
8650if test -z "$CC"; then
8651 # Extract the first word of "cc", so it can be a program name with args.
8652set dummy cc; ac_word=$2
8653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8654echo "configure:8655: checking for $ac_word" >&5
8655if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8657else
8658 if test -n "$CC"; then
8659 ac_cv_prog_CC="$CC" # Let the user override the test.
8660else
8661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8662 ac_prog_rejected=no
8663 ac_dummy="$PATH"
8664 for ac_dir in $ac_dummy; do
8665 test -z "$ac_dir" && ac_dir=.
8666 if test -f $ac_dir/$ac_word; then
8667 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8668 ac_prog_rejected=yes
8669 continue
8670 fi
8671 ac_cv_prog_CC="cc"
8672 break
8673 fi
8674 done
8675 IFS="$ac_save_ifs"
8676if test $ac_prog_rejected = yes; then
8677 # We found a bogon in the path, so make sure we never use it.
8678 set dummy $ac_cv_prog_CC
8679 shift
8680 if test $# -gt 0; then
8681 # We chose a different compiler from the bogus one.
8682 # However, it has the same basename, so the bogon will be chosen
8683 # first if we set CC to just the basename; use the full file name.
8684 shift
8685 set dummy "$ac_dir/$ac_word" "$@"
8686 shift
8687 ac_cv_prog_CC="$@"
8688 fi
8689fi
8690fi
8691fi
8692CC="$ac_cv_prog_CC"
8693if test -n "$CC"; then
8694 echo "$ac_t""$CC" 1>&6
8695else
8696 echo "$ac_t""no" 1>&6
8697fi
8698
8699 if test -z "$CC"; then
8700 case "`uname -s`" in
8701 *win32* | *WIN32*)
8702 # Extract the first word of "cl", so it can be a program name with args.
8703set dummy cl; ac_word=$2
8704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8705echo "configure:8706: checking for $ac_word" >&5
8706if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8708else
8709 if test -n "$CC"; then
8710 ac_cv_prog_CC="$CC" # Let the user override the test.
8711else
8712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8713 ac_dummy="$PATH"
8714 for ac_dir in $ac_dummy; do
8715 test -z "$ac_dir" && ac_dir=.
8716 if test -f $ac_dir/$ac_word; then
8717 ac_cv_prog_CC="cl"
8718 break
8719 fi
8720 done
8721 IFS="$ac_save_ifs"
8722fi
8723fi
8724CC="$ac_cv_prog_CC"
8725if test -n "$CC"; then
8726 echo "$ac_t""$CC" 1>&6
8727else
8728 echo "$ac_t""no" 1>&6
8729fi
8730 ;;
8731 esac
8732 fi
8733 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8734fi
8735
8736echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8737echo "configure:8738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8738
8739ac_ext=c
8740# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8741ac_cpp='$CPP $CPPFLAGS'
8742ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8743ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8744cross_compiling=$ac_cv_prog_cc_cross
8745
8746cat > conftest.$ac_ext << EOF
8747
8748#line 8749 "configure"
8749#include "confdefs.h"
8750
8751main(){return(0);}
8752EOF
8753if { (eval echo configure:8754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8754 ac_cv_prog_cc_works=yes
8755 # If we can't run a trivial program, we are probably using a cross compiler.
8756 if (./conftest; exit) 2>/dev/null; then
8757 ac_cv_prog_cc_cross=no
8758 else
8759 ac_cv_prog_cc_cross=yes
8760 fi
8761else
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_cv_prog_cc_works=no
8765fi
8766rm -fr conftest*
8767ac_ext=c
8768# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8769ac_cpp='$CPP $CPPFLAGS'
8770ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8771ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8772cross_compiling=$ac_cv_prog_cc_cross
8773
8774echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8775if test $ac_cv_prog_cc_works = no; then
8776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8777fi
8778echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8779echo "configure:8780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8780echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8781cross_compiling=$ac_cv_prog_cc_cross
8782
8783echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8784echo "configure:8785: checking whether we are using GNU C" >&5
8785if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8787else
8788 cat > conftest.c <<EOF
8789#ifdef __GNUC__
8790 yes;
8791#endif
8792EOF
8793if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8794 ac_cv_prog_gcc=yes
8795else
8796 ac_cv_prog_gcc=no
8797fi
8798fi
8799
8800echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8801
8802if test $ac_cv_prog_gcc = yes; then
8803 GCC=yes
8804else
8805 GCC=
8806fi
8807
8808ac_test_CFLAGS="${CFLAGS+set}"
8809ac_save_CFLAGS="$CFLAGS"
8810CFLAGS=
8811echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8812echo "configure:8813: checking whether ${CC-cc} accepts -g" >&5
8813if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
8815else
8816 echo 'void f(){}' > conftest.c
8817if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8818 ac_cv_prog_cc_g=yes
8819else
8820 ac_cv_prog_cc_g=no
8821fi
8822rm -f conftest*
8823
8824fi
8825
8826echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8827if test "$ac_test_CFLAGS" = set; then
8828 CFLAGS="$ac_save_CFLAGS"
8829elif test $ac_cv_prog_cc_g = yes; then
8830 if test "$GCC" = yes; then
8831 CFLAGS="-g -O2"
8832 else
8833 CFLAGS="-g"
8834 fi
8835else
8836 if test "$GCC" = yes; then
8837 CFLAGS="-O2"
8838 else
8839 CFLAGS=
8840 fi
8841fi
8842
8843
8844echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8845echo "configure:8846: checking how to run the C preprocessor" >&5
8846# On Suns, sometimes $CPP names a directory.
8847if test -n "$CPP" && test -d "$CPP"; then
8848 CPP=
8849fi
8850if test -z "$CPP"; then
8851if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8853else
8854 # This must be in double quotes, not single quotes, because CPP may get
8855 # substituted into the Makefile and "${CC-cc}" will confuse make.
8856 CPP="${CC-cc} -E"
8857 # On the NeXT, cc -E runs the code through the compiler's parser,
8858 # not just through cpp.
8859 cat > conftest.$ac_ext <<EOF
8860#line 8861 "configure"
8861#include "confdefs.h"
8862#include <assert.h>
8863Syntax Error
8864EOF
8865ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8866{ (eval echo configure:8867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8867ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8868if test -z "$ac_err"; then
8869 :
8870else
8871 echo "$ac_err" >&5
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 rm -rf conftest*
8875 CPP="${CC-cc} -E -traditional-cpp"
8876 cat > conftest.$ac_ext <<EOF
8877#line 8878 "configure"
8878#include "confdefs.h"
8879#include <assert.h>
8880Syntax Error
8881EOF
8882ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8883{ (eval echo configure:8884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8884ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8885if test -z "$ac_err"; then
8886 :
8887else
8888 echo "$ac_err" >&5
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 CPP="${CC-cc} -nologo -E"
8893 cat > conftest.$ac_ext <<EOF
8894#line 8895 "configure"
8895#include "confdefs.h"
8896#include <assert.h>
8897Syntax Error
8898EOF
8899ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8900{ (eval echo configure:8901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8901ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8902if test -z "$ac_err"; then
8903 :
8904else
8905 echo "$ac_err" >&5
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 rm -rf conftest*
8909 CPP=/lib/cpp
8910fi
8911rm -f conftest*
8912fi
8913rm -f conftest*
8914fi
8915rm -f conftest*
8916 ac_cv_prog_CPP="$CPP"
8917fi
8918 CPP="$ac_cv_prog_CPP"
8919else
8920 ac_cv_prog_CPP="$CPP"
8921fi
8922echo "$ac_t""$CPP" 1>&6
8923
8924if test $ac_cv_prog_gcc = yes; then
8925 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8926echo "configure:8927: checking whether ${CC-cc} needs -traditional" >&5
8927if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8928 echo $ac_n "(cached) $ac_c" 1>&6
8929else
8930 ac_pattern="Autoconf.*'x'"
8931 cat > conftest.$ac_ext <<EOF
8932#line 8933 "configure"
8933#include "confdefs.h"
8934#include <sgtty.h>
8935Autoconf TIOCGETP
8936EOF
8937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8938 egrep "$ac_pattern" >/dev/null 2>&1; then
8939 rm -rf conftest*
8940 ac_cv_prog_gcc_traditional=yes
8941else
8942 rm -rf conftest*
8943 ac_cv_prog_gcc_traditional=no
8944fi
8945rm -f conftest*
8946
8947
8948 if test $ac_cv_prog_gcc_traditional = no; then
8949 cat > conftest.$ac_ext <<EOF
8950#line 8951 "configure"
8951#include "confdefs.h"
8952#include <termio.h>
8953Autoconf TCGETA
8954EOF
8955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8956 egrep "$ac_pattern" >/dev/null 2>&1; then
8957 rm -rf conftest*
8958 ac_cv_prog_gcc_traditional=yes
8959fi
8960rm -f conftest*
8961
8962 fi
8963fi
8964
8965echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8966 if test $ac_cv_prog_gcc_traditional = yes; then
8967 CC="$CC -traditional"
8968 fi
8969fi
8970
8971
8972
8973ac_ext=C
8974# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8975ac_cpp='$CXXCPP $CPPFLAGS'
8976ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8977ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8978cross_compiling=$ac_cv_prog_cxx_cross
8979
8980
8981CXXFLAGS=${CXXFLAGS:=}
8982for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8983do
8984# Extract the first word of "$ac_prog", so it can be a program name with args.
8985set dummy $ac_prog; ac_word=$2
8986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8987echo "configure:8988: checking for $ac_word" >&5
8988if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8990else
8991 if test -n "$CXX"; then
8992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8993else
8994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8995 ac_dummy="$PATH"
8996 for ac_dir in $ac_dummy; do
8997 test -z "$ac_dir" && ac_dir=.
8998 if test -f $ac_dir/$ac_word; then
8999 ac_cv_prog_CXX="$ac_prog"
9000 break
9001 fi
9002 done
9003 IFS="$ac_save_ifs"
9004fi
9005fi
9006CXX="$ac_cv_prog_CXX"
9007if test -n "$CXX"; then
9008 echo "$ac_t""$CXX" 1>&6
9009else
9010 echo "$ac_t""no" 1>&6
9011fi
9012
9013test -n "$CXX" && break
9014done
9015test -n "$CXX" || CXX="gcc"
9016
9017
9018echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9019echo "configure:9020: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9020
9021ac_ext=C
9022# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9023ac_cpp='$CXXCPP $CPPFLAGS'
9024ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9025ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9026cross_compiling=$ac_cv_prog_cxx_cross
9027
9028cat > conftest.$ac_ext << EOF
9029
9030#line 9031 "configure"
9031#include "confdefs.h"
9032
9033int main(){return(0);}
9034EOF
9035if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036 ac_cv_prog_cxx_works=yes
9037 # If we can't run a trivial program, we are probably using a cross compiler.
9038 if (./conftest; exit) 2>/dev/null; then
9039 ac_cv_prog_cxx_cross=no
9040 else
9041 ac_cv_prog_cxx_cross=yes
9042 fi
9043else
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 ac_cv_prog_cxx_works=no
9047fi
9048rm -fr conftest*
9049ac_ext=C
9050# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9051ac_cpp='$CXXCPP $CPPFLAGS'
9052ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9053ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9054cross_compiling=$ac_cv_prog_cxx_cross
9055
9056echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9057if test $ac_cv_prog_cxx_works = no; then
9058 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9059fi
9060echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9061echo "configure:9062: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9062echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9063cross_compiling=$ac_cv_prog_cxx_cross
9064
9065echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9066echo "configure:9067: checking whether we are using GNU C++" >&5
9067if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
9069else
9070 cat > conftest.C <<EOF
9071#ifdef __GNUC__
9072 yes;
9073#endif
9074EOF
9075if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9076 ac_cv_prog_gxx=yes
9077else
9078 ac_cv_prog_gxx=no
9079fi
9080fi
9081
9082echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9083
9084if test $ac_cv_prog_gxx = yes; then
9085 GXX=yes
9086else
9087 GXX=
9088fi
9089
9090ac_test_CXXFLAGS="${CXXFLAGS+set}"
9091ac_save_CXXFLAGS="$CXXFLAGS"
9092CXXFLAGS=
9093echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9094echo "configure:9095: checking whether ${CXX-g++} accepts -g" >&5
9095if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097else
9098 echo 'void f(){}' > conftest.cc
9099if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9100 ac_cv_prog_cxx_g=yes
9101else
9102 ac_cv_prog_cxx_g=no
9103fi
9104rm -f conftest*
9105
9106fi
9107
9108echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9109if test "$ac_test_CXXFLAGS" = set; then
9110 CXXFLAGS="$ac_save_CXXFLAGS"
9111elif test $ac_cv_prog_cxx_g = yes; then
9112 if test "$GXX" = yes; then
9113 CXXFLAGS="-g -O2"
9114 else
9115 CXXFLAGS="-g"
9116 fi
9117else
9118 if test "$GXX" = yes; then
9119 CXXFLAGS="-O2"
9120 else
9121 CXXFLAGS=
9122 fi
9123fi
9124
9125
9126ac_ext=c
9127# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9128ac_cpp='$CPP $CPPFLAGS'
9129ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9130ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9131cross_compiling=$ac_cv_prog_cc_cross
9132
9133
9134# Extract the first word of "ranlib", so it can be a program name with args.
9135set dummy ranlib; ac_word=$2
9136echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9137echo "configure:9138: checking for $ac_word" >&5
9138if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9140else
9141 if test -n "$RANLIB"; then
9142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9143else
9144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9145 ac_dummy="$PATH"
9146 for ac_dir in $ac_dummy; do
9147 test -z "$ac_dir" && ac_dir=.
9148 if test -f $ac_dir/$ac_word; then
9149 ac_cv_prog_RANLIB="ranlib"
9150 break
9151 fi
9152 done
9153 IFS="$ac_save_ifs"
9154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9155fi
9156fi
9157RANLIB="$ac_cv_prog_RANLIB"
9158if test -n "$RANLIB"; then
9159 echo "$ac_t""$RANLIB" 1>&6
9160else
9161 echo "$ac_t""no" 1>&6
9162fi
9163
9164
9165# Extract the first word of "ar", so it can be a program name with args.
9166set dummy ar; ac_word=$2
9167echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9168echo "configure:9169: checking for $ac_word" >&5
9169if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
9171else
9172 if test -n "$AR"; then
9173 ac_cv_prog_AR="$AR" # Let the user override the test.
9174else
9175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9176 ac_dummy="$PATH"
9177 for ac_dir in $ac_dummy; do
9178 test -z "$ac_dir" && ac_dir=.
9179 if test -f $ac_dir/$ac_word; then
9180 ac_cv_prog_AR="ar"
9181 break
9182 fi
9183 done
9184 IFS="$ac_save_ifs"
9185 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9186fi
9187fi
9188AR="$ac_cv_prog_AR"
9189if test -n "$AR"; then
9190 echo "$ac_t""$AR" 1>&6
9191else
9192 echo "$ac_t""no" 1>&6
9193fi
9194
9195
9196# Find a good install program. We prefer a C program (faster),
9197# so one script is as good as another. But avoid the broken or
9198# incompatible versions:
9199# SysV /etc/install, /usr/sbin/install
9200# SunOS /usr/etc/install
9201# IRIX /sbin/install
9202# AIX /bin/install
9203# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9204# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9205# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9206# ./install, which can be erroneously created by make from ./install.sh.
9207echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9208echo "configure:9209: checking for a BSD compatible install" >&5
9209if test -z "$INSTALL"; then
9210if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
9212else
9213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9214 for ac_dir in $PATH; do
9215 # Account for people who put trailing slashes in PATH elements.
9216 case "$ac_dir/" in
9217 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9218 *)
9219 # OSF1 and SCO ODT 3.0 have their own names for install.
9220 # Don't use installbsd from OSF since it installs stuff as root
9221 # by default.
9222 for ac_prog in ginstall scoinst install; do
9223 if test -f $ac_dir/$ac_prog; then
9224 if test $ac_prog = install &&
9225 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9226 # AIX install. It has an incompatible calling convention.
9227 :
9228 else
9229 ac_cv_path_install="$ac_dir/$ac_prog -c"
9230 break 2
9231 fi
9232 fi
9233 done
9234 ;;
9235 esac
9236 done
9237 IFS="$ac_save_IFS"
9238
9239fi
9240 if test "${ac_cv_path_install+set}" = set; then
9241 INSTALL="$ac_cv_path_install"
9242 else
9243 # As a last resort, use the slow shell script. We don't cache a
9244 # path for INSTALL within a source directory, because that will
9245 # break other packages using the cache if that directory is
9246 # removed, or if the path is relative.
9247 INSTALL="$ac_install_sh"
9248 fi
9249fi
9250echo "$ac_t""$INSTALL" 1>&6
9251
9252# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9253# It thinks the first close brace ends the variable substitution.
9254test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9255
9256test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9257
9258test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9259
9260
9261case ${INSTALL} in
9262 /* ) # Absolute
9263 ;;
9264 *)
9265 INSTALL=`pwd`/${INSTALL} ;;
9266esac
9267
9268
9269case "${host}" in
9270
9271 powerpc-*-darwin* )
9272 INSTALL_PROGRAM="cp -fp"
9273 INSTALL_DATA="cp -fp"
9274 ;;
9275 *)
9276 ;;
9277esac
9278
9279# Extract the first word of "strip", so it can be a program name with args.
9280set dummy strip; ac_word=$2
9281echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9282echo "configure:9283: checking for $ac_word" >&5
9283if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9285else
9286 if test -n "$STRIP"; then
9287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9288else
9289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9290 ac_dummy="$PATH"
9291 for ac_dir in $ac_dummy; do
9292 test -z "$ac_dir" && ac_dir=.
9293 if test -f $ac_dir/$ac_word; then
9294 ac_cv_prog_STRIP="strip"
9295 break
9296 fi
9297 done
9298 IFS="$ac_save_ifs"
9299 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9300fi
9301fi
9302STRIP="$ac_cv_prog_STRIP"
9303if test -n "$STRIP"; then
9304 echo "$ac_t""$STRIP" 1>&6
9305else
9306 echo "$ac_t""no" 1>&6
9307fi
9308
9309
9310echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9311echo "configure:9312: checking if make is GNU make" >&5
9312if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9313 echo $ac_n "(cached) $ac_c" 1>&6
9314else
9315
9316 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9317 egrep -s GNU > /dev/null); then
9318 wx_cv_prog_makeisgnu="yes"
9319 else
9320 wx_cv_prog_makeisgnu="no"
9321 fi
9322
9323fi
9324
9325echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9326
9327if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9328 IF_GNU_MAKE=""
9329else
9330 IF_GNU_MAKE="#"
9331fi
9332
9333
9334
9335if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9336echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9337echo "configure:9338: checking if make supports VPATH" >&5
9338if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
9340else
9341
9342cat - << EOF > confMake
9343check : file
9344 cp \$? \$@
9345 cp \$? final_file
9346EOF
9347
9348if test ! -d sub ; then
9349 mkdir sub
9350fi
9351echo dummy > sub/file
9352${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9353RESULT=$?
9354rm -f sub/file check final_file confMake
9355rmdir sub
9356if test "$RESULT" = 0; then
9357 wx_cv_prog_makevpath="yes"
9358else
9359 wx_cv_prog_makevpath="no"
9360fi
9361
9362fi
9363
9364echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9365
9366if test "x$wx_cv_prog_makevpath" != "xyes"; then
9367{ echo "configure: error:
9368You need a make-utility that is able to use the variable
9369VPATH correctly.
9370If your version of make does not support VPATH correctly,
9371please install GNU-make (possibly as gmake), and start
9372configure with the following command:
9373export MAKE=gmake; ./configure for sh-type shells
9374setenv MAKE gmake; ./configure for csh-type shells
9375Also please do remember to use gmake in this case every time
9376you are trying to compile.
9377" 1>&2; exit 1; }
9378fi fi
9379for ac_prog in 'bison -y' byacc
9380do
9381# Extract the first word of "$ac_prog", so it can be a program name with args.
9382set dummy $ac_prog; ac_word=$2
9383echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9384echo "configure:9385: checking for $ac_word" >&5
9385if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9387else
9388 if test -n "$YACC"; then
9389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9390else
9391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9392 ac_dummy="$PATH"
9393 for ac_dir in $ac_dummy; do
9394 test -z "$ac_dir" && ac_dir=.
9395 if test -f $ac_dir/$ac_word; then
9396 ac_cv_prog_YACC="$ac_prog"
9397 break
9398 fi
9399 done
9400 IFS="$ac_save_ifs"
9401fi
9402fi
9403YACC="$ac_cv_prog_YACC"
9404if test -n "$YACC"; then
9405 echo "$ac_t""$YACC" 1>&6
9406else
9407 echo "$ac_t""no" 1>&6
9408fi
9409
9410test -n "$YACC" && break
9411done
9412test -n "$YACC" || YACC="yacc"
9413
9414
9415# Extract the first word of "flex", so it can be a program name with args.
9416set dummy flex; ac_word=$2
9417echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9418echo "configure:9419: checking for $ac_word" >&5
9419if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9421else
9422 if test -n "$LEX"; then
9423 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9424else
9425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9426 ac_dummy="$PATH"
9427 for ac_dir in $ac_dummy; do
9428 test -z "$ac_dir" && ac_dir=.
9429 if test -f $ac_dir/$ac_word; then
9430 ac_cv_prog_LEX="flex"
9431 break
9432 fi
9433 done
9434 IFS="$ac_save_ifs"
9435 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9436fi
9437fi
9438LEX="$ac_cv_prog_LEX"
9439if test -n "$LEX"; then
9440 echo "$ac_t""$LEX" 1>&6
9441else
9442 echo "$ac_t""no" 1>&6
9443fi
9444
9445if test -z "$LEXLIB"
9446then
9447 case "$LEX" in
9448 flex*) ac_lib=fl ;;
9449 *) ac_lib=l ;;
9450 esac
9451 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9452echo "configure:9453: checking for yywrap in -l$ac_lib" >&5
9453ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9456else
9457 ac_save_LIBS="$LIBS"
9458LIBS="-l$ac_lib $LIBS"
9459cat > conftest.$ac_ext <<EOF
9460#line 9461 "configure"
9461#include "confdefs.h"
9462/* Override any gcc2 internal prototype to avoid an error. */
9463/* We use char because int might match the return type of a gcc2
9464 builtin and then its argument prototype would still apply. */
9465char yywrap();
9466
9467int main() {
9468yywrap()
9469; return 0; }
9470EOF
9471if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9472 rm -rf conftest*
9473 eval "ac_cv_lib_$ac_lib_var=yes"
9474else
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -rf conftest*
9478 eval "ac_cv_lib_$ac_lib_var=no"
9479fi
9480rm -f conftest*
9481LIBS="$ac_save_LIBS"
9482
9483fi
9484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9485 echo "$ac_t""yes" 1>&6
9486 LEXLIB="-l$ac_lib"
9487else
9488 echo "$ac_t""no" 1>&6
9489fi
9490
9491fi
9492
9493
9494echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9495echo "configure:9496: checking whether ln -s works" >&5
9496if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9497 echo $ac_n "(cached) $ac_c" 1>&6
9498else
9499 rm -f conftestdata
9500if ln -s X conftestdata 2>/dev/null
9501then
9502 rm -f conftestdata
9503 ac_cv_prog_LN_S="ln -s"
9504else
9505 ac_cv_prog_LN_S=ln
9506fi
9507fi
9508LN_S="$ac_cv_prog_LN_S"
9509if test "$ac_cv_prog_LN_S" = "ln -s"; then
9510 echo "$ac_t""yes" 1>&6
9511else
9512 echo "$ac_t""no" 1>&6
9513fi
9514
9515
9516
9517if test "$wxUSE_MAC" != 1; then
9518 for ac_hdr in strings.h
9519do
9520ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9521echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9522echo "configure:9523: checking for $ac_hdr" >&5
9523if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525else
9526 cat > conftest.$ac_ext <<EOF
9527#line 9528 "configure"
9528#include "confdefs.h"
9529#include <$ac_hdr>
9530EOF
9531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9532{ (eval echo configure:9533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9533ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9534if test -z "$ac_err"; then
9535 rm -rf conftest*
9536 eval "ac_cv_header_$ac_safe=yes"
9537else
9538 echo "$ac_err" >&5
9539 echo "configure: failed program was:" >&5
9540 cat conftest.$ac_ext >&5
9541 rm -rf conftest*
9542 eval "ac_cv_header_$ac_safe=no"
9543fi
9544rm -f conftest*
9545fi
9546if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9547 echo "$ac_t""yes" 1>&6
9548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9549 cat >> confdefs.h <<EOF
9550#define $ac_tr_hdr 1
9551EOF
9552
9553else
9554 echo "$ac_t""no" 1>&6
9555fi
9556done
9557
9558fi
9559
9560for ac_hdr in stdlib.h
9561do
9562ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9563echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9564echo "configure:9565: checking for $ac_hdr" >&5
9565if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9567else
9568 cat > conftest.$ac_ext <<EOF
9569#line 9570 "configure"
9570#include "confdefs.h"
9571#include <$ac_hdr>
9572EOF
9573ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9574{ (eval echo configure:9575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9575ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9576if test -z "$ac_err"; then
9577 rm -rf conftest*
9578 eval "ac_cv_header_$ac_safe=yes"
9579else
9580 echo "$ac_err" >&5
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 eval "ac_cv_header_$ac_safe=no"
9585fi
9586rm -f conftest*
9587fi
9588if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9589 echo "$ac_t""yes" 1>&6
9590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9591 cat >> confdefs.h <<EOF
9592#define $ac_tr_hdr 1
9593EOF
9594
9595else
9596 echo "$ac_t""no" 1>&6
9597fi
9598done
9599
9600for ac_hdr in malloc.h
9601do
9602ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9604echo "configure:9605: checking for $ac_hdr" >&5
9605if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607else
9608 cat > conftest.$ac_ext <<EOF
9609#line 9610 "configure"
9610#include "confdefs.h"
9611#include <$ac_hdr>
9612EOF
9613ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9614{ (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9615ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9616if test -z "$ac_err"; then
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=yes"
9619else
9620 echo "$ac_err" >&5
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=no"
9625fi
9626rm -f conftest*
9627fi
9628if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632#define $ac_tr_hdr 1
9633EOF
9634
9635else
9636 echo "$ac_t""no" 1>&6
9637fi
9638done
9639
9640for ac_hdr in unistd.h
9641do
9642ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9643echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9644echo "configure:9645: checking for $ac_hdr" >&5
9645if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647else
9648 cat > conftest.$ac_ext <<EOF
9649#line 9650 "configure"
9650#include "confdefs.h"
9651#include <$ac_hdr>
9652EOF
9653ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9654{ (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9655ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9656if test -z "$ac_err"; then
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=yes"
9659else
9660 echo "$ac_err" >&5
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 eval "ac_cv_header_$ac_safe=no"
9665fi
9666rm -f conftest*
9667fi
9668if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9671 cat >> confdefs.h <<EOF
9672#define $ac_tr_hdr 1
9673EOF
9674
9675else
9676 echo "$ac_t""no" 1>&6
9677fi
9678done
9679
9680for ac_hdr in wchar.h
9681do
9682ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9683echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9684echo "configure:9685: checking for $ac_hdr" >&5
9685if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687else
9688 cat > conftest.$ac_ext <<EOF
9689#line 9690 "configure"
9690#include "confdefs.h"
9691#include <$ac_hdr>
9692EOF
9693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9694{ (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9695ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9696if test -z "$ac_err"; then
9697 rm -rf conftest*
9698 eval "ac_cv_header_$ac_safe=yes"
9699else
9700 echo "$ac_err" >&5
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -rf conftest*
9704 eval "ac_cv_header_$ac_safe=no"
9705fi
9706rm -f conftest*
9707fi
9708if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9711 cat >> confdefs.h <<EOF
9712#define $ac_tr_hdr 1
9713EOF
9714
9715else
9716 echo "$ac_t""no" 1>&6
9717fi
9718done
9719
9720
9721if test "$ac_cv_header_wchar_h" != "yes"; then
9722 for ac_hdr in wcstr.h
9723do
9724ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9726echo "configure:9727: checking for $ac_hdr" >&5
9727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9729else
9730 cat > conftest.$ac_ext <<EOF
9731#line 9732 "configure"
9732#include "confdefs.h"
9733#include <$ac_hdr>
9734EOF
9735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9736{ (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9738if test -z "$ac_err"; then
9739 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes"
9741else
9742 echo "$ac_err" >&5
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 eval "ac_cv_header_$ac_safe=no"
9747fi
9748rm -f conftest*
9749fi
9750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753 cat >> confdefs.h <<EOF
9754#define $ac_tr_hdr 1
9755EOF
9756
9757else
9758 echo "$ac_t""no" 1>&6
9759fi
9760done
9761
9762fi
9763
9764
9765for ac_hdr in fnmatch.h
9766do
9767ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9768echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9769echo "configure:9770: checking for $ac_hdr" >&5
9770if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9772else
9773 cat > conftest.$ac_ext <<EOF
9774#line 9775 "configure"
9775#include "confdefs.h"
9776#include <$ac_hdr>
9777EOF
9778ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9779{ (eval echo configure:9780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9780ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9781if test -z "$ac_err"; then
9782 rm -rf conftest*
9783 eval "ac_cv_header_$ac_safe=yes"
9784else
9785 echo "$ac_err" >&5
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 rm -rf conftest*
9789 eval "ac_cv_header_$ac_safe=no"
9790fi
9791rm -f conftest*
9792fi
9793if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9794 echo "$ac_t""yes" 1>&6
9795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9796 cat >> confdefs.h <<EOF
9797#define $ac_tr_hdr 1
9798EOF
9799
9800else
9801 echo "$ac_t""no" 1>&6
9802fi
9803done
9804
9805
9806if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9807 for ac_func in fnmatch
9808do
9809echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9810echo "configure:9811: checking for $ac_func" >&5
9811if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813else
9814 cat > conftest.$ac_ext <<EOF
9815#line 9816 "configure"
9816#include "confdefs.h"
9817/* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char $ac_func(); below. */
9819#include <assert.h>
9820/* Override any gcc2 internal prototype to avoid an error. */
9821/* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823char $ac_func();
9824
9825int main() {
9826
9827/* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9831choke me
9832#else
9833$ac_func();
9834#endif
9835
9836; return 0; }
9837EOF
9838if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9839 rm -rf conftest*
9840 eval "ac_cv_func_$ac_func=yes"
9841else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 eval "ac_cv_func_$ac_func=no"
9846fi
9847rm -f conftest*
9848fi
9849
9850if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9851 echo "$ac_t""yes" 1>&6
9852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9853 cat >> confdefs.h <<EOF
9854#define $ac_tr_func 1
9855EOF
9856
9857else
9858 echo "$ac_t""no" 1>&6
9859fi
9860done
9861
9862fi
9863
9864for ac_hdr in langinfo.h
9865do
9866ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9867echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9868echo "configure:9869: checking for $ac_hdr" >&5
9869if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9871else
9872 cat > conftest.$ac_ext <<EOF
9873#line 9874 "configure"
9874#include "confdefs.h"
9875#include <$ac_hdr>
9876EOF
9877ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9878{ (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9879ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9880if test -z "$ac_err"; then
9881 rm -rf conftest*
9882 eval "ac_cv_header_$ac_safe=yes"
9883else
9884 echo "$ac_err" >&5
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 rm -rf conftest*
9888 eval "ac_cv_header_$ac_safe=no"
9889fi
9890rm -f conftest*
9891fi
9892if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895 cat >> confdefs.h <<EOF
9896#define $ac_tr_hdr 1
9897EOF
9898
9899else
9900 echo "$ac_t""no" 1>&6
9901fi
9902done
9903
9904
9905if test "$wxUSE_GUI" = "yes"; then
9906 if test "$wxUSE_UNIX" = "yes"; then
9907 for ac_hdr in X11/XKBlib.h
9908do
9909ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9910echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9911echo "configure:9912: checking for $ac_hdr" >&5
9912if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9914else
9915 cat > conftest.$ac_ext <<EOF
9916#line 9917 "configure"
9917#include "confdefs.h"
9918#include <$ac_hdr>
9919EOF
9920ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9921{ (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9922ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9923if test -z "$ac_err"; then
9924 rm -rf conftest*
9925 eval "ac_cv_header_$ac_safe=yes"
9926else
9927 echo "$ac_err" >&5
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9930 rm -rf conftest*
9931 eval "ac_cv_header_$ac_safe=no"
9932fi
9933rm -f conftest*
9934fi
9935if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9936 echo "$ac_t""yes" 1>&6
9937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9938 cat >> confdefs.h <<EOF
9939#define $ac_tr_hdr 1
9940EOF
9941
9942else
9943 echo "$ac_t""no" 1>&6
9944fi
9945done
9946
9947 fi
9948fi
9949
9950
9951echo $ac_n "checking for working const""... $ac_c" 1>&6
9952echo "configure:9953: checking for working const" >&5
9953if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9955else
9956 cat > conftest.$ac_ext <<EOF
9957#line 9958 "configure"
9958#include "confdefs.h"
9959
9960int main() {
9961
9962/* Ultrix mips cc rejects this. */
9963typedef int charset[2]; const charset x;
9964/* SunOS 4.1.1 cc rejects this. */
9965char const *const *ccp;
9966char **p;
9967/* NEC SVR4.0.2 mips cc rejects this. */
9968struct point {int x, y;};
9969static struct point const zero = {0,0};
9970/* AIX XL C 1.02.0.0 rejects this.
9971 It does not let you subtract one const X* pointer from another in an arm
9972 of an if-expression whose if-part is not a constant expression */
9973const char *g = "string";
9974ccp = &g + (g ? g-g : 0);
9975/* HPUX 7.0 cc rejects these. */
9976++ccp;
9977p = (char**) ccp;
9978ccp = (char const *const *) p;
9979{ /* SCO 3.2v4 cc rejects this. */
9980 char *t;
9981 char const *s = 0 ? (char *) 0 : (char const *) 0;
9982
9983 *t++ = 0;
9984}
9985{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9986 int x[] = {25, 17};
9987 const int *foo = &x[0];
9988 ++foo;
9989}
9990{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9991 typedef const int *iptr;
9992 iptr p = 0;
9993 ++p;
9994}
9995{ /* AIX XL C 1.02.0.0 rejects this saying
9996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9997 struct s { int j; const int *ap[3]; };
9998 struct s *b; b->j = 5;
9999}
10000{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10001 const int foo = 10;
10002}
10003
10004; return 0; }
10005EOF
10006if { (eval echo configure:10007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10007 rm -rf conftest*
10008 ac_cv_c_const=yes
10009else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013 ac_cv_c_const=no
10014fi
10015rm -f conftest*
10016fi
10017
10018echo "$ac_t""$ac_cv_c_const" 1>&6
10019if test $ac_cv_c_const = no; then
10020 cat >> confdefs.h <<\EOF
10021#define const
10022EOF
10023
10024fi
10025
10026echo $ac_n "checking for inline""... $ac_c" 1>&6
10027echo "configure:10028: checking for inline" >&5
10028if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
10030else
10031 ac_cv_c_inline=no
10032for ac_kw in inline __inline__ __inline; do
10033 cat > conftest.$ac_ext <<EOF
10034#line 10035 "configure"
10035#include "confdefs.h"
10036
10037int main() {
10038} $ac_kw foo() {
10039; return 0; }
10040EOF
10041if { (eval echo configure:10042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10042 rm -rf conftest*
10043 ac_cv_c_inline=$ac_kw; break
10044else
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047fi
10048rm -f conftest*
10049done
10050
10051fi
10052
10053echo "$ac_t""$ac_cv_c_inline" 1>&6
10054case "$ac_cv_c_inline" in
10055 inline | yes) ;;
10056 no) cat >> confdefs.h <<\EOF
10057#define inline
10058EOF
10059 ;;
10060 *) cat >> confdefs.h <<EOF
10061#define inline $ac_cv_c_inline
10062EOF
10063 ;;
10064esac
10065
10066
10067echo $ac_n "checking size of char""... $ac_c" 1>&6
10068echo "configure:10069: checking size of char" >&5
10069if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10071else
10072 if test "$cross_compiling" = yes; then
10073 ac_cv_sizeof_char=1
10074else
10075 cat > conftest.$ac_ext <<EOF
10076#line 10077 "configure"
10077#include "confdefs.h"
10078#include <stdio.h>
10079main()
10080{
10081 FILE *f=fopen("conftestval", "w");
10082 if (!f) exit(1);
10083 fprintf(f, "%d\n", sizeof(char));
10084 exit(0);
10085}
10086EOF
10087if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10088then
10089 ac_cv_sizeof_char=`cat conftestval`
10090else
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 rm -fr conftest*
10094 ac_cv_sizeof_char=0
10095fi
10096rm -fr conftest*
10097fi
10098
10099fi
10100echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10101cat >> confdefs.h <<EOF
10102#define SIZEOF_CHAR $ac_cv_sizeof_char
10103EOF
10104
10105
10106echo $ac_n "checking size of short""... $ac_c" 1>&6
10107echo "configure:10108: checking size of short" >&5
10108if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110else
10111 if test "$cross_compiling" = yes; then
10112 ac_cv_sizeof_short=2
10113else
10114 cat > conftest.$ac_ext <<EOF
10115#line 10116 "configure"
10116#include "confdefs.h"
10117#include <stdio.h>
10118main()
10119{
10120 FILE *f=fopen("conftestval", "w");
10121 if (!f) exit(1);
10122 fprintf(f, "%d\n", sizeof(short));
10123 exit(0);
10124}
10125EOF
10126if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10127then
10128 ac_cv_sizeof_short=`cat conftestval`
10129else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -fr conftest*
10133 ac_cv_sizeof_short=0
10134fi
10135rm -fr conftest*
10136fi
10137
10138fi
10139echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10140cat >> confdefs.h <<EOF
10141#define SIZEOF_SHORT $ac_cv_sizeof_short
10142EOF
10143
10144
10145echo $ac_n "checking size of void *""... $ac_c" 1>&6
10146echo "configure:10147: checking size of void *" >&5
10147if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10148 echo $ac_n "(cached) $ac_c" 1>&6
10149else
10150 if test "$cross_compiling" = yes; then
10151 ac_cv_sizeof_void_p=4
10152else
10153 cat > conftest.$ac_ext <<EOF
10154#line 10155 "configure"
10155#include "confdefs.h"
10156#include <stdio.h>
10157main()
10158{
10159 FILE *f=fopen("conftestval", "w");
10160 if (!f) exit(1);
10161 fprintf(f, "%d\n", sizeof(void *));
10162 exit(0);
10163}
10164EOF
10165if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10166then
10167 ac_cv_sizeof_void_p=`cat conftestval`
10168else
10169 echo "configure: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10171 rm -fr conftest*
10172 ac_cv_sizeof_void_p=0
10173fi
10174rm -fr conftest*
10175fi
10176
10177fi
10178echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10179cat >> confdefs.h <<EOF
10180#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10181EOF
10182
10183
10184echo $ac_n "checking size of int""... $ac_c" 1>&6
10185echo "configure:10186: checking size of int" >&5
10186if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188else
10189 if test "$cross_compiling" = yes; then
10190 ac_cv_sizeof_int=4
10191else
10192 cat > conftest.$ac_ext <<EOF
10193#line 10194 "configure"
10194#include "confdefs.h"
10195#include <stdio.h>
10196main()
10197{
10198 FILE *f=fopen("conftestval", "w");
10199 if (!f) exit(1);
10200 fprintf(f, "%d\n", sizeof(int));
10201 exit(0);
10202}
10203EOF
10204if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10205then
10206 ac_cv_sizeof_int=`cat conftestval`
10207else
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 rm -fr conftest*
10211 ac_cv_sizeof_int=0
10212fi
10213rm -fr conftest*
10214fi
10215
10216fi
10217echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10218cat >> confdefs.h <<EOF
10219#define SIZEOF_INT $ac_cv_sizeof_int
10220EOF
10221
10222
10223echo $ac_n "checking size of long""... $ac_c" 1>&6
10224echo "configure:10225: checking size of long" >&5
10225if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227else
10228 if test "$cross_compiling" = yes; then
10229 ac_cv_sizeof_long=4
10230else
10231 cat > conftest.$ac_ext <<EOF
10232#line 10233 "configure"
10233#include "confdefs.h"
10234#include <stdio.h>
10235main()
10236{
10237 FILE *f=fopen("conftestval", "w");
10238 if (!f) exit(1);
10239 fprintf(f, "%d\n", sizeof(long));
10240 exit(0);
10241}
10242EOF
10243if { (eval echo configure:10244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10244then
10245 ac_cv_sizeof_long=`cat conftestval`
10246else
10247 echo "configure: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 rm -fr conftest*
10250 ac_cv_sizeof_long=0
10251fi
10252rm -fr conftest*
10253fi
10254
10255fi
10256echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10257cat >> confdefs.h <<EOF
10258#define SIZEOF_LONG $ac_cv_sizeof_long
10259EOF
10260
10261
10262
10263case "${host}" in
10264 arm-*-linux* )
10265 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10266echo "configure:10267: checking size of long long" >&5
10267if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10269else
10270 if test "$cross_compiling" = yes; then
10271 ac_cv_sizeof_long_long=8
10272else
10273 cat > conftest.$ac_ext <<EOF
10274#line 10275 "configure"
10275#include "confdefs.h"
10276#include <stdio.h>
10277main()
10278{
10279 FILE *f=fopen("conftestval", "w");
10280 if (!f) exit(1);
10281 fprintf(f, "%d\n", sizeof(long long));
10282 exit(0);
10283}
10284EOF
10285if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10286then
10287 ac_cv_sizeof_long_long=`cat conftestval`
10288else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -fr conftest*
10292 ac_cv_sizeof_long_long=0
10293fi
10294rm -fr conftest*
10295fi
10296
10297fi
10298echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10299cat >> confdefs.h <<EOF
10300#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10301EOF
10302
10303
10304 ;;
10305 * )
10306 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10307echo "configure:10308: checking size of long long" >&5
10308if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310else
10311 if test "$cross_compiling" = yes; then
10312 ac_cv_sizeof_long_long=0
10313else
10314 cat > conftest.$ac_ext <<EOF
10315#line 10316 "configure"
10316#include "confdefs.h"
10317#include <stdio.h>
10318main()
10319{
10320 FILE *f=fopen("conftestval", "w");
10321 if (!f) exit(1);
10322 fprintf(f, "%d\n", sizeof(long long));
10323 exit(0);
10324}
10325EOF
10326if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10327then
10328 ac_cv_sizeof_long_long=`cat conftestval`
10329else
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10332 rm -fr conftest*
10333 ac_cv_sizeof_long_long=0
10334fi
10335rm -fr conftest*
10336fi
10337
10338fi
10339echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10340cat >> confdefs.h <<EOF
10341#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10342EOF
10343
10344
10345esac
10346
10347echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10348echo "configure:10349: checking size of wchar_t" >&5
10349if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10351else
10352
10353 if test "$cross_compiling" = yes; then
10354 wx_cv_sizeof_wchar_t=4
10355
10356else
10357 cat > conftest.$ac_ext <<EOF
10358#line 10359 "configure"
10359#include "confdefs.h"
10360
10361 #ifdef HAVE_WCHAR_H
10362 # ifdef __CYGWIN__
10363 # include <stddef.h>
10364 # endif
10365 # include <wchar.h>
10366 #endif
10367 #ifdef HAVE_STDLIB_H
10368 # include <stdlib.h>
10369 #endif
10370 #include <stdio.h>
10371 int main()
10372 {
10373 FILE *f=fopen("conftestval", "w");
10374 if (!f) exit(1);
10375 fprintf(f, "%i", sizeof(wchar_t));
10376 exit(0);
10377 }
10378
10379EOF
10380if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10381then
10382 wx_cv_sizeof_wchar_t=`cat conftestval`
10383else
10384 echo "configure: failed program was:" >&5
10385 cat conftest.$ac_ext >&5
10386 rm -fr conftest*
10387 wx_cv_sizeof_wchar_t=0
10388fi
10389rm -fr conftest*
10390fi
10391
10392
10393fi
10394
10395echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10396
10397cat >> confdefs.h <<EOF
10398#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10399EOF
10400
10401
10402# Check whether --enable-largefile or --disable-largefile was given.
10403if test "${enable_largefile+set}" = set; then
10404 enableval="$enable_largefile"
10405 :
10406fi
10407
10408if test "$enable_largefile" != no; then
10409 wx_largefile=no
10410
10411 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10412echo "configure:10413: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10413if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
10415else
10416
10417 cat > conftest.$ac_ext <<EOF
10418#line 10419 "configure"
10419#include "confdefs.h"
10420#define _FILE_OFFSET_BITS 64
10421 #include <sys/types.h>
10422int main() {
10423typedef struct {
10424 unsigned int field: sizeof(off_t) == 8;
10425} wxlf;
10426
10427; return 0; }
10428EOF
10429if { (eval echo configure:10430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10430 rm -rf conftest*
10431 ac_cv_sys_file_offset_bits=64
10432else
10433 echo "configure: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10435 rm -rf conftest*
10436 ac_cv_sys_file_offset_bits=no
10437fi
10438rm -f conftest*
10439
10440
10441fi
10442
10443echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10444
10445 if test "$ac_cv_sys_file_offset_bits" != no; then
10446 wx_largefile=yes
10447 cat >> confdefs.h <<EOF
10448#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10449EOF
10450
10451 fi
10452
10453 if test "x$wx_largefile" != "xyes"; then
10454
10455 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10456echo "configure:10457: checking for _LARGE_FILES value needed for large files" >&5
10457if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10458 echo $ac_n "(cached) $ac_c" 1>&6
10459else
10460
10461 cat > conftest.$ac_ext <<EOF
10462#line 10463 "configure"
10463#include "confdefs.h"
10464#define _LARGE_FILES 1
10465 #include <sys/types.h>
10466int main() {
10467typedef struct {
10468 unsigned int field: sizeof(off_t) == 8;
10469} wxlf;
10470
10471; return 0; }
10472EOF
10473if { (eval echo configure:10474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10474 rm -rf conftest*
10475 ac_cv_sys_large_files=1
10476else
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 rm -rf conftest*
10480 ac_cv_sys_large_files=no
10481fi
10482rm -f conftest*
10483
10484
10485fi
10486
10487echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10488
10489 if test "$ac_cv_sys_large_files" != no; then
10490 wx_largefile=yes
10491 cat >> confdefs.h <<EOF
10492#define _LARGE_FILES $ac_cv_sys_large_files
10493EOF
10494
10495 fi
10496
10497 fi
10498
10499 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10500echo "configure:10501: checking if large file support is available" >&5
10501 if test "x$wx_largefile" = "xyes"; then
10502 cat >> confdefs.h <<\EOF
10503#define HAVE_LARGEFILE_SUPPORT 1
10504EOF
10505
10506 fi
10507 echo "$ac_t""$wx_largefile" 1>&6
10508fi
10509
10510
10511echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10512echo "configure:10513: checking whether byte ordering is bigendian" >&5
10513if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515else
10516 ac_cv_c_bigendian=unknown
10517# See if sys/param.h defines the BYTE_ORDER macro.
10518cat > conftest.$ac_ext <<EOF
10519#line 10520 "configure"
10520#include "confdefs.h"
10521#include <sys/types.h>
10522#include <sys/param.h>
10523int main() {
10524
10525#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10526 bogus endian macros
10527#endif
10528; return 0; }
10529EOF
10530if { (eval echo configure:10531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10531 rm -rf conftest*
10532 # It does; now see whether it defined to BIG_ENDIAN or not.
10533cat > conftest.$ac_ext <<EOF
10534#line 10535 "configure"
10535#include "confdefs.h"
10536#include <sys/types.h>
10537#include <sys/param.h>
10538int main() {
10539
10540#if BYTE_ORDER != BIG_ENDIAN
10541 not big endian
10542#endif
10543; return 0; }
10544EOF
10545if { (eval echo configure:10546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10546 rm -rf conftest*
10547 ac_cv_c_bigendian=yes
10548else
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -rf conftest*
10552 ac_cv_c_bigendian=no
10553fi
10554rm -f conftest*
10555else
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558fi
10559rm -f conftest*
10560if test $ac_cv_c_bigendian = unknown; then
10561if test "$cross_compiling" = yes; then
10562 ac_cv_c_bigendian=unknown
10563else
10564 cat > conftest.$ac_ext <<EOF
10565#line 10566 "configure"
10566#include "confdefs.h"
10567main () {
10568 /* Are we little or big endian? From Harbison&Steele. */
10569 union
10570 {
10571 long l;
10572 char c[sizeof (long)];
10573 } u;
10574 u.l = 1;
10575 exit (u.c[sizeof (long) - 1] == 1);
10576}
10577EOF
10578if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10579then
10580 ac_cv_c_bigendian=no
10581else
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10584 rm -fr conftest*
10585 ac_cv_c_bigendian=yes
10586fi
10587rm -fr conftest*
10588fi
10589
10590fi
10591fi
10592
10593echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10594if test $ac_cv_c_bigendian = unknown; then
10595 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
10596fi
10597if test $ac_cv_c_bigendian = yes; then
10598 cat >> confdefs.h <<\EOF
10599#define WORDS_BIGENDIAN 1
10600EOF
10601
10602fi
10603
10604
10605echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10606echo "configure:10607: checking how to run the C++ preprocessor" >&5
10607if test -z "$CXXCPP"; then
10608if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10609 echo $ac_n "(cached) $ac_c" 1>&6
10610else
10611 ac_ext=C
10612# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10613ac_cpp='$CXXCPP $CPPFLAGS'
10614ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10615ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10616cross_compiling=$ac_cv_prog_cxx_cross
10617 CXXCPP="${CXX-g++} -E"
10618 cat > conftest.$ac_ext <<EOF
10619#line 10620 "configure"
10620#include "confdefs.h"
10621#include <stdlib.h>
10622EOF
10623ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10624{ (eval echo configure:10625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10625ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10626if test -z "$ac_err"; then
10627 :
10628else
10629 echo "$ac_err" >&5
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 rm -rf conftest*
10633 CXXCPP=/lib/cpp
10634fi
10635rm -f conftest*
10636 ac_cv_prog_CXXCPP="$CXXCPP"
10637ac_ext=C
10638# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10639ac_cpp='$CXXCPP $CPPFLAGS'
10640ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10641ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10642cross_compiling=$ac_cv_prog_cxx_cross
10643fi
10644fi
10645CXXCPP="$ac_cv_prog_CXXCPP"
10646echo "$ac_t""$CXXCPP" 1>&6
10647
10648
10649 if test "$cross_compiling" = "yes"; then
10650 cat >> confdefs.h <<\EOF
10651#define wxUSE_IOSTREAMH 1
10652EOF
10653
10654 else
10655
10656 ac_ext=C
10657# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10658ac_cpp='$CXXCPP $CPPFLAGS'
10659ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10660ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10661cross_compiling=$ac_cv_prog_cxx_cross
10662
10663
10664 for ac_hdr in iostream
10665do
10666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10668echo "configure:10669: checking for $ac_hdr" >&5
10669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10670 echo $ac_n "(cached) $ac_c" 1>&6
10671else
10672 cat > conftest.$ac_ext <<EOF
10673#line 10674 "configure"
10674#include "confdefs.h"
10675#include <$ac_hdr>
10676EOF
10677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10678{ (eval echo configure:10679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10680if test -z "$ac_err"; then
10681 rm -rf conftest*
10682 eval "ac_cv_header_$ac_safe=yes"
10683else
10684 echo "$ac_err" >&5
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 rm -rf conftest*
10688 eval "ac_cv_header_$ac_safe=no"
10689fi
10690rm -f conftest*
10691fi
10692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10693 echo "$ac_t""yes" 1>&6
10694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10695 cat >> confdefs.h <<EOF
10696#define $ac_tr_hdr 1
10697EOF
10698
10699else
10700 echo "$ac_t""no" 1>&6
10701fi
10702done
10703
10704
10705 if test "$ac_cv_header_iostream" = "yes" ; then
10706 :
10707 else
10708 cat >> confdefs.h <<\EOF
10709#define wxUSE_IOSTREAMH 1
10710EOF
10711
10712 fi
10713
10714 ac_ext=c
10715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10716ac_cpp='$CPP $CPPFLAGS'
10717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10718ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10719cross_compiling=$ac_cv_prog_cc_cross
10720
10721 fi
10722
10723
10724
10725 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10726echo "configure:10727: checking if C++ compiler supports bool" >&5
10727if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10728 echo $ac_n "(cached) $ac_c" 1>&6
10729else
10730
10731
10732 ac_ext=C
10733# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10734ac_cpp='$CXXCPP $CPPFLAGS'
10735ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10736ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10737cross_compiling=$ac_cv_prog_cxx_cross
10738
10739
10740 cat > conftest.$ac_ext <<EOF
10741#line 10742 "configure"
10742#include "confdefs.h"
10743
10744
10745int main() {
10746
10747 bool b = true;
10748
10749 return 0;
10750
10751; return 0; }
10752EOF
10753if { (eval echo configure:10754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10754 rm -rf conftest*
10755
10756 wx_cv_cpp_bool=yes
10757
10758else
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 rm -rf conftest*
10762
10763 wx_cv_cpp_bool=no
10764
10765
10766fi
10767rm -f conftest*
10768
10769 ac_ext=c
10770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10771ac_cpp='$CPP $CPPFLAGS'
10772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10774cross_compiling=$ac_cv_prog_cc_cross
10775
10776
10777fi
10778
10779echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10780
10781 if test "$wx_cv_cpp_bool" = "yes"; then
10782 cat >> confdefs.h <<\EOF
10783#define HAVE_BOOL 1
10784EOF
10785
10786 fi
10787
10788
10789
10790 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10791echo "configure:10792: checking if C++ compiler supports the explicit keyword" >&5
10792if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10793 echo $ac_n "(cached) $ac_c" 1>&6
10794else
10795
10796
10797 ac_ext=C
10798# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10799ac_cpp='$CXXCPP $CPPFLAGS'
10800ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10801ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10802cross_compiling=$ac_cv_prog_cxx_cross
10803
10804
10805 cat > conftest.$ac_ext <<EOF
10806#line 10807 "configure"
10807#include "confdefs.h"
10808
10809 class Foo { public: explicit Foo(int) {} };
10810
10811int main() {
10812
10813 return 0;
10814
10815; return 0; }
10816EOF
10817if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10818 rm -rf conftest*
10819
10820 cat > conftest.$ac_ext <<EOF
10821#line 10822 "configure"
10822#include "confdefs.h"
10823
10824 class Foo { public: explicit Foo(int) {} };
10825 static void TakeFoo(const Foo& foo) { }
10826
10827int main() {
10828
10829 TakeFoo(17);
10830 return 0;
10831
10832; return 0; }
10833EOF
10834if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10835 rm -rf conftest*
10836 wx_cv_explicit=no
10837else
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10840 rm -rf conftest*
10841 wx_cv_explicit=yes
10842
10843fi
10844rm -f conftest*
10845
10846else
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 rm -rf conftest*
10850 wx_cv_explicit=no
10851
10852fi
10853rm -f conftest*
10854
10855 ac_ext=c
10856# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10857ac_cpp='$CPP $CPPFLAGS'
10858ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10859ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10860cross_compiling=$ac_cv_prog_cc_cross
10861
10862
10863fi
10864
10865echo "$ac_t""$wx_cv_explicit" 1>&6
10866
10867 if test "$wx_cv_explicit" = "yes"; then
10868 cat >> confdefs.h <<\EOF
10869#define HAVE_EXPLICIT 1
10870EOF
10871
10872 fi
10873
10874
10875
10876SEARCH_INCLUDE="\
10877 /usr/local/include \
10878 \
10879 /usr/Motif-1.2/include \
10880 /usr/Motif-2.1/include \
10881 \
10882 /usr/include/Motif1.2 \
10883 /opt/xpm/include/X11 \
10884 /opt/GBxpm/include/ \
10885 /opt/GBxpm/X11/include/ \
10886 \
10887 /usr/Motif1.2/include \
10888 /usr/dt/include \
10889 /usr/openwin/include \
10890 \
10891 /usr/include/Xm \
10892 \
10893 /usr/X11R6/include \
10894 /usr/X11R6.4/include \
10895 /usr/X11R5/include \
10896 /usr/X11R4/include \
10897 \
10898 /usr/include/X11R6 \
10899 /usr/include/X11R5 \
10900 /usr/include/X11R4 \
10901 \
10902 /usr/local/X11R6/include \
10903 /usr/local/X11R5/include \
10904 /usr/local/X11R4/include \
10905 \
10906 /usr/local/include/X11R6 \
10907 /usr/local/include/X11R5 \
10908 /usr/local/include/X11R4 \
10909 \
10910 /usr/X11/include \
10911 /usr/include/X11 \
10912 /usr/local/X11/include \
10913 /usr/local/include/X11 \
10914 \
10915 /usr/X386/include \
10916 /usr/x386/include \
10917 /usr/XFree86/include/X11 \
10918 \
10919 X:/XFree86/include \
10920 X:/XFree86/include/X11 \
10921 \
10922 /usr/include/gtk \
10923 /usr/local/include/gtk \
10924 /usr/include/glib \
10925 /usr/local/include/glib \
10926 \
10927 /usr/include/qt \
10928 /usr/local/include/qt \
10929 \
10930 /usr/include/windows \
10931 /usr/include/wine \
10932 /usr/local/include/wine \
10933 \
10934 /usr/unsupported/include \
10935 /usr/athena/include \
10936 /usr/local/x11r5/include \
10937 /usr/lpp/Xamples/include \
10938 \
10939 /usr/openwin/share/include \
10940 \
10941 /usr/include"
10942
10943SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10944
10945
10946cat > confcache <<\EOF
10947# This file is a shell script that caches the results of configure
10948# tests run on this system so they can be shared between configure
10949# scripts and configure runs. It is not useful on other systems.
10950# If it contains results you don't want to keep, you may remove or edit it.
10951#
10952# By default, configure uses ./config.cache as the cache file,
10953# creating it if it does not exist already. You can give configure
10954# the --cache-file=FILE option to use a different cache file; that is
10955# what configure does when it calls configure scripts in
10956# subdirectories, so they share the cache.
10957# Giving --cache-file=/dev/null disables caching, for debugging configure.
10958# config.status only pays attention to the cache file if you give it the
10959# --recheck option to rerun configure.
10960#
10961EOF
10962# The following way of writing the cache mishandles newlines in values,
10963# but we know of no workaround that is simple, portable, and efficient.
10964# So, don't put newlines in cache variables' values.
10965# Ultrix sh set writes to stderr and can't be redirected directly,
10966# and sets the high bit in the cache file unless we assign to the vars.
10967(set) 2>&1 |
10968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10969 *ac_space=\ *)
10970 # `set' does not quote correctly, so add quotes (double-quote substitution
10971 # turns \\\\ into \\, and sed turns \\ into \).
10972 sed -n \
10973 -e "s/'/'\\\\''/g" \
10974 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10975 ;;
10976 *)
10977 # `set' quotes correctly as required by POSIX, so do not add quotes.
10978 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10979 ;;
10980 esac >> confcache
10981if cmp -s $cache_file confcache; then
10982 :
10983else
10984 if test -w $cache_file; then
10985 echo "updating cache $cache_file"
10986 cat confcache > $cache_file
10987 else
10988 echo "not updating unwritable cache $cache_file"
10989 fi
10990fi
10991rm -f confcache
10992
10993
10994if test "$USE_LINUX" = 1; then
10995 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10996echo "configure:10997: checking for glibc 2.1 or later" >&5
10997if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999else
11000
11001 cat > conftest.$ac_ext <<EOF
11002#line 11003 "configure"
11003#include "confdefs.h"
11004#include <features.h>
11005int main() {
11006
11007 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11008 #error not glibc2.1
11009 #endif
11010
11011; return 0; }
11012EOF
11013if { (eval echo configure:11014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11014 rm -rf conftest*
11015
11016 wx_cv_lib_glibc21=yes
11017
11018else
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11021 rm -rf conftest*
11022
11023 wx_cv_lib_glibc21=no
11024
11025
11026fi
11027rm -f conftest*
11028
11029fi
11030
11031echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11032 if test "$wx_cv_lib_glibc21" = "yes"; then
11033 cat >> confdefs.h <<\EOF
11034#define wxHAVE_GLIBC2 1
11035EOF
11036
11037 fi
11038fi
11039
11040if test "x$wx_cv_lib_glibc21" = "xyes"; then
11041 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11042 cat >> confdefs.h <<\EOF
11043#define _GNU_SOURCE 1
11044EOF
11045
11046 fi
11047fi
11048
11049
11050
11051REGEX_INCLUDE=
11052if test "$wxUSE_REGEX" != "no"; then
11053 cat >> confdefs.h <<\EOF
11054#define wxUSE_REGEX 1
11055EOF
11056
11057
11058 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11059 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11060echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11061echo "configure:11062: checking for regex.h" >&5
11062if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11064else
11065 cat > conftest.$ac_ext <<EOF
11066#line 11067 "configure"
11067#include "confdefs.h"
11068#include <regex.h>
11069EOF
11070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11071{ (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11073if test -z "$ac_err"; then
11074 rm -rf conftest*
11075 eval "ac_cv_header_$ac_safe=yes"
11076else
11077 echo "$ac_err" >&5
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081 eval "ac_cv_header_$ac_safe=no"
11082fi
11083rm -f conftest*
11084fi
11085if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11086 echo "$ac_t""yes" 1>&6
11087 for ac_func in regcomp
11088do
11089echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11090echo "configure:11091: checking for $ac_func" >&5
11091if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11092 echo $ac_n "(cached) $ac_c" 1>&6
11093else
11094 cat > conftest.$ac_ext <<EOF
11095#line 11096 "configure"
11096#include "confdefs.h"
11097/* System header to define __stub macros and hopefully few prototypes,
11098 which can conflict with char $ac_func(); below. */
11099#include <assert.h>
11100/* Override any gcc2 internal prototype to avoid an error. */
11101/* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11103char $ac_func();
11104
11105int main() {
11106
11107/* The GNU C library defines this for functions which it implements
11108 to always fail with ENOSYS. Some functions are actually named
11109 something starting with __ and the normal name is an alias. */
11110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11111choke me
11112#else
11113$ac_func();
11114#endif
11115
11116; return 0; }
11117EOF
11118if { (eval echo configure:11119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11119 rm -rf conftest*
11120 eval "ac_cv_func_$ac_func=yes"
11121else
11122 echo "configure: failed program was:" >&5
11123 cat conftest.$ac_ext >&5
11124 rm -rf conftest*
11125 eval "ac_cv_func_$ac_func=no"
11126fi
11127rm -f conftest*
11128fi
11129
11130if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11131 echo "$ac_t""yes" 1>&6
11132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11133 cat >> confdefs.h <<EOF
11134#define $ac_tr_func 1
11135EOF
11136
11137else
11138 echo "$ac_t""no" 1>&6
11139fi
11140done
11141
11142else
11143 echo "$ac_t""no" 1>&6
11144fi
11145
11146
11147 if test "x$ac_cv_func_regcomp" != "xyes"; then
11148 if test "$wxUSE_REGEX" = "sys" ; then
11149 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11150 else
11151 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11152 wxUSE_REGEX=builtin
11153 fi
11154 else
11155 wxUSE_REGEX=sys
11156 fi
11157 fi
11158
11159 if test "$wxUSE_REGEX" = "builtin" ; then
11160 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11161 fi
11162fi
11163
11164
11165ZLIB_INCLUDE=
11166ZLIB_LINK=
11167if test "$wxUSE_ZLIB" != "no" ; then
11168 cat >> confdefs.h <<\EOF
11169#define wxUSE_ZLIB 1
11170EOF
11171
11172
11173 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11174 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11175echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11176echo "configure:11177: checking for zlib.h" >&5
11177if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11179else
11180 cat > conftest.$ac_ext <<EOF
11181#line 11182 "configure"
11182#include "confdefs.h"
11183#include <zlib.h>
11184EOF
11185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11186{ (eval echo configure:11187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11188if test -z "$ac_err"; then
11189 rm -rf conftest*
11190 eval "ac_cv_header_$ac_safe=yes"
11191else
11192 echo "$ac_err" >&5
11193 echo "configure: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11195 rm -rf conftest*
11196 eval "ac_cv_header_$ac_safe=no"
11197fi
11198rm -f conftest*
11199fi
11200if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11201 echo "$ac_t""yes" 1>&6
11202 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11203echo "configure:11204: checking for deflate in -lz" >&5
11204ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11207else
11208 ac_save_LIBS="$LIBS"
11209LIBS="-lz $LIBS"
11210cat > conftest.$ac_ext <<EOF
11211#line 11212 "configure"
11212#include "confdefs.h"
11213/* Override any gcc2 internal prototype to avoid an error. */
11214/* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11216char deflate();
11217
11218int main() {
11219deflate()
11220; return 0; }
11221EOF
11222if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11223 rm -rf conftest*
11224 eval "ac_cv_lib_$ac_lib_var=yes"
11225else
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11228 rm -rf conftest*
11229 eval "ac_cv_lib_$ac_lib_var=no"
11230fi
11231rm -f conftest*
11232LIBS="$ac_save_LIBS"
11233
11234fi
11235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11237 ZLIB_LINK=" -lz"
11238else
11239 echo "$ac_t""no" 1>&6
11240fi
11241
11242else
11243 echo "$ac_t""no" 1>&6
11244fi
11245
11246
11247 if test "x$ZLIB_LINK" = "x" ; then
11248 if test "$wxUSE_ZLIB" = "sys" ; then
11249 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11250 else
11251 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11252 wxUSE_ZLIB=builtin
11253 fi
11254 else
11255 wxUSE_ZLIB=sys
11256 fi
11257 fi
11258
11259 if test "$wxUSE_ZLIB" = "builtin" ; then
11260 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11261 fi
11262fi
11263
11264
11265PNG_INCLUDE=
11266PNG_LINK=
11267if test "$wxUSE_LIBPNG" != "no" ; then
11268 cat >> confdefs.h <<\EOF
11269#define wxUSE_LIBPNG 1
11270EOF
11271
11272
11273 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11274 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11275 wxUSE_LIBPNG=sys
11276 fi
11277
11278 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11279 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11280 wxUSE_LIBPNG=builtin
11281 fi
11282
11283 if test "$wxUSE_MGL" != 1 ; then
11284 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11285 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11286echo $ac_n "checking for png.h""... $ac_c" 1>&6
11287echo "configure:11288: checking for png.h" >&5
11288if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290else
11291 cat > conftest.$ac_ext <<EOF
11292#line 11293 "configure"
11293#include "confdefs.h"
11294#include <png.h>
11295EOF
11296ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11297{ (eval echo configure:11298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11298ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11299if test -z "$ac_err"; then
11300 rm -rf conftest*
11301 eval "ac_cv_header_$ac_safe=yes"
11302else
11303 echo "$ac_err" >&5
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -rf conftest*
11307 eval "ac_cv_header_$ac_safe=no"
11308fi
11309rm -f conftest*
11310fi
11311if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11312 echo "$ac_t""yes" 1>&6
11313 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11314echo "configure:11315: checking for png_check_sig in -lpng" >&5
11315ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11316if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11318else
11319 ac_save_LIBS="$LIBS"
11320LIBS="-lpng -lz -lm $LIBS"
11321cat > conftest.$ac_ext <<EOF
11322#line 11323 "configure"
11323#include "confdefs.h"
11324/* Override any gcc2 internal prototype to avoid an error. */
11325/* We use char because int might match the return type of a gcc2
11326 builtin and then its argument prototype would still apply. */
11327char png_check_sig();
11328
11329int main() {
11330png_check_sig()
11331; return 0; }
11332EOF
11333if { (eval echo configure:11334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11334 rm -rf conftest*
11335 eval "ac_cv_lib_$ac_lib_var=yes"
11336else
11337 echo "configure: failed program was:" >&5
11338 cat conftest.$ac_ext >&5
11339 rm -rf conftest*
11340 eval "ac_cv_lib_$ac_lib_var=no"
11341fi
11342rm -f conftest*
11343LIBS="$ac_save_LIBS"
11344
11345fi
11346if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 PNG_LINK=" -lpng"
11349else
11350 echo "$ac_t""no" 1>&6
11351fi
11352
11353
11354else
11355 echo "$ac_t""no" 1>&6
11356fi
11357
11358
11359 if test "x$PNG_LINK" = "x" ; then
11360 if test "$wxUSE_LIBPNG" = "sys" ; then
11361 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11362 else
11363 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11364 wxUSE_LIBPNG=builtin
11365 fi
11366 else
11367 wxUSE_LIBPNG=yes
11368 fi
11369 fi
11370 fi
11371
11372 if test "$wxUSE_LIBPNG" = "builtin" ; then
11373 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11374 fi
11375
11376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11377fi
11378
11379
11380JPEG_INCLUDE=
11381JPEG_LINK=
11382if test "$wxUSE_LIBJPEG" != "no" ; then
11383 cat >> confdefs.h <<\EOF
11384#define wxUSE_LIBJPEG 1
11385EOF
11386
11387
11388 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11389 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11390 wxUSE_LIBJPEG=sys
11391 fi
11392
11393 if test "$wxUSE_MGL" != 1 ; then
11394 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11395 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11396echo "configure:11397: checking for jpeglib.h" >&5
11397 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11398 echo $ac_n "(cached) $ac_c" 1>&6
11399else
11400 cat > conftest.$ac_ext <<EOF
11401#line 11402 "configure"
11402#include "confdefs.h"
11403
11404 #undef HAVE_STDLIB_H
11405 #include <stdio.h>
11406 #include <jpeglib.h>
11407
11408int main() {
11409
11410
11411; return 0; }
11412EOF
11413if { (eval echo configure:11414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11414 rm -rf conftest*
11415 ac_cv_header_jpeglib_h=yes
11416else
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11419 rm -rf conftest*
11420 ac_cv_header_jpeglib_h=no
11421
11422fi
11423rm -f conftest*
11424
11425fi
11426
11427 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11428
11429 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11430 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11431echo "configure:11432: checking for jpeg_read_header in -ljpeg" >&5
11432ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11433if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11435else
11436 ac_save_LIBS="$LIBS"
11437LIBS="-ljpeg $LIBS"
11438cat > conftest.$ac_ext <<EOF
11439#line 11440 "configure"
11440#include "confdefs.h"
11441/* Override any gcc2 internal prototype to avoid an error. */
11442/* We use char because int might match the return type of a gcc2
11443 builtin and then its argument prototype would still apply. */
11444char jpeg_read_header();
11445
11446int main() {
11447jpeg_read_header()
11448; return 0; }
11449EOF
11450if { (eval echo configure:11451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11451 rm -rf conftest*
11452 eval "ac_cv_lib_$ac_lib_var=yes"
11453else
11454 echo "configure: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11456 rm -rf conftest*
11457 eval "ac_cv_lib_$ac_lib_var=no"
11458fi
11459rm -f conftest*
11460LIBS="$ac_save_LIBS"
11461
11462fi
11463if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11464 echo "$ac_t""yes" 1>&6
11465 JPEG_LINK=" -ljpeg"
11466else
11467 echo "$ac_t""no" 1>&6
11468fi
11469
11470 fi
11471
11472 if test "x$JPEG_LINK" = "x" ; then
11473 if test "$wxUSE_LIBJPEG" = "sys" ; then
11474 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11475 else
11476 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11477 wxUSE_LIBJPEG=builtin
11478 fi
11479 else
11480 wxUSE_LIBJPEG=sys
11481 fi
11482 fi
11483 fi
11484
11485 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11486 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11487 fi
11488fi
11489
11490
11491TIFF_INCLUDE=
11492TIFF_LINK=
11493if test "$wxUSE_LIBTIFF" != "no" ; then
11494 cat >> confdefs.h <<\EOF
11495#define wxUSE_LIBTIFF 1
11496EOF
11497
11498
11499 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11500 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11501echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11502echo "configure:11503: checking for tiffio.h" >&5
11503if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11504 echo $ac_n "(cached) $ac_c" 1>&6
11505else
11506 cat > conftest.$ac_ext <<EOF
11507#line 11508 "configure"
11508#include "confdefs.h"
11509#include <tiffio.h>
11510EOF
11511ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11512{ (eval echo configure:11513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11513ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11514if test -z "$ac_err"; then
11515 rm -rf conftest*
11516 eval "ac_cv_header_$ac_safe=yes"
11517else
11518 echo "$ac_err" >&5
11519 echo "configure: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 rm -rf conftest*
11522 eval "ac_cv_header_$ac_safe=no"
11523fi
11524rm -f conftest*
11525fi
11526if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11527 echo "$ac_t""yes" 1>&6
11528 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11529echo "configure:11530: checking for TIFFError in -ltiff" >&5
11530ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11531if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11532 echo $ac_n "(cached) $ac_c" 1>&6
11533else
11534 ac_save_LIBS="$LIBS"
11535LIBS="-ltiff -lm $LIBS"
11536cat > conftest.$ac_ext <<EOF
11537#line 11538 "configure"
11538#include "confdefs.h"
11539/* Override any gcc2 internal prototype to avoid an error. */
11540/* We use char because int might match the return type of a gcc2
11541 builtin and then its argument prototype would still apply. */
11542char TIFFError();
11543
11544int main() {
11545TIFFError()
11546; return 0; }
11547EOF
11548if { (eval echo configure:11549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11549 rm -rf conftest*
11550 eval "ac_cv_lib_$ac_lib_var=yes"
11551else
11552 echo "configure: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11554 rm -rf conftest*
11555 eval "ac_cv_lib_$ac_lib_var=no"
11556fi
11557rm -f conftest*
11558LIBS="$ac_save_LIBS"
11559
11560fi
11561if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11562 echo "$ac_t""yes" 1>&6
11563 TIFF_LINK=" -ltiff"
11564else
11565 echo "$ac_t""no" 1>&6
11566fi
11567
11568
11569else
11570 echo "$ac_t""no" 1>&6
11571fi
11572
11573
11574 if test "x$TIFF_LINK" = "x" ; then
11575 if test "$wxUSE_LIBTIFF" = "sys" ; then
11576 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11577 else
11578 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11579 wxUSE_LIBTIFF=builtin
11580 fi
11581 else
11582 wxUSE_LIBTIFF=sys
11583 fi
11584 fi
11585
11586 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11587 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11588 fi
11589fi
11590
11591
11592AFMINSTALL=
11593
11594TOOLKIT=
11595TOOLKIT_INCLUDE=
11596WIDGET_SET=
11597
11598if test "$USE_WIN32" = 1 ; then
11599 for ac_hdr in w32api.h
11600do
11601ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11602echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11603echo "configure:11604: checking for $ac_hdr" >&5
11604if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11605 echo $ac_n "(cached) $ac_c" 1>&6
11606else
11607 cat > conftest.$ac_ext <<EOF
11608#line 11609 "configure"
11609#include "confdefs.h"
11610#include <$ac_hdr>
11611EOF
11612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11613{ (eval echo configure:11614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11615if test -z "$ac_err"; then
11616 rm -rf conftest*
11617 eval "ac_cv_header_$ac_safe=yes"
11618else
11619 echo "$ac_err" >&5
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11622 rm -rf conftest*
11623 eval "ac_cv_header_$ac_safe=no"
11624fi
11625rm -f conftest*
11626fi
11627if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11628 echo "$ac_t""yes" 1>&6
11629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11630 cat >> confdefs.h <<EOF
11631#define $ac_tr_hdr 1
11632EOF
11633
11634else
11635 echo "$ac_t""no" 1>&6
11636fi
11637done
11638
11639 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11640echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11641echo "configure:11642: checking for windows.h" >&5
11642if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11643 echo $ac_n "(cached) $ac_c" 1>&6
11644else
11645 cat > conftest.$ac_ext <<EOF
11646#line 11647 "configure"
11647#include "confdefs.h"
11648#include <windows.h>
11649EOF
11650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11651{ (eval echo configure:11652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11652ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11653if test -z "$ac_err"; then
11654 rm -rf conftest*
11655 eval "ac_cv_header_$ac_safe=yes"
11656else
11657 echo "$ac_err" >&5
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -rf conftest*
11661 eval "ac_cv_header_$ac_safe=no"
11662fi
11663rm -f conftest*
11664fi
11665if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11666 echo "$ac_t""yes" 1>&6
11667 :
11668else
11669 echo "$ac_t""no" 1>&6
11670
11671 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11672
11673fi
11674
11675
11676 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11677echo "configure:11678: checking if w32api has good enough MSIE support" >&5
11678if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11680else
11681
11682 cat > conftest.$ac_ext <<EOF
11683#line 11684 "configure"
11684#include "confdefs.h"
11685#include <w32api.h>
11686int main() {
11687
11688 #define wxCHECK_W32API_VERSION( major, minor ) \
11689 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11690 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11691 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11692
11693 #if !wxCHECK_W32API_VERSION(1,1)
11694 #error You need w32api 1.1 or newer
11695 #endif
11696
11697; return 0; }
11698EOF
11699if { (eval echo configure:11700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11700 rm -rf conftest*
11701
11702 wx_cv_w32api_win32_ie=yes
11703
11704else
11705 echo "configure: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11707 rm -rf conftest*
11708
11709 wx_cv_w32api_win32_ie=no
11710
11711fi
11712rm -f conftest*
11713
11714fi
11715
11716echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11717 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11718 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11719 fi
11720
11721 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11722
11723 case "${host}" in
11724 *-*-cygwin* )
11725 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11726 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11727 esac
11728
11729 if test "$wxUSE_ODBC" = "yes" ; then
11730 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11731 fi
11732
11733 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11734 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11735fi
11736
11737if test "$wxUSE_GUI" = "yes"; then
11738 USE_GUI=1
11739
11740 GUI_TK_LIBRARY=
11741
11742 WXGTK12=
11743 WXGTK127=
11744 WXGTK20=
11745
11746 if test "$wxUSE_MSW" = 1 ; then
11747 TOOLKIT=MSW
11748 GUIDIST=MSW_DIST
11749
11750 case "${host}" in
11751 *-*-mingw32* )
11752 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11753 esac
11754 fi
11755
11756 if test "$wxUSE_GTK" = 1; then
11757 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11758echo "configure:11759: checking for GTK+ version" >&5
11759
11760 gtk_version_cached=1
11761 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11762 echo $ac_n "(cached) $ac_c" 1>&6
11763else
11764
11765 gtk_version_cached=0
11766 echo "$ac_t""" 1>&6
11767
11768 GTK_MODULES=
11769 if test "$wxUSE_THREADS" = "yes"; then
11770 GTK_MODULES=gthread
11771 fi
11772
11773 wx_cv_lib_gtk=
11774 if test "x$wxUSE_GTK2" = "xyes"; then
11775 # Check whether --enable-gtktest or --disable-gtktest was given.
11776if test "${enable_gtktest+set}" = set; then
11777 enableval="$enable_gtktest"
11778 :
11779else
11780 enable_gtktest=yes
11781fi
11782
11783
11784 pkg_config_args=gtk+-2.0
11785 for module in . $GTK_MODULES
11786 do
11787 case "$module" in
11788 gthread)
11789 pkg_config_args="$pkg_config_args gthread-2.0"
11790 ;;
11791 esac
11792 done
11793
11794 no_gtk=""
11795
11796 # Extract the first word of "pkg-config", so it can be a program name with args.
11797set dummy pkg-config; ac_word=$2
11798echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11799echo "configure:11800: checking for $ac_word" >&5
11800if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11801 echo $ac_n "(cached) $ac_c" 1>&6
11802else
11803 case "$PKG_CONFIG" in
11804 /*)
11805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11806 ;;
11807 ?:/*)
11808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11809 ;;
11810 *)
11811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11812 ac_dummy="$PATH"
11813 for ac_dir in $ac_dummy; do
11814 test -z "$ac_dir" && ac_dir=.
11815 if test -f $ac_dir/$ac_word; then
11816 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11817 break
11818 fi
11819 done
11820 IFS="$ac_save_ifs"
11821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11822 ;;
11823esac
11824fi
11825PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11826if test -n "$PKG_CONFIG"; then
11827 echo "$ac_t""$PKG_CONFIG" 1>&6
11828else
11829 echo "$ac_t""no" 1>&6
11830fi
11831
11832
11833 if test x$PKG_CONFIG != xno ; then
11834 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11835 :
11836 else
11837 echo *** pkg-config too old; version 0.7 or better required.
11838 no_gtk=yes
11839 PKG_CONFIG=no
11840 fi
11841 else
11842 no_gtk=yes
11843 fi
11844
11845 min_gtk_version=2.0.0
11846 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11847echo "configure:11848: checking for GTK+ - version >= $min_gtk_version" >&5
11848
11849 if test x$PKG_CONFIG != xno ; then
11850 ## don't try to run the test against uninstalled libtool libs
11851 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11852 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11853 enable_gtktest=no
11854 fi
11855
11856 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11857 :
11858 else
11859 no_gtk=yes
11860 fi
11861 fi
11862
11863 if test x"$no_gtk" = x ; then
11864 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11865 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11866 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11868 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11869 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11870 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11871 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11872 if test "x$enable_gtktest" = "xyes" ; then
11873 ac_save_CFLAGS="$CFLAGS"
11874 ac_save_LIBS="$LIBS"
11875 CFLAGS="$CFLAGS $GTK_CFLAGS"
11876 LIBS="$GTK_LIBS $LIBS"
11877 rm -f conf.gtktest
11878 if test "$cross_compiling" = yes; then
11879 echo $ac_n "cross compiling; assumed OK... $ac_c"
11880else
11881 cat > conftest.$ac_ext <<EOF
11882#line 11883 "configure"
11883#include "confdefs.h"
11884
11885#include <gtk/gtk.h>
11886#include <stdio.h>
11887#include <stdlib.h>
11888
11889int
11890main ()
11891{
11892 int major, minor, micro;
11893 char *tmp_version;
11894
11895 system ("touch conf.gtktest");
11896
11897 /* HP/UX 9 (%@#!) writes to sscanf strings */
11898 tmp_version = g_strdup("$min_gtk_version");
11899 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11900 printf("%s, bad version string\n", "$min_gtk_version");
11901 exit(1);
11902 }
11903
11904 if ((gtk_major_version != $gtk_config_major_version) ||
11905 (gtk_minor_version != $gtk_config_minor_version) ||
11906 (gtk_micro_version != $gtk_config_micro_version))
11907 {
11908 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11909 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11910 gtk_major_version, gtk_minor_version, gtk_micro_version);
11911 printf ("*** was found! If pkg-config was correct, then it is best\n");
11912 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11913 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11914 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11915 printf("*** required on your system.\n");
11916 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11917 printf("*** to point to the correct configuration files\n");
11918 }
11919 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11920 (gtk_minor_version != GTK_MINOR_VERSION) ||
11921 (gtk_micro_version != GTK_MICRO_VERSION))
11922 {
11923 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11924 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11925 printf("*** library (version %d.%d.%d)\n",
11926 gtk_major_version, gtk_minor_version, gtk_micro_version);
11927 }
11928 else
11929 {
11930 if ((gtk_major_version > major) ||
11931 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11932 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11933 {
11934 return 0;
11935 }
11936 else
11937 {
11938 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11939 gtk_major_version, gtk_minor_version, gtk_micro_version);
11940 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11941 major, minor, micro);
11942 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11943 printf("***\n");
11944 printf("*** If you have already installed a sufficiently new version, this error\n");
11945 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11946 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11947 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11948 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11949 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11950 printf("*** so that the correct libraries are found at run-time))\n");
11951 }
11952 }
11953 return 1;
11954}
11955
11956EOF
11957if { (eval echo configure:11958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11958then
11959 :
11960else
11961 echo "configure: failed program was:" >&5
11962 cat conftest.$ac_ext >&5
11963 rm -fr conftest*
11964 no_gtk=yes
11965fi
11966rm -fr conftest*
11967fi
11968
11969 CFLAGS="$ac_save_CFLAGS"
11970 LIBS="$ac_save_LIBS"
11971 fi
11972 fi
11973 if test "x$no_gtk" = x ; then
11974 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11975 wx_cv_lib_gtk=2.0
11976 else
11977 echo "$ac_t""no" 1>&6
11978 if test "$PKG_CONFIG" = "no" ; then
11979 echo "*** A new enough version of pkg-config was not found."
11980 echo "*** See http://pkgconfig.sourceforge.net"
11981 else
11982 if test -f conf.gtktest ; then
11983 :
11984 else
11985 echo "*** Could not run GTK+ test program, checking why..."
11986 ac_save_CFLAGS="$CFLAGS"
11987 ac_save_LIBS="$LIBS"
11988 CFLAGS="$CFLAGS $GTK_CFLAGS"
11989 LIBS="$LIBS $GTK_LIBS"
11990 cat > conftest.$ac_ext <<EOF
11991#line 11992 "configure"
11992#include "confdefs.h"
11993
11994#include <gtk/gtk.h>
11995#include <stdio.h>
11996
11997int main() {
11998 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11999; return 0; }
12000EOF
12001if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12002 rm -rf conftest*
12003 echo "*** The test program compiled, but did not run. This usually means"
12004 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12005 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12006 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12007 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12008 echo "*** is required on your system"
12009 echo "***"
12010 echo "*** If you have an old version installed, it is best to remove it, although"
12011 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12012else
12013 echo "configure: failed program was:" >&5
12014 cat conftest.$ac_ext >&5
12015 rm -rf conftest*
12016 echo "*** The test program failed to compile or link. See the file config.log for the"
12017 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12018fi
12019rm -f conftest*
12020 CFLAGS="$ac_save_CFLAGS"
12021 LIBS="$ac_save_LIBS"
12022 fi
12023 fi
12024 GTK_CFLAGS=""
12025 GTK_LIBS=""
12026 :
12027 fi
12028
12029
12030 rm -f conf.gtktest
12031
12032 fi
12033
12034 if test -z "$wx_cv_lib_gtk"; then
12035 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12036if test "${with_gtk_prefix+set}" = set; then
12037 withval="$with_gtk_prefix"
12038 gtk_config_prefix="$withval"
12039else
12040 gtk_config_prefix=""
12041fi
12042
12043# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12044if test "${with_gtk_exec_prefix+set}" = set; then
12045 withval="$with_gtk_exec_prefix"
12046 gtk_config_exec_prefix="$withval"
12047else
12048 gtk_config_exec_prefix=""
12049fi
12050
12051# Check whether --enable-gtktest or --disable-gtktest was given.
12052if test "${enable_gtktest+set}" = set; then
12053 enableval="$enable_gtktest"
12054 :
12055else
12056 enable_gtktest=yes
12057fi
12058
12059
12060 for module in . $GTK_MODULES
12061 do
12062 case "$module" in
12063 gthread)
12064 gtk_config_args="$gtk_config_args gthread"
12065 ;;
12066 esac
12067 done
12068
12069 if test x$gtk_config_exec_prefix != x ; then
12070 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12071 if test x${GTK_CONFIG+set} != xset ; then
12072 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12073 fi
12074 fi
12075 if test x$gtk_config_prefix != x ; then
12076 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12077 if test x${GTK_CONFIG+set} != xset ; then
12078 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12079 fi
12080 fi
12081
12082 # Extract the first word of "gtk-config", so it can be a program name with args.
12083set dummy gtk-config; ac_word=$2
12084echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12085echo "configure:12086: checking for $ac_word" >&5
12086if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12087 echo $ac_n "(cached) $ac_c" 1>&6
12088else
12089 case "$GTK_CONFIG" in
12090 /*)
12091 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12092 ;;
12093 ?:/*)
12094 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12095 ;;
12096 *)
12097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12098 ac_dummy="$PATH"
12099 for ac_dir in $ac_dummy; do
12100 test -z "$ac_dir" && ac_dir=.
12101 if test -f $ac_dir/$ac_word; then
12102 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12103 break
12104 fi
12105 done
12106 IFS="$ac_save_ifs"
12107 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12108 ;;
12109esac
12110fi
12111GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12112if test -n "$GTK_CONFIG"; then
12113 echo "$ac_t""$GTK_CONFIG" 1>&6
12114else
12115 echo "$ac_t""no" 1>&6
12116fi
12117
12118 min_gtk_version=1.2.7
12119 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12120echo "configure:12121: checking for GTK - version >= $min_gtk_version" >&5
12121 no_gtk=""
12122 if test "$GTK_CONFIG" = "no" ; then
12123 no_gtk=yes
12124 else
12125 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12126 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12127 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12128 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12129 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12130 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12131 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12132 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12133 if test "x$enable_gtktest" = "xyes" ; then
12134 ac_save_CFLAGS="$CFLAGS"
12135 ac_save_LIBS="$LIBS"
12136 CFLAGS="$CFLAGS $GTK_CFLAGS"
12137 LIBS="$GTK_LIBS $LIBS"
12138 rm -f conf.gtktest
12139 if test "$cross_compiling" = yes; then
12140 echo $ac_n "cross compiling; assumed OK... $ac_c"
12141else
12142 cat > conftest.$ac_ext <<EOF
12143#line 12144 "configure"
12144#include "confdefs.h"
12145
12146#include <gtk/gtk.h>
12147#include <stdio.h>
12148#include <stdlib.h>
12149
12150int
12151main ()
12152{
12153 int major, minor, micro;
12154 char *tmp_version;
12155
12156 system ("touch conf.gtktest");
12157
12158 /* HP/UX 9 (%@#!) writes to sscanf strings */
12159 tmp_version = g_strdup("$min_gtk_version");
12160 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12161 printf("%s, bad version string\n", "$min_gtk_version");
12162 exit(1);
12163 }
12164
12165 if ((gtk_major_version != $gtk_config_major_version) ||
12166 (gtk_minor_version != $gtk_config_minor_version) ||
12167 (gtk_micro_version != $gtk_config_micro_version))
12168 {
12169 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12170 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12171 gtk_major_version, gtk_minor_version, gtk_micro_version);
12172 printf ("*** was found! If gtk-config was correct, then it is best\n");
12173 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12174 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12175 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12176 printf("*** required on your system.\n");
12177 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12178 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12179 printf("*** before re-running configure\n");
12180 }
12181#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12182 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12183 (gtk_minor_version != GTK_MINOR_VERSION) ||
12184 (gtk_micro_version != GTK_MICRO_VERSION))
12185 {
12186 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12187 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12188 printf("*** library (version %d.%d.%d)\n",
12189 gtk_major_version, gtk_minor_version, gtk_micro_version);
12190 }
12191#endif /* defined (GTK_MAJOR_VERSION) ... */
12192 else
12193 {
12194 if ((gtk_major_version > major) ||
12195 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12196 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12197 {
12198 return 0;
12199 }
12200 else
12201 {
12202 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12203 gtk_major_version, gtk_minor_version, gtk_micro_version);
12204 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12205 major, minor, micro);
12206 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12207 printf("***\n");
12208 printf("*** If you have already installed a sufficiently new version, this error\n");
12209 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12210 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12211 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12212 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12213 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12214 printf("*** so that the correct libraries are found at run-time))\n");
12215 }
12216 }
12217 return 1;
12218}
12219
12220EOF
12221if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12222then
12223 :
12224else
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 rm -fr conftest*
12228 no_gtk=yes
12229fi
12230rm -fr conftest*
12231fi
12232
12233 CFLAGS="$ac_save_CFLAGS"
12234 LIBS="$ac_save_LIBS"
12235 fi
12236 fi
12237 if test "x$no_gtk" = x ; then
12238 echo "$ac_t""yes" 1>&6
12239 wx_cv_lib_gtk=1.2.7
12240 else
12241 echo "$ac_t""no" 1>&6
12242 if test "$GTK_CONFIG" = "no" ; then
12243 echo "*** The gtk-config script installed by GTK could not be found"
12244 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12245 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12246 echo "*** full path to gtk-config."
12247 else
12248 if test -f conf.gtktest ; then
12249 :
12250 else
12251 echo "*** Could not run GTK test program, checking why..."
12252 CFLAGS="$CFLAGS $GTK_CFLAGS"
12253 LIBS="$LIBS $GTK_LIBS"
12254 cat > conftest.$ac_ext <<EOF
12255#line 12256 "configure"
12256#include "confdefs.h"
12257
12258#include <gtk/gtk.h>
12259#include <stdio.h>
12260
12261int main() {
12262 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12263; return 0; }
12264EOF
12265if { (eval echo configure:12266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12266 rm -rf conftest*
12267 echo "*** The test program compiled, but did not run. This usually means"
12268 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12269 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12270 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12271 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12272 echo "*** is required on your system"
12273 echo "***"
12274 echo "*** If you have an old version installed, it is best to remove it, although"
12275 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12276 echo "***"
12277 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12278 echo "*** came with the system with the command"
12279 echo "***"
12280 echo "*** rpm --erase --nodeps gtk gtk-devel"
12281else
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 rm -rf conftest*
12285 echo "*** The test program failed to compile or link. See the file config.log for the"
12286 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12287 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12288 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12289fi
12290rm -f conftest*
12291 CFLAGS="$ac_save_CFLAGS"
12292 LIBS="$ac_save_LIBS"
12293 fi
12294 fi
12295 GTK_CFLAGS=""
12296 GTK_LIBS=""
12297 :
12298 fi
12299
12300
12301 rm -f conf.gtktest
12302
12303 fi
12304
12305 if test -z "$wx_cv_lib_gtk"; then
12306 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12307if test "${with_gtk_prefix+set}" = set; then
12308 withval="$with_gtk_prefix"
12309 gtk_config_prefix="$withval"
12310else
12311 gtk_config_prefix=""
12312fi
12313
12314# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12315if test "${with_gtk_exec_prefix+set}" = set; then
12316 withval="$with_gtk_exec_prefix"
12317 gtk_config_exec_prefix="$withval"
12318else
12319 gtk_config_exec_prefix=""
12320fi
12321
12322# Check whether --enable-gtktest or --disable-gtktest was given.
12323if test "${enable_gtktest+set}" = set; then
12324 enableval="$enable_gtktest"
12325 :
12326else
12327 enable_gtktest=yes
12328fi
12329
12330
12331 for module in . $GTK_MODULES
12332 do
12333 case "$module" in
12334 gthread)
12335 gtk_config_args="$gtk_config_args gthread"
12336 ;;
12337 esac
12338 done
12339
12340 if test x$gtk_config_exec_prefix != x ; then
12341 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12342 if test x${GTK_CONFIG+set} != xset ; then
12343 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12344 fi
12345 fi
12346 if test x$gtk_config_prefix != x ; then
12347 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12348 if test x${GTK_CONFIG+set} != xset ; then
12349 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12350 fi
12351 fi
12352
12353 # Extract the first word of "gtk-config", so it can be a program name with args.
12354set dummy gtk-config; ac_word=$2
12355echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12356echo "configure:12357: checking for $ac_word" >&5
12357if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12358 echo $ac_n "(cached) $ac_c" 1>&6
12359else
12360 case "$GTK_CONFIG" in
12361 /*)
12362 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12363 ;;
12364 ?:/*)
12365 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12366 ;;
12367 *)
12368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12369 ac_dummy="$PATH"
12370 for ac_dir in $ac_dummy; do
12371 test -z "$ac_dir" && ac_dir=.
12372 if test -f $ac_dir/$ac_word; then
12373 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12374 break
12375 fi
12376 done
12377 IFS="$ac_save_ifs"
12378 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12379 ;;
12380esac
12381fi
12382GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12383if test -n "$GTK_CONFIG"; then
12384 echo "$ac_t""$GTK_CONFIG" 1>&6
12385else
12386 echo "$ac_t""no" 1>&6
12387fi
12388
12389 min_gtk_version=1.2.3
12390 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12391echo "configure:12392: checking for GTK - version >= $min_gtk_version" >&5
12392 no_gtk=""
12393 if test "$GTK_CONFIG" = "no" ; then
12394 no_gtk=yes
12395 else
12396 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12397 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12398 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12400 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12401 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12402 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12403 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12404 if test "x$enable_gtktest" = "xyes" ; then
12405 ac_save_CFLAGS="$CFLAGS"
12406 ac_save_LIBS="$LIBS"
12407 CFLAGS="$CFLAGS $GTK_CFLAGS"
12408 LIBS="$GTK_LIBS $LIBS"
12409 rm -f conf.gtktest
12410 if test "$cross_compiling" = yes; then
12411 echo $ac_n "cross compiling; assumed OK... $ac_c"
12412else
12413 cat > conftest.$ac_ext <<EOF
12414#line 12415 "configure"
12415#include "confdefs.h"
12416
12417#include <gtk/gtk.h>
12418#include <stdio.h>
12419#include <stdlib.h>
12420
12421int
12422main ()
12423{
12424 int major, minor, micro;
12425 char *tmp_version;
12426
12427 system ("touch conf.gtktest");
12428
12429 /* HP/UX 9 (%@#!) writes to sscanf strings */
12430 tmp_version = g_strdup("$min_gtk_version");
12431 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12432 printf("%s, bad version string\n", "$min_gtk_version");
12433 exit(1);
12434 }
12435
12436 if ((gtk_major_version != $gtk_config_major_version) ||
12437 (gtk_minor_version != $gtk_config_minor_version) ||
12438 (gtk_micro_version != $gtk_config_micro_version))
12439 {
12440 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12441 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12442 gtk_major_version, gtk_minor_version, gtk_micro_version);
12443 printf ("*** was found! If gtk-config was correct, then it is best\n");
12444 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12445 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12446 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12447 printf("*** required on your system.\n");
12448 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12449 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12450 printf("*** before re-running configure\n");
12451 }
12452#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12453 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12454 (gtk_minor_version != GTK_MINOR_VERSION) ||
12455 (gtk_micro_version != GTK_MICRO_VERSION))
12456 {
12457 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12458 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12459 printf("*** library (version %d.%d.%d)\n",
12460 gtk_major_version, gtk_minor_version, gtk_micro_version);
12461 }
12462#endif /* defined (GTK_MAJOR_VERSION) ... */
12463 else
12464 {
12465 if ((gtk_major_version > major) ||
12466 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12467 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12468 {
12469 return 0;
12470 }
12471 else
12472 {
12473 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12474 gtk_major_version, gtk_minor_version, gtk_micro_version);
12475 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12476 major, minor, micro);
12477 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12478 printf("***\n");
12479 printf("*** If you have already installed a sufficiently new version, this error\n");
12480 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12481 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12482 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12483 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12484 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12485 printf("*** so that the correct libraries are found at run-time))\n");
12486 }
12487 }
12488 return 1;
12489}
12490
12491EOF
12492if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12493then
12494 :
12495else
12496 echo "configure: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12498 rm -fr conftest*
12499 no_gtk=yes
12500fi
12501rm -fr conftest*
12502fi
12503
12504 CFLAGS="$ac_save_CFLAGS"
12505 LIBS="$ac_save_LIBS"
12506 fi
12507 fi
12508 if test "x$no_gtk" = x ; then
12509 echo "$ac_t""yes" 1>&6
12510 wx_cv_lib_gtk=1.2.3
12511 else
12512 echo "$ac_t""no" 1>&6
12513 if test "$GTK_CONFIG" = "no" ; then
12514 echo "*** The gtk-config script installed by GTK could not be found"
12515 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12516 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12517 echo "*** full path to gtk-config."
12518 else
12519 if test -f conf.gtktest ; then
12520 :
12521 else
12522 echo "*** Could not run GTK test program, checking why..."
12523 CFLAGS="$CFLAGS $GTK_CFLAGS"
12524 LIBS="$LIBS $GTK_LIBS"
12525 cat > conftest.$ac_ext <<EOF
12526#line 12527 "configure"
12527#include "confdefs.h"
12528
12529#include <gtk/gtk.h>
12530#include <stdio.h>
12531
12532int main() {
12533 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12534; return 0; }
12535EOF
12536if { (eval echo configure:12537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12537 rm -rf conftest*
12538 echo "*** The test program compiled, but did not run. This usually means"
12539 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12540 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12541 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12542 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12543 echo "*** is required on your system"
12544 echo "***"
12545 echo "*** If you have an old version installed, it is best to remove it, although"
12546 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12547 echo "***"
12548 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12549 echo "*** came with the system with the command"
12550 echo "***"
12551 echo "*** rpm --erase --nodeps gtk gtk-devel"
12552else
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12555 rm -rf conftest*
12556 echo "*** The test program failed to compile or link. See the file config.log for the"
12557 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12558 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12559 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12560fi
12561rm -f conftest*
12562 CFLAGS="$ac_save_CFLAGS"
12563 LIBS="$ac_save_LIBS"
12564 fi
12565 fi
12566 GTK_CFLAGS=""
12567 GTK_LIBS=""
12568 :
12569 fi
12570
12571
12572 rm -f conf.gtktest
12573
12574 fi
12575
12576 if test -z "$wx_cv_lib_gtk"; then
12577 wx_cv_lib_gtk=none
12578 else
12579 wx_cv_cflags_gtk=$GTK_CFLAGS
12580 wx_cv_libs_gtk=$GTK_LIBS
12581 fi
12582
12583
12584fi
12585
12586
12587 if test "$gtk_version_cached" = 1; then
12588 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12589 fi
12590
12591 case "$wx_cv_lib_gtk" in
12592 2.0) WXGTK20=1
12593 ;;
12594 1.2.7) WXGTK127=1
12595 WXGTK12=1
12596 ;;
12597 1.2.3) WXGTK12=1
12598 ;;
12599 *) { echo "configure: error:
12600Please check that gtk-config is in path, the directory
12601where GTK+ libraries are installed (returned by
12602'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12603equivalent variable and GTK+ is version 1.2.3 or above.
12604 " 1>&2; exit 1; }
12605 ;;
12606 esac
12607
12608 if test "$WXGTK20" = 1; then
12609 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12610
12611 succeeded=no
12612
12613 if test -z "$PKG_CONFIG"; then
12614 # Extract the first word of "pkg-config", so it can be a program name with args.
12615set dummy pkg-config; ac_word=$2
12616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12617echo "configure:12618: checking for $ac_word" >&5
12618if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12620else
12621 case "$PKG_CONFIG" in
12622 /*)
12623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12624 ;;
12625 ?:/*)
12626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12627 ;;
12628 *)
12629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12630 ac_dummy="$PATH"
12631 for ac_dir in $ac_dummy; do
12632 test -z "$ac_dir" && ac_dir=.
12633 if test -f $ac_dir/$ac_word; then
12634 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12635 break
12636 fi
12637 done
12638 IFS="$ac_save_ifs"
12639 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12640 ;;
12641esac
12642fi
12643PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12644if test -n "$PKG_CONFIG"; then
12645 echo "$ac_t""$PKG_CONFIG" 1>&6
12646else
12647 echo "$ac_t""no" 1>&6
12648fi
12649
12650 fi
12651
12652 if test "$PKG_CONFIG" = "no" ; then
12653 echo "*** The pkg-config script could not be found. Make sure it is"
12654 echo "*** in your path, or set the PKG_CONFIG environment variable"
12655 echo "*** to the full path to pkg-config."
12656 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12657 else
12658 PKG_CONFIG_MIN_VERSION=0.9.0
12659 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12660 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
12661echo "configure:12662: checking for pangoft2" >&5
12662
12663 if $PKG_CONFIG --exists "pangoft2" ; then
12664 echo "$ac_t""yes" 1>&6
12665 succeeded=yes
12666
12667 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
12668echo "configure:12669: checking PANGOFT2_CFLAGS" >&5
12669 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12670 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
12671
12672 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
12673echo "configure:12674: checking PANGOFT2_LIBS" >&5
12674 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12675 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
12676 else
12677 PANGOFT2_CFLAGS=""
12678 PANGOFT2_LIBS=""
12679 ## If we have a custom action on failure, don't print errors, but
12680 ## do set a variable so people can do so.
12681 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12682
12683 fi
12684
12685
12686
12687 else
12688 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12689 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12690 fi
12691 fi
12692
12693 if test $succeeded = yes; then
12694
12695 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12696 LIBS="$LIBS $PANGOFT2_LIBS"
12697
12698 else
12699
12700 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
12701 wxUSE_PRINTING_ARCHITECTURE="no"
12702
12703
12704 fi
12705
12706 fi
12707 fi
12708
12709 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12710 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12711
12712 AFMINSTALL=afminstall
12713 TOOLKIT=GTK
12714 GUIDIST=GTK_DIST
12715
12716 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12717echo "configure:12718: checking for gdk_im_open in -lgdk" >&5
12718ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12719if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12720 echo $ac_n "(cached) $ac_c" 1>&6
12721else
12722 ac_save_LIBS="$LIBS"
12723LIBS="-lgdk $LIBS"
12724cat > conftest.$ac_ext <<EOF
12725#line 12726 "configure"
12726#include "confdefs.h"
12727/* Override any gcc2 internal prototype to avoid an error. */
12728/* We use char because int might match the return type of a gcc2
12729 builtin and then its argument prototype would still apply. */
12730char gdk_im_open();
12731
12732int main() {
12733gdk_im_open()
12734; return 0; }
12735EOF
12736if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12737 rm -rf conftest*
12738 eval "ac_cv_lib_$ac_lib_var=yes"
12739else
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -rf conftest*
12743 eval "ac_cv_lib_$ac_lib_var=no"
12744fi
12745rm -f conftest*
12746LIBS="$ac_save_LIBS"
12747
12748fi
12749if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12750 echo "$ac_t""yes" 1>&6
12751 cat >> confdefs.h <<\EOF
12752#define HAVE_XIM 1
12753EOF
12754
12755else
12756 echo "$ac_t""no" 1>&6
12757fi
12758
12759 fi
12760
12761 if test "$wxUSE_MGL" = 1; then
12762 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12763echo "configure:12764: checking for SciTech MGL library" >&5
12764 if test "x$MGL_ROOT" = x ; then
12765 echo "$ac_t""not found" 1>&6
12766 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12767 else
12768 echo "$ac_t""$MGL_ROOT" 1>&6
12769 fi
12770
12771 case "${host}" in
12772 *-*-linux* )
12773 mgl_os=linux/gcc/glibc
12774 ;;
12775 *-pc-msdosdjgpp )
12776 mgl_os=dos32/dj2
12777 ;;
12778 *)
12779 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12780 esac
12781
12782 mgl_lib_type=""
12783
12784 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12785 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12786 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12787 mgl_lib_type=debug
12788 fi
12789 fi
12790 if test "x$mgl_lib_type" = x ; then
12791 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12792 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12793 mgl_lib_type=release
12794 else
12795 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12796 fi
12797 fi
12798
12799 wxUSE_UNIVERSAL="yes"
12800
12801 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12802 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12803
12804 AFMINSTALL=afminstall
12805 TOOLKIT=MGL
12806 GUIDIST=MGL_DIST
12807 fi
12808
12809 if test "$wxUSE_MICROWIN" = 1; then
12810 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12811echo "configure:12812: checking for MicroWindows" >&5
12812 if test "x$MICROWINDOWS" = x ; then
12813 echo "$ac_t""not found" 1>&6
12814 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12815 else
12816 echo "$ac_t""$MICROWINDOWS" 1>&6
12817 fi
12818
12819 if test -f $MICROWINDOWS/lib/libmwin.a; then
12820 echo "$ac_t""MicroWindows' libraries found." 1>&6
12821 else
12822 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12823 fi
12824
12825 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12826 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12827
12828 wxUSE_UNIVERSAL="yes"
12829
12830 AFMINSTALL=afminstall
12831 TOOLKIT=MICROWIN
12832 GUIDIST=MICROWIN_DIST
12833
12834 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12835 fi
12836
12837 if test "$wxUSE_X11" = 1; then
12838 # If we find X, set shell vars x_includes and x_libraries to the
12839# paths, otherwise set no_x=yes.
12840# Uses ac_ vars as temps to allow command line to override cache and checks.
12841# --without-x overrides everything else, but does not touch the cache.
12842echo $ac_n "checking for X""... $ac_c" 1>&6
12843echo "configure:12844: checking for X" >&5
12844
12845# Check whether --with-x or --without-x was given.
12846if test "${with_x+set}" = set; then
12847 withval="$with_x"
12848 :
12849fi
12850
12851# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12852if test "x$with_x" = xno; then
12853 # The user explicitly disabled X.
12854 have_x=disabled
12855else
12856 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12857 # Both variables are already set.
12858 have_x=yes
12859 else
12860if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862else
12863 # One or both of the vars are not set, and there is no cached value.
12864ac_x_includes=NO ac_x_libraries=NO
12865rm -fr conftestdir
12866if mkdir conftestdir; then
12867 cd conftestdir
12868 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12869 cat > Imakefile <<'EOF'
12870acfindx:
12871 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12872EOF
12873 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12875 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12876 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12877 for ac_extension in a so sl; do
12878 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12879 test -f $ac_im_libdir/libX11.$ac_extension; then
12880 ac_im_usrlibdir=$ac_im_libdir; break
12881 fi
12882 done
12883 # Screen out bogus values from the imake configuration. They are
12884 # bogus both because they are the default anyway, and because
12885 # using them would break gcc on systems where it needs fixed includes.
12886 case "$ac_im_incroot" in
12887 /usr/include) ;;
12888 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12889 esac
12890 case "$ac_im_usrlibdir" in
12891 /usr/lib | /lib) ;;
12892 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12893 esac
12894 fi
12895 cd ..
12896 rm -fr conftestdir
12897fi
12898
12899if test "$ac_x_includes" = NO; then
12900 # Guess where to find include files, by looking for this one X11 .h file.
12901 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12902
12903 # First, try using that file with no special directory specified.
12904cat > conftest.$ac_ext <<EOF
12905#line 12906 "configure"
12906#include "confdefs.h"
12907#include <$x_direct_test_include>
12908EOF
12909ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12910{ (eval echo configure:12911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12911ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12912if test -z "$ac_err"; then
12913 rm -rf conftest*
12914 # We can compile using X headers with no special include directory.
12915ac_x_includes=
12916else
12917 echo "$ac_err" >&5
12918 echo "configure: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12920 rm -rf conftest*
12921 # Look for the header file in a standard set of common directories.
12922# Check X11 before X11Rn because it is often a symlink to the current release.
12923 for ac_dir in \
12924 /usr/X11/include \
12925 /usr/X11R6/include \
12926 /usr/X11R5/include \
12927 /usr/X11R4/include \
12928 \
12929 /usr/include/X11 \
12930 /usr/include/X11R6 \
12931 /usr/include/X11R5 \
12932 /usr/include/X11R4 \
12933 \
12934 /usr/local/X11/include \
12935 /usr/local/X11R6/include \
12936 /usr/local/X11R5/include \
12937 /usr/local/X11R4/include \
12938 \
12939 /usr/local/include/X11 \
12940 /usr/local/include/X11R6 \
12941 /usr/local/include/X11R5 \
12942 /usr/local/include/X11R4 \
12943 \
12944 /usr/X386/include \
12945 /usr/x386/include \
12946 /usr/XFree86/include/X11 \
12947 \
12948 /usr/include \
12949 /usr/local/include \
12950 /usr/unsupported/include \
12951 /usr/athena/include \
12952 /usr/local/x11r5/include \
12953 /usr/lpp/Xamples/include \
12954 \
12955 /usr/openwin/include \
12956 /usr/openwin/share/include \
12957 ; \
12958 do
12959 if test -r "$ac_dir/$x_direct_test_include"; then
12960 ac_x_includes=$ac_dir
12961 break
12962 fi
12963 done
12964fi
12965rm -f conftest*
12966fi # $ac_x_includes = NO
12967
12968if test "$ac_x_libraries" = NO; then
12969 # Check for the libraries.
12970
12971 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12972 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12973
12974 # See if we find them without any special options.
12975 # Don't add to $LIBS permanently.
12976 ac_save_LIBS="$LIBS"
12977 LIBS="-l$x_direct_test_library $LIBS"
12978cat > conftest.$ac_ext <<EOF
12979#line 12980 "configure"
12980#include "confdefs.h"
12981
12982int main() {
12983${x_direct_test_function}()
12984; return 0; }
12985EOF
12986if { (eval echo configure:12987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12987 rm -rf conftest*
12988 LIBS="$ac_save_LIBS"
12989# We can link X programs with no special library path.
12990ac_x_libraries=
12991else
12992 echo "configure: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12994 rm -rf conftest*
12995 LIBS="$ac_save_LIBS"
12996# First see if replacing the include by lib works.
12997# Check X11 before X11Rn because it is often a symlink to the current release.
12998for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12999 /usr/X11/lib \
13000 /usr/X11R6/lib \
13001 /usr/X11R5/lib \
13002 /usr/X11R4/lib \
13003 \
13004 /usr/lib/X11 \
13005 /usr/lib/X11R6 \
13006 /usr/lib/X11R5 \
13007 /usr/lib/X11R4 \
13008 \
13009 /usr/local/X11/lib \
13010 /usr/local/X11R6/lib \
13011 /usr/local/X11R5/lib \
13012 /usr/local/X11R4/lib \
13013 \
13014 /usr/local/lib/X11 \
13015 /usr/local/lib/X11R6 \
13016 /usr/local/lib/X11R5 \
13017 /usr/local/lib/X11R4 \
13018 \
13019 /usr/X386/lib \
13020 /usr/x386/lib \
13021 /usr/XFree86/lib/X11 \
13022 \
13023 /usr/lib \
13024 /usr/local/lib \
13025 /usr/unsupported/lib \
13026 /usr/athena/lib \
13027 /usr/local/x11r5/lib \
13028 /usr/lpp/Xamples/lib \
13029 /lib/usr/lib/X11 \
13030 \
13031 /usr/openwin/lib \
13032 /usr/openwin/share/lib \
13033 ; \
13034do
13035 for ac_extension in a so sl; do
13036 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13037 ac_x_libraries=$ac_dir
13038 break 2
13039 fi
13040 done
13041done
13042fi
13043rm -f conftest*
13044fi # $ac_x_libraries = NO
13045
13046if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13047 # Didn't find X anywhere. Cache the known absence of X.
13048 ac_cv_have_x="have_x=no"
13049else
13050 # Record where we found X for the cache.
13051 ac_cv_have_x="have_x=yes \
13052 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13053fi
13054fi
13055 fi
13056 eval "$ac_cv_have_x"
13057fi # $with_x != no
13058
13059if test "$have_x" != yes; then
13060 echo "$ac_t""$have_x" 1>&6
13061 no_x=yes
13062else
13063 # If each of the values was on the command line, it overrides each guess.
13064 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13065 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13066 # Update the cache value to reflect the command line values.
13067 ac_cv_have_x="have_x=yes \
13068 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13069 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13070fi
13071
13072if test "$no_x" = yes; then
13073 # Not all programs may use this symbol, but it does not hurt to define it.
13074 cat >> confdefs.h <<\EOF
13075#define X_DISPLAY_MISSING 1
13076EOF
13077
13078 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13079else
13080 if test -n "$x_includes"; then
13081 X_CFLAGS="$X_CFLAGS -I$x_includes"
13082 fi
13083
13084 # It would also be nice to do this for all -L options, not just this one.
13085 if test -n "$x_libraries"; then
13086 X_LIBS="$X_LIBS -L$x_libraries"
13087 # For Solaris; some versions of Sun CC require a space after -R and
13088 # others require no space. Words are not sufficient . . . .
13089 case "`(uname -sr) 2>/dev/null`" in
13090 "SunOS 5"*)
13091 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13092echo "configure:13093: checking whether -R must be followed by a space" >&5
13093 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13094 cat > conftest.$ac_ext <<EOF
13095#line 13096 "configure"
13096#include "confdefs.h"
13097
13098int main() {
13099
13100; return 0; }
13101EOF
13102if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13103 rm -rf conftest*
13104 ac_R_nospace=yes
13105else
13106 echo "configure: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13108 rm -rf conftest*
13109 ac_R_nospace=no
13110fi
13111rm -f conftest*
13112 if test $ac_R_nospace = yes; then
13113 echo "$ac_t""no" 1>&6
13114 X_LIBS="$X_LIBS -R$x_libraries"
13115 else
13116 LIBS="$ac_xsave_LIBS -R $x_libraries"
13117 cat > conftest.$ac_ext <<EOF
13118#line 13119 "configure"
13119#include "confdefs.h"
13120
13121int main() {
13122
13123; return 0; }
13124EOF
13125if { (eval echo configure:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13126 rm -rf conftest*
13127 ac_R_space=yes
13128else
13129 echo "configure: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 rm -rf conftest*
13132 ac_R_space=no
13133fi
13134rm -f conftest*
13135 if test $ac_R_space = yes; then
13136 echo "$ac_t""yes" 1>&6
13137 X_LIBS="$X_LIBS -R $x_libraries"
13138 else
13139 echo "$ac_t""neither works" 1>&6
13140 fi
13141 fi
13142 LIBS="$ac_xsave_LIBS"
13143 esac
13144 fi
13145
13146 # Check for system-dependent libraries X programs must link with.
13147 # Do this before checking for the system-independent R6 libraries
13148 # (-lICE), since we may need -lsocket or whatever for X linking.
13149
13150 if test "$ISC" = yes; then
13151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13152 else
13153 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13154 # libraries were built with DECnet support. And karl@cs.umb.edu says
13155 # the Alpha needs dnet_stub (dnet does not exist).
13156 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13157echo "configure:13158: checking for dnet_ntoa in -ldnet" >&5
13158ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13160 echo $ac_n "(cached) $ac_c" 1>&6
13161else
13162 ac_save_LIBS="$LIBS"
13163LIBS="-ldnet $LIBS"
13164cat > conftest.$ac_ext <<EOF
13165#line 13166 "configure"
13166#include "confdefs.h"
13167/* Override any gcc2 internal prototype to avoid an error. */
13168/* We use char because int might match the return type of a gcc2
13169 builtin and then its argument prototype would still apply. */
13170char dnet_ntoa();
13171
13172int main() {
13173dnet_ntoa()
13174; return 0; }
13175EOF
13176if { (eval echo configure:13177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177 rm -rf conftest*
13178 eval "ac_cv_lib_$ac_lib_var=yes"
13179else
13180 echo "configure: failed program was:" >&5
13181 cat conftest.$ac_ext >&5
13182 rm -rf conftest*
13183 eval "ac_cv_lib_$ac_lib_var=no"
13184fi
13185rm -f conftest*
13186LIBS="$ac_save_LIBS"
13187
13188fi
13189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13190 echo "$ac_t""yes" 1>&6
13191 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13192else
13193 echo "$ac_t""no" 1>&6
13194fi
13195
13196 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13197 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13198echo "configure:13199: checking for dnet_ntoa in -ldnet_stub" >&5
13199ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13200if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13201 echo $ac_n "(cached) $ac_c" 1>&6
13202else
13203 ac_save_LIBS="$LIBS"
13204LIBS="-ldnet_stub $LIBS"
13205cat > conftest.$ac_ext <<EOF
13206#line 13207 "configure"
13207#include "confdefs.h"
13208/* Override any gcc2 internal prototype to avoid an error. */
13209/* We use char because int might match the return type of a gcc2
13210 builtin and then its argument prototype would still apply. */
13211char dnet_ntoa();
13212
13213int main() {
13214dnet_ntoa()
13215; return 0; }
13216EOF
13217if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13218 rm -rf conftest*
13219 eval "ac_cv_lib_$ac_lib_var=yes"
13220else
13221 echo "configure: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 rm -rf conftest*
13224 eval "ac_cv_lib_$ac_lib_var=no"
13225fi
13226rm -f conftest*
13227LIBS="$ac_save_LIBS"
13228
13229fi
13230if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13231 echo "$ac_t""yes" 1>&6
13232 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13233else
13234 echo "$ac_t""no" 1>&6
13235fi
13236
13237 fi
13238
13239 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13240 # to get the SysV transport functions.
13241 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13242 # needs -lnsl.
13243 # The nsl library prevents programs from opening the X display
13244 # on Irix 5.2, according to dickey@clark.net.
13245 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13246echo "configure:13247: checking for gethostbyname" >&5
13247if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13248 echo $ac_n "(cached) $ac_c" 1>&6
13249else
13250 cat > conftest.$ac_ext <<EOF
13251#line 13252 "configure"
13252#include "confdefs.h"
13253/* System header to define __stub macros and hopefully few prototypes,
13254 which can conflict with char gethostbyname(); below. */
13255#include <assert.h>
13256/* Override any gcc2 internal prototype to avoid an error. */
13257/* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259char gethostbyname();
13260
13261int main() {
13262
13263/* The GNU C library defines this for functions which it implements
13264 to always fail with ENOSYS. Some functions are actually named
13265 something starting with __ and the normal name is an alias. */
13266#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13267choke me
13268#else
13269gethostbyname();
13270#endif
13271
13272; return 0; }
13273EOF
13274if { (eval echo configure:13275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13275 rm -rf conftest*
13276 eval "ac_cv_func_gethostbyname=yes"
13277else
13278 echo "configure: failed program was:" >&5
13279 cat conftest.$ac_ext >&5
13280 rm -rf conftest*
13281 eval "ac_cv_func_gethostbyname=no"
13282fi
13283rm -f conftest*
13284fi
13285
13286if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13287 echo "$ac_t""yes" 1>&6
13288 :
13289else
13290 echo "$ac_t""no" 1>&6
13291fi
13292
13293 if test $ac_cv_func_gethostbyname = no; then
13294 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13295echo "configure:13296: checking for gethostbyname in -lnsl" >&5
13296ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13297if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13298 echo $ac_n "(cached) $ac_c" 1>&6
13299else
13300 ac_save_LIBS="$LIBS"
13301LIBS="-lnsl $LIBS"
13302cat > conftest.$ac_ext <<EOF
13303#line 13304 "configure"
13304#include "confdefs.h"
13305/* Override any gcc2 internal prototype to avoid an error. */
13306/* We use char because int might match the return type of a gcc2
13307 builtin and then its argument prototype would still apply. */
13308char gethostbyname();
13309
13310int main() {
13311gethostbyname()
13312; return 0; }
13313EOF
13314if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13315 rm -rf conftest*
13316 eval "ac_cv_lib_$ac_lib_var=yes"
13317else
13318 echo "configure: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13320 rm -rf conftest*
13321 eval "ac_cv_lib_$ac_lib_var=no"
13322fi
13323rm -f conftest*
13324LIBS="$ac_save_LIBS"
13325
13326fi
13327if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13328 echo "$ac_t""yes" 1>&6
13329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13330else
13331 echo "$ac_t""no" 1>&6
13332fi
13333
13334 fi
13335
13336 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13337 # socket/setsockopt and other routines are undefined under SCO ODT
13338 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13339 # on later versions), says simon@lia.di.epfl.ch: it contains
13340 # gethostby* variants that don't use the nameserver (or something).
13341 # -lsocket must be given before -lnsl if both are needed.
13342 # We assume that if connect needs -lnsl, so does gethostbyname.
13343 echo $ac_n "checking for connect""... $ac_c" 1>&6
13344echo "configure:13345: checking for connect" >&5
13345if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
13347else
13348 cat > conftest.$ac_ext <<EOF
13349#line 13350 "configure"
13350#include "confdefs.h"
13351/* System header to define __stub macros and hopefully few prototypes,
13352 which can conflict with char connect(); below. */
13353#include <assert.h>
13354/* Override any gcc2 internal prototype to avoid an error. */
13355/* We use char because int might match the return type of a gcc2
13356 builtin and then its argument prototype would still apply. */
13357char connect();
13358
13359int main() {
13360
13361/* The GNU C library defines this for functions which it implements
13362 to always fail with ENOSYS. Some functions are actually named
13363 something starting with __ and the normal name is an alias. */
13364#if defined (__stub_connect) || defined (__stub___connect)
13365choke me
13366#else
13367connect();
13368#endif
13369
13370; return 0; }
13371EOF
13372if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13373 rm -rf conftest*
13374 eval "ac_cv_func_connect=yes"
13375else
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -rf conftest*
13379 eval "ac_cv_func_connect=no"
13380fi
13381rm -f conftest*
13382fi
13383
13384if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13385 echo "$ac_t""yes" 1>&6
13386 :
13387else
13388 echo "$ac_t""no" 1>&6
13389fi
13390
13391 if test $ac_cv_func_connect = no; then
13392 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13393echo "configure:13394: checking for connect in -lsocket" >&5
13394ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13396 echo $ac_n "(cached) $ac_c" 1>&6
13397else
13398 ac_save_LIBS="$LIBS"
13399LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13400cat > conftest.$ac_ext <<EOF
13401#line 13402 "configure"
13402#include "confdefs.h"
13403/* Override any gcc2 internal prototype to avoid an error. */
13404/* We use char because int might match the return type of a gcc2
13405 builtin and then its argument prototype would still apply. */
13406char connect();
13407
13408int main() {
13409connect()
13410; return 0; }
13411EOF
13412if { (eval echo configure:13413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13413 rm -rf conftest*
13414 eval "ac_cv_lib_$ac_lib_var=yes"
13415else
13416 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 rm -rf conftest*
13419 eval "ac_cv_lib_$ac_lib_var=no"
13420fi
13421rm -f conftest*
13422LIBS="$ac_save_LIBS"
13423
13424fi
13425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13426 echo "$ac_t""yes" 1>&6
13427 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13428else
13429 echo "$ac_t""no" 1>&6
13430fi
13431
13432 fi
13433
13434 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13435 echo $ac_n "checking for remove""... $ac_c" 1>&6
13436echo "configure:13437: checking for remove" >&5
13437if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
13439else
13440 cat > conftest.$ac_ext <<EOF
13441#line 13442 "configure"
13442#include "confdefs.h"
13443/* System header to define __stub macros and hopefully few prototypes,
13444 which can conflict with char remove(); below. */
13445#include <assert.h>
13446/* Override any gcc2 internal prototype to avoid an error. */
13447/* We use char because int might match the return type of a gcc2
13448 builtin and then its argument prototype would still apply. */
13449char remove();
13450
13451int main() {
13452
13453/* The GNU C library defines this for functions which it implements
13454 to always fail with ENOSYS. Some functions are actually named
13455 something starting with __ and the normal name is an alias. */
13456#if defined (__stub_remove) || defined (__stub___remove)
13457choke me
13458#else
13459remove();
13460#endif
13461
13462; return 0; }
13463EOF
13464if { (eval echo configure:13465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13465 rm -rf conftest*
13466 eval "ac_cv_func_remove=yes"
13467else
13468 echo "configure: failed program was:" >&5
13469 cat conftest.$ac_ext >&5
13470 rm -rf conftest*
13471 eval "ac_cv_func_remove=no"
13472fi
13473rm -f conftest*
13474fi
13475
13476if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13477 echo "$ac_t""yes" 1>&6
13478 :
13479else
13480 echo "$ac_t""no" 1>&6
13481fi
13482
13483 if test $ac_cv_func_remove = no; then
13484 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13485echo "configure:13486: checking for remove in -lposix" >&5
13486ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13488 echo $ac_n "(cached) $ac_c" 1>&6
13489else
13490 ac_save_LIBS="$LIBS"
13491LIBS="-lposix $LIBS"
13492cat > conftest.$ac_ext <<EOF
13493#line 13494 "configure"
13494#include "confdefs.h"
13495/* Override any gcc2 internal prototype to avoid an error. */
13496/* We use char because int might match the return type of a gcc2
13497 builtin and then its argument prototype would still apply. */
13498char remove();
13499
13500int main() {
13501remove()
13502; return 0; }
13503EOF
13504if { (eval echo configure:13505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13505 rm -rf conftest*
13506 eval "ac_cv_lib_$ac_lib_var=yes"
13507else
13508 echo "configure: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13510 rm -rf conftest*
13511 eval "ac_cv_lib_$ac_lib_var=no"
13512fi
13513rm -f conftest*
13514LIBS="$ac_save_LIBS"
13515
13516fi
13517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13520else
13521 echo "$ac_t""no" 1>&6
13522fi
13523
13524 fi
13525
13526 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13527 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13528echo "configure:13529: checking for shmat" >&5
13529if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13530 echo $ac_n "(cached) $ac_c" 1>&6
13531else
13532 cat > conftest.$ac_ext <<EOF
13533#line 13534 "configure"
13534#include "confdefs.h"
13535/* System header to define __stub macros and hopefully few prototypes,
13536 which can conflict with char shmat(); below. */
13537#include <assert.h>
13538/* Override any gcc2 internal prototype to avoid an error. */
13539/* We use char because int might match the return type of a gcc2
13540 builtin and then its argument prototype would still apply. */
13541char shmat();
13542
13543int main() {
13544
13545/* The GNU C library defines this for functions which it implements
13546 to always fail with ENOSYS. Some functions are actually named
13547 something starting with __ and the normal name is an alias. */
13548#if defined (__stub_shmat) || defined (__stub___shmat)
13549choke me
13550#else
13551shmat();
13552#endif
13553
13554; return 0; }
13555EOF
13556if { (eval echo configure:13557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13557 rm -rf conftest*
13558 eval "ac_cv_func_shmat=yes"
13559else
13560 echo "configure: failed program was:" >&5
13561 cat conftest.$ac_ext >&5
13562 rm -rf conftest*
13563 eval "ac_cv_func_shmat=no"
13564fi
13565rm -f conftest*
13566fi
13567
13568if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13569 echo "$ac_t""yes" 1>&6
13570 :
13571else
13572 echo "$ac_t""no" 1>&6
13573fi
13574
13575 if test $ac_cv_func_shmat = no; then
13576 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13577echo "configure:13578: checking for shmat in -lipc" >&5
13578ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13580 echo $ac_n "(cached) $ac_c" 1>&6
13581else
13582 ac_save_LIBS="$LIBS"
13583LIBS="-lipc $LIBS"
13584cat > conftest.$ac_ext <<EOF
13585#line 13586 "configure"
13586#include "confdefs.h"
13587/* Override any gcc2 internal prototype to avoid an error. */
13588/* We use char because int might match the return type of a gcc2
13589 builtin and then its argument prototype would still apply. */
13590char shmat();
13591
13592int main() {
13593shmat()
13594; return 0; }
13595EOF
13596if { (eval echo configure:13597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13597 rm -rf conftest*
13598 eval "ac_cv_lib_$ac_lib_var=yes"
13599else
13600 echo "configure: failed program was:" >&5
13601 cat conftest.$ac_ext >&5
13602 rm -rf conftest*
13603 eval "ac_cv_lib_$ac_lib_var=no"
13604fi
13605rm -f conftest*
13606LIBS="$ac_save_LIBS"
13607
13608fi
13609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13610 echo "$ac_t""yes" 1>&6
13611 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13612else
13613 echo "$ac_t""no" 1>&6
13614fi
13615
13616 fi
13617 fi
13618
13619 # Check for libraries that X11R6 Xt/Xaw programs need.
13620 ac_save_LDFLAGS="$LDFLAGS"
13621 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13622 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13623 # check for ICE first), but we must link in the order -lSM -lICE or
13624 # we get undefined symbols. So assume we have SM if we have ICE.
13625 # These have to be linked with before -lX11, unlike the other
13626 # libraries we check for below, so use a different variable.
13627 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13628 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13629echo "configure:13630: checking for IceConnectionNumber in -lICE" >&5
13630ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13631if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13632 echo $ac_n "(cached) $ac_c" 1>&6
13633else
13634 ac_save_LIBS="$LIBS"
13635LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13636cat > conftest.$ac_ext <<EOF
13637#line 13638 "configure"
13638#include "confdefs.h"
13639/* Override any gcc2 internal prototype to avoid an error. */
13640/* We use char because int might match the return type of a gcc2
13641 builtin and then its argument prototype would still apply. */
13642char IceConnectionNumber();
13643
13644int main() {
13645IceConnectionNumber()
13646; return 0; }
13647EOF
13648if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13649 rm -rf conftest*
13650 eval "ac_cv_lib_$ac_lib_var=yes"
13651else
13652 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13654 rm -rf conftest*
13655 eval "ac_cv_lib_$ac_lib_var=no"
13656fi
13657rm -f conftest*
13658LIBS="$ac_save_LIBS"
13659
13660fi
13661if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13662 echo "$ac_t""yes" 1>&6
13663 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13664else
13665 echo "$ac_t""no" 1>&6
13666fi
13667
13668 LDFLAGS="$ac_save_LDFLAGS"
13669
13670fi
13671
13672
13673 if test "$no_x" = "yes"; then
13674 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13675 fi
13676
13677 GUI_TK_LIBRARY="$X_LIBS"
13678 TOOLKIT_INCLUDE="$X_CFLAGS"
13679 AFMINSTALL=afminstall
13680 COMPILED_X_PROGRAM=0
13681
13682 if test "$wxUSE_NANOX" = "yes"; then
13683 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13684echo "configure:13685: checking for MicroWindows/NanoX distribution" >&5
13685 if test "x$MICROWIN" = x ; then
13686 echo "$ac_t""not found" 1>&6
13687 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13688 else
13689 echo "$ac_t""$MICROWIN" 1>&6
13690 cat >> confdefs.h <<\EOF
13691#define wxUSE_NANOX 1
13692EOF
13693
13694 fi
13695 fi
13696
13697 xpm_link=
13698 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13699echo "configure:13700: checking for Xpm library" >&5
13700
13701ac_find_libraries=
13702for ac_dir in $SEARCH_LIB;
13703 do
13704 for ac_extension in a so sl dylib; do
13705 if test -f "$ac_dir/libXpm.$ac_extension"; then
13706 ac_find_libraries=$ac_dir
13707 break 2
13708 fi
13709 done
13710 done
13711
13712 if test "$ac_find_libraries" != "" ; then
13713
13714 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13715 result=$?
13716 if test $result = 0; then
13717 ac_path_to_link=""
13718 else
13719 ac_path_to_link=" -L$ac_find_libraries"
13720 fi
13721
13722 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13723 xpm_link=" -lXpm"
13724 cat >> confdefs.h <<\EOF
13725#define wxHAVE_LIB_XPM 1
13726EOF
13727
13728 echo "$ac_t""found at $ac_find_libraries" 1>&6
13729 else
13730 cat > conftest.$ac_ext <<EOF
13731#line 13732 "configure"
13732#include "confdefs.h"
13733
13734 #include <X11/xpm.h>
13735
13736int main() {
13737
13738 int version;
13739 version = XpmLibraryVersion();
13740
13741; return 0; }
13742EOF
13743if { (eval echo configure:13744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13744 rm -rf conftest*
13745
13746 xpm_link=" -lXpm"
13747 cat >> confdefs.h <<\EOF
13748#define wxHAVE_LIB_XPM 1
13749EOF
13750
13751 echo "$ac_t""found in default search path" 1>&6
13752 COMPILED_X_PROGRAM=0
13753
13754else
13755 echo "configure: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 rm -rf conftest*
13758
13759 echo "$ac_t""no" 1>&6
13760 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13761
13762
13763fi
13764rm -f conftest*
13765 fi
13766
13767 wxUSE_UNIVERSAL="yes"
13768
13769 if test "$wxUSE_NANOX" = "yes"; then
13770 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13771 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"
13772 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13773 else
13774 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13775 fi
13776
13777 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13778 TOOLKIT=X11
13779 GUIDIST=X11_DIST
13780 fi
13781
13782 if test "$wxUSE_WINE" = 1; then
13783 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13784echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13785echo "configure:13786: checking for windows.h" >&5
13786if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13787 echo $ac_n "(cached) $ac_c" 1>&6
13788else
13789 cat > conftest.$ac_ext <<EOF
13790#line 13791 "configure"
13791#include "confdefs.h"
13792#include <windows.h>
13793EOF
13794ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13795{ (eval echo configure:13796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13796ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13797if test -z "$ac_err"; then
13798 rm -rf conftest*
13799 eval "ac_cv_header_$ac_safe=yes"
13800else
13801 echo "$ac_err" >&5
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 eval "ac_cv_header_$ac_safe=no"
13806fi
13807rm -f conftest*
13808fi
13809if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13810 echo "$ac_t""yes" 1>&6
13811 :
13812else
13813 echo "$ac_t""no" 1>&6
13814
13815 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13816
13817fi
13818
13819
13820 xpm_link=
13821 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13822echo "configure:13823: checking for Xpm library" >&5
13823
13824ac_find_libraries=
13825for ac_dir in $SEARCH_LIB;
13826 do
13827 for ac_extension in a so sl dylib; do
13828 if test -f "$ac_dir/libXpm.$ac_extension"; then
13829 ac_find_libraries=$ac_dir
13830 break 2
13831 fi
13832 done
13833 done
13834
13835 if test "$ac_find_libraries" != "" ; then
13836 GUI_TK_LIBRARY="-L$ac_find_libraries"
13837 xpm_link=" -lXpm"
13838 cat >> confdefs.h <<\EOF
13839#define wxHAVE_LIB_XPM 1
13840EOF
13841
13842 echo "$ac_t""found at $ac_find_libraries" 1>&6
13843 else
13844 echo "$ac_t""no" 1>&6
13845 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13846 fi
13847
13848 mesa_link=
13849 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13850echo "configure:13851: checking for Mesa library" >&5
13851
13852ac_find_libraries=
13853for ac_dir in $SEARCH_LIB;
13854 do
13855 for ac_extension in a so sl dylib; do
13856 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13857 ac_find_libraries=$ac_dir
13858 break 2
13859 fi
13860 done
13861 done
13862
13863 if test "$ac_find_libraries" != "" ; then
13864 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13865 mesa_link=" -lMesaGL"
13866 echo "$ac_t""found at $ac_find_libraries" 1>&6
13867 else
13868 { echo "configure: error: no" 1>&2; exit 1; }
13869 fi
13870
13871 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13872 TOOLKIT=MSW
13873 GUIDIST=MSW_DIST
13874 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13875 fi
13876
13877 if test "$wxUSE_MOTIF" = 1; then
13878 if test "$no_x" = yes; then
13879 # Not all programs may use this symbol, but it does not hurt to define it.
13880 cat >> confdefs.h <<\EOF
13881#define X_DISPLAY_MISSING 1
13882EOF
13883
13884 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13885else
13886 if test -n "$x_includes"; then
13887 X_CFLAGS="$X_CFLAGS -I$x_includes"
13888 fi
13889
13890 # It would also be nice to do this for all -L options, not just this one.
13891 if test -n "$x_libraries"; then
13892 X_LIBS="$X_LIBS -L$x_libraries"
13893 # For Solaris; some versions of Sun CC require a space after -R and
13894 # others require no space. Words are not sufficient . . . .
13895 case "`(uname -sr) 2>/dev/null`" in
13896 "SunOS 5"*)
13897 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13898echo "configure:13899: checking whether -R must be followed by a space" >&5
13899 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13900 cat > conftest.$ac_ext <<EOF
13901#line 13902 "configure"
13902#include "confdefs.h"
13903
13904int main() {
13905
13906; return 0; }
13907EOF
13908if { (eval echo configure:13909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13909 rm -rf conftest*
13910 ac_R_nospace=yes
13911else
13912 echo "configure: failed program was:" >&5
13913 cat conftest.$ac_ext >&5
13914 rm -rf conftest*
13915 ac_R_nospace=no
13916fi
13917rm -f conftest*
13918 if test $ac_R_nospace = yes; then
13919 echo "$ac_t""no" 1>&6
13920 X_LIBS="$X_LIBS -R$x_libraries"
13921 else
13922 LIBS="$ac_xsave_LIBS -R $x_libraries"
13923 cat > conftest.$ac_ext <<EOF
13924#line 13925 "configure"
13925#include "confdefs.h"
13926
13927int main() {
13928
13929; return 0; }
13930EOF
13931if { (eval echo configure:13932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13932 rm -rf conftest*
13933 ac_R_space=yes
13934else
13935 echo "configure: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 rm -rf conftest*
13938 ac_R_space=no
13939fi
13940rm -f conftest*
13941 if test $ac_R_space = yes; then
13942 echo "$ac_t""yes" 1>&6
13943 X_LIBS="$X_LIBS -R $x_libraries"
13944 else
13945 echo "$ac_t""neither works" 1>&6
13946 fi
13947 fi
13948 LIBS="$ac_xsave_LIBS"
13949 esac
13950 fi
13951
13952 # Check for system-dependent libraries X programs must link with.
13953 # Do this before checking for the system-independent R6 libraries
13954 # (-lICE), since we may need -lsocket or whatever for X linking.
13955
13956 if test "$ISC" = yes; then
13957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13958 else
13959 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13960 # libraries were built with DECnet support. And karl@cs.umb.edu says
13961 # the Alpha needs dnet_stub (dnet does not exist).
13962 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13963echo "configure:13964: checking for dnet_ntoa in -ldnet" >&5
13964ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13966 echo $ac_n "(cached) $ac_c" 1>&6
13967else
13968 ac_save_LIBS="$LIBS"
13969LIBS="-ldnet $LIBS"
13970cat > conftest.$ac_ext <<EOF
13971#line 13972 "configure"
13972#include "confdefs.h"
13973/* Override any gcc2 internal prototype to avoid an error. */
13974/* We use char because int might match the return type of a gcc2
13975 builtin and then its argument prototype would still apply. */
13976char dnet_ntoa();
13977
13978int main() {
13979dnet_ntoa()
13980; return 0; }
13981EOF
13982if { (eval echo configure:13983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13983 rm -rf conftest*
13984 eval "ac_cv_lib_$ac_lib_var=yes"
13985else
13986 echo "configure: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13988 rm -rf conftest*
13989 eval "ac_cv_lib_$ac_lib_var=no"
13990fi
13991rm -f conftest*
13992LIBS="$ac_save_LIBS"
13993
13994fi
13995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13998else
13999 echo "$ac_t""no" 1>&6
14000fi
14001
14002 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14003 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14004echo "configure:14005: checking for dnet_ntoa in -ldnet_stub" >&5
14005ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14008else
14009 ac_save_LIBS="$LIBS"
14010LIBS="-ldnet_stub $LIBS"
14011cat > conftest.$ac_ext <<EOF
14012#line 14013 "configure"
14013#include "confdefs.h"
14014/* Override any gcc2 internal prototype to avoid an error. */
14015/* We use char because int might match the return type of a gcc2
14016 builtin and then its argument prototype would still apply. */
14017char dnet_ntoa();
14018
14019int main() {
14020dnet_ntoa()
14021; return 0; }
14022EOF
14023if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14024 rm -rf conftest*
14025 eval "ac_cv_lib_$ac_lib_var=yes"
14026else
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14029 rm -rf conftest*
14030 eval "ac_cv_lib_$ac_lib_var=no"
14031fi
14032rm -f conftest*
14033LIBS="$ac_save_LIBS"
14034
14035fi
14036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14037 echo "$ac_t""yes" 1>&6
14038 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14039else
14040 echo "$ac_t""no" 1>&6
14041fi
14042
14043 fi
14044
14045 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14046 # to get the SysV transport functions.
14047 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14048 # needs -lnsl.
14049 # The nsl library prevents programs from opening the X display
14050 # on Irix 5.2, according to dickey@clark.net.
14051 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14052echo "configure:14053: checking for gethostbyname" >&5
14053if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14054 echo $ac_n "(cached) $ac_c" 1>&6
14055else
14056 cat > conftest.$ac_ext <<EOF
14057#line 14058 "configure"
14058#include "confdefs.h"
14059/* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char gethostbyname(); below. */
14061#include <assert.h>
14062/* Override any gcc2 internal prototype to avoid an error. */
14063/* We use char because int might match the return type of a gcc2
14064 builtin and then its argument prototype would still apply. */
14065char gethostbyname();
14066
14067int main() {
14068
14069/* The GNU C library defines this for functions which it implements
14070 to always fail with ENOSYS. Some functions are actually named
14071 something starting with __ and the normal name is an alias. */
14072#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14073choke me
14074#else
14075gethostbyname();
14076#endif
14077
14078; return 0; }
14079EOF
14080if { (eval echo configure:14081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14081 rm -rf conftest*
14082 eval "ac_cv_func_gethostbyname=yes"
14083else
14084 echo "configure: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 rm -rf conftest*
14087 eval "ac_cv_func_gethostbyname=no"
14088fi
14089rm -f conftest*
14090fi
14091
14092if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14093 echo "$ac_t""yes" 1>&6
14094 :
14095else
14096 echo "$ac_t""no" 1>&6
14097fi
14098
14099 if test $ac_cv_func_gethostbyname = no; then
14100 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14101echo "configure:14102: checking for gethostbyname in -lnsl" >&5
14102ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14103if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14104 echo $ac_n "(cached) $ac_c" 1>&6
14105else
14106 ac_save_LIBS="$LIBS"
14107LIBS="-lnsl $LIBS"
14108cat > conftest.$ac_ext <<EOF
14109#line 14110 "configure"
14110#include "confdefs.h"
14111/* Override any gcc2 internal prototype to avoid an error. */
14112/* We use char because int might match the return type of a gcc2
14113 builtin and then its argument prototype would still apply. */
14114char gethostbyname();
14115
14116int main() {
14117gethostbyname()
14118; return 0; }
14119EOF
14120if { (eval echo configure:14121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14121 rm -rf conftest*
14122 eval "ac_cv_lib_$ac_lib_var=yes"
14123else
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 rm -rf conftest*
14127 eval "ac_cv_lib_$ac_lib_var=no"
14128fi
14129rm -f conftest*
14130LIBS="$ac_save_LIBS"
14131
14132fi
14133if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14134 echo "$ac_t""yes" 1>&6
14135 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14136else
14137 echo "$ac_t""no" 1>&6
14138fi
14139
14140 fi
14141
14142 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14143 # socket/setsockopt and other routines are undefined under SCO ODT
14144 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14145 # on later versions), says simon@lia.di.epfl.ch: it contains
14146 # gethostby* variants that don't use the nameserver (or something).
14147 # -lsocket must be given before -lnsl if both are needed.
14148 # We assume that if connect needs -lnsl, so does gethostbyname.
14149 echo $ac_n "checking for connect""... $ac_c" 1>&6
14150echo "configure:14151: checking for connect" >&5
14151if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14152 echo $ac_n "(cached) $ac_c" 1>&6
14153else
14154 cat > conftest.$ac_ext <<EOF
14155#line 14156 "configure"
14156#include "confdefs.h"
14157/* System header to define __stub macros and hopefully few prototypes,
14158 which can conflict with char connect(); below. */
14159#include <assert.h>
14160/* Override any gcc2 internal prototype to avoid an error. */
14161/* We use char because int might match the return type of a gcc2
14162 builtin and then its argument prototype would still apply. */
14163char connect();
14164
14165int main() {
14166
14167/* The GNU C library defines this for functions which it implements
14168 to always fail with ENOSYS. Some functions are actually named
14169 something starting with __ and the normal name is an alias. */
14170#if defined (__stub_connect) || defined (__stub___connect)
14171choke me
14172#else
14173connect();
14174#endif
14175
14176; return 0; }
14177EOF
14178if { (eval echo configure:14179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14179 rm -rf conftest*
14180 eval "ac_cv_func_connect=yes"
14181else
14182 echo "configure: failed program was:" >&5
14183 cat conftest.$ac_ext >&5
14184 rm -rf conftest*
14185 eval "ac_cv_func_connect=no"
14186fi
14187rm -f conftest*
14188fi
14189
14190if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14191 echo "$ac_t""yes" 1>&6
14192 :
14193else
14194 echo "$ac_t""no" 1>&6
14195fi
14196
14197 if test $ac_cv_func_connect = no; then
14198 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14199echo "configure:14200: checking for connect in -lsocket" >&5
14200ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14202 echo $ac_n "(cached) $ac_c" 1>&6
14203else
14204 ac_save_LIBS="$LIBS"
14205LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14206cat > conftest.$ac_ext <<EOF
14207#line 14208 "configure"
14208#include "confdefs.h"
14209/* Override any gcc2 internal prototype to avoid an error. */
14210/* We use char because int might match the return type of a gcc2
14211 builtin and then its argument prototype would still apply. */
14212char connect();
14213
14214int main() {
14215connect()
14216; return 0; }
14217EOF
14218if { (eval echo configure:14219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14219 rm -rf conftest*
14220 eval "ac_cv_lib_$ac_lib_var=yes"
14221else
14222 echo "configure: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14224 rm -rf conftest*
14225 eval "ac_cv_lib_$ac_lib_var=no"
14226fi
14227rm -f conftest*
14228LIBS="$ac_save_LIBS"
14229
14230fi
14231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14232 echo "$ac_t""yes" 1>&6
14233 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14234else
14235 echo "$ac_t""no" 1>&6
14236fi
14237
14238 fi
14239
14240 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14241 echo $ac_n "checking for remove""... $ac_c" 1>&6
14242echo "configure:14243: checking for remove" >&5
14243if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14244 echo $ac_n "(cached) $ac_c" 1>&6
14245else
14246 cat > conftest.$ac_ext <<EOF
14247#line 14248 "configure"
14248#include "confdefs.h"
14249/* System header to define __stub macros and hopefully few prototypes,
14250 which can conflict with char remove(); below. */
14251#include <assert.h>
14252/* Override any gcc2 internal prototype to avoid an error. */
14253/* We use char because int might match the return type of a gcc2
14254 builtin and then its argument prototype would still apply. */
14255char remove();
14256
14257int main() {
14258
14259/* The GNU C library defines this for functions which it implements
14260 to always fail with ENOSYS. Some functions are actually named
14261 something starting with __ and the normal name is an alias. */
14262#if defined (__stub_remove) || defined (__stub___remove)
14263choke me
14264#else
14265remove();
14266#endif
14267
14268; return 0; }
14269EOF
14270if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14271 rm -rf conftest*
14272 eval "ac_cv_func_remove=yes"
14273else
14274 echo "configure: failed program was:" >&5
14275 cat conftest.$ac_ext >&5
14276 rm -rf conftest*
14277 eval "ac_cv_func_remove=no"
14278fi
14279rm -f conftest*
14280fi
14281
14282if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14283 echo "$ac_t""yes" 1>&6
14284 :
14285else
14286 echo "$ac_t""no" 1>&6
14287fi
14288
14289 if test $ac_cv_func_remove = no; then
14290 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14291echo "configure:14292: checking for remove in -lposix" >&5
14292ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14294 echo $ac_n "(cached) $ac_c" 1>&6
14295else
14296 ac_save_LIBS="$LIBS"
14297LIBS="-lposix $LIBS"
14298cat > conftest.$ac_ext <<EOF
14299#line 14300 "configure"
14300#include "confdefs.h"
14301/* Override any gcc2 internal prototype to avoid an error. */
14302/* We use char because int might match the return type of a gcc2
14303 builtin and then its argument prototype would still apply. */
14304char remove();
14305
14306int main() {
14307remove()
14308; return 0; }
14309EOF
14310if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14311 rm -rf conftest*
14312 eval "ac_cv_lib_$ac_lib_var=yes"
14313else
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14316 rm -rf conftest*
14317 eval "ac_cv_lib_$ac_lib_var=no"
14318fi
14319rm -f conftest*
14320LIBS="$ac_save_LIBS"
14321
14322fi
14323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14324 echo "$ac_t""yes" 1>&6
14325 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14326else
14327 echo "$ac_t""no" 1>&6
14328fi
14329
14330 fi
14331
14332 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14333 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14334echo "configure:14335: checking for shmat" >&5
14335if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14336 echo $ac_n "(cached) $ac_c" 1>&6
14337else
14338 cat > conftest.$ac_ext <<EOF
14339#line 14340 "configure"
14340#include "confdefs.h"
14341/* System header to define __stub macros and hopefully few prototypes,
14342 which can conflict with char shmat(); below. */
14343#include <assert.h>
14344/* Override any gcc2 internal prototype to avoid an error. */
14345/* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14347char shmat();
14348
14349int main() {
14350
14351/* The GNU C library defines this for functions which it implements
14352 to always fail with ENOSYS. Some functions are actually named
14353 something starting with __ and the normal name is an alias. */
14354#if defined (__stub_shmat) || defined (__stub___shmat)
14355choke me
14356#else
14357shmat();
14358#endif
14359
14360; return 0; }
14361EOF
14362if { (eval echo configure:14363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14363 rm -rf conftest*
14364 eval "ac_cv_func_shmat=yes"
14365else
14366 echo "configure: failed program was:" >&5
14367 cat conftest.$ac_ext >&5
14368 rm -rf conftest*
14369 eval "ac_cv_func_shmat=no"
14370fi
14371rm -f conftest*
14372fi
14373
14374if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14375 echo "$ac_t""yes" 1>&6
14376 :
14377else
14378 echo "$ac_t""no" 1>&6
14379fi
14380
14381 if test $ac_cv_func_shmat = no; then
14382 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14383echo "configure:14384: checking for shmat in -lipc" >&5
14384ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14386 echo $ac_n "(cached) $ac_c" 1>&6
14387else
14388 ac_save_LIBS="$LIBS"
14389LIBS="-lipc $LIBS"
14390cat > conftest.$ac_ext <<EOF
14391#line 14392 "configure"
14392#include "confdefs.h"
14393/* Override any gcc2 internal prototype to avoid an error. */
14394/* We use char because int might match the return type of a gcc2
14395 builtin and then its argument prototype would still apply. */
14396char shmat();
14397
14398int main() {
14399shmat()
14400; return 0; }
14401EOF
14402if { (eval echo configure:14403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14403 rm -rf conftest*
14404 eval "ac_cv_lib_$ac_lib_var=yes"
14405else
14406 echo "configure: failed program was:" >&5
14407 cat conftest.$ac_ext >&5
14408 rm -rf conftest*
14409 eval "ac_cv_lib_$ac_lib_var=no"
14410fi
14411rm -f conftest*
14412LIBS="$ac_save_LIBS"
14413
14414fi
14415if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14416 echo "$ac_t""yes" 1>&6
14417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14418else
14419 echo "$ac_t""no" 1>&6
14420fi
14421
14422 fi
14423 fi
14424
14425 # Check for libraries that X11R6 Xt/Xaw programs need.
14426 ac_save_LDFLAGS="$LDFLAGS"
14427 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14428 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14429 # check for ICE first), but we must link in the order -lSM -lICE or
14430 # we get undefined symbols. So assume we have SM if we have ICE.
14431 # These have to be linked with before -lX11, unlike the other
14432 # libraries we check for below, so use a different variable.
14433 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14434 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14435echo "configure:14436: checking for IceConnectionNumber in -lICE" >&5
14436ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14437if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14438 echo $ac_n "(cached) $ac_c" 1>&6
14439else
14440 ac_save_LIBS="$LIBS"
14441LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14442cat > conftest.$ac_ext <<EOF
14443#line 14444 "configure"
14444#include "confdefs.h"
14445/* Override any gcc2 internal prototype to avoid an error. */
14446/* We use char because int might match the return type of a gcc2
14447 builtin and then its argument prototype would still apply. */
14448char IceConnectionNumber();
14449
14450int main() {
14451IceConnectionNumber()
14452; return 0; }
14453EOF
14454if { (eval echo configure:14455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14455 rm -rf conftest*
14456 eval "ac_cv_lib_$ac_lib_var=yes"
14457else
14458 echo "configure: failed program was:" >&5
14459 cat conftest.$ac_ext >&5
14460 rm -rf conftest*
14461 eval "ac_cv_lib_$ac_lib_var=no"
14462fi
14463rm -f conftest*
14464LIBS="$ac_save_LIBS"
14465
14466fi
14467if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14468 echo "$ac_t""yes" 1>&6
14469 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14470else
14471 echo "$ac_t""no" 1>&6
14472fi
14473
14474 LDFLAGS="$ac_save_LDFLAGS"
14475
14476fi
14477
14478
14479 if test "$no_x" = "yes"; then
14480 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14481 fi
14482
14483 GUI_TK_LIBRARY="$X_LIBS"
14484 TOOLKIT_INCLUDE="$X_CFLAGS"
14485 AFMINSTALL=afminstall
14486 COMPILED_X_PROGRAM=0
14487
14488 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14489echo "configure:14490: checking for Motif/Lesstif headers" >&5
14490
14491ac_find_includes=
14492for ac_dir in $SEARCH_INCLUDE;
14493 do
14494 if test -f "$ac_dir/Xm/Xm.h"; then
14495 ac_find_includes=$ac_dir
14496 break
14497 fi
14498 done
14499
14500 if test "$ac_find_includes" != "" ; then
14501 echo "$ac_t""found $ac_find_includes" 1>&6
14502 else
14503 cat > conftest.$ac_ext <<EOF
14504#line 14505 "configure"
14505#include "confdefs.h"
14506
14507 #include <Xm/Xm.h>
14508
14509int main() {
14510
14511 int version;
14512 version = xmUseVersion;
14513
14514; return 0; }
14515EOF
14516if { (eval echo configure:14517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14517 rm -rf conftest*
14518
14519 echo "$ac_t""found in default search path" 1>&6
14520 COMPILED_X_PROGRAM=1
14521
14522else
14523 echo "configure: failed program was:" >&5
14524 cat conftest.$ac_ext >&5
14525 rm -rf conftest*
14526
14527 echo "$ac_t""no" 1>&6
14528 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14529
14530
14531fi
14532rm -f conftest*
14533 fi
14534
14535 if test "$COMPILED_X_PROGRAM" = 0; then
14536 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14537echo "configure:14538: checking for Motif/Lesstif library" >&5
14538
14539ac_find_libraries=
14540for ac_dir in $SEARCH_LIB;
14541 do
14542 for ac_extension in a so sl dylib; do
14543 if test -f "$ac_dir/libXm.$ac_extension"; then
14544 ac_find_libraries=$ac_dir
14545 break 2
14546 fi
14547 done
14548 done
14549
14550 if test "$ac_find_libraries" != "" ; then
14551
14552 ac_path_to_include=$ac_find_includes
14553 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14554 result=$?
14555 if test $result = 0; then
14556 ac_path_to_include=""
14557 else
14558 ac_path_to_include=" -I$ac_find_includes"
14559 fi
14560
14561
14562 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14563 result=$?
14564 if test $result = 0; then
14565 ac_path_to_link=""
14566 else
14567 ac_path_to_link=" -L$ac_find_libraries"
14568 fi
14569
14570
14571 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14572 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14573 echo "$ac_t""found at $ac_find_libraries" 1>&6
14574 else
14575 cat > conftest.$ac_ext <<EOF
14576#line 14577 "configure"
14577#include "confdefs.h"
14578
14579 #include <Xm/Xm.h>
14580
14581int main() {
14582
14583 int version;
14584 version = xmUseVersion;
14585
14586; return 0; }
14587EOF
14588if { (eval echo configure:14589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14589 rm -rf conftest*
14590
14591 echo "$ac_t""found in default search path" 1>&6
14592 COMPILED_X_PROGRAM=1
14593
14594else
14595 echo "configure: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14597 rm -rf conftest*
14598
14599 echo "$ac_t""no" 1>&6
14600 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14601
14602
14603fi
14604rm -f conftest*
14605 fi
14606 fi
14607
14608 xpm_link=
14609 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14610echo "configure:14611: checking for Xpm library" >&5
14611
14612ac_find_libraries=
14613for ac_dir in $SEARCH_LIB;
14614 do
14615 for ac_extension in a so sl dylib; do
14616 if test -f "$ac_dir/libXpm.$ac_extension"; then
14617 ac_find_libraries=$ac_dir
14618 break 2
14619 fi
14620 done
14621 done
14622
14623 if test "$ac_find_libraries" != "" ; then
14624
14625 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14626 result=$?
14627 if test $result = 0; then
14628 ac_path_to_link=""
14629 else
14630 ac_path_to_link=" -L$ac_find_libraries"
14631 fi
14632
14633 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14634 xpm_link=" -lXpm"
14635 cat >> confdefs.h <<\EOF
14636#define wxHAVE_LIB_XPM 1
14637EOF
14638
14639 echo "$ac_t""found at $ac_find_libraries" 1>&6
14640 else
14641 cat > conftest.$ac_ext <<EOF
14642#line 14643 "configure"
14643#include "confdefs.h"
14644
14645 #include <X11/xpm.h>
14646
14647int main() {
14648
14649 int version;
14650 version = XpmLibraryVersion();
14651
14652; return 0; }
14653EOF
14654if { (eval echo configure:14655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14655 rm -rf conftest*
14656
14657 xpm_link=" -lXpm"
14658 cat >> confdefs.h <<\EOF
14659#define wxHAVE_LIB_XPM 1
14660EOF
14661
14662 echo "$ac_t""found in default search path" 1>&6
14663 COMPILED_X_PROGRAM=0
14664
14665else
14666 echo "configure: failed program was:" >&5
14667 cat conftest.$ac_ext >&5
14668 rm -rf conftest*
14669
14670 echo "$ac_t""no" 1>&6
14671 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14672
14673
14674fi
14675rm -f conftest*
14676 fi
14677
14678 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14679echo "configure:14680: checking if we need -lXp and/or -lSM -lICE" >&5
14680 libp_link=""
14681 libsm_ice_link=""
14682 libs_found=0
14683 for libp in "" " -lXp"; do
14684 if test "$libs_found" = "0"; then
14685 for libsm_ice in " -lSM -lICE"; do
14686 if test "$libs_found" = "0"; then
14687 save_LIBS="$LIBS"
14688 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14689 cat > conftest.$ac_ext <<EOF
14690#line 14691 "configure"
14691#include "confdefs.h"
14692
14693 #include <Xm/Xm.h>
14694 #include <Xm/List.h>
14695
14696int main() {
14697
14698 XmString string = NULL;
14699 Widget w = NULL;
14700 int position = 0;
14701 XmListAddItem(w, string, position);
14702
14703; return 0; }
14704EOF
14705if { (eval echo configure:14706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14706 rm -rf conftest*
14707
14708 libp_link="$libp"
14709 libsm_ice_link="$libsm_ice"
14710 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14711 libs_found=1
14712
14713else
14714 echo "configure: failed program was:" >&5
14715 cat conftest.$ac_ext >&5
14716 rm -rf conftest*
14717
14718
14719fi
14720rm -f conftest*
14721 LIBS="$save_LIBS"
14722 fi
14723 done
14724 fi
14725 done
14726
14727 if test "$libs_found" = "0"; then
14728 echo "$ac_t""can't find the right libraries" 1>&6
14729 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14730 fi
14731
14732 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
14733 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14734 TOOLKIT=MOTIF
14735 GUIDIST=MOTIF_DIST
14736 fi
14737
14738 if test "$wxUSE_MAC" = 1; then
14739 if test "$wxUSE_PRECOMP" = "yes"; then
14740 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14741 else
14742 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14743 fi
14744 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14745 CFLAGS="$CFLAGS -fpascal-strings"
14746 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14747
14748 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14749 TOOLKIT=MAC
14750 GUIDIST=MACX_DIST
14751 fi
14752
14753 if test "$wxUSE_PM" = 1; then
14754 TOOLKIT=PM
14755 GUIDIST=GTK_DIST
14756 fi
14757
14758 if test "$TOOLKIT" = "PM" ; then
14759 TOOLKIT_DIR="os2"
14760 else
14761 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14762 fi
14763
14764 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14765
14766 if test "$wxUSE_UNIVERSAL" = "yes"; then
14767 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14768
14769 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14770 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14771
14772 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14773 if test "$wxUSE_X11" = 1; then
14774 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14775 else
14776 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14777 fi
14778 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14779 WIDGET_SET=univ
14780 else
14781 ALL_OBJECTS="\$(GUIOBJS)"
14782 ALL_SOURCES="\$(ALL_SOURCES)"
14783 ALL_HEADERS="\$(ALL_HEADERS)"
14784 fi
14785
14786 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14787
14788 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14789 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14790 fi
14791
14792 if test "$wxUSE_HTML" = "yes"; then
14793 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14794 fi
14795
14796 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14797 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14798 fi
14799 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14800 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14801 fi
14802 if test "$wxUSE_LIBPNG" = "builtin" ; then
14803 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14804 fi
14805
14806 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14807 DISTDIR="wx\$(TOOLKIT)"
14808else
14809 USE_GUI=0
14810
14811 TOOLKIT_DIR="base"
14812
14813 if test "$USE_WIN32" = 1 ; then
14814 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14815 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14816
14817 TOOLKIT="MSW"
14818 else
14819 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14820 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14821 fi
14822
14823 ALL_SOURCES="\$(ALL_SOURCES)"
14824 ALL_HEADERS="\$(ALL_HEADERS)"
14825
14826 PORT_FILES="\${top_srcdir}/src/files.lst"
14827
14828 GUIDIST="BASE_DIST"
14829 DISTDIR="wxBase"
14830fi
14831
14832
14833if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14834 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14835fi
14836
14837if test "$wxUSE_REGEX" = "builtin" ; then
14838 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14839fi
14840if test "$wxUSE_ZLIB" = "builtin" ; then
14841 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14842fi
14843
14844
14845if test "$wxUSE_OPENGL" = "yes"; then
14846 if test "$wxUSE_MAC" = 1; then
14847 OPENGL_LIBS="-framework OpenGL -framework AGL"
14848 elif test "$wxUSE_MSW" = 1; then
14849 OPENGL_LIBS="-lopengl32 -lglu32"
14850 else
14851 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14852echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14853echo "configure:14854: checking for GL/gl.h" >&5
14854if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14855 echo $ac_n "(cached) $ac_c" 1>&6
14856else
14857 cat > conftest.$ac_ext <<EOF
14858#line 14859 "configure"
14859#include "confdefs.h"
14860#include <GL/gl.h>
14861EOF
14862ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14863{ (eval echo configure:14864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14864ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14865if test -z "$ac_err"; then
14866 rm -rf conftest*
14867 eval "ac_cv_header_$ac_safe=yes"
14868else
14869 echo "$ac_err" >&5
14870 echo "configure: failed program was:" >&5
14871 cat conftest.$ac_ext >&5
14872 rm -rf conftest*
14873 eval "ac_cv_header_$ac_safe=no"
14874fi
14875rm -f conftest*
14876fi
14877if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14878 echo "$ac_t""yes" 1>&6
14879
14880 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14881echo "configure:14882: checking for -lGL" >&5
14882
14883ac_find_libraries=
14884for ac_dir in $SEARCH_LIB;
14885 do
14886 for ac_extension in a so sl dylib; do
14887 if test -f "$ac_dir/libGL.$ac_extension"; then
14888 ac_find_libraries=$ac_dir
14889 break 2
14890 fi
14891 done
14892 done
14893
14894 if test "$ac_find_libraries" != "" ; then
14895
14896 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14897 result=$?
14898 if test $result = 0; then
14899 ac_path_to_link=""
14900 else
14901 ac_path_to_link=" -L$ac_find_libraries"
14902 fi
14903
14904 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14905 LDFLAGS_GL="$LDFLAGS"
14906 else
14907 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14908 fi
14909 OPENGL_LIBS="-lGL -lGLU"
14910 echo "$ac_t""yes" 1>&6
14911 else
14912 echo "$ac_t""no" 1>&6
14913 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14914echo "configure:14915: checking for -lMesaGL" >&5
14915
14916ac_find_libraries=
14917for ac_dir in $SEARCH_LIB;
14918 do
14919 for ac_extension in a so sl dylib; do
14920 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14921 ac_find_libraries=$ac_dir
14922 break 2
14923 fi
14924 done
14925 done
14926
14927 if test "$ac_find_libraries" != "" ; then
14928
14929 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14930 result=$?
14931 if test $result = 0; then
14932 ac_path_to_link=""
14933 else
14934 ac_path_to_link=" -L$ac_find_libraries"
14935 fi
14936
14937 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14938 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14939 echo "$ac_t""yes" 1>&6
14940 else
14941 echo "$ac_t""no" 1>&6
14942 fi
14943 fi
14944
14945else
14946 echo "$ac_t""no" 1>&6
14947fi
14948
14949
14950 if test "x$OPENGL_LIBS" = "x"; then
14951 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14952 fi
14953 fi
14954
14955 if test "$wxUSE_OPENGL" = "yes"; then
14956 cat >> confdefs.h <<\EOF
14957#define wxUSE_OPENGL 1
14958EOF
14959
14960 cat >> confdefs.h <<\EOF
14961#define wxUSE_GLCANVAS 1
14962EOF
14963
14964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14965 fi
14966fi
14967
14968if test -z "$TOOLKIT_VPATH" ; then
14969 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14970fi
14971
14972if test -n "$TOOLKIT" ; then
14973 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14974fi
14975
14976lib_unicode_suffix=
14977if test "$wxUSE_UNICODE" = "yes"; then
14978 lib_unicode_suffix=u
14979fi
14980
14981lib_debug_suffix=
14982if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14983 lib_debug_suffix=d
14984fi
14985
14986TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14987TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14988
14989if test "$cross_compiling" = "yes"; then
14990 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14991 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14992fi
14993
14994WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14995WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14996
14997WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14998WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14999
15000WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15001WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15002WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15003WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15004
15005case "${host}" in
15006 *-*-cygwin* | *-*-mingw32* )
15007
15008
15009
15010 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15011 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15012 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15013 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15014 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15015 else
15016 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15017 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15018 fi
15019 ;;
15020
15021 *-*-darwin* )
15022 if test "$wxUSE_MAC" = 1; then
15023 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15024 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15025 fi
15026 ;;
15027esac
15028
15029WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15030WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15031
15032WXCONFIG_LIBS="-l${WX_LIBRARY}"
15033WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15034
15035if test "$wxUSE_OPENGL" = "yes"; then
15036 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15037 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15038fi
15039
15040
15041
15042if test "$wxUSE_SHARED" = "yes"; then
15043 case "${host}" in
15044 *-pc-os2_emx | *-pc-os2-emx | \
15045 *-pc-msdosdjgpp )
15046 wxUSE_SHARED=no
15047 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15048 ;;
15049 esac
15050fi
15051
15052if test "$wxUSE_SHARED" = "yes"; then
15053
15054 if test "$wxUSE_OPENGL" = "yes"; then
15055 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15056 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15057 else
15058 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15059 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15060 fi
15061
15062 if test "$GCC" = "yes"; then
15063 PIC_FLAG="-fPIC"
15064 fi
15065
15066 SHARED_LD="${CXX} -shared -o"
15067
15068 case "${host}" in
15069 *-hp-hpux* )
15070 if test "$GCC" == "yes"; then
15071 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
15072 else
15073 LDFLAGS="$LDFLAGS -L/usr/lib"
15074
15075 SHARED_LD="${CXX} -b -o"
15076 PIC_FLAG="+Z"
15077 fi
15078
15079 if test "$wxUSE_OPENGL" = "yes"; then
15080 WX_ALL_INSTALLED="preinstall_gl"
15081 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15082 else
15083 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15084 fi
15085 ;;
15086
15087 *-*-linux* )
15088 if test "$GCC" != "yes"; then
15089 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15090echo "configure:15091: checking for Intel compiler" >&5
15091if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15093else
15094
15095 cat > conftest.$ac_ext <<EOF
15096#line 15097 "configure"
15097#include "confdefs.h"
15098
15099int main() {
15100
15101 #ifndef __INTEL_COMPILER
15102 #error Not icc
15103 #endif
15104
15105; return 0; }
15106EOF
15107if { (eval echo configure:15108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15108 rm -rf conftest*
15109 wx_cv_prog_icc=yes
15110else
15111 echo "configure: failed program was:" >&5
15112 cat conftest.$ac_ext >&5
15113 rm -rf conftest*
15114 wx_cv_prog_icc=no
15115
15116fi
15117rm -f conftest*
15118
15119fi
15120
15121echo "$ac_t""$wx_cv_prog_icc" 1>&6
15122 if test "$wx_cv_prog_icc" = "yes"; then
15123 PIC_FLAG="-KPIC"
15124 fi
15125 fi
15126
15127 if test "$wxUSE_SONAME" = "yes" ; then
15128 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15129 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15130 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15131 fi
15132 ;;
15133
15134 *-*-solaris2* )
15135 if test "$GCC" = yes ; then
15136 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15137 else
15138 SHARED_LD="${CXX} -G -o"
15139 PIC_FLAG="-KPIC"
15140 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15141 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15142 fi
15143 ;;
15144
15145 *-*-darwin* )
15146 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15147 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15148 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15149 PIC_FLAG="-dynamic -fPIC"
15150 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15151 SONAME_FLAGS_GL=${SONAME_FLAGS}
15152 ;;
15153
15154 *-*-aix* )
15155 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15156set dummy makeC++SharedLib; ac_word=$2
15157echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15158echo "configure:15159: checking for $ac_word" >&5
15159if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15160 echo $ac_n "(cached) $ac_c" 1>&6
15161else
15162 if test -n "$AIX_CXX_LD"; then
15163 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15164else
15165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15166 ac_dummy="$PATH"
15167 for ac_dir in $ac_dummy; do
15168 test -z "$ac_dir" && ac_dir=.
15169 if test -f $ac_dir/$ac_word; then
15170 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15171 break
15172 fi
15173 done
15174 IFS="$ac_save_ifs"
15175 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15176fi
15177fi
15178AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15179if test -n "$AIX_CXX_LD"; then
15180 echo "$ac_t""$AIX_CXX_LD" 1>&6
15181else
15182 echo "$ac_t""no" 1>&6
15183fi
15184
15185
15186 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15187 ;;
15188
15189 *-*-cygwin* | *-*-mingw32* )
15190
15191 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15192
15193 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15194 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15195
15196 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15197
15198 if test "$wxUSE_OPENGL" = "yes"; then
15199 WX_ALL_INSTALLED="preinstall_gl"
15200 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15201 else
15202 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15203 fi
15204 ;;
15205
15206 *-*-beos* )
15207 SHARED_LD="${LD} -shared -o"
15208 ;;
15209
15210 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15211 *-*-sunos4* | \
15212 *-*-irix5* | *-*-irix6* | \
15213 *-*-osf* | \
15214 *-*-dgux5* | \
15215 *-*-sysv5* )
15216 ;;
15217
15218 *)
15219 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15220 esac
15221
15222 if test "x$WX_TARGET_LIBRARY" = "x"; then
15223 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15224 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15225 fi
15226
15227 WX_TARGET_LIBRARY_TYPE="so"
15228 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15229fi
15230
15231if test "$wxUSE_SHARED" = "no"; then
15232
15233 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15234 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15235 fi
15236
15237 if test "$wxUSE_MAC" = 1; then
15238 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15239 fi
15240
15241 if test "$wxUSE_OPENGL" = "yes"; then
15242 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15243 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15244 else
15245 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15246 fi
15247
15248 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15249 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15250
15251 WX_TARGET_LIBRARY_TYPE="a"
15252 INSTALL_LIBRARY='$(INSTALL_DATA)'
15253fi
15254
15255if test "$wxUSE_MAC" = 1; then
15256 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15257 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15258 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15259 # Extract the first word of "Rez", so it can be a program name with args.
15260set dummy Rez; ac_word=$2
15261echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15262echo "configure:15263: checking for $ac_word" >&5
15263if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15264 echo $ac_n "(cached) $ac_c" 1>&6
15265else
15266 if test -n "$RESCOMP"; then
15267 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15268else
15269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15270 ac_dummy="$PATH"
15271 for ac_dir in $ac_dummy; do
15272 test -z "$ac_dir" && ac_dir=.
15273 if test -f $ac_dir/$ac_word; then
15274 ac_cv_prog_RESCOMP="Rez"
15275 break
15276 fi
15277 done
15278 IFS="$ac_save_ifs"
15279 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15280fi
15281fi
15282RESCOMP="$ac_cv_prog_RESCOMP"
15283if test -n "$RESCOMP"; then
15284 echo "$ac_t""$RESCOMP" 1>&6
15285else
15286 echo "$ac_t""no" 1>&6
15287fi
15288
15289 # Extract the first word of "DeRez", so it can be a program name with args.
15290set dummy DeRez; ac_word=$2
15291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15292echo "configure:15293: checking for $ac_word" >&5
15293if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15294 echo $ac_n "(cached) $ac_c" 1>&6
15295else
15296 if test -n "$DEREZ"; then
15297 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15298else
15299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15300 ac_dummy="$PATH"
15301 for ac_dir in $ac_dummy; do
15302 test -z "$ac_dir" && ac_dir=.
15303 if test -f $ac_dir/$ac_word; then
15304 ac_cv_prog_DEREZ="DeRez"
15305 break
15306 fi
15307 done
15308 IFS="$ac_save_ifs"
15309 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15310fi
15311fi
15312DEREZ="$ac_cv_prog_DEREZ"
15313if test -n "$DEREZ"; then
15314 echo "$ac_t""$DEREZ" 1>&6
15315else
15316 echo "$ac_t""no" 1>&6
15317fi
15318
15319 MACOSX_BUNDLE="bundle"
15320 if test "$wxUSE_SHARED" = "yes"; then
15321 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15322 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15323 else
15324 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15325 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15326 fi
15327else
15328 if test "$wxUSE_PM" = 1; then
15329 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15330 fi
15331fi
15332
15333
15334echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15335echo "configure:15336: checking for ANSI C header files" >&5
15336if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15337 echo $ac_n "(cached) $ac_c" 1>&6
15338else
15339 cat > conftest.$ac_ext <<EOF
15340#line 15341 "configure"
15341#include "confdefs.h"
15342#include <stdlib.h>
15343#include <stdarg.h>
15344#include <string.h>
15345#include <float.h>
15346EOF
15347ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15348{ (eval echo configure:15349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15349ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15350if test -z "$ac_err"; then
15351 rm -rf conftest*
15352 ac_cv_header_stdc=yes
15353else
15354 echo "$ac_err" >&5
15355 echo "configure: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15357 rm -rf conftest*
15358 ac_cv_header_stdc=no
15359fi
15360rm -f conftest*
15361
15362if test $ac_cv_header_stdc = yes; then
15363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15364cat > conftest.$ac_ext <<EOF
15365#line 15366 "configure"
15366#include "confdefs.h"
15367#include <string.h>
15368EOF
15369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15370 egrep "memchr" >/dev/null 2>&1; then
15371 :
15372else
15373 rm -rf conftest*
15374 ac_cv_header_stdc=no
15375fi
15376rm -f conftest*
15377
15378fi
15379
15380if test $ac_cv_header_stdc = yes; then
15381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15382cat > conftest.$ac_ext <<EOF
15383#line 15384 "configure"
15384#include "confdefs.h"
15385#include <stdlib.h>
15386EOF
15387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15388 egrep "free" >/dev/null 2>&1; then
15389 :
15390else
15391 rm -rf conftest*
15392 ac_cv_header_stdc=no
15393fi
15394rm -f conftest*
15395
15396fi
15397
15398if test $ac_cv_header_stdc = yes; then
15399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15400if test "$cross_compiling" = yes; then
15401 :
15402else
15403 cat > conftest.$ac_ext <<EOF
15404#line 15405 "configure"
15405#include "confdefs.h"
15406#include <ctype.h>
15407#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15408#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15410int main () { int i; for (i = 0; i < 256; i++)
15411if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15412exit (0); }
15413
15414EOF
15415if { (eval echo configure:15416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15416then
15417 :
15418else
15419 echo "configure: failed program was:" >&5
15420 cat conftest.$ac_ext >&5
15421 rm -fr conftest*
15422 ac_cv_header_stdc=no
15423fi
15424rm -fr conftest*
15425fi
15426
15427fi
15428fi
15429
15430echo "$ac_t""$ac_cv_header_stdc" 1>&6
15431if test $ac_cv_header_stdc = yes; then
15432 cat >> confdefs.h <<\EOF
15433#define STDC_HEADERS 1
15434EOF
15435
15436fi
15437
15438echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15439echo "configure:15440: checking for mode_t" >&5
15440if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15441 echo $ac_n "(cached) $ac_c" 1>&6
15442else
15443 cat > conftest.$ac_ext <<EOF
15444#line 15445 "configure"
15445#include "confdefs.h"
15446#include <sys/types.h>
15447#if STDC_HEADERS
15448#include <stdlib.h>
15449#include <stddef.h>
15450#endif
15451EOF
15452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15453 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15454 rm -rf conftest*
15455 ac_cv_type_mode_t=yes
15456else
15457 rm -rf conftest*
15458 ac_cv_type_mode_t=no
15459fi
15460rm -f conftest*
15461
15462fi
15463echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15464if test $ac_cv_type_mode_t = no; then
15465 cat >> confdefs.h <<\EOF
15466#define mode_t int
15467EOF
15468
15469fi
15470
15471echo $ac_n "checking for off_t""... $ac_c" 1>&6
15472echo "configure:15473: checking for off_t" >&5
15473if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15474 echo $ac_n "(cached) $ac_c" 1>&6
15475else
15476 cat > conftest.$ac_ext <<EOF
15477#line 15478 "configure"
15478#include "confdefs.h"
15479#include <sys/types.h>
15480#if STDC_HEADERS
15481#include <stdlib.h>
15482#include <stddef.h>
15483#endif
15484EOF
15485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15486 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15487 rm -rf conftest*
15488 ac_cv_type_off_t=yes
15489else
15490 rm -rf conftest*
15491 ac_cv_type_off_t=no
15492fi
15493rm -f conftest*
15494
15495fi
15496echo "$ac_t""$ac_cv_type_off_t" 1>&6
15497if test $ac_cv_type_off_t = no; then
15498 cat >> confdefs.h <<\EOF
15499#define off_t long
15500EOF
15501
15502fi
15503
15504echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15505echo "configure:15506: checking for pid_t" >&5
15506if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15507 echo $ac_n "(cached) $ac_c" 1>&6
15508else
15509 cat > conftest.$ac_ext <<EOF
15510#line 15511 "configure"
15511#include "confdefs.h"
15512#include <sys/types.h>
15513#if STDC_HEADERS
15514#include <stdlib.h>
15515#include <stddef.h>
15516#endif
15517EOF
15518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15519 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15520 rm -rf conftest*
15521 ac_cv_type_pid_t=yes
15522else
15523 rm -rf conftest*
15524 ac_cv_type_pid_t=no
15525fi
15526rm -f conftest*
15527
15528fi
15529echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15530if test $ac_cv_type_pid_t = no; then
15531 cat >> confdefs.h <<\EOF
15532#define pid_t int
15533EOF
15534
15535fi
15536
15537echo $ac_n "checking for size_t""... $ac_c" 1>&6
15538echo "configure:15539: checking for size_t" >&5
15539if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15540 echo $ac_n "(cached) $ac_c" 1>&6
15541else
15542 cat > conftest.$ac_ext <<EOF
15543#line 15544 "configure"
15544#include "confdefs.h"
15545#include <sys/types.h>
15546#if STDC_HEADERS
15547#include <stdlib.h>
15548#include <stddef.h>
15549#endif
15550EOF
15551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15552 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15553 rm -rf conftest*
15554 ac_cv_type_size_t=yes
15555else
15556 rm -rf conftest*
15557 ac_cv_type_size_t=no
15558fi
15559rm -f conftest*
15560
15561fi
15562echo "$ac_t""$ac_cv_type_size_t" 1>&6
15563if test $ac_cv_type_size_t = no; then
15564 cat >> confdefs.h <<\EOF
15565#define size_t unsigned
15566EOF
15567
15568fi
15569
15570echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15571echo "configure:15572: checking for uid_t in sys/types.h" >&5
15572if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15573 echo $ac_n "(cached) $ac_c" 1>&6
15574else
15575 cat > conftest.$ac_ext <<EOF
15576#line 15577 "configure"
15577#include "confdefs.h"
15578#include <sys/types.h>
15579EOF
15580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15581 egrep "uid_t" >/dev/null 2>&1; then
15582 rm -rf conftest*
15583 ac_cv_type_uid_t=yes
15584else
15585 rm -rf conftest*
15586 ac_cv_type_uid_t=no
15587fi
15588rm -f conftest*
15589
15590fi
15591
15592echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15593if test $ac_cv_type_uid_t = no; then
15594 cat >> confdefs.h <<\EOF
15595#define uid_t int
15596EOF
15597
15598 cat >> confdefs.h <<\EOF
15599#define gid_t int
15600EOF
15601
15602fi
15603
15604
15605
15606ac_ext=C
15607# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15608ac_cpp='$CXXCPP $CPPFLAGS'
15609ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15610ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15611cross_compiling=$ac_cv_prog_cxx_cross
15612
15613echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15614echo "configure:15615: checking if size_t is unsigned int" >&5
15615if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15616 echo $ac_n "(cached) $ac_c" 1>&6
15617else
15618 cat > conftest.$ac_ext <<EOF
15619#line 15620 "configure"
15620#include "confdefs.h"
15621#include <stddef.h>
15622int main() {
15623
15624 return 0; }
15625
15626 struct Foo { void foo(size_t); void foo(unsigned int); };
15627
15628 int bar() {
15629
15630; return 0; }
15631EOF
15632if { (eval echo configure:15633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15633 rm -rf conftest*
15634 wx_cv_size_t_is_uint=no
15635else
15636 echo "configure: failed program was:" >&5
15637 cat conftest.$ac_ext >&5
15638 rm -rf conftest*
15639 wx_cv_size_t_is_uint=yes
15640
15641fi
15642rm -f conftest*
15643
15644fi
15645
15646echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15647
15648if test "$wx_cv_size_t_is_uint" = "yes"; then
15649 cat >> confdefs.h <<\EOF
15650#define wxSIZE_T_IS_UINT 1
15651EOF
15652
15653else
15654 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15655echo "configure:15656: checking if size_t is unsigned long" >&5
15656if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15657 echo $ac_n "(cached) $ac_c" 1>&6
15658else
15659 cat > conftest.$ac_ext <<EOF
15660#line 15661 "configure"
15661#include "confdefs.h"
15662#include <stddef.h>
15663int main() {
15664
15665 return 0; }
15666
15667 struct Foo { void foo(size_t); void foo(unsigned long); };
15668
15669 int bar() {
15670
15671; return 0; }
15672EOF
15673if { (eval echo configure:15674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15674 rm -rf conftest*
15675 wx_cv_size_t_is_ulong=no
15676else
15677 echo "configure: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 rm -rf conftest*
15680 wx_cv_size_t_is_ulong=yes
15681
15682fi
15683rm -f conftest*
15684
15685fi
15686
15687echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15688
15689 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15690 cat >> confdefs.h <<\EOF
15691#define wxSIZE_T_IS_ULONG 1
15692EOF
15693
15694 fi
15695fi
15696
15697ac_ext=c
15698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15699ac_cpp='$CPP $CPPFLAGS'
15700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15701ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15702cross_compiling=$ac_cv_prog_cc_cross
15703
15704
15705
15706echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15707echo "configure:15708: checking for pw_gecos in struct passwd" >&5
15708if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15709 echo $ac_n "(cached) $ac_c" 1>&6
15710else
15711
15712 cat > conftest.$ac_ext <<EOF
15713#line 15714 "configure"
15714#include "confdefs.h"
15715#include <pwd.h>
15716int main() {
15717
15718 char *p;
15719 struct passwd *pw;
15720 p = pw->pw_gecos;
15721
15722; return 0; }
15723EOF
15724if { (eval echo configure:15725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15725 rm -rf conftest*
15726
15727 wx_cv_struct_pw_gecos=yes
15728
15729else
15730 echo "configure: failed program was:" >&5
15731 cat conftest.$ac_ext >&5
15732 rm -rf conftest*
15733
15734 wx_cv_struct_pw_gecos=no
15735
15736
15737fi
15738rm -f conftest*
15739
15740
15741fi
15742
15743echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15744
15745if test "$wx_cv_struct_pw_gecos" = "yes"; then
15746 cat >> confdefs.h <<\EOF
15747#define HAVE_PW_GECOS 1
15748EOF
15749
15750fi
15751
15752
15753WCHAR_OK=0
15754if test "$wx_cv_sizeof_wchar_t" != "0"; then
15755 WCHAR_LINK=
15756 for ac_func in wcslen
15757do
15758echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15759echo "configure:15760: checking for $ac_func" >&5
15760if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15761 echo $ac_n "(cached) $ac_c" 1>&6
15762else
15763 cat > conftest.$ac_ext <<EOF
15764#line 15765 "configure"
15765#include "confdefs.h"
15766/* System header to define __stub macros and hopefully few prototypes,
15767 which can conflict with char $ac_func(); below. */
15768#include <assert.h>
15769/* Override any gcc2 internal prototype to avoid an error. */
15770/* We use char because int might match the return type of a gcc2
15771 builtin and then its argument prototype would still apply. */
15772char $ac_func();
15773
15774int main() {
15775
15776/* The GNU C library defines this for functions which it implements
15777 to always fail with ENOSYS. Some functions are actually named
15778 something starting with __ and the normal name is an alias. */
15779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15780choke me
15781#else
15782$ac_func();
15783#endif
15784
15785; return 0; }
15786EOF
15787if { (eval echo configure:15788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15788 rm -rf conftest*
15789 eval "ac_cv_func_$ac_func=yes"
15790else
15791 echo "configure: failed program was:" >&5
15792 cat conftest.$ac_ext >&5
15793 rm -rf conftest*
15794 eval "ac_cv_func_$ac_func=no"
15795fi
15796rm -f conftest*
15797fi
15798
15799if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15800 echo "$ac_t""yes" 1>&6
15801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15802 cat >> confdefs.h <<EOF
15803#define $ac_tr_func 1
15804EOF
15805
15806 cat >> confdefs.h <<\EOF
15807#define HAVE_WCSLEN 1
15808EOF
15809
15810 WCHAR_OK=1
15811
15812else
15813 echo "$ac_t""no" 1>&6
15814fi
15815done
15816
15817
15818 if test "$WCHAR_OK" = 0; then
15819 if test "$TOOLKIT" = "MSW"; then
15820 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15821echo "configure:15822: checking for wcslen in -lmsvcrt" >&5
15822ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15823if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
15825else
15826 ac_save_LIBS="$LIBS"
15827LIBS="-lmsvcrt $LIBS"
15828cat > conftest.$ac_ext <<EOF
15829#line 15830 "configure"
15830#include "confdefs.h"
15831/* Override any gcc2 internal prototype to avoid an error. */
15832/* We use char because int might match the return type of a gcc2
15833 builtin and then its argument prototype would still apply. */
15834char wcslen();
15835
15836int main() {
15837wcslen()
15838; return 0; }
15839EOF
15840if { (eval echo configure:15841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15841 rm -rf conftest*
15842 eval "ac_cv_lib_$ac_lib_var=yes"
15843else
15844 echo "configure: failed program was:" >&5
15845 cat conftest.$ac_ext >&5
15846 rm -rf conftest*
15847 eval "ac_cv_lib_$ac_lib_var=no"
15848fi
15849rm -f conftest*
15850LIBS="$ac_save_LIBS"
15851
15852fi
15853if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15854 echo "$ac_t""yes" 1>&6
15855
15856 cat >> confdefs.h <<\EOF
15857#define HAVE_WCSLEN 1
15858EOF
15859
15860 WCHAR_OK=1
15861
15862else
15863 echo "$ac_t""no" 1>&6
15864fi
15865
15866 else
15867 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15868echo "configure:15869: checking for wcslen in -lw" >&5
15869ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15870if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15871 echo $ac_n "(cached) $ac_c" 1>&6
15872else
15873 ac_save_LIBS="$LIBS"
15874LIBS="-lw $LIBS"
15875cat > conftest.$ac_ext <<EOF
15876#line 15877 "configure"
15877#include "confdefs.h"
15878/* Override any gcc2 internal prototype to avoid an error. */
15879/* We use char because int might match the return type of a gcc2
15880 builtin and then its argument prototype would still apply. */
15881char wcslen();
15882
15883int main() {
15884wcslen()
15885; return 0; }
15886EOF
15887if { (eval echo configure:15888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15888 rm -rf conftest*
15889 eval "ac_cv_lib_$ac_lib_var=yes"
15890else
15891 echo "configure: failed program was:" >&5
15892 cat conftest.$ac_ext >&5
15893 rm -rf conftest*
15894 eval "ac_cv_lib_$ac_lib_var=no"
15895fi
15896rm -f conftest*
15897LIBS="$ac_save_LIBS"
15898
15899fi
15900if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15901 echo "$ac_t""yes" 1>&6
15902
15903 cat >> confdefs.h <<\EOF
15904#define HAVE_WCSLEN 1
15905EOF
15906
15907 WCHAR_LINK=" -lw"
15908 WCHAR_OK=1
15909
15910else
15911 echo "$ac_t""no" 1>&6
15912fi
15913
15914 fi
15915 fi
15916fi
15917
15918if test "$WCHAR_OK" = 1; then
15919 cat >> confdefs.h <<\EOF
15920#define wxUSE_WCHAR_T 1
15921EOF
15922
15923
15924 for ac_func in wcsrtombs
15925do
15926echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15927echo "configure:15928: checking for $ac_func" >&5
15928if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15929 echo $ac_n "(cached) $ac_c" 1>&6
15930else
15931 cat > conftest.$ac_ext <<EOF
15932#line 15933 "configure"
15933#include "confdefs.h"
15934/* System header to define __stub macros and hopefully few prototypes,
15935 which can conflict with char $ac_func(); below. */
15936#include <assert.h>
15937/* Override any gcc2 internal prototype to avoid an error. */
15938/* We use char because int might match the return type of a gcc2
15939 builtin and then its argument prototype would still apply. */
15940char $ac_func();
15941
15942int main() {
15943
15944/* The GNU C library defines this for functions which it implements
15945 to always fail with ENOSYS. Some functions are actually named
15946 something starting with __ and the normal name is an alias. */
15947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15948choke me
15949#else
15950$ac_func();
15951#endif
15952
15953; return 0; }
15954EOF
15955if { (eval echo configure:15956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15956 rm -rf conftest*
15957 eval "ac_cv_func_$ac_func=yes"
15958else
15959 echo "configure: failed program was:" >&5
15960 cat conftest.$ac_ext >&5
15961 rm -rf conftest*
15962 eval "ac_cv_func_$ac_func=no"
15963fi
15964rm -f conftest*
15965fi
15966
15967if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15968 echo "$ac_t""yes" 1>&6
15969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15970 cat >> confdefs.h <<EOF
15971#define $ac_tr_func 1
15972EOF
15973
15974else
15975 echo "$ac_t""no" 1>&6
15976fi
15977done
15978
15979else
15980 if test "$USE_DARWIN" = 1; then
15981 cat >> confdefs.h <<\EOF
15982#define wxUSE_WCHAR_T 1
15983EOF
15984
15985 else
15986 echo "configure: warning: Wide character support is unavailable" 1>&2
15987 fi
15988fi
15989
15990echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15991echo "configure:15992: checking for vprintf" >&5
15992if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15993 echo $ac_n "(cached) $ac_c" 1>&6
15994else
15995 cat > conftest.$ac_ext <<EOF
15996#line 15997 "configure"
15997#include "confdefs.h"
15998/* System header to define __stub macros and hopefully few prototypes,
15999 which can conflict with char vprintf(); below. */
16000#include <assert.h>
16001/* Override any gcc2 internal prototype to avoid an error. */
16002/* We use char because int might match the return type of a gcc2
16003 builtin and then its argument prototype would still apply. */
16004char vprintf();
16005
16006int main() {
16007
16008/* The GNU C library defines this for functions which it implements
16009 to always fail with ENOSYS. Some functions are actually named
16010 something starting with __ and the normal name is an alias. */
16011#if defined (__stub_vprintf) || defined (__stub___vprintf)
16012choke me
16013#else
16014vprintf();
16015#endif
16016
16017; return 0; }
16018EOF
16019if { (eval echo configure:16020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16020 rm -rf conftest*
16021 eval "ac_cv_func_vprintf=yes"
16022else
16023 echo "configure: failed program was:" >&5
16024 cat conftest.$ac_ext >&5
16025 rm -rf conftest*
16026 eval "ac_cv_func_vprintf=no"
16027fi
16028rm -f conftest*
16029fi
16030
16031if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16032 echo "$ac_t""yes" 1>&6
16033 cat >> confdefs.h <<\EOF
16034#define HAVE_VPRINTF 1
16035EOF
16036
16037else
16038 echo "$ac_t""no" 1>&6
16039fi
16040
16041if test "$ac_cv_func_vprintf" != yes; then
16042echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16043echo "configure:16044: checking for _doprnt" >&5
16044if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
16045 echo $ac_n "(cached) $ac_c" 1>&6
16046else
16047 cat > conftest.$ac_ext <<EOF
16048#line 16049 "configure"
16049#include "confdefs.h"
16050/* System header to define __stub macros and hopefully few prototypes,
16051 which can conflict with char _doprnt(); below. */
16052#include <assert.h>
16053/* Override any gcc2 internal prototype to avoid an error. */
16054/* We use char because int might match the return type of a gcc2
16055 builtin and then its argument prototype would still apply. */
16056char _doprnt();
16057
16058int main() {
16059
16060/* The GNU C library defines this for functions which it implements
16061 to always fail with ENOSYS. Some functions are actually named
16062 something starting with __ and the normal name is an alias. */
16063#if defined (__stub__doprnt) || defined (__stub____doprnt)
16064choke me
16065#else
16066_doprnt();
16067#endif
16068
16069; return 0; }
16070EOF
16071if { (eval echo configure:16072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16072 rm -rf conftest*
16073 eval "ac_cv_func__doprnt=yes"
16074else
16075 echo "configure: failed program was:" >&5
16076 cat conftest.$ac_ext >&5
16077 rm -rf conftest*
16078 eval "ac_cv_func__doprnt=no"
16079fi
16080rm -f conftest*
16081fi
16082
16083if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16084 echo "$ac_t""yes" 1>&6
16085 cat >> confdefs.h <<\EOF
16086#define HAVE_DOPRNT 1
16087EOF
16088
16089else
16090 echo "$ac_t""no" 1>&6
16091fi
16092
16093fi
16094
16095
16096
16097
16098
16099
16100echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
16101echo "configure:16102: checking for vsnprintf" >&5
16102if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
16103 echo $ac_n "(cached) $ac_c" 1>&6
16104else
16105
16106 cat > conftest.$ac_ext <<EOF
16107#line 16108 "configure"
16108#include "confdefs.h"
16109
16110 #include <stdio.h>
16111 #include <stdarg.h>
16112
16113int main() {
16114
16115 int wx_test_vsnprintf(const char *, ...);
16116
16117 wx_test_vsnprintf("%s");
16118 return 0;
16119 }
16120
16121 int wx_test_vsnprintf(const char *fmt, ...)
16122 {
16123 char *s;
16124
16125 va_list argp;
16126 va_start(argp, fmt);
16127 vsnprintf(s, 42, fmt, argp);
16128 va_end(argp);
16129
16130; return 0; }
16131EOF
16132if { (eval echo configure:16133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16133 rm -rf conftest*
16134
16135 wx_cv_func_vsnprintf=yes
16136
16137else
16138 echo "configure: failed program was:" >&5
16139 cat conftest.$ac_ext >&5
16140 rm -rf conftest*
16141
16142 cat > conftest.$ac_ext <<EOF
16143#line 16144 "configure"
16144#include "confdefs.h"
16145
16146 #include <stdio.h>
16147 #include <stdarg.h>
16148
16149int main() {
16150
16151 int wx_test_vsnprintf(const char *, ...);
16152
16153 wx_test_vsnprintf("%s");
16154 return 0;
16155 }
16156
16157 int wx_test_vsnprintf(const char *fmt, ...)
16158 {
16159 char *s;
16160
16161 va_list argp;
16162 va_start(argp, fmt);
16163 _vsnprintf(s, 42, fmt, argp);
16164 va_end(argp);
16165
16166; return 0; }
16167EOF
16168if { (eval echo configure:16169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16169 rm -rf conftest*
16170
16171 wx_cv_func_vsnprintf=yes
16172
16173else
16174 echo "configure: failed program was:" >&5
16175 cat conftest.$ac_ext >&5
16176 rm -rf conftest*
16177
16178 wx_cv_func_vsnprintf=no
16179
16180fi
16181rm -f conftest*
16182
16183fi
16184rm -f conftest*
16185
16186fi
16187
16188echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16189
16190if test "$wx_cv_func_vsnprintf" = yes; then
16191 cat >> confdefs.h <<\EOF
16192#define HAVE_VSNPRINTF 1
16193EOF
16194
16195else
16196 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16197fi
16198
16199echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16200echo "configure:16201: checking for vsscanf" >&5
16201if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16202 echo $ac_n "(cached) $ac_c" 1>&6
16203else
16204
16205 cat > conftest.$ac_ext <<EOF
16206#line 16207 "configure"
16207#include "confdefs.h"
16208
16209 #include <stdio.h>
16210 #include <stdarg.h>
16211
16212int main() {
16213
16214 int wx_test_vsscanf(const char *, ...);
16215
16216 wx_test_vsscanf("%d");
16217 return 0;
16218 }
16219
16220 int wx_test_vsscanf(const char *fmt, ...)
16221 {
16222 va_list argp;
16223 va_start(argp, fmt);
16224 vsscanf("42", fmt, argp);
16225 va_end(argp);
16226
16227; return 0; }
16228EOF
16229if { (eval echo configure:16230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16230 rm -rf conftest*
16231
16232 wx_cv_func_vsscanf=yes
16233
16234else
16235 echo "configure: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16237 rm -rf conftest*
16238
16239 wx_cv_func_vsscanf=no
16240
16241fi
16242rm -f conftest*
16243
16244fi
16245
16246echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16247
16248if test "$wx_cv_func_vsscanf" = yes; then
16249 cat >> confdefs.h <<\EOF
16250#define HAVE_VSSCANF 1
16251EOF
16252
16253fi
16254
16255if test "$TOOLKIT" != "MSW"; then
16256
16257
16258
16259ac_ext=C
16260# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16261ac_cpp='$CXXCPP $CPPFLAGS'
16262ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16263ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16264cross_compiling=$ac_cv_prog_cxx_cross
16265
16266
16267
16268 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16269if test "${with_libiconv_prefix+set}" = set; then
16270 withval="$with_libiconv_prefix"
16271
16272 for dir in `echo "$withval" | tr : ' '`; do
16273 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16274 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16275 done
16276
16277fi
16278
16279
16280 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16281echo "configure:16282: checking for iconv" >&5
16282if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16283 echo $ac_n "(cached) $ac_c" 1>&6
16284else
16285
16286 am_cv_func_iconv="no, consider installing GNU libiconv"
16287 am_cv_lib_iconv=no
16288 cat > conftest.$ac_ext <<EOF
16289#line 16290 "configure"
16290#include "confdefs.h"
16291#include <stdlib.h>
16292#include <iconv.h>
16293int main() {
16294iconv_t cd = iconv_open("","");
16295 iconv(cd,NULL,NULL,NULL,NULL);
16296 iconv_close(cd);
16297; return 0; }
16298EOF
16299if { (eval echo configure:16300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16300 rm -rf conftest*
16301 am_cv_func_iconv=yes
16302else
16303 echo "configure: failed program was:" >&5
16304 cat conftest.$ac_ext >&5
16305fi
16306rm -f conftest*
16307 if test "$am_cv_func_iconv" != yes; then
16308 am_save_LIBS="$LIBS"
16309 LIBS="$LIBS -liconv"
16310 cat > conftest.$ac_ext <<EOF
16311#line 16312 "configure"
16312#include "confdefs.h"
16313#include <stdlib.h>
16314#include <iconv.h>
16315int main() {
16316iconv_t cd = iconv_open("","");
16317 iconv(cd,NULL,NULL,NULL,NULL);
16318 iconv_close(cd);
16319; return 0; }
16320EOF
16321if { (eval echo configure:16322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16322 rm -rf conftest*
16323 am_cv_lib_iconv=yes
16324 am_cv_func_iconv=yes
16325else
16326 echo "configure: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16328fi
16329rm -f conftest*
16330 LIBS="$am_save_LIBS"
16331 fi
16332
16333fi
16334
16335echo "$ac_t""$am_cv_func_iconv" 1>&6
16336 if test "$am_cv_func_iconv" = yes; then
16337 cat >> confdefs.h <<\EOF
16338#define HAVE_ICONV 1
16339EOF
16340
16341 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16342echo "configure:16343: checking if iconv needs const" >&5
16343if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16344 echo $ac_n "(cached) $ac_c" 1>&6
16345else
16346 cat > conftest.$ac_ext <<EOF
16347#line 16348 "configure"
16348#include "confdefs.h"
16349
16350#include <stdlib.h>
16351#include <iconv.h>
16352extern
16353#ifdef __cplusplus
16354"C"
16355#endif
16356#if defined(__STDC__) || defined(__cplusplus)
16357size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16358#else
16359size_t iconv();
16360#endif
16361
16362int main() {
16363
16364; return 0; }
16365EOF
16366if { (eval echo configure:16367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16367 rm -rf conftest*
16368 wx_cv_func_iconv_const="no"
16369else
16370 echo "configure: failed program was:" >&5
16371 cat conftest.$ac_ext >&5
16372 rm -rf conftest*
16373 wx_cv_func_iconv_const="yes"
16374
16375fi
16376rm -f conftest*
16377
16378fi
16379
16380echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16381
16382 iconv_const=
16383 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16384 iconv_const="const"
16385 fi
16386
16387 cat >> confdefs.h <<EOF
16388#define ICONV_CONST $iconv_const
16389EOF
16390
16391 fi
16392 LIBICONV=
16393 if test "$am_cv_lib_iconv" = yes; then
16394 LIBICONV="-liconv"
16395 fi
16396
16397
16398LIBS="$LIBICONV $LIBS"
16399ac_ext=c
16400# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16401ac_cpp='$CPP $CPPFLAGS'
16402ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16403ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16404cross_compiling=$ac_cv_prog_cc_cross
16405
16406
16407if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16408 for ac_func in sigaction
16409do
16410echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16411echo "configure:16412: checking for $ac_func" >&5
16412if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16413 echo $ac_n "(cached) $ac_c" 1>&6
16414else
16415 cat > conftest.$ac_ext <<EOF
16416#line 16417 "configure"
16417#include "confdefs.h"
16418/* System header to define __stub macros and hopefully few prototypes,
16419 which can conflict with char $ac_func(); below. */
16420#include <assert.h>
16421/* Override any gcc2 internal prototype to avoid an error. */
16422/* We use char because int might match the return type of a gcc2
16423 builtin and then its argument prototype would still apply. */
16424char $ac_func();
16425
16426int main() {
16427
16428/* The GNU C library defines this for functions which it implements
16429 to always fail with ENOSYS. Some functions are actually named
16430 something starting with __ and the normal name is an alias. */
16431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16432choke me
16433#else
16434$ac_func();
16435#endif
16436
16437; return 0; }
16438EOF
16439if { (eval echo configure:16440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16440 rm -rf conftest*
16441 eval "ac_cv_func_$ac_func=yes"
16442else
16443 echo "configure: failed program was:" >&5
16444 cat conftest.$ac_ext >&5
16445 rm -rf conftest*
16446 eval "ac_cv_func_$ac_func=no"
16447fi
16448rm -f conftest*
16449fi
16450
16451if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16452 echo "$ac_t""yes" 1>&6
16453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16454 cat >> confdefs.h <<EOF
16455#define $ac_tr_func 1
16456EOF
16457
16458else
16459 echo "$ac_t""no" 1>&6
16460fi
16461done
16462
16463
16464 if test "$ac_cv_func_sigaction" = "no"; then
16465 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16466 wxUSE_ON_FATAL_EXCEPTION=no
16467 fi
16468
16469 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16470
16471 ac_ext=C
16472# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16473ac_cpp='$CXXCPP $CPPFLAGS'
16474ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16475ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16476cross_compiling=$ac_cv_prog_cxx_cross
16477
16478
16479 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16480echo "configure:16481: checking for sa_handler type" >&5
16481if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16482 echo $ac_n "(cached) $ac_c" 1>&6
16483else
16484
16485 cat > conftest.$ac_ext <<EOF
16486#line 16487 "configure"
16487#include "confdefs.h"
16488#include <signal.h>
16489int main() {
16490
16491 extern void testSigHandler(int);
16492
16493 struct sigaction sa;
16494 sa.sa_handler = testSigHandler;
16495
16496; return 0; }
16497EOF
16498if { (eval echo configure:16499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16499 rm -rf conftest*
16500
16501 wx_cv_type_sa_handler=int
16502
16503else
16504 echo "configure: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16506 rm -rf conftest*
16507
16508 wx_cv_type_sa_handler=void
16509
16510fi
16511rm -f conftest*
16512
16513fi
16514
16515echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16516
16517 ac_ext=c
16518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16519ac_cpp='$CPP $CPPFLAGS'
16520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16522cross_compiling=$ac_cv_prog_cc_cross
16523
16524
16525 cat >> confdefs.h <<EOF
16526#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16527EOF
16528
16529 fi
16530fi
16531
16532for ac_func in vfork
16533do
16534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16535echo "configure:16536: checking for $ac_func" >&5
16536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16537 echo $ac_n "(cached) $ac_c" 1>&6
16538else
16539 cat > conftest.$ac_ext <<EOF
16540#line 16541 "configure"
16541#include "confdefs.h"
16542/* System header to define __stub macros and hopefully few prototypes,
16543 which can conflict with char $ac_func(); below. */
16544#include <assert.h>
16545/* Override any gcc2 internal prototype to avoid an error. */
16546/* We use char because int might match the return type of a gcc2
16547 builtin and then its argument prototype would still apply. */
16548char $ac_func();
16549
16550int main() {
16551
16552/* The GNU C library defines this for functions which it implements
16553 to always fail with ENOSYS. Some functions are actually named
16554 something starting with __ and the normal name is an alias. */
16555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556choke me
16557#else
16558$ac_func();
16559#endif
16560
16561; return 0; }
16562EOF
16563if { (eval echo configure:16564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16564 rm -rf conftest*
16565 eval "ac_cv_func_$ac_func=yes"
16566else
16567 echo "configure: failed program was:" >&5
16568 cat conftest.$ac_ext >&5
16569 rm -rf conftest*
16570 eval "ac_cv_func_$ac_func=no"
16571fi
16572rm -f conftest*
16573fi
16574
16575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16576 echo "$ac_t""yes" 1>&6
16577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16578 cat >> confdefs.h <<EOF
16579#define $ac_tr_func 1
16580EOF
16581
16582else
16583 echo "$ac_t""no" 1>&6
16584fi
16585done
16586
16587
16588for ac_func in mkstemp mktemp
16589do
16590echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16591echo "configure:16592: checking for $ac_func" >&5
16592if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16593 echo $ac_n "(cached) $ac_c" 1>&6
16594else
16595 cat > conftest.$ac_ext <<EOF
16596#line 16597 "configure"
16597#include "confdefs.h"
16598/* System header to define __stub macros and hopefully few prototypes,
16599 which can conflict with char $ac_func(); below. */
16600#include <assert.h>
16601/* Override any gcc2 internal prototype to avoid an error. */
16602/* We use char because int might match the return type of a gcc2
16603 builtin and then its argument prototype would still apply. */
16604char $ac_func();
16605
16606int main() {
16607
16608/* The GNU C library defines this for functions which it implements
16609 to always fail with ENOSYS. Some functions are actually named
16610 something starting with __ and the normal name is an alias. */
16611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16612choke me
16613#else
16614$ac_func();
16615#endif
16616
16617; return 0; }
16618EOF
16619if { (eval echo configure:16620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16620 rm -rf conftest*
16621 eval "ac_cv_func_$ac_func=yes"
16622else
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16625 rm -rf conftest*
16626 eval "ac_cv_func_$ac_func=no"
16627fi
16628rm -f conftest*
16629fi
16630
16631if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16632 echo "$ac_t""yes" 1>&6
16633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16634 cat >> confdefs.h <<EOF
16635#define $ac_tr_func 1
16636EOF
16637 break
16638else
16639 echo "$ac_t""no" 1>&6
16640fi
16641done
16642
16643
16644echo $ac_n "checking for statfs""... $ac_c" 1>&6
16645echo "configure:16646: checking for statfs" >&5
16646if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16647 echo $ac_n "(cached) $ac_c" 1>&6
16648else
16649 cat > conftest.$ac_ext <<EOF
16650#line 16651 "configure"
16651#include "confdefs.h"
16652
16653 #if defined(__BSD__)
16654 #include <sys/param.h>
16655 #include <sys/mount.h>
16656 #else
16657 #include <sys/vfs.h>
16658 #endif
16659
16660int main() {
16661
16662 long l;
16663 struct statfs fs;
16664 statfs("/", &fs);
16665 l = fs.f_bsize;
16666 l += fs.f_blocks;
16667 l += fs.f_bavail;
16668
16669; return 0; }
16670EOF
16671if { (eval echo configure:16672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16672 rm -rf conftest*
16673
16674 wx_cv_func_statfs=yes
16675
16676else
16677 echo "configure: failed program was:" >&5
16678 cat conftest.$ac_ext >&5
16679 rm -rf conftest*
16680
16681 wx_cv_func_statfs=no
16682
16683
16684fi
16685rm -f conftest*
16686
16687fi
16688
16689echo "$ac_t""$wx_cv_func_statfs" 1>&6
16690
16691if test "$wx_cv_func_statfs" = "yes"; then
16692 cat >> confdefs.h <<\EOF
16693#define HAVE_STATFS 1
16694EOF
16695
16696else
16697 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16698echo "configure:16699: checking for statvfs" >&5
16699if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16700 echo $ac_n "(cached) $ac_c" 1>&6
16701else
16702 cat > conftest.$ac_ext <<EOF
16703#line 16704 "configure"
16704#include "confdefs.h"
16705
16706 #include <sys/statvfs.h>
16707
16708int main() {
16709
16710 long l;
16711 struct statvfs fs;
16712 statvfs("/", &fs);
16713 l = fs.f_bsize;
16714 l += fs.f_blocks;
16715 l += fs.f_bavail;
16716
16717; return 0; }
16718EOF
16719if { (eval echo configure:16720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16720 rm -rf conftest*
16721
16722 wx_cv_func_statvfs=yes
16723
16724else
16725 echo "configure: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 rm -rf conftest*
16728
16729 wx_cv_func_statvfs=no
16730
16731
16732fi
16733rm -f conftest*
16734
16735fi
16736
16737echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16738
16739 if test "$wx_cv_func_statvfs" = "yes"; then
16740 cat >> confdefs.h <<\EOF
16741#define HAVE_STATVFS 1
16742EOF
16743
16744 else
16745 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16746 fi
16747fi
16748
16749if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16750 for ac_func in fcntl flock
16751do
16752echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16753echo "configure:16754: checking for $ac_func" >&5
16754if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16755 echo $ac_n "(cached) $ac_c" 1>&6
16756else
16757 cat > conftest.$ac_ext <<EOF
16758#line 16759 "configure"
16759#include "confdefs.h"
16760/* System header to define __stub macros and hopefully few prototypes,
16761 which can conflict with char $ac_func(); below. */
16762#include <assert.h>
16763/* Override any gcc2 internal prototype to avoid an error. */
16764/* We use char because int might match the return type of a gcc2
16765 builtin and then its argument prototype would still apply. */
16766char $ac_func();
16767
16768int main() {
16769
16770/* The GNU C library defines this for functions which it implements
16771 to always fail with ENOSYS. Some functions are actually named
16772 something starting with __ and the normal name is an alias. */
16773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16774choke me
16775#else
16776$ac_func();
16777#endif
16778
16779; return 0; }
16780EOF
16781if { (eval echo configure:16782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16782 rm -rf conftest*
16783 eval "ac_cv_func_$ac_func=yes"
16784else
16785 echo "configure: failed program was:" >&5
16786 cat conftest.$ac_ext >&5
16787 rm -rf conftest*
16788 eval "ac_cv_func_$ac_func=no"
16789fi
16790rm -f conftest*
16791fi
16792
16793if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16794 echo "$ac_t""yes" 1>&6
16795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16796 cat >> confdefs.h <<EOF
16797#define $ac_tr_func 1
16798EOF
16799 break
16800else
16801 echo "$ac_t""no" 1>&6
16802fi
16803done
16804
16805
16806 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16807 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16808 wxUSE_SNGLINST_CHECKER=no
16809 fi
16810fi
16811
16812for ac_func in timegm
16813do
16814echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16815echo "configure:16816: checking for $ac_func" >&5
16816if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16817 echo $ac_n "(cached) $ac_c" 1>&6
16818else
16819 cat > conftest.$ac_ext <<EOF
16820#line 16821 "configure"
16821#include "confdefs.h"
16822/* System header to define __stub macros and hopefully few prototypes,
16823 which can conflict with char $ac_func(); below. */
16824#include <assert.h>
16825/* Override any gcc2 internal prototype to avoid an error. */
16826/* We use char because int might match the return type of a gcc2
16827 builtin and then its argument prototype would still apply. */
16828char $ac_func();
16829
16830int main() {
16831
16832/* The GNU C library defines this for functions which it implements
16833 to always fail with ENOSYS. Some functions are actually named
16834 something starting with __ and the normal name is an alias. */
16835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16836choke me
16837#else
16838$ac_func();
16839#endif
16840
16841; return 0; }
16842EOF
16843if { (eval echo configure:16844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16844 rm -rf conftest*
16845 eval "ac_cv_func_$ac_func=yes"
16846else
16847 echo "configure: failed program was:" >&5
16848 cat conftest.$ac_ext >&5
16849 rm -rf conftest*
16850 eval "ac_cv_func_$ac_func=no"
16851fi
16852rm -f conftest*
16853fi
16854
16855if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16856 echo "$ac_t""yes" 1>&6
16857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16858 cat >> confdefs.h <<EOF
16859#define $ac_tr_func 1
16860EOF
16861
16862else
16863 echo "$ac_t""no" 1>&6
16864fi
16865done
16866
16867
16868for ac_func in putenv setenv
16869do
16870echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16871echo "configure:16872: checking for $ac_func" >&5
16872if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16873 echo $ac_n "(cached) $ac_c" 1>&6
16874else
16875 cat > conftest.$ac_ext <<EOF
16876#line 16877 "configure"
16877#include "confdefs.h"
16878/* System header to define __stub macros and hopefully few prototypes,
16879 which can conflict with char $ac_func(); below. */
16880#include <assert.h>
16881/* Override any gcc2 internal prototype to avoid an error. */
16882/* We use char because int might match the return type of a gcc2
16883 builtin and then its argument prototype would still apply. */
16884char $ac_func();
16885
16886int main() {
16887
16888/* The GNU C library defines this for functions which it implements
16889 to always fail with ENOSYS. Some functions are actually named
16890 something starting with __ and the normal name is an alias. */
16891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16892choke me
16893#else
16894$ac_func();
16895#endif
16896
16897; return 0; }
16898EOF
16899if { (eval echo configure:16900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16900 rm -rf conftest*
16901 eval "ac_cv_func_$ac_func=yes"
16902else
16903 echo "configure: failed program was:" >&5
16904 cat conftest.$ac_ext >&5
16905 rm -rf conftest*
16906 eval "ac_cv_func_$ac_func=no"
16907fi
16908rm -f conftest*
16909fi
16910
16911if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16912 echo "$ac_t""yes" 1>&6
16913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16914 cat >> confdefs.h <<EOF
16915#define $ac_tr_func 1
16916EOF
16917 break
16918else
16919 echo "$ac_t""no" 1>&6
16920fi
16921done
16922
16923
16924HAVE_SOME_SLEEP_FUNC=0
16925if test "$USE_BEOS" = 1; then
16926 cat >> confdefs.h <<\EOF
16927#define HAVE_SLEEP 1
16928EOF
16929
16930 HAVE_SOME_SLEEP_FUNC=1
16931fi
16932
16933if test "$USE_DARWIN" = 1; then
16934 cat >> confdefs.h <<\EOF
16935#define HAVE_USLEEP 1
16936EOF
16937
16938 HAVE_SOME_SLEEP_FUNC=1
16939fi
16940
16941if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16942 POSIX4_LINK=
16943 for ac_func in nanosleep
16944do
16945echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16946echo "configure:16947: checking for $ac_func" >&5
16947if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16948 echo $ac_n "(cached) $ac_c" 1>&6
16949else
16950 cat > conftest.$ac_ext <<EOF
16951#line 16952 "configure"
16952#include "confdefs.h"
16953/* System header to define __stub macros and hopefully few prototypes,
16954 which can conflict with char $ac_func(); below. */
16955#include <assert.h>
16956/* Override any gcc2 internal prototype to avoid an error. */
16957/* We use char because int might match the return type of a gcc2
16958 builtin and then its argument prototype would still apply. */
16959char $ac_func();
16960
16961int main() {
16962
16963/* The GNU C library defines this for functions which it implements
16964 to always fail with ENOSYS. Some functions are actually named
16965 something starting with __ and the normal name is an alias. */
16966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16967choke me
16968#else
16969$ac_func();
16970#endif
16971
16972; return 0; }
16973EOF
16974if { (eval echo configure:16975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16975 rm -rf conftest*
16976 eval "ac_cv_func_$ac_func=yes"
16977else
16978 echo "configure: failed program was:" >&5
16979 cat conftest.$ac_ext >&5
16980 rm -rf conftest*
16981 eval "ac_cv_func_$ac_func=no"
16982fi
16983rm -f conftest*
16984fi
16985
16986if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16987 echo "$ac_t""yes" 1>&6
16988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16989 cat >> confdefs.h <<EOF
16990#define $ac_tr_func 1
16991EOF
16992 cat >> confdefs.h <<\EOF
16993#define HAVE_NANOSLEEP 1
16994EOF
16995
16996else
16997 echo "$ac_t""no" 1>&6
16998echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16999echo "configure:17000: checking for nanosleep in -lposix4" >&5
17000ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17001if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17002 echo $ac_n "(cached) $ac_c" 1>&6
17003else
17004 ac_save_LIBS="$LIBS"
17005LIBS="-lposix4 $LIBS"
17006cat > conftest.$ac_ext <<EOF
17007#line 17008 "configure"
17008#include "confdefs.h"
17009/* Override any gcc2 internal prototype to avoid an error. */
17010/* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
17012char nanosleep();
17013
17014int main() {
17015nanosleep()
17016; return 0; }
17017EOF
17018if { (eval echo configure:17019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17019 rm -rf conftest*
17020 eval "ac_cv_lib_$ac_lib_var=yes"
17021else
17022 echo "configure: failed program was:" >&5
17023 cat conftest.$ac_ext >&5
17024 rm -rf conftest*
17025 eval "ac_cv_lib_$ac_lib_var=no"
17026fi
17027rm -f conftest*
17028LIBS="$ac_save_LIBS"
17029
17030fi
17031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17032 echo "$ac_t""yes" 1>&6
17033
17034 cat >> confdefs.h <<\EOF
17035#define HAVE_NANOSLEEP 1
17036EOF
17037
17038 POSIX4_LINK=" -lposix4"
17039
17040else
17041 echo "$ac_t""no" 1>&6
17042
17043 for ac_func in usleep
17044do
17045echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17046echo "configure:17047: checking for $ac_func" >&5
17047if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17048 echo $ac_n "(cached) $ac_c" 1>&6
17049else
17050 cat > conftest.$ac_ext <<EOF
17051#line 17052 "configure"
17052#include "confdefs.h"
17053/* System header to define __stub macros and hopefully few prototypes,
17054 which can conflict with char $ac_func(); below. */
17055#include <assert.h>
17056/* Override any gcc2 internal prototype to avoid an error. */
17057/* We use char because int might match the return type of a gcc2
17058 builtin and then its argument prototype would still apply. */
17059char $ac_func();
17060
17061int main() {
17062
17063/* The GNU C library defines this for functions which it implements
17064 to always fail with ENOSYS. Some functions are actually named
17065 something starting with __ and the normal name is an alias. */
17066#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17067choke me
17068#else
17069$ac_func();
17070#endif
17071
17072; return 0; }
17073EOF
17074if { (eval echo configure:17075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17075 rm -rf conftest*
17076 eval "ac_cv_func_$ac_func=yes"
17077else
17078 echo "configure: failed program was:" >&5
17079 cat conftest.$ac_ext >&5
17080 rm -rf conftest*
17081 eval "ac_cv_func_$ac_func=no"
17082fi
17083rm -f conftest*
17084fi
17085
17086if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17087 echo "$ac_t""yes" 1>&6
17088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17089 cat >> confdefs.h <<EOF
17090#define $ac_tr_func 1
17091EOF
17092 cat >> confdefs.h <<\EOF
17093#define HAVE_USLEEP 1
17094EOF
17095
17096else
17097 echo "$ac_t""no" 1>&6
17098echo "configure: warning: wxSleep() function will not work" 1>&2
17099
17100fi
17101done
17102
17103
17104
17105fi
17106
17107
17108
17109fi
17110done
17111
17112fi
17113
17114for ac_func in uname gethostname
17115do
17116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17117echo "configure:17118: checking for $ac_func" >&5
17118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17119 echo $ac_n "(cached) $ac_c" 1>&6
17120else
17121 cat > conftest.$ac_ext <<EOF
17122#line 17123 "configure"
17123#include "confdefs.h"
17124/* System header to define __stub macros and hopefully few prototypes,
17125 which can conflict with char $ac_func(); below. */
17126#include <assert.h>
17127/* Override any gcc2 internal prototype to avoid an error. */
17128/* We use char because int might match the return type of a gcc2
17129 builtin and then its argument prototype would still apply. */
17130char $ac_func();
17131
17132int main() {
17133
17134/* The GNU C library defines this for functions which it implements
17135 to always fail with ENOSYS. Some functions are actually named
17136 something starting with __ and the normal name is an alias. */
17137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17138choke me
17139#else
17140$ac_func();
17141#endif
17142
17143; return 0; }
17144EOF
17145if { (eval echo configure:17146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17146 rm -rf conftest*
17147 eval "ac_cv_func_$ac_func=yes"
17148else
17149 echo "configure: failed program was:" >&5
17150 cat conftest.$ac_ext >&5
17151 rm -rf conftest*
17152 eval "ac_cv_func_$ac_func=no"
17153fi
17154rm -f conftest*
17155fi
17156
17157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17158 echo "$ac_t""yes" 1>&6
17159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17160 cat >> confdefs.h <<EOF
17161#define $ac_tr_func 1
17162EOF
17163 break
17164else
17165 echo "$ac_t""no" 1>&6
17166fi
17167done
17168
17169
17170
17171ac_ext=C
17172# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17173ac_cpp='$CXXCPP $CPPFLAGS'
17174ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17175ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17176cross_compiling=$ac_cv_prog_cxx_cross
17177
17178
17179for ac_func in strtok_r
17180do
17181echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17182echo "configure:17183: checking for $ac_func" >&5
17183if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17184 echo $ac_n "(cached) $ac_c" 1>&6
17185else
17186 cat > conftest.$ac_ext <<EOF
17187#line 17188 "configure"
17188#include "confdefs.h"
17189/* System header to define __stub macros and hopefully few prototypes,
17190 which can conflict with char $ac_func(); below. */
17191#include <assert.h>
17192/* Override any gcc2 internal prototype to avoid an error. */
17193#ifdef __cplusplus
17194extern "C"
17195#endif
17196/* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
17198char $ac_func();
17199
17200int main() {
17201
17202/* The GNU C library defines this for functions which it implements
17203 to always fail with ENOSYS. Some functions are actually named
17204 something starting with __ and the normal name is an alias. */
17205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17206choke me
17207#else
17208$ac_func();
17209#endif
17210
17211; return 0; }
17212EOF
17213if { (eval echo configure:17214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17214 rm -rf conftest*
17215 eval "ac_cv_func_$ac_func=yes"
17216else
17217 echo "configure: failed program was:" >&5
17218 cat conftest.$ac_ext >&5
17219 rm -rf conftest*
17220 eval "ac_cv_func_$ac_func=no"
17221fi
17222rm -f conftest*
17223fi
17224
17225if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17226 echo "$ac_t""yes" 1>&6
17227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17228 cat >> confdefs.h <<EOF
17229#define $ac_tr_func 1
17230EOF
17231
17232else
17233 echo "$ac_t""no" 1>&6
17234fi
17235done
17236
17237
17238ac_ext=c
17239# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17240ac_cpp='$CPP $CPPFLAGS'
17241ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17242ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17243cross_compiling=$ac_cv_prog_cc_cross
17244
17245
17246INET_LINK=
17247for ac_func in inet_addr
17248do
17249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17250echo "configure:17251: checking for $ac_func" >&5
17251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17252 echo $ac_n "(cached) $ac_c" 1>&6
17253else
17254 cat > conftest.$ac_ext <<EOF
17255#line 17256 "configure"
17256#include "confdefs.h"
17257/* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char $ac_func(); below. */
17259#include <assert.h>
17260/* Override any gcc2 internal prototype to avoid an error. */
17261/* We use char because int might match the return type of a gcc2
17262 builtin and then its argument prototype would still apply. */
17263char $ac_func();
17264
17265int main() {
17266
17267/* The GNU C library defines this for functions which it implements
17268 to always fail with ENOSYS. Some functions are actually named
17269 something starting with __ and the normal name is an alias. */
17270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17271choke me
17272#else
17273$ac_func();
17274#endif
17275
17276; return 0; }
17277EOF
17278if { (eval echo configure:17279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17279 rm -rf conftest*
17280 eval "ac_cv_func_$ac_func=yes"
17281else
17282 echo "configure: failed program was:" >&5
17283 cat conftest.$ac_ext >&5
17284 rm -rf conftest*
17285 eval "ac_cv_func_$ac_func=no"
17286fi
17287rm -f conftest*
17288fi
17289
17290if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17291 echo "$ac_t""yes" 1>&6
17292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17293 cat >> confdefs.h <<EOF
17294#define $ac_tr_func 1
17295EOF
17296 cat >> confdefs.h <<\EOF
17297#define HAVE_INET_ADDR 1
17298EOF
17299
17300else
17301 echo "$ac_t""no" 1>&6
17302echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17303echo "configure:17304: checking for inet_addr in -lnsl" >&5
17304ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17305if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17306 echo $ac_n "(cached) $ac_c" 1>&6
17307else
17308 ac_save_LIBS="$LIBS"
17309LIBS="-lnsl $LIBS"
17310cat > conftest.$ac_ext <<EOF
17311#line 17312 "configure"
17312#include "confdefs.h"
17313/* Override any gcc2 internal prototype to avoid an error. */
17314/* We use char because int might match the return type of a gcc2
17315 builtin and then its argument prototype would still apply. */
17316char inet_addr();
17317
17318int main() {
17319inet_addr()
17320; return 0; }
17321EOF
17322if { (eval echo configure:17323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17323 rm -rf conftest*
17324 eval "ac_cv_lib_$ac_lib_var=yes"
17325else
17326 echo "configure: failed program was:" >&5
17327 cat conftest.$ac_ext >&5
17328 rm -rf conftest*
17329 eval "ac_cv_lib_$ac_lib_var=no"
17330fi
17331rm -f conftest*
17332LIBS="$ac_save_LIBS"
17333
17334fi
17335if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17336 echo "$ac_t""yes" 1>&6
17337 INET_LINK="nsl"
17338else
17339 echo "$ac_t""no" 1>&6
17340echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17341echo "configure:17342: checking for inet_addr in -lresolv" >&5
17342ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17343if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17344 echo $ac_n "(cached) $ac_c" 1>&6
17345else
17346 ac_save_LIBS="$LIBS"
17347LIBS="-lresolv $LIBS"
17348cat > conftest.$ac_ext <<EOF
17349#line 17350 "configure"
17350#include "confdefs.h"
17351/* Override any gcc2 internal prototype to avoid an error. */
17352/* We use char because int might match the return type of a gcc2
17353 builtin and then its argument prototype would still apply. */
17354char inet_addr();
17355
17356int main() {
17357inet_addr()
17358; return 0; }
17359EOF
17360if { (eval echo configure:17361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17361 rm -rf conftest*
17362 eval "ac_cv_lib_$ac_lib_var=yes"
17363else
17364 echo "configure: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 rm -rf conftest*
17367 eval "ac_cv_lib_$ac_lib_var=no"
17368fi
17369rm -f conftest*
17370LIBS="$ac_save_LIBS"
17371
17372fi
17373if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17374 echo "$ac_t""yes" 1>&6
17375 INET_LINK="resolv"
17376else
17377 echo "$ac_t""no" 1>&6
17378echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17379echo "configure:17380: checking for inet_addr in -lsocket" >&5
17380ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17381if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17382 echo $ac_n "(cached) $ac_c" 1>&6
17383else
17384 ac_save_LIBS="$LIBS"
17385LIBS="-lsocket $LIBS"
17386cat > conftest.$ac_ext <<EOF
17387#line 17388 "configure"
17388#include "confdefs.h"
17389/* Override any gcc2 internal prototype to avoid an error. */
17390/* We use char because int might match the return type of a gcc2
17391 builtin and then its argument prototype would still apply. */
17392char inet_addr();
17393
17394int main() {
17395inet_addr()
17396; return 0; }
17397EOF
17398if { (eval echo configure:17399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17399 rm -rf conftest*
17400 eval "ac_cv_lib_$ac_lib_var=yes"
17401else
17402 echo "configure: failed program was:" >&5
17403 cat conftest.$ac_ext >&5
17404 rm -rf conftest*
17405 eval "ac_cv_lib_$ac_lib_var=no"
17406fi
17407rm -f conftest*
17408LIBS="$ac_save_LIBS"
17409
17410fi
17411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17412 echo "$ac_t""yes" 1>&6
17413 INET_LINK="socket"
17414
17415else
17416 echo "$ac_t""no" 1>&6
17417fi
17418
17419
17420fi
17421
17422
17423fi
17424
17425
17426
17427fi
17428done
17429
17430
17431for ac_func in inet_aton
17432do
17433echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17434echo "configure:17435: checking for $ac_func" >&5
17435if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17436 echo $ac_n "(cached) $ac_c" 1>&6
17437else
17438 cat > conftest.$ac_ext <<EOF
17439#line 17440 "configure"
17440#include "confdefs.h"
17441/* System header to define __stub macros and hopefully few prototypes,
17442 which can conflict with char $ac_func(); below. */
17443#include <assert.h>
17444/* Override any gcc2 internal prototype to avoid an error. */
17445/* We use char because int might match the return type of a gcc2
17446 builtin and then its argument prototype would still apply. */
17447char $ac_func();
17448
17449int main() {
17450
17451/* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17455choke me
17456#else
17457$ac_func();
17458#endif
17459
17460; return 0; }
17461EOF
17462if { (eval echo configure:17463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17463 rm -rf conftest*
17464 eval "ac_cv_func_$ac_func=yes"
17465else
17466 echo "configure: failed program was:" >&5
17467 cat conftest.$ac_ext >&5
17468 rm -rf conftest*
17469 eval "ac_cv_func_$ac_func=no"
17470fi
17471rm -f conftest*
17472fi
17473
17474if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17475 echo "$ac_t""yes" 1>&6
17476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17477 cat >> confdefs.h <<EOF
17478#define $ac_tr_func 1
17479EOF
17480 cat >> confdefs.h <<\EOF
17481#define HAVE_INET_ATON 1
17482EOF
17483
17484else
17485 echo "$ac_t""no" 1>&6
17486 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17487echo "configure:17488: checking for inet_aton in -l$INET_LINK" >&5
17488ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17490 echo $ac_n "(cached) $ac_c" 1>&6
17491else
17492 ac_save_LIBS="$LIBS"
17493LIBS="-l$INET_LINK $LIBS"
17494cat > conftest.$ac_ext <<EOF
17495#line 17496 "configure"
17496#include "confdefs.h"
17497/* Override any gcc2 internal prototype to avoid an error. */
17498/* We use char because int might match the return type of a gcc2
17499 builtin and then its argument prototype would still apply. */
17500char inet_aton();
17501
17502int main() {
17503inet_aton()
17504; return 0; }
17505EOF
17506if { (eval echo configure:17507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17507 rm -rf conftest*
17508 eval "ac_cv_lib_$ac_lib_var=yes"
17509else
17510 echo "configure: failed program was:" >&5
17511 cat conftest.$ac_ext >&5
17512 rm -rf conftest*
17513 eval "ac_cv_lib_$ac_lib_var=no"
17514fi
17515rm -f conftest*
17516LIBS="$ac_save_LIBS"
17517
17518fi
17519if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17520 echo "$ac_t""yes" 1>&6
17521 cat >> confdefs.h <<\EOF
17522#define HAVE_INET_ATON 1
17523EOF
17524
17525else
17526 echo "$ac_t""no" 1>&6
17527fi
17528
17529
17530fi
17531done
17532
17533
17534if test "x$INET_LINK" != "x"; then
17535 cat >> confdefs.h <<\EOF
17536#define HAVE_INET_ADDR 1
17537EOF
17538
17539 INET_LINK=" -l$INET_LINK"
17540fi
17541
17542fi
17543
17544
17545cat > confcache <<\EOF
17546# This file is a shell script that caches the results of configure
17547# tests run on this system so they can be shared between configure
17548# scripts and configure runs. It is not useful on other systems.
17549# If it contains results you don't want to keep, you may remove or edit it.
17550#
17551# By default, configure uses ./config.cache as the cache file,
17552# creating it if it does not exist already. You can give configure
17553# the --cache-file=FILE option to use a different cache file; that is
17554# what configure does when it calls configure scripts in
17555# subdirectories, so they share the cache.
17556# Giving --cache-file=/dev/null disables caching, for debugging configure.
17557# config.status only pays attention to the cache file if you give it the
17558# --recheck option to rerun configure.
17559#
17560EOF
17561# The following way of writing the cache mishandles newlines in values,
17562# but we know of no workaround that is simple, portable, and efficient.
17563# So, don't put newlines in cache variables' values.
17564# Ultrix sh set writes to stderr and can't be redirected directly,
17565# and sets the high bit in the cache file unless we assign to the vars.
17566(set) 2>&1 |
17567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17568 *ac_space=\ *)
17569 # `set' does not quote correctly, so add quotes (double-quote substitution
17570 # turns \\\\ into \\, and sed turns \\ into \).
17571 sed -n \
17572 -e "s/'/'\\\\''/g" \
17573 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17574 ;;
17575 *)
17576 # `set' quotes correctly as required by POSIX, so do not add quotes.
17577 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17578 ;;
17579 esac >> confcache
17580if cmp -s $cache_file confcache; then
17581 :
17582else
17583 if test -w $cache_file; then
17584 echo "updating cache $cache_file"
17585 cat confcache > $cache_file
17586 else
17587 echo "not updating unwritable cache $cache_file"
17588 fi
17589fi
17590rm -f confcache
17591
17592
17593
17594CPP_MT_FLAG=
17595if test "$TOOLKIT" != "MSW"; then
17596
17597
17598 THREADS_LINK=
17599 THREADS_CFLAGS=
17600
17601 if test "$wxUSE_THREADS" = "yes" ; then
17602 if test "$wxUSE_WINE" = 1 ; then
17603 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17604 wxUSE_THREADS="no"
17605 elif test "$USE_BEOS" = 1; then
17606 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17607 wxUSE_THREADS="no"
17608 fi
17609 fi
17610
17611 if test "$wxUSE_THREADS" = "yes" ; then
17612
17613
17614 THREAD_OPTS="-pthread"
17615 case "${host}" in
17616 *-*-solaris2* | *-*-sunos4* )
17617 if test "x$GCC" = "xyes"; then
17618 THREAD_OPTS="-pthreads $THREAD_OPTS"
17619 else
17620 THREAD_OPTS="-mt $THREAD_OPTS"
17621 fi
17622 ;;
17623 *-*-freebsd*)
17624 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17625 ;;
17626 *-*-darwin* | *-*-cygwin* )
17627 THREAD_OPTS=""
17628 ;;
17629 *-*-aix*)
17630 THREAD_OPTS="pthreads"
17631 ;;
17632 esac
17633
17634 THREAD_OPTS="$THREAD_OPTS pthread none"
17635
17636 THREADS_OK=no
17637 for flag in $THREAD_OPTS; do
17638 case $flag in
17639 none)
17640 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17641echo "configure:17642: checking whether pthreads work without any flags" >&5
17642 ;;
17643
17644 -*)
17645 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17646echo "configure:17647: checking whether pthreads work with $flag" >&5
17647 THREADS_CFLAGS="$flag"
17648 ;;
17649
17650 *)
17651 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17652echo "configure:17653: checking for the pthreads library -l$flag" >&5
17653 THREADS_LINK="-l$flag"
17654 ;;
17655 esac
17656
17657 save_LIBS="$LIBS"
17658 save_CFLAGS="$CFLAGS"
17659 LIBS="$THREADS_LINK $LIBS"
17660 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17661
17662 cat > conftest.$ac_ext <<EOF
17663#line 17664 "configure"
17664#include "confdefs.h"
17665#include <pthread.h>
17666int main() {
17667pthread_create(0,0,0,0);
17668; return 0; }
17669EOF
17670if { (eval echo configure:17671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17671 rm -rf conftest*
17672 THREADS_OK=yes
17673else
17674 echo "configure: failed program was:" >&5
17675 cat conftest.$ac_ext >&5
17676fi
17677rm -f conftest*
17678
17679 LIBS="$save_LIBS"
17680 CFLAGS="$save_CFLAGS"
17681
17682 echo "$ac_t""$THREADS_OK" 1>&6
17683 if test "x$THREADS_OK" = "xyes"; then
17684 break;
17685 fi
17686
17687 THREADS_LINK=""
17688 THREADS_CFLAGS=""
17689 done
17690
17691 if test "x$THREADS_OK" != "xyes"; then
17692 wxUSE_THREADS=no
17693 echo "configure: warning: No thread support on this system... disabled" 1>&2
17694 else
17695 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17696
17697 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17698echo "configure:17699: checking if more special flags are required for pthreads" >&5
17699 flag=no
17700 case "${host}" in
17701 *-aix* | *-freebsd*)
17702 flag="-D_THREAD_SAFE"
17703 ;;
17704 *solaris* | alpha*-osf*)
17705 flag="-D_REENTRANT"
17706 ;;
17707 esac
17708 echo "$ac_t""${flag}" 1>&6
17709 if test "x$flag" != xno; then
17710 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17711 fi
17712
17713 if test "x$THREADS_CFLAGS" != "x"; then
17714 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17715 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17716 fi
17717 fi
17718 fi
17719
17720 if test "$wxUSE_THREADS" = "yes" ; then
17721 for ac_func in thr_setconcurrency
17722do
17723echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17724echo "configure:17725: checking for $ac_func" >&5
17725if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17726 echo $ac_n "(cached) $ac_c" 1>&6
17727else
17728 cat > conftest.$ac_ext <<EOF
17729#line 17730 "configure"
17730#include "confdefs.h"
17731/* System header to define __stub macros and hopefully few prototypes,
17732 which can conflict with char $ac_func(); below. */
17733#include <assert.h>
17734/* Override any gcc2 internal prototype to avoid an error. */
17735/* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17737char $ac_func();
17738
17739int main() {
17740
17741/* The GNU C library defines this for functions which it implements
17742 to always fail with ENOSYS. Some functions are actually named
17743 something starting with __ and the normal name is an alias. */
17744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17745choke me
17746#else
17747$ac_func();
17748#endif
17749
17750; return 0; }
17751EOF
17752if { (eval echo configure:17753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17753 rm -rf conftest*
17754 eval "ac_cv_func_$ac_func=yes"
17755else
17756 echo "configure: failed program was:" >&5
17757 cat conftest.$ac_ext >&5
17758 rm -rf conftest*
17759 eval "ac_cv_func_$ac_func=no"
17760fi
17761rm -f conftest*
17762fi
17763
17764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17765 echo "$ac_t""yes" 1>&6
17766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17767 cat >> confdefs.h <<EOF
17768#define $ac_tr_func 1
17769EOF
17770
17771else
17772 echo "$ac_t""no" 1>&6
17773fi
17774done
17775
17776
17777 for ac_hdr in sched.h
17778do
17779ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17780echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17781echo "configure:17782: checking for $ac_hdr" >&5
17782if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17783 echo $ac_n "(cached) $ac_c" 1>&6
17784else
17785 cat > conftest.$ac_ext <<EOF
17786#line 17787 "configure"
17787#include "confdefs.h"
17788#include <$ac_hdr>
17789EOF
17790ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17791{ (eval echo configure:17792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17792ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17793if test -z "$ac_err"; then
17794 rm -rf conftest*
17795 eval "ac_cv_header_$ac_safe=yes"
17796else
17797 echo "$ac_err" >&5
17798 echo "configure: failed program was:" >&5
17799 cat conftest.$ac_ext >&5
17800 rm -rf conftest*
17801 eval "ac_cv_header_$ac_safe=no"
17802fi
17803rm -f conftest*
17804fi
17805if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17806 echo "$ac_t""yes" 1>&6
17807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17808 cat >> confdefs.h <<EOF
17809#define $ac_tr_hdr 1
17810EOF
17811
17812else
17813 echo "$ac_t""no" 1>&6
17814fi
17815done
17816
17817 if test "$ac_cv_header_sched_h" = "yes"; then
17818 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17819echo "configure:17820: checking for sched_yield" >&5
17820if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17821 echo $ac_n "(cached) $ac_c" 1>&6
17822else
17823 cat > conftest.$ac_ext <<EOF
17824#line 17825 "configure"
17825#include "confdefs.h"
17826/* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char sched_yield(); below. */
17828#include <assert.h>
17829/* Override any gcc2 internal prototype to avoid an error. */
17830/* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
17832char sched_yield();
17833
17834int main() {
17835
17836/* The GNU C library defines this for functions which it implements
17837 to always fail with ENOSYS. Some functions are actually named
17838 something starting with __ and the normal name is an alias. */
17839#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17840choke me
17841#else
17842sched_yield();
17843#endif
17844
17845; return 0; }
17846EOF
17847if { (eval echo configure:17848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17848 rm -rf conftest*
17849 eval "ac_cv_func_sched_yield=yes"
17850else
17851 echo "configure: failed program was:" >&5
17852 cat conftest.$ac_ext >&5
17853 rm -rf conftest*
17854 eval "ac_cv_func_sched_yield=no"
17855fi
17856rm -f conftest*
17857fi
17858
17859if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17860 echo "$ac_t""yes" 1>&6
17861 cat >> confdefs.h <<\EOF
17862#define HAVE_SCHED_YIELD 1
17863EOF
17864
17865else
17866 echo "$ac_t""no" 1>&6
17867
17868 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17869echo "configure:17870: checking for sched_yield in -lposix4" >&5
17870ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17871if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17872 echo $ac_n "(cached) $ac_c" 1>&6
17873else
17874 ac_save_LIBS="$LIBS"
17875LIBS="-lposix4 $LIBS"
17876cat > conftest.$ac_ext <<EOF
17877#line 17878 "configure"
17878#include "confdefs.h"
17879/* Override any gcc2 internal prototype to avoid an error. */
17880/* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882char sched_yield();
17883
17884int main() {
17885sched_yield()
17886; return 0; }
17887EOF
17888if { (eval echo configure:17889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17889 rm -rf conftest*
17890 eval "ac_cv_lib_$ac_lib_var=yes"
17891else
17892 echo "configure: failed program was:" >&5
17893 cat conftest.$ac_ext >&5
17894 rm -rf conftest*
17895 eval "ac_cv_lib_$ac_lib_var=no"
17896fi
17897rm -f conftest*
17898LIBS="$ac_save_LIBS"
17899
17900fi
17901if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17902 echo "$ac_t""yes" 1>&6
17903 cat >> confdefs.h <<\EOF
17904#define HAVE_SCHED_YIELD 1
17905EOF
17906 POSIX4_LINK=" -lposix4"
17907else
17908 echo "$ac_t""no" 1>&6
17909echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17910
17911fi
17912
17913
17914
17915fi
17916
17917 fi
17918
17919 HAVE_PRIOR_FUNCS=0
17920 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17921echo "configure:17922: checking for pthread_attr_getschedpolicy" >&5
17922if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17923 echo $ac_n "(cached) $ac_c" 1>&6
17924else
17925 cat > conftest.$ac_ext <<EOF
17926#line 17927 "configure"
17927#include "confdefs.h"
17928/* System header to define __stub macros and hopefully few prototypes,
17929 which can conflict with char pthread_attr_getschedpolicy(); below. */
17930#include <assert.h>
17931/* Override any gcc2 internal prototype to avoid an error. */
17932/* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
17934char pthread_attr_getschedpolicy();
17935
17936int main() {
17937
17938/* The GNU C library defines this for functions which it implements
17939 to always fail with ENOSYS. Some functions are actually named
17940 something starting with __ and the normal name is an alias. */
17941#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17942choke me
17943#else
17944pthread_attr_getschedpolicy();
17945#endif
17946
17947; return 0; }
17948EOF
17949if { (eval echo configure:17950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17950 rm -rf conftest*
17951 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17952else
17953 echo "configure: failed program was:" >&5
17954 cat conftest.$ac_ext >&5
17955 rm -rf conftest*
17956 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17957fi
17958rm -f conftest*
17959fi
17960
17961if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17962 echo "$ac_t""yes" 1>&6
17963 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17964echo "configure:17965: checking for pthread_attr_setschedparam" >&5
17965if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+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 pthread_attr_setschedparam(); 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 pthread_attr_setschedparam();
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_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17985choke me
17986#else
17987pthread_attr_setschedparam();
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_pthread_attr_setschedparam=yes"
17995else
17996 echo "configure: failed program was:" >&5
17997 cat conftest.$ac_ext >&5
17998 rm -rf conftest*
17999 eval "ac_cv_func_pthread_attr_setschedparam=no"
18000fi
18001rm -f conftest*
18002fi
18003
18004if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18005 echo "$ac_t""yes" 1>&6
18006 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18007echo "configure:18008: checking for sched_get_priority_max" >&5
18008if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18009 echo $ac_n "(cached) $ac_c" 1>&6
18010else
18011 cat > conftest.$ac_ext <<EOF
18012#line 18013 "configure"
18013#include "confdefs.h"
18014/* System header to define __stub macros and hopefully few prototypes
18015else
18016 echo "$ac_t""no" 1>&6
18017which can conflict with char sched_get_priority_max(); below. */
18018#include <assert.h>
18019/* Override any gcc2 internal prototype to avoid an error. */
18020/* We use char because int might match the return type of a gcc2
18021 builtin and then its argument prototype would still apply. */
18022char sched_get_priority_max();
18023
18024int main() {
18025
18026/* The GNU C library defines this for functions which it implements
18027 to always fail with ENOSYS. Some functions are actually named
18028 something starting with __ and the normal name is an alias. */
18029#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18030choke me
18031#else
18032sched_get_priority_max();
18033#endif
18034
18035; return 0; }
18036EOF
18037if { (eval echo configure:18038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18038 rm -rf conftest*
18039 eval "ac_cv_func_sched_get_priority_max=yes"
18040else
18041 echo "configure: failed program was:" >&5
18042 cat conftest.$ac_ext >&5
18043 rm -rf conftest*
18044 eval "ac_cv_func_sched_get_priority_max=no"
18045fi
18046rm -f conftest*
18047fi
18048
18049if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18050 echo "$ac_t""yes" 1>&6
18051 HAVE_PRIOR_FUNCS=1
18052else
18053 echo "$ac_t""no" 1>&6
18054echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18055echo "configure:18056: checking for sched_get_priority_max in -lposix4" >&5
18056ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18057if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18058 echo $ac_n "(cached) $ac_c" 1>&6
18059else
18060 ac_save_LIBS="$LIBS"
18061LIBS="-lposix4 $LIBS"
18062cat > conftest.$ac_ext <<EOF
18063#line 18064 "configure"
18064#include "confdefs.h"
18065/* Override any gcc2 internal prototype to avoid an error. */
18066/* We use char because int might match the return type of a gcc2
18067 builtin and then its argument prototype would still apply. */
18068char sched_get_priority_max();
18069
18070int main() {
18071sched_get_priority_max()
18072; return 0; }
18073EOF
18074if { (eval echo configure:18075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18075 rm -rf conftest*
18076 eval "ac_cv_lib_$ac_lib_var=yes"
18077else
18078 echo "configure: failed program was:" >&5
18079 cat conftest.$ac_ext >&5
18080 rm -rf conftest*
18081 eval "ac_cv_lib_$ac_lib_var=no"
18082fi
18083rm -f conftest*
18084LIBS="$ac_save_LIBS"
18085
18086fi
18087if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18088 echo "$ac_t""yes" 1>&6
18089
18090 HAVE_PRIOR_FUNCS=1
18091 POSIX4_LINK=" -lposix4"
18092
18093else
18094 echo "$ac_t""no" 1>&6
18095fi
18096
18097
18098fi
18099
18100
18101else
18102 echo "$ac_t""no" 1>&6
18103fi
18104
18105
18106fi
18107
18108
18109 if test "$HAVE_PRIOR_FUNCS" = 1; then
18110 cat >> confdefs.h <<\EOF
18111#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18112EOF
18113
18114 else
18115 echo "configure: warning: Setting thread priority will not work" 1>&2
18116 fi
18117
18118 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18119echo "configure:18120: checking for pthread_cancel" >&5
18120if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18121 echo $ac_n "(cached) $ac_c" 1>&6
18122else
18123 cat > conftest.$ac_ext <<EOF
18124#line 18125 "configure"
18125#include "confdefs.h"
18126/* System header to define __stub macros and hopefully few prototypes,
18127 which can conflict with char pthread_cancel(); below. */
18128#include <assert.h>
18129/* Override any gcc2 internal prototype to avoid an error. */
18130/* We use char because int might match the return type of a gcc2
18131 builtin and then its argument prototype would still apply. */
18132char pthread_cancel();
18133
18134int main() {
18135
18136/* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
18139#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18140choke me
18141#else
18142pthread_cancel();
18143#endif
18144
18145; return 0; }
18146EOF
18147if { (eval echo configure:18148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18148 rm -rf conftest*
18149 eval "ac_cv_func_pthread_cancel=yes"
18150else
18151 echo "configure: failed program was:" >&5
18152 cat conftest.$ac_ext >&5
18153 rm -rf conftest*
18154 eval "ac_cv_func_pthread_cancel=no"
18155fi
18156rm -f conftest*
18157fi
18158
18159if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18160 echo "$ac_t""yes" 1>&6
18161 cat >> confdefs.h <<\EOF
18162#define HAVE_PTHREAD_CANCEL 1
18163EOF
18164
18165else
18166 echo "$ac_t""no" 1>&6
18167echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18168fi
18169
18170
18171 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18172echo "configure:18173: checking for pthread_cleanup_push/pop" >&5
18173if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18174 echo $ac_n "(cached) $ac_c" 1>&6
18175else
18176
18177 cat > conftest.$ac_ext <<EOF
18178#line 18179 "configure"
18179#include "confdefs.h"
18180#include <pthread.h>
18181int main() {
18182
18183 pthread_cleanup_push(NULL, NULL);
18184 pthread_cleanup_pop(0);
18185
18186; return 0; }
18187EOF
18188if { (eval echo configure:18189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18189 rm -rf conftest*
18190
18191 wx_cv_func_pthread_cleanup_push=yes
18192
18193else
18194 echo "configure: failed program was:" >&5
18195 cat conftest.$ac_ext >&5
18196 rm -rf conftest*
18197
18198 wx_cv_func_pthread_cleanup_push=no
18199
18200fi
18201rm -f conftest*
18202
18203fi
18204
18205echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18206
18207 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18208 cat >> confdefs.h <<\EOF
18209#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18210EOF
18211
18212 fi
18213
18214
18215 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18216echo "configure:18217: checking for pthread_mutexattr_t" >&5
18217if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18218 echo $ac_n "(cached) $ac_c" 1>&6
18219else
18220
18221 cat > conftest.$ac_ext <<EOF
18222#line 18223 "configure"
18223#include "confdefs.h"
18224#include <pthread.h>
18225int main() {
18226
18227 pthread_mutexattr_t attr;
18228 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18229
18230; return 0; }
18231EOF
18232if { (eval echo configure:18233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18233 rm -rf conftest*
18234
18235 wx_cv_type_pthread_mutexattr_t=yes
18236
18237else
18238 echo "configure: failed program was:" >&5
18239 cat conftest.$ac_ext >&5
18240 rm -rf conftest*
18241
18242 wx_cv_type_pthread_mutexattr_t=no
18243
18244
18245fi
18246rm -f conftest*
18247
18248fi
18249
18250echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18251
18252 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18253 cat >> confdefs.h <<\EOF
18254#define HAVE_PTHREAD_MUTEXATTR_T 1
18255EOF
18256
18257 else
18258 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18259echo "configure:18260: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18260if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18261 echo $ac_n "(cached) $ac_c" 1>&6
18262else
18263
18264 cat > conftest.$ac_ext <<EOF
18265#line 18266 "configure"
18266#include "confdefs.h"
18267#include <pthread.h>
18268int main() {
18269
18270 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18271
18272; return 0; }
18273EOF
18274if { (eval echo configure:18275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18275 rm -rf conftest*
18276
18277 wx_cv_type_pthread_rec_mutex_init=yes
18278
18279else
18280 echo "configure: failed program was:" >&5
18281 cat conftest.$ac_ext >&5
18282 rm -rf conftest*
18283
18284 wx_cv_type_pthread_rec_mutex_init=no
18285
18286
18287fi
18288rm -f conftest*
18289
18290fi
18291
18292echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18293 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18294 cat >> confdefs.h <<\EOF
18295#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18296EOF
18297
18298 else
18299 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18300 fi
18301 fi
18302 fi
18303
18304fi
18305
18306if test "$wxUSE_THREADS" = "yes"; then
18307 cat >> confdefs.h <<\EOF
18308#define wxUSE_THREADS 1
18309EOF
18310
18311
18312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18313else
18314 if test "$ac_cv_func_strtok_r" = "yes"; then
18315 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18316echo "configure:18317: checking if -D_REENTRANT is needed" >&5
18317 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18318 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18319 echo "$ac_t""yes" 1>&6
18320 else
18321 echo "$ac_t""no" 1>&6
18322 fi
18323 fi
18324fi
18325
18326if test "$WXGTK20" = 1 ; then
18327 cat >> confdefs.h <<EOF
18328#define __WXGTK20__ $WXGTK20
18329EOF
18330
18331 WXGTK12=1
18332fi
18333
18334if test "$WXGTK12" = 1 ; then
18335 cat >> confdefs.h <<EOF
18336#define __WXGTK12__ $WXGTK12
18337EOF
18338
18339fi
18340
18341if test "$WXGTK127" = 1 ; then
18342 cat >> confdefs.h <<EOF
18343#define __WXGTK127__ $WXGTK127
18344EOF
18345
18346fi
18347
18348WXDEBUG=
18349
18350if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18351 WXDEBUG="-g"
18352 wxUSE_OPTIMISE=no
18353fi
18354
18355if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18356 wxUSE_DEBUG_INFO=yes
18357 WXDEBUG="-ggdb"
18358fi
18359
18360if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18361 cat >> confdefs.h <<\EOF
18362#define WXDEBUG 1
18363EOF
18364
18365 WXDEBUG_DEFINE="-D__WXDEBUG__"
18366else
18367 if test "$wxUSE_GTK" = 1 ; then
18368 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18369 fi
18370fi
18371
18372if test "$wxUSE_MEM_TRACING" = "yes" ; then
18373 cat >> confdefs.h <<\EOF
18374#define wxUSE_MEMORY_TRACING 1
18375EOF
18376
18377 cat >> confdefs.h <<\EOF
18378#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18379EOF
18380
18381 cat >> confdefs.h <<\EOF
18382#define wxUSE_DEBUG_NEW_ALWAYS 1
18383EOF
18384
18385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18386fi
18387
18388if test "$wxUSE_DMALLOC" = "yes" ; then
18389 DMALLOC_LIBS="-ldmalloc"
18390fi
18391
18392PROFILE=
18393if test "$wxUSE_PROFILE" = "yes" ; then
18394 PROFILE=" -pg"
18395fi
18396
18397CODE_GEN_FLAGS=
18398CODE_GEN_FLAGS_CXX=
18399if test "$GCC" = "yes" ; then
18400 if test "$wxUSE_NO_RTTI" = "yes" ; then
18401 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18402 fi
18403 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18404 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18405 fi
18406 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18407 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18408 fi
18409 if test "$USE_WIN32" = 1 ; then
18410 # I'm not even really sure what this was ever added to solve,
18411 # but someone added it for mingw native builds, so I guess
18412 # they had a reason, right??
18413 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18414 fi
18415
18416 case "${host}" in
18417 powerpc*-*-aix* )
18418 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18419 ;;
18420 esac
18421fi
18422
18423if test "$wxUSE_OPTIMISE" = "no" ; then
18424 OPTIMISE=
18425else
18426 if test "$GCC" = yes ; then
18427 OPTIMISE="-O2"
18428 case "${host}" in
18429 i586-*-*|i686-*-* )
18430 OPTIMISE="${OPTIMISE} "
18431 ;;
18432 esac
18433 else
18434 OPTIMISE="-O"
18435 fi
18436fi
18437
18438if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18439 cat >> confdefs.h <<\EOF
18440#define WXWIN_COMPATIBILITY_2 1
18441EOF
18442
18443
18444 WXWIN_COMPATIBILITY_2_2="yes"
18445fi
18446
18447if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18448 cat >> confdefs.h <<\EOF
18449#define WXWIN_COMPATIBILITY_2_2 1
18450EOF
18451
18452fi
18453
18454
18455if test "$wxUSE_GUI" = "yes"; then
18456 cat >> confdefs.h <<\EOF
18457#define wxUSE_GUI 1
18458EOF
18459
18460
18461 else
18462 cat >> confdefs.h <<\EOF
18463#define wxUSE_NOGUI 1
18464EOF
18465
18466fi
18467
18468
18469if test "$wxUSE_UNIX" = "yes"; then
18470 cat >> confdefs.h <<\EOF
18471#define wxUSE_UNIX 1
18472EOF
18473
18474fi
18475
18476
18477if test "$wxUSE_APPLE_IEEE" = "yes"; then
18478 cat >> confdefs.h <<\EOF
18479#define wxUSE_APPLE_IEEE 1
18480EOF
18481
18482fi
18483
18484if test "$wxUSE_TIMER" = "yes"; then
18485 cat >> confdefs.h <<\EOF
18486#define wxUSE_TIMER 1
18487EOF
18488
18489fi
18490
18491if test "$wxUSE_WAVE" = "yes"; then
18492 cat >> confdefs.h <<\EOF
18493#define wxUSE_WAVE 1
18494EOF
18495
18496fi
18497
18498if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18499 cat >> confdefs.h <<\EOF
18500#define wxUSE_CMDLINE_PARSER 1
18501EOF
18502
18503fi
18504
18505if test "$wxUSE_STOPWATCH" = "yes"; then
18506 cat >> confdefs.h <<\EOF
18507#define wxUSE_STOPWATCH 1
18508EOF
18509
18510fi
18511
18512if test "$wxUSE_DATETIME" = "yes"; then
18513 cat >> confdefs.h <<\EOF
18514#define wxUSE_DATETIME 1
18515EOF
18516
18517fi
18518
18519if test "$wxUSE_TIMEDATE" = "yes"; then
18520 cat >> confdefs.h <<\EOF
18521#define wxUSE_TIMEDATE 1
18522EOF
18523
18524fi
18525
18526if test "$wxUSE_FILE" = "yes"; then
18527 cat >> confdefs.h <<\EOF
18528#define wxUSE_FILE 1
18529EOF
18530
18531fi
18532
18533if test "$wxUSE_FFILE" = "yes"; then
18534 cat >> confdefs.h <<\EOF
18535#define wxUSE_FFILE 1
18536EOF
18537
18538fi
18539
18540if test "$wxUSE_FILESYSTEM" = "yes"; then
18541 cat >> confdefs.h <<\EOF
18542#define wxUSE_FILESYSTEM 1
18543EOF
18544
18545fi
18546
18547if test "$wxUSE_FS_INET" = "yes"; then
18548 cat >> confdefs.h <<\EOF
18549#define wxUSE_FS_INET 1
18550EOF
18551
18552fi
18553
18554if test "$wxUSE_FS_ZIP" = "yes"; then
18555 cat >> confdefs.h <<\EOF
18556#define wxUSE_FS_ZIP 1
18557EOF
18558
18559fi
18560
18561if test "$wxUSE_ZIPSTREAM" = "yes"; then
18562 cat >> confdefs.h <<\EOF
18563#define wxUSE_ZIPSTREAM 1
18564EOF
18565
18566fi
18567
18568if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18569 cat >> confdefs.h <<\EOF
18570#define wxUSE_ON_FATAL_EXCEPTION 1
18571EOF
18572
18573fi
18574
18575if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18576 cat >> confdefs.h <<\EOF
18577#define wxUSE_SNGLINST_CHECKER 1
18578EOF
18579
18580fi
18581
18582if test "$wxUSE_BUSYINFO" = "yes"; then
18583 cat >> confdefs.h <<\EOF
18584#define wxUSE_BUSYINFO 1
18585EOF
18586
18587fi
18588
18589if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18590 cat >> confdefs.h <<\EOF
18591#define wxUSE_STD_IOSTREAM 1
18592EOF
18593
18594fi
18595
18596if test "$wxUSE_TEXTBUFFER" = "yes"; then
18597 cat >> confdefs.h <<\EOF
18598#define wxUSE_TEXTBUFFER 1
18599EOF
18600
18601fi
18602
18603if test "$wxUSE_TEXTFILE" = "yes"; then
18604 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18605 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18606 else
18607 cat >> confdefs.h <<\EOF
18608#define wxUSE_TEXTFILE 1
18609EOF
18610
18611 fi
18612fi
18613
18614if test "$wxUSE_CONFIG" = "yes" ; then
18615 if test "$wxUSE_TEXTFILE" != "yes"; then
18616 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18617 else
18618 cat >> confdefs.h <<\EOF
18619#define wxUSE_CONFIG 1
18620EOF
18621
18622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18623 fi
18624fi
18625
18626if test "$wxUSE_INTL" = "yes" ; then
18627 if test "$wxUSE_FILE" != "yes"; then
18628 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18629 else
18630 cat >> confdefs.h <<\EOF
18631#define wxUSE_INTL 1
18632EOF
18633
18634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18635 GUIDIST="$GUIDIST INTL_DIST"
18636 fi
18637fi
18638
18639if test "$wxUSE_LOG" = "yes"; then
18640 cat >> confdefs.h <<\EOF
18641#define wxUSE_LOG 1
18642EOF
18643
18644
18645 if test "$wxUSE_LOGGUI" = "yes"; then
18646 cat >> confdefs.h <<\EOF
18647#define wxUSE_LOGGUI 1
18648EOF
18649
18650 fi
18651
18652 if test "$wxUSE_LOGWINDOW" = "yes"; then
18653 cat >> confdefs.h <<\EOF
18654#define wxUSE_LOGWINDOW 1
18655EOF
18656
18657 fi
18658
18659 if test "$wxUSE_LOGDIALOG" = "yes"; then
18660 cat >> confdefs.h <<\EOF
18661#define wxUSE_LOG_DIALOG 1
18662EOF
18663
18664 fi
18665fi
18666
18667if test "$wxUSE_LONGLONG" = "yes"; then
18668 cat >> confdefs.h <<\EOF
18669#define wxUSE_LONGLONG 1
18670EOF
18671
18672fi
18673
18674if test "$wxUSE_GEOMETRY" = "yes"; then
18675 cat >> confdefs.h <<\EOF
18676#define wxUSE_GEOMETRY 1
18677EOF
18678
18679fi
18680
18681if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18682 cat >> confdefs.h <<\EOF
18683#define wxUSE_DIALUP_MANAGER 1
18684EOF
18685
18686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18687fi
18688
18689if test "$wxUSE_STREAMS" = "yes" ; then
18690 cat >> confdefs.h <<\EOF
18691#define wxUSE_STREAMS 1
18692EOF
18693
18694fi
18695
18696
18697if test "$wxUSE_DATETIME" = "yes"; then
18698 for ac_func in strptime
18699do
18700echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18701echo "configure:18702: checking for $ac_func" >&5
18702if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18703 echo $ac_n "(cached) $ac_c" 1>&6
18704else
18705 cat > conftest.$ac_ext <<EOF
18706#line 18707 "configure"
18707#include "confdefs.h"
18708/* System header to define __stub macros and hopefully few prototypes,
18709 which can conflict with char $ac_func(); below. */
18710#include <assert.h>
18711/* Override any gcc2 internal prototype to avoid an error. */
18712/* We use char because int might match the return type of a gcc2
18713 builtin and then its argument prototype would still apply. */
18714char $ac_func();
18715
18716int main() {
18717
18718/* The GNU C library defines this for functions which it implements
18719 to always fail with ENOSYS. Some functions are actually named
18720 something starting with __ and the normal name is an alias. */
18721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18722choke me
18723#else
18724$ac_func();
18725#endif
18726
18727; return 0; }
18728EOF
18729if { (eval echo configure:18730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18730 rm -rf conftest*
18731 eval "ac_cv_func_$ac_func=yes"
18732else
18733 echo "configure: failed program was:" >&5
18734 cat conftest.$ac_ext >&5
18735 rm -rf conftest*
18736 eval "ac_cv_func_$ac_func=no"
18737fi
18738rm -f conftest*
18739fi
18740
18741if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18742 echo "$ac_t""yes" 1>&6
18743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18744 cat >> confdefs.h <<EOF
18745#define $ac_tr_func 1
18746EOF
18747
18748else
18749 echo "$ac_t""no" 1>&6
18750fi
18751done
18752
18753
18754 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18755echo "configure:18756: checking for timezone variable in <time.h>" >&5
18756if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18757 echo $ac_n "(cached) $ac_c" 1>&6
18758else
18759
18760 cat > conftest.$ac_ext <<EOF
18761#line 18762 "configure"
18762#include "confdefs.h"
18763
18764 #include <time.h>
18765
18766int main() {
18767
18768 int tz;
18769 tz = timezone;
18770
18771; return 0; }
18772EOF
18773if { (eval echo configure:18774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18774 rm -rf conftest*
18775
18776 wx_cv_var_timezone=timezone
18777
18778else
18779 echo "configure: failed program was:" >&5
18780 cat conftest.$ac_ext >&5
18781 rm -rf conftest*
18782
18783 cat > conftest.$ac_ext <<EOF
18784#line 18785 "configure"
18785#include "confdefs.h"
18786
18787 #include <time.h>
18788
18789int main() {
18790
18791 int tz;
18792 tz = _timezone;
18793
18794; return 0; }
18795EOF
18796if { (eval echo configure:18797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18797 rm -rf conftest*
18798
18799 wx_cv_var_timezone=_timezone
18800
18801else
18802 echo "configure: failed program was:" >&5
18803 cat conftest.$ac_ext >&5
18804 rm -rf conftest*
18805
18806 cat > conftest.$ac_ext <<EOF
18807#line 18808 "configure"
18808#include "confdefs.h"
18809
18810 #include <time.h>
18811
18812int main() {
18813
18814 int tz;
18815 tz = __timezone;
18816
18817; return 0; }
18818EOF
18819if { (eval echo configure:18820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18820 rm -rf conftest*
18821
18822 wx_cv_var_timezone=__timezone
18823
18824else
18825 echo "configure: failed program was:" >&5
18826 cat conftest.$ac_ext >&5
18827 rm -rf conftest*
18828
18829 if test "$USE_DOS" = 0 ; then
18830 echo "configure: warning: no timezone variable" 1>&2
18831 fi
18832
18833
18834fi
18835rm -f conftest*
18836
18837
18838fi
18839rm -f conftest*
18840
18841
18842fi
18843rm -f conftest*
18844
18845
18846fi
18847
18848echo "$ac_t""$wx_cv_var_timezone" 1>&6
18849
18850 if test "x$wx_cv_var_timezone" != x ; then
18851 cat >> confdefs.h <<EOF
18852#define WX_TIMEZONE $wx_cv_var_timezone
18853EOF
18854
18855 fi
18856
18857 for ac_func in localtime
18858do
18859echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18860echo "configure:18861: checking for $ac_func" >&5
18861if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18862 echo $ac_n "(cached) $ac_c" 1>&6
18863else
18864 cat > conftest.$ac_ext <<EOF
18865#line 18866 "configure"
18866#include "confdefs.h"
18867/* System header to define __stub macros and hopefully few prototypes,
18868 which can conflict with char $ac_func(); below. */
18869#include <assert.h>
18870/* Override any gcc2 internal prototype to avoid an error. */
18871/* We use char because int might match the return type of a gcc2
18872 builtin and then its argument prototype would still apply. */
18873char $ac_func();
18874
18875int main() {
18876
18877/* The GNU C library defines this for functions which it implements
18878 to always fail with ENOSYS. Some functions are actually named
18879 something starting with __ and the normal name is an alias. */
18880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18881choke me
18882#else
18883$ac_func();
18884#endif
18885
18886; return 0; }
18887EOF
18888if { (eval echo configure:18889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18889 rm -rf conftest*
18890 eval "ac_cv_func_$ac_func=yes"
18891else
18892 echo "configure: failed program was:" >&5
18893 cat conftest.$ac_ext >&5
18894 rm -rf conftest*
18895 eval "ac_cv_func_$ac_func=no"
18896fi
18897rm -f conftest*
18898fi
18899
18900if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18901 echo "$ac_t""yes" 1>&6
18902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18903 cat >> confdefs.h <<EOF
18904#define $ac_tr_func 1
18905EOF
18906
18907else
18908 echo "$ac_t""no" 1>&6
18909fi
18910done
18911
18912
18913 if test "$ac_cv_func_localtime" = "yes"; then
18914 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18915echo "configure:18916: checking for tm_gmtoff in struct tm" >&5
18916if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18917 echo $ac_n "(cached) $ac_c" 1>&6
18918else
18919
18920 cat > conftest.$ac_ext <<EOF
18921#line 18922 "configure"
18922#include "confdefs.h"
18923
18924 #include <time.h>
18925
18926int main() {
18927
18928 struct tm tm;
18929 tm.tm_gmtoff++;
18930
18931; return 0; }
18932EOF
18933if { (eval echo configure:18934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18934 rm -rf conftest*
18935
18936 wx_cv_struct_tm_has_gmtoff=yes
18937
18938else
18939 echo "configure: failed program was:" >&5
18940 cat conftest.$ac_ext >&5
18941 rm -rf conftest*
18942 wx_cv_struct_tm_has_gmtoff=no
18943
18944fi
18945rm -f conftest*
18946
18947fi
18948
18949echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18950 fi
18951
18952 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18953 cat >> confdefs.h <<\EOF
18954#define WX_GMTOFF_IN_TM 1
18955EOF
18956
18957 fi
18958
18959 for ac_func in gettimeofday ftime
18960do
18961echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18962echo "configure:18963: checking for $ac_func" >&5
18963if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18964 echo $ac_n "(cached) $ac_c" 1>&6
18965else
18966 cat > conftest.$ac_ext <<EOF
18967#line 18968 "configure"
18968#include "confdefs.h"
18969/* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char $ac_func(); below. */
18971#include <assert.h>
18972/* Override any gcc2 internal prototype to avoid an error. */
18973/* We use char because int might match the return type of a gcc2
18974 builtin and then its argument prototype would still apply. */
18975char $ac_func();
18976
18977int main() {
18978
18979/* The GNU C library defines this for functions which it implements
18980 to always fail with ENOSYS. Some functions are actually named
18981 something starting with __ and the normal name is an alias. */
18982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18983choke me
18984#else
18985$ac_func();
18986#endif
18987
18988; return 0; }
18989EOF
18990if { (eval echo configure:18991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18991 rm -rf conftest*
18992 eval "ac_cv_func_$ac_func=yes"
18993else
18994 echo "configure: failed program was:" >&5
18995 cat conftest.$ac_ext >&5
18996 rm -rf conftest*
18997 eval "ac_cv_func_$ac_func=no"
18998fi
18999rm -f conftest*
19000fi
19001
19002if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19003 echo "$ac_t""yes" 1>&6
19004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19005 cat >> confdefs.h <<EOF
19006#define $ac_tr_func 1
19007EOF
19008 break
19009else
19010 echo "$ac_t""no" 1>&6
19011fi
19012done
19013
19014
19015 if test "$ac_cv_func_gettimeofday" = "yes"; then
19016 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19017echo "configure:19018: checking whether gettimeofday takes two arguments" >&5
19018if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19019 echo $ac_n "(cached) $ac_c" 1>&6
19020else
19021
19022
19023 ac_ext=C
19024# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19025ac_cpp='$CXXCPP $CPPFLAGS'
19026ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19027ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19028cross_compiling=$ac_cv_prog_cxx_cross
19029
19030
19031 cat > conftest.$ac_ext <<EOF
19032#line 19033 "configure"
19033#include "confdefs.h"
19034
19035 #include <sys/time.h>
19036 #include <unistd.h>
19037
19038int main() {
19039
19040 struct timeval tv;
19041 gettimeofday(&tv, NULL);
19042
19043; return 0; }
19044EOF
19045if { (eval echo configure:19046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19046 rm -rf conftest*
19047 wx_cv_func_gettimeofday_has_2_args=yes
19048else
19049 echo "configure: failed program was:" >&5
19050 cat conftest.$ac_ext >&5
19051 rm -rf conftest*
19052 cat > conftest.$ac_ext <<EOF
19053#line 19054 "configure"
19054#include "confdefs.h"
19055
19056 #include <sys/time.h>
19057 #include <unistd.h>
19058
19059int main() {
19060
19061 struct timeval tv;
19062 gettimeofday(&tv);
19063
19064; return 0; }
19065EOF
19066if { (eval echo configure:19067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19067 rm -rf conftest*
19068 wx_cv_func_gettimeofday_has_2_args=no
19069else
19070 echo "configure: failed program was:" >&5
19071 cat conftest.$ac_ext >&5
19072 rm -rf conftest*
19073
19074 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19075 wx_cv_func_gettimeofday_has_2_args=unknown
19076
19077
19078fi
19079rm -f conftest*
19080
19081fi
19082rm -f conftest*
19083 ac_ext=c
19084# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19085ac_cpp='$CPP $CPPFLAGS'
19086ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19087ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19088cross_compiling=$ac_cv_prog_cc_cross
19089
19090
19091fi
19092
19093echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19094
19095 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19096 cat >> confdefs.h <<\EOF
19097#define WX_GETTIMEOFDAY_NO_TZ 1
19098EOF
19099
19100 fi
19101 fi
19102
19103 cat >> confdefs.h <<\EOF
19104#define wxUSE_TIMEDATE 1
19105EOF
19106
19107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19108fi
19109
19110
19111if test "$wxUSE_SOCKETS" = "yes"; then
19112 if test "$wxUSE_MGL" = "1"; then
19113 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19114 wxUSE_SOCKETS="no"
19115 fi
19116fi
19117
19118if test "$wxUSE_SOCKETS" = "yes"; then
19119 if test "$TOOLKIT" != "MSW"; then
19120 echo $ac_n "checking for socket""... $ac_c" 1>&6
19121echo "configure:19122: checking for socket" >&5
19122if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19123 echo $ac_n "(cached) $ac_c" 1>&6
19124else
19125 cat > conftest.$ac_ext <<EOF
19126#line 19127 "configure"
19127#include "confdefs.h"
19128/* System header to define __stub macros and hopefully few prototypes,
19129 which can conflict with char socket(); below. */
19130#include <assert.h>
19131/* Override any gcc2 internal prototype to avoid an error. */
19132/* We use char because int might match the return type of a gcc2
19133 builtin and then its argument prototype would still apply. */
19134char socket();
19135
19136int main() {
19137
19138/* The GNU C library defines this for functions which it implements
19139 to always fail with ENOSYS. Some functions are actually named
19140 something starting with __ and the normal name is an alias. */
19141#if defined (__stub_socket) || defined (__stub___socket)
19142choke me
19143#else
19144socket();
19145#endif
19146
19147; return 0; }
19148EOF
19149if { (eval echo configure:19150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19150 rm -rf conftest*
19151 eval "ac_cv_func_socket=yes"
19152else
19153 echo "configure: failed program was:" >&5
19154 cat conftest.$ac_ext >&5
19155 rm -rf conftest*
19156 eval "ac_cv_func_socket=no"
19157fi
19158rm -f conftest*
19159fi
19160
19161if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19162 echo "$ac_t""yes" 1>&6
19163 :
19164else
19165 echo "$ac_t""no" 1>&6
19166echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19167echo "configure:19168: checking for socket in -lsocket" >&5
19168ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19170 echo $ac_n "(cached) $ac_c" 1>&6
19171else
19172 ac_save_LIBS="$LIBS"
19173LIBS="-lsocket $LIBS"
19174cat > conftest.$ac_ext <<EOF
19175#line 19176 "configure"
19176#include "confdefs.h"
19177/* Override any gcc2 internal prototype to avoid an error. */
19178/* We use char because int might match the return type of a gcc2
19179 builtin and then its argument prototype would still apply. */
19180char socket();
19181
19182int main() {
19183socket()
19184; return 0; }
19185EOF
19186if { (eval echo configure:19187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19187 rm -rf conftest*
19188 eval "ac_cv_lib_$ac_lib_var=yes"
19189else
19190 echo "configure: failed program was:" >&5
19191 cat conftest.$ac_ext >&5
19192 rm -rf conftest*
19193 eval "ac_cv_lib_$ac_lib_var=no"
19194fi
19195rm -f conftest*
19196LIBS="$ac_save_LIBS"
19197
19198fi
19199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19200 echo "$ac_t""yes" 1>&6
19201 if test "$INET_LINK" != " -lsocket"; then
19202 INET_LINK="$INET_LINK -lsocket"
19203 fi
19204else
19205 echo "$ac_t""no" 1>&6
19206
19207 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19208 wxUSE_SOCKETS=no
19209
19210
19211fi
19212
19213
19214fi
19215
19216 fi
19217fi
19218
19219if test "$wxUSE_SOCKETS" = "yes" ; then
19220 if test "$TOOLKIT" != "MSW"; then
19221 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19222echo "configure:19223: checking what is the type of the third argument of getsockname" >&5
19223if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19224 echo $ac_n "(cached) $ac_c" 1>&6
19225else
19226
19227
19228 ac_ext=C
19229# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19230ac_cpp='$CXXCPP $CPPFLAGS'
19231ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19232ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19233cross_compiling=$ac_cv_prog_cxx_cross
19234
19235
19236 cat > conftest.$ac_ext <<EOF
19237#line 19238 "configure"
19238#include "confdefs.h"
19239
19240 #include <sys/types.h>
19241 #include <sys/socket.h>
19242
19243int main() {
19244
19245 socklen_t len;
19246 getsockname(0, 0, &len);
19247
19248; return 0; }
19249EOF
19250if { (eval echo configure:19251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19251 rm -rf conftest*
19252 wx_cv_type_getsockname3=socklen_t
19253else
19254 echo "configure: failed program was:" >&5
19255 cat conftest.$ac_ext >&5
19256 rm -rf conftest*
19257 cat > conftest.$ac_ext <<EOF
19258#line 19259 "configure"
19259#include "confdefs.h"
19260
19261 #include <sys/types.h>
19262 #include <sys/socket.h>
19263
19264int main() {
19265
19266 size_t len;
19267 getsockname(0, 0, &len);
19268
19269; return 0; }
19270EOF
19271if { (eval echo configure:19272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19272 rm -rf conftest*
19273 wx_cv_type_getsockname3=size_t
19274else
19275 echo "configure: failed program was:" >&5
19276 cat conftest.$ac_ext >&5
19277 rm -rf conftest*
19278 cat > conftest.$ac_ext <<EOF
19279#line 19280 "configure"
19280#include "confdefs.h"
19281
19282 #include <sys/types.h>
19283 #include <sys/socket.h>
19284
19285int main() {
19286
19287 int len;
19288 getsockname(0, 0, &len);
19289
19290; return 0; }
19291EOF
19292if { (eval echo configure:19293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19293 rm -rf conftest*
19294 wx_cv_type_getsockname3=int
19295else
19296 echo "configure: failed program was:" >&5
19297 cat conftest.$ac_ext >&5
19298 rm -rf conftest*
19299 wx_cv_type_getsockname3=unknown
19300
19301fi
19302rm -f conftest*
19303
19304fi
19305rm -f conftest*
19306
19307fi
19308rm -f conftest*
19309
19310 ac_ext=c
19311# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19312ac_cpp='$CPP $CPPFLAGS'
19313ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19314ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19315cross_compiling=$ac_cv_prog_cc_cross
19316
19317
19318fi
19319
19320echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19321
19322 if test "$wx_cv_type_getsockname3" = "unknown"; then
19323 wxUSE_SOCKETS=no
19324 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19325 else
19326 cat >> confdefs.h <<EOF
19327#define SOCKLEN_T $wx_cv_type_getsockname3
19328EOF
19329
19330 fi
19331 fi
19332fi
19333
19334if test "$wxUSE_SOCKETS" = "yes" ; then
19335 cat >> confdefs.h <<\EOF
19336#define wxUSE_SOCKETS 1
19337EOF
19338
19339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19340fi
19341
19342
19343if test "$wxUSE_GUI" = "yes"; then
19344
19345 if test "$TOOLKIT" = "MAC"; then
19346 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19347 wxUSE_JOYSTICK=no
19348 fi
19349 if test "$TOOLKIT" = "MOTIF"; then
19350 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19351 wxUSE_JOYSTICK=no
19352 fi
19353 if test "$TOOLKIT" = "X11"; then
19354 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19355 wxUSE_JOYSTICK=no
19356 fi
19357
19358 if test "$TOOLKIT" != "MSW"; then
19359 if test "$wxUSE_JOYSTICK" = "yes"; then
19360 for ac_hdr in linux/joystick.h
19361do
19362ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19363echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19364echo "configure:19365: checking for $ac_hdr" >&5
19365if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19366 echo $ac_n "(cached) $ac_c" 1>&6
19367else
19368 cat > conftest.$ac_ext <<EOF
19369#line 19370 "configure"
19370#include "confdefs.h"
19371#include <$ac_hdr>
19372EOF
19373ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19374{ (eval echo configure:19375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19375ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19376if test -z "$ac_err"; then
19377 rm -rf conftest*
19378 eval "ac_cv_header_$ac_safe=yes"
19379else
19380 echo "$ac_err" >&5
19381 echo "configure: failed program was:" >&5
19382 cat conftest.$ac_ext >&5
19383 rm -rf conftest*
19384 eval "ac_cv_header_$ac_safe=no"
19385fi
19386rm -f conftest*
19387fi
19388if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19389 echo "$ac_t""yes" 1>&6
19390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19391 cat >> confdefs.h <<EOF
19392#define $ac_tr_hdr 1
19393EOF
19394
19395else
19396 echo "$ac_t""no" 1>&6
19397fi
19398done
19399
19400 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19401 wxUSE_JOYSTICK=no
19402 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19403 fi
19404 fi
19405 fi
19406
19407 if test "$wxUSE_JOYSTICK" = "yes"; then
19408 cat >> confdefs.h <<\EOF
19409#define wxUSE_JOYSTICK 1
19410EOF
19411
19412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19413 fi
19414fi
19415
19416
19417if test "$TOOLKIT" != "MSW"; then
19418
19419 HAVE_DL_FUNCS=0
19420 HAVE_SHL_FUNCS=0
19421 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19422 if test "$USE_DARWIN" = 1; then
19423 HAVE_DL_FUNCS=1
19424 else
19425 for ac_func in dlopen
19426do
19427echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19428echo "configure:19429: checking for $ac_func" >&5
19429if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19430 echo $ac_n "(cached) $ac_c" 1>&6
19431else
19432 cat > conftest.$ac_ext <<EOF
19433#line 19434 "configure"
19434#include "confdefs.h"
19435/* System header to define __stub macros and hopefully few prototypes,
19436 which can conflict with char $ac_func(); below. */
19437#include <assert.h>
19438/* Override any gcc2 internal prototype to avoid an error. */
19439/* We use char because int might match the return type of a gcc2
19440 builtin and then its argument prototype would still apply. */
19441char $ac_func();
19442
19443int main() {
19444
19445/* The GNU C library defines this for functions which it implements
19446 to always fail with ENOSYS. Some functions are actually named
19447 something starting with __ and the normal name is an alias. */
19448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19449choke me
19450#else
19451$ac_func();
19452#endif
19453
19454; return 0; }
19455EOF
19456if { (eval echo configure:19457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19457 rm -rf conftest*
19458 eval "ac_cv_func_$ac_func=yes"
19459else
19460 echo "configure: failed program was:" >&5
19461 cat conftest.$ac_ext >&5
19462 rm -rf conftest*
19463 eval "ac_cv_func_$ac_func=no"
19464fi
19465rm -f conftest*
19466fi
19467
19468if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19469 echo "$ac_t""yes" 1>&6
19470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19471 cat >> confdefs.h <<EOF
19472#define $ac_tr_func 1
19473EOF
19474
19475 cat >> confdefs.h <<\EOF
19476#define HAVE_DLOPEN 1
19477EOF
19478
19479 HAVE_DL_FUNCS=1
19480
19481else
19482 echo "$ac_t""no" 1>&6
19483echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19484echo "configure:19485: checking for dlopen in -ldl" >&5
19485ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19487 echo $ac_n "(cached) $ac_c" 1>&6
19488else
19489 ac_save_LIBS="$LIBS"
19490LIBS="-ldl $LIBS"
19491cat > conftest.$ac_ext <<EOF
19492#line 19493 "configure"
19493#include "confdefs.h"
19494/* Override any gcc2 internal prototype to avoid an error. */
19495/* We use char because int might match the return type of a gcc2
19496 builtin and then its argument prototype would still apply. */
19497char dlopen();
19498
19499int main() {
19500dlopen()
19501; return 0; }
19502EOF
19503if { (eval echo configure:19504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19504 rm -rf conftest*
19505 eval "ac_cv_lib_$ac_lib_var=yes"
19506else
19507 echo "configure: failed program was:" >&5
19508 cat conftest.$ac_ext >&5
19509 rm -rf conftest*
19510 eval "ac_cv_lib_$ac_lib_var=no"
19511fi
19512rm -f conftest*
19513LIBS="$ac_save_LIBS"
19514
19515fi
19516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19517 echo "$ac_t""yes" 1>&6
19518
19519 cat >> confdefs.h <<\EOF
19520#define HAVE_DLOPEN 1
19521EOF
19522
19523 HAVE_DL_FUNCS=1
19524 DL_LINK=" -ldl$DL_LINK"
19525
19526else
19527 echo "$ac_t""no" 1>&6
19528
19529 for ac_func in shl_load
19530do
19531echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19532echo "configure:19533: checking for $ac_func" >&5
19533if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19534 echo $ac_n "(cached) $ac_c" 1>&6
19535else
19536 cat > conftest.$ac_ext <<EOF
19537#line 19538 "configure"
19538#include "confdefs.h"
19539/* System header to define __stub macros and hopefully few prototypes,
19540 which can conflict with char $ac_func(); below. */
19541#include <assert.h>
19542/* Override any gcc2 internal prototype to avoid an error. */
19543/* We use char because int might match the return type of a gcc2
19544 builtin and then its argument prototype would still apply. */
19545char $ac_func();
19546
19547int main() {
19548
19549/* The GNU C library defines this for functions which it implements
19550 to always fail with ENOSYS. Some functions are actually named
19551 something starting with __ and the normal name is an alias. */
19552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19553choke me
19554#else
19555$ac_func();
19556#endif
19557
19558; return 0; }
19559EOF
19560if { (eval echo configure:19561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19561 rm -rf conftest*
19562 eval "ac_cv_func_$ac_func=yes"
19563else
19564 echo "configure: failed program was:" >&5
19565 cat conftest.$ac_ext >&5
19566 rm -rf conftest*
19567 eval "ac_cv_func_$ac_func=no"
19568fi
19569rm -f conftest*
19570fi
19571
19572if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19573 echo "$ac_t""yes" 1>&6
19574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19575 cat >> confdefs.h <<EOF
19576#define $ac_tr_func 1
19577EOF
19578
19579 cat >> confdefs.h <<\EOF
19580#define HAVE_SHL_LOAD 1
19581EOF
19582
19583 HAVE_SHL_FUNCS=1
19584
19585else
19586 echo "$ac_t""no" 1>&6
19587echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19588echo "configure:19589: checking for dld in -lshl_load" >&5
19589ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19591 echo $ac_n "(cached) $ac_c" 1>&6
19592else
19593 ac_save_LIBS="$LIBS"
19594LIBS="-lshl_load $LIBS"
19595cat > conftest.$ac_ext <<EOF
19596#line 19597 "configure"
19597#include "confdefs.h"
19598/* Override any gcc2 internal prototype to avoid an error. */
19599/* We use char because int might match the return type of a gcc2
19600 builtin and then its argument prototype would still apply. */
19601char dld();
19602
19603int main() {
19604dld()
19605; return 0; }
19606EOF
19607if { (eval echo configure:19608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19608 rm -rf conftest*
19609 eval "ac_cv_lib_$ac_lib_var=yes"
19610else
19611 echo "configure: failed program was:" >&5
19612 cat conftest.$ac_ext >&5
19613 rm -rf conftest*
19614 eval "ac_cv_lib_$ac_lib_var=no"
19615fi
19616rm -f conftest*
19617LIBS="$ac_save_LIBS"
19618
19619fi
19620if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19621 echo "$ac_t""yes" 1>&6
19622
19623 HAVE_SHL_FUNCS=1
19624 DL_LINK=" -ldld$DL_LINK"
19625
19626else
19627 echo "$ac_t""no" 1>&6
19628fi
19629
19630
19631fi
19632done
19633
19634
19635fi
19636
19637
19638fi
19639done
19640
19641
19642 if test "$HAVE_DL_FUNCS" = 1; then
19643 for ac_func in dlerror
19644do
19645echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19646echo "configure:19647: checking for $ac_func" >&5
19647if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19648 echo $ac_n "(cached) $ac_c" 1>&6
19649else
19650 cat > conftest.$ac_ext <<EOF
19651#line 19652 "configure"
19652#include "confdefs.h"
19653/* System header to define __stub macros and hopefully few prototypes,
19654 which can conflict with char $ac_func(); below. */
19655#include <assert.h>
19656/* Override any gcc2 internal prototype to avoid an error. */
19657/* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
19659char $ac_func();
19660
19661int main() {
19662
19663/* The GNU C library defines this for functions which it implements
19664 to always fail with ENOSYS. Some functions are actually named
19665 something starting with __ and the normal name is an alias. */
19666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19667choke me
19668#else
19669$ac_func();
19670#endif
19671
19672; return 0; }
19673EOF
19674if { (eval echo configure:19675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19675 rm -rf conftest*
19676 eval "ac_cv_func_$ac_func=yes"
19677else
19678 echo "configure: failed program was:" >&5
19679 cat conftest.$ac_ext >&5
19680 rm -rf conftest*
19681 eval "ac_cv_func_$ac_func=no"
19682fi
19683rm -f conftest*
19684fi
19685
19686if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19687 echo "$ac_t""yes" 1>&6
19688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19689 cat >> confdefs.h <<EOF
19690#define $ac_tr_func 1
19691EOF
19692 cat >> confdefs.h <<\EOF
19693#define HAVE_DLERROR 1
19694EOF
19695
19696else
19697 echo "$ac_t""no" 1>&6
19698echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19699echo "configure:19700: checking for dlerror in -ldl" >&5
19700ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19701if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19702 echo $ac_n "(cached) $ac_c" 1>&6
19703else
19704 ac_save_LIBS="$LIBS"
19705LIBS="-ldl $LIBS"
19706cat > conftest.$ac_ext <<EOF
19707#line 19708 "configure"
19708#include "confdefs.h"
19709/* Override any gcc2 internal prototype to avoid an error. */
19710/* We use char because int might match the return type of a gcc2
19711 builtin and then its argument prototype would still apply. */
19712char dlerror();
19713
19714int main() {
19715dlerror()
19716; return 0; }
19717EOF
19718if { (eval echo configure:19719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19719 rm -rf conftest*
19720 eval "ac_cv_lib_$ac_lib_var=yes"
19721else
19722 echo "configure: failed program was:" >&5
19723 cat conftest.$ac_ext >&5
19724 rm -rf conftest*
19725 eval "ac_cv_lib_$ac_lib_var=no"
19726fi
19727rm -f conftest*
19728LIBS="$ac_save_LIBS"
19729
19730fi
19731if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19732 echo "$ac_t""yes" 1>&6
19733 cat >> confdefs.h <<\EOF
19734#define HAVE_DLERROR 1
19735EOF
19736
19737else
19738 echo "$ac_t""no" 1>&6
19739fi
19740
19741fi
19742done
19743
19744 fi
19745 fi
19746
19747 if test "$HAVE_DL_FUNCS" = 0; then
19748 if test "$HAVE_SHL_FUNCS" = 0; then
19749 if test "$USE_UNIX" = 1; then
19750 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19751 wxUSE_DYNAMIC_LOADER=no
19752 wxUSE_DYNLIB_CLASS=no
19753 else
19754 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19755 fi
19756 fi
19757 fi
19758 fi
19759fi
19760
19761if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19762 cat >> confdefs.h <<\EOF
19763#define wxUSE_DYNAMIC_LOADER 1
19764EOF
19765
19766elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19767 cat >> confdefs.h <<\EOF
19768#define wxUSE_DYNLIB_CLASS 1
19769EOF
19770
19771fi
19772
19773
19774if test "$wxUSE_FONTMAP" = "yes" ; then
19775 cat >> confdefs.h <<\EOF
19776#define wxUSE_FONTMAP 1
19777EOF
19778
19779fi
19780
19781if test "$wxUSE_UNICODE" = "yes" ; then
19782 cat >> confdefs.h <<\EOF
19783#define wxUSE_UNICODE 1
19784EOF
19785
19786
19787 if test "$wxUSE_MSW" != 1; then
19788 wxUSE_UNICODE_MSLU=no
19789 fi
19790
19791 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19792 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19793echo "configure:19794: checking for main in -lunicows" >&5
19794ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19796 echo $ac_n "(cached) $ac_c" 1>&6
19797else
19798 ac_save_LIBS="$LIBS"
19799LIBS="-lunicows $LIBS"
19800cat > conftest.$ac_ext <<EOF
19801#line 19802 "configure"
19802#include "confdefs.h"
19803
19804int main() {
19805main()
19806; return 0; }
19807EOF
19808if { (eval echo configure:19809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19809 rm -rf conftest*
19810 eval "ac_cv_lib_$ac_lib_var=yes"
19811else
19812 echo "configure: failed program was:" >&5
19813 cat conftest.$ac_ext >&5
19814 rm -rf conftest*
19815 eval "ac_cv_lib_$ac_lib_var=no"
19816fi
19817rm -f conftest*
19818LIBS="$ac_save_LIBS"
19819
19820fi
19821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19822 echo "$ac_t""yes" 1>&6
19823
19824 cat >> confdefs.h <<\EOF
19825#define wxUSE_UNICODE_MSLU 1
19826EOF
19827
19828
19829else
19830 echo "$ac_t""no" 1>&6
19831
19832 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19833 Applications will only run on Windows NT/2000/XP!" 1>&2
19834 wxUSE_UNICODE_MSLU=no
19835
19836fi
19837
19838 fi
19839fi
19840
19841if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19842 cat >> confdefs.h <<\EOF
19843#define wxUSE_EXPERIMENTAL_PRINTF 1
19844EOF
19845
19846fi
19847
19848
19849
19850IODBC_C_SRC=""
19851if test "$wxUSE_ODBC" = "yes" ; then
19852 cat >> confdefs.h <<\EOF
19853#define wxUSE_ODBC 1
19854EOF
19855
19856 WXODBCFLAG="-D_IODBC_"
19857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19858fi
19859
19860
19861if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19862 cat >> confdefs.h <<\EOF
19863#define wxUSE_POSTSCRIPT 1
19864EOF
19865
19866fi
19867
19868cat >> confdefs.h <<\EOF
19869#define wxUSE_AFM_FOR_POSTSCRIPT 1
19870EOF
19871
19872
19873cat >> confdefs.h <<\EOF
19874#define wxUSE_NORMALIZED_PS_FONTS 1
19875EOF
19876
19877
19878
19879if test "$wxUSE_CONSTRAINTS" = "yes"; then
19880 cat >> confdefs.h <<\EOF
19881#define wxUSE_CONSTRAINTS 1
19882EOF
19883
19884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19885fi
19886
19887if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19888
19889
19890 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19891 cat >> confdefs.h <<\EOF
19892#define wxUSE_MDI_ARCHITECTURE 1
19893EOF
19894
19895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19896 fi
19897fi
19898
19899if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19900 cat >> confdefs.h <<\EOF
19901#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19902EOF
19903
19904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19905 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19907 fi
19908fi
19909
19910if test "$wxUSE_HELP" = "yes"; then
19911 cat >> confdefs.h <<\EOF
19912#define wxUSE_HELP 1
19913EOF
19914
19915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19916
19917 if test "$wxUSE_MSW" = 1; then
19918 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19919 cat >> confdefs.h <<\EOF
19920#define wxUSE_MS_HTML_HELP 1
19921EOF
19922
19923 fi
19924 fi
19925
19926 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19927 if test "$wxUSE_HTML" = "yes"; then
19928 cat >> confdefs.h <<\EOF
19929#define wxUSE_WXHTML_HELP 1
19930EOF
19931
19932 else
19933 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19934 wxUSE_WXHTML_HELP=no
19935 fi
19936 fi
19937fi
19938
19939if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19940 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19941 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19942 else
19943 cat >> confdefs.h <<\EOF
19944#define wxUSE_PRINTING_ARCHITECTURE 1
19945EOF
19946
19947 fi
19948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19949fi
19950
19951if test "$wxUSE_PROLOGIO" = "yes" ; then
19952 cat >> confdefs.h <<\EOF
19953#define wxUSE_PROLOGIO 1
19954EOF
19955
19956fi
19957
19958if test "$wxUSE_RESOURCES" = "yes" ; then
19959 if test "$wxUSE_NANOX" = "yes"; then
19960 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19961 else
19962 cat >> confdefs.h <<\EOF
19963#define wxUSE_RESOURCES 1
19964EOF
19965
19966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19967 fi
19968fi
19969
19970if test "$wxUSE_X_RESOURCES" = "yes"; then
19971 cat >> confdefs.h <<\EOF
19972#define wxUSE_X_RESOURCES 1
19973EOF
19974
19975fi
19976
19977
19978if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19979 -o "$wxUSE_CLIPBOARD" = "yes" \
19980 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19981 for ac_hdr in ole2.h
19982do
19983ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19984echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19985echo "configure:19986: checking for $ac_hdr" >&5
19986if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19987 echo $ac_n "(cached) $ac_c" 1>&6
19988else
19989 cat > conftest.$ac_ext <<EOF
19990#line 19991 "configure"
19991#include "confdefs.h"
19992#include <$ac_hdr>
19993EOF
19994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19995{ (eval echo configure:19996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19997if test -z "$ac_err"; then
19998 rm -rf conftest*
19999 eval "ac_cv_header_$ac_safe=yes"
20000else
20001 echo "$ac_err" >&5
20002 echo "configure: failed program was:" >&5
20003 cat conftest.$ac_ext >&5
20004 rm -rf conftest*
20005 eval "ac_cv_header_$ac_safe=no"
20006fi
20007rm -f conftest*
20008fi
20009if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20010 echo "$ac_t""yes" 1>&6
20011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20012 cat >> confdefs.h <<EOF
20013#define $ac_tr_hdr 1
20014EOF
20015
20016else
20017 echo "$ac_t""no" 1>&6
20018fi
20019done
20020
20021
20022 if test "$ac_cv_header_ole2_h" = "yes" ; then
20023 if test "$GCC" = yes ; then
20024 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20025 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20026 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20027 cat >> confdefs.h <<\EOF
20028#define wxUSE_OLE 1
20029EOF
20030
20031
20032 fi
20033
20034 cat >> confdefs.h <<\EOF
20035#define wxUSE_DATAOBJ 1
20036EOF
20037
20038 else
20039 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20040
20041 wxUSE_CLIPBOARD=no
20042 wxUSE_DRAG_AND_DROP=no
20043 wxUSE_DATAOBJ=no
20044 fi
20045
20046 if test "$wxUSE_METAFILE" = "yes"; then
20047 cat >> confdefs.h <<\EOF
20048#define wxUSE_METAFILE 1
20049EOF
20050
20051
20052 cat >> confdefs.h <<\EOF
20053#define wxUSE_ENH_METAFILE 1
20054EOF
20055
20056 fi
20057fi
20058
20059if test "$wxUSE_IPC" = "yes"; then
20060 if test "$wxUSE_SOCKETS" != "yes"; then
20061 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20062 fi
20063
20064 cat >> confdefs.h <<\EOF
20065#define wxUSE_IPC 1
20066EOF
20067
20068fi
20069
20070if test "$wxUSE_CLIPBOARD" = "yes"; then
20071 if test "$wxUSE_MGL" = 1; then
20072 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20073 wxUSE_CLIPBOARD=no
20074 fi
20075
20076 if test "$wxUSE_CLIPBOARD" = "yes"; then
20077 cat >> confdefs.h <<\EOF
20078#define wxUSE_CLIPBOARD 1
20079EOF
20080
20081
20082 cat >> confdefs.h <<\EOF
20083#define wxUSE_DATAOBJ 1
20084EOF
20085
20086 fi
20087fi
20088
20089if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20090 if test "$wxUSE_GTK" = 1; then
20091 if test "$WXGTK12" != 1; then
20092 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20093 wxUSE_DRAG_AND_DROP=no
20094 fi
20095 fi
20096
20097 if test "$wxUSE_MOTIF" = 1; then
20098 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20099 wxUSE_DRAG_AND_DROP=no
20100 fi
20101
20102 if test "$wxUSE_X11" = 1; then
20103 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20104 wxUSE_DRAG_AND_DROP=no
20105 fi
20106
20107 if test "$wxUSE_MGL" = 1; then
20108 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20109 wxUSE_DRAG_AND_DROP=no
20110 fi
20111
20112 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20113 cat >> confdefs.h <<\EOF
20114#define wxUSE_DRAG_AND_DROP 1
20115EOF
20116
20117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20118 fi
20119
20120fi
20121
20122if test "$wxUSE_SPLINES" = "yes" ; then
20123 cat >> confdefs.h <<\EOF
20124#define wxUSE_SPLINES 1
20125EOF
20126
20127fi
20128
20129
20130USES_CONTROLS=0
20131if test "$wxUSE_CONTROLS" = "yes"; then
20132 USES_CONTROLS=1
20133fi
20134
20135if test "$wxUSE_ACCEL" = "yes"; then
20136 cat >> confdefs.h <<\EOF
20137#define wxUSE_ACCEL 1
20138EOF
20139
20140 USES_CONTROLS=1
20141fi
20142
20143if test "$wxUSE_BUTTON" = "yes"; then
20144 cat >> confdefs.h <<\EOF
20145#define wxUSE_BUTTON 1
20146EOF
20147
20148 USES_CONTROLS=1
20149fi
20150
20151if test "$wxUSE_BMPBUTTON" = "yes"; then
20152 cat >> confdefs.h <<\EOF
20153#define wxUSE_BMPBUTTON 1
20154EOF
20155
20156 USES_CONTROLS=1
20157fi
20158
20159if test "$wxUSE_CALCTRL" = "yes"; then
20160 cat >> confdefs.h <<\EOF
20161#define wxUSE_CALENDARCTRL 1
20162EOF
20163
20164 USES_CONTROLS=1
20165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20166fi
20167
20168if test "$wxUSE_CARET" = "yes"; then
20169 cat >> confdefs.h <<\EOF
20170#define wxUSE_CARET 1
20171EOF
20172
20173 USES_CONTROLS=1
20174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20175fi
20176
20177if test "$wxUSE_COMBOBOX" = "yes"; then
20178 cat >> confdefs.h <<\EOF
20179#define wxUSE_COMBOBOX 1
20180EOF
20181
20182 USES_CONTROLS=1
20183fi
20184
20185if test "$wxUSE_CHOICE" = "yes"; then
20186 cat >> confdefs.h <<\EOF
20187#define wxUSE_CHOICE 1
20188EOF
20189
20190 USES_CONTROLS=1
20191fi
20192
20193if test "$wxUSE_CHECKBOX" = "yes"; then
20194 cat >> confdefs.h <<\EOF
20195#define wxUSE_CHECKBOX 1
20196EOF
20197
20198 USES_CONTROLS=1
20199fi
20200
20201if test "$wxUSE_CHECKLST" = "yes"; then
20202 cat >> confdefs.h <<\EOF
20203#define wxUSE_CHECKLISTBOX 1
20204EOF
20205
20206 USES_CONTROLS=1
20207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20208fi
20209
20210if test "$wxUSE_GAUGE" = "yes"; then
20211 cat >> confdefs.h <<\EOF
20212#define wxUSE_GAUGE 1
20213EOF
20214
20215 USES_CONTROLS=1
20216fi
20217
20218if test "$wxUSE_NEW_GRID" = "yes"; then
20219 wxUSE_GRID="yes"
20220 cat >> confdefs.h <<\EOF
20221#define wxUSE_NEW_GRID 1
20222EOF
20223
20224 USES_CONTROLS=1
20225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20226fi
20227
20228if test "$wxUSE_GRID" = "yes"; then
20229 cat >> confdefs.h <<\EOF
20230#define wxUSE_GRID 1
20231EOF
20232
20233 USES_CONTROLS=1
20234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20235fi
20236
20237if test "$wxUSE_IMAGLIST" = "yes"; then
20238 cat >> confdefs.h <<\EOF
20239#define wxUSE_IMAGLIST 1
20240EOF
20241
20242fi
20243
20244if test "$wxUSE_LISTBOX" = "yes"; then
20245 cat >> confdefs.h <<\EOF
20246#define wxUSE_LISTBOX 1
20247EOF
20248
20249 USES_CONTROLS=1
20250fi
20251
20252if test "$wxUSE_LISTCTRL" = "yes"; then
20253 if test "$wxUSE_IMAGLIST" = "yes"; then
20254 cat >> confdefs.h <<\EOF
20255#define wxUSE_LISTCTRL 1
20256EOF
20257
20258 USES_CONTROLS=1
20259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20260 else
20261 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20262 fi
20263fi
20264
20265if test "$wxUSE_NOTEBOOK" = "yes"; then
20266 cat >> confdefs.h <<\EOF
20267#define wxUSE_NOTEBOOK 1
20268EOF
20269
20270 USES_CONTROLS=1
20271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20272fi
20273
20274if test "$wxUSE_PROPSHEET" = "yes"; then
20275 cat >> confdefs.h <<\EOF
20276#define wxUSE_PROPSHEET 1
20277EOF
20278
20279 USES_CONTROLS=1
20280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20281fi
20282
20283if test "$wxUSE_RADIOBOX" = "yes"; then
20284 cat >> confdefs.h <<\EOF
20285#define wxUSE_RADIOBOX 1
20286EOF
20287
20288 USES_CONTROLS=1
20289fi
20290
20291if test "$wxUSE_RADIOBTN" = "yes"; then
20292 cat >> confdefs.h <<\EOF
20293#define wxUSE_RADIOBTN 1
20294EOF
20295
20296 USES_CONTROLS=1
20297fi
20298
20299if test "$wxUSE_SASH" = "yes"; then
20300 cat >> confdefs.h <<\EOF
20301#define wxUSE_SASH 1
20302EOF
20303
20304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20305fi
20306
20307if test "$wxUSE_SCROLLBAR" = "yes"; then
20308 cat >> confdefs.h <<\EOF
20309#define wxUSE_SCROLLBAR 1
20310EOF
20311
20312 USES_CONTROLS=1
20313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20314fi
20315
20316if test "$wxUSE_SLIDER" = "yes"; then
20317 cat >> confdefs.h <<\EOF
20318#define wxUSE_SLIDER 1
20319EOF
20320
20321 USES_CONTROLS=1
20322fi
20323
20324if test "$wxUSE_SPINBTN" = "yes"; then
20325 cat >> confdefs.h <<\EOF
20326#define wxUSE_SPINBTN 1
20327EOF
20328
20329 USES_CONTROLS=1
20330fi
20331
20332if test "$wxUSE_SPINCTRL" = "yes"; then
20333 cat >> confdefs.h <<\EOF
20334#define wxUSE_SPINCTRL 1
20335EOF
20336
20337 USES_CONTROLS=1
20338fi
20339
20340if test "$wxUSE_SPLITTER" = "yes"; then
20341 cat >> confdefs.h <<\EOF
20342#define wxUSE_SPLITTER 1
20343EOF
20344
20345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20346fi
20347
20348if test "$wxUSE_STATBMP" = "yes"; then
20349 cat >> confdefs.h <<\EOF
20350#define wxUSE_STATBMP 1
20351EOF
20352
20353 USES_CONTROLS=1
20354fi
20355
20356if test "$wxUSE_STATBOX" = "yes"; then
20357 cat >> confdefs.h <<\EOF
20358#define wxUSE_STATBOX 1
20359EOF
20360
20361 USES_CONTROLS=1
20362fi
20363
20364if test "$wxUSE_STATTEXT" = "yes"; then
20365 cat >> confdefs.h <<\EOF
20366#define wxUSE_STATTEXT 1
20367EOF
20368
20369 USES_CONTROLS=1
20370fi
20371
20372if test "$wxUSE_STATLINE" = "yes"; then
20373 if test "$wxUSE_WINE" = 1 ; then
20374 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20375 else
20376 cat >> confdefs.h <<\EOF
20377#define wxUSE_STATLINE 1
20378EOF
20379
20380 USES_CONTROLS=1
20381 fi
20382fi
20383
20384if test "$wxUSE_STATUSBAR" = "yes"; then
20385 cat >> confdefs.h <<\EOF
20386#define wxUSE_STATUSBAR 1
20387EOF
20388
20389 USES_CONTROLS=1
20390
20391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20392fi
20393
20394if test "$wxUSE_TABDIALOG" = "yes"; then
20395 cat >> confdefs.h <<\EOF
20396#define wxUSE_TAB_DIALOG 1
20397EOF
20398
20399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20400fi
20401
20402if test "$wxUSE_TEXTCTRL" = "yes"; then
20403 cat >> confdefs.h <<\EOF
20404#define wxUSE_TEXTCTRL 1
20405EOF
20406
20407 USES_CONTROLS=1
20408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20409fi
20410
20411if test "$wxUSE_TOGGLEBTN" = "yes"; then
20412 if test "$wxUSE_MAC" = 1; then
20413 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20414 wxUSE_TOGGLEBTN=no
20415 fi
20416 if test "$wxUSE_UNIVERSAL" = "yes"; then
20417 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20418 wxUSE_TOGGLEBTN=no
20419 fi
20420
20421 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20422 cat >> confdefs.h <<\EOF
20423#define wxUSE_TOGGLEBTN 1
20424EOF
20425
20426 USES_CONTROLS=1
20427 fi
20428fi
20429
20430if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20431 cat >> confdefs.h <<\EOF
20432#define wxUSE_TOOLBAR_SIMPLE 1
20433EOF
20434
20435 wxUSE_TOOLBAR="yes"
20436 USES_CONTROLS=1
20437fi
20438
20439if test "$wxUSE_TOOLBAR" = "yes"; then
20440 cat >> confdefs.h <<\EOF
20441#define wxUSE_TOOLBAR 1
20442EOF
20443
20444 USES_CONTROLS=1
20445
20446 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20447 wxUSE_TOOLBAR_NATIVE="yes"
20448 fi
20449
20450 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20451 cat >> confdefs.h <<\EOF
20452#define wxUSE_TOOLBAR_NATIVE 1
20453EOF
20454
20455 USES_CONTROLS=1
20456 fi
20457
20458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20459fi
20460
20461if test "$wxUSE_TOOLTIPS" = "yes"; then
20462 if test "$wxUSE_MOTIF" = 1; then
20463 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20464 else
20465 if test "$wxUSE_WINE" = 1; then
20466 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20467 else
20468 if test "$wxUSE_UNIVERSAL" = "yes"; then
20469 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20470 else
20471 cat >> confdefs.h <<\EOF
20472#define wxUSE_TOOLTIPS 1
20473EOF
20474
20475 fi
20476 fi
20477 fi
20478fi
20479
20480if test "$wxUSE_TREECTRL" = "yes"; then
20481 if test "$wxUSE_IMAGLIST" = "yes"; then
20482 cat >> confdefs.h <<\EOF
20483#define wxUSE_TREECTRL 1
20484EOF
20485
20486 USES_CONTROLS=1
20487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20488 else
20489 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20490 fi
20491fi
20492
20493if test "$wxUSE_POPUPWIN" = "yes"; then
20494 if test "$wxUSE_MAC" = 1; then
20495 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20496 else
20497 if test "$wxUSE_MOTIF" = 1; then
20498 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20499 else
20500 if test "$wxUSE_PM" = 1; then
20501 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20502 else
20503 cat >> confdefs.h <<\EOF
20504#define wxUSE_POPUPWIN 1
20505EOF
20506
20507
20508 USES_CONTROLS=1
20509 fi
20510 fi
20511 fi
20512fi
20513
20514if test "$wxUSE_TIPWINDOW" = "yes"; then
20515 if test "$wxUSE_PM" = 1; then
20516 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20517 else
20518 cat >> confdefs.h <<\EOF
20519#define wxUSE_TIPWINDOW 1
20520EOF
20521
20522 fi
20523fi
20524
20525if test "$USES_CONTROLS" = 1; then
20526 cat >> confdefs.h <<\EOF
20527#define wxUSE_CONTROLS 1
20528EOF
20529
20530fi
20531
20532
20533if test "$wxUSE_TREELAYOUT" = "yes"; then
20534 cat >> confdefs.h <<\EOF
20535#define wxUSE_TREELAYOUT 1
20536EOF
20537
20538 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20539fi
20540
20541if test "$wxUSE_DRAGIMAGE" = "yes"; then
20542 cat >> confdefs.h <<\EOF
20543#define wxUSE_DRAGIMAGE 1
20544EOF
20545
20546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20547fi
20548
20549if test "$wxUSE_MENUS" = "yes"; then
20550 cat >> confdefs.h <<\EOF
20551#define wxUSE_MENUS 1
20552EOF
20553
20554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20555fi
20556
20557if test "$wxUSE_METAFILE" = "yes"; then
20558 cat >> confdefs.h <<\EOF
20559#define wxUSE_METAFILE 1
20560EOF
20561
20562fi
20563
20564if test "$wxUSE_MIMETYPE" = "yes"; then
20565 cat >> confdefs.h <<\EOF
20566#define wxUSE_MIMETYPE 1
20567EOF
20568
20569fi
20570
20571if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20572 cat >> confdefs.h <<\EOF
20573#define wxUSE_SYSTEM_OPTIONS 1
20574EOF
20575
20576if test "$TOOLKIT" = "MSW"; then
20577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20578fi
20579
20580fi
20581
20582if test "$wxUSE_PROTOCOL" = "yes"; then
20583 if test "$wxUSE_SOCKETS" != "yes"; then
20584 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20585 wxUSE_PROTOCOL=no
20586 fi
20587
20588 if test "$wxUSE_PROTOCOL" = "yes"; then
20589 cat >> confdefs.h <<\EOF
20590#define wxUSE_PROTOCOL 1
20591EOF
20592
20593
20594 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20595 cat >> confdefs.h <<\EOF
20596#define wxUSE_PROTOCOL_HTTP 1
20597EOF
20598
20599 fi
20600 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20601 cat >> confdefs.h <<\EOF
20602#define wxUSE_PROTOCOL_FTP 1
20603EOF
20604
20605 fi
20606 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20607 cat >> confdefs.h <<\EOF
20608#define wxUSE_PROTOCOL_FILE 1
20609EOF
20610
20611 fi
20612 fi
20613fi
20614
20615if test "$wxUSE_URL" = "yes"; then
20616 if test "$wxUSE_PROTOCOL" != "yes"; then
20617 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20618 wxUSE_URL=no
20619 fi
20620 if test "$wxUSE_URL" = "yes"; then
20621 cat >> confdefs.h <<\EOF
20622#define wxUSE_URL 1
20623EOF
20624
20625 fi
20626fi
20627
20628if test "$wxUSE_MINIFRAME" = "yes"; then
20629 cat >> confdefs.h <<\EOF
20630#define wxUSE_MINIFRAME 1
20631EOF
20632
20633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20634fi
20635
20636if test "$wxUSE_HTML" = "yes"; then
20637 cat >> confdefs.h <<\EOF
20638#define wxUSE_HTML 1
20639EOF
20640
20641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20642fi
20643
20644if test "$wxUSE_VALIDATORS" = "yes"; then
20645 cat >> confdefs.h <<\EOF
20646#define wxUSE_VALIDATORS 1
20647EOF
20648
20649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20650fi
20651
20652if test "$wxUSE_PALETTE" = "yes" ; then
20653 cat >> confdefs.h <<\EOF
20654#define wxUSE_PALETTE 1
20655EOF
20656
20657fi
20658
20659if test "$wxUSE_IMAGE" = "yes" ; then
20660 cat >> confdefs.h <<\EOF
20661#define wxUSE_IMAGE 1
20662EOF
20663
20664fi
20665
20666if test "$wxUSE_GIF" = "yes" ; then
20667 cat >> confdefs.h <<\EOF
20668#define wxUSE_GIF 1
20669EOF
20670
20671fi
20672
20673if test "$wxUSE_PCX" = "yes" ; then
20674 cat >> confdefs.h <<\EOF
20675#define wxUSE_PCX 1
20676EOF
20677
20678fi
20679
20680if test "$wxUSE_IFF" = "yes" ; then
20681 cat >> confdefs.h <<\EOF
20682#define wxUSE_IFF 1
20683EOF
20684
20685fi
20686
20687if test "$wxUSE_PNM" = "yes" ; then
20688 cat >> confdefs.h <<\EOF
20689#define wxUSE_PNM 1
20690EOF
20691
20692fi
20693
20694if test "$wxUSE_XPM" = "yes" ; then
20695 cat >> confdefs.h <<\EOF
20696#define wxUSE_XPM 1
20697EOF
20698
20699fi
20700
20701if test "$wxUSE_ICO_CUR" = "yes" ; then
20702 cat >> confdefs.h <<\EOF
20703#define wxUSE_ICO_CUR 1
20704EOF
20705
20706fi
20707
20708if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20709 LIBS=" -lunicows $LIBS"
20710fi
20711
20712
20713if test "$wxUSE_CHOICEDLG" = "yes"; then
20714 cat >> confdefs.h <<\EOF
20715#define wxUSE_CHOICEDLG 1
20716EOF
20717
20718fi
20719
20720if test "$wxUSE_COLOURDLG" = "yes"; then
20721 cat >> confdefs.h <<\EOF
20722#define wxUSE_COLOURDLG 1
20723EOF
20724
20725fi
20726
20727if test "$wxUSE_FILEDLG" = "yes"; then
20728 cat >> confdefs.h <<\EOF
20729#define wxUSE_FILEDLG 1
20730EOF
20731
20732fi
20733
20734if test "$wxUSE_FINDREPLDLG" = "yes"; then
20735 cat >> confdefs.h <<\EOF
20736#define wxUSE_FINDREPLDLG 1
20737EOF
20738
20739fi
20740
20741if test "$wxUSE_FONTDLG" = "yes"; then
20742 cat >> confdefs.h <<\EOF
20743#define wxUSE_FONTDLG 1
20744EOF
20745
20746fi
20747
20748if test "$wxUSE_DIRDLG" = "yes"; then
20749 if test "$wxUSE_TREECTRL" != "yes"; then
20750 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20751 else
20752 cat >> confdefs.h <<\EOF
20753#define wxUSE_DIRDLG 1
20754EOF
20755
20756 fi
20757fi
20758
20759if test "$wxUSE_MSGDLG" = "yes"; then
20760 cat >> confdefs.h <<\EOF
20761#define wxUSE_MSGDLG 1
20762EOF
20763
20764fi
20765
20766if test "$wxUSE_NUMBERDLG" = "yes"; then
20767 cat >> confdefs.h <<\EOF
20768#define wxUSE_NUMBERDLG 1
20769EOF
20770
20771fi
20772
20773if test "$wxUSE_PROGRESSDLG" = "yes"; then
20774 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20775 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20776 else
20777 cat >> confdefs.h <<\EOF
20778#define wxUSE_PROGRESSDLG 1
20779EOF
20780
20781 fi
20782fi
20783
20784if test "$wxUSE_SPLASH" = "yes"; then
20785 cat >> confdefs.h <<\EOF
20786#define wxUSE_SPLASH 1
20787EOF
20788
20789fi
20790
20791if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20792 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20793 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20794 else
20795 cat >> confdefs.h <<\EOF
20796#define wxUSE_STARTUP_TIPS 1
20797EOF
20798
20799 fi
20800fi
20801
20802if test "$wxUSE_TEXTDLG" = "yes"; then
20803 cat >> confdefs.h <<\EOF
20804#define wxUSE_TEXTDLG 1
20805EOF
20806
20807fi
20808
20809if test "$wxUSE_WIZARDDLG" = "yes"; then
20810 cat >> confdefs.h <<\EOF
20811#define wxUSE_WIZARDDLG 1
20812EOF
20813
20814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20815fi
20816
20817
20818if test "$cross_compiling" = "yes"; then
20819 OSINFO="\"$host\""
20820else
20821 OSINFO=`uname -s -r -m`
20822 OSINFO="\"$OSINFO\""
20823fi
20824
20825cat >> confdefs.h <<EOF
20826#define WXWIN_OS_DESCRIPTION $OSINFO
20827EOF
20828
20829
20830
20831if test "x$prefix" != "xNONE"; then
20832 wxPREFIX=$prefix
20833else
20834 wxPREFIX=$ac_default_prefix
20835fi
20836
20837cat >> confdefs.h <<EOF
20838#define wxINSTALL_PREFIX "$wxPREFIX"
20839EOF
20840
20841
20842
20843
20844
20845if test "$wxUSE_MAC" = 1 ; then
20846 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20847fi
20848
20849
20850LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20851
20852if test "$wxUSE_GUI" = "yes"; then
20853
20854 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20855
20856
20857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20858 drawing dynamic erase event exec font image \
20859 minimal rotate widgets"
20860
20861 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20862else
20863 SAMPLES_SUBDIRS="console"
20864fi
20865
20866
20867INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20868-I\${top_srcdir}/include \
20869$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20870$TOOLKIT_INCLUDE"
20871
20872if test "$wxUSE_GTK" = 1; then
20873 WXCONFIG_INCLUDE=
20874else
20875 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20876fi
20877
20878if test "$GXX" = yes ; then
20879 CXXWARNINGS="-Wall"
20880
20881 if test "$wxUSE_NO_DEPS" = "no" ; then
20882 CFLAGS="-MMD $CFLAGS"
20883 CXXFLAGS="-MMD $CXXFLAGS"
20884 fi
20885fi
20886
20887EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20888
20889CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20890CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20891LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20892
20893LDFLAGS="$LDFLAGS $PROFILE"
20894
20895SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20987echo "configure:20988: checking whether ${MAKE-make} sets \${MAKE}" >&5
20988set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20989if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20990 echo $ac_n "(cached) $ac_c" 1>&6
20991else
20992 cat > conftestmake <<\EOF
20993all:
20994 @echo 'ac_maketemp="${MAKE}"'
20995EOF
20996# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20997eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20998if test -n "$ac_maketemp"; then
20999 eval ac_cv_prog_make_${ac_make}_set=yes
21000else
21001 eval ac_cv_prog_make_${ac_make}_set=no
21002fi
21003rm -f conftestmake
21004fi
21005if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21006 echo "$ac_t""yes" 1>&6
21007 SET_MAKE=
21008else
21009 echo "$ac_t""no" 1>&6
21010 SET_MAKE="MAKE=${MAKE-make}"
21011fi
21012
21013
21014if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21015 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
21016fi
21017
21018
21019
21020wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21021wx_cv_if_gnu_make=$IF_GNU_MAKE
21022wx_cv_path_ifs=$PATH_IFS
21023wx_cv_program_ext=$PROGRAM_EXT
21024wx_cv_target_library=$WX_TARGET_LIBRARY
21025wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21026wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21027export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21028 wx_cv_path_ifs wx_cv_program_ext \
21029 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21030
21031subdirs="demos samples utils contrib"
21032
21033
21034trap '' 1 2 15
21035cat > confcache <<\EOF
21036# This file is a shell script that caches the results of configure
21037# tests run on this system so they can be shared between configure
21038# scripts and configure runs. It is not useful on other systems.
21039# If it contains results you don't want to keep, you may remove or edit it.
21040#
21041# By default, configure uses ./config.cache as the cache file,
21042# creating it if it does not exist already. You can give configure
21043# the --cache-file=FILE option to use a different cache file; that is
21044# what configure does when it calls configure scripts in
21045# subdirectories, so they share the cache.
21046# Giving --cache-file=/dev/null disables caching, for debugging configure.
21047# config.status only pays attention to the cache file if you give it the
21048# --recheck option to rerun configure.
21049#
21050EOF
21051# The following way of writing the cache mishandles newlines in values,
21052# but we know of no workaround that is simple, portable, and efficient.
21053# So, don't put newlines in cache variables' values.
21054# Ultrix sh set writes to stderr and can't be redirected directly,
21055# and sets the high bit in the cache file unless we assign to the vars.
21056(set) 2>&1 |
21057 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21058 *ac_space=\ *)
21059 # `set' does not quote correctly, so add quotes (double-quote substitution
21060 # turns \\\\ into \\, and sed turns \\ into \).
21061 sed -n \
21062 -e "s/'/'\\\\''/g" \
21063 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21064 ;;
21065 *)
21066 # `set' quotes correctly as required by POSIX, so do not add quotes.
21067 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21068 ;;
21069 esac >> confcache
21070if cmp -s $cache_file confcache; then
21071 :
21072else
21073 if test -w $cache_file; then
21074 echo "updating cache $cache_file"
21075 cat confcache > $cache_file
21076 else
21077 echo "not updating unwritable cache $cache_file"
21078 fi
21079fi
21080rm -f confcache
21081
21082trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21083
21084test "x$prefix" = xNONE && prefix=$ac_default_prefix
21085# Let make expand exec_prefix.
21086test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21087
21088# Any assignment to VPATH causes Sun make to only execute
21089# the first set of double-colon rules, so remove it if not needed.
21090# If there is a colon in the path, we need to keep it.
21091if test "x$srcdir" = x.; then
21092 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
21093fi
21094
21095trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21096
21097DEFS=-DHAVE_CONFIG_H
21098
21099# Without the "./", some shells look in PATH for config.status.
21100: ${CONFIG_STATUS=./config.status}
21101
21102echo creating $CONFIG_STATUS
21103rm -f $CONFIG_STATUS
21104cat > $CONFIG_STATUS <<EOF
21105#! /bin/sh
21106# Generated automatically by configure.
21107# Run this file to recreate the current configuration.
21108# This directory was configured as follows,
21109# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21110#
21111# $0 $ac_configure_args
21112#
21113# Compiler output produced by configure, useful for debugging
21114# configure, is in ./config.log if it exists.
21115
21116ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21117for ac_option
21118do
21119 case "\$ac_option" in
21120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21121 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21122 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21123 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21124 echo "$CONFIG_STATUS generated by autoconf version 2.13"
21125 exit 0 ;;
21126 -help | --help | --hel | --he | --h)
21127 echo "\$ac_cs_usage"; exit 0 ;;
21128 *) echo "\$ac_cs_usage"; exit 1 ;;
21129 esac
21130done
21131
21132ac_given_srcdir=$srcdir
21133ac_given_INSTALL="$INSTALL"
21134
21135trap 'rm -fr `echo "
21136 wx-config
21137 src/make.env
21138 src/makeprog.env
21139 src/makelib.env
21140 Makefile
21141 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21142EOF
21143cat >> $CONFIG_STATUS <<EOF
21144
21145# Protect against being on the right side of a sed subst in config.status.
21146sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21147 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21148$ac_vpsub
21149$extrasub
21150s%@SHELL@%$SHELL%g
21151s%@CFLAGS@%$CFLAGS%g
21152s%@CPPFLAGS@%$CPPFLAGS%g
21153s%@CXXFLAGS@%$CXXFLAGS%g
21154s%@FFLAGS@%$FFLAGS%g
21155s%@DEFS@%$DEFS%g
21156s%@LDFLAGS@%$LDFLAGS%g
21157s%@LIBS@%$LIBS%g
21158s%@exec_prefix@%$exec_prefix%g
21159s%@prefix@%$prefix%g
21160s%@program_transform_name@%$program_transform_name%g
21161s%@bindir@%$bindir%g
21162s%@sbindir@%$sbindir%g
21163s%@libexecdir@%$libexecdir%g
21164s%@datadir@%$datadir%g
21165s%@sysconfdir@%$sysconfdir%g
21166s%@sharedstatedir@%$sharedstatedir%g
21167s%@localstatedir@%$localstatedir%g
21168s%@libdir@%$libdir%g
21169s%@includedir@%$includedir%g
21170s%@oldincludedir@%$oldincludedir%g
21171s%@infodir@%$infodir%g
21172s%@mandir@%$mandir%g
21173s%@host@%$host%g
21174s%@host_alias@%$host_alias%g
21175s%@host_cpu@%$host_cpu%g
21176s%@host_vendor@%$host_vendor%g
21177s%@host_os@%$host_os%g
21178s%@target@%$target%g
21179s%@target_alias@%$target_alias%g
21180s%@target_cpu@%$target_cpu%g
21181s%@target_vendor@%$target_vendor%g
21182s%@target_os@%$target_os%g
21183s%@build@%$build%g
21184s%@build_alias@%$build_alias%g
21185s%@build_cpu@%$build_cpu%g
21186s%@build_vendor@%$build_vendor%g
21187s%@build_os@%$build_os%g
21188s%@CC@%$CC%g
21189s%@CPP@%$CPP%g
21190s%@CXX@%$CXX%g
21191s%@RANLIB@%$RANLIB%g
21192s%@AR@%$AR%g
21193s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21194s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21195s%@INSTALL_DATA@%$INSTALL_DATA%g
21196s%@STRIP@%$STRIP%g
21197s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21198s%@YACC@%$YACC%g
21199s%@LEX@%$LEX%g
21200s%@LEXLIB@%$LEXLIB%g
21201s%@LN_S@%$LN_S%g
21202s%@CXXCPP@%$CXXCPP%g
21203s%@PKG_CONFIG@%$PKG_CONFIG%g
21204s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21205s%@GTK_LIBS@%$GTK_LIBS%g
21206s%@GTK_CONFIG@%$GTK_CONFIG%g
21207s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21208s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21209s%@X_CFLAGS@%$X_CFLAGS%g
21210s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21211s%@X_LIBS@%$X_LIBS%g
21212s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21213s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21214s%@RESCOMP@%$RESCOMP%g
21215s%@DEREZ@%$DEREZ%g
21216s%@LIBICONV@%$LIBICONV%g
21217s%@LEX_STEM@%$LEX_STEM%g
21218s%@PATH_IFS@%$PATH_IFS%g
21219s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21220s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21221s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21222s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21223s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21224s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21225s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21226s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21227s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21228s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21229s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21230s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21231s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21232s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21233s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21234s%@WX_ALL@%$WX_ALL%g
21235s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21236s%@SHARED_LD@%$SHARED_LD%g
21237s%@PIC_FLAG@%$PIC_FLAG%g
21238s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21239s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21240s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21241s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21242s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21243s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21244s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21245s%@USE_GUI@%$USE_GUI%g
21246s%@AFMINSTALL@%$AFMINSTALL%g
21247s%@TOOLKIT@%$TOOLKIT%g
21248s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21249s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21250s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21251s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21252s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21253s%@cross_compiling@%$cross_compiling%g
21254s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21255s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21256s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21257s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21258s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21259s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21260s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21261s%@ALL_HEADERS@%$ALL_HEADERS%g
21262s%@ALL_SOURCES@%$ALL_SOURCES%g
21263s%@GUIDIST@%$GUIDIST%g
21264s%@PORT_FILES@%$PORT_FILES%g
21265s%@DISTDIR@%$DISTDIR%g
21266s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21267s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21268s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21269s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21270s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21271s%@EXTRADEFS@%$EXTRADEFS%g
21272s%@RESFLAGS@%$RESFLAGS%g
21273s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21274s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21275s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21276s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21277s%@LIBWXMACRES@%$LIBWXMACRES%g
21278s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21279s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21280s%@DLLTOOL@%$DLLTOOL%g
21281s%@AS@%$AS%g
21282s%@NM@%$NM%g
21283s%@LD@%$LD%g
21284s%@MAKEINFO@%$MAKEINFO%g
21285s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21286s%@SET_MAKE@%$SET_MAKE%g
21287s%@subdirs@%$subdirs%g
21288
21289CEOF
21290EOF
21291
21292cat >> $CONFIG_STATUS <<\EOF
21293
21294# Split the substitutions into bite-sized pieces for seds with
21295# small command number limits, like on Digital OSF/1 and HP-UX.
21296ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21297ac_file=1 # Number of current file.
21298ac_beg=1 # First line for current file.
21299ac_end=$ac_max_sed_cmds # Line after last line for current file.
21300ac_more_lines=:
21301ac_sed_cmds=""
21302while $ac_more_lines; do
21303 if test $ac_beg -gt 1; then
21304 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21305 else
21306 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21307 fi
21308 if test ! -s conftest.s$ac_file; then
21309 ac_more_lines=false
21310 rm -f conftest.s$ac_file
21311 else
21312 if test -z "$ac_sed_cmds"; then
21313 ac_sed_cmds="sed -f conftest.s$ac_file"
21314 else
21315 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21316 fi
21317 ac_file=`expr $ac_file + 1`
21318 ac_beg=$ac_end
21319 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21320 fi
21321done
21322if test -z "$ac_sed_cmds"; then
21323 ac_sed_cmds=cat
21324fi
21325EOF
21326
21327cat >> $CONFIG_STATUS <<EOF
21328
21329CONFIG_FILES=\${CONFIG_FILES-"wx-config
21330 src/make.env
21331 src/makeprog.env
21332 src/makelib.env
21333 Makefile
21334 "}
21335EOF
21336cat >> $CONFIG_STATUS <<\EOF
21337for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21338 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21339 case "$ac_file" in
21340 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21341 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21342 *) ac_file_in="${ac_file}.in" ;;
21343 esac
21344
21345 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21346
21347 # Remove last slash and all that follows it. Not all systems have dirname.
21348 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21349 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21350 # The file is in a subdirectory.
21351 test ! -d "$ac_dir" && mkdir "$ac_dir"
21352 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21353 # A "../" for each directory in $ac_dir_suffix.
21354 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21355 else
21356 ac_dir_suffix= ac_dots=
21357 fi
21358
21359 case "$ac_given_srcdir" in
21360 .) srcdir=.
21361 if test -z "$ac_dots"; then top_srcdir=.
21362 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21363 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21364 *) # Relative path.
21365 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21366 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21367 esac
21368
21369 case "$ac_given_INSTALL" in
21370 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21371 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21372 esac
21373
21374 echo creating "$ac_file"
21375 rm -f "$ac_file"
21376 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21377 case "$ac_file" in
21378 *Makefile*) ac_comsub="1i\\
21379# $configure_input" ;;
21380 *) ac_comsub= ;;
21381 esac
21382
21383 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21384 sed -e "$ac_comsub
21385s%@configure_input@%$configure_input%g
21386s%@srcdir@%$srcdir%g
21387s%@top_srcdir@%$top_srcdir%g
21388s%@INSTALL@%$INSTALL%g
21389" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21390fi; done
21391rm -f conftest.s*
21392
21393# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21394# NAME is the cpp macro being defined and VALUE is the value it is being given.
21395#
21396# ac_d sets the value in "#define NAME VALUE" lines.
21397ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21398ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21399ac_dC='\3'
21400ac_dD='%g'
21401# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21402ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21403ac_uB='\([ ]\)%\1#\2define\3'
21404ac_uC=' '
21405ac_uD='\4%g'
21406# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21407ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21408ac_eB='$%\1#\2define\3'
21409ac_eC=' '
21410ac_eD='%g'
21411
21412if test "${CONFIG_HEADERS+set}" != set; then
21413EOF
21414cat >> $CONFIG_STATUS <<EOF
21415 CONFIG_HEADERS="setup.h:setup.h.in"
21416EOF
21417cat >> $CONFIG_STATUS <<\EOF
21418fi
21419for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21421 case "$ac_file" in
21422 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21423 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21424 *) ac_file_in="${ac_file}.in" ;;
21425 esac
21426
21427 echo creating $ac_file
21428
21429 rm -f conftest.frag conftest.in conftest.out
21430 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21431 cat $ac_file_inputs > conftest.in
21432
21433EOF
21434
21435# Transform confdefs.h into a sed script conftest.vals that substitutes
21436# the proper values into config.h.in to produce config.h. And first:
21437# Protect against being on the right side of a sed subst in config.status.
21438# Protect against being in an unquoted here document in config.status.
21439rm -f conftest.vals
21440cat > conftest.hdr <<\EOF
21441s/[\\&%]/\\&/g
21442s%[\\$`]%\\&%g
21443s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21444s%ac_d%ac_u%gp
21445s%ac_u%ac_e%gp
21446EOF
21447sed -n -f conftest.hdr confdefs.h > conftest.vals
21448rm -f conftest.hdr
21449
21450# This sed command replaces #undef with comments. This is necessary, for
21451# example, in the case of _POSIX_SOURCE, which is predefined and required
21452# on some systems where configure will not decide to define it.
21453cat >> conftest.vals <<\EOF
21454s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21455EOF
21456
21457# Break up conftest.vals because some shells have a limit on
21458# the size of here documents, and old seds have small limits too.
21459
21460rm -f conftest.tail
21461while :
21462do
21463 ac_lines=`grep -c . conftest.vals`
21464 # grep -c gives empty output for an empty file on some AIX systems.
21465 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21466 # Write a limited-size here document to conftest.frag.
21467 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21468 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21469 echo 'CEOF
21470 sed -f conftest.frag conftest.in > conftest.out
21471 rm -f conftest.in
21472 mv conftest.out conftest.in
21473' >> $CONFIG_STATUS
21474 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21475 rm -f conftest.vals
21476 mv conftest.tail conftest.vals
21477done
21478rm -f conftest.vals
21479
21480cat >> $CONFIG_STATUS <<\EOF
21481 rm -f conftest.frag conftest.h
21482 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21483 cat conftest.in >> conftest.h
21484 rm -f conftest.in
21485 if cmp -s $ac_file conftest.h 2>/dev/null; then
21486 echo "$ac_file is unchanged"
21487 rm -f conftest.h
21488 else
21489 # Remove last slash and all that follows it. Not all systems have dirname.
21490 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21491 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21492 # The file is in a subdirectory.
21493 test ! -d "$ac_dir" && mkdir "$ac_dir"
21494 fi
21495 rm -f $ac_file
21496 mv conftest.h $ac_file
21497 fi
21498fi; done
21499
21500EOF
21501cat >> $CONFIG_STATUS <<EOF
21502
21503 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21504 LN_S="${LN_S}"
21505
21506
21507EOF
21508cat >> $CONFIG_STATUS <<\EOF
21509
21510 if test ! -h wx-config; then
21511 chmod +x wx-config
21512 mv wx-config wx${TOOLCHAIN_NAME}-config
21513 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21514 fi
21515
21516 if test ! -d lib; then
21517 mkdir lib
21518 fi
21519 if test ! -d lib/wx; then
21520 mkdir lib/wx
21521 fi
21522 if test ! -d lib/wx/include; then
21523 mkdir lib/wx/include
21524 fi
21525 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21526 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21527 fi
21528 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21529 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21530 fi
21531 if test -f setup.h; then
21532 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21533 fi
21534
21535exit 0
21536EOF
21537chmod +x $CONFIG_STATUS
21538rm -fr confdefs* $ac_clean_files
21539test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21540
21541if test "$no_recursion" != yes; then
21542
21543 # Remove --cache-file and --srcdir arguments so they do not pile up.
21544 ac_sub_configure_args=
21545 ac_prev=
21546 for ac_arg in $ac_configure_args; do
21547 if test -n "$ac_prev"; then
21548 ac_prev=
21549 continue
21550 fi
21551 case "$ac_arg" in
21552 -cache-file | --cache-file | --cache-fil | --cache-fi \
21553 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21554 ac_prev=cache_file ;;
21555 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21556 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21557 ;;
21558 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21559 ac_prev=srcdir ;;
21560 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21561 ;;
21562 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21563 esac
21564 done
21565
21566 for ac_config_dir in demos samples utils contrib; do
21567
21568 # Do not complain, so a configure script can configure whichever
21569 # parts of a large source tree are present.
21570 if test ! -d $srcdir/$ac_config_dir; then
21571 continue
21572 fi
21573
21574 echo configuring in $ac_config_dir
21575
21576 case "$srcdir" in
21577 .) ;;
21578 *)
21579 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21580 else
21581 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21582 fi
21583 ;;
21584 esac
21585
21586 ac_popdir=`pwd`
21587 cd $ac_config_dir
21588
21589 # A "../" for each directory in /$ac_config_dir.
21590 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21591
21592 case "$srcdir" in
21593 .) # No --srcdir option. We are building in place.
21594 ac_sub_srcdir=$srcdir ;;
21595 /*) # Absolute path.
21596 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21597 *) # Relative path.
21598 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21599 esac
21600
21601 # Check for guested configure; otherwise get Cygnus style configure.
21602 if test -f $ac_sub_srcdir/configure; then
21603 ac_sub_configure=$ac_sub_srcdir/configure
21604 elif test -f $ac_sub_srcdir/configure.in; then
21605 ac_sub_configure=$ac_configure
21606 else
21607 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21608 ac_sub_configure=
21609 fi
21610
21611 # The recursion is here.
21612 if test -n "$ac_sub_configure"; then
21613
21614 # Make the cache file name correct relative to the subdirectory.
21615 case "$cache_file" in
21616 /*) ac_sub_cache_file=$cache_file ;;
21617 *) # Relative path.
21618 ac_sub_cache_file="$ac_dots$cache_file" ;;
21619 esac
21620 case "$ac_given_INSTALL" in
21621 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21622 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21623 esac
21624
21625 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21626 # The eval makes quoting arguments work.
21627 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21628 then :
21629 else
21630 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21631 fi
21632 fi
21633
21634 cd $ac_popdir
21635 done
21636fi
21637
21638