]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
minor fixes:
[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.12
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=
493# Maximum number of lines to put in a shell here document.
494ac_max_here_lines=12
495
496ac_prev=
497for ac_option
498do
499
500 # If the previous option needs an argument, assign it.
501 if test -n "$ac_prev"; then
502 eval "$ac_prev=\$ac_option"
503 ac_prev=
504 continue
505 fi
506
507 case "$ac_option" in
508 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
509 *) ac_optarg= ;;
510 esac
511
512 # Accept the important Cygnus configure options, so we can diagnose typos.
513
514 case "$ac_option" in
515
516 -bindir | --bindir | --bindi | --bind | --bin | --bi)
517 ac_prev=bindir ;;
518 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
519 bindir="$ac_optarg" ;;
520
521 -build | --build | --buil | --bui | --bu)
522 ac_prev=build ;;
523 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
524 build="$ac_optarg" ;;
525
526 -cache-file | --cache-file | --cache-fil | --cache-fi \
527 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
528 ac_prev=cache_file ;;
529 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
530 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
531 cache_file="$ac_optarg" ;;
532
533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534 ac_prev=datadir ;;
535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536 | --da=*)
537 datadir="$ac_optarg" ;;
538
539 -disable-* | --disable-*)
540 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
541 # Reject names that are not valid shell variable names.
542 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
543 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
544 fi
545 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
546 eval "enable_${ac_feature}=no" ;;
547
548 -enable-* | --enable-*)
549 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
550 # Reject names that are not valid shell variable names.
551 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
552 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553 fi
554 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555 case "$ac_option" in
556 *=*) ;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "enable_${ac_feature}='$ac_optarg'" ;;
560
561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563 | --exec | --exe | --ex)
564 ac_prev=exec_prefix ;;
565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567 | --exec=* | --exe=* | --ex=*)
568 exec_prefix="$ac_optarg" ;;
569
570 -gas | --gas | --ga | --g)
571 # Obsolete; use --with-gas.
572 with_gas=yes ;;
573
574 -help | --help | --hel | --he)
575 # Omit some internal or obsolete options to make the list less imposing.
576 # This message is too long to be a string in the A/UX 3.1 sh.
577 cat << EOF
578Usage: configure [options] [host]
579Options: [defaults in brackets after descriptions]
580Configuration:
581 --cache-file=FILE cache test results in FILE
582 --help print this message
583 --no-create do not create output files
584 --quiet, --silent do not print \`checking...' messages
585 --version print the version of autoconf that created configure
586Directory and file names:
587 --prefix=PREFIX install architecture-independent files in PREFIX
588 [$ac_default_prefix]
589 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
590 [same as prefix]
591 --bindir=DIR user executables in DIR [EPREFIX/bin]
592 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
593 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
594 --datadir=DIR read-only architecture-independent data in DIR
595 [PREFIX/share]
596 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
597 --sharedstatedir=DIR modifiable architecture-independent data in DIR
598 [PREFIX/com]
599 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
600 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
601 --includedir=DIR C header files in DIR [PREFIX/include]
602 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
603 --infodir=DIR info documentation in DIR [PREFIX/info]
604 --mandir=DIR man documentation in DIR [PREFIX/man]
605 --srcdir=DIR find the sources in DIR [configure dir or ..]
606 --program-prefix=PREFIX prepend PREFIX to installed program names
607 --program-suffix=SUFFIX append SUFFIX to installed program names
608 --program-transform-name=PROGRAM
609 run sed PROGRAM on installed program names
610EOF
611 cat << EOF
612Host type:
613 --build=BUILD configure for building on BUILD [BUILD=HOST]
614 --host=HOST configure for HOST [guessed]
615 --target=TARGET configure for TARGET [TARGET=HOST]
616Features and packages:
617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
621 --x-includes=DIR X include files are in DIR
622 --x-libraries=DIR X library files are in DIR
623EOF
624 if test -n "$ac_help"; then
625 echo "--enable and --with options recognized:$ac_help"
626 fi
627 exit 0 ;;
628
629 -host | --host | --hos | --ho)
630 ac_prev=host ;;
631 -host=* | --host=* | --hos=* | --ho=*)
632 host="$ac_optarg" ;;
633
634 -includedir | --includedir | --includedi | --included | --include \
635 | --includ | --inclu | --incl | --inc)
636 ac_prev=includedir ;;
637 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
638 | --includ=* | --inclu=* | --incl=* | --inc=*)
639 includedir="$ac_optarg" ;;
640
641 -infodir | --infodir | --infodi | --infod | --info | --inf)
642 ac_prev=infodir ;;
643 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
644 infodir="$ac_optarg" ;;
645
646 -libdir | --libdir | --libdi | --libd)
647 ac_prev=libdir ;;
648 -libdir=* | --libdir=* | --libdi=* | --libd=*)
649 libdir="$ac_optarg" ;;
650
651 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
652 | --libexe | --libex | --libe)
653 ac_prev=libexecdir ;;
654 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
655 | --libexe=* | --libex=* | --libe=*)
656 libexecdir="$ac_optarg" ;;
657
658 -localstatedir | --localstatedir | --localstatedi | --localstated \
659 | --localstate | --localstat | --localsta | --localst \
660 | --locals | --local | --loca | --loc | --lo)
661 ac_prev=localstatedir ;;
662 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
663 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
664 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
665 localstatedir="$ac_optarg" ;;
666
667 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
668 ac_prev=mandir ;;
669 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
670 mandir="$ac_optarg" ;;
671
672 -nfp | --nfp | --nf)
673 # Obsolete; use --without-fp.
674 with_fp=no ;;
675
676 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
677 | --no-cr | --no-c)
678 no_create=yes ;;
679
680 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
681 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
682 no_recursion=yes ;;
683
684 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
685 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
686 | --oldin | --oldi | --old | --ol | --o)
687 ac_prev=oldincludedir ;;
688 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
689 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
690 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
691 oldincludedir="$ac_optarg" ;;
692
693 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
694 ac_prev=prefix ;;
695 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
696 prefix="$ac_optarg" ;;
697
698 -program-prefix | --program-prefix | --program-prefi | --program-pref \
699 | --program-pre | --program-pr | --program-p)
700 ac_prev=program_prefix ;;
701 -program-prefix=* | --program-prefix=* | --program-prefi=* \
702 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
703 program_prefix="$ac_optarg" ;;
704
705 -program-suffix | --program-suffix | --program-suffi | --program-suff \
706 | --program-suf | --program-su | --program-s)
707 ac_prev=program_suffix ;;
708 -program-suffix=* | --program-suffix=* | --program-suffi=* \
709 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
710 program_suffix="$ac_optarg" ;;
711
712 -program-transform-name | --program-transform-name \
713 | --program-transform-nam | --program-transform-na \
714 | --program-transform-n | --program-transform- \
715 | --program-transform | --program-transfor \
716 | --program-transfo | --program-transf \
717 | --program-trans | --program-tran \
718 | --progr-tra | --program-tr | --program-t)
719 ac_prev=program_transform_name ;;
720 -program-transform-name=* | --program-transform-name=* \
721 | --program-transform-nam=* | --program-transform-na=* \
722 | --program-transform-n=* | --program-transform-=* \
723 | --program-transform=* | --program-transfor=* \
724 | --program-transfo=* | --program-transf=* \
725 | --program-trans=* | --program-tran=* \
726 | --progr-tra=* | --program-tr=* | --program-t=*)
727 program_transform_name="$ac_optarg" ;;
728
729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
730 | -silent | --silent | --silen | --sile | --sil)
731 silent=yes ;;
732
733 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
734 ac_prev=sbindir ;;
735 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
736 | --sbi=* | --sb=*)
737 sbindir="$ac_optarg" ;;
738
739 -sharedstatedir | --sharedstatedir | --sharedstatedi \
740 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
741 | --sharedst | --shareds | --shared | --share | --shar \
742 | --sha | --sh)
743 ac_prev=sharedstatedir ;;
744 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
745 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
746 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
747 | --sha=* | --sh=*)
748 sharedstatedir="$ac_optarg" ;;
749
750 -site | --site | --sit)
751 ac_prev=site ;;
752 -site=* | --site=* | --sit=*)
753 site="$ac_optarg" ;;
754
755 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
756 ac_prev=srcdir ;;
757 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
758 srcdir="$ac_optarg" ;;
759
760 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
761 | --syscon | --sysco | --sysc | --sys | --sy)
762 ac_prev=sysconfdir ;;
763 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
764 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
765 sysconfdir="$ac_optarg" ;;
766
767 -target | --target | --targe | --targ | --tar | --ta | --t)
768 ac_prev=target ;;
769 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
770 target="$ac_optarg" ;;
771
772 -v | -verbose | --verbose | --verbos | --verbo | --verb)
773 verbose=yes ;;
774
775 -version | --version | --versio | --versi | --vers)
776 echo "configure generated by autoconf version 2.12"
777 exit 0 ;;
778
779 -with-* | --with-*)
780 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
781 # Reject names that are not valid shell variable names.
782 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
783 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
784 fi
785 ac_package=`echo $ac_package| sed 's/-/_/g'`
786 case "$ac_option" in
787 *=*) ;;
788 *) ac_optarg=yes ;;
789 esac
790 eval "with_${ac_package}='$ac_optarg'" ;;
791
792 -without-* | --without-*)
793 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
794 # Reject names that are not valid shell variable names.
795 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
796 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
797 fi
798 ac_package=`echo $ac_package| sed 's/-/_/g'`
799 eval "with_${ac_package}=no" ;;
800
801 --x)
802 # Obsolete; use --with-x.
803 with_x=yes ;;
804
805 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
806 | --x-incl | --x-inc | --x-in | --x-i)
807 ac_prev=x_includes ;;
808 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
809 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
810 x_includes="$ac_optarg" ;;
811
812 -x-libraries | --x-libraries | --x-librarie | --x-librari \
813 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
814 ac_prev=x_libraries ;;
815 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
816 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
817 x_libraries="$ac_optarg" ;;
818
819 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
820 ;;
821
822 *)
823 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
824 echo "configure: warning: $ac_option: invalid host type" 1>&2
825 fi
826 if test "x$nonopt" != xNONE; then
827 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
828 fi
829 nonopt="$ac_option"
830 ;;
831
832 esac
833done
834
835if test -n "$ac_prev"; then
836 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
837fi
838
839trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
840
841# File descriptor usage:
842# 0 standard input
843# 1 file creation
844# 2 errors and warnings
845# 3 some systems may open it to /dev/tty
846# 4 used on the Kubota Titan
847# 6 checking for... messages and results
848# 5 compiler messages saved in config.log
849if test "$silent" = yes; then
850 exec 6>/dev/null
851else
852 exec 6>&1
853fi
854exec 5>./config.log
855
856echo "\
857This file contains any messages produced by compilers while
858running configure, to aid debugging if configure makes a mistake.
859" 1>&5
860
861# Strip out --no-create and --no-recursion so they do not pile up.
862# Also quote any args containing shell metacharacters.
863ac_configure_args=
864for ac_arg
865do
866 case "$ac_arg" in
867 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
868 | --no-cr | --no-c) ;;
869 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
870 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
871 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
872 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
873 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
874 esac
875done
876
877# NLS nuisances.
878# Only set these to C if already set. These must not be set unconditionally
879# because not all systems understand e.g. LANG=C (notably SCO).
880# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
881# Non-C LC_CTYPE values break the ctype check.
882if test "${LANG+set}" = set; then LANG=C; export LANG; fi
883if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
884if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
885if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
886
887# confdefs.h avoids OS command line length limits that DEFS can exceed.
888rm -rf conftest* confdefs.h
889# AIX cpp loses on an empty file, so make sure it contains at least a newline.
890echo > confdefs.h
891
892# A filename unique to this package, relative to the directory that
893# configure is in, which we can look for to find out if srcdir is correct.
894ac_unique_file=wx-config.in
895
896# Find the source files, if location was not specified.
897if test -z "$srcdir"; then
898 ac_srcdir_defaulted=yes
899 # Try the directory containing this script, then its parent.
900 ac_prog=$0
901 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
902 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
903 srcdir=$ac_confdir
904 if test ! -r $srcdir/$ac_unique_file; then
905 srcdir=..
906 fi
907else
908 ac_srcdir_defaulted=no
909fi
910if test ! -r $srcdir/$ac_unique_file; then
911 if test "$ac_srcdir_defaulted" = yes; then
912 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
913 else
914 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
915 fi
916fi
917srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
918
919# Prefer explicitly selected file to automatically selected ones.
920if test -z "$CONFIG_SITE"; then
921 if test "x$prefix" != xNONE; then
922 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
923 else
924 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
925 fi
926fi
927for ac_site_file in $CONFIG_SITE; do
928 if test -r "$ac_site_file"; then
929 echo "loading site script $ac_site_file"
930 . "$ac_site_file"
931 fi
932done
933
934if test -r "$cache_file"; then
935 echo "loading cache $cache_file"
936 . $cache_file
937else
938 echo "creating cache $cache_file"
939 > $cache_file
940fi
941
942ac_ext=c
943# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
944ac_cpp='$CPP $CPPFLAGS'
945ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
946ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
947cross_compiling=$ac_cv_prog_cc_cross
948
949if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
950 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
951 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
952 ac_n= ac_c='
953' ac_t=' '
954 else
955 ac_n=-n ac_c= ac_t=
956 fi
957else
958 ac_n= ac_c='\c' ac_t=
959fi
960
961
962
963ac_aux_dir=
964for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
965 if test -f $ac_dir/install-sh; then
966 ac_aux_dir=$ac_dir
967 ac_install_sh="$ac_aux_dir/install-sh -c"
968 break
969 elif test -f $ac_dir/install.sh; then
970 ac_aux_dir=$ac_dir
971 ac_install_sh="$ac_aux_dir/install.sh -c"
972 break
973 fi
974done
975if test -z "$ac_aux_dir"; then
976 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
977fi
978ac_config_guess=$ac_aux_dir/config.guess
979ac_config_sub=$ac_aux_dir/config.sub
980ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
981
982
983# Do some error checking and defaulting for the host and target type.
984# The inputs are:
985# configure --host=HOST --target=TARGET --build=BUILD NONOPT
986#
987# The rules are:
988# 1. You are not allowed to specify --host, --target, and nonopt at the
989# same time.
990# 2. Host defaults to nonopt.
991# 3. If nonopt is not specified, then host defaults to the current host,
992# as determined by config.guess.
993# 4. Target and build default to nonopt.
994# 5. If nonopt is not specified, then target and build default to host.
995
996# The aliases save the names the user supplied, while $host etc.
997# will get canonicalized.
998case $host---$target---$nonopt in
999NONE---*---* | *---NONE---* | *---*---NONE) ;;
1000*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1001esac
1002
1003
1004# Make sure we can run config.sub.
1005if $ac_config_sub sun4 >/dev/null 2>&1; then :
1006else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1007fi
1008
1009echo $ac_n "checking host system type""... $ac_c" 1>&6
1010echo "configure:1011: checking host system type" >&5
1011
1012host_alias=$host
1013case "$host_alias" in
1014NONE)
1015 case $nonopt in
1016 NONE)
1017 if host_alias=`$ac_config_guess`; then :
1018 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1019 fi ;;
1020 *) host_alias=$nonopt ;;
1021 esac ;;
1022esac
1023
1024host=`$ac_config_sub $host_alias`
1025host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1026host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1027host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1028echo "$ac_t""$host" 1>&6
1029
1030echo $ac_n "checking target system type""... $ac_c" 1>&6
1031echo "configure:1032: checking target system type" >&5
1032
1033target_alias=$target
1034case "$target_alias" in
1035NONE)
1036 case $nonopt in
1037 NONE) target_alias=$host_alias ;;
1038 *) target_alias=$nonopt ;;
1039 esac ;;
1040esac
1041
1042target=`$ac_config_sub $target_alias`
1043target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046echo "$ac_t""$target" 1>&6
1047
1048echo $ac_n "checking build system type""... $ac_c" 1>&6
1049echo "configure:1050: checking build system type" >&5
1050
1051build_alias=$build
1052case "$build_alias" in
1053NONE)
1054 case $nonopt in
1055 NONE) build_alias=$host_alias ;;
1056 *) build_alias=$nonopt ;;
1057 esac ;;
1058esac
1059
1060build=`$ac_config_sub $build_alias`
1061build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1062build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1063build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064echo "$ac_t""$build" 1>&6
1065
1066test "$host_alias" != "$target_alias" &&
1067 test "$program_prefix$program_suffix$program_transform_name" = \
1068 NONENONEs,x,x, &&
1069 program_prefix=${target_alias}-
1070
1071
1072
1073WX_MAJOR_VERSION_NUMBER=2
1074WX_MINOR_VERSION_NUMBER=3
1075WX_RELEASE_NUMBER=3
1076
1077WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1078WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1079
1080WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1081
1082WX_CURRENT=2
1083WX_REVISION=0
1084WX_AGE=0
1085
1086
1087
1088USE_UNIX=1
1089USE_WIN32=0
1090USE_DOS=0
1091USE_BEOS=0
1092USE_MAC=0
1093
1094USE_LINUX=
1095USE_SGI=
1096USE_HPUX=
1097USE_SYSV=
1098USE_SVR4=
1099USE_AIX=
1100USE_SUN=
1101USE_SOLARIS=
1102USE_SUNOS=
1103USE_ALPHA=
1104USE_OSF=
1105USE_BSD=
1106USE_DARWIN=
1107USE_FREEBSD=
1108USE_OPENBSD=
1109USE_NETBSD=
1110USE_VMS=
1111USE_ULTRIX=
1112USE_DATA_GENERAL=
1113
1114NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1115
1116ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1117
1118DEFAULT_wxUSE_GTK=0
1119DEFAULT_wxUSE_MAC=0
1120DEFAULT_wxUSE_MGL=0
1121DEFAULT_wxUSE_MICROWIN=0
1122DEFAULT_wxUSE_MOTIF=0
1123DEFAULT_wxUSE_MSW=0
1124DEFAULT_wxUSE_PM=0
1125DEFAULT_wxUSE_WINE=0
1126DEFAULT_wxUSE_X11=0
1127
1128DEFAULT_DEFAULT_wxUSE_GTK=0
1129DEFAULT_DEFAULT_wxUSE_MAC=0
1130DEFAULT_DEFAULT_wxUSE_MGL=0
1131DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1132DEFAULT_DEFAULT_wxUSE_MOTIF=0
1133DEFAULT_DEFAULT_wxUSE_MSW=0
1134DEFAULT_DEFAULT_wxUSE_PM=0
1135DEFAULT_DEFAULT_wxUSE_WINE=0
1136DEFAULT_DEFAULT_wxUSE_X11=0
1137
1138PROGRAM_EXT=
1139SO_SUFFIX=so
1140
1141case "${host}" in
1142 *-hp-hpux* )
1143 USE_HPUX=1
1144 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1145 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1146 SO_SUFFIX=sl
1147 cat >> confdefs.h <<\EOF
1148#define __HPUX__ 1
1149EOF
1150
1151 ;;
1152 *-*-linux* )
1153 USE_LINUX=1
1154 cat >> confdefs.h <<\EOF
1155#define __LINUX__ 1
1156EOF
1157
1158 TMP=`uname -m`
1159 if test "x$TMP" = "xalpha"; then
1160 USE_ALPHA=1
1161 cat >> confdefs.h <<\EOF
1162#define __ALPHA__ 1
1163EOF
1164
1165 fi
1166 DEFAULT_DEFAULT_wxUSE_GTK=1
1167 ;;
1168 *-*-irix5* | *-*-irix6* )
1169 USE_SGI=1
1170 USE_SVR4=1
1171 cat >> confdefs.h <<\EOF
1172#define __SGI__ 1
1173EOF
1174
1175 cat >> confdefs.h <<\EOF
1176#define __SVR4__ 1
1177EOF
1178
1179 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1180 ;;
1181 *-*-solaris2* )
1182 USE_SUN=1
1183 USE_SOLARIS=1
1184 USE_SVR4=1
1185 cat >> confdefs.h <<\EOF
1186#define __SUN__ 1
1187EOF
1188
1189 cat >> confdefs.h <<\EOF
1190#define __SOLARIS__ 1
1191EOF
1192
1193 cat >> confdefs.h <<\EOF
1194#define __SVR4__ 1
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1198 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1199 ;;
1200 *-*-sunos4* )
1201 USE_SUN=1
1202 USE_SUNOS=1
1203 USE_BSD=1
1204 cat >> confdefs.h <<\EOF
1205#define __SUN__ 1
1206EOF
1207
1208 cat >> confdefs.h <<\EOF
1209#define __SUNOS__ 1
1210EOF
1211
1212 cat >> confdefs.h <<\EOF
1213#define __BSD__ 1
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-freebsd*)
1219 USE_BSD=1
1220 USE_FREEBSD=1
1221 cat >> confdefs.h <<\EOF
1222#define __FREEBSD__ 1
1223EOF
1224
1225 cat >> confdefs.h <<\EOF
1226#define __BSD__ 1
1227EOF
1228
1229 DEFAULT_DEFAULT_wxUSE_GTK=1
1230 ;;
1231 *-*-openbsd*)
1232 USE_BSD=1
1233 USE_OPENBSD=1
1234 cat >> confdefs.h <<\EOF
1235#define __FREEBSD__ 1
1236EOF
1237
1238 cat >> confdefs.h <<\EOF
1239#define __OPENBSD__ 1
1240EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_GTK=1
1243 ;;
1244 *-*-netbsd*)
1245 USE_BSD=1
1246 USE_NETBSD=1
1247 cat >> confdefs.h <<\EOF
1248#define __FREEBSD__ 1
1249EOF
1250
1251 cat >> confdefs.h <<\EOF
1252#define __NETBSD__ 1
1253EOF
1254
1255 DEFAULT_DEFAULT_wxUSE_GTK=1
1256 ;;
1257 *-*-osf* )
1258 USE_ALPHA=1
1259 USE_OSF=1
1260 cat >> confdefs.h <<\EOF
1261#define __ALPHA__ 1
1262EOF
1263
1264 cat >> confdefs.h <<\EOF
1265#define __OSF__ 1
1266EOF
1267
1268 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1269 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1270 ;;
1271 *-*-dgux5* )
1272 USE_ALPHA=1
1273 USE_SVR4=1
1274 cat >> confdefs.h <<\EOF
1275#define __ALPHA__ 1
1276EOF
1277
1278 cat >> confdefs.h <<\EOF
1279#define __SVR4__ 1
1280EOF
1281
1282 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1283 ;;
1284 *-*-sysv5* )
1285 USE_SYSV=1
1286 USE_SVR4=1
1287 cat >> confdefs.h <<\EOF
1288#define __SYSV__ 1
1289EOF
1290
1291 cat >> confdefs.h <<\EOF
1292#define __SVR4__ 1
1293EOF
1294
1295 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1296 ;;
1297 *-*-aix* )
1298 USE_AIX=1
1299 USE_SYSV=1
1300 USE_SVR4=1
1301 SO_SUFFIX=a
1302 cat >> confdefs.h <<\EOF
1303#define __AIX__ 1
1304EOF
1305
1306 cat >> confdefs.h <<\EOF
1307#define __SYSV__ 1
1308EOF
1309
1310 cat >> confdefs.h <<\EOF
1311#define __SVR4__ 1
1312EOF
1313
1314 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1315 ;;
1316
1317 *-*-cygwin* | *-*-mingw32* )
1318 SO_SUFFIX=dll
1319 PROGRAM_EXT=".exe"
1320 RESCOMP=windres
1321 DEFAULT_DEFAULT_wxUSE_MSW=1
1322 ;;
1323
1324 *-pc-msdosdjgpp )
1325 USE_UNIX=0
1326 USE_DOS=1
1327 cat >> confdefs.h <<\EOF
1328#define __DOS__ 1
1329EOF
1330
1331 PROGRAM_EXT=".exe"
1332 DEFAULT_DEFAULT_wxUSE_MGL=1
1333 LIBS="$LIBS -lstdc++"
1334 ;;
1335
1336 *-pc-os2_emx | *-pc-os2-emx )
1337 cat >> confdefs.h <<\EOF
1338#define __EMX__ 1
1339EOF
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_PM=1
1343 LIBS="$LIBS -lstdcpp"
1344 ;;
1345
1346 powerpc-*-darwin* )
1347 USE_BSD=1
1348 USE_DARWIN=1
1349 SO_SUFFIX=dylib
1350 cat >> confdefs.h <<\EOF
1351#define __BSD__ 1
1352EOF
1353
1354 cat >> confdefs.h <<\EOF
1355#define __DARWIN__ 1
1356EOF
1357
1358 cat >> confdefs.h <<\EOF
1359#define __POWERPC__ 1
1360EOF
1361
1362 DEFAULT_DEFAULT_wxUSE_MAC=1
1363 ;;
1364
1365 *-*-beos* )
1366 USE_BEOS=1
1367 cat >> confdefs.h <<\EOF
1368#define __BEOS__ 1
1369EOF
1370
1371 ;;
1372
1373 *)
1374 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1375esac
1376
1377
1378
1379
1380 wx_arg_cache_file="configarg.cache"
1381 echo "loading argument cache $wx_arg_cache_file"
1382 rm -f ${wx_arg_cache_file}.tmp
1383 touch ${wx_arg_cache_file}.tmp
1384 touch ${wx_arg_cache_file}
1385
1386
1387DEBUG_CONFIGURE=0
1388if test $DEBUG_CONFIGURE = 1; then
1389 DEFAULT_wxUSE_UNIVERSAL=no
1390
1391 DEFAULT_wxUSE_NANOX=no
1392
1393 DEFAULT_wxUSE_THREADS=yes
1394
1395 DEFAULT_wxUSE_SHARED=yes
1396 DEFAULT_wxUSE_SONAME=no
1397 DEFAULT_wxUSE_OPTIMISE=no
1398 DEFAULT_wxUSE_PROFILE=no
1399 DEFAULT_wxUSE_NO_DEPS=no
1400 DEFAULT_wxUSE_NO_RTTI=no
1401 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1402 DEFAULT_wxUSE_PERMISSIVE=no
1403 DEFAULT_wxUSE_DEBUG_FLAG=yes
1404 DEFAULT_wxUSE_DEBUG_INFO=yes
1405 DEFAULT_wxUSE_DEBUG_GDB=yes
1406 DEFAULT_wxUSE_MEM_TRACING=no
1407 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1408 DEFAULT_wxUSE_DMALLOC=no
1409 DEFAULT_wxUSE_PRECOMP=no
1410 DEFAULT_wxUSE_APPLE_IEEE=no
1411
1412 DEFAULT_wxUSE_LOG=yes
1413 DEFAULT_wxUSE_LOGWINDOW=no
1414 DEFAULT_wxUSE_LOGGUI=no
1415 DEFAULT_wxUSE_LOGDIALOG=no
1416
1417 DEFAULT_wxUSE_GUI=yes
1418 DEFAULT_wxUSE_CONTROLS=no
1419
1420 DEFAULT_wxUSE_REGEX=no
1421 DEFAULT_wxUSE_ZLIB=no
1422 DEFAULT_wxUSE_LIBPNG=no
1423 DEFAULT_wxUSE_LIBJPEG=no
1424 DEFAULT_wxUSE_LIBTIFF=no
1425 DEFAULT_wxUSE_ODBC=no
1426 DEFAULT_wxUSE_OPENGL=no
1427
1428 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1429 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1430 DEFAULT_wxUSE_STD_IOSTREAM=no
1431 DEFAULT_wxUSE_CMDLINE_PARSER=no
1432 DEFAULT_wxUSE_DATETIME=no
1433 DEFAULT_wxUSE_TIMEDATE=no
1434 DEFAULT_wxUSE_TIMER=no
1435 DEFAULT_wxUSE_STOPWATCH=no
1436 DEFAULT_wxUSE_FILE=no
1437 DEFAULT_wxUSE_FFILE=no
1438 DEFAULT_wxUSE_TEXTBUFFER=no
1439 DEFAULT_wxUSE_TEXTFILE=no
1440 DEFAULT_wxUSE_WAVE=no
1441 DEFAULT_wxUSE_INTL=no
1442 DEFAULT_wxUSE_CONFIG=no
1443 DEFAULT_wxUSE_FONTMAP=no
1444 DEFAULT_wxUSE_STREAMS=no
1445 DEFAULT_wxUSE_SOCKETS=no
1446 DEFAULT_wxUSE_DIALUP_MANAGER=no
1447 DEFAULT_wxUSE_JOYSTICK=no
1448 DEFAULT_wxUSE_DYNLIB_CLASS=no
1449 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1450 DEFAULT_wxUSE_LONGLONG=no
1451 DEFAULT_wxUSE_GEOMETRY=no
1452
1453 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1454 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1455 DEFAULT_wxUSE_POSTSCRIPT=no
1456
1457 DEFAULT_wxUSE_X_RESOURCES=no
1458 DEFAULT_wxUSE_CLIPBOARD=no
1459 DEFAULT_wxUSE_TOOLTIPS=no
1460 DEFAULT_wxUSE_DRAG_AND_DROP=no
1461 DEFAULT_wxUSE_DRAGIMAGE=no
1462 DEFAULT_wxUSE_SPLINES=no
1463
1464 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1465 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1466 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1467
1468 DEFAULT_wxUSE_PROLOGIO=no
1469 DEFAULT_wxUSE_RESOURCES=no
1470 DEFAULT_wxUSE_CONSTRAINTS=no
1471 DEFAULT_wxUSE_IPC=no
1472 DEFAULT_wxUSE_HELP=no
1473 DEFAULT_wxUSE_MS_HTML_HELP=no
1474 DEFAULT_wxUSE_WXHTML_HELP=no
1475 DEFAULT_wxUSE_TREELAYOUT=no
1476 DEFAULT_wxUSE_METAFILE=no
1477 DEFAULT_wxUSE_MIMETYPE=no
1478 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1479 DEFAULT_wxUSE_PROTOCOL=no
1480 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1481 DEFAULT_wxUSE_PROTOCOL_FTP=no
1482 DEFAULT_wxUSE_PROTOCOL_FILE=no
1483 DEFAULT_wxUSE_URL=no
1484
1485 DEFAULT_wxUSE_COMMONDLGS=no
1486 DEFAULT_wxUSE_CHOICEDLG=no
1487 DEFAULT_wxUSE_COLOURDLG=no
1488 DEFAULT_wxUSE_DIRDLG=no
1489 DEFAULT_wxUSE_FILEDLG=no
1490 DEFAULT_wxUSE_FINDREPLDLG=no
1491 DEFAULT_wxUSE_FONTDLG=no
1492 DEFAULT_wxUSE_MSGDLG=no
1493 DEFAULT_wxUSE_NUMBERDLG=no
1494 DEFAULT_wxUSE_TEXTDLG=no
1495 DEFAULT_wxUSE_SPLASH=no
1496 DEFAULT_wxUSE_STARTUP_TIPS=no
1497 DEFAULT_wxUSE_PROGRESSDLG=no
1498 DEFAULT_wxUSE_WIZARDDLG=no
1499
1500 DEFAULT_wxUSE_MENUS=no
1501 DEFAULT_wxUSE_MINIFRAME=no
1502 DEFAULT_wxUSE_HTML=no
1503 DEFAULT_wxUSE_FILESYSTEM=no
1504 DEFAULT_wxUSE_FS_INET=no
1505 DEFAULT_wxUSE_FS_ZIP=no
1506 DEFAULT_wxUSE_BUSYINFO=no
1507 DEFAULT_wxUSE_ZIPSTREAM=no
1508 DEFAULT_wxUSE_VALIDATORS=no
1509
1510 DEFAULT_wxUSE_ACCEL=no
1511 DEFAULT_wxUSE_BUTTON=no
1512 DEFAULT_wxUSE_BMPBUTTON=no
1513 DEFAULT_wxUSE_CALCTRL=no
1514 DEFAULT_wxUSE_CARET=no
1515 DEFAULT_wxUSE_CHECKBOX=no
1516 DEFAULT_wxUSE_CHECKLST=no
1517 DEFAULT_wxUSE_CHOICE=no
1518 DEFAULT_wxUSE_COMBOBOX=no
1519 DEFAULT_wxUSE_GAUGE=no
1520 DEFAULT_wxUSE_GRID=no
1521 DEFAULT_wxUSE_NEW_GRID=no
1522 DEFAULT_wxUSE_IMAGLIST=no
1523 DEFAULT_wxUSE_LISTBOX=no
1524 DEFAULT_wxUSE_LISTCTRL=no
1525 DEFAULT_wxUSE_NOTEBOOK=no
1526 DEFAULT_wxUSE_PROPSHEET=no
1527 DEFAULT_wxUSE_RADIOBOX=no
1528 DEFAULT_wxUSE_RADIOBTN=no
1529 DEFAULT_wxUSE_SASH=no
1530 DEFAULT_wxUSE_SCROLLBAR=no
1531 DEFAULT_wxUSE_SLIDER=no
1532 DEFAULT_wxUSE_SPINBTN=no
1533 DEFAULT_wxUSE_SPINCTRL=no
1534 DEFAULT_wxUSE_SPLITTER=no
1535 DEFAULT_wxUSE_STATBMP=no
1536 DEFAULT_wxUSE_STATBOX=no
1537 DEFAULT_wxUSE_STATLINE=no
1538 DEFAULT_wxUSE_STATTEXT=no
1539 DEFAULT_wxUSE_STATUSBAR=yes
1540 DEFAULT_wxUSE_TABDIALOG=no
1541 DEFAULT_wxUSE_TEXTCTRL=no
1542 DEFAULT_wxUSE_TOGGLEBTN=no
1543 DEFAULT_wxUSE_TOOLBAR=no
1544 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1545 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1546 DEFAULT_wxUSE_TREECTRL=no
1547 DEFAULT_wxUSE_POPUPWIN=no
1548 DEFAULT_wxUSE_TIPWINDOW=no
1549
1550 DEFAULT_wxUSE_UNICODE=no
1551 DEFAULT_wxUSE_UNICODE_MSLU=no
1552 DEFAULT_wxUSE_WCSRTOMBS=no
1553
1554 DEFAULT_wxUSE_PALETTE=no
1555 DEFAULT_wxUSE_IMAGE=no
1556 DEFAULT_wxUSE_GIF=no
1557 DEFAULT_wxUSE_PCX=no
1558 DEFAULT_wxUSE_PNM=no
1559 DEFAULT_wxUSE_IFF=no
1560 DEFAULT_wxUSE_XPM=no
1561 DEFAULT_wxUSE_ICO_CUR=no
1562else
1563 DEFAULT_wxUSE_UNIVERSAL=no
1564
1565 DEFAULT_wxUSE_NANOX=no
1566
1567 DEFAULT_wxUSE_THREADS=yes
1568
1569 DEFAULT_wxUSE_SHARED=yes
1570 DEFAULT_wxUSE_SONAME=no
1571 DEFAULT_wxUSE_OPTIMISE=yes
1572 DEFAULT_wxUSE_PROFILE=no
1573 DEFAULT_wxUSE_NO_DEPS=no
1574 DEFAULT_wxUSE_NO_RTTI=no
1575 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1576 DEFAULT_wxUSE_PERMISSIVE=no
1577 DEFAULT_wxUSE_DEBUG_FLAG=no
1578 DEFAULT_wxUSE_DEBUG_INFO=no
1579 DEFAULT_wxUSE_DEBUG_GDB=no
1580 DEFAULT_wxUSE_MEM_TRACING=no
1581 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1582 DEFAULT_wxUSE_DMALLOC=no
1583 DEFAULT_wxUSE_PRECOMP=no
1584 DEFAULT_wxUSE_APPLE_IEEE=yes
1585
1586 DEFAULT_wxUSE_LOG=yes
1587 DEFAULT_wxUSE_LOGWINDOW=yes
1588 DEFAULT_wxUSE_LOGGUI=yes
1589 DEFAULT_wxUSE_LOGDIALOG=yes
1590
1591 DEFAULT_wxUSE_GUI=yes
1592
1593 DEFAULT_wxUSE_REGEX=yes
1594 DEFAULT_wxUSE_ZLIB=yes
1595 DEFAULT_wxUSE_LIBPNG=yes
1596 DEFAULT_wxUSE_LIBJPEG=yes
1597 DEFAULT_wxUSE_LIBTIFF=yes
1598 DEFAULT_wxUSE_ODBC=no
1599 DEFAULT_wxUSE_OPENGL=no
1600
1601 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1602 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1603 DEFAULT_wxUSE_STD_IOSTREAM=no
1604 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1605 DEFAULT_wxUSE_DATETIME=yes
1606 DEFAULT_wxUSE_TIMEDATE=no
1607 DEFAULT_wxUSE_TIMER=yes
1608 DEFAULT_wxUSE_STOPWATCH=yes
1609 DEFAULT_wxUSE_FILE=yes
1610 DEFAULT_wxUSE_FFILE=yes
1611 DEFAULT_wxUSE_TEXTBUFFER=yes
1612 DEFAULT_wxUSE_TEXTFILE=yes
1613 DEFAULT_wxUSE_WAVE=no
1614 DEFAULT_wxUSE_INTL=yes
1615 DEFAULT_wxUSE_CONFIG=yes
1616 DEFAULT_wxUSE_FONTMAP=yes
1617 DEFAULT_wxUSE_STREAMS=yes
1618 DEFAULT_wxUSE_SOCKETS=yes
1619 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1620 DEFAULT_wxUSE_JOYSTICK=yes
1621 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1622 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1623 DEFAULT_wxUSE_LONGLONG=yes
1624 DEFAULT_wxUSE_GEOMETRY=yes
1625
1626 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1627 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1628 DEFAULT_wxUSE_POSTSCRIPT=yes
1629
1630 DEFAULT_wxUSE_X_RESOURCES=no
1631 DEFAULT_wxUSE_CLIPBOARD=yes
1632 DEFAULT_wxUSE_TOOLTIPS=yes
1633 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1634 DEFAULT_wxUSE_DRAGIMAGE=yes
1635 DEFAULT_wxUSE_SPLINES=yes
1636
1637 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1638 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1639 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1640
1641 DEFAULT_wxUSE_PROLOGIO=yes
1642 DEFAULT_wxUSE_RESOURCES=yes
1643 DEFAULT_wxUSE_CONSTRAINTS=yes
1644 DEFAULT_wxUSE_IPC=yes
1645 DEFAULT_wxUSE_HELP=yes
1646 DEFAULT_wxUSE_MS_HTML_HELP=yes
1647 DEFAULT_wxUSE_WXHTML_HELP=yes
1648 DEFAULT_wxUSE_TREELAYOUT=yes
1649 DEFAULT_wxUSE_METAFILE=yes
1650 DEFAULT_wxUSE_MIMETYPE=yes
1651 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1652 DEFAULT_wxUSE_PROTOCOL=yes
1653 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1654 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1655 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1656 DEFAULT_wxUSE_URL=yes
1657
1658 DEFAULT_wxUSE_COMMONDLGS=yes
1659 DEFAULT_wxUSE_CHOICEDLG=yes
1660 DEFAULT_wxUSE_COLOURDLG=yes
1661 DEFAULT_wxUSE_DIRDLG=yes
1662 DEFAULT_wxUSE_FILEDLG=yes
1663 DEFAULT_wxUSE_FINDREPLDLG=yes
1664 DEFAULT_wxUSE_FONTDLG=yes
1665 DEFAULT_wxUSE_MSGDLG=yes
1666 DEFAULT_wxUSE_NUMBERDLG=yes
1667 DEFAULT_wxUSE_TEXTDLG=yes
1668 DEFAULT_wxUSE_SPLASH=yes
1669 DEFAULT_wxUSE_STARTUP_TIPS=yes
1670 DEFAULT_wxUSE_PROGRESSDLG=yes
1671 DEFAULT_wxUSE_WIZARDDLG=yes
1672
1673 DEFAULT_wxUSE_MENUS=yes
1674 DEFAULT_wxUSE_MINIFRAME=yes
1675 DEFAULT_wxUSE_HTML=yes
1676 DEFAULT_wxUSE_FILESYSTEM=yes
1677 DEFAULT_wxUSE_FS_INET=yes
1678 DEFAULT_wxUSE_FS_ZIP=yes
1679 DEFAULT_wxUSE_BUSYINFO=yes
1680 DEFAULT_wxUSE_ZIPSTREAM=yes
1681 DEFAULT_wxUSE_VALIDATORS=yes
1682
1683 DEFAULT_wxUSE_ACCEL=yes
1684 DEFAULT_wxUSE_BUTTON=yes
1685 DEFAULT_wxUSE_BMPBUTTON=yes
1686 DEFAULT_wxUSE_CALCTRL=yes
1687 DEFAULT_wxUSE_CARET=yes
1688 DEFAULT_wxUSE_CHECKBOX=yes
1689 DEFAULT_wxUSE_CHECKLST=yes
1690 DEFAULT_wxUSE_CHOICE=yes
1691 DEFAULT_wxUSE_COMBOBOX=yes
1692 DEFAULT_wxUSE_GAUGE=yes
1693 DEFAULT_wxUSE_GRID=yes
1694 DEFAULT_wxUSE_NEW_GRID=yes
1695 DEFAULT_wxUSE_IMAGLIST=yes
1696 DEFAULT_wxUSE_LISTBOX=yes
1697 DEFAULT_wxUSE_LISTCTRL=yes
1698 DEFAULT_wxUSE_NOTEBOOK=yes
1699 DEFAULT_wxUSE_PROPSHEET=yes
1700 DEFAULT_wxUSE_RADIOBOX=yes
1701 DEFAULT_wxUSE_RADIOBTN=yes
1702 DEFAULT_wxUSE_SASH=yes
1703 DEFAULT_wxUSE_SCROLLBAR=yes
1704 DEFAULT_wxUSE_SLIDER=yes
1705 DEFAULT_wxUSE_SPINBTN=yes
1706 DEFAULT_wxUSE_SPINCTRL=yes
1707 DEFAULT_wxUSE_SPLITTER=yes
1708 DEFAULT_wxUSE_STATBMP=yes
1709 DEFAULT_wxUSE_STATBOX=yes
1710 DEFAULT_wxUSE_STATLINE=yes
1711 DEFAULT_wxUSE_STATTEXT=yes
1712 DEFAULT_wxUSE_STATUSBAR=yes
1713 DEFAULT_wxUSE_TABDIALOG=no
1714 DEFAULT_wxUSE_TEXTCTRL=yes
1715 DEFAULT_wxUSE_TOGGLEBTN=yes
1716 DEFAULT_wxUSE_TOOLBAR=yes
1717 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1718 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1719 DEFAULT_wxUSE_TREECTRL=yes
1720 DEFAULT_wxUSE_POPUPWIN=yes
1721 DEFAULT_wxUSE_TIPWINDOW=yes
1722
1723 DEFAULT_wxUSE_UNICODE=no
1724 DEFAULT_wxUSE_UNICODE_MSLU=yes
1725 DEFAULT_wxUSE_WCSRTOMBS=no
1726
1727 DEFAULT_wxUSE_PALETTE=yes
1728 DEFAULT_wxUSE_IMAGE=yes
1729 DEFAULT_wxUSE_GIF=yes
1730 DEFAULT_wxUSE_PCX=yes
1731 DEFAULT_wxUSE_IFF=no
1732 DEFAULT_wxUSE_PNM=yes
1733 DEFAULT_wxUSE_XPM=yes
1734 DEFAULT_wxUSE_ICO_CUR=yes
1735fi
1736
1737
1738
1739for toolkit in `echo $ALL_TOOLKITS`; do
1740 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1741 if test "x$LINE" != x ; then
1742 has_toolkit_in_cache=1
1743 eval "DEFAULT_$LINE"
1744 eval "CACHE_$toolkit=1"
1745 fi
1746done
1747
1748
1749
1750 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1751echo "configure:1752: checking for --enable-gui" >&5
1752 no_cache=0
1753 # Check whether --enable-gui or --disable-gui was given.
1754if test "${enable_gui+set}" = set; then
1755 enableval="$enable_gui"
1756
1757 if test "$enableval" = yes; then
1758 ac_cv_use_gui='wxUSE_GUI=yes'
1759 else
1760 ac_cv_use_gui='wxUSE_GUI=no'
1761 fi
1762
1763else
1764
1765 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1766 if test "x$LINE" != x ; then
1767 eval "DEFAULT_$LINE"
1768 else
1769 no_cache=1
1770 fi
1771
1772 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1773
1774fi
1775
1776
1777 eval "$ac_cv_use_gui"
1778 if test "$no_cache" != 1; then
1779 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1780 fi
1781
1782 if test "$wxUSE_GUI" = yes; then
1783 echo "$ac_t""yes" 1>&6
1784 else
1785 echo "$ac_t""no" 1>&6
1786 fi
1787
1788
1789if test "$wxUSE_GUI" = "yes"; then
1790
1791
1792 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1793echo "configure:1794: checking for --enable-universal" >&5
1794 no_cache=0
1795 # Check whether --enable-universal or --disable-universal was given.
1796if test "${enable_universal+set}" = set; then
1797 enableval="$enable_universal"
1798
1799 if test "$enableval" = yes; then
1800 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1801 else
1802 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1803 fi
1804
1805else
1806
1807 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1808 if test "x$LINE" != x ; then
1809 eval "DEFAULT_$LINE"
1810 else
1811 no_cache=1
1812 fi
1813
1814 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1815
1816fi
1817
1818
1819 eval "$ac_cv_use_universal"
1820 if test "$no_cache" != 1; then
1821 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1822 fi
1823
1824 if test "$wxUSE_UNIVERSAL" = yes; then
1825 echo "$ac_t""yes" 1>&6
1826 else
1827 echo "$ac_t""no" 1>&6
1828 fi
1829
1830# Check whether --with-gtk or --without-gtk was given.
1831if test "${with_gtk+set}" = set; then
1832 withval="$with_gtk"
1833 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1834fi
1835
1836# Check whether --with-motif or --without-motif was given.
1837if test "${with_motif+set}" = set; then
1838 withval="$with_motif"
1839 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1840fi
1841
1842# Check whether --with-mac or --without-mac was given.
1843if test "${with_mac+set}" = set; then
1844 withval="$with_mac"
1845 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1846fi
1847
1848# Check whether --with-wine or --without-wine was given.
1849if test "${with_wine+set}" = set; then
1850 withval="$with_wine"
1851 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1852fi
1853
1854# Check whether --with-msw or --without-msw was given.
1855if test "${with_msw+set}" = set; then
1856 withval="$with_msw"
1857 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1858fi
1859
1860# Check whether --with-pm or --without-pm was given.
1861if test "${with_pm+set}" = set; then
1862 withval="$with_pm"
1863 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1864fi
1865
1866# Check whether --with-mgl or --without-mgl was given.
1867if test "${with_mgl+set}" = set; then
1868 withval="$with_mgl"
1869 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1870fi
1871
1872# Check whether --with-microwin or --without-microwin was given.
1873if test "${with_microwin+set}" = set; then
1874 withval="$with_microwin"
1875 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1876fi
1877
1878# Check whether --with-x11 or --without-x11 was given.
1879if test "${with_x11+set}" = set; then
1880 withval="$with_x11"
1881 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1882fi
1883
1884
1885 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1886echo "configure:1887: checking for --enable-nanox" >&5
1887 no_cache=0
1888 # Check whether --enable-nanox or --disable-nanox was given.
1889if test "${enable_nanox+set}" = set; then
1890 enableval="$enable_nanox"
1891
1892 if test "$enableval" = yes; then
1893 ac_cv_use_nanox='wxUSE_NANOX=yes'
1894 else
1895 ac_cv_use_nanox='wxUSE_NANOX=no'
1896 fi
1897
1898else
1899
1900 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1901 if test "x$LINE" != x ; then
1902 eval "DEFAULT_$LINE"
1903 else
1904 no_cache=1
1905 fi
1906
1907 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1908
1909fi
1910
1911
1912 eval "$ac_cv_use_nanox"
1913 if test "$no_cache" != 1; then
1914 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1915 fi
1916
1917 if test "$wxUSE_NANOX" = yes; then
1918 echo "$ac_t""yes" 1>&6
1919 else
1920 echo "$ac_t""no" 1>&6
1921 fi
1922
1923
1924# Check whether --enable-gtk2 or --disable-gtk2 was given.
1925if test "${enable_gtk2+set}" = set; then
1926 enableval="$enable_gtk2"
1927 wxUSE_GTK2="yes"
1928else
1929 wxUSE_GTK2="no"
1930fi
1931
1932
1933
1934 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1935echo "configure:1936: checking for --with-libpng" >&5
1936 no_cache=0
1937 # Check whether --with-libpng or --without-libpng was given.
1938if test "${with_libpng+set}" = set; then
1939 withval="$with_libpng"
1940
1941 if test "$withval" = yes; then
1942 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1943 elif test "$withval" = no; then
1944 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1945 elif test "$withval" = sys; then
1946 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1947 elif test "$withval" = builtin; then
1948 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1949 else
1950 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1951 fi
1952
1953else
1954
1955 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1956 if test "x$LINE" != x ; then
1957 eval "DEFAULT_$LINE"
1958 else
1959 no_cache=1
1960 fi
1961
1962 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1963
1964fi
1965
1966
1967 eval "$ac_cv_use_libpng"
1968 if test "$no_cache" != 1; then
1969 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1970 fi
1971
1972 if test "$wxUSE_LIBPNG" = yes; then
1973 echo "$ac_t""yes" 1>&6
1974 elif test "$wxUSE_LIBPNG" = no; then
1975 echo "$ac_t""no" 1>&6
1976 elif test "$wxUSE_LIBPNG" = sys; then
1977 echo "$ac_t""system version" 1>&6
1978 elif test "$wxUSE_LIBPNG" = builtin; then
1979 echo "$ac_t""builtin version" 1>&6
1980 else
1981 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1982 fi
1983
1984
1985 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1986echo "configure:1987: checking for --with-libjpeg" >&5
1987 no_cache=0
1988 # Check whether --with-libjpeg or --without-libjpeg was given.
1989if test "${with_libjpeg+set}" = set; then
1990 withval="$with_libjpeg"
1991
1992 if test "$withval" = yes; then
1993 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1994 elif test "$withval" = no; then
1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1996 elif test "$withval" = sys; then
1997 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1998 elif test "$withval" = builtin; then
1999 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2000 else
2001 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2002 fi
2003
2004else
2005
2006 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2007 if test "x$LINE" != x ; then
2008 eval "DEFAULT_$LINE"
2009 else
2010 no_cache=1
2011 fi
2012
2013 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2014
2015fi
2016
2017
2018 eval "$ac_cv_use_libjpeg"
2019 if test "$no_cache" != 1; then
2020 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2021 fi
2022
2023 if test "$wxUSE_LIBJPEG" = yes; then
2024 echo "$ac_t""yes" 1>&6
2025 elif test "$wxUSE_LIBJPEG" = no; then
2026 echo "$ac_t""no" 1>&6
2027 elif test "$wxUSE_LIBJPEG" = sys; then
2028 echo "$ac_t""system version" 1>&6
2029 elif test "$wxUSE_LIBJPEG" = builtin; then
2030 echo "$ac_t""builtin version" 1>&6
2031 else
2032 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2033 fi
2034
2035
2036 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2037echo "configure:2038: checking for --with-libtiff" >&5
2038 no_cache=0
2039 # Check whether --with-libtiff or --without-libtiff was given.
2040if test "${with_libtiff+set}" = set; then
2041 withval="$with_libtiff"
2042
2043 if test "$withval" = yes; then
2044 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2045 elif test "$withval" = no; then
2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2047 elif test "$withval" = sys; then
2048 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2049 elif test "$withval" = builtin; then
2050 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2051 else
2052 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2053 fi
2054
2055else
2056
2057 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2058 if test "x$LINE" != x ; then
2059 eval "DEFAULT_$LINE"
2060 else
2061 no_cache=1
2062 fi
2063
2064 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2065
2066fi
2067
2068
2069 eval "$ac_cv_use_libtiff"
2070 if test "$no_cache" != 1; then
2071 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2072 fi
2073
2074 if test "$wxUSE_LIBTIFF" = yes; then
2075 echo "$ac_t""yes" 1>&6
2076 elif test "$wxUSE_LIBTIFF" = no; then
2077 echo "$ac_t""no" 1>&6
2078 elif test "$wxUSE_LIBTIFF" = sys; then
2079 echo "$ac_t""system version" 1>&6
2080 elif test "$wxUSE_LIBTIFF" = builtin; then
2081 echo "$ac_t""builtin version" 1>&6
2082 else
2083 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2084 fi
2085
2086
2087 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2088echo "configure:2089: checking for --with-opengl" >&5
2089 no_cache=0
2090 # Check whether --with-opengl or --without-opengl was given.
2091if test "${with_opengl+set}" = set; then
2092 withval="$with_opengl"
2093
2094 if test "$withval" = yes; then
2095 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2096 else
2097 ac_cv_use_opengl='wxUSE_OPENGL=no'
2098 fi
2099
2100else
2101
2102 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2103 if test "x$LINE" != x ; then
2104 eval "DEFAULT_$LINE"
2105 else
2106 no_cache=1
2107 fi
2108
2109 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2110
2111fi
2112
2113
2114 eval "$ac_cv_use_opengl"
2115 if test "$no_cache" != 1; then
2116 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2117 fi
2118
2119 if test "$wxUSE_OPENGL" = yes; then
2120 echo "$ac_t""yes" 1>&6
2121 else
2122 echo "$ac_t""no" 1>&6
2123 fi
2124
2125
2126fi
2127
2128
2129 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2130echo "configure:2131: checking for --with-dmalloc" >&5
2131 no_cache=0
2132 # Check whether --with-dmalloc or --without-dmalloc was given.
2133if test "${with_dmalloc+set}" = set; then
2134 withval="$with_dmalloc"
2135
2136 if test "$withval" = yes; then
2137 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2138 else
2139 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2140 fi
2141
2142else
2143
2144 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2145 if test "x$LINE" != x ; then
2146 eval "DEFAULT_$LINE"
2147 else
2148 no_cache=1
2149 fi
2150
2151 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2152
2153fi
2154
2155
2156 eval "$ac_cv_use_dmalloc"
2157 if test "$no_cache" != 1; then
2158 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2159 fi
2160
2161 if test "$wxUSE_DMALLOC" = yes; then
2162 echo "$ac_t""yes" 1>&6
2163 else
2164 echo "$ac_t""no" 1>&6
2165 fi
2166
2167
2168 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2169echo "configure:2170: checking for --with-regex" >&5
2170 no_cache=0
2171 # Check whether --with-regex or --without-regex was given.
2172if test "${with_regex+set}" = set; then
2173 withval="$with_regex"
2174
2175 if test "$withval" = yes; then
2176 ac_cv_use_regex='wxUSE_REGEX=yes'
2177 elif test "$withval" = no; then
2178 ac_cv_use_regex='wxUSE_REGEX=no'
2179 elif test "$withval" = sys; then
2180 ac_cv_use_regex='wxUSE_REGEX=sys'
2181 elif test "$withval" = builtin; then
2182 ac_cv_use_regex='wxUSE_REGEX=builtin'
2183 else
2184 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2185 fi
2186
2187else
2188
2189 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2190 if test "x$LINE" != x ; then
2191 eval "DEFAULT_$LINE"
2192 else
2193 no_cache=1
2194 fi
2195
2196 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2197
2198fi
2199
2200
2201 eval "$ac_cv_use_regex"
2202 if test "$no_cache" != 1; then
2203 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2204 fi
2205
2206 if test "$wxUSE_REGEX" = yes; then
2207 echo "$ac_t""yes" 1>&6
2208 elif test "$wxUSE_REGEX" = no; then
2209 echo "$ac_t""no" 1>&6
2210 elif test "$wxUSE_REGEX" = sys; then
2211 echo "$ac_t""system version" 1>&6
2212 elif test "$wxUSE_REGEX" = builtin; then
2213 echo "$ac_t""builtin version" 1>&6
2214 else
2215 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2216 fi
2217
2218
2219 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2220echo "configure:2221: checking for --with-zlib" >&5
2221 no_cache=0
2222 # Check whether --with-zlib or --without-zlib was given.
2223if test "${with_zlib+set}" = set; then
2224 withval="$with_zlib"
2225
2226 if test "$withval" = yes; then
2227 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2228 elif test "$withval" = no; then
2229 ac_cv_use_zlib='wxUSE_ZLIB=no'
2230 elif test "$withval" = sys; then
2231 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2232 elif test "$withval" = builtin; then
2233 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2234 else
2235 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2236 fi
2237
2238else
2239
2240 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2241 if test "x$LINE" != x ; then
2242 eval "DEFAULT_$LINE"
2243 else
2244 no_cache=1
2245 fi
2246
2247 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2248
2249fi
2250
2251
2252 eval "$ac_cv_use_zlib"
2253 if test "$no_cache" != 1; then
2254 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2255 fi
2256
2257 if test "$wxUSE_ZLIB" = yes; then
2258 echo "$ac_t""yes" 1>&6
2259 elif test "$wxUSE_ZLIB" = no; then
2260 echo "$ac_t""no" 1>&6
2261 elif test "$wxUSE_ZLIB" = sys; then
2262 echo "$ac_t""system version" 1>&6
2263 elif test "$wxUSE_ZLIB" = builtin; then
2264 echo "$ac_t""builtin version" 1>&6
2265 else
2266 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2267 fi
2268
2269
2270 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2271echo "configure:2272: checking for --with-odbc" >&5
2272 no_cache=0
2273 # Check whether --with-odbc or --without-odbc was given.
2274if test "${with_odbc+set}" = set; then
2275 withval="$with_odbc"
2276
2277 if test "$withval" = yes; then
2278 ac_cv_use_odbc='wxUSE_ODBC=yes'
2279 else
2280 ac_cv_use_odbc='wxUSE_ODBC=no'
2281 fi
2282
2283else
2284
2285 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2286 if test "x$LINE" != x ; then
2287 eval "DEFAULT_$LINE"
2288 else
2289 no_cache=1
2290 fi
2291
2292 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2293
2294fi
2295
2296
2297 eval "$ac_cv_use_odbc"
2298 if test "$no_cache" != 1; then
2299 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2300 fi
2301
2302 if test "$wxUSE_ODBC" = yes; then
2303 echo "$ac_t""yes" 1>&6
2304 else
2305 echo "$ac_t""no" 1>&6
2306 fi
2307
2308
2309
2310
2311 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2312echo "configure:2313: checking for --enable-shared" >&5
2313 no_cache=0
2314 # Check whether --enable-shared or --disable-shared was given.
2315if test "${enable_shared+set}" = set; then
2316 enableval="$enable_shared"
2317
2318 if test "$enableval" = yes; then
2319 ac_cv_use_shared='wxUSE_SHARED=yes'
2320 else
2321 ac_cv_use_shared='wxUSE_SHARED=no'
2322 fi
2323
2324else
2325
2326 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2327 if test "x$LINE" != x ; then
2328 eval "DEFAULT_$LINE"
2329 else
2330 no_cache=1
2331 fi
2332
2333 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2334
2335fi
2336
2337
2338 eval "$ac_cv_use_shared"
2339 if test "$no_cache" != 1; then
2340 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2341 fi
2342
2343 if test "$wxUSE_SHARED" = yes; then
2344 echo "$ac_t""yes" 1>&6
2345 else
2346 echo "$ac_t""no" 1>&6
2347 fi
2348
2349
2350 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2351echo "configure:2352: checking for --enable-soname" >&5
2352 no_cache=0
2353 # Check whether --enable-soname or --disable-soname was given.
2354if test "${enable_soname+set}" = set; then
2355 enableval="$enable_soname"
2356
2357 if test "$enableval" = yes; then
2358 ac_cv_use_soname='wxUSE_SONAME=yes'
2359 else
2360 ac_cv_use_soname='wxUSE_SONAME=no'
2361 fi
2362
2363else
2364
2365 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2366 if test "x$LINE" != x ; then
2367 eval "DEFAULT_$LINE"
2368 else
2369 no_cache=1
2370 fi
2371
2372 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2373
2374fi
2375
2376
2377 eval "$ac_cv_use_soname"
2378 if test "$no_cache" != 1; then
2379 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2380 fi
2381
2382 if test "$wxUSE_SONAME" = yes; then
2383 echo "$ac_t""yes" 1>&6
2384 else
2385 echo "$ac_t""no" 1>&6
2386 fi
2387
2388
2389 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2390echo "configure:2391: checking for --enable-optimise" >&5
2391 no_cache=0
2392 # Check whether --enable-optimise or --disable-optimise was given.
2393if test "${enable_optimise+set}" = set; then
2394 enableval="$enable_optimise"
2395
2396 if test "$enableval" = yes; then
2397 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2398 else
2399 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2400 fi
2401
2402else
2403
2404 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2405 if test "x$LINE" != x ; then
2406 eval "DEFAULT_$LINE"
2407 else
2408 no_cache=1
2409 fi
2410
2411 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2412
2413fi
2414
2415
2416 eval "$ac_cv_use_optimise"
2417 if test "$no_cache" != 1; then
2418 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2419 fi
2420
2421 if test "$wxUSE_OPTIMISE" = yes; then
2422 echo "$ac_t""yes" 1>&6
2423 else
2424 echo "$ac_t""no" 1>&6
2425 fi
2426
2427
2428 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2429echo "configure:2430: checking for --enable-debug" >&5
2430 no_cache=0
2431 # Check whether --enable-debug or --disable-debug was given.
2432if test "${enable_debug+set}" = set; then
2433 enableval="$enable_debug"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_debug='wxUSE_DEBUG=yes'
2437 else
2438 ac_cv_use_debug='wxUSE_DEBUG=no'
2439 fi
2440
2441else
2442
2443 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2451
2452fi
2453
2454
2455 eval "$ac_cv_use_debug"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_DEBUG" = yes; then
2461 echo "$ac_t""yes" 1>&6
2462 else
2463 echo "$ac_t""no" 1>&6
2464 fi
2465
2466
2467
2468 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2469echo "configure:2470: checking for --enable-precomp" >&5
2470 no_cache=0
2471 # Check whether --enable-precomp or --disable-precomp was given.
2472if test "${enable_precomp+set}" = set; then
2473 enableval="$enable_precomp"
2474
2475 if test "$enableval" = yes; then
2476 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2477 else
2478 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2479 fi
2480
2481else
2482
2483 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2484 if test "x$LINE" != x ; then
2485 eval "DEFAULT_$LINE"
2486 else
2487 no_cache=1
2488 fi
2489
2490 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2491
2492fi
2493
2494
2495 eval "$ac_cv_use_precomp"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_PRECOMP" = yes; then
2501 echo "$ac_t""yes" 1>&6
2502 else
2503 echo "$ac_t""no" 1>&6
2504 fi
2505
2506
2507if test "$wxUSE_DEBUG" = "yes"; then
2508 DEFAULT_wxUSE_DEBUG_FLAG=yes
2509 DEFAULT_wxUSE_DEBUG_INFO=yes
2510elif test "$wxUSE_DEBUG" = "no"; then
2511 DEFAULT_wxUSE_DEBUG_FLAG=no
2512 DEFAULT_wxUSE_DEBUG_INFO=no
2513fi
2514
2515
2516 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2517echo "configure:2518: checking for --enable-debug_flag" >&5
2518 no_cache=0
2519 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2520if test "${enable_debug_flag+set}" = set; then
2521 enableval="$enable_debug_flag"
2522
2523 if test "$enableval" = yes; then
2524 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2525 else
2526 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2527 fi
2528
2529else
2530
2531 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2539
2540fi
2541
2542
2543 eval "$ac_cv_use_debug_flag"
2544 if test "$no_cache" != 1; then
2545 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2546 fi
2547
2548 if test "$wxUSE_DEBUG_FLAG" = yes; then
2549 echo "$ac_t""yes" 1>&6
2550 else
2551 echo "$ac_t""no" 1>&6
2552 fi
2553
2554
2555 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2556echo "configure:2557: checking for --enable-debug_info" >&5
2557 no_cache=0
2558 # Check whether --enable-debug_info or --disable-debug_info was given.
2559if test "${enable_debug_info+set}" = set; then
2560 enableval="$enable_debug_info"
2561
2562 if test "$enableval" = yes; then
2563 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2564 else
2565 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2566 fi
2567
2568else
2569
2570 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2571 if test "x$LINE" != x ; then
2572 eval "DEFAULT_$LINE"
2573 else
2574 no_cache=1
2575 fi
2576
2577 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2578
2579fi
2580
2581
2582 eval "$ac_cv_use_debug_info"
2583 if test "$no_cache" != 1; then
2584 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2585 fi
2586
2587 if test "$wxUSE_DEBUG_INFO" = yes; then
2588 echo "$ac_t""yes" 1>&6
2589 else
2590 echo "$ac_t""no" 1>&6
2591 fi
2592
2593
2594 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2595echo "configure:2596: checking for --enable-debug_gdb" >&5
2596 no_cache=0
2597 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2598if test "${enable_debug_gdb+set}" = set; then
2599 enableval="$enable_debug_gdb"
2600
2601 if test "$enableval" = yes; then
2602 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2603 else
2604 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2605 fi
2606
2607else
2608
2609 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2610 if test "x$LINE" != x ; then
2611 eval "DEFAULT_$LINE"
2612 else
2613 no_cache=1
2614 fi
2615
2616 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2617
2618fi
2619
2620
2621 eval "$ac_cv_use_debug_gdb"
2622 if test "$no_cache" != 1; then
2623 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2624 fi
2625
2626 if test "$wxUSE_DEBUG_GDB" = yes; then
2627 echo "$ac_t""yes" 1>&6
2628 else
2629 echo "$ac_t""no" 1>&6
2630 fi
2631
2632
2633 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2634echo "configure:2635: checking for --enable-debug_cntxt" >&5
2635 no_cache=0
2636 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2637if test "${enable_debug_cntxt+set}" = set; then
2638 enableval="$enable_debug_cntxt"
2639
2640 if test "$enableval" = yes; then
2641 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2642 else
2643 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2644 fi
2645
2646else
2647
2648 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2649 if test "x$LINE" != x ; then
2650 eval "DEFAULT_$LINE"
2651 else
2652 no_cache=1
2653 fi
2654
2655 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2656
2657fi
2658
2659
2660 eval "$ac_cv_use_debug_cntxt"
2661 if test "$no_cache" != 1; then
2662 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2663 fi
2664
2665 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2666 echo "$ac_t""yes" 1>&6
2667 else
2668 echo "$ac_t""no" 1>&6
2669 fi
2670
2671
2672 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2673echo "configure:2674: checking for --enable-mem_tracing" >&5
2674 no_cache=0
2675 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2676if test "${enable_mem_tracing+set}" = set; then
2677 enableval="$enable_mem_tracing"
2678
2679 if test "$enableval" = yes; then
2680 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2681 else
2682 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2683 fi
2684
2685else
2686
2687 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2688 if test "x$LINE" != x ; then
2689 eval "DEFAULT_$LINE"
2690 else
2691 no_cache=1
2692 fi
2693
2694 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2695
2696fi
2697
2698
2699 eval "$ac_cv_use_mem_tracing"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_MEM_TRACING" = yes; then
2705 echo "$ac_t""yes" 1>&6
2706 else
2707 echo "$ac_t""no" 1>&6
2708 fi
2709
2710
2711 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2712echo "configure:2713: checking for --enable-profile" >&5
2713 no_cache=0
2714 # Check whether --enable-profile or --disable-profile was given.
2715if test "${enable_profile+set}" = set; then
2716 enableval="$enable_profile"
2717
2718 if test "$enableval" = yes; then
2719 ac_cv_use_profile='wxUSE_PROFILE=yes'
2720 else
2721 ac_cv_use_profile='wxUSE_PROFILE=no'
2722 fi
2723
2724else
2725
2726 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
2733 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2734
2735fi
2736
2737
2738 eval "$ac_cv_use_profile"
2739 if test "$no_cache" != 1; then
2740 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2741 fi
2742
2743 if test "$wxUSE_PROFILE" = yes; then
2744 echo "$ac_t""yes" 1>&6
2745 else
2746 echo "$ac_t""no" 1>&6
2747 fi
2748
2749
2750 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2751echo "configure:2752: checking for --enable-no_rtti" >&5
2752 no_cache=0
2753 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2754if test "${enable_no_rtti+set}" = set; then
2755 enableval="$enable_no_rtti"
2756
2757 if test "$enableval" = yes; then
2758 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2759 else
2760 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2761 fi
2762
2763else
2764
2765 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2766 if test "x$LINE" != x ; then
2767 eval "DEFAULT_$LINE"
2768 else
2769 no_cache=1
2770 fi
2771
2772 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2773
2774fi
2775
2776
2777 eval "$ac_cv_use_no_rtti"
2778 if test "$no_cache" != 1; then
2779 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2780 fi
2781
2782 if test "$wxUSE_NO_RTTI" = yes; then
2783 echo "$ac_t""yes" 1>&6
2784 else
2785 echo "$ac_t""no" 1>&6
2786 fi
2787
2788
2789 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2790echo "configure:2791: checking for --enable-no_exceptions" >&5
2791 no_cache=0
2792 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2793if test "${enable_no_exceptions+set}" = set; then
2794 enableval="$enable_no_exceptions"
2795
2796 if test "$enableval" = yes; then
2797 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2798 else
2799 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2800 fi
2801
2802else
2803
2804 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2805 if test "x$LINE" != x ; then
2806 eval "DEFAULT_$LINE"
2807 else
2808 no_cache=1
2809 fi
2810
2811 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2812
2813fi
2814
2815
2816 eval "$ac_cv_use_no_exceptions"
2817 if test "$no_cache" != 1; then
2818 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2819 fi
2820
2821 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2822 echo "$ac_t""yes" 1>&6
2823 else
2824 echo "$ac_t""no" 1>&6
2825 fi
2826
2827
2828 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2829echo "configure:2830: checking for --enable-permissive" >&5
2830 no_cache=0
2831 # Check whether --enable-permissive or --disable-permissive was given.
2832if test "${enable_permissive+set}" = set; then
2833 enableval="$enable_permissive"
2834
2835 if test "$enableval" = yes; then
2836 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2837 else
2838 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2839 fi
2840
2841else
2842
2843 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2851
2852fi
2853
2854
2855 eval "$ac_cv_use_permissive"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_PERMISSIVE" = yes; then
2861 echo "$ac_t""yes" 1>&6
2862 else
2863 echo "$ac_t""no" 1>&6
2864 fi
2865
2866
2867 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2868echo "configure:2869: checking for --enable-no_deps" >&5
2869 no_cache=0
2870 # Check whether --enable-no_deps or --disable-no_deps was given.
2871if test "${enable_no_deps+set}" = set; then
2872 enableval="$enable_no_deps"
2873
2874 if test "$enableval" = yes; then
2875 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2876 else
2877 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2878 fi
2879
2880else
2881
2882 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2883 if test "x$LINE" != x ; then
2884 eval "DEFAULT_$LINE"
2885 else
2886 no_cache=1
2887 fi
2888
2889 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2890
2891fi
2892
2893
2894 eval "$ac_cv_use_no_deps"
2895 if test "$no_cache" != 1; then
2896 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2897 fi
2898
2899 if test "$wxUSE_NO_DEPS" = yes; then
2900 echo "$ac_t""yes" 1>&6
2901 else
2902 echo "$ac_t""no" 1>&6
2903 fi
2904
2905
2906
2907 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2908echo "configure:2909: checking for --enable-compat20" >&5
2909 no_cache=0
2910 # Check whether --enable-compat20 or --disable-compat20 was given.
2911if test "${enable_compat20+set}" = set; then
2912 enableval="$enable_compat20"
2913
2914 if test "$enableval" = yes; then
2915 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2916 else
2917 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2918 fi
2919
2920else
2921
2922 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2923 if test "x$LINE" != x ; then
2924 eval "DEFAULT_$LINE"
2925 else
2926 no_cache=1
2927 fi
2928
2929 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2930
2931fi
2932
2933
2934 eval "$ac_cv_use_compat20"
2935 if test "$no_cache" != 1; then
2936 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2937 fi
2938
2939 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2940 echo "$ac_t""yes" 1>&6
2941 else
2942 echo "$ac_t""no" 1>&6
2943 fi
2944
2945
2946 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2947echo "configure:2948: checking for --enable-compat22" >&5
2948 no_cache=0
2949 # Check whether --enable-compat22 or --disable-compat22 was given.
2950if test "${enable_compat22+set}" = set; then
2951 enableval="$enable_compat22"
2952
2953 if test "$enableval" = yes; then
2954 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2955 else
2956 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2957 fi
2958
2959else
2960
2961 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2969
2970fi
2971
2972
2973 eval "$ac_cv_use_compat22"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2979 echo "$ac_t""yes" 1>&6
2980 else
2981 echo "$ac_t""no" 1>&6
2982 fi
2983
2984
2985# Check whether --enable-rpath or --disable-rpath was given.
2986if test "${enable_rpath+set}" = set; then
2987 enableval="$enable_rpath"
2988 wxRPATH_DIR="$enableval"
2989fi
2990
2991
2992if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
2993 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
2994fi
2995
2996
2997
2998
2999 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3000echo "configure:3001: checking for --enable-intl" >&5
3001 no_cache=0
3002 # Check whether --enable-intl or --disable-intl was given.
3003if test "${enable_intl+set}" = set; then
3004 enableval="$enable_intl"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_intl='wxUSE_INTL=yes'
3008 else
3009 ac_cv_use_intl='wxUSE_INTL=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3022
3023fi
3024
3025
3026 eval "$ac_cv_use_intl"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$wxUSE_INTL" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
3038 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3039echo "configure:3040: checking for --enable-config" >&5
3040 no_cache=0
3041 # Check whether --enable-config or --disable-config was given.
3042if test "${enable_config+set}" = set; then
3043 enableval="$enable_config"
3044
3045 if test "$enableval" = yes; then
3046 ac_cv_use_config='wxUSE_CONFIG=yes'
3047 else
3048 ac_cv_use_config='wxUSE_CONFIG=no'
3049 fi
3050
3051else
3052
3053 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3061
3062fi
3063
3064
3065 eval "$ac_cv_use_config"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_CONFIG" = yes; then
3071 echo "$ac_t""yes" 1>&6
3072 else
3073 echo "$ac_t""no" 1>&6
3074 fi
3075
3076
3077
3078 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3079echo "configure:3080: checking for --enable-protocols" >&5
3080 no_cache=0
3081 # Check whether --enable-protocols or --disable-protocols was given.
3082if test "${enable_protocols+set}" = set; then
3083 enableval="$enable_protocols"
3084
3085 if test "$enableval" = yes; then
3086 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3087 else
3088 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3089 fi
3090
3091else
3092
3093 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3094 if test "x$LINE" != x ; then
3095 eval "DEFAULT_$LINE"
3096 else
3097 no_cache=1
3098 fi
3099
3100 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3101
3102fi
3103
3104
3105 eval "$ac_cv_use_protocols"
3106 if test "$no_cache" != 1; then
3107 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3108 fi
3109
3110 if test "$wxUSE_PROTOCOL" = yes; then
3111 echo "$ac_t""yes" 1>&6
3112 else
3113 echo "$ac_t""no" 1>&6
3114 fi
3115
3116
3117 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3118echo "configure:3119: checking for --enable-ftp" >&5
3119 no_cache=0
3120 # Check whether --enable-ftp or --disable-ftp was given.
3121if test "${enable_ftp+set}" = set; then
3122 enableval="$enable_ftp"
3123
3124 if test "$enableval" = yes; then
3125 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3126 else
3127 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3128 fi
3129
3130else
3131
3132 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3133 if test "x$LINE" != x ; then
3134 eval "DEFAULT_$LINE"
3135 else
3136 no_cache=1
3137 fi
3138
3139 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3140
3141fi
3142
3143
3144 eval "$ac_cv_use_ftp"
3145 if test "$no_cache" != 1; then
3146 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3147 fi
3148
3149 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3150 echo "$ac_t""yes" 1>&6
3151 else
3152 echo "$ac_t""no" 1>&6
3153 fi
3154
3155
3156 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3157echo "configure:3158: checking for --enable-http" >&5
3158 no_cache=0
3159 # Check whether --enable-http or --disable-http was given.
3160if test "${enable_http+set}" = set; then
3161 enableval="$enable_http"
3162
3163 if test "$enableval" = yes; then
3164 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3165 else
3166 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3167 fi
3168
3169else
3170
3171 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3172 if test "x$LINE" != x ; then
3173 eval "DEFAULT_$LINE"
3174 else
3175 no_cache=1
3176 fi
3177
3178 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3179
3180fi
3181
3182
3183 eval "$ac_cv_use_http"
3184 if test "$no_cache" != 1; then
3185 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3186 fi
3187
3188 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3189 echo "$ac_t""yes" 1>&6
3190 else
3191 echo "$ac_t""no" 1>&6
3192 fi
3193
3194
3195 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3196echo "configure:3197: checking for --enable-fileproto" >&5
3197 no_cache=0
3198 # Check whether --enable-fileproto or --disable-fileproto was given.
3199if test "${enable_fileproto+set}" = set; then
3200 enableval="$enable_fileproto"
3201
3202 if test "$enableval" = yes; then
3203 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3204 else
3205 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3218
3219fi
3220
3221
3222 eval "$ac_cv_use_fileproto"
3223 if test "$no_cache" != 1; then
3224 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3225 fi
3226
3227 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3228 echo "$ac_t""yes" 1>&6
3229 else
3230 echo "$ac_t""no" 1>&6
3231 fi
3232
3233
3234 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3235echo "configure:3236: checking for --enable-sockets" >&5
3236 no_cache=0
3237 # Check whether --enable-sockets or --disable-sockets was given.
3238if test "${enable_sockets+set}" = set; then
3239 enableval="$enable_sockets"
3240
3241 if test "$enableval" = yes; then
3242 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3243 else
3244 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3245 fi
3246
3247else
3248
3249 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3250 if test "x$LINE" != x ; then
3251 eval "DEFAULT_$LINE"
3252 else
3253 no_cache=1
3254 fi
3255
3256 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3257
3258fi
3259
3260
3261 eval "$ac_cv_use_sockets"
3262 if test "$no_cache" != 1; then
3263 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3264 fi
3265
3266 if test "$wxUSE_SOCKETS" = yes; then
3267 echo "$ac_t""yes" 1>&6
3268 else
3269 echo "$ac_t""no" 1>&6
3270 fi
3271
3272
3273
3274 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3275echo "configure:3276: checking for --enable-ipc" >&5
3276 no_cache=0
3277 # Check whether --enable-ipc or --disable-ipc was given.
3278if test "${enable_ipc+set}" = set; then
3279 enableval="$enable_ipc"
3280
3281 if test "$enableval" = yes; then
3282 ac_cv_use_ipc='wxUSE_IPC=yes'
3283 else
3284 ac_cv_use_ipc='wxUSE_IPC=no'
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3297
3298fi
3299
3300
3301 eval "$ac_cv_use_ipc"
3302 if test "$no_cache" != 1; then
3303 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3304 fi
3305
3306 if test "$wxUSE_IPC" = yes; then
3307 echo "$ac_t""yes" 1>&6
3308 else
3309 echo "$ac_t""no" 1>&6
3310 fi
3311
3312
3313
3314 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3315echo "configure:3316: checking for --enable-cmdline" >&5
3316 no_cache=0
3317 # Check whether --enable-cmdline or --disable-cmdline was given.
3318if test "${enable_cmdline+set}" = set; then
3319 enableval="$enable_cmdline"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3323 else
3324 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3325 fi
3326
3327else
3328
3329 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3337
3338fi
3339
3340
3341 eval "$ac_cv_use_cmdline"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3354echo "configure:3355: checking for --enable-datetime" >&5
3355 no_cache=0
3356 # Check whether --enable-datetime or --disable-datetime was given.
3357if test "${enable_datetime+set}" = set; then
3358 enableval="$enable_datetime"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3362 else
3363 ac_cv_use_datetime='wxUSE_DATETIME=no'
3364 fi
3365
3366else
3367
3368 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3376
3377fi
3378
3379
3380 eval "$ac_cv_use_datetime"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_DATETIME" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
3392 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3393echo "configure:3394: checking for --enable-timedate" >&5
3394 no_cache=0
3395 # Check whether --enable-timedate or --disable-timedate was given.
3396if test "${enable_timedate+set}" = set; then
3397 enableval="$enable_timedate"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3401 else
3402 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3415
3416fi
3417
3418
3419 eval "$ac_cv_use_timedate"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_TIMEDATE" = yes; then
3425 echo "$ac_t""yes" 1>&6
3426 else
3427 echo "$ac_t""no" 1>&6
3428 fi
3429
3430
3431 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3432echo "configure:3433: checking for --enable-stopwatch" >&5
3433 no_cache=0
3434 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3435if test "${enable_stopwatch+set}" = set; then
3436 enableval="$enable_stopwatch"
3437
3438 if test "$enableval" = yes; then
3439 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3440 else
3441 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3442 fi
3443
3444else
3445
3446 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3454
3455fi
3456
3457
3458 eval "$ac_cv_use_stopwatch"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_STOPWATCH" = yes; then
3464 echo "$ac_t""yes" 1>&6
3465 else
3466 echo "$ac_t""no" 1>&6
3467 fi
3468
3469
3470 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3471echo "configure:3472: checking for --enable-dialupman" >&5
3472 no_cache=0
3473 # Check whether --enable-dialupman or --disable-dialupman was given.
3474if test "${enable_dialupman+set}" = set; then
3475 enableval="$enable_dialupman"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3479 else
3480 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3481 fi
3482
3483else
3484
3485 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3493
3494fi
3495
3496
3497 eval "$ac_cv_use_dialupman"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
3509 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3510echo "configure:3511: checking for --enable-apple_ieee" >&5
3511 no_cache=0
3512 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3513if test "${enable_apple_ieee+set}" = set; then
3514 enableval="$enable_apple_ieee"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3518 else
3519 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3532
3533fi
3534
3535
3536 eval "$ac_cv_use_apple_ieee"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_APPLE_IEEE" = yes; then
3542 echo "$ac_t""yes" 1>&6
3543 else
3544 echo "$ac_t""no" 1>&6
3545 fi
3546
3547
3548 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3549echo "configure:3550: checking for --enable-timer" >&5
3550 no_cache=0
3551 # Check whether --enable-timer or --disable-timer was given.
3552if test "${enable_timer+set}" = set; then
3553 enableval="$enable_timer"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_timer='wxUSE_TIMER=yes'
3557 else
3558 ac_cv_use_timer='wxUSE_TIMER=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3571
3572fi
3573
3574
3575 eval "$ac_cv_use_timer"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_TIMER" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3588echo "configure:3589: checking for --enable-wave" >&5
3589 no_cache=0
3590 # Check whether --enable-wave or --disable-wave was given.
3591if test "${enable_wave+set}" = set; then
3592 enableval="$enable_wave"
3593
3594 if test "$enableval" = yes; then
3595 ac_cv_use_wave='wxUSE_WAVE=yes'
3596 else
3597 ac_cv_use_wave='wxUSE_WAVE=no'
3598 fi
3599
3600else
3601
3602 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3610
3611fi
3612
3613
3614 eval "$ac_cv_use_wave"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_WAVE" = yes; then
3620 echo "$ac_t""yes" 1>&6
3621 else
3622 echo "$ac_t""no" 1>&6
3623 fi
3624
3625
3626 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3627echo "configure:3628: checking for --enable-fraction" >&5
3628 no_cache=0
3629 # Check whether --enable-fraction or --disable-fraction was given.
3630if test "${enable_fraction+set}" = set; then
3631 enableval="$enable_fraction"
3632
3633 if test "$enableval" = yes; then
3634 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3635 else
3636 ac_cv_use_fraction='wxUSE_FRACTION=no'
3637 fi
3638
3639else
3640
3641 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3649
3650fi
3651
3652
3653 eval "$ac_cv_use_fraction"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_FRACTION" = yes; then
3659 echo "$ac_t""yes" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3662 fi
3663
3664
3665 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3666echo "configure:3667: checking for --enable-dynlib" >&5
3667 no_cache=0
3668 # Check whether --enable-dynlib or --disable-dynlib was given.
3669if test "${enable_dynlib+set}" = set; then
3670 enableval="$enable_dynlib"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3674 else
3675 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3688
3689fi
3690
3691
3692 eval "$ac_cv_use_dynlib"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3705echo "configure:3706: checking for --enable-dynamicloader" >&5
3706 no_cache=0
3707 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3708if test "${enable_dynamicloader+set}" = set; then
3709 enableval="$enable_dynamicloader"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3713 else
3714 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3727
3728fi
3729
3730
3731 eval "$ac_cv_use_dynamicloader"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3744echo "configure:3745: checking for --enable-longlong" >&5
3745 no_cache=0
3746 # Check whether --enable-longlong or --disable-longlong was given.
3747if test "${enable_longlong+set}" = set; then
3748 enableval="$enable_longlong"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3752 else
3753 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3766
3767fi
3768
3769
3770 eval "$ac_cv_use_longlong"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_LONGLONG" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3783echo "configure:3784: checking for --enable-geometry" >&5
3784 no_cache=0
3785 # Check whether --enable-geometry or --disable-geometry was given.
3786if test "${enable_geometry+set}" = set; then
3787 enableval="$enable_geometry"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3791 else
3792 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3805
3806fi
3807
3808
3809 eval "$ac_cv_use_geometry"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_GEOMETRY" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3822echo "configure:3823: checking for --enable-log" >&5
3823 no_cache=0
3824 # Check whether --enable-log or --disable-log was given.
3825if test "${enable_log+set}" = set; then
3826 enableval="$enable_log"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_log='wxUSE_LOG=yes'
3830 else
3831 ac_cv_use_log='wxUSE_LOG=no'
3832 fi
3833
3834else
3835
3836 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3844
3845fi
3846
3847
3848 eval "$ac_cv_use_log"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_LOG" = yes; then
3854 echo "$ac_t""yes" 1>&6
3855 else
3856 echo "$ac_t""no" 1>&6
3857 fi
3858
3859
3860 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3861echo "configure:3862: checking for --enable-streams" >&5
3862 no_cache=0
3863 # Check whether --enable-streams or --disable-streams was given.
3864if test "${enable_streams+set}" = set; then
3865 enableval="$enable_streams"
3866
3867 if test "$enableval" = yes; then
3868 ac_cv_use_streams='wxUSE_STREAMS=yes'
3869 else
3870 ac_cv_use_streams='wxUSE_STREAMS=no'
3871 fi
3872
3873else
3874
3875 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3883
3884fi
3885
3886
3887 eval "$ac_cv_use_streams"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_STREAMS" = yes; then
3893 echo "$ac_t""yes" 1>&6
3894 else
3895 echo "$ac_t""no" 1>&6
3896 fi
3897
3898
3899 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3900echo "configure:3901: checking for --enable-file" >&5
3901 no_cache=0
3902 # Check whether --enable-file or --disable-file was given.
3903if test "${enable_file+set}" = set; then
3904 enableval="$enable_file"
3905
3906 if test "$enableval" = yes; then
3907 ac_cv_use_file='wxUSE_FILE=yes'
3908 else
3909 ac_cv_use_file='wxUSE_FILE=no'
3910 fi
3911
3912else
3913
3914 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3922
3923fi
3924
3925
3926 eval "$ac_cv_use_file"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FILE" = yes; then
3932 echo "$ac_t""yes" 1>&6
3933 else
3934 echo "$ac_t""no" 1>&6
3935 fi
3936
3937
3938 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3939echo "configure:3940: checking for --enable-ffile" >&5
3940 no_cache=0
3941 # Check whether --enable-ffile or --disable-ffile was given.
3942if test "${enable_ffile+set}" = set; then
3943 enableval="$enable_ffile"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_ffile='wxUSE_FFILE=yes'
3947 else
3948 ac_cv_use_ffile='wxUSE_FFILE=no'
3949 fi
3950
3951else
3952
3953 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3961
3962fi
3963
3964
3965 eval "$ac_cv_use_ffile"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_FFILE" = yes; then
3971 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3974 fi
3975
3976
3977 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3978echo "configure:3979: checking for --enable-textbuf" >&5
3979 no_cache=0
3980 # Check whether --enable-textbuf or --disable-textbuf was given.
3981if test "${enable_textbuf+set}" = set; then
3982 enableval="$enable_textbuf"
3983
3984 if test "$enableval" = yes; then
3985 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3986 else
3987 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3988 fi
3989
3990else
3991
3992 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4000
4001fi
4002
4003
4004 eval "$ac_cv_use_textbuf"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_TEXTBUFFER" = yes; then
4010 echo "$ac_t""yes" 1>&6
4011 else
4012 echo "$ac_t""no" 1>&6
4013 fi
4014
4015
4016 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4017echo "configure:4018: checking for --enable-textfile" >&5
4018 no_cache=0
4019 # Check whether --enable-textfile or --disable-textfile was given.
4020if test "${enable_textfile+set}" = set; then
4021 enableval="$enable_textfile"
4022
4023 if test "$enableval" = yes; then
4024 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4025 else
4026 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4027 fi
4028
4029else
4030
4031 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4039
4040fi
4041
4042
4043 eval "$ac_cv_use_textfile"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_TEXTFILE" = yes; then
4049 echo "$ac_t""yes" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054
4055 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4056echo "configure:4057: checking for --enable-fontmap" >&5
4057 no_cache=0
4058 # Check whether --enable-fontmap or --disable-fontmap was given.
4059if test "${enable_fontmap+set}" = set; then
4060 enableval="$enable_fontmap"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4064 else
4065 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4078
4079fi
4080
4081
4082 eval "$ac_cv_use_fontmap"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_FONTMAP" = yes; then
4088 echo "$ac_t""yes" 1>&6
4089 else
4090 echo "$ac_t""no" 1>&6
4091 fi
4092
4093
4094 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4095echo "configure:4096: checking for --enable-unicode" >&5
4096 no_cache=0
4097 # Check whether --enable-unicode or --disable-unicode was given.
4098if test "${enable_unicode+set}" = set; then
4099 enableval="$enable_unicode"
4100
4101 if test "$enableval" = yes; then
4102 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4103 else
4104 ac_cv_use_unicode='wxUSE_UNICODE=no'
4105 fi
4106
4107else
4108
4109 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4117
4118fi
4119
4120
4121 eval "$ac_cv_use_unicode"
4122 if test "$no_cache" != 1; then
4123 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4124 fi
4125
4126 if test "$wxUSE_UNICODE" = yes; then
4127 echo "$ac_t""yes" 1>&6
4128 else
4129 echo "$ac_t""no" 1>&6
4130 fi
4131
4132
4133 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4134echo "configure:4135: checking for --enable-mslu" >&5
4135 no_cache=0
4136 # Check whether --enable-mslu or --disable-mslu was given.
4137if test "${enable_mslu+set}" = set; then
4138 enableval="$enable_mslu"
4139
4140 if test "$enableval" = yes; then
4141 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4142 else
4143 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4144 fi
4145
4146else
4147
4148 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4156
4157fi
4158
4159
4160 eval "$ac_cv_use_mslu"
4161 if test "$no_cache" != 1; then
4162 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4163 fi
4164
4165 if test "$wxUSE_UNICODE_MSLU" = yes; then
4166 echo "$ac_t""yes" 1>&6
4167 else
4168 echo "$ac_t""no" 1>&6
4169 fi
4170
4171
4172 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4173echo "configure:4174: checking for --enable-wxprintfv" >&5
4174 no_cache=0
4175 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4176if test "${enable_wxprintfv+set}" = set; then
4177 enableval="$enable_wxprintfv"
4178
4179 if test "$enableval" = yes; then
4180 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4181 else
4182 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4183 fi
4184
4185else
4186
4187 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4195
4196fi
4197
4198
4199 eval "$ac_cv_use_wxprintfv"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4205 echo "$ac_t""yes" 1>&6
4206 else
4207 echo "$ac_t""no" 1>&6
4208 fi
4209
4210
4211 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4212echo "configure:4213: checking for --enable-std_iostreams" >&5
4213 no_cache=0
4214 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4215if test "${enable_std_iostreams+set}" = set; then
4216 enableval="$enable_std_iostreams"
4217
4218 if test "$enableval" = yes; then
4219 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4220 else
4221 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4222 fi
4223
4224else
4225
4226 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4227 if test "x$LINE" != x ; then
4228 eval "DEFAULT_$LINE"
4229 else
4230 no_cache=1
4231 fi
4232
4233 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4234
4235fi
4236
4237
4238 eval "$ac_cv_use_std_iostreams"
4239 if test "$no_cache" != 1; then
4240 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4241 fi
4242
4243 if test "$wxUSE_STD_IOSTREAM" = yes; then
4244 echo "$ac_t""yes" 1>&6
4245 else
4246 echo "$ac_t""no" 1>&6
4247 fi
4248
4249
4250 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4251echo "configure:4252: checking for --enable-filesystem" >&5
4252 no_cache=0
4253 # Check whether --enable-filesystem or --disable-filesystem was given.
4254if test "${enable_filesystem+set}" = set; then
4255 enableval="$enable_filesystem"
4256
4257 if test "$enableval" = yes; then
4258 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4259 else
4260 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4261 fi
4262
4263else
4264
4265 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4266 if test "x$LINE" != x ; then
4267 eval "DEFAULT_$LINE"
4268 else
4269 no_cache=1
4270 fi
4271
4272 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4273
4274fi
4275
4276
4277 eval "$ac_cv_use_filesystem"
4278 if test "$no_cache" != 1; then
4279 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4280 fi
4281
4282 if test "$wxUSE_FILESYSTEM" = yes; then
4283 echo "$ac_t""yes" 1>&6
4284 else
4285 echo "$ac_t""no" 1>&6
4286 fi
4287
4288
4289 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4290echo "configure:4291: checking for --enable-fs_inet" >&5
4291 no_cache=0
4292 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4293if test "${enable_fs_inet+set}" = set; then
4294 enableval="$enable_fs_inet"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4298 else
4299 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4312
4313fi
4314
4315
4316 eval "$ac_cv_use_fs_inet"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_FS_INET" = yes; then
4322 echo "$ac_t""yes" 1>&6
4323 else
4324 echo "$ac_t""no" 1>&6
4325 fi
4326
4327
4328 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4329echo "configure:4330: checking for --enable-fs_zip" >&5
4330 no_cache=0
4331 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4332if test "${enable_fs_zip+set}" = set; then
4333 enableval="$enable_fs_zip"
4334
4335 if test "$enableval" = yes; then
4336 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4337 else
4338 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4339 fi
4340
4341else
4342
4343 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4344 if test "x$LINE" != x ; then
4345 eval "DEFAULT_$LINE"
4346 else
4347 no_cache=1
4348 fi
4349
4350 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4351
4352fi
4353
4354
4355 eval "$ac_cv_use_fs_zip"
4356 if test "$no_cache" != 1; then
4357 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4358 fi
4359
4360 if test "$wxUSE_FS_ZIP" = yes; then
4361 echo "$ac_t""yes" 1>&6
4362 else
4363 echo "$ac_t""no" 1>&6
4364 fi
4365
4366
4367 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4368echo "configure:4369: checking for --enable-zipstream" >&5
4369 no_cache=0
4370 # Check whether --enable-zipstream or --disable-zipstream was given.
4371if test "${enable_zipstream+set}" = set; then
4372 enableval="$enable_zipstream"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4376 else
4377 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4390
4391fi
4392
4393
4394 eval "$ac_cv_use_zipstream"
4395 if test "$no_cache" != 1; then
4396 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4397 fi
4398
4399 if test "$wxUSE_ZIPSTREAM" = yes; then
4400 echo "$ac_t""yes" 1>&6
4401 else
4402 echo "$ac_t""no" 1>&6
4403 fi
4404
4405
4406
4407 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4408echo "configure:4409: checking for --enable-catch_segvs" >&5
4409 no_cache=0
4410 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4411if test "${enable_catch_segvs+set}" = set; then
4412 enableval="$enable_catch_segvs"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4416 else
4417 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4430
4431fi
4432
4433
4434 eval "$ac_cv_use_catch_segvs"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4440 echo "$ac_t""yes" 1>&6
4441 else
4442 echo "$ac_t""no" 1>&6
4443 fi
4444
4445
4446 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4447echo "configure:4448: checking for --enable-snglinst" >&5
4448 no_cache=0
4449 # Check whether --enable-snglinst or --disable-snglinst was given.
4450if test "${enable_snglinst+set}" = set; then
4451 enableval="$enable_snglinst"
4452
4453 if test "$enableval" = yes; then
4454 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4455 else
4456 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4457 fi
4458
4459else
4460
4461 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4469
4470fi
4471
4472
4473 eval "$ac_cv_use_snglinst"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4479 echo "$ac_t""yes" 1>&6
4480 else
4481 echo "$ac_t""no" 1>&6
4482 fi
4483
4484
4485
4486 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4487echo "configure:4488: checking for --enable-mimetype" >&5
4488 no_cache=0
4489 # Check whether --enable-mimetype or --disable-mimetype was given.
4490if test "${enable_mimetype+set}" = set; then
4491 enableval="$enable_mimetype"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4495 else
4496 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4509
4510fi
4511
4512
4513 eval "$ac_cv_use_mimetype"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_MIMETYPE" = yes; then
4519 echo "$ac_t""yes" 1>&6
4520 else
4521 echo "$ac_t""no" 1>&6
4522 fi
4523
4524
4525 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4526echo "configure:4527: checking for --enable-system_options" >&5
4527 no_cache=0
4528 # Check whether --enable-system_options or --disable-system_options was given.
4529if test "${enable_system_options+set}" = set; then
4530 enableval="$enable_system_options"
4531
4532 if test "$enableval" = yes; then
4533 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4534 else
4535 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4536 fi
4537
4538else
4539
4540 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4541 if test "x$LINE" != x ; then
4542 eval "DEFAULT_$LINE"
4543 else
4544 no_cache=1
4545 fi
4546
4547 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4548
4549fi
4550
4551
4552 eval "$ac_cv_use_system_options"
4553 if test "$no_cache" != 1; then
4554 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4555 fi
4556
4557 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4558 echo "$ac_t""yes" 1>&6
4559 else
4560 echo "$ac_t""no" 1>&6
4561 fi
4562
4563
4564
4565 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4566echo "configure:4567: checking for --enable-url" >&5
4567 no_cache=0
4568 # Check whether --enable-url or --disable-url was given.
4569if test "${enable_url+set}" = set; then
4570 enableval="$enable_url"
4571
4572 if test "$enableval" = yes; then
4573 ac_cv_use_url='wxUSE_URL=yes'
4574 else
4575 ac_cv_use_url='wxUSE_URL=no'
4576 fi
4577
4578else
4579
4580 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4581 if test "x$LINE" != x ; then
4582 eval "DEFAULT_$LINE"
4583 else
4584 no_cache=1
4585 fi
4586
4587 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4588
4589fi
4590
4591
4592 eval "$ac_cv_use_url"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_URL" = yes; then
4598 echo "$ac_t""yes" 1>&6
4599 else
4600 echo "$ac_t""no" 1>&6
4601 fi
4602
4603
4604 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4605echo "configure:4606: checking for --enable-protocol" >&5
4606 no_cache=0
4607 # Check whether --enable-protocol or --disable-protocol was given.
4608if test "${enable_protocol+set}" = set; then
4609 enableval="$enable_protocol"
4610
4611 if test "$enableval" = yes; then
4612 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4613 else
4614 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4615 fi
4616
4617else
4618
4619 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4620 if test "x$LINE" != x ; then
4621 eval "DEFAULT_$LINE"
4622 else
4623 no_cache=1
4624 fi
4625
4626 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4627
4628fi
4629
4630
4631 eval "$ac_cv_use_protocol"
4632 if test "$no_cache" != 1; then
4633 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4634 fi
4635
4636 if test "$wxUSE_PROTOCOL" = yes; then
4637 echo "$ac_t""yes" 1>&6
4638 else
4639 echo "$ac_t""no" 1>&6
4640 fi
4641
4642
4643 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4644echo "configure:4645: checking for --enable-protocol_http" >&5
4645 no_cache=0
4646 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4647if test "${enable_protocol_http+set}" = set; then
4648 enableval="$enable_protocol_http"
4649
4650 if test "$enableval" = yes; then
4651 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4652 else
4653 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4654 fi
4655
4656else
4657
4658 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
4665 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4666
4667fi
4668
4669
4670 eval "$ac_cv_use_protocol_http"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4676 echo "$ac_t""yes" 1>&6
4677 else
4678 echo "$ac_t""no" 1>&6
4679 fi
4680
4681
4682 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4683echo "configure:4684: checking for --enable-protocol_ftp" >&5
4684 no_cache=0
4685 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4686if test "${enable_protocol_ftp+set}" = set; then
4687 enableval="$enable_protocol_ftp"
4688
4689 if test "$enableval" = yes; then
4690 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4691 else
4692 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4693 fi
4694
4695else
4696
4697 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4698 if test "x$LINE" != x ; then
4699 eval "DEFAULT_$LINE"
4700 else
4701 no_cache=1
4702 fi
4703
4704 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4705
4706fi
4707
4708
4709 eval "$ac_cv_use_protocol_ftp"
4710 if test "$no_cache" != 1; then
4711 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4712 fi
4713
4714 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4715 echo "$ac_t""yes" 1>&6
4716 else
4717 echo "$ac_t""no" 1>&6
4718 fi
4719
4720
4721 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4722echo "configure:4723: checking for --enable-protocol_file" >&5
4723 no_cache=0
4724 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4725if test "${enable_protocol_file+set}" = set; then
4726 enableval="$enable_protocol_file"
4727
4728 if test "$enableval" = yes; then
4729 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4730 else
4731 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4732 fi
4733
4734else
4735
4736 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4737 if test "x$LINE" != x ; then
4738 eval "DEFAULT_$LINE"
4739 else
4740 no_cache=1
4741 fi
4742
4743 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4744
4745fi
4746
4747
4748 eval "$ac_cv_use_protocol_file"
4749 if test "$no_cache" != 1; then
4750 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4751 fi
4752
4753 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4754 echo "$ac_t""yes" 1>&6
4755 else
4756 echo "$ac_t""no" 1>&6
4757 fi
4758
4759
4760
4761
4762
4763 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4764echo "configure:4765: checking for --enable-threads" >&5
4765 no_cache=0
4766 # Check whether --enable-threads or --disable-threads was given.
4767if test "${enable_threads+set}" = set; then
4768 enableval="$enable_threads"
4769
4770 if test "$enableval" = yes; then
4771 ac_cv_use_threads='wxUSE_THREADS=yes'
4772 else
4773 ac_cv_use_threads='wxUSE_THREADS=no'
4774 fi
4775
4776else
4777
4778 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
4785 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4786
4787fi
4788
4789
4790 eval "$ac_cv_use_threads"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_THREADS" = yes; then
4796 echo "$ac_t""yes" 1>&6
4797 else
4798 echo "$ac_t""no" 1>&6
4799 fi
4800
4801
4802if test "$wxUSE_GUI" = "yes"; then
4803
4804
4805
4806 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4807echo "configure:4808: checking for --enable-docview" >&5
4808 no_cache=0
4809 # Check whether --enable-docview or --disable-docview was given.
4810if test "${enable_docview+set}" = set; then
4811 enableval="$enable_docview"
4812
4813 if test "$enableval" = yes; then
4814 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4815 else
4816 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4817 fi
4818
4819else
4820
4821 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4822 if test "x$LINE" != x ; then
4823 eval "DEFAULT_$LINE"
4824 else
4825 no_cache=1
4826 fi
4827
4828 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4829
4830fi
4831
4832
4833 eval "$ac_cv_use_docview"
4834 if test "$no_cache" != 1; then
4835 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4836 fi
4837
4838 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4839 echo "$ac_t""yes" 1>&6
4840 else
4841 echo "$ac_t""no" 1>&6
4842 fi
4843
4844
4845 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4846echo "configure:4847: checking for --enable-help" >&5
4847 no_cache=0
4848 # Check whether --enable-help or --disable-help was given.
4849if test "${enable_help+set}" = set; then
4850 enableval="$enable_help"
4851
4852 if test "$enableval" = yes; then
4853 ac_cv_use_help='wxUSE_HELP=yes'
4854 else
4855 ac_cv_use_help='wxUSE_HELP=no'
4856 fi
4857
4858else
4859
4860 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
4867 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4868
4869fi
4870
4871
4872 eval "$ac_cv_use_help"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_HELP" = yes; then
4878 echo "$ac_t""yes" 1>&6
4879 else
4880 echo "$ac_t""no" 1>&6
4881 fi
4882
4883
4884 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4885echo "configure:4886: checking for --enable-mshtmlhelp" >&5
4886 no_cache=0
4887 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4888if test "${enable_mshtmlhelp+set}" = set; then
4889 enableval="$enable_mshtmlhelp"
4890
4891 if test "$enableval" = yes; then
4892 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4893 else
4894 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4895 fi
4896
4897else
4898
4899 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
4906 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4907
4908fi
4909
4910
4911 eval "$ac_cv_use_mshtmlhelp"
4912 if test "$no_cache" != 1; then
4913 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4914 fi
4915
4916 if test "$wxUSE_MS_HTML_HELP" = yes; then
4917 echo "$ac_t""yes" 1>&6
4918 else
4919 echo "$ac_t""no" 1>&6
4920 fi
4921
4922
4923 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4924echo "configure:4925: checking for --enable-html" >&5
4925 no_cache=0
4926 # Check whether --enable-html or --disable-html was given.
4927if test "${enable_html+set}" = set; then
4928 enableval="$enable_html"
4929
4930 if test "$enableval" = yes; then
4931 ac_cv_use_html='wxUSE_HTML=yes'
4932 else
4933 ac_cv_use_html='wxUSE_HTML=no'
4934 fi
4935
4936else
4937
4938 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4939 if test "x$LINE" != x ; then
4940 eval "DEFAULT_$LINE"
4941 else
4942 no_cache=1
4943 fi
4944
4945 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4946
4947fi
4948
4949
4950 eval "$ac_cv_use_html"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_HTML" = yes; then
4956 echo "$ac_t""yes" 1>&6
4957 else
4958 echo "$ac_t""no" 1>&6
4959 fi
4960
4961
4962 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4963echo "configure:4964: checking for --enable-htmlhelp" >&5
4964 no_cache=0
4965 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4966if test "${enable_htmlhelp+set}" = set; then
4967 enableval="$enable_htmlhelp"
4968
4969 if test "$enableval" = yes; then
4970 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4971 else
4972 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4973 fi
4974
4975else
4976
4977 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4978 if test "x$LINE" != x ; then
4979 eval "DEFAULT_$LINE"
4980 else
4981 no_cache=1
4982 fi
4983
4984 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4985
4986fi
4987
4988
4989 eval "$ac_cv_use_htmlhelp"
4990 if test "$no_cache" != 1; then
4991 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4992 fi
4993
4994 if test "$wxUSE_WXHTML_HELP" = yes; then
4995 echo "$ac_t""yes" 1>&6
4996 else
4997 echo "$ac_t""no" 1>&6
4998 fi
4999
5000
5001 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5002echo "configure:5003: checking for --enable-constraints" >&5
5003 no_cache=0
5004 # Check whether --enable-constraints or --disable-constraints was given.
5005if test "${enable_constraints+set}" = set; then
5006 enableval="$enable_constraints"
5007
5008 if test "$enableval" = yes; then
5009 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5010 else
5011 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5012 fi
5013
5014else
5015
5016 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5024
5025fi
5026
5027
5028 eval "$ac_cv_use_constraints"
5029 if test "$no_cache" != 1; then
5030 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5031 fi
5032
5033 if test "$wxUSE_CONSTRAINTS" = yes; then
5034 echo "$ac_t""yes" 1>&6
5035 else
5036 echo "$ac_t""no" 1>&6
5037 fi
5038
5039
5040 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5041echo "configure:5042: checking for --enable-printarch" >&5
5042 no_cache=0
5043 # Check whether --enable-printarch or --disable-printarch was given.
5044if test "${enable_printarch+set}" = set; then
5045 enableval="$enable_printarch"
5046
5047 if test "$enableval" = yes; then
5048 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5049 else
5050 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5051 fi
5052
5053else
5054
5055 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5056 if test "x$LINE" != x ; then
5057 eval "DEFAULT_$LINE"
5058 else
5059 no_cache=1
5060 fi
5061
5062 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5063
5064fi
5065
5066
5067 eval "$ac_cv_use_printarch"
5068 if test "$no_cache" != 1; then
5069 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5070 fi
5071
5072 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5073 echo "$ac_t""yes" 1>&6
5074 else
5075 echo "$ac_t""no" 1>&6
5076 fi
5077
5078
5079 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5080echo "configure:5081: checking for --enable-mdi" >&5
5081 no_cache=0
5082 # Check whether --enable-mdi or --disable-mdi was given.
5083if test "${enable_mdi+set}" = set; then
5084 enableval="$enable_mdi"
5085
5086 if test "$enableval" = yes; then
5087 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5088 else
5089 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5090 fi
5091
5092else
5093
5094 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5095 if test "x$LINE" != x ; then
5096 eval "DEFAULT_$LINE"
5097 else
5098 no_cache=1
5099 fi
5100
5101 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5102
5103fi
5104
5105
5106 eval "$ac_cv_use_mdi"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5112 echo "$ac_t""yes" 1>&6
5113 else
5114 echo "$ac_t""no" 1>&6
5115 fi
5116
5117
5118 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5119echo "configure:5120: checking for --enable-loggui" >&5
5120 no_cache=0
5121 # Check whether --enable-loggui or --disable-loggui was given.
5122if test "${enable_loggui+set}" = set; then
5123 enableval="$enable_loggui"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5127 else
5128 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5129 fi
5130
5131else
5132
5133 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5141
5142fi
5143
5144
5145 eval "$ac_cv_use_loggui"
5146 if test "$no_cache" != 1; then
5147 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5148 fi
5149
5150 if test "$wxUSE_LOGGUI" = yes; then
5151 echo "$ac_t""yes" 1>&6
5152 else
5153 echo "$ac_t""no" 1>&6
5154 fi
5155
5156
5157 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5158echo "configure:5159: checking for --enable-logwin" >&5
5159 no_cache=0
5160 # Check whether --enable-logwin or --disable-logwin was given.
5161if test "${enable_logwin+set}" = set; then
5162 enableval="$enable_logwin"
5163
5164 if test "$enableval" = yes; then
5165 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5166 else
5167 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5168 fi
5169
5170else
5171
5172 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5173 if test "x$LINE" != x ; then
5174 eval "DEFAULT_$LINE"
5175 else
5176 no_cache=1
5177 fi
5178
5179 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5180
5181fi
5182
5183
5184 eval "$ac_cv_use_logwin"
5185 if test "$no_cache" != 1; then
5186 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5187 fi
5188
5189 if test "$wxUSE_LOGWINDOW" = yes; then
5190 echo "$ac_t""yes" 1>&6
5191 else
5192 echo "$ac_t""no" 1>&6
5193 fi
5194
5195
5196 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5197echo "configure:5198: checking for --enable-logdialog" >&5
5198 no_cache=0
5199 # Check whether --enable-logdialog or --disable-logdialog was given.
5200if test "${enable_logdialog+set}" = set; then
5201 enableval="$enable_logdialog"
5202
5203 if test "$enableval" = yes; then
5204 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5205 else
5206 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5207 fi
5208
5209else
5210
5211 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5212 if test "x$LINE" != x ; then
5213 eval "DEFAULT_$LINE"
5214 else
5215 no_cache=1
5216 fi
5217
5218 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5219
5220fi
5221
5222
5223 eval "$ac_cv_use_logdialog"
5224 if test "$no_cache" != 1; then
5225 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5226 fi
5227
5228 if test "$wxUSE_LOGDIALOG" = yes; then
5229 echo "$ac_t""yes" 1>&6
5230 else
5231 echo "$ac_t""no" 1>&6
5232 fi
5233
5234
5235
5236 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5237echo "configure:5238: checking for --enable-postscript" >&5
5238 no_cache=0
5239 # Check whether --enable-postscript or --disable-postscript was given.
5240if test "${enable_postscript+set}" = set; then
5241 enableval="$enable_postscript"
5242
5243 if test "$enableval" = yes; then
5244 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5245 else
5246 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5247 fi
5248
5249else
5250
5251 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5252 if test "x$LINE" != x ; then
5253 eval "DEFAULT_$LINE"
5254 else
5255 no_cache=1
5256 fi
5257
5258 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5259
5260fi
5261
5262
5263 eval "$ac_cv_use_postscript"
5264 if test "$no_cache" != 1; then
5265 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5266 fi
5267
5268 if test "$wxUSE_POSTSCRIPT" = yes; then
5269 echo "$ac_t""yes" 1>&6
5270 else
5271 echo "$ac_t""no" 1>&6
5272 fi
5273
5274
5275
5276
5277
5278 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5279echo "configure:5280: checking for --enable-prologio" >&5
5280 no_cache=0
5281 # Check whether --enable-prologio or --disable-prologio was given.
5282if test "${enable_prologio+set}" = set; then
5283 enableval="$enable_prologio"
5284
5285 if test "$enableval" = yes; then
5286 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5287 else
5288 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5289 fi
5290
5291else
5292
5293 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5301
5302fi
5303
5304
5305 eval "$ac_cv_use_prologio"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_PROLOGIO" = yes; then
5311 echo "$ac_t""yes" 1>&6
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315
5316
5317 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5318echo "configure:5319: checking for --enable-resources" >&5
5319 no_cache=0
5320 # Check whether --enable-resources or --disable-resources was given.
5321if test "${enable_resources+set}" = set; then
5322 enableval="$enable_resources"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5326 else
5327 ac_cv_use_resources='wxUSE_RESOURCES=no'
5328 fi
5329
5330else
5331
5332 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5340
5341fi
5342
5343
5344 eval "$ac_cv_use_resources"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_RESOURCES" = yes; then
5350 echo "$ac_t""yes" 1>&6
5351 else
5352 echo "$ac_t""no" 1>&6
5353 fi
5354
5355
5356
5357 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5358echo "configure:5359: checking for --enable-xresources" >&5
5359 no_cache=0
5360 # Check whether --enable-xresources or --disable-xresources was given.
5361if test "${enable_xresources+set}" = set; then
5362 enableval="$enable_xresources"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5366 else
5367 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5368 fi
5369
5370else
5371
5372 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5380
5381fi
5382
5383
5384 eval "$ac_cv_use_xresources"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_X_RESOURCES" = yes; then
5390 echo "$ac_t""yes" 1>&6
5391 else
5392 echo "$ac_t""no" 1>&6
5393 fi
5394
5395
5396
5397
5398 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5399echo "configure:5400: checking for --enable-clipboard" >&5
5400 no_cache=0
5401 # Check whether --enable-clipboard or --disable-clipboard was given.
5402if test "${enable_clipboard+set}" = set; then
5403 enableval="$enable_clipboard"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5407 else
5408 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5421
5422fi
5423
5424
5425 eval "$ac_cv_use_clipboard"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_CLIPBOARD" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5438echo "configure:5439: checking for --enable-dnd" >&5
5439 no_cache=0
5440 # Check whether --enable-dnd or --disable-dnd was given.
5441if test "${enable_dnd+set}" = set; then
5442 enableval="$enable_dnd"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5446 else
5447 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5460
5461fi
5462
5463
5464 eval "$ac_cv_use_dnd"
5465 if test "$no_cache" != 1; then
5466 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5467 fi
5468
5469 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5470 echo "$ac_t""yes" 1>&6
5471 else
5472 echo "$ac_t""no" 1>&6
5473 fi
5474
5475
5476 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5477echo "configure:5478: checking for --enable-metafile" >&5
5478 no_cache=0
5479 # Check whether --enable-metafile or --disable-metafile was given.
5480if test "${enable_metafile+set}" = set; then
5481 enableval="$enable_metafile"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5485 else
5486 ac_cv_use_metafile='wxUSE_METAFILE=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5499
5500fi
5501
5502
5503 eval "$ac_cv_use_metafile"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_METAFILE" = yes; then
5509 echo "$ac_t""yes" 1>&6
5510 else
5511 echo "$ac_t""no" 1>&6
5512 fi
5513
5514
5515
5516 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5517echo "configure:5518: checking for --enable-treelayout" >&5
5518 no_cache=0
5519 # Check whether --enable-treelayout or --disable-treelayout was given.
5520if test "${enable_treelayout+set}" = set; then
5521 enableval="$enable_treelayout"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5525 else
5526 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5539
5540fi
5541
5542
5543 eval "$ac_cv_use_treelayout"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_TREELAYOUT" = yes; then
5549 echo "$ac_t""yes" 1>&6
5550 else
5551 echo "$ac_t""no" 1>&6
5552 fi
5553
5554
5555
5556
5557 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5558echo "configure:5559: checking for --enable-controls" >&5
5559 no_cache=0
5560 # Check whether --enable-controls or --disable-controls was given.
5561if test "${enable_controls+set}" = set; then
5562 enableval="$enable_controls"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5566 else
5567 ac_cv_use_controls='wxUSE_CONTROLS=no'
5568 fi
5569
5570else
5571
5572 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5580
5581fi
5582
5583
5584 eval "$ac_cv_use_controls"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_CONTROLS" = yes; then
5590 echo "$ac_t""yes" 1>&6
5591 else
5592 echo "$ac_t""no" 1>&6
5593 fi
5594
5595
5596if test "$wxUSE_CONTROLS" = "yes"; then
5597 DEFAULT_wxUSE_ACCEL=yes
5598 DEFAULT_wxUSE_BMPBUTTON=yes
5599 DEFAULT_wxUSE_BUTTON=yes
5600 DEFAULT_wxUSE_CALCTRL=no
5601 DEFAULT_wxUSE_CARET=yes
5602 DEFAULT_wxUSE_COMBOBOX=yes
5603 DEFAULT_wxUSE_CHECKBOX=yes
5604 DEFAULT_wxUSE_CHECKLISTBOX=yes
5605 DEFAULT_wxUSE_CHOICE=yes
5606 DEFAULT_wxUSE_GAUGE=yes
5607 DEFAULT_wxUSE_GRID=yes
5608 DEFAULT_wxUSE_NEW_GRID=yes
5609 DEFAULT_wxUSE_IMAGLIST=yes
5610 DEFAULT_wxUSE_LISTBOX=yes
5611 DEFAULT_wxUSE_LISTCTRL=yes
5612 DEFAULT_wxUSE_NOTEBOOK=yes
5613 DEFAULT_wxUSE_PROPSHEET=yes
5614 DEFAULT_wxUSE_RADIOBOX=yes
5615 DEFAULT_wxUSE_RADIOBTN=yes
5616 DEFAULT_wxUSE_SASH=yes
5617 DEFAULT_wxUSE_SCROLLBAR=yes
5618 DEFAULT_wxUSE_SLIDER=yes
5619 DEFAULT_wxUSE_SPINBTN=yes
5620 DEFAULT_wxUSE_SPINCTRL=yes
5621 DEFAULT_wxUSE_SPLITTER=yes
5622 DEFAULT_wxUSE_STATBMP=yes
5623 DEFAULT_wxUSE_STATBOX=yes
5624 DEFAULT_wxUSE_STATLINE=yes
5625 DEFAULT_wxUSE_STATUSBAR=yes
5626 DEFAULT_wxUSE_TAB_DIALOG=yes
5627 DEFAULT_wxUSE_TOGGLEBTN=yes
5628 DEFAULT_wxUSE_TOOLBAR=yes
5629 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5630 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5631 DEFAULT_wxUSE_TOOLTIPS=yes
5632 DEFAULT_wxUSE_TREECTRL=yes
5633 DEFAULT_wxUSE_POPUPWIN=yes
5634 DEFAULT_wxUSE_TIPWINDOW=yes
5635elif test "$wxUSE_CONTROLS" = "no"; then
5636 DEFAULT_wxUSE_ACCEL=no
5637 DEFAULT_wxUSE_BMPBUTTON=no
5638 DEFAULT_wxUSE_BUTTON=no
5639 DEFAULT_wxUSE_CALCTRL=no
5640 DEFAULT_wxUSE_CARET=no
5641 DEFAULT_wxUSE_COMBOBOX=no
5642 DEFAULT_wxUSE_CHECKBOX=no
5643 DEFAULT_wxUSE_CHECKLISTBOX=no
5644 DEFAULT_wxUSE_CHOICE=no
5645 DEFAULT_wxUSE_GAUGE=no
5646 DEFAULT_wxUSE_GRID=no
5647 DEFAULT_wxUSE_NEW_GRID=no
5648 DEFAULT_wxUSE_IMAGLIST=no
5649 DEFAULT_wxUSE_LISTBOX=no
5650 DEFAULT_wxUSE_LISTCTRL=no
5651 DEFAULT_wxUSE_NOTEBOOK=no
5652 DEFAULT_wxUSE_PROPSHEET=no
5653 DEFAULT_wxUSE_RADIOBOX=no
5654 DEFAULT_wxUSE_RADIOBTN=no
5655 DEFAULT_wxUSE_SASH=no
5656 DEFAULT_wxUSE_SCROLLBAR=no
5657 DEFAULT_wxUSE_SLIDER=no
5658 DEFAULT_wxUSE_SPINBTN=no
5659 DEFAULT_wxUSE_SPINCTRL=no
5660 DEFAULT_wxUSE_SPLITTER=no
5661 DEFAULT_wxUSE_STATBMP=no
5662 DEFAULT_wxUSE_STATBOX=no
5663 DEFAULT_wxUSE_STATLINE=no
5664 DEFAULT_wxUSE_STATUSBAR=no
5665 DEFAULT_wxUSE_TAB_DIALOG=no
5666 DEFAULT_wxUSE_TOGGLEBTN=no
5667 DEFAULT_wxUSE_TOOLBAR=no
5668 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5669 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5670 DEFAULT_wxUSE_TOOLTIPS=no
5671 DEFAULT_wxUSE_TREECTRL=no
5672 DEFAULT_wxUSE_POPUPWIN=no
5673 DEFAULT_wxUSE_TIPWINDOW=no
5674fi
5675
5676
5677 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5678echo "configure:5679: checking for --enable-accel" >&5
5679 no_cache=0
5680 # Check whether --enable-accel or --disable-accel was given.
5681if test "${enable_accel+set}" = set; then
5682 enableval="$enable_accel"
5683
5684 if test "$enableval" = yes; then
5685 ac_cv_use_accel='wxUSE_ACCEL=yes'
5686 else
5687 ac_cv_use_accel='wxUSE_ACCEL=no'
5688 fi
5689
5690else
5691
5692 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5693 if test "x$LINE" != x ; then
5694 eval "DEFAULT_$LINE"
5695 else
5696 no_cache=1
5697 fi
5698
5699 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5700
5701fi
5702
5703
5704 eval "$ac_cv_use_accel"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_ACCEL" = yes; then
5710 echo "$ac_t""yes" 1>&6
5711 else
5712 echo "$ac_t""no" 1>&6
5713 fi
5714
5715
5716 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5717echo "configure:5718: checking for --enable-button" >&5
5718 no_cache=0
5719 # Check whether --enable-button or --disable-button was given.
5720if test "${enable_button+set}" = set; then
5721 enableval="$enable_button"
5722
5723 if test "$enableval" = yes; then
5724 ac_cv_use_button='wxUSE_BUTTON=yes'
5725 else
5726 ac_cv_use_button='wxUSE_BUTTON=no'
5727 fi
5728
5729else
5730
5731 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5732 if test "x$LINE" != x ; then
5733 eval "DEFAULT_$LINE"
5734 else
5735 no_cache=1
5736 fi
5737
5738 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5739
5740fi
5741
5742
5743 eval "$ac_cv_use_button"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_BUTTON" = yes; then
5749 echo "$ac_t""yes" 1>&6
5750 else
5751 echo "$ac_t""no" 1>&6
5752 fi
5753
5754
5755 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5756echo "configure:5757: checking for --enable-bmpbutton" >&5
5757 no_cache=0
5758 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5759if test "${enable_bmpbutton+set}" = set; then
5760 enableval="$enable_bmpbutton"
5761
5762 if test "$enableval" = yes; then
5763 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5764 else
5765 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5766 fi
5767
5768else
5769
5770 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5771 if test "x$LINE" != x ; then
5772 eval "DEFAULT_$LINE"
5773 else
5774 no_cache=1
5775 fi
5776
5777 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5778
5779fi
5780
5781
5782 eval "$ac_cv_use_bmpbutton"
5783 if test "$no_cache" != 1; then
5784 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5785 fi
5786
5787 if test "$wxUSE_BMPBUTTON" = yes; then
5788 echo "$ac_t""yes" 1>&6
5789 else
5790 echo "$ac_t""no" 1>&6
5791 fi
5792
5793
5794 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5795echo "configure:5796: checking for --enable-calendar" >&5
5796 no_cache=0
5797 # Check whether --enable-calendar or --disable-calendar was given.
5798if test "${enable_calendar+set}" = set; then
5799 enableval="$enable_calendar"
5800
5801 if test "$enableval" = yes; then
5802 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5803 else
5804 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5805 fi
5806
5807else
5808
5809 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5810 if test "x$LINE" != x ; then
5811 eval "DEFAULT_$LINE"
5812 else
5813 no_cache=1
5814 fi
5815
5816 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5817
5818fi
5819
5820
5821 eval "$ac_cv_use_calendar"
5822 if test "$no_cache" != 1; then
5823 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5824 fi
5825
5826 if test "$wxUSE_CALCTRL" = yes; then
5827 echo "$ac_t""yes" 1>&6
5828 else
5829 echo "$ac_t""no" 1>&6
5830 fi
5831
5832
5833 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5834echo "configure:5835: checking for --enable-caret" >&5
5835 no_cache=0
5836 # Check whether --enable-caret or --disable-caret was given.
5837if test "${enable_caret+set}" = set; then
5838 enableval="$enable_caret"
5839
5840 if test "$enableval" = yes; then
5841 ac_cv_use_caret='wxUSE_CARET=yes'
5842 else
5843 ac_cv_use_caret='wxUSE_CARET=no'
5844 fi
5845
5846else
5847
5848 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5849 if test "x$LINE" != x ; then
5850 eval "DEFAULT_$LINE"
5851 else
5852 no_cache=1
5853 fi
5854
5855 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5856
5857fi
5858
5859
5860 eval "$ac_cv_use_caret"
5861 if test "$no_cache" != 1; then
5862 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5863 fi
5864
5865 if test "$wxUSE_CARET" = yes; then
5866 echo "$ac_t""yes" 1>&6
5867 else
5868 echo "$ac_t""no" 1>&6
5869 fi
5870
5871
5872 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5873echo "configure:5874: checking for --enable-checkbox" >&5
5874 no_cache=0
5875 # Check whether --enable-checkbox or --disable-checkbox was given.
5876if test "${enable_checkbox+set}" = set; then
5877 enableval="$enable_checkbox"
5878
5879 if test "$enableval" = yes; then
5880 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5881 else
5882 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5883 fi
5884
5885else
5886
5887 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5888 if test "x$LINE" != x ; then
5889 eval "DEFAULT_$LINE"
5890 else
5891 no_cache=1
5892 fi
5893
5894 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5895
5896fi
5897
5898
5899 eval "$ac_cv_use_checkbox"
5900 if test "$no_cache" != 1; then
5901 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5902 fi
5903
5904 if test "$wxUSE_CHECKBOX" = yes; then
5905 echo "$ac_t""yes" 1>&6
5906 else
5907 echo "$ac_t""no" 1>&6
5908 fi
5909
5910
5911 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5912echo "configure:5913: checking for --enable-checklst" >&5
5913 no_cache=0
5914 # Check whether --enable-checklst or --disable-checklst was given.
5915if test "${enable_checklst+set}" = set; then
5916 enableval="$enable_checklst"
5917
5918 if test "$enableval" = yes; then
5919 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5920 else
5921 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5922 fi
5923
5924else
5925
5926 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5934
5935fi
5936
5937
5938 eval "$ac_cv_use_checklst"
5939 if test "$no_cache" != 1; then
5940 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5941 fi
5942
5943 if test "$wxUSE_CHECKLST" = yes; then
5944 echo "$ac_t""yes" 1>&6
5945 else
5946 echo "$ac_t""no" 1>&6
5947 fi
5948
5949
5950 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5951echo "configure:5952: checking for --enable-choice" >&5
5952 no_cache=0
5953 # Check whether --enable-choice or --disable-choice was given.
5954if test "${enable_choice+set}" = set; then
5955 enableval="$enable_choice"
5956
5957 if test "$enableval" = yes; then
5958 ac_cv_use_choice='wxUSE_CHOICE=yes'
5959 else
5960 ac_cv_use_choice='wxUSE_CHOICE=no'
5961 fi
5962
5963else
5964
5965 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5973
5974fi
5975
5976
5977 eval "$ac_cv_use_choice"
5978 if test "$no_cache" != 1; then
5979 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5980 fi
5981
5982 if test "$wxUSE_CHOICE" = yes; then
5983 echo "$ac_t""yes" 1>&6
5984 else
5985 echo "$ac_t""no" 1>&6
5986 fi
5987
5988
5989 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5990echo "configure:5991: checking for --enable-combobox" >&5
5991 no_cache=0
5992 # Check whether --enable-combobox or --disable-combobox was given.
5993if test "${enable_combobox+set}" = set; then
5994 enableval="$enable_combobox"
5995
5996 if test "$enableval" = yes; then
5997 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5998 else
5999 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6000 fi
6001
6002else
6003
6004 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6005 if test "x$LINE" != x ; then
6006 eval "DEFAULT_$LINE"
6007 else
6008 no_cache=1
6009 fi
6010
6011 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6012
6013fi
6014
6015
6016 eval "$ac_cv_use_combobox"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_COMBOBOX" = yes; then
6022 echo "$ac_t""yes" 1>&6
6023 else
6024 echo "$ac_t""no" 1>&6
6025 fi
6026
6027
6028 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6029echo "configure:6030: checking for --enable-gauge" >&5
6030 no_cache=0
6031 # Check whether --enable-gauge or --disable-gauge was given.
6032if test "${enable_gauge+set}" = set; then
6033 enableval="$enable_gauge"
6034
6035 if test "$enableval" = yes; then
6036 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6037 else
6038 ac_cv_use_gauge='wxUSE_GAUGE=no'
6039 fi
6040
6041else
6042
6043 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6044 if test "x$LINE" != x ; then
6045 eval "DEFAULT_$LINE"
6046 else
6047 no_cache=1
6048 fi
6049
6050 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6051
6052fi
6053
6054
6055 eval "$ac_cv_use_gauge"
6056 if test "$no_cache" != 1; then
6057 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6058 fi
6059
6060 if test "$wxUSE_GAUGE" = yes; then
6061 echo "$ac_t""yes" 1>&6
6062 else
6063 echo "$ac_t""no" 1>&6
6064 fi
6065
6066
6067 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6068echo "configure:6069: checking for --enable-grid" >&5
6069 no_cache=0
6070 # Check whether --enable-grid or --disable-grid was given.
6071if test "${enable_grid+set}" = set; then
6072 enableval="$enable_grid"
6073
6074 if test "$enableval" = yes; then
6075 ac_cv_use_grid='wxUSE_GRID=yes'
6076 else
6077 ac_cv_use_grid='wxUSE_GRID=no'
6078 fi
6079
6080else
6081
6082 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6090
6091fi
6092
6093
6094 eval "$ac_cv_use_grid"
6095 if test "$no_cache" != 1; then
6096 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6097 fi
6098
6099 if test "$wxUSE_GRID" = yes; then
6100 echo "$ac_t""yes" 1>&6
6101 else
6102 echo "$ac_t""no" 1>&6
6103 fi
6104
6105
6106 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6107echo "configure:6108: checking for --enable-newgrid" >&5
6108 no_cache=0
6109 # Check whether --enable-newgrid or --disable-newgrid was given.
6110if test "${enable_newgrid+set}" = set; then
6111 enableval="$enable_newgrid"
6112
6113 if test "$enableval" = yes; then
6114 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6115 else
6116 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6117 fi
6118
6119else
6120
6121 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6129
6130fi
6131
6132
6133 eval "$ac_cv_use_newgrid"
6134 if test "$no_cache" != 1; then
6135 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6136 fi
6137
6138 if test "$wxUSE_NEW_GRID" = yes; then
6139 echo "$ac_t""yes" 1>&6
6140 else
6141 echo "$ac_t""no" 1>&6
6142 fi
6143
6144
6145 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6146echo "configure:6147: checking for --enable-imaglist" >&5
6147 no_cache=0
6148 # Check whether --enable-imaglist or --disable-imaglist was given.
6149if test "${enable_imaglist+set}" = set; then
6150 enableval="$enable_imaglist"
6151
6152 if test "$enableval" = yes; then
6153 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6154 else
6155 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6156 fi
6157
6158else
6159
6160 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6161 if test "x$LINE" != x ; then
6162 eval "DEFAULT_$LINE"
6163 else
6164 no_cache=1
6165 fi
6166
6167 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6168
6169fi
6170
6171
6172 eval "$ac_cv_use_imaglist"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_IMAGLIST" = yes; then
6178 echo "$ac_t""yes" 1>&6
6179 else
6180 echo "$ac_t""no" 1>&6
6181 fi
6182
6183
6184 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6185echo "configure:6186: checking for --enable-listbox" >&5
6186 no_cache=0
6187 # Check whether --enable-listbox or --disable-listbox was given.
6188if test "${enable_listbox+set}" = set; then
6189 enableval="$enable_listbox"
6190
6191 if test "$enableval" = yes; then
6192 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6193 else
6194 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6195 fi
6196
6197else
6198
6199 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6207
6208fi
6209
6210
6211 eval "$ac_cv_use_listbox"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_LISTBOX" = yes; then
6217 echo "$ac_t""yes" 1>&6
6218 else
6219 echo "$ac_t""no" 1>&6
6220 fi
6221
6222
6223 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6224echo "configure:6225: checking for --enable-listctrl" >&5
6225 no_cache=0
6226 # Check whether --enable-listctrl or --disable-listctrl was given.
6227if test "${enable_listctrl+set}" = set; then
6228 enableval="$enable_listctrl"
6229
6230 if test "$enableval" = yes; then
6231 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6232 else
6233 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6234 fi
6235
6236else
6237
6238 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6239 if test "x$LINE" != x ; then
6240 eval "DEFAULT_$LINE"
6241 else
6242 no_cache=1
6243 fi
6244
6245 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6246
6247fi
6248
6249
6250 eval "$ac_cv_use_listctrl"
6251 if test "$no_cache" != 1; then
6252 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6253 fi
6254
6255 if test "$wxUSE_LISTCTRL" = yes; then
6256 echo "$ac_t""yes" 1>&6
6257 else
6258 echo "$ac_t""no" 1>&6
6259 fi
6260
6261
6262 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6263echo "configure:6264: checking for --enable-notebook" >&5
6264 no_cache=0
6265 # Check whether --enable-notebook or --disable-notebook was given.
6266if test "${enable_notebook+set}" = set; then
6267 enableval="$enable_notebook"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6271 else
6272 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6273 fi
6274
6275else
6276
6277 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6285
6286fi
6287
6288
6289 eval "$ac_cv_use_notebook"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_NOTEBOOK" = yes; then
6295 echo "$ac_t""yes" 1>&6
6296 else
6297 echo "$ac_t""no" 1>&6
6298 fi
6299
6300
6301 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6302echo "configure:6303: checking for --enable-propsheet" >&5
6303 no_cache=0
6304 # Check whether --enable-propsheet or --disable-propsheet was given.
6305if test "${enable_propsheet+set}" = set; then
6306 enableval="$enable_propsheet"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6310 else
6311 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6312 fi
6313
6314else
6315
6316 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6324
6325fi
6326
6327
6328 eval "$ac_cv_use_propsheet"
6329 if test "$no_cache" != 1; then
6330 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6331 fi
6332
6333 if test "$wxUSE_PROPSHEET" = yes; then
6334 echo "$ac_t""yes" 1>&6
6335 else
6336 echo "$ac_t""no" 1>&6
6337 fi
6338
6339
6340 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6341echo "configure:6342: checking for --enable-radiobox" >&5
6342 no_cache=0
6343 # Check whether --enable-radiobox or --disable-radiobox was given.
6344if test "${enable_radiobox+set}" = set; then
6345 enableval="$enable_radiobox"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6349 else
6350 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6363
6364fi
6365
6366
6367 eval "$ac_cv_use_radiobox"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_RADIOBOX" = yes; then
6373 echo "$ac_t""yes" 1>&6
6374 else
6375 echo "$ac_t""no" 1>&6
6376 fi
6377
6378
6379 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6380echo "configure:6381: checking for --enable-radiobtn" >&5
6381 no_cache=0
6382 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6383if test "${enable_radiobtn+set}" = set; then
6384 enableval="$enable_radiobtn"
6385
6386 if test "$enableval" = yes; then
6387 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6388 else
6389 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6390 fi
6391
6392else
6393
6394 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6395 if test "x$LINE" != x ; then
6396 eval "DEFAULT_$LINE"
6397 else
6398 no_cache=1
6399 fi
6400
6401 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6402
6403fi
6404
6405
6406 eval "$ac_cv_use_radiobtn"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6409 fi
6410
6411 if test "$wxUSE_RADIOBTN" = yes; then
6412 echo "$ac_t""yes" 1>&6
6413 else
6414 echo "$ac_t""no" 1>&6
6415 fi
6416
6417
6418 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6419echo "configure:6420: checking for --enable-sash" >&5
6420 no_cache=0
6421 # Check whether --enable-sash or --disable-sash was given.
6422if test "${enable_sash+set}" = set; then
6423 enableval="$enable_sash"
6424
6425 if test "$enableval" = yes; then
6426 ac_cv_use_sash='wxUSE_SASH=yes'
6427 else
6428 ac_cv_use_sash='wxUSE_SASH=no'
6429 fi
6430
6431else
6432
6433 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6434 if test "x$LINE" != x ; then
6435 eval "DEFAULT_$LINE"
6436 else
6437 no_cache=1
6438 fi
6439
6440 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6441
6442fi
6443
6444
6445 eval "$ac_cv_use_sash"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_SASH" = yes; then
6451 echo "$ac_t""yes" 1>&6
6452 else
6453 echo "$ac_t""no" 1>&6
6454 fi
6455
6456
6457 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6458echo "configure:6459: checking for --enable-scrollbar" >&5
6459 no_cache=0
6460 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6461if test "${enable_scrollbar+set}" = set; then
6462 enableval="$enable_scrollbar"
6463
6464 if test "$enableval" = yes; then
6465 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6466 else
6467 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6468 fi
6469
6470else
6471
6472 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6473 if test "x$LINE" != x ; then
6474 eval "DEFAULT_$LINE"
6475 else
6476 no_cache=1
6477 fi
6478
6479 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6480
6481fi
6482
6483
6484 eval "$ac_cv_use_scrollbar"
6485 if test "$no_cache" != 1; then
6486 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6487 fi
6488
6489 if test "$wxUSE_SCROLLBAR" = yes; then
6490 echo "$ac_t""yes" 1>&6
6491 else
6492 echo "$ac_t""no" 1>&6
6493 fi
6494
6495
6496 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6497echo "configure:6498: checking for --enable-slider" >&5
6498 no_cache=0
6499 # Check whether --enable-slider or --disable-slider was given.
6500if test "${enable_slider+set}" = set; then
6501 enableval="$enable_slider"
6502
6503 if test "$enableval" = yes; then
6504 ac_cv_use_slider='wxUSE_SLIDER=yes'
6505 else
6506 ac_cv_use_slider='wxUSE_SLIDER=no'
6507 fi
6508
6509else
6510
6511 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6512 if test "x$LINE" != x ; then
6513 eval "DEFAULT_$LINE"
6514 else
6515 no_cache=1
6516 fi
6517
6518 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6519
6520fi
6521
6522
6523 eval "$ac_cv_use_slider"
6524 if test "$no_cache" != 1; then
6525 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6526 fi
6527
6528 if test "$wxUSE_SLIDER" = yes; then
6529 echo "$ac_t""yes" 1>&6
6530 else
6531 echo "$ac_t""no" 1>&6
6532 fi
6533
6534
6535 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6536echo "configure:6537: checking for --enable-spinbtn" >&5
6537 no_cache=0
6538 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6539if test "${enable_spinbtn+set}" = set; then
6540 enableval="$enable_spinbtn"
6541
6542 if test "$enableval" = yes; then
6543 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6544 else
6545 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6546 fi
6547
6548else
6549
6550 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6551 if test "x$LINE" != x ; then
6552 eval "DEFAULT_$LINE"
6553 else
6554 no_cache=1
6555 fi
6556
6557 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6558
6559fi
6560
6561
6562 eval "$ac_cv_use_spinbtn"
6563 if test "$no_cache" != 1; then
6564 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6565 fi
6566
6567 if test "$wxUSE_SPINBTN" = yes; then
6568 echo "$ac_t""yes" 1>&6
6569 else
6570 echo "$ac_t""no" 1>&6
6571 fi
6572
6573
6574 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6575echo "configure:6576: checking for --enable-spinctrl" >&5
6576 no_cache=0
6577 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6578if test "${enable_spinctrl+set}" = set; then
6579 enableval="$enable_spinctrl"
6580
6581 if test "$enableval" = yes; then
6582 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6583 else
6584 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6585 fi
6586
6587else
6588
6589 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6590 if test "x$LINE" != x ; then
6591 eval "DEFAULT_$LINE"
6592 else
6593 no_cache=1
6594 fi
6595
6596 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6597
6598fi
6599
6600
6601 eval "$ac_cv_use_spinctrl"
6602 if test "$no_cache" != 1; then
6603 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6604 fi
6605
6606 if test "$wxUSE_SPINCTRL" = yes; then
6607 echo "$ac_t""yes" 1>&6
6608 else
6609 echo "$ac_t""no" 1>&6
6610 fi
6611
6612
6613 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6614echo "configure:6615: checking for --enable-splitter" >&5
6615 no_cache=0
6616 # Check whether --enable-splitter or --disable-splitter was given.
6617if test "${enable_splitter+set}" = set; then
6618 enableval="$enable_splitter"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6622 else
6623 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6636
6637fi
6638
6639
6640 eval "$ac_cv_use_splitter"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_SPLITTER" = yes; then
6646 echo "$ac_t""yes" 1>&6
6647 else
6648 echo "$ac_t""no" 1>&6
6649 fi
6650
6651
6652 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6653echo "configure:6654: checking for --enable-statbmp" >&5
6654 no_cache=0
6655 # Check whether --enable-statbmp or --disable-statbmp was given.
6656if test "${enable_statbmp+set}" = set; then
6657 enableval="$enable_statbmp"
6658
6659 if test "$enableval" = yes; then
6660 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6661 else
6662 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6663 fi
6664
6665else
6666
6667 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6668 if test "x$LINE" != x ; then
6669 eval "DEFAULT_$LINE"
6670 else
6671 no_cache=1
6672 fi
6673
6674 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6675
6676fi
6677
6678
6679 eval "$ac_cv_use_statbmp"
6680 if test "$no_cache" != 1; then
6681 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6682 fi
6683
6684 if test "$wxUSE_STATBMP" = yes; then
6685 echo "$ac_t""yes" 1>&6
6686 else
6687 echo "$ac_t""no" 1>&6
6688 fi
6689
6690
6691 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6692echo "configure:6693: checking for --enable-statbox" >&5
6693 no_cache=0
6694 # Check whether --enable-statbox or --disable-statbox was given.
6695if test "${enable_statbox+set}" = set; then
6696 enableval="$enable_statbox"
6697
6698 if test "$enableval" = yes; then
6699 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6700 else
6701 ac_cv_use_statbox='wxUSE_STATBOX=no'
6702 fi
6703
6704else
6705
6706 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6707 if test "x$LINE" != x ; then
6708 eval "DEFAULT_$LINE"
6709 else
6710 no_cache=1
6711 fi
6712
6713 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6714
6715fi
6716
6717
6718 eval "$ac_cv_use_statbox"
6719 if test "$no_cache" != 1; then
6720 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6721 fi
6722
6723 if test "$wxUSE_STATBOX" = yes; then
6724 echo "$ac_t""yes" 1>&6
6725 else
6726 echo "$ac_t""no" 1>&6
6727 fi
6728
6729
6730 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6731echo "configure:6732: checking for --enable-statline" >&5
6732 no_cache=0
6733 # Check whether --enable-statline or --disable-statline was given.
6734if test "${enable_statline+set}" = set; then
6735 enableval="$enable_statline"
6736
6737 if test "$enableval" = yes; then
6738 ac_cv_use_statline='wxUSE_STATLINE=yes'
6739 else
6740 ac_cv_use_statline='wxUSE_STATLINE=no'
6741 fi
6742
6743else
6744
6745 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6746 if test "x$LINE" != x ; then
6747 eval "DEFAULT_$LINE"
6748 else
6749 no_cache=1
6750 fi
6751
6752 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6753
6754fi
6755
6756
6757 eval "$ac_cv_use_statline"
6758 if test "$no_cache" != 1; then
6759 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6760 fi
6761
6762 if test "$wxUSE_STATLINE" = yes; then
6763 echo "$ac_t""yes" 1>&6
6764 else
6765 echo "$ac_t""no" 1>&6
6766 fi
6767
6768
6769 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6770echo "configure:6771: checking for --enable-stattext" >&5
6771 no_cache=0
6772 # Check whether --enable-stattext or --disable-stattext was given.
6773if test "${enable_stattext+set}" = set; then
6774 enableval="$enable_stattext"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6778 else
6779 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6780 fi
6781
6782else
6783
6784 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6792
6793fi
6794
6795
6796 eval "$ac_cv_use_stattext"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_STATTEXT" = yes; then
6802 echo "$ac_t""yes" 1>&6
6803 else
6804 echo "$ac_t""no" 1>&6
6805 fi
6806
6807
6808 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6809echo "configure:6810: checking for --enable-statusbar" >&5
6810 no_cache=0
6811 # Check whether --enable-statusbar or --disable-statusbar was given.
6812if test "${enable_statusbar+set}" = set; then
6813 enableval="$enable_statusbar"
6814
6815 if test "$enableval" = yes; then
6816 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6817 else
6818 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6819 fi
6820
6821else
6822
6823 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6824 if test "x$LINE" != x ; then
6825 eval "DEFAULT_$LINE"
6826 else
6827 no_cache=1
6828 fi
6829
6830 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6831
6832fi
6833
6834
6835 eval "$ac_cv_use_statusbar"
6836 if test "$no_cache" != 1; then
6837 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6838 fi
6839
6840 if test "$wxUSE_STATUSBAR" = yes; then
6841 echo "$ac_t""yes" 1>&6
6842 else
6843 echo "$ac_t""no" 1>&6
6844 fi
6845
6846
6847 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6848echo "configure:6849: checking for --enable-tabdialog" >&5
6849 no_cache=0
6850 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6851if test "${enable_tabdialog+set}" = set; then
6852 enableval="$enable_tabdialog"
6853
6854 if test "$enableval" = yes; then
6855 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6856 else
6857 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6858 fi
6859
6860else
6861
6862 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6870
6871fi
6872
6873
6874 eval "$ac_cv_use_tabdialog"
6875 if test "$no_cache" != 1; then
6876 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6877 fi
6878
6879 if test "$wxUSE_TABDIALOG" = yes; then
6880 echo "$ac_t""yes" 1>&6
6881 else
6882 echo "$ac_t""no" 1>&6
6883 fi
6884
6885
6886 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6887echo "configure:6888: checking for --enable-textctrl" >&5
6888 no_cache=0
6889 # Check whether --enable-textctrl or --disable-textctrl was given.
6890if test "${enable_textctrl+set}" = set; then
6891 enableval="$enable_textctrl"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6895 else
6896 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6897 fi
6898
6899else
6900
6901 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6909
6910fi
6911
6912
6913 eval "$ac_cv_use_textctrl"
6914 if test "$no_cache" != 1; then
6915 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6916 fi
6917
6918 if test "$wxUSE_TEXTCTRL" = yes; then
6919 echo "$ac_t""yes" 1>&6
6920 else
6921 echo "$ac_t""no" 1>&6
6922 fi
6923
6924
6925 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6926echo "configure:6927: checking for --enable-togglebtn" >&5
6927 no_cache=0
6928 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6929if test "${enable_togglebtn+set}" = set; then
6930 enableval="$enable_togglebtn"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6934 else
6935 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6948
6949fi
6950
6951
6952 eval "$ac_cv_use_togglebtn"
6953 if test "$no_cache" != 1; then
6954 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6955 fi
6956
6957 if test "$wxUSE_TOGGLEBTN" = yes; then
6958 echo "$ac_t""yes" 1>&6
6959 else
6960 echo "$ac_t""no" 1>&6
6961 fi
6962
6963
6964 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6965echo "configure:6966: checking for --enable-toolbar" >&5
6966 no_cache=0
6967 # Check whether --enable-toolbar or --disable-toolbar was given.
6968if test "${enable_toolbar+set}" = set; then
6969 enableval="$enable_toolbar"
6970
6971 if test "$enableval" = yes; then
6972 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6973 else
6974 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6975 fi
6976
6977else
6978
6979 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6980 if test "x$LINE" != x ; then
6981 eval "DEFAULT_$LINE"
6982 else
6983 no_cache=1
6984 fi
6985
6986 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6987
6988fi
6989
6990
6991 eval "$ac_cv_use_toolbar"
6992 if test "$no_cache" != 1; then
6993 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6994 fi
6995
6996 if test "$wxUSE_TOOLBAR" = yes; then
6997 echo "$ac_t""yes" 1>&6
6998 else
6999 echo "$ac_t""no" 1>&6
7000 fi
7001
7002
7003 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7004echo "configure:7005: checking for --enable-tbarnative" >&5
7005 no_cache=0
7006 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7007if test "${enable_tbarnative+set}" = set; then
7008 enableval="$enable_tbarnative"
7009
7010 if test "$enableval" = yes; then
7011 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7012 else
7013 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7014 fi
7015
7016else
7017
7018 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7019 if test "x$LINE" != x ; then
7020 eval "DEFAULT_$LINE"
7021 else
7022 no_cache=1
7023 fi
7024
7025 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7026
7027fi
7028
7029
7030 eval "$ac_cv_use_tbarnative"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7036 echo "$ac_t""yes" 1>&6
7037 else
7038 echo "$ac_t""no" 1>&6
7039 fi
7040
7041
7042 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7043echo "configure:7044: checking for --enable-tbarsmpl" >&5
7044 no_cache=0
7045 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7046if test "${enable_tbarsmpl+set}" = set; then
7047 enableval="$enable_tbarsmpl"
7048
7049 if test "$enableval" = yes; then
7050 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7051 else
7052 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7053 fi
7054
7055else
7056
7057 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7065
7066fi
7067
7068
7069 eval "$ac_cv_use_tbarsmpl"
7070 if test "$no_cache" != 1; then
7071 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7072 fi
7073
7074 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7075 echo "$ac_t""yes" 1>&6
7076 else
7077 echo "$ac_t""no" 1>&6
7078 fi
7079
7080
7081 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7082echo "configure:7083: checking for --enable-treectrl" >&5
7083 no_cache=0
7084 # Check whether --enable-treectrl or --disable-treectrl was given.
7085if test "${enable_treectrl+set}" = set; then
7086 enableval="$enable_treectrl"
7087
7088 if test "$enableval" = yes; then
7089 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7090 else
7091 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7092 fi
7093
7094else
7095
7096 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7097 if test "x$LINE" != x ; then
7098 eval "DEFAULT_$LINE"
7099 else
7100 no_cache=1
7101 fi
7102
7103 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7104
7105fi
7106
7107
7108 eval "$ac_cv_use_treectrl"
7109 if test "$no_cache" != 1; then
7110 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7111 fi
7112
7113 if test "$wxUSE_TREECTRL" = yes; then
7114 echo "$ac_t""yes" 1>&6
7115 else
7116 echo "$ac_t""no" 1>&6
7117 fi
7118
7119
7120 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7121echo "configure:7122: checking for --enable-tipwindow" >&5
7122 no_cache=0
7123 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7124if test "${enable_tipwindow+set}" = set; then
7125 enableval="$enable_tipwindow"
7126
7127 if test "$enableval" = yes; then
7128 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7129 else
7130 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7131 fi
7132
7133else
7134
7135 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7136 if test "x$LINE" != x ; then
7137 eval "DEFAULT_$LINE"
7138 else
7139 no_cache=1
7140 fi
7141
7142 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7143
7144fi
7145
7146
7147 eval "$ac_cv_use_tipwindow"
7148 if test "$no_cache" != 1; then
7149 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7150 fi
7151
7152 if test "$wxUSE_TIPWINDOW" = yes; then
7153 echo "$ac_t""yes" 1>&6
7154 else
7155 echo "$ac_t""no" 1>&6
7156 fi
7157
7158
7159 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7160echo "configure:7161: checking for --enable-popupwin" >&5
7161 no_cache=0
7162 # Check whether --enable-popupwin or --disable-popupwin was given.
7163if test "${enable_popupwin+set}" = set; then
7164 enableval="$enable_popupwin"
7165
7166 if test "$enableval" = yes; then
7167 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7168 else
7169 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7170 fi
7171
7172else
7173
7174 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7175 if test "x$LINE" != x ; then
7176 eval "DEFAULT_$LINE"
7177 else
7178 no_cache=1
7179 fi
7180
7181 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7182
7183fi
7184
7185
7186 eval "$ac_cv_use_popupwin"
7187 if test "$no_cache" != 1; then
7188 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7189 fi
7190
7191 if test "$wxUSE_POPUPWIN" = yes; then
7192 echo "$ac_t""yes" 1>&6
7193 else
7194 echo "$ac_t""no" 1>&6
7195 fi
7196
7197
7198
7199
7200 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7201echo "configure:7202: checking for --enable-commondlg" >&5
7202 no_cache=0
7203 # Check whether --enable-commondlg or --disable-commondlg was given.
7204if test "${enable_commondlg+set}" = set; then
7205 enableval="$enable_commondlg"
7206
7207 if test "$enableval" = yes; then
7208 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7209 else
7210 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7211 fi
7212
7213else
7214
7215 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7216 if test "x$LINE" != x ; then
7217 eval "DEFAULT_$LINE"
7218 else
7219 no_cache=1
7220 fi
7221
7222 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7223
7224fi
7225
7226
7227 eval "$ac_cv_use_commondlg"
7228 if test "$no_cache" != 1; then
7229 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7230 fi
7231
7232 if test "$wxUSE_COMMONDLGS" = yes; then
7233 echo "$ac_t""yes" 1>&6
7234 else
7235 echo "$ac_t""no" 1>&6
7236 fi
7237
7238
7239 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7240echo "configure:7241: checking for --enable-choicedlg" >&5
7241 no_cache=0
7242 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7243if test "${enable_choicedlg+set}" = set; then
7244 enableval="$enable_choicedlg"
7245
7246 if test "$enableval" = yes; then
7247 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7248 else
7249 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7250 fi
7251
7252else
7253
7254 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7255 if test "x$LINE" != x ; then
7256 eval "DEFAULT_$LINE"
7257 else
7258 no_cache=1
7259 fi
7260
7261 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7262
7263fi
7264
7265
7266 eval "$ac_cv_use_choicedlg"
7267 if test "$no_cache" != 1; then
7268 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7269 fi
7270
7271 if test "$wxUSE_CHOICEDLG" = yes; then
7272 echo "$ac_t""yes" 1>&6
7273 else
7274 echo "$ac_t""no" 1>&6
7275 fi
7276
7277
7278 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7279echo "configure:7280: checking for --enable-coldlg" >&5
7280 no_cache=0
7281 # Check whether --enable-coldlg or --disable-coldlg was given.
7282if test "${enable_coldlg+set}" = set; then
7283 enableval="$enable_coldlg"
7284
7285 if test "$enableval" = yes; then
7286 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7287 else
7288 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7289 fi
7290
7291else
7292
7293 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7301
7302fi
7303
7304
7305 eval "$ac_cv_use_coldlg"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_COLOURDLG" = yes; then
7311 echo "$ac_t""yes" 1>&6
7312 else
7313 echo "$ac_t""no" 1>&6
7314 fi
7315
7316
7317 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7318echo "configure:7319: checking for --enable-filedlg" >&5
7319 no_cache=0
7320 # Check whether --enable-filedlg or --disable-filedlg was given.
7321if test "${enable_filedlg+set}" = set; then
7322 enableval="$enable_filedlg"
7323
7324 if test "$enableval" = yes; then
7325 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7326 else
7327 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7328 fi
7329
7330else
7331
7332 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7333 if test "x$LINE" != x ; then
7334 eval "DEFAULT_$LINE"
7335 else
7336 no_cache=1
7337 fi
7338
7339 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7340
7341fi
7342
7343
7344 eval "$ac_cv_use_filedlg"
7345 if test "$no_cache" != 1; then
7346 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7347 fi
7348
7349 if test "$wxUSE_FILEDLG" = yes; then
7350 echo "$ac_t""yes" 1>&6
7351 else
7352 echo "$ac_t""no" 1>&6
7353 fi
7354
7355
7356 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7357echo "configure:7358: checking for --enable-finddlg" >&5
7358 no_cache=0
7359 # Check whether --enable-finddlg or --disable-finddlg was given.
7360if test "${enable_finddlg+set}" = set; then
7361 enableval="$enable_finddlg"
7362
7363 if test "$enableval" = yes; then
7364 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7365 else
7366 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7367 fi
7368
7369else
7370
7371 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7372 if test "x$LINE" != x ; then
7373 eval "DEFAULT_$LINE"
7374 else
7375 no_cache=1
7376 fi
7377
7378 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7379
7380fi
7381
7382
7383 eval "$ac_cv_use_finddlg"
7384 if test "$no_cache" != 1; then
7385 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7386 fi
7387
7388 if test "$wxUSE_FINDREPLDLG" = yes; then
7389 echo "$ac_t""yes" 1>&6
7390 else
7391 echo "$ac_t""no" 1>&6
7392 fi
7393
7394
7395 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7396echo "configure:7397: checking for --enable-fontdlg" >&5
7397 no_cache=0
7398 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7399if test "${enable_fontdlg+set}" = set; then
7400 enableval="$enable_fontdlg"
7401
7402 if test "$enableval" = yes; then
7403 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7404 else
7405 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7406 fi
7407
7408else
7409
7410 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7411 if test "x$LINE" != x ; then
7412 eval "DEFAULT_$LINE"
7413 else
7414 no_cache=1
7415 fi
7416
7417 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7418
7419fi
7420
7421
7422 eval "$ac_cv_use_fontdlg"
7423 if test "$no_cache" != 1; then
7424 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7425 fi
7426
7427 if test "$wxUSE_FONTDLG" = yes; then
7428 echo "$ac_t""yes" 1>&6
7429 else
7430 echo "$ac_t""no" 1>&6
7431 fi
7432
7433
7434 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7435echo "configure:7436: checking for --enable-dirdlg" >&5
7436 no_cache=0
7437 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7438if test "${enable_dirdlg+set}" = set; then
7439 enableval="$enable_dirdlg"
7440
7441 if test "$enableval" = yes; then
7442 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7443 else
7444 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7445 fi
7446
7447else
7448
7449 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7450 if test "x$LINE" != x ; then
7451 eval "DEFAULT_$LINE"
7452 else
7453 no_cache=1
7454 fi
7455
7456 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7457
7458fi
7459
7460
7461 eval "$ac_cv_use_dirdlg"
7462 if test "$no_cache" != 1; then
7463 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7464 fi
7465
7466 if test "$wxUSE_DIRDLG" = yes; then
7467 echo "$ac_t""yes" 1>&6
7468 else
7469 echo "$ac_t""no" 1>&6
7470 fi
7471
7472
7473 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7474echo "configure:7475: checking for --enable-msgdlg" >&5
7475 no_cache=0
7476 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7477if test "${enable_msgdlg+set}" = set; then
7478 enableval="$enable_msgdlg"
7479
7480 if test "$enableval" = yes; then
7481 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7482 else
7483 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7484 fi
7485
7486else
7487
7488 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7489 if test "x$LINE" != x ; then
7490 eval "DEFAULT_$LINE"
7491 else
7492 no_cache=1
7493 fi
7494
7495 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7496
7497fi
7498
7499
7500 eval "$ac_cv_use_msgdlg"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_MSGDLG" = yes; then
7506 echo "$ac_t""yes" 1>&6
7507 else
7508 echo "$ac_t""no" 1>&6
7509 fi
7510
7511
7512 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7513echo "configure:7514: checking for --enable-numberdlg" >&5
7514 no_cache=0
7515 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7516if test "${enable_numberdlg+set}" = set; then
7517 enableval="$enable_numberdlg"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7521 else
7522 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7523 fi
7524
7525else
7526
7527 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7535
7536fi
7537
7538
7539 eval "$ac_cv_use_numberdlg"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_NUMBERDLG" = yes; then
7545 echo "$ac_t""yes" 1>&6
7546 else
7547 echo "$ac_t""no" 1>&6
7548 fi
7549
7550
7551 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7552echo "configure:7553: checking for --enable-splash" >&5
7553 no_cache=0
7554 # Check whether --enable-splash or --disable-splash was given.
7555if test "${enable_splash+set}" = set; then
7556 enableval="$enable_splash"
7557
7558 if test "$enableval" = yes; then
7559 ac_cv_use_splash='wxUSE_SPLASH=yes'
7560 else
7561 ac_cv_use_splash='wxUSE_SPLASH=no'
7562 fi
7563
7564else
7565
7566 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7567 if test "x$LINE" != x ; then
7568 eval "DEFAULT_$LINE"
7569 else
7570 no_cache=1
7571 fi
7572
7573 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7574
7575fi
7576
7577
7578 eval "$ac_cv_use_splash"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_SPLASH" = yes; then
7584 echo "$ac_t""yes" 1>&6
7585 else
7586 echo "$ac_t""no" 1>&6
7587 fi
7588
7589
7590 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7591echo "configure:7592: checking for --enable-textdlg" >&5
7592 no_cache=0
7593 # Check whether --enable-textdlg or --disable-textdlg was given.
7594if test "${enable_textdlg+set}" = set; then
7595 enableval="$enable_textdlg"
7596
7597 if test "$enableval" = yes; then
7598 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7599 else
7600 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7601 fi
7602
7603else
7604
7605 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7613
7614fi
7615
7616
7617 eval "$ac_cv_use_textdlg"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_TEXTDLG" = yes; then
7623 echo "$ac_t""yes" 1>&6
7624 else
7625 echo "$ac_t""no" 1>&6
7626 fi
7627
7628
7629 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7630echo "configure:7631: checking for --enable-tipdlg" >&5
7631 no_cache=0
7632 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7633if test "${enable_tipdlg+set}" = set; then
7634 enableval="$enable_tipdlg"
7635
7636 if test "$enableval" = yes; then
7637 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7638 else
7639 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7640 fi
7641
7642else
7643
7644 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7652
7653fi
7654
7655
7656 eval "$ac_cv_use_tipdlg"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_STARTUP_TIPS" = yes; then
7662 echo "$ac_t""yes" 1>&6
7663 else
7664 echo "$ac_t""no" 1>&6
7665 fi
7666
7667
7668 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7669echo "configure:7670: checking for --enable-progressdlg" >&5
7670 no_cache=0
7671 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7672if test "${enable_progressdlg+set}" = set; then
7673 enableval="$enable_progressdlg"
7674
7675 if test "$enableval" = yes; then
7676 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7677 else
7678 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7679 fi
7680
7681else
7682
7683 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7691
7692fi
7693
7694
7695 eval "$ac_cv_use_progressdlg"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_PROGRESSDLG" = yes; then
7701 echo "$ac_t""yes" 1>&6
7702 else
7703 echo "$ac_t""no" 1>&6
7704 fi
7705
7706
7707 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7708echo "configure:7709: checking for --enable-wizarddlg" >&5
7709 no_cache=0
7710 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7711if test "${enable_wizarddlg+set}" = set; then
7712 enableval="$enable_wizarddlg"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7716 else
7717 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7730
7731fi
7732
7733
7734 eval "$ac_cv_use_wizarddlg"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_WIZARDDLG" = yes; then
7740 echo "$ac_t""yes" 1>&6
7741 else
7742 echo "$ac_t""no" 1>&6
7743 fi
7744
7745
7746
7747
7748 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7749echo "configure:7750: checking for --enable-menus" >&5
7750 no_cache=0
7751 # Check whether --enable-menus or --disable-menus was given.
7752if test "${enable_menus+set}" = set; then
7753 enableval="$enable_menus"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_menus='wxUSE_MENUS=yes'
7757 else
7758 ac_cv_use_menus='wxUSE_MENUS=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7771
7772fi
7773
7774
7775 eval "$ac_cv_use_menus"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_MENUS" = yes; then
7781 echo "$ac_t""yes" 1>&6
7782 else
7783 echo "$ac_t""no" 1>&6
7784 fi
7785
7786
7787 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7788echo "configure:7789: checking for --enable-miniframe" >&5
7789 no_cache=0
7790 # Check whether --enable-miniframe or --disable-miniframe was given.
7791if test "${enable_miniframe+set}" = set; then
7792 enableval="$enable_miniframe"
7793
7794 if test "$enableval" = yes; then
7795 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7796 else
7797 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7798 fi
7799
7800else
7801
7802 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7810
7811fi
7812
7813
7814 eval "$ac_cv_use_miniframe"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_MINIFRAME" = yes; then
7820 echo "$ac_t""yes" 1>&6
7821 else
7822 echo "$ac_t""no" 1>&6
7823 fi
7824
7825
7826 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7827echo "configure:7828: checking for --enable-tooltips" >&5
7828 no_cache=0
7829 # Check whether --enable-tooltips or --disable-tooltips was given.
7830if test "${enable_tooltips+set}" = set; then
7831 enableval="$enable_tooltips"
7832
7833 if test "$enableval" = yes; then
7834 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7835 else
7836 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7837 fi
7838
7839else
7840
7841 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7849
7850fi
7851
7852
7853 eval "$ac_cv_use_tooltips"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_TOOLTIPS" = yes; then
7859 echo "$ac_t""yes" 1>&6
7860 else
7861 echo "$ac_t""no" 1>&6
7862 fi
7863
7864
7865 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7866echo "configure:7867: checking for --enable-splines" >&5
7867 no_cache=0
7868 # Check whether --enable-splines or --disable-splines was given.
7869if test "${enable_splines+set}" = set; then
7870 enableval="$enable_splines"
7871
7872 if test "$enableval" = yes; then
7873 ac_cv_use_splines='wxUSE_SPLINES=yes'
7874 else
7875 ac_cv_use_splines='wxUSE_SPLINES=no'
7876 fi
7877
7878else
7879
7880 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7888
7889fi
7890
7891
7892 eval "$ac_cv_use_splines"
7893 if test "$no_cache" != 1; then
7894 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7895 fi
7896
7897 if test "$wxUSE_SPLINES" = yes; then
7898 echo "$ac_t""yes" 1>&6
7899 else
7900 echo "$ac_t""no" 1>&6
7901 fi
7902
7903
7904 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7905echo "configure:7906: checking for --enable-validators" >&5
7906 no_cache=0
7907 # Check whether --enable-validators or --disable-validators was given.
7908if test "${enable_validators+set}" = set; then
7909 enableval="$enable_validators"
7910
7911 if test "$enableval" = yes; then
7912 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7913 else
7914 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7915 fi
7916
7917else
7918
7919 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7920 if test "x$LINE" != x ; then
7921 eval "DEFAULT_$LINE"
7922 else
7923 no_cache=1
7924 fi
7925
7926 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7927
7928fi
7929
7930
7931 eval "$ac_cv_use_validators"
7932 if test "$no_cache" != 1; then
7933 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7934 fi
7935
7936 if test "$wxUSE_VALIDATORS" = yes; then
7937 echo "$ac_t""yes" 1>&6
7938 else
7939 echo "$ac_t""no" 1>&6
7940 fi
7941
7942
7943 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7944echo "configure:7945: checking for --enable-busyinfo" >&5
7945 no_cache=0
7946 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7947if test "${enable_busyinfo+set}" = set; then
7948 enableval="$enable_busyinfo"
7949
7950 if test "$enableval" = yes; then
7951 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7952 else
7953 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7954 fi
7955
7956else
7957
7958 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7959 if test "x$LINE" != x ; then
7960 eval "DEFAULT_$LINE"
7961 else
7962 no_cache=1
7963 fi
7964
7965 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7966
7967fi
7968
7969
7970 eval "$ac_cv_use_busyinfo"
7971 if test "$no_cache" != 1; then
7972 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7973 fi
7974
7975 if test "$wxUSE_BUSYINFO" = yes; then
7976 echo "$ac_t""yes" 1>&6
7977 else
7978 echo "$ac_t""no" 1>&6
7979 fi
7980
7981
7982 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7983echo "configure:7984: checking for --enable-joystick" >&5
7984 no_cache=0
7985 # Check whether --enable-joystick or --disable-joystick was given.
7986if test "${enable_joystick+set}" = set; then
7987 enableval="$enable_joystick"
7988
7989 if test "$enableval" = yes; then
7990 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7991 else
7992 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7993 fi
7994
7995else
7996
7997 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7998 if test "x$LINE" != x ; then
7999 eval "DEFAULT_$LINE"
8000 else
8001 no_cache=1
8002 fi
8003
8004 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8005
8006fi
8007
8008
8009 eval "$ac_cv_use_joystick"
8010 if test "$no_cache" != 1; then
8011 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8012 fi
8013
8014 if test "$wxUSE_JOYSTICK" = yes; then
8015 echo "$ac_t""yes" 1>&6
8016 else
8017 echo "$ac_t""no" 1>&6
8018 fi
8019
8020
8021 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8022echo "configure:8023: checking for --enable-metafile" >&5
8023 no_cache=0
8024 # Check whether --enable-metafile or --disable-metafile was given.
8025if test "${enable_metafile+set}" = set; then
8026 enableval="$enable_metafile"
8027
8028 if test "$enableval" = yes; then
8029 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8030 else
8031 ac_cv_use_metafile='wxUSE_METAFILE=no'
8032 fi
8033
8034else
8035
8036 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8037 if test "x$LINE" != x ; then
8038 eval "DEFAULT_$LINE"
8039 else
8040 no_cache=1
8041 fi
8042
8043 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8044
8045fi
8046
8047
8048 eval "$ac_cv_use_metafile"
8049 if test "$no_cache" != 1; then
8050 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8051 fi
8052
8053 if test "$wxUSE_METAFILE" = yes; then
8054 echo "$ac_t""yes" 1>&6
8055 else
8056 echo "$ac_t""no" 1>&6
8057 fi
8058
8059
8060 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8061echo "configure:8062: checking for --enable-dragimage" >&5
8062 no_cache=0
8063 # Check whether --enable-dragimage or --disable-dragimage was given.
8064if test "${enable_dragimage+set}" = set; then
8065 enableval="$enable_dragimage"
8066
8067 if test "$enableval" = yes; then
8068 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8069 else
8070 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8071 fi
8072
8073else
8074
8075 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8076 if test "x$LINE" != x ; then
8077 eval "DEFAULT_$LINE"
8078 else
8079 no_cache=1
8080 fi
8081
8082 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8083
8084fi
8085
8086
8087 eval "$ac_cv_use_dragimage"
8088 if test "$no_cache" != 1; then
8089 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8090 fi
8091
8092 if test "$wxUSE_DRAGIMAGE" = yes; then
8093 echo "$ac_t""yes" 1>&6
8094 else
8095 echo "$ac_t""no" 1>&6
8096 fi
8097
8098
8099
8100
8101 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8102echo "configure:8103: checking for --enable-palette" >&5
8103 no_cache=0
8104 # Check whether --enable-palette or --disable-palette was given.
8105if test "${enable_palette+set}" = set; then
8106 enableval="$enable_palette"
8107
8108 if test "$enableval" = yes; then
8109 ac_cv_use_palette='wxUSE_PALETTE=yes'
8110 else
8111 ac_cv_use_palette='wxUSE_PALETTE=no'
8112 fi
8113
8114else
8115
8116 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8124
8125fi
8126
8127
8128 eval "$ac_cv_use_palette"
8129 if test "$no_cache" != 1; then
8130 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8131 fi
8132
8133 if test "$wxUSE_PALETTE" = yes; then
8134 echo "$ac_t""yes" 1>&6
8135 else
8136 echo "$ac_t""no" 1>&6
8137 fi
8138
8139
8140 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8141echo "configure:8142: checking for --enable-image" >&5
8142 no_cache=0
8143 # Check whether --enable-image or --disable-image was given.
8144if test "${enable_image+set}" = set; then
8145 enableval="$enable_image"
8146
8147 if test "$enableval" = yes; then
8148 ac_cv_use_image='wxUSE_IMAGE=yes'
8149 else
8150 ac_cv_use_image='wxUSE_IMAGE=no'
8151 fi
8152
8153else
8154
8155 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8163
8164fi
8165
8166
8167 eval "$ac_cv_use_image"
8168 if test "$no_cache" != 1; then
8169 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8170 fi
8171
8172 if test "$wxUSE_IMAGE" = yes; then
8173 echo "$ac_t""yes" 1>&6
8174 else
8175 echo "$ac_t""no" 1>&6
8176 fi
8177
8178
8179 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8180echo "configure:8181: checking for --enable-gif" >&5
8181 no_cache=0
8182 # Check whether --enable-gif or --disable-gif was given.
8183if test "${enable_gif+set}" = set; then
8184 enableval="$enable_gif"
8185
8186 if test "$enableval" = yes; then
8187 ac_cv_use_gif='wxUSE_GIF=yes'
8188 else
8189 ac_cv_use_gif='wxUSE_GIF=no'
8190 fi
8191
8192else
8193
8194 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8195 if test "x$LINE" != x ; then
8196 eval "DEFAULT_$LINE"
8197 else
8198 no_cache=1
8199 fi
8200
8201 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8202
8203fi
8204
8205
8206 eval "$ac_cv_use_gif"
8207 if test "$no_cache" != 1; then
8208 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8209 fi
8210
8211 if test "$wxUSE_GIF" = yes; then
8212 echo "$ac_t""yes" 1>&6
8213 else
8214 echo "$ac_t""no" 1>&6
8215 fi
8216
8217
8218 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8219echo "configure:8220: checking for --enable-pcx" >&5
8220 no_cache=0
8221 # Check whether --enable-pcx or --disable-pcx was given.
8222if test "${enable_pcx+set}" = set; then
8223 enableval="$enable_pcx"
8224
8225 if test "$enableval" = yes; then
8226 ac_cv_use_pcx='wxUSE_PCX=yes'
8227 else
8228 ac_cv_use_pcx='wxUSE_PCX=no'
8229 fi
8230
8231else
8232
8233 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8234 if test "x$LINE" != x ; then
8235 eval "DEFAULT_$LINE"
8236 else
8237 no_cache=1
8238 fi
8239
8240 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8241
8242fi
8243
8244
8245 eval "$ac_cv_use_pcx"
8246 if test "$no_cache" != 1; then
8247 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8248 fi
8249
8250 if test "$wxUSE_PCX" = yes; then
8251 echo "$ac_t""yes" 1>&6
8252 else
8253 echo "$ac_t""no" 1>&6
8254 fi
8255
8256
8257 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8258echo "configure:8259: checking for --enable-iff" >&5
8259 no_cache=0
8260 # Check whether --enable-iff or --disable-iff was given.
8261if test "${enable_iff+set}" = set; then
8262 enableval="$enable_iff"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_iff='wxUSE_IFF=yes'
8266 else
8267 ac_cv_use_iff='wxUSE_IFF=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8280
8281fi
8282
8283
8284 eval "$ac_cv_use_iff"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_IFF" = yes; then
8290 echo "$ac_t""yes" 1>&6
8291 else
8292 echo "$ac_t""no" 1>&6
8293 fi
8294
8295
8296 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8297echo "configure:8298: checking for --enable-pnm" >&5
8298 no_cache=0
8299 # Check whether --enable-pnm or --disable-pnm was given.
8300if test "${enable_pnm+set}" = set; then
8301 enableval="$enable_pnm"
8302
8303 if test "$enableval" = yes; then
8304 ac_cv_use_pnm='wxUSE_PNM=yes'
8305 else
8306 ac_cv_use_pnm='wxUSE_PNM=no'
8307 fi
8308
8309else
8310
8311 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8312 if test "x$LINE" != x ; then
8313 eval "DEFAULT_$LINE"
8314 else
8315 no_cache=1
8316 fi
8317
8318 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8319
8320fi
8321
8322
8323 eval "$ac_cv_use_pnm"
8324 if test "$no_cache" != 1; then
8325 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8326 fi
8327
8328 if test "$wxUSE_PNM" = yes; then
8329 echo "$ac_t""yes" 1>&6
8330 else
8331 echo "$ac_t""no" 1>&6
8332 fi
8333
8334
8335 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8336echo "configure:8337: checking for --enable-xpm" >&5
8337 no_cache=0
8338 # Check whether --enable-xpm or --disable-xpm was given.
8339if test "${enable_xpm+set}" = set; then
8340 enableval="$enable_xpm"
8341
8342 if test "$enableval" = yes; then
8343 ac_cv_use_xpm='wxUSE_XPM=yes'
8344 else
8345 ac_cv_use_xpm='wxUSE_XPM=no'
8346 fi
8347
8348else
8349
8350 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8358
8359fi
8360
8361
8362 eval "$ac_cv_use_xpm"
8363 if test "$no_cache" != 1; then
8364 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8365 fi
8366
8367 if test "$wxUSE_XPM" = yes; then
8368 echo "$ac_t""yes" 1>&6
8369 else
8370 echo "$ac_t""no" 1>&6
8371 fi
8372
8373
8374 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8375echo "configure:8376: checking for --enable-ico_cur" >&5
8376 no_cache=0
8377 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8378if test "${enable_ico_cur+set}" = set; then
8379 enableval="$enable_ico_cur"
8380
8381 if test "$enableval" = yes; then
8382 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8383 else
8384 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8385 fi
8386
8387else
8388
8389 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8390 if test "x$LINE" != x ; then
8391 eval "DEFAULT_$LINE"
8392 else
8393 no_cache=1
8394 fi
8395
8396 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8397
8398fi
8399
8400
8401 eval "$ac_cv_use_ico_cur"
8402 if test "$no_cache" != 1; then
8403 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8404 fi
8405
8406 if test "$wxUSE_ICO_CUR" = yes; then
8407 echo "$ac_t""yes" 1>&6
8408 else
8409 echo "$ac_t""no" 1>&6
8410 fi
8411
8412
8413fi
8414
8415case "${host}" in
8416 *-pc-os2_emx | *-pc-os2-emx )
8417 LEX_STEM="lexyy"
8418 ;;
8419 *)
8420 PATH_IFS=':'
8421 LEX_STEM="lex.yy"
8422 ;;
8423esac
8424
8425
8426
8427 echo "saving argument cache $wx_arg_cache_file"
8428 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8429
8430
8431
8432echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8433echo "configure:8434: checking for toolkit" >&5
8434
8435if test "$wxUSE_GUI" = "yes"; then
8436
8437 if test "$USE_BEOS" = 1; then
8438 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8439 fi
8440
8441 if test "$TOOLKIT_GIVEN" = 1; then
8442 for toolkit in `echo $ALL_TOOLKITS`; do
8443 var=wxUSE_$toolkit
8444 eval "value=\$${var}"
8445 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8446 done
8447 else
8448 for toolkit in `echo $ALL_TOOLKITS`; do
8449 if test "$has_toolkit_in_cache" != 1; then
8450 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8451 else
8452 var=DEFAULT_wxUSE_$toolkit
8453 fi
8454 eval "wxUSE_$toolkit=\$${var}"
8455 done
8456 fi
8457
8458 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8459 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8460
8461 case "${host}" in
8462 *-pc-os2_emx | *-pc-os2-emx )
8463 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8464 esac
8465
8466 case "$NUM_TOOLKITS" in
8467 1)
8468 ;;
8469 0)
8470 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8471 ;;
8472 *)
8473 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8474 esac
8475
8476 for toolkit in `echo $ALL_TOOLKITS`; do
8477 var=wxUSE_$toolkit
8478 eval "value=\$${var}"
8479 if test "x$value" != x; then
8480 cache_var=CACHE_$toolkit
8481 eval "cache=\$${cache_var}"
8482 if test "$cache" = 1; then
8483 echo "$var=$value" >> ${wx_arg_cache_file}
8484 fi
8485 if test "$value" = 1; then
8486 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8487 echo "$ac_t""$toolkit_echo" 1>&6
8488 fi
8489 fi
8490 done
8491else
8492 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8493fi
8494
8495
8496wants_win32=0
8497doesnt_want_win32=0
8498case "${host}" in
8499 *-*-cygwin*)
8500 if test "$wxUSE_MSW" = 1 ; then
8501 wants_win32=1
8502 else
8503 doesnt_want_win32=1
8504 fi
8505 ;;
8506 *-*-mingw*)
8507 wants_win32=1
8508 ;;
8509esac
8510
8511if test "$wants_win32" = 1 ; then
8512 USE_UNIX=0
8513 USE_WIN32=1
8514 cat >> confdefs.h <<\EOF
8515#define __WIN32__ 1
8516EOF
8517
8518 cat >> confdefs.h <<\EOF
8519#define __WIN95__ 1
8520EOF
8521
8522 cat >> confdefs.h <<\EOF
8523#define __WINDOWS__ 1
8524EOF
8525
8526 cat >> confdefs.h <<\EOF
8527#define __GNUWIN32__ 1
8528EOF
8529
8530 cat >> confdefs.h <<\EOF
8531#define STRICT 1
8532EOF
8533
8534 cat >> confdefs.h <<\EOF
8535#define WINVER 0x0400
8536EOF
8537
8538fi
8539if test "$doesnt_want_win32" = 1 ; then
8540 USE_UNIX=1
8541 USE_WIN32=0
8542fi
8543
8544if test "$USE_UNIX" = 1 ; then
8545 wxUSE_UNIX=yes
8546 cat >> confdefs.h <<\EOF
8547#define __UNIX__ 1
8548EOF
8549
8550fi
8551
8552
8553cat > confcache <<\EOF
8554# This file is a shell script that caches the results of configure
8555# tests run on this system so they can be shared between configure
8556# scripts and configure runs. It is not useful on other systems.
8557# If it contains results you don't want to keep, you may remove or edit it.
8558#
8559# By default, configure uses ./config.cache as the cache file,
8560# creating it if it does not exist already. You can give configure
8561# the --cache-file=FILE option to use a different cache file; that is
8562# what configure does when it calls configure scripts in
8563# subdirectories, so they share the cache.
8564# Giving --cache-file=/dev/null disables caching, for debugging configure.
8565# config.status only pays attention to the cache file if you give it the
8566# --recheck option to rerun configure.
8567#
8568EOF
8569# The following way of writing the cache mishandles newlines in values,
8570# but we know of no workaround that is simple, portable, and efficient.
8571# So, don't put newlines in cache variables' values.
8572# Ultrix sh set writes to stderr and can't be redirected directly,
8573# and sets the high bit in the cache file unless we assign to the vars.
8574(set) 2>&1 |
8575 case `(ac_space=' '; set) 2>&1` in
8576 *ac_space=\ *)
8577 # `set' does not quote correctly, so add quotes (double-quote substitution
8578 # turns \\\\ into \\, and sed turns \\ into \).
8579 sed -n \
8580 -e "s/'/'\\\\''/g" \
8581 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8582 ;;
8583 *)
8584 # `set' quotes correctly as required by POSIX, so do not add quotes.
8585 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8586 ;;
8587 esac >> confcache
8588if cmp -s $cache_file confcache; then
8589 :
8590else
8591 if test -w $cache_file; then
8592 echo "updating cache $cache_file"
8593 cat confcache > $cache_file
8594 else
8595 echo "not updating unwritable cache $cache_file"
8596 fi
8597fi
8598rm -f confcache
8599
8600
8601if test "$build" != "$host" ; then
8602 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8603 CC=$host_alias-gcc
8604 CXX=$host_alias-c++
8605 AR=$host_alias-ar
8606 RANLIB=$host_alias-ranlib
8607 DLLTOOL=$host_alias-dlltool
8608 RESCOMP=$host_alias-windres
8609 LD=$host_alias-ld
8610 NM=$host_alias-nm
8611 STRIP=$host_alias-strip
8612 else
8613 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8614 fi
8615fi
8616
8617CFLAGS=${CFLAGS:=}
8618# Extract the first word of "gcc", so it can be a program name with args.
8619set dummy gcc; ac_word=$2
8620echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8621echo "configure:8622: checking for $ac_word" >&5
8622if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8623 echo $ac_n "(cached) $ac_c" 1>&6
8624else
8625 if test -n "$CC"; then
8626 ac_cv_prog_CC="$CC" # Let the user override the test.
8627else
8628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8629 for ac_dir in $PATH; do
8630 test -z "$ac_dir" && ac_dir=.
8631 if test -f $ac_dir/$ac_word; then
8632 ac_cv_prog_CC="gcc"
8633 break
8634 fi
8635 done
8636 IFS="$ac_save_ifs"
8637fi
8638fi
8639CC="$ac_cv_prog_CC"
8640if test -n "$CC"; then
8641 echo "$ac_t""$CC" 1>&6
8642else
8643 echo "$ac_t""no" 1>&6
8644fi
8645
8646if test -z "$CC"; then
8647 # Extract the first word of "cc", so it can be a program name with args.
8648set dummy cc; ac_word=$2
8649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8650echo "configure:8651: checking for $ac_word" >&5
8651if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8653else
8654 if test -n "$CC"; then
8655 ac_cv_prog_CC="$CC" # Let the user override the test.
8656else
8657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8658 ac_prog_rejected=no
8659 for ac_dir in $PATH; do
8660 test -z "$ac_dir" && ac_dir=.
8661 if test -f $ac_dir/$ac_word; then
8662 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8663 ac_prog_rejected=yes
8664 continue
8665 fi
8666 ac_cv_prog_CC="cc"
8667 break
8668 fi
8669 done
8670 IFS="$ac_save_ifs"
8671if test $ac_prog_rejected = yes; then
8672 # We found a bogon in the path, so make sure we never use it.
8673 set dummy $ac_cv_prog_CC
8674 shift
8675 if test $# -gt 0; then
8676 # We chose a different compiler from the bogus one.
8677 # However, it has the same basename, so the bogon will be chosen
8678 # first if we set CC to just the basename; use the full file name.
8679 shift
8680 set dummy "$ac_dir/$ac_word" "$@"
8681 shift
8682 ac_cv_prog_CC="$@"
8683 fi
8684fi
8685fi
8686fi
8687CC="$ac_cv_prog_CC"
8688if test -n "$CC"; then
8689 echo "$ac_t""$CC" 1>&6
8690else
8691 echo "$ac_t""no" 1>&6
8692fi
8693
8694 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8695fi
8696
8697echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8698echo "configure:8699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8699
8700ac_ext=c
8701# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8702ac_cpp='$CPP $CPPFLAGS'
8703ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8704ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8705cross_compiling=$ac_cv_prog_cc_cross
8706
8707cat > conftest.$ac_ext <<EOF
8708#line 8709 "configure"
8709#include "confdefs.h"
8710main(){return(0);}
8711EOF
8712if { (eval echo configure:8713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8713 ac_cv_prog_cc_works=yes
8714 # If we can't run a trivial program, we are probably using a cross compiler.
8715 if (./conftest; exit) 2>/dev/null; then
8716 ac_cv_prog_cc_cross=no
8717 else
8718 ac_cv_prog_cc_cross=yes
8719 fi
8720else
8721 echo "configure: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8723 ac_cv_prog_cc_works=no
8724fi
8725rm -fr conftest*
8726
8727echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8728if test $ac_cv_prog_cc_works = no; then
8729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8730fi
8731echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8732echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8733echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8734cross_compiling=$ac_cv_prog_cc_cross
8735
8736echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8737echo "configure:8738: checking whether we are using GNU C" >&5
8738if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8739 echo $ac_n "(cached) $ac_c" 1>&6
8740else
8741 cat > conftest.c <<EOF
8742#ifdef __GNUC__
8743 yes;
8744#endif
8745EOF
8746if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8747 ac_cv_prog_gcc=yes
8748else
8749 ac_cv_prog_gcc=no
8750fi
8751fi
8752
8753echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8754
8755if test $ac_cv_prog_gcc = yes; then
8756 GCC=yes
8757 ac_test_CFLAGS="${CFLAGS+set}"
8758 ac_save_CFLAGS="$CFLAGS"
8759 CFLAGS=
8760 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8761echo "configure:8762: checking whether ${CC-cc} accepts -g" >&5
8762if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764else
8765 echo 'void f(){}' > conftest.c
8766if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8767 ac_cv_prog_cc_g=yes
8768else
8769 ac_cv_prog_cc_g=no
8770fi
8771rm -f conftest*
8772
8773fi
8774
8775echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8776 if test "$ac_test_CFLAGS" = set; then
8777 CFLAGS="$ac_save_CFLAGS"
8778 elif test $ac_cv_prog_cc_g = yes; then
8779 CFLAGS="-g -O2"
8780 else
8781 CFLAGS="-O2"
8782 fi
8783else
8784 GCC=
8785 test "${CFLAGS+set}" = set || CFLAGS="-g"
8786fi
8787
8788
8789echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8790echo "configure:8791: checking how to run the C preprocessor" >&5
8791# On Suns, sometimes $CPP names a directory.
8792if test -n "$CPP" && test -d "$CPP"; then
8793 CPP=
8794fi
8795if test -z "$CPP"; then
8796if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8798else
8799 # This must be in double quotes, not single quotes, because CPP may get
8800 # substituted into the Makefile and "${CC-cc}" will confuse make.
8801 CPP="${CC-cc} -E"
8802 # On the NeXT, cc -E runs the code through the compiler's parser,
8803 # not just through cpp.
8804 cat > conftest.$ac_ext <<EOF
8805#line 8806 "configure"
8806#include "confdefs.h"
8807#include <assert.h>
8808Syntax Error
8809EOF
8810ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8811{ (eval echo configure:8812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8812ac_err=`grep -v '^ *+' conftest.out`
8813if test -z "$ac_err"; then
8814 :
8815else
8816 echo "$ac_err" >&5
8817 echo "configure: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8819 rm -rf conftest*
8820 CPP="${CC-cc} -E -traditional-cpp"
8821 cat > conftest.$ac_ext <<EOF
8822#line 8823 "configure"
8823#include "confdefs.h"
8824#include <assert.h>
8825Syntax Error
8826EOF
8827ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8828{ (eval echo configure:8829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8829ac_err=`grep -v '^ *+' conftest.out`
8830if test -z "$ac_err"; then
8831 :
8832else
8833 echo "$ac_err" >&5
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 rm -rf conftest*
8837 CPP=/lib/cpp
8838fi
8839rm -f conftest*
8840fi
8841rm -f conftest*
8842 ac_cv_prog_CPP="$CPP"
8843fi
8844 CPP="$ac_cv_prog_CPP"
8845else
8846 ac_cv_prog_CPP="$CPP"
8847fi
8848echo "$ac_t""$CPP" 1>&6
8849
8850if test $ac_cv_prog_gcc = yes; then
8851 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8852echo "configure:8853: checking whether ${CC-cc} needs -traditional" >&5
8853if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8855else
8856 ac_pattern="Autoconf.*'x'"
8857 cat > conftest.$ac_ext <<EOF
8858#line 8859 "configure"
8859#include "confdefs.h"
8860#include <sgtty.h>
8861Autoconf TIOCGETP
8862EOF
8863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8864 egrep "$ac_pattern" >/dev/null 2>&1; then
8865 rm -rf conftest*
8866 ac_cv_prog_gcc_traditional=yes
8867else
8868 rm -rf conftest*
8869 ac_cv_prog_gcc_traditional=no
8870fi
8871rm -f conftest*
8872
8873
8874 if test $ac_cv_prog_gcc_traditional = no; then
8875 cat > conftest.$ac_ext <<EOF
8876#line 8877 "configure"
8877#include "confdefs.h"
8878#include <termio.h>
8879Autoconf TCGETA
8880EOF
8881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8882 egrep "$ac_pattern" >/dev/null 2>&1; then
8883 rm -rf conftest*
8884 ac_cv_prog_gcc_traditional=yes
8885fi
8886rm -f conftest*
8887
8888 fi
8889fi
8890
8891echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8892 if test $ac_cv_prog_gcc_traditional = yes; then
8893 CC="$CC -traditional"
8894 fi
8895fi
8896
8897
8898
8899ac_ext=C
8900# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8901ac_cpp='$CXXCPP $CPPFLAGS'
8902ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8903ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8904cross_compiling=$ac_cv_prog_cxx_cross
8905
8906
8907CXXFLAGS=${CXXFLAGS:=}
8908for ac_prog in $CCC c++ g++ gcc CC cxx cc++
8909do
8910# Extract the first word of "$ac_prog", so it can be a program name with args.
8911set dummy $ac_prog; ac_word=$2
8912echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8913echo "configure:8914: checking for $ac_word" >&5
8914if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8916else
8917 if test -n "$CXX"; then
8918 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8919else
8920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8921 for ac_dir in $PATH; do
8922 test -z "$ac_dir" && ac_dir=.
8923 if test -f $ac_dir/$ac_word; then
8924 ac_cv_prog_CXX="$ac_prog"
8925 break
8926 fi
8927 done
8928 IFS="$ac_save_ifs"
8929fi
8930fi
8931CXX="$ac_cv_prog_CXX"
8932if test -n "$CXX"; then
8933 echo "$ac_t""$CXX" 1>&6
8934else
8935 echo "$ac_t""no" 1>&6
8936fi
8937
8938test -n "$CXX" && break
8939done
8940test -n "$CXX" || CXX="gcc"
8941
8942
8943echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8944echo "configure:8945: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8945
8946ac_ext=C
8947# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8948ac_cpp='$CXXCPP $CPPFLAGS'
8949ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8950ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8951cross_compiling=$ac_cv_prog_cxx_cross
8952
8953cat > conftest.$ac_ext <<EOF
8954#line 8955 "configure"
8955#include "confdefs.h"
8956main(){return(0);}
8957EOF
8958if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8959 ac_cv_prog_cxx_works=yes
8960 # If we can't run a trivial program, we are probably using a cross compiler.
8961 if (./conftest; exit) 2>/dev/null; then
8962 ac_cv_prog_cxx_cross=no
8963 else
8964 ac_cv_prog_cxx_cross=yes
8965 fi
8966else
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 ac_cv_prog_cxx_works=no
8970fi
8971rm -fr conftest*
8972
8973echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8974if test $ac_cv_prog_cxx_works = no; then
8975 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8976fi
8977echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8978echo "configure:8979: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8979echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8980cross_compiling=$ac_cv_prog_cxx_cross
8981
8982echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8983echo "configure:8984: checking whether we are using GNU C++" >&5
8984if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8986else
8987 cat > conftest.C <<EOF
8988#ifdef __GNUC__
8989 yes;
8990#endif
8991EOF
8992if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8993 ac_cv_prog_gxx=yes
8994else
8995 ac_cv_prog_gxx=no
8996fi
8997fi
8998
8999echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9000
9001if test $ac_cv_prog_gxx = yes; then
9002 GXX=yes
9003 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9004 ac_save_CXXFLAGS="$CXXFLAGS"
9005 CXXFLAGS=
9006 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9007echo "configure:9008: checking whether ${CXX-g++} accepts -g" >&5
9008if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9010else
9011 echo 'void f(){}' > conftest.cc
9012if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9013 ac_cv_prog_cxx_g=yes
9014else
9015 ac_cv_prog_cxx_g=no
9016fi
9017rm -f conftest*
9018
9019fi
9020
9021echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9022 if test "$ac_test_CXXFLAGS" = set; then
9023 CXXFLAGS="$ac_save_CXXFLAGS"
9024 elif test $ac_cv_prog_cxx_g = yes; then
9025 CXXFLAGS="-g -O2"
9026 else
9027 CXXFLAGS="-O2"
9028 fi
9029else
9030 GXX=
9031 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
9032fi
9033
9034
9035ac_ext=c
9036# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9037ac_cpp='$CPP $CPPFLAGS'
9038ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9039ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9040cross_compiling=$ac_cv_prog_cc_cross
9041
9042
9043# Extract the first word of "ranlib", so it can be a program name with args.
9044set dummy ranlib; ac_word=$2
9045echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9046echo "configure:9047: checking for $ac_word" >&5
9047if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9049else
9050 if test -n "$RANLIB"; then
9051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9052else
9053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9054 for ac_dir in $PATH; do
9055 test -z "$ac_dir" && ac_dir=.
9056 if test -f $ac_dir/$ac_word; then
9057 ac_cv_prog_RANLIB="ranlib"
9058 break
9059 fi
9060 done
9061 IFS="$ac_save_ifs"
9062 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9063fi
9064fi
9065RANLIB="$ac_cv_prog_RANLIB"
9066if test -n "$RANLIB"; then
9067 echo "$ac_t""$RANLIB" 1>&6
9068else
9069 echo "$ac_t""no" 1>&6
9070fi
9071
9072
9073# Extract the first word of "ar", so it can be a program name with args.
9074set dummy ar; ac_word=$2
9075echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9076echo "configure:9077: checking for $ac_word" >&5
9077if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9078 echo $ac_n "(cached) $ac_c" 1>&6
9079else
9080 if test -n "$AR"; then
9081 ac_cv_prog_AR="$AR" # Let the user override the test.
9082else
9083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9084 for ac_dir in $PATH; do
9085 test -z "$ac_dir" && ac_dir=.
9086 if test -f $ac_dir/$ac_word; then
9087 ac_cv_prog_AR="ar"
9088 break
9089 fi
9090 done
9091 IFS="$ac_save_ifs"
9092 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9093fi
9094fi
9095AR="$ac_cv_prog_AR"
9096if test -n "$AR"; then
9097 echo "$ac_t""$AR" 1>&6
9098else
9099 echo "$ac_t""no" 1>&6
9100fi
9101
9102
9103# Find a good install program. We prefer a C program (faster),
9104# so one script is as good as another. But avoid the broken or
9105# incompatible versions:
9106# SysV /etc/install, /usr/sbin/install
9107# SunOS /usr/etc/install
9108# IRIX /sbin/install
9109# AIX /bin/install
9110# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9112# ./install, which can be erroneously created by make from ./install.sh.
9113echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9114echo "configure:9115: checking for a BSD compatible install" >&5
9115if test -z "$INSTALL"; then
9116if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9117 echo $ac_n "(cached) $ac_c" 1>&6
9118else
9119 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
9120 for ac_dir in $PATH; do
9121 # Account for people who put trailing slashes in PATH elements.
9122 case "$ac_dir/" in
9123 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9124 *)
9125 # OSF1 and SCO ODT 3.0 have their own names for install.
9126 for ac_prog in ginstall installbsd scoinst install; do
9127 if test -f $ac_dir/$ac_prog; then
9128 if test $ac_prog = install &&
9129 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9130 # AIX install. It has an incompatible calling convention.
9131 # OSF/1 installbsd also uses dspmsg, but is usable.
9132 :
9133 else
9134 ac_cv_path_install="$ac_dir/$ac_prog -c"
9135 break 2
9136 fi
9137 fi
9138 done
9139 ;;
9140 esac
9141 done
9142 IFS="$ac_save_IFS"
9143
9144fi
9145 if test "${ac_cv_path_install+set}" = set; then
9146 INSTALL="$ac_cv_path_install"
9147 else
9148 # As a last resort, use the slow shell script. We don't cache a
9149 # path for INSTALL within a source directory, because that will
9150 # break other packages using the cache if that directory is
9151 # removed, or if the path is relative.
9152 INSTALL="$ac_install_sh"
9153 fi
9154fi
9155echo "$ac_t""$INSTALL" 1>&6
9156
9157# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9158# It thinks the first close brace ends the variable substitution.
9159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9160
9161test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9162
9163
9164case ${INSTALL} in
9165 /* ) # Absolute
9166 ;;
9167 *)
9168 INSTALL=`pwd`/${INSTALL} ;;
9169esac
9170
9171
9172case "${host}" in
9173
9174 powerpc-*-darwin* )
9175 INSTALL_PROGRAM="cp -fp"
9176 INSTALL_DATA="cp -fp"
9177 ;;
9178 *)
9179 ;;
9180esac
9181
9182# Extract the first word of "strip", so it can be a program name with args.
9183set dummy strip; ac_word=$2
9184echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9185echo "configure:9186: checking for $ac_word" >&5
9186if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9187 echo $ac_n "(cached) $ac_c" 1>&6
9188else
9189 if test -n "$STRIP"; then
9190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9191else
9192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9193 for ac_dir in $PATH; do
9194 test -z "$ac_dir" && ac_dir=.
9195 if test -f $ac_dir/$ac_word; then
9196 ac_cv_prog_STRIP="strip"
9197 break
9198 fi
9199 done
9200 IFS="$ac_save_ifs"
9201 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9202fi
9203fi
9204STRIP="$ac_cv_prog_STRIP"
9205if test -n "$STRIP"; then
9206 echo "$ac_t""$STRIP" 1>&6
9207else
9208 echo "$ac_t""no" 1>&6
9209fi
9210
9211
9212echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9213echo "configure:9214: checking if make is GNU make" >&5
9214if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9215 echo $ac_n "(cached) $ac_c" 1>&6
9216else
9217
9218 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9219 egrep -s GNU > /dev/null); then
9220 wx_cv_prog_makeisgnu="yes"
9221 else
9222 wx_cv_prog_makeisgnu="no"
9223 fi
9224
9225fi
9226
9227echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9228
9229if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9230 IF_GNU_MAKE=""
9231else
9232 IF_GNU_MAKE="#"
9233fi
9234
9235
9236
9237if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9238echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9239echo "configure:9240: checking if make supports VPATH" >&5
9240if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9241 echo $ac_n "(cached) $ac_c" 1>&6
9242else
9243
9244cat - << EOF > confMake
9245check : file
9246 cp \$? \$@
9247 cp \$? final_file
9248EOF
9249
9250if test ! -d sub ; then
9251 mkdir sub
9252fi
9253echo dummy > sub/file
9254${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9255RESULT=$?
9256rm -f sub/file check final_file confMake
9257rmdir sub
9258if test "$RESULT" = 0; then
9259 wx_cv_prog_makevpath="yes"
9260else
9261 wx_cv_prog_makevpath="no"
9262fi
9263
9264fi
9265
9266echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9267
9268if test "x$wx_cv_prog_makevpath" != "xyes"; then
9269{ echo "configure: error:
9270You need a make-utility that is able to use the variable
9271VPATH correctly.
9272If your version of make does not support VPATH correctly,
9273please install GNU-make (possibly as gmake), and start
9274configure with the following command:
9275export MAKE=gmake; ./configure for sh-type shells
9276setenv MAKE gmake; ./configure for csh-type shells
9277Also please do remember to use gmake in this case every time
9278you are trying to compile.
9279" 1>&2; exit 1; }
9280fi fi
9281for ac_prog in 'bison -y' byacc
9282do
9283# Extract the first word of "$ac_prog", so it can be a program name with args.
9284set dummy $ac_prog; ac_word=$2
9285echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9286echo "configure:9287: checking for $ac_word" >&5
9287if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9288 echo $ac_n "(cached) $ac_c" 1>&6
9289else
9290 if test -n "$YACC"; then
9291 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9292else
9293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9294 for ac_dir in $PATH; do
9295 test -z "$ac_dir" && ac_dir=.
9296 if test -f $ac_dir/$ac_word; then
9297 ac_cv_prog_YACC="$ac_prog"
9298 break
9299 fi
9300 done
9301 IFS="$ac_save_ifs"
9302fi
9303fi
9304YACC="$ac_cv_prog_YACC"
9305if test -n "$YACC"; then
9306 echo "$ac_t""$YACC" 1>&6
9307else
9308 echo "$ac_t""no" 1>&6
9309fi
9310
9311test -n "$YACC" && break
9312done
9313test -n "$YACC" || YACC="yacc"
9314
9315
9316# Extract the first word of "flex", so it can be a program name with args.
9317set dummy flex; ac_word=$2
9318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9319echo "configure:9320: checking for $ac_word" >&5
9320if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322else
9323 if test -n "$LEX"; then
9324 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9325else
9326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9327 for ac_dir in $PATH; do
9328 test -z "$ac_dir" && ac_dir=.
9329 if test -f $ac_dir/$ac_word; then
9330 ac_cv_prog_LEX="flex"
9331 break
9332 fi
9333 done
9334 IFS="$ac_save_ifs"
9335 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9336fi
9337fi
9338LEX="$ac_cv_prog_LEX"
9339if test -n "$LEX"; then
9340 echo "$ac_t""$LEX" 1>&6
9341else
9342 echo "$ac_t""no" 1>&6
9343fi
9344
9345if test -z "$LEXLIB"
9346then
9347 case "$LEX" in
9348 flex*) ac_lib=fl ;;
9349 *) ac_lib=l ;;
9350 esac
9351 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9352echo "configure:9353: checking for yywrap in -l$ac_lib" >&5
9353ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
9356else
9357 ac_save_LIBS="$LIBS"
9358LIBS="-l$ac_lib $LIBS"
9359cat > conftest.$ac_ext <<EOF
9360#line 9361 "configure"
9361#include "confdefs.h"
9362/* Override any gcc2 internal prototype to avoid an error. */
9363/* We use char because int might match the return type of a gcc2
9364 builtin and then its argument prototype would still apply. */
9365char yywrap();
9366
9367int main() {
9368yywrap()
9369; return 0; }
9370EOF
9371if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9372 rm -rf conftest*
9373 eval "ac_cv_lib_$ac_lib_var=yes"
9374else
9375 echo "configure: failed program was:" >&5
9376 cat conftest.$ac_ext >&5
9377 rm -rf conftest*
9378 eval "ac_cv_lib_$ac_lib_var=no"
9379fi
9380rm -f conftest*
9381LIBS="$ac_save_LIBS"
9382
9383fi
9384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9385 echo "$ac_t""yes" 1>&6
9386 LEXLIB="-l$ac_lib"
9387else
9388 echo "$ac_t""no" 1>&6
9389fi
9390
9391fi
9392
9393
9394echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9395echo "configure:9396: checking whether ln -s works" >&5
9396if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9398else
9399 rm -f conftestdata
9400if ln -s X conftestdata 2>/dev/null
9401then
9402 rm -f conftestdata
9403 ac_cv_prog_LN_S="ln -s"
9404else
9405 ac_cv_prog_LN_S=ln
9406fi
9407fi
9408LN_S="$ac_cv_prog_LN_S"
9409if test "$ac_cv_prog_LN_S" = "ln -s"; then
9410 echo "$ac_t""yes" 1>&6
9411else
9412 echo "$ac_t""no" 1>&6
9413fi
9414
9415
9416
9417if test "$wxUSE_MAC" != 1; then
9418 for ac_hdr in strings.h
9419do
9420ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9421echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9422echo "configure:9423: checking for $ac_hdr" >&5
9423if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9425else
9426 cat > conftest.$ac_ext <<EOF
9427#line 9428 "configure"
9428#include "confdefs.h"
9429#include <$ac_hdr>
9430EOF
9431ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9432{ (eval echo configure:9433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9433ac_err=`grep -v '^ *+' conftest.out`
9434if test -z "$ac_err"; then
9435 rm -rf conftest*
9436 eval "ac_cv_header_$ac_safe=yes"
9437else
9438 echo "$ac_err" >&5
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9441 rm -rf conftest*
9442 eval "ac_cv_header_$ac_safe=no"
9443fi
9444rm -f conftest*
9445fi
9446if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9447 echo "$ac_t""yes" 1>&6
9448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9449 cat >> confdefs.h <<EOF
9450#define $ac_tr_hdr 1
9451EOF
9452
9453else
9454 echo "$ac_t""no" 1>&6
9455fi
9456done
9457
9458fi
9459
9460for ac_hdr in stdlib.h
9461do
9462ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9463echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9464echo "configure:9465: checking for $ac_hdr" >&5
9465if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9466 echo $ac_n "(cached) $ac_c" 1>&6
9467else
9468 cat > conftest.$ac_ext <<EOF
9469#line 9470 "configure"
9470#include "confdefs.h"
9471#include <$ac_hdr>
9472EOF
9473ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9474{ (eval echo configure:9475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9475ac_err=`grep -v '^ *+' conftest.out`
9476if test -z "$ac_err"; then
9477 rm -rf conftest*
9478 eval "ac_cv_header_$ac_safe=yes"
9479else
9480 echo "$ac_err" >&5
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9483 rm -rf conftest*
9484 eval "ac_cv_header_$ac_safe=no"
9485fi
9486rm -f conftest*
9487fi
9488if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9489 echo "$ac_t""yes" 1>&6
9490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9491 cat >> confdefs.h <<EOF
9492#define $ac_tr_hdr 1
9493EOF
9494
9495else
9496 echo "$ac_t""no" 1>&6
9497fi
9498done
9499
9500for ac_hdr in malloc.h
9501do
9502ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9503echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9504echo "configure:9505: checking for $ac_hdr" >&5
9505if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9507else
9508 cat > conftest.$ac_ext <<EOF
9509#line 9510 "configure"
9510#include "confdefs.h"
9511#include <$ac_hdr>
9512EOF
9513ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9514{ (eval echo configure:9515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9515ac_err=`grep -v '^ *+' conftest.out`
9516if test -z "$ac_err"; then
9517 rm -rf conftest*
9518 eval "ac_cv_header_$ac_safe=yes"
9519else
9520 echo "$ac_err" >&5
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9523 rm -rf conftest*
9524 eval "ac_cv_header_$ac_safe=no"
9525fi
9526rm -f conftest*
9527fi
9528if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9529 echo "$ac_t""yes" 1>&6
9530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9531 cat >> confdefs.h <<EOF
9532#define $ac_tr_hdr 1
9533EOF
9534
9535else
9536 echo "$ac_t""no" 1>&6
9537fi
9538done
9539
9540for ac_hdr in unistd.h
9541do
9542ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9543echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9544echo "configure:9545: checking for $ac_hdr" >&5
9545if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9547else
9548 cat > conftest.$ac_ext <<EOF
9549#line 9550 "configure"
9550#include "confdefs.h"
9551#include <$ac_hdr>
9552EOF
9553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9554{ (eval echo configure:9555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9555ac_err=`grep -v '^ *+' conftest.out`
9556if test -z "$ac_err"; then
9557 rm -rf conftest*
9558 eval "ac_cv_header_$ac_safe=yes"
9559else
9560 echo "$ac_err" >&5
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 rm -rf conftest*
9564 eval "ac_cv_header_$ac_safe=no"
9565fi
9566rm -f conftest*
9567fi
9568if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9569 echo "$ac_t""yes" 1>&6
9570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9571 cat >> confdefs.h <<EOF
9572#define $ac_tr_hdr 1
9573EOF
9574
9575else
9576 echo "$ac_t""no" 1>&6
9577fi
9578done
9579
9580for ac_hdr in wchar.h
9581do
9582ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9583echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9584echo "configure:9585: checking for $ac_hdr" >&5
9585if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587else
9588 cat > conftest.$ac_ext <<EOF
9589#line 9590 "configure"
9590#include "confdefs.h"
9591#include <$ac_hdr>
9592EOF
9593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9594{ (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9595ac_err=`grep -v '^ *+' conftest.out`
9596if test -z "$ac_err"; then
9597 rm -rf conftest*
9598 eval "ac_cv_header_$ac_safe=yes"
9599else
9600 echo "$ac_err" >&5
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9603 rm -rf conftest*
9604 eval "ac_cv_header_$ac_safe=no"
9605fi
9606rm -f conftest*
9607fi
9608if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9611 cat >> confdefs.h <<EOF
9612#define $ac_tr_hdr 1
9613EOF
9614
9615else
9616 echo "$ac_t""no" 1>&6
9617fi
9618done
9619
9620
9621if test "$ac_cv_header_wchar_h" != "yes"; then
9622 for ac_hdr in wcstr.h
9623do
9624ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9625echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9626echo "configure:9627: checking for $ac_hdr" >&5
9627if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9628 echo $ac_n "(cached) $ac_c" 1>&6
9629else
9630 cat > conftest.$ac_ext <<EOF
9631#line 9632 "configure"
9632#include "confdefs.h"
9633#include <$ac_hdr>
9634EOF
9635ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9636{ (eval echo configure:9637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9637ac_err=`grep -v '^ *+' conftest.out`
9638if test -z "$ac_err"; then
9639 rm -rf conftest*
9640 eval "ac_cv_header_$ac_safe=yes"
9641else
9642 echo "$ac_err" >&5
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 rm -rf conftest*
9646 eval "ac_cv_header_$ac_safe=no"
9647fi
9648rm -f conftest*
9649fi
9650if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9651 echo "$ac_t""yes" 1>&6
9652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9653 cat >> confdefs.h <<EOF
9654#define $ac_tr_hdr 1
9655EOF
9656
9657else
9658 echo "$ac_t""no" 1>&6
9659fi
9660done
9661
9662fi
9663
9664
9665for ac_hdr in fnmatch.h
9666do
9667ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9668echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9669echo "configure:9670: checking for $ac_hdr" >&5
9670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9672else
9673 cat > conftest.$ac_ext <<EOF
9674#line 9675 "configure"
9675#include "confdefs.h"
9676#include <$ac_hdr>
9677EOF
9678ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9679{ (eval echo configure:9680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9680ac_err=`grep -v '^ *+' conftest.out`
9681if test -z "$ac_err"; then
9682 rm -rf conftest*
9683 eval "ac_cv_header_$ac_safe=yes"
9684else
9685 echo "$ac_err" >&5
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 rm -rf conftest*
9689 eval "ac_cv_header_$ac_safe=no"
9690fi
9691rm -f conftest*
9692fi
9693if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9694 echo "$ac_t""yes" 1>&6
9695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9696 cat >> confdefs.h <<EOF
9697#define $ac_tr_hdr 1
9698EOF
9699
9700else
9701 echo "$ac_t""no" 1>&6
9702fi
9703done
9704
9705
9706if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9707 for ac_func in fnmatch
9708do
9709echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9710echo "configure:9711: checking for $ac_func" >&5
9711if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9712 echo $ac_n "(cached) $ac_c" 1>&6
9713else
9714 cat > conftest.$ac_ext <<EOF
9715#line 9716 "configure"
9716#include "confdefs.h"
9717/* System header to define __stub macros and hopefully few prototypes,
9718 which can conflict with char $ac_func(); below. */
9719#include <assert.h>
9720/* Override any gcc2 internal prototype to avoid an error. */
9721/* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723char $ac_func();
9724
9725int main() {
9726
9727/* The GNU C library defines this for functions which it implements
9728 to always fail with ENOSYS. Some functions are actually named
9729 something starting with __ and the normal name is an alias. */
9730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9731choke me
9732#else
9733$ac_func();
9734#endif
9735
9736; return 0; }
9737EOF
9738if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9739 rm -rf conftest*
9740 eval "ac_cv_func_$ac_func=yes"
9741else
9742 echo "configure: failed program was:" >&5
9743 cat conftest.$ac_ext >&5
9744 rm -rf conftest*
9745 eval "ac_cv_func_$ac_func=no"
9746fi
9747rm -f conftest*
9748fi
9749
9750if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9753 cat >> confdefs.h <<EOF
9754#define $ac_tr_func 1
9755EOF
9756
9757else
9758 echo "$ac_t""no" 1>&6
9759fi
9760done
9761
9762fi
9763
9764for ac_hdr in langinfo.h
9765do
9766ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9767echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9768echo "configure:9769: checking for $ac_hdr" >&5
9769if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771else
9772 cat > conftest.$ac_ext <<EOF
9773#line 9774 "configure"
9774#include "confdefs.h"
9775#include <$ac_hdr>
9776EOF
9777ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9778{ (eval echo configure:9779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9779ac_err=`grep -v '^ *+' conftest.out`
9780if test -z "$ac_err"; then
9781 rm -rf conftest*
9782 eval "ac_cv_header_$ac_safe=yes"
9783else
9784 echo "$ac_err" >&5
9785 echo "configure: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9787 rm -rf conftest*
9788 eval "ac_cv_header_$ac_safe=no"
9789fi
9790rm -f conftest*
9791fi
9792if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9793 echo "$ac_t""yes" 1>&6
9794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9795 cat >> confdefs.h <<EOF
9796#define $ac_tr_hdr 1
9797EOF
9798
9799else
9800 echo "$ac_t""no" 1>&6
9801fi
9802done
9803
9804
9805if test "$wxUSE_GUI" = "yes"; then
9806 if test "$wxUSE_UNIX" = "yes"; then
9807 for ac_hdr in X11/XKBlib.h
9808do
9809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9811echo "configure:9812: checking for $ac_hdr" >&5
9812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9813 echo $ac_n "(cached) $ac_c" 1>&6
9814else
9815 cat > conftest.$ac_ext <<EOF
9816#line 9817 "configure"
9817#include "confdefs.h"
9818#include <$ac_hdr>
9819EOF
9820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9821{ (eval echo configure:9822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9822ac_err=`grep -v '^ *+' conftest.out`
9823if test -z "$ac_err"; then
9824 rm -rf conftest*
9825 eval "ac_cv_header_$ac_safe=yes"
9826else
9827 echo "$ac_err" >&5
9828 echo "configure: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9830 rm -rf conftest*
9831 eval "ac_cv_header_$ac_safe=no"
9832fi
9833rm -f conftest*
9834fi
9835if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9836 echo "$ac_t""yes" 1>&6
9837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9838 cat >> confdefs.h <<EOF
9839#define $ac_tr_hdr 1
9840EOF
9841
9842else
9843 echo "$ac_t""no" 1>&6
9844fi
9845done
9846
9847 fi
9848fi
9849
9850
9851echo $ac_n "checking for working const""... $ac_c" 1>&6
9852echo "configure:9853: checking for working const" >&5
9853if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9854 echo $ac_n "(cached) $ac_c" 1>&6
9855else
9856 cat > conftest.$ac_ext <<EOF
9857#line 9858 "configure"
9858#include "confdefs.h"
9859
9860int main() {
9861
9862/* Ultrix mips cc rejects this. */
9863typedef int charset[2]; const charset x;
9864/* SunOS 4.1.1 cc rejects this. */
9865char const *const *ccp;
9866char **p;
9867/* NEC SVR4.0.2 mips cc rejects this. */
9868struct point {int x, y;};
9869static struct point const zero = {0,0};
9870/* AIX XL C 1.02.0.0 rejects this.
9871 It does not let you subtract one const X* pointer from another in an arm
9872 of an if-expression whose if-part is not a constant expression */
9873const char *g = "string";
9874ccp = &g + (g ? g-g : 0);
9875/* HPUX 7.0 cc rejects these. */
9876++ccp;
9877p = (char**) ccp;
9878ccp = (char const *const *) p;
9879{ /* SCO 3.2v4 cc rejects this. */
9880 char *t;
9881 char const *s = 0 ? (char *) 0 : (char const *) 0;
9882
9883 *t++ = 0;
9884}
9885{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9886 int x[] = {25, 17};
9887 const int *foo = &x[0];
9888 ++foo;
9889}
9890{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9891 typedef const int *iptr;
9892 iptr p = 0;
9893 ++p;
9894}
9895{ /* AIX XL C 1.02.0.0 rejects this saying
9896 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9897 struct s { int j; const int *ap[3]; };
9898 struct s *b; b->j = 5;
9899}
9900{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9901 const int foo = 10;
9902}
9903
9904; return 0; }
9905EOF
9906if { (eval echo configure:9907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9907 rm -rf conftest*
9908 ac_cv_c_const=yes
9909else
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9912 rm -rf conftest*
9913 ac_cv_c_const=no
9914fi
9915rm -f conftest*
9916fi
9917
9918echo "$ac_t""$ac_cv_c_const" 1>&6
9919if test $ac_cv_c_const = no; then
9920 cat >> confdefs.h <<\EOF
9921#define const
9922EOF
9923
9924fi
9925
9926echo $ac_n "checking for inline""... $ac_c" 1>&6
9927echo "configure:9928: checking for inline" >&5
9928if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9930else
9931 ac_cv_c_inline=no
9932for ac_kw in inline __inline__ __inline; do
9933 cat > conftest.$ac_ext <<EOF
9934#line 9935 "configure"
9935#include "confdefs.h"
9936
9937int main() {
9938} $ac_kw foo() {
9939; return 0; }
9940EOF
9941if { (eval echo configure:9942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9942 rm -rf conftest*
9943 ac_cv_c_inline=$ac_kw; break
9944else
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947fi
9948rm -f conftest*
9949done
9950
9951fi
9952
9953echo "$ac_t""$ac_cv_c_inline" 1>&6
9954case "$ac_cv_c_inline" in
9955 inline | yes) ;;
9956 no) cat >> confdefs.h <<\EOF
9957#define inline
9958EOF
9959 ;;
9960 *) cat >> confdefs.h <<EOF
9961#define inline $ac_cv_c_inline
9962EOF
9963 ;;
9964esac
9965
9966
9967echo $ac_n "checking size of char""... $ac_c" 1>&6
9968echo "configure:9969: checking size of char" >&5
9969if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971else
9972 if test "$cross_compiling" = yes; then
9973 ac_cv_sizeof_char=1
9974else
9975 cat > conftest.$ac_ext <<EOF
9976#line 9977 "configure"
9977#include "confdefs.h"
9978#include <stdio.h>
9979main()
9980{
9981 FILE *f=fopen("conftestval", "w");
9982 if (!f) exit(1);
9983 fprintf(f, "%d\n", sizeof(char));
9984 exit(0);
9985}
9986EOF
9987if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9988then
9989 ac_cv_sizeof_char=`cat conftestval`
9990else
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9993 rm -fr conftest*
9994 ac_cv_sizeof_char=0
9995fi
9996rm -fr conftest*
9997fi
9998
9999fi
10000echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10001cat >> confdefs.h <<EOF
10002#define SIZEOF_CHAR $ac_cv_sizeof_char
10003EOF
10004
10005
10006echo $ac_n "checking size of short""... $ac_c" 1>&6
10007echo "configure:10008: checking size of short" >&5
10008if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10010else
10011 if test "$cross_compiling" = yes; then
10012 ac_cv_sizeof_short=2
10013else
10014 cat > conftest.$ac_ext <<EOF
10015#line 10016 "configure"
10016#include "confdefs.h"
10017#include <stdio.h>
10018main()
10019{
10020 FILE *f=fopen("conftestval", "w");
10021 if (!f) exit(1);
10022 fprintf(f, "%d\n", sizeof(short));
10023 exit(0);
10024}
10025EOF
10026if { (eval echo configure:10027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10027then
10028 ac_cv_sizeof_short=`cat conftestval`
10029else
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10032 rm -fr conftest*
10033 ac_cv_sizeof_short=0
10034fi
10035rm -fr conftest*
10036fi
10037
10038fi
10039echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10040cat >> confdefs.h <<EOF
10041#define SIZEOF_SHORT $ac_cv_sizeof_short
10042EOF
10043
10044
10045echo $ac_n "checking size of void *""... $ac_c" 1>&6
10046echo "configure:10047: checking size of void *" >&5
10047if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10048 echo $ac_n "(cached) $ac_c" 1>&6
10049else
10050 if test "$cross_compiling" = yes; then
10051 ac_cv_sizeof_void_p=4
10052else
10053 cat > conftest.$ac_ext <<EOF
10054#line 10055 "configure"
10055#include "confdefs.h"
10056#include <stdio.h>
10057main()
10058{
10059 FILE *f=fopen("conftestval", "w");
10060 if (!f) exit(1);
10061 fprintf(f, "%d\n", sizeof(void *));
10062 exit(0);
10063}
10064EOF
10065if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10066then
10067 ac_cv_sizeof_void_p=`cat conftestval`
10068else
10069 echo "configure: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10071 rm -fr conftest*
10072 ac_cv_sizeof_void_p=0
10073fi
10074rm -fr conftest*
10075fi
10076
10077fi
10078echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10079cat >> confdefs.h <<EOF
10080#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10081EOF
10082
10083
10084echo $ac_n "checking size of int""... $ac_c" 1>&6
10085echo "configure:10086: checking size of int" >&5
10086if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10087 echo $ac_n "(cached) $ac_c" 1>&6
10088else
10089 if test "$cross_compiling" = yes; then
10090 ac_cv_sizeof_int=4
10091else
10092 cat > conftest.$ac_ext <<EOF
10093#line 10094 "configure"
10094#include "confdefs.h"
10095#include <stdio.h>
10096main()
10097{
10098 FILE *f=fopen("conftestval", "w");
10099 if (!f) exit(1);
10100 fprintf(f, "%d\n", sizeof(int));
10101 exit(0);
10102}
10103EOF
10104if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10105then
10106 ac_cv_sizeof_int=`cat conftestval`
10107else
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10110 rm -fr conftest*
10111 ac_cv_sizeof_int=0
10112fi
10113rm -fr conftest*
10114fi
10115
10116fi
10117echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10118cat >> confdefs.h <<EOF
10119#define SIZEOF_INT $ac_cv_sizeof_int
10120EOF
10121
10122
10123echo $ac_n "checking size of long""... $ac_c" 1>&6
10124echo "configure:10125: checking size of long" >&5
10125if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127else
10128 if test "$cross_compiling" = yes; then
10129 ac_cv_sizeof_long=4
10130else
10131 cat > conftest.$ac_ext <<EOF
10132#line 10133 "configure"
10133#include "confdefs.h"
10134#include <stdio.h>
10135main()
10136{
10137 FILE *f=fopen("conftestval", "w");
10138 if (!f) exit(1);
10139 fprintf(f, "%d\n", sizeof(long));
10140 exit(0);
10141}
10142EOF
10143if { (eval echo configure:10144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10144then
10145 ac_cv_sizeof_long=`cat conftestval`
10146else
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149 rm -fr conftest*
10150 ac_cv_sizeof_long=0
10151fi
10152rm -fr conftest*
10153fi
10154
10155fi
10156echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10157cat >> confdefs.h <<EOF
10158#define SIZEOF_LONG $ac_cv_sizeof_long
10159EOF
10160
10161
10162
10163case "${host}" in
10164 arm-*-linux* )
10165 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10166echo "configure:10167: checking size of long long" >&5
10167if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10169else
10170 if test "$cross_compiling" = yes; then
10171 ac_cv_sizeof_long_long=8
10172else
10173 cat > conftest.$ac_ext <<EOF
10174#line 10175 "configure"
10175#include "confdefs.h"
10176#include <stdio.h>
10177main()
10178{
10179 FILE *f=fopen("conftestval", "w");
10180 if (!f) exit(1);
10181 fprintf(f, "%d\n", sizeof(long long));
10182 exit(0);
10183}
10184EOF
10185if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10186then
10187 ac_cv_sizeof_long_long=`cat conftestval`
10188else
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 rm -fr conftest*
10192 ac_cv_sizeof_long_long=0
10193fi
10194rm -fr conftest*
10195fi
10196
10197fi
10198echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10199cat >> confdefs.h <<EOF
10200#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10201EOF
10202
10203
10204 ;;
10205 * )
10206 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10207echo "configure:10208: checking size of long long" >&5
10208if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10210else
10211 if test "$cross_compiling" = yes; then
10212 ac_cv_sizeof_long_long=0
10213else
10214 cat > conftest.$ac_ext <<EOF
10215#line 10216 "configure"
10216#include "confdefs.h"
10217#include <stdio.h>
10218main()
10219{
10220 FILE *f=fopen("conftestval", "w");
10221 if (!f) exit(1);
10222 fprintf(f, "%d\n", sizeof(long long));
10223 exit(0);
10224}
10225EOF
10226if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10227then
10228 ac_cv_sizeof_long_long=`cat conftestval`
10229else
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 rm -fr conftest*
10233 ac_cv_sizeof_long_long=0
10234fi
10235rm -fr conftest*
10236fi
10237
10238fi
10239echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10240cat >> confdefs.h <<EOF
10241#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10242EOF
10243
10244
10245esac
10246
10247echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10248echo "configure:10249: checking size of wchar_t" >&5
10249if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251else
10252
10253 if test "$cross_compiling" = yes; then
10254 wx_cv_sizeof_wchar_t=4
10255
10256else
10257 cat > conftest.$ac_ext <<EOF
10258#line 10259 "configure"
10259#include "confdefs.h"
10260
10261 #ifdef HAVE_WCHAR_H
10262 # ifdef __CYGWIN__
10263 # include <stddef.h>
10264 # endif
10265 # include <wchar.h>
10266 #endif
10267 #ifdef HAVE_STDLIB_H
10268 # include <stdlib.h>
10269 #endif
10270 #include <stdio.h>
10271 int main()
10272 {
10273 FILE *f=fopen("conftestval", "w");
10274 if (!f) exit(1);
10275 fprintf(f, "%i", sizeof(wchar_t));
10276 exit(0);
10277 }
10278
10279EOF
10280if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10281then
10282 wx_cv_sizeof_wchar_t=`cat conftestval`
10283else
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 rm -fr conftest*
10287 wx_cv_sizeof_wchar_t=0
10288fi
10289rm -fr conftest*
10290fi
10291
10292
10293fi
10294
10295echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10296
10297cat >> confdefs.h <<EOF
10298#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10299EOF
10300
10301
10302# Check whether --enable-largefile or --disable-largefile was given.
10303if test "${enable_largefile+set}" = set; then
10304 enableval="$enable_largefile"
10305 :
10306fi
10307
10308if test "$enable_largefile" != no; then
10309 wx_largefile=no
10310
10311 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10312echo "configure:10313: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10313if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10314 echo $ac_n "(cached) $ac_c" 1>&6
10315else
10316
10317 cat > conftest.$ac_ext <<EOF
10318#line 10319 "configure"
10319#include "confdefs.h"
10320#define _FILE_OFFSET_BITS 64
10321 #include <sys/types.h>
10322int main() {
10323typedef struct {
10324 unsigned int field: sizeof(off_t) == 8;
10325} wxlf;
10326
10327; return 0; }
10328EOF
10329if { (eval echo configure:10330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10330 rm -rf conftest*
10331 ac_cv_sys_file_offset_bits=64
10332else
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -rf conftest*
10336 ac_cv_sys_file_offset_bits=no
10337fi
10338rm -f conftest*
10339
10340
10341fi
10342
10343echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10344
10345 if test "$ac_cv_sys_file_offset_bits" != no; then
10346 wx_largefile=yes
10347 cat >> confdefs.h <<EOF
10348#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10349EOF
10350
10351 fi
10352
10353 if test "x$wx_largefile" != "xyes"; then
10354
10355 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10356echo "configure:10357: checking for _LARGE_FILES value needed for large files" >&5
10357if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10359else
10360
10361 cat > conftest.$ac_ext <<EOF
10362#line 10363 "configure"
10363#include "confdefs.h"
10364#define _LARGE_FILES 1
10365 #include <sys/types.h>
10366int main() {
10367typedef struct {
10368 unsigned int field: sizeof(off_t) == 8;
10369} wxlf;
10370
10371; return 0; }
10372EOF
10373if { (eval echo configure:10374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10374 rm -rf conftest*
10375 ac_cv_sys_large_files=1
10376else
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 rm -rf conftest*
10380 ac_cv_sys_large_files=no
10381fi
10382rm -f conftest*
10383
10384
10385fi
10386
10387echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10388
10389 if test "$ac_cv_sys_large_files" != no; then
10390 wx_largefile=yes
10391 cat >> confdefs.h <<EOF
10392#define _LARGE_FILES $ac_cv_sys_large_files
10393EOF
10394
10395 fi
10396
10397 fi
10398
10399 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10400echo "configure:10401: checking if large file support is available" >&5
10401 if test "x$wx_largefile" = "xyes"; then
10402 cat >> confdefs.h <<\EOF
10403#define HAVE_LARGEFILE_SUPPORT 1
10404EOF
10405
10406 fi
10407 echo "$ac_t""$wx_largefile" 1>&6
10408fi
10409
10410
10411echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10412echo "configure:10413: checking whether byte ordering is bigendian" >&5
10413if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
10415else
10416 ac_cv_c_bigendian=unknown
10417# See if sys/param.h defines the BYTE_ORDER macro.
10418cat > conftest.$ac_ext <<EOF
10419#line 10420 "configure"
10420#include "confdefs.h"
10421#include <sys/types.h>
10422#include <sys/param.h>
10423int main() {
10424
10425#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10426 bogus endian macros
10427#endif
10428; return 0; }
10429EOF
10430if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10431 rm -rf conftest*
10432 # It does; now see whether it defined to BIG_ENDIAN or not.
10433cat > conftest.$ac_ext <<EOF
10434#line 10435 "configure"
10435#include "confdefs.h"
10436#include <sys/types.h>
10437#include <sys/param.h>
10438int main() {
10439
10440#if BYTE_ORDER != BIG_ENDIAN
10441 not big endian
10442#endif
10443; return 0; }
10444EOF
10445if { (eval echo configure:10446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10446 rm -rf conftest*
10447 ac_cv_c_bigendian=yes
10448else
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10451 rm -rf conftest*
10452 ac_cv_c_bigendian=no
10453fi
10454rm -f conftest*
10455else
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10458fi
10459rm -f conftest*
10460if test $ac_cv_c_bigendian = unknown; then
10461if test "$cross_compiling" = yes; then
10462 ac_cv_c_bigendian=unknown
10463else
10464 cat > conftest.$ac_ext <<EOF
10465#line 10466 "configure"
10466#include "confdefs.h"
10467main () {
10468 /* Are we little or big endian? From Harbison&Steele. */
10469 union
10470 {
10471 long l;
10472 char c[sizeof (long)];
10473 } u;
10474 u.l = 1;
10475 exit (u.c[sizeof (long) - 1] == 1);
10476}
10477EOF
10478if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
10479then
10480 ac_cv_c_bigendian=no
10481else
10482 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 rm -fr conftest*
10485 ac_cv_c_bigendian=yes
10486fi
10487rm -fr conftest*
10488fi
10489
10490fi
10491fi
10492
10493echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10494if test $ac_cv_c_bigendian = unknown; then
10495 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
10496fi
10497if test $ac_cv_c_bigendian = yes; then
10498 cat >> confdefs.h <<\EOF
10499#define WORDS_BIGENDIAN 1
10500EOF
10501
10502fi
10503
10504
10505echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10506echo "configure:10507: checking how to run the C++ preprocessor" >&5
10507if test -z "$CXXCPP"; then
10508if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10509 echo $ac_n "(cached) $ac_c" 1>&6
10510else
10511 ac_ext=C
10512# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10513ac_cpp='$CXXCPP $CPPFLAGS'
10514ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10515ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10516cross_compiling=$ac_cv_prog_cxx_cross
10517 CXXCPP="${CXX-g++} -E"
10518 cat > conftest.$ac_ext <<EOF
10519#line 10520 "configure"
10520#include "confdefs.h"
10521#include <stdlib.h>
10522EOF
10523ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10524{ (eval echo configure:10525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10525ac_err=`grep -v '^ *+' conftest.out`
10526if test -z "$ac_err"; then
10527 :
10528else
10529 echo "$ac_err" >&5
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 rm -rf conftest*
10533 CXXCPP=/lib/cpp
10534fi
10535rm -f conftest*
10536 ac_cv_prog_CXXCPP="$CXXCPP"
10537fi
10538fi
10539CXXCPP="$ac_cv_prog_CXXCPP"
10540echo "$ac_t""$CXXCPP" 1>&6
10541
10542
10543 if test "$cross_compiling" = "yes"; then
10544 cat >> confdefs.h <<\EOF
10545#define wxUSE_IOSTREAMH 1
10546EOF
10547
10548 else
10549
10550 ac_ext=C
10551# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10552ac_cpp='$CXXCPP $CPPFLAGS'
10553ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10554ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10555cross_compiling=$ac_cv_prog_cxx_cross
10556
10557
10558 for ac_hdr in iostream
10559do
10560ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10561echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10562echo "configure:10563: checking for $ac_hdr" >&5
10563if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10564 echo $ac_n "(cached) $ac_c" 1>&6
10565else
10566 cat > conftest.$ac_ext <<EOF
10567#line 10568 "configure"
10568#include "confdefs.h"
10569#include <$ac_hdr>
10570EOF
10571ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10572{ (eval echo configure:10573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10573ac_err=`grep -v '^ *+' conftest.out`
10574if test -z "$ac_err"; then
10575 rm -rf conftest*
10576 eval "ac_cv_header_$ac_safe=yes"
10577else
10578 echo "$ac_err" >&5
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10581 rm -rf conftest*
10582 eval "ac_cv_header_$ac_safe=no"
10583fi
10584rm -f conftest*
10585fi
10586if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10587 echo "$ac_t""yes" 1>&6
10588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10589 cat >> confdefs.h <<EOF
10590#define $ac_tr_hdr 1
10591EOF
10592
10593else
10594 echo "$ac_t""no" 1>&6
10595fi
10596done
10597
10598
10599 if test "$ac_cv_header_iostream" = "yes" ; then
10600 :
10601 else
10602 cat >> confdefs.h <<\EOF
10603#define wxUSE_IOSTREAMH 1
10604EOF
10605
10606 fi
10607
10608 ac_ext=c
10609# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10610ac_cpp='$CPP $CPPFLAGS'
10611ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10612ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10613cross_compiling=$ac_cv_prog_cc_cross
10614
10615 fi
10616
10617
10618
10619 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10620echo "configure:10621: checking if C++ compiler supports bool" >&5
10621if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10623else
10624
10625
10626 ac_ext=C
10627# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10628ac_cpp='$CXXCPP $CPPFLAGS'
10629ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10630ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10631cross_compiling=$ac_cv_prog_cxx_cross
10632
10633
10634 cat > conftest.$ac_ext <<EOF
10635#line 10636 "configure"
10636#include "confdefs.h"
10637
10638
10639int main() {
10640
10641 bool b = true;
10642
10643 return 0;
10644
10645; return 0; }
10646EOF
10647if { (eval echo configure:10648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10648 rm -rf conftest*
10649
10650 wx_cv_cpp_bool=yes
10651
10652else
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 rm -rf conftest*
10656
10657 wx_cv_cpp_bool=no
10658
10659
10660fi
10661rm -f conftest*
10662
10663 ac_ext=c
10664# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10665ac_cpp='$CPP $CPPFLAGS'
10666ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10667ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10668cross_compiling=$ac_cv_prog_cc_cross
10669
10670
10671fi
10672
10673echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10674
10675 if test "$wx_cv_cpp_bool" = "yes"; then
10676 cat >> confdefs.h <<\EOF
10677#define HAVE_BOOL 1
10678EOF
10679
10680 fi
10681
10682
10683
10684 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10685echo "configure:10686: checking if C++ compiler supports the explicit keyword" >&5
10686if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10688else
10689
10690
10691 ac_ext=C
10692# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10693ac_cpp='$CXXCPP $CPPFLAGS'
10694ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10695ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10696cross_compiling=$ac_cv_prog_cxx_cross
10697
10698
10699 cat > conftest.$ac_ext <<EOF
10700#line 10701 "configure"
10701#include "confdefs.h"
10702
10703 class Foo { public: explicit Foo(int) {} };
10704
10705int main() {
10706
10707 return 0;
10708
10709; return 0; }
10710EOF
10711if { (eval echo configure:10712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10712 rm -rf conftest*
10713
10714 cat > conftest.$ac_ext <<EOF
10715#line 10716 "configure"
10716#include "confdefs.h"
10717
10718 class Foo { public: explicit Foo(int) {} };
10719 static void TakeFoo(const Foo& foo) { }
10720
10721int main() {
10722
10723 TakeFoo(17);
10724 return 0;
10725
10726; return 0; }
10727EOF
10728if { (eval echo configure:10729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10729 rm -rf conftest*
10730 wx_cv_explicit=no
10731else
10732 echo "configure: failed program was:" >&5
10733 cat conftest.$ac_ext >&5
10734 rm -rf conftest*
10735 wx_cv_explicit=yes
10736
10737fi
10738rm -f conftest*
10739
10740else
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 rm -rf conftest*
10744 wx_cv_explicit=no
10745
10746fi
10747rm -f conftest*
10748
10749 ac_ext=c
10750# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10751ac_cpp='$CPP $CPPFLAGS'
10752ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10753ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10754cross_compiling=$ac_cv_prog_cc_cross
10755
10756
10757fi
10758
10759echo "$ac_t""$wx_cv_explicit" 1>&6
10760
10761 if test "$wx_cv_explicit" = "yes"; then
10762 cat >> confdefs.h <<\EOF
10763#define HAVE_EXPLICIT 1
10764EOF
10765
10766 fi
10767
10768
10769
10770SEARCH_INCLUDE="\
10771 /usr/local/include \
10772 \
10773 /usr/Motif-1.2/include \
10774 /usr/Motif-2.1/include \
10775 \
10776 /usr/include/Motif1.2 \
10777 /opt/xpm/include/X11 \
10778 /opt/GBxpm/include/ \
10779 /opt/GBxpm/X11/include/ \
10780 \
10781 /usr/Motif1.2/include \
10782 /usr/dt/include \
10783 /usr/openwin/include \
10784 \
10785 /usr/include/Xm \
10786 \
10787 /usr/X11R6/include \
10788 /usr/X11R6.4/include \
10789 /usr/X11R5/include \
10790 /usr/X11R4/include \
10791 \
10792 /usr/include/X11R6 \
10793 /usr/include/X11R5 \
10794 /usr/include/X11R4 \
10795 \
10796 /usr/local/X11R6/include \
10797 /usr/local/X11R5/include \
10798 /usr/local/X11R4/include \
10799 \
10800 /usr/local/include/X11R6 \
10801 /usr/local/include/X11R5 \
10802 /usr/local/include/X11R4 \
10803 \
10804 /usr/X11/include \
10805 /usr/include/X11 \
10806 /usr/local/X11/include \
10807 /usr/local/include/X11 \
10808 \
10809 /usr/X386/include \
10810 /usr/x386/include \
10811 /usr/XFree86/include/X11 \
10812 \
10813 X:/XFree86/include \
10814 X:/XFree86/include/X11 \
10815 \
10816 /usr/include/gtk \
10817 /usr/local/include/gtk \
10818 /usr/include/glib \
10819 /usr/local/include/glib \
10820 \
10821 /usr/include/qt \
10822 /usr/local/include/qt \
10823 \
10824 /usr/include/windows \
10825 /usr/include/wine \
10826 /usr/local/include/wine \
10827 \
10828 /usr/unsupported/include \
10829 /usr/athena/include \
10830 /usr/local/x11r5/include \
10831 /usr/lpp/Xamples/include \
10832 \
10833 /usr/openwin/share/include \
10834 \
10835 /usr/include"
10836
10837SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10838
10839
10840cat > confcache <<\EOF
10841# This file is a shell script that caches the results of configure
10842# tests run on this system so they can be shared between configure
10843# scripts and configure runs. It is not useful on other systems.
10844# If it contains results you don't want to keep, you may remove or edit it.
10845#
10846# By default, configure uses ./config.cache as the cache file,
10847# creating it if it does not exist already. You can give configure
10848# the --cache-file=FILE option to use a different cache file; that is
10849# what configure does when it calls configure scripts in
10850# subdirectories, so they share the cache.
10851# Giving --cache-file=/dev/null disables caching, for debugging configure.
10852# config.status only pays attention to the cache file if you give it the
10853# --recheck option to rerun configure.
10854#
10855EOF
10856# The following way of writing the cache mishandles newlines in values,
10857# but we know of no workaround that is simple, portable, and efficient.
10858# So, don't put newlines in cache variables' values.
10859# Ultrix sh set writes to stderr and can't be redirected directly,
10860# and sets the high bit in the cache file unless we assign to the vars.
10861(set) 2>&1 |
10862 case `(ac_space=' '; set) 2>&1` in
10863 *ac_space=\ *)
10864 # `set' does not quote correctly, so add quotes (double-quote substitution
10865 # turns \\\\ into \\, and sed turns \\ into \).
10866 sed -n \
10867 -e "s/'/'\\\\''/g" \
10868 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10869 ;;
10870 *)
10871 # `set' quotes correctly as required by POSIX, so do not add quotes.
10872 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10873 ;;
10874 esac >> confcache
10875if cmp -s $cache_file confcache; then
10876 :
10877else
10878 if test -w $cache_file; then
10879 echo "updating cache $cache_file"
10880 cat confcache > $cache_file
10881 else
10882 echo "not updating unwritable cache $cache_file"
10883 fi
10884fi
10885rm -f confcache
10886
10887
10888if test "$USE_LINUX" = 1; then
10889 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10890echo "configure:10891: checking for glibc 2.1 or later" >&5
10891if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10893else
10894
10895 cat > conftest.$ac_ext <<EOF
10896#line 10897 "configure"
10897#include "confdefs.h"
10898#include <features.h>
10899int main() {
10900
10901 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10902 #error not glibc2.1
10903 #endif
10904
10905; return 0; }
10906EOF
10907if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10908 rm -rf conftest*
10909
10910 wx_cv_lib_glibc21=yes
10911
10912else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -rf conftest*
10916
10917 wx_cv_lib_glibc21=no
10918
10919
10920fi
10921rm -f conftest*
10922
10923fi
10924
10925echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
10926 if test "$wx_cv_lib_glibc21" = "yes"; then
10927 cat >> confdefs.h <<\EOF
10928#define wxHAVE_GLIBC2 1
10929EOF
10930
10931 fi
10932fi
10933
10934if test "x$wx_cv_lib_glibc21" = "xyes"; then
10935 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
10936 cat >> confdefs.h <<\EOF
10937#define _GNU_SOURCE 1
10938EOF
10939
10940 fi
10941fi
10942
10943
10944
10945REGEX_INCLUDE=
10946if test "$wxUSE_REGEX" != "no"; then
10947 cat >> confdefs.h <<\EOF
10948#define wxUSE_REGEX 1
10949EOF
10950
10951
10952 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
10953 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
10954echo $ac_n "checking for regex.h""... $ac_c" 1>&6
10955echo "configure:10956: checking for regex.h" >&5
10956if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10957 echo $ac_n "(cached) $ac_c" 1>&6
10958else
10959 cat > conftest.$ac_ext <<EOF
10960#line 10961 "configure"
10961#include "confdefs.h"
10962#include <regex.h>
10963EOF
10964ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10965{ (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10966ac_err=`grep -v '^ *+' conftest.out`
10967if test -z "$ac_err"; then
10968 rm -rf conftest*
10969 eval "ac_cv_header_$ac_safe=yes"
10970else
10971 echo "$ac_err" >&5
10972 echo "configure: failed program was:" >&5
10973 cat conftest.$ac_ext >&5
10974 rm -rf conftest*
10975 eval "ac_cv_header_$ac_safe=no"
10976fi
10977rm -f conftest*
10978fi
10979if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981 for ac_func in regcomp
10982do
10983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10984echo "configure:10985: checking for $ac_func" >&5
10985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987else
10988 cat > conftest.$ac_ext <<EOF
10989#line 10990 "configure"
10990#include "confdefs.h"
10991/* System header to define __stub macros and hopefully few prototypes,
10992 which can conflict with char $ac_func(); below. */
10993#include <assert.h>
10994/* Override any gcc2 internal prototype to avoid an error. */
10995/* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
10997char $ac_func();
10998
10999int main() {
11000
11001/* The GNU C library defines this for functions which it implements
11002 to always fail with ENOSYS. Some functions are actually named
11003 something starting with __ and the normal name is an alias. */
11004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11005choke me
11006#else
11007$ac_func();
11008#endif
11009
11010; return 0; }
11011EOF
11012if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11013 rm -rf conftest*
11014 eval "ac_cv_func_$ac_func=yes"
11015else
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 rm -rf conftest*
11019 eval "ac_cv_func_$ac_func=no"
11020fi
11021rm -f conftest*
11022fi
11023
11024if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11025 echo "$ac_t""yes" 1>&6
11026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11027 cat >> confdefs.h <<EOF
11028#define $ac_tr_func 1
11029EOF
11030
11031else
11032 echo "$ac_t""no" 1>&6
11033fi
11034done
11035
11036else
11037 echo "$ac_t""no" 1>&6
11038fi
11039
11040
11041 if test "x$ac_cv_func_regcomp" != "xyes"; then
11042 if test "$wxUSE_REGEX" = "sys" ; then
11043 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11044 else
11045 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11046 wxUSE_REGEX=builtin
11047 fi
11048 else
11049 wxUSE_REGEX=sys
11050 fi
11051 fi
11052
11053 if test "$wxUSE_REGEX" = "builtin" ; then
11054 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11055 fi
11056fi
11057
11058
11059ZLIB_INCLUDE=
11060ZLIB_LINK=
11061if test "$wxUSE_ZLIB" != "no" ; then
11062 cat >> confdefs.h <<\EOF
11063#define wxUSE_ZLIB 1
11064EOF
11065
11066
11067 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11068 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11069echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11070echo "configure:11071: checking for zlib.h" >&5
11071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11073else
11074 cat > conftest.$ac_ext <<EOF
11075#line 11076 "configure"
11076#include "confdefs.h"
11077#include <zlib.h>
11078EOF
11079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11080{ (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11081ac_err=`grep -v '^ *+' conftest.out`
11082if test -z "$ac_err"; then
11083 rm -rf conftest*
11084 eval "ac_cv_header_$ac_safe=yes"
11085else
11086 echo "$ac_err" >&5
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 rm -rf conftest*
11090 eval "ac_cv_header_$ac_safe=no"
11091fi
11092rm -f conftest*
11093fi
11094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11096 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11097echo "configure:11098: checking for deflate in -lz" >&5
11098ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11099if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11101else
11102 ac_save_LIBS="$LIBS"
11103LIBS="-lz $LIBS"
11104cat > conftest.$ac_ext <<EOF
11105#line 11106 "configure"
11106#include "confdefs.h"
11107/* Override any gcc2 internal prototype to avoid an error. */
11108/* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110char deflate();
11111
11112int main() {
11113deflate()
11114; return 0; }
11115EOF
11116if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11117 rm -rf conftest*
11118 eval "ac_cv_lib_$ac_lib_var=yes"
11119else
11120 echo "configure: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 rm -rf conftest*
11123 eval "ac_cv_lib_$ac_lib_var=no"
11124fi
11125rm -f conftest*
11126LIBS="$ac_save_LIBS"
11127
11128fi
11129if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11130 echo "$ac_t""yes" 1>&6
11131 ZLIB_LINK=" -lz"
11132else
11133 echo "$ac_t""no" 1>&6
11134fi
11135
11136else
11137 echo "$ac_t""no" 1>&6
11138fi
11139
11140
11141 if test "x$ZLIB_LINK" = "x" ; then
11142 if test "$wxUSE_ZLIB" = "sys" ; then
11143 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11144 else
11145 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11146 wxUSE_ZLIB=builtin
11147 fi
11148 else
11149 wxUSE_ZLIB=sys
11150 fi
11151 fi
11152
11153 if test "$wxUSE_ZLIB" = "builtin" ; then
11154 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11155 fi
11156fi
11157
11158
11159PNG_INCLUDE=
11160PNG_LINK=
11161if test "$wxUSE_LIBPNG" != "no" ; then
11162 cat >> confdefs.h <<\EOF
11163#define wxUSE_LIBPNG 1
11164EOF
11165
11166
11167 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11168 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11169 wxUSE_LIBPNG=sys
11170 fi
11171
11172 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11173 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11174 wxUSE_LIBPNG=builtin
11175 fi
11176
11177 if test "$wxUSE_MGL" != 1 ; then
11178 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11179 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11180echo $ac_n "checking for png.h""... $ac_c" 1>&6
11181echo "configure:11182: checking for png.h" >&5
11182if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11184else
11185 cat > conftest.$ac_ext <<EOF
11186#line 11187 "configure"
11187#include "confdefs.h"
11188#include <png.h>
11189EOF
11190ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11191{ (eval echo configure:11192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11192ac_err=`grep -v '^ *+' conftest.out`
11193if test -z "$ac_err"; then
11194 rm -rf conftest*
11195 eval "ac_cv_header_$ac_safe=yes"
11196else
11197 echo "$ac_err" >&5
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 rm -rf conftest*
11201 eval "ac_cv_header_$ac_safe=no"
11202fi
11203rm -f conftest*
11204fi
11205if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11206 echo "$ac_t""yes" 1>&6
11207 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11208echo "configure:11209: checking for png_check_sig in -lpng" >&5
11209ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11212else
11213 ac_save_LIBS="$LIBS"
11214LIBS="-lpng -lz -lm $LIBS"
11215cat > conftest.$ac_ext <<EOF
11216#line 11217 "configure"
11217#include "confdefs.h"
11218/* Override any gcc2 internal prototype to avoid an error. */
11219/* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11221char png_check_sig();
11222
11223int main() {
11224png_check_sig()
11225; return 0; }
11226EOF
11227if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11228 rm -rf conftest*
11229 eval "ac_cv_lib_$ac_lib_var=yes"
11230else
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 rm -rf conftest*
11234 eval "ac_cv_lib_$ac_lib_var=no"
11235fi
11236rm -f conftest*
11237LIBS="$ac_save_LIBS"
11238
11239fi
11240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11241 echo "$ac_t""yes" 1>&6
11242 PNG_LINK=" -lpng"
11243else
11244 echo "$ac_t""no" 1>&6
11245fi
11246
11247
11248else
11249 echo "$ac_t""no" 1>&6
11250fi
11251
11252
11253 if test "x$PNG_LINK" = "x" ; then
11254 if test "$wxUSE_LIBPNG" = "sys" ; then
11255 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11256 else
11257 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11258 wxUSE_LIBPNG=builtin
11259 fi
11260 else
11261 wxUSE_LIBPNG=yes
11262 fi
11263 fi
11264 fi
11265
11266 if test "$wxUSE_LIBPNG" = "builtin" ; then
11267 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11268 fi
11269
11270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11271fi
11272
11273
11274JPEG_INCLUDE=
11275JPEG_LINK=
11276if test "$wxUSE_LIBJPEG" != "no" ; then
11277 cat >> confdefs.h <<\EOF
11278#define wxUSE_LIBJPEG 1
11279EOF
11280
11281
11282 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11283 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11284 wxUSE_LIBJPEG=sys
11285 fi
11286
11287 if test "$wxUSE_MGL" != 1 ; then
11288 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11289 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11290echo "configure:11291: checking for jpeglib.h" >&5
11291 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293else
11294 cat > conftest.$ac_ext <<EOF
11295#line 11296 "configure"
11296#include "confdefs.h"
11297
11298 #undef HAVE_STDLIB_H
11299 #include <stdio.h>
11300 #include <jpeglib.h>
11301
11302int main() {
11303
11304
11305; return 0; }
11306EOF
11307if { (eval echo configure:11308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11308 rm -rf conftest*
11309 ac_cv_header_jpeglib_h=yes
11310else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 ac_cv_header_jpeglib_h=no
11315
11316fi
11317rm -f conftest*
11318
11319fi
11320
11321 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11322
11323 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11324 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11325echo "configure:11326: checking for jpeg_read_header in -ljpeg" >&5
11326ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11328 echo $ac_n "(cached) $ac_c" 1>&6
11329else
11330 ac_save_LIBS="$LIBS"
11331LIBS="-ljpeg $LIBS"
11332cat > conftest.$ac_ext <<EOF
11333#line 11334 "configure"
11334#include "confdefs.h"
11335/* Override any gcc2 internal prototype to avoid an error. */
11336/* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11338char jpeg_read_header();
11339
11340int main() {
11341jpeg_read_header()
11342; return 0; }
11343EOF
11344if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11345 rm -rf conftest*
11346 eval "ac_cv_lib_$ac_lib_var=yes"
11347else
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11350 rm -rf conftest*
11351 eval "ac_cv_lib_$ac_lib_var=no"
11352fi
11353rm -f conftest*
11354LIBS="$ac_save_LIBS"
11355
11356fi
11357if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11358 echo "$ac_t""yes" 1>&6
11359 JPEG_LINK=" -ljpeg"
11360else
11361 echo "$ac_t""no" 1>&6
11362fi
11363
11364 fi
11365
11366 if test "x$JPEG_LINK" = "x" ; then
11367 if test "$wxUSE_LIBJPEG" = "sys" ; then
11368 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11369 else
11370 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11371 wxUSE_LIBJPEG=builtin
11372 fi
11373 else
11374 wxUSE_LIBJPEG=sys
11375 fi
11376 fi
11377 fi
11378
11379 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11380 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11381 fi
11382fi
11383
11384
11385TIFF_INCLUDE=
11386TIFF_LINK=
11387if test "$wxUSE_LIBTIFF" != "no" ; then
11388 cat >> confdefs.h <<\EOF
11389#define wxUSE_LIBTIFF 1
11390EOF
11391
11392
11393 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11394 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11395echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11396echo "configure:11397: checking for tiffio.h" >&5
11397if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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#include <tiffio.h>
11404EOF
11405ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11406{ (eval echo configure:11407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11407ac_err=`grep -v '^ *+' conftest.out`
11408if test -z "$ac_err"; then
11409 rm -rf conftest*
11410 eval "ac_cv_header_$ac_safe=yes"
11411else
11412 echo "$ac_err" >&5
11413 echo "configure: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 rm -rf conftest*
11416 eval "ac_cv_header_$ac_safe=no"
11417fi
11418rm -f conftest*
11419fi
11420if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11421 echo "$ac_t""yes" 1>&6
11422 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11423echo "configure:11424: checking for TIFFError in -ltiff" >&5
11424ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11427else
11428 ac_save_LIBS="$LIBS"
11429LIBS="-ltiff -lm $LIBS"
11430cat > conftest.$ac_ext <<EOF
11431#line 11432 "configure"
11432#include "confdefs.h"
11433/* Override any gcc2 internal prototype to avoid an error. */
11434/* We use char because int might match the return type of a gcc2
11435 builtin and then its argument prototype would still apply. */
11436char TIFFError();
11437
11438int main() {
11439TIFFError()
11440; return 0; }
11441EOF
11442if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11443 rm -rf conftest*
11444 eval "ac_cv_lib_$ac_lib_var=yes"
11445else
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11448 rm -rf conftest*
11449 eval "ac_cv_lib_$ac_lib_var=no"
11450fi
11451rm -f conftest*
11452LIBS="$ac_save_LIBS"
11453
11454fi
11455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11456 echo "$ac_t""yes" 1>&6
11457 TIFF_LINK=" -ltiff"
11458else
11459 echo "$ac_t""no" 1>&6
11460fi
11461
11462
11463else
11464 echo "$ac_t""no" 1>&6
11465fi
11466
11467
11468 if test "x$TIFF_LINK" = "x" ; then
11469 if test "$wxUSE_LIBTIFF" = "sys" ; then
11470 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11471 else
11472 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11473 wxUSE_LIBTIFF=builtin
11474 fi
11475 else
11476 wxUSE_LIBTIFF=sys
11477 fi
11478 fi
11479
11480 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11481 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11482 fi
11483fi
11484
11485
11486AFMINSTALL=
11487
11488TOOLKIT=
11489TOOLKIT_INCLUDE=
11490WIDGET_SET=
11491
11492if test "$USE_WIN32" = 1 ; then
11493 for ac_hdr in w32api.h
11494do
11495ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11496echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11497echo "configure:11498: checking for $ac_hdr" >&5
11498if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11499 echo $ac_n "(cached) $ac_c" 1>&6
11500else
11501 cat > conftest.$ac_ext <<EOF
11502#line 11503 "configure"
11503#include "confdefs.h"
11504#include <$ac_hdr>
11505EOF
11506ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11507{ (eval echo configure:11508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11508ac_err=`grep -v '^ *+' conftest.out`
11509if test -z "$ac_err"; then
11510 rm -rf conftest*
11511 eval "ac_cv_header_$ac_safe=yes"
11512else
11513 echo "$ac_err" >&5
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 rm -rf conftest*
11517 eval "ac_cv_header_$ac_safe=no"
11518fi
11519rm -f conftest*
11520fi
11521if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11522 echo "$ac_t""yes" 1>&6
11523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11524 cat >> confdefs.h <<EOF
11525#define $ac_tr_hdr 1
11526EOF
11527
11528else
11529 echo "$ac_t""no" 1>&6
11530fi
11531done
11532
11533 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11534echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11535echo "configure:11536: checking for windows.h" >&5
11536if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
11538else
11539 cat > conftest.$ac_ext <<EOF
11540#line 11541 "configure"
11541#include "confdefs.h"
11542#include <windows.h>
11543EOF
11544ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11545{ (eval echo configure:11546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11546ac_err=`grep -v '^ *+' conftest.out`
11547if test -z "$ac_err"; then
11548 rm -rf conftest*
11549 eval "ac_cv_header_$ac_safe=yes"
11550else
11551 echo "$ac_err" >&5
11552 echo "configure: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11554 rm -rf conftest*
11555 eval "ac_cv_header_$ac_safe=no"
11556fi
11557rm -f conftest*
11558fi
11559if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11560 echo "$ac_t""yes" 1>&6
11561 :
11562else
11563 echo "$ac_t""no" 1>&6
11564
11565 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11566
11567fi
11568
11569
11570 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11571echo "configure:11572: checking if w32api has good enough MSIE support" >&5
11572if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11574else
11575
11576 cat > conftest.$ac_ext <<EOF
11577#line 11578 "configure"
11578#include "confdefs.h"
11579#include <w32api.h>
11580int main() {
11581
11582 #define wxCHECK_W32API_VERSION( major, minor ) \
11583 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11584 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11585 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11586
11587 #if !wxCHECK_W32API_VERSION(1,1)
11588 #error You need w32api 1.1 or newer
11589 #endif
11590
11591; return 0; }
11592EOF
11593if { (eval echo configure:11594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11594 rm -rf conftest*
11595
11596 wx_cv_w32api_win32_ie=yes
11597
11598else
11599 echo "configure: failed program was:" >&5
11600 cat conftest.$ac_ext >&5
11601 rm -rf conftest*
11602
11603 wx_cv_w32api_win32_ie=no
11604
11605fi
11606rm -f conftest*
11607
11608fi
11609
11610echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11611 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11612 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11613 fi
11614
11615 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11616
11617 case "${host}" in
11618 *-*-cygwin* )
11619 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11620 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11621 esac
11622
11623 if test "$wxUSE_ODBC" = "yes" ; then
11624 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11625 fi
11626
11627 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11628 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11629fi
11630
11631if test "$wxUSE_GUI" = "yes"; then
11632 USE_GUI=1
11633
11634 GUI_TK_LIBRARY=
11635
11636 WXGTK12=
11637 WXGTK127=
11638 WXGTK20=
11639
11640 if test "$wxUSE_MSW" = 1 ; then
11641 TOOLKIT=MSW
11642 GUIDIST=MSW_DIST
11643
11644 case "${host}" in
11645 *-*-mingw32* )
11646 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11647 esac
11648 fi
11649
11650 if test "$wxUSE_GTK" = 1; then
11651 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11652echo "configure:11653: checking for GTK+ version" >&5
11653
11654 gtk_version_cached=1
11655 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11656 echo $ac_n "(cached) $ac_c" 1>&6
11657else
11658
11659 gtk_version_cached=0
11660 echo "$ac_t""" 1>&6
11661
11662 GTK_MODULES=
11663 if test "$wxUSE_THREADS" = "yes"; then
11664 GTK_MODULES=gthread
11665 fi
11666
11667 wx_cv_lib_gtk=
11668 if test "x$wxUSE_GTK2" = "xyes"; then
11669 # Check whether --enable-gtktest or --disable-gtktest was given.
11670if test "${enable_gtktest+set}" = set; then
11671 enableval="$enable_gtktest"
11672 :
11673else
11674 enable_gtktest=yes
11675fi
11676
11677
11678 pkg_config_args=gtk+-2.0
11679 for module in . $GTK_MODULES
11680 do
11681 case "$module" in
11682 gthread)
11683 pkg_config_args="$pkg_config_args gthread-2.0"
11684 ;;
11685 esac
11686 done
11687
11688 no_gtk=""
11689
11690 # Extract the first word of "pkg-config", so it can be a program name with args.
11691set dummy pkg-config; ac_word=$2
11692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11693echo "configure:11694: checking for $ac_word" >&5
11694if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11695 echo $ac_n "(cached) $ac_c" 1>&6
11696else
11697 case "$PKG_CONFIG" in
11698 /*)
11699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11700 ;;
11701 *)
11702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11703 for ac_dir in $PATH; do
11704 test -z "$ac_dir" && ac_dir=.
11705 if test -f $ac_dir/$ac_word; then
11706 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11707 break
11708 fi
11709 done
11710 IFS="$ac_save_ifs"
11711 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11712 ;;
11713esac
11714fi
11715PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11716if test -n "$PKG_CONFIG"; then
11717 echo "$ac_t""$PKG_CONFIG" 1>&6
11718else
11719 echo "$ac_t""no" 1>&6
11720fi
11721
11722
11723 if test x$PKG_CONFIG != xno ; then
11724 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11725 :
11726 else
11727 echo *** pkg-config too old; version 0.7 or better required.
11728 no_gtk=yes
11729 PKG_CONFIG=no
11730 fi
11731 else
11732 no_gtk=yes
11733 fi
11734
11735 min_gtk_version=2.0.0
11736 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11737echo "configure:11738: checking for GTK+ - version >= $min_gtk_version" >&5
11738
11739 if test x$PKG_CONFIG != xno ; then
11740 ## don't try to run the test against uninstalled libtool libs
11741 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11742 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11743 enable_gtktest=no
11744 fi
11745
11746 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11747 :
11748 else
11749 no_gtk=yes
11750 fi
11751 fi
11752
11753 if test x"$no_gtk" = x ; then
11754 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11755 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11756 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11758 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11760 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11762 if test "x$enable_gtktest" = "xyes" ; then
11763 ac_save_CFLAGS="$CFLAGS"
11764 ac_save_LIBS="$LIBS"
11765 CFLAGS="$CFLAGS $GTK_CFLAGS"
11766 LIBS="$GTK_LIBS $LIBS"
11767 rm -f conf.gtktest
11768 if test "$cross_compiling" = yes; then
11769 echo $ac_n "cross compiling; assumed OK... $ac_c"
11770else
11771 cat > conftest.$ac_ext <<EOF
11772#line 11773 "configure"
11773#include "confdefs.h"
11774
11775#include <gtk/gtk.h>
11776#include <stdio.h>
11777#include <stdlib.h>
11778
11779int
11780main ()
11781{
11782 int major, minor, micro;
11783 char *tmp_version;
11784
11785 system ("touch conf.gtktest");
11786
11787 /* HP/UX 9 (%@#!) writes to sscanf strings */
11788 tmp_version = g_strdup("$min_gtk_version");
11789 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11790 printf("%s, bad version string\n", "$min_gtk_version");
11791 exit(1);
11792 }
11793
11794 if ((gtk_major_version != $gtk_config_major_version) ||
11795 (gtk_minor_version != $gtk_config_minor_version) ||
11796 (gtk_micro_version != $gtk_config_micro_version))
11797 {
11798 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11799 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11800 gtk_major_version, gtk_minor_version, gtk_micro_version);
11801 printf ("*** was found! If pkg-config was correct, then it is best\n");
11802 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11803 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11804 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11805 printf("*** required on your system.\n");
11806 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11807 printf("*** to point to the correct configuration files\n");
11808 }
11809 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11810 (gtk_minor_version != GTK_MINOR_VERSION) ||
11811 (gtk_micro_version != GTK_MICRO_VERSION))
11812 {
11813 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11814 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11815 printf("*** library (version %d.%d.%d)\n",
11816 gtk_major_version, gtk_minor_version, gtk_micro_version);
11817 }
11818 else
11819 {
11820 if ((gtk_major_version > major) ||
11821 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11822 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11823 {
11824 return 0;
11825 }
11826 else
11827 {
11828 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11829 gtk_major_version, gtk_minor_version, gtk_micro_version);
11830 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11831 major, minor, micro);
11832 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11833 printf("***\n");
11834 printf("*** If you have already installed a sufficiently new version, this error\n");
11835 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11836 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11837 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11838 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11839 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11840 printf("*** so that the correct libraries are found at run-time))\n");
11841 }
11842 }
11843 return 1;
11844}
11845
11846EOF
11847if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
11848then
11849 :
11850else
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 rm -fr conftest*
11854 no_gtk=yes
11855fi
11856rm -fr conftest*
11857fi
11858
11859 CFLAGS="$ac_save_CFLAGS"
11860 LIBS="$ac_save_LIBS"
11861 fi
11862 fi
11863 if test "x$no_gtk" = x ; then
11864 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11865 wx_cv_lib_gtk=2.0
11866 else
11867 echo "$ac_t""no" 1>&6
11868 if test "$PKG_CONFIG" = "no" ; then
11869 echo "*** A new enough version of pkg-config was not found."
11870 echo "*** See http://pkgconfig.sourceforge.net"
11871 else
11872 if test -f conf.gtktest ; then
11873 :
11874 else
11875 echo "*** Could not run GTK+ test program, checking why..."
11876 ac_save_CFLAGS="$CFLAGS"
11877 ac_save_LIBS="$LIBS"
11878 CFLAGS="$CFLAGS $GTK_CFLAGS"
11879 LIBS="$LIBS $GTK_LIBS"
11880 cat > conftest.$ac_ext <<EOF
11881#line 11882 "configure"
11882#include "confdefs.h"
11883
11884#include <gtk/gtk.h>
11885#include <stdio.h>
11886
11887int main() {
11888 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11889; return 0; }
11890EOF
11891if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11892 rm -rf conftest*
11893 echo "*** The test program compiled, but did not run. This usually means"
11894 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11895 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11896 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11897 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11898 echo "*** is required on your system"
11899 echo "***"
11900 echo "*** If you have an old version installed, it is best to remove it, although"
11901 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11902else
11903 echo "configure: failed program was:" >&5
11904 cat conftest.$ac_ext >&5
11905 rm -rf conftest*
11906 echo "*** The test program failed to compile or link. See the file config.log for the"
11907 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
11908fi
11909rm -f conftest*
11910 CFLAGS="$ac_save_CFLAGS"
11911 LIBS="$ac_save_LIBS"
11912 fi
11913 fi
11914 GTK_CFLAGS=""
11915 GTK_LIBS=""
11916 :
11917 fi
11918
11919
11920 rm -f conf.gtktest
11921
11922
11923 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11924
11925 succeeded=no
11926
11927 if test -z "$PKG_CONFIG"; then
11928 # Extract the first word of "pkg-config", so it can be a program name with args.
11929set dummy pkg-config; ac_word=$2
11930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11931echo "configure:11932: checking for $ac_word" >&5
11932if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11933 echo $ac_n "(cached) $ac_c" 1>&6
11934else
11935 case "$PKG_CONFIG" in
11936 /*)
11937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11938 ;;
11939 *)
11940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11941 for ac_dir in $PATH; do
11942 test -z "$ac_dir" && ac_dir=.
11943 if test -f $ac_dir/$ac_word; then
11944 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11945 break
11946 fi
11947 done
11948 IFS="$ac_save_ifs"
11949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11950 ;;
11951esac
11952fi
11953PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11954if test -n "$PKG_CONFIG"; then
11955 echo "$ac_t""$PKG_CONFIG" 1>&6
11956else
11957 echo "$ac_t""no" 1>&6
11958fi
11959
11960 fi
11961
11962 if test "$PKG_CONFIG" = "no" ; then
11963 echo "*** The pkg-config script could not be found. Make sure it is"
11964 echo "*** in your path, or set the PKG_CONFIG environment variable"
11965 echo "*** to the full path to pkg-config."
11966 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11967 else
11968 PKG_CONFIG_MIN_VERSION=0.9.0
11969 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11970 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
11971echo "configure:11972: checking for pangoft2" >&5
11972
11973 if $PKG_CONFIG --exists "pangoft2" ; then
11974 echo "$ac_t""yes" 1>&6
11975 succeeded=yes
11976
11977 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
11978echo "configure:11979: checking PANGOFT2_CFLAGS" >&5
11979 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11980 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
11981
11982 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
11983echo "configure:11984: checking PANGOFT2_LIBS" >&5
11984 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11985 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
11986 else
11987 PANGOFT2_CFLAGS=""
11988 PANGOFT2_LIBS=""
11989 ## If we have a custom action on failure, don't print errors, but
11990 ## do set a variable so people can do so.
11991 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11992
11993 fi
11994
11995
11996
11997 else
11998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12000 fi
12001 fi
12002
12003 if test $succeeded = yes; then
12004
12005 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12006 LIBS="$LIBS $PANGOFT2_LIBS"
12007
12008 else
12009
12010 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
12011 wxUSE_PRINTING_ARCHITECTURE="no"
12012
12013
12014 fi
12015
12016 fi
12017 fi
12018
12019 if test -z "$wx_cv_lib_gtk"; then
12020 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12021if test "${with_gtk_prefix+set}" = set; then
12022 withval="$with_gtk_prefix"
12023 gtk_config_prefix="$withval"
12024else
12025 gtk_config_prefix=""
12026fi
12027
12028# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12029if test "${with_gtk_exec_prefix+set}" = set; then
12030 withval="$with_gtk_exec_prefix"
12031 gtk_config_exec_prefix="$withval"
12032else
12033 gtk_config_exec_prefix=""
12034fi
12035
12036# Check whether --enable-gtktest or --disable-gtktest was given.
12037if test "${enable_gtktest+set}" = set; then
12038 enableval="$enable_gtktest"
12039 :
12040else
12041 enable_gtktest=yes
12042fi
12043
12044
12045 for module in . $GTK_MODULES
12046 do
12047 case "$module" in
12048 gthread)
12049 gtk_config_args="$gtk_config_args gthread"
12050 ;;
12051 esac
12052 done
12053
12054 if test x$gtk_config_exec_prefix != x ; then
12055 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12056 if test x${GTK_CONFIG+set} != xset ; then
12057 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12058 fi
12059 fi
12060 if test x$gtk_config_prefix != x ; then
12061 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12062 if test x${GTK_CONFIG+set} != xset ; then
12063 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12064 fi
12065 fi
12066
12067 # Extract the first word of "gtk-config", so it can be a program name with args.
12068set dummy gtk-config; ac_word=$2
12069echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12070echo "configure:12071: checking for $ac_word" >&5
12071if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12072 echo $ac_n "(cached) $ac_c" 1>&6
12073else
12074 case "$GTK_CONFIG" in
12075 /*)
12076 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12077 ;;
12078 *)
12079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12080 for ac_dir in $PATH; do
12081 test -z "$ac_dir" && ac_dir=.
12082 if test -f $ac_dir/$ac_word; then
12083 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12084 break
12085 fi
12086 done
12087 IFS="$ac_save_ifs"
12088 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12089 ;;
12090esac
12091fi
12092GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12093if test -n "$GTK_CONFIG"; then
12094 echo "$ac_t""$GTK_CONFIG" 1>&6
12095else
12096 echo "$ac_t""no" 1>&6
12097fi
12098
12099 min_gtk_version=1.2.7
12100 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12101echo "configure:12102: checking for GTK - version >= $min_gtk_version" >&5
12102 no_gtk=""
12103 if test "$GTK_CONFIG" = "no" ; then
12104 no_gtk=yes
12105 else
12106 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12107 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12108 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12109 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12110 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12111 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12112 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12113 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12114 if test "x$enable_gtktest" = "xyes" ; then
12115 ac_save_CFLAGS="$CFLAGS"
12116 ac_save_LIBS="$LIBS"
12117 CFLAGS="$CFLAGS $GTK_CFLAGS"
12118 LIBS="$GTK_LIBS $LIBS"
12119 rm -f conf.gtktest
12120 if test "$cross_compiling" = yes; then
12121 echo $ac_n "cross compiling; assumed OK... $ac_c"
12122else
12123 cat > conftest.$ac_ext <<EOF
12124#line 12125 "configure"
12125#include "confdefs.h"
12126
12127#include <gtk/gtk.h>
12128#include <stdio.h>
12129#include <stdlib.h>
12130
12131int
12132main ()
12133{
12134 int major, minor, micro;
12135 char *tmp_version;
12136
12137 system ("touch conf.gtktest");
12138
12139 /* HP/UX 9 (%@#!) writes to sscanf strings */
12140 tmp_version = g_strdup("$min_gtk_version");
12141 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12142 printf("%s, bad version string\n", "$min_gtk_version");
12143 exit(1);
12144 }
12145
12146 if ((gtk_major_version != $gtk_config_major_version) ||
12147 (gtk_minor_version != $gtk_config_minor_version) ||
12148 (gtk_micro_version != $gtk_config_micro_version))
12149 {
12150 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12151 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12152 gtk_major_version, gtk_minor_version, gtk_micro_version);
12153 printf ("*** was found! If gtk-config was correct, then it is best\n");
12154 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12155 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12156 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12157 printf("*** required on your system.\n");
12158 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12159 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12160 printf("*** before re-running configure\n");
12161 }
12162#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12163 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12164 (gtk_minor_version != GTK_MINOR_VERSION) ||
12165 (gtk_micro_version != GTK_MICRO_VERSION))
12166 {
12167 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12168 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12169 printf("*** library (version %d.%d.%d)\n",
12170 gtk_major_version, gtk_minor_version, gtk_micro_version);
12171 }
12172#endif /* defined (GTK_MAJOR_VERSION) ... */
12173 else
12174 {
12175 if ((gtk_major_version > major) ||
12176 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12177 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12178 {
12179 return 0;
12180 }
12181 else
12182 {
12183 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12184 gtk_major_version, gtk_minor_version, gtk_micro_version);
12185 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12186 major, minor, micro);
12187 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12188 printf("***\n");
12189 printf("*** If you have already installed a sufficiently new version, this error\n");
12190 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12191 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12192 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12193 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12194 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12195 printf("*** so that the correct libraries are found at run-time))\n");
12196 }
12197 }
12198 return 1;
12199}
12200
12201EOF
12202if { (eval echo configure:12203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
12203then
12204 :
12205else
12206 echo "configure: failed program was:" >&5
12207 cat conftest.$ac_ext >&5
12208 rm -fr conftest*
12209 no_gtk=yes
12210fi
12211rm -fr conftest*
12212fi
12213
12214 CFLAGS="$ac_save_CFLAGS"
12215 LIBS="$ac_save_LIBS"
12216 fi
12217 fi
12218 if test "x$no_gtk" = x ; then
12219 echo "$ac_t""yes" 1>&6
12220 wx_cv_lib_gtk=1.2.7
12221 else
12222 echo "$ac_t""no" 1>&6
12223 if test "$GTK_CONFIG" = "no" ; then
12224 echo "*** The gtk-config script installed by GTK could not be found"
12225 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12226 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12227 echo "*** full path to gtk-config."
12228 else
12229 if test -f conf.gtktest ; then
12230 :
12231 else
12232 echo "*** Could not run GTK test program, checking why..."
12233 CFLAGS="$CFLAGS $GTK_CFLAGS"
12234 LIBS="$LIBS $GTK_LIBS"
12235 cat > conftest.$ac_ext <<EOF
12236#line 12237 "configure"
12237#include "confdefs.h"
12238
12239#include <gtk/gtk.h>
12240#include <stdio.h>
12241
12242int main() {
12243 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12244; return 0; }
12245EOF
12246if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12247 rm -rf conftest*
12248 echo "*** The test program compiled, but did not run. This usually means"
12249 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12250 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12251 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12252 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12253 echo "*** is required on your system"
12254 echo "***"
12255 echo "*** If you have an old version installed, it is best to remove it, although"
12256 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12257 echo "***"
12258 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12259 echo "*** came with the system with the command"
12260 echo "***"
12261 echo "*** rpm --erase --nodeps gtk gtk-devel"
12262else
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266 echo "*** The test program failed to compile or link. See the file config.log for the"
12267 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12268 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12269 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12270fi
12271rm -f conftest*
12272 CFLAGS="$ac_save_CFLAGS"
12273 LIBS="$ac_save_LIBS"
12274 fi
12275 fi
12276 GTK_CFLAGS=""
12277 GTK_LIBS=""
12278 :
12279 fi
12280
12281
12282 rm -f conf.gtktest
12283
12284 fi
12285
12286 if test -z "$wx_cv_lib_gtk"; then
12287 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12288if test "${with_gtk_prefix+set}" = set; then
12289 withval="$with_gtk_prefix"
12290 gtk_config_prefix="$withval"
12291else
12292 gtk_config_prefix=""
12293fi
12294
12295# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12296if test "${with_gtk_exec_prefix+set}" = set; then
12297 withval="$with_gtk_exec_prefix"
12298 gtk_config_exec_prefix="$withval"
12299else
12300 gtk_config_exec_prefix=""
12301fi
12302
12303# Check whether --enable-gtktest or --disable-gtktest was given.
12304if test "${enable_gtktest+set}" = set; then
12305 enableval="$enable_gtktest"
12306 :
12307else
12308 enable_gtktest=yes
12309fi
12310
12311
12312 for module in . $GTK_MODULES
12313 do
12314 case "$module" in
12315 gthread)
12316 gtk_config_args="$gtk_config_args gthread"
12317 ;;
12318 esac
12319 done
12320
12321 if test x$gtk_config_exec_prefix != x ; then
12322 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12323 if test x${GTK_CONFIG+set} != xset ; then
12324 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12325 fi
12326 fi
12327 if test x$gtk_config_prefix != x ; then
12328 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12329 if test x${GTK_CONFIG+set} != xset ; then
12330 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12331 fi
12332 fi
12333
12334 # Extract the first word of "gtk-config", so it can be a program name with args.
12335set dummy gtk-config; ac_word=$2
12336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12337echo "configure:12338: checking for $ac_word" >&5
12338if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12339 echo $ac_n "(cached) $ac_c" 1>&6
12340else
12341 case "$GTK_CONFIG" in
12342 /*)
12343 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12344 ;;
12345 *)
12346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12347 for ac_dir in $PATH; do
12348 test -z "$ac_dir" && ac_dir=.
12349 if test -f $ac_dir/$ac_word; then
12350 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12351 break
12352 fi
12353 done
12354 IFS="$ac_save_ifs"
12355 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12356 ;;
12357esac
12358fi
12359GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12360if test -n "$GTK_CONFIG"; then
12361 echo "$ac_t""$GTK_CONFIG" 1>&6
12362else
12363 echo "$ac_t""no" 1>&6
12364fi
12365
12366 min_gtk_version=1.2.3
12367 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12368echo "configure:12369: checking for GTK - version >= $min_gtk_version" >&5
12369 no_gtk=""
12370 if test "$GTK_CONFIG" = "no" ; then
12371 no_gtk=yes
12372 else
12373 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12374 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12375 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12376 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12377 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12378 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12379 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12380 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12381 if test "x$enable_gtktest" = "xyes" ; then
12382 ac_save_CFLAGS="$CFLAGS"
12383 ac_save_LIBS="$LIBS"
12384 CFLAGS="$CFLAGS $GTK_CFLAGS"
12385 LIBS="$GTK_LIBS $LIBS"
12386 rm -f conf.gtktest
12387 if test "$cross_compiling" = yes; then
12388 echo $ac_n "cross compiling; assumed OK... $ac_c"
12389else
12390 cat > conftest.$ac_ext <<EOF
12391#line 12392 "configure"
12392#include "confdefs.h"
12393
12394#include <gtk/gtk.h>
12395#include <stdio.h>
12396#include <stdlib.h>
12397
12398int
12399main ()
12400{
12401 int major, minor, micro;
12402 char *tmp_version;
12403
12404 system ("touch conf.gtktest");
12405
12406 /* HP/UX 9 (%@#!) writes to sscanf strings */
12407 tmp_version = g_strdup("$min_gtk_version");
12408 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12409 printf("%s, bad version string\n", "$min_gtk_version");
12410 exit(1);
12411 }
12412
12413 if ((gtk_major_version != $gtk_config_major_version) ||
12414 (gtk_minor_version != $gtk_config_minor_version) ||
12415 (gtk_micro_version != $gtk_config_micro_version))
12416 {
12417 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12418 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12419 gtk_major_version, gtk_minor_version, gtk_micro_version);
12420 printf ("*** was found! If gtk-config was correct, then it is best\n");
12421 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12422 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12423 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12424 printf("*** required on your system.\n");
12425 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12426 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12427 printf("*** before re-running configure\n");
12428 }
12429#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12430 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12431 (gtk_minor_version != GTK_MINOR_VERSION) ||
12432 (gtk_micro_version != GTK_MICRO_VERSION))
12433 {
12434 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12435 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12436 printf("*** library (version %d.%d.%d)\n",
12437 gtk_major_version, gtk_minor_version, gtk_micro_version);
12438 }
12439#endif /* defined (GTK_MAJOR_VERSION) ... */
12440 else
12441 {
12442 if ((gtk_major_version > major) ||
12443 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12444 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12445 {
12446 return 0;
12447 }
12448 else
12449 {
12450 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12451 gtk_major_version, gtk_minor_version, gtk_micro_version);
12452 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12453 major, minor, micro);
12454 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12455 printf("***\n");
12456 printf("*** If you have already installed a sufficiently new version, this error\n");
12457 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12458 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12459 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12460 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12461 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12462 printf("*** so that the correct libraries are found at run-time))\n");
12463 }
12464 }
12465 return 1;
12466}
12467
12468EOF
12469if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
12470then
12471 :
12472else
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -fr conftest*
12476 no_gtk=yes
12477fi
12478rm -fr conftest*
12479fi
12480
12481 CFLAGS="$ac_save_CFLAGS"
12482 LIBS="$ac_save_LIBS"
12483 fi
12484 fi
12485 if test "x$no_gtk" = x ; then
12486 echo "$ac_t""yes" 1>&6
12487 wx_cv_lib_gtk=1.2.3
12488 else
12489 echo "$ac_t""no" 1>&6
12490 if test "$GTK_CONFIG" = "no" ; then
12491 echo "*** The gtk-config script installed by GTK could not be found"
12492 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12493 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12494 echo "*** full path to gtk-config."
12495 else
12496 if test -f conf.gtktest ; then
12497 :
12498 else
12499 echo "*** Could not run GTK test program, checking why..."
12500 CFLAGS="$CFLAGS $GTK_CFLAGS"
12501 LIBS="$LIBS $GTK_LIBS"
12502 cat > conftest.$ac_ext <<EOF
12503#line 12504 "configure"
12504#include "confdefs.h"
12505
12506#include <gtk/gtk.h>
12507#include <stdio.h>
12508
12509int main() {
12510 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12511; return 0; }
12512EOF
12513if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12514 rm -rf conftest*
12515 echo "*** The test program compiled, but did not run. This usually means"
12516 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12517 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12520 echo "*** is required on your system"
12521 echo "***"
12522 echo "*** If you have an old version installed, it is best to remove it, although"
12523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12524 echo "***"
12525 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12526 echo "*** came with the system with the command"
12527 echo "***"
12528 echo "*** rpm --erase --nodeps gtk gtk-devel"
12529else
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 rm -rf conftest*
12533 echo "*** The test program failed to compile or link. See the file config.log for the"
12534 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12535 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12536 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12537fi
12538rm -f conftest*
12539 CFLAGS="$ac_save_CFLAGS"
12540 LIBS="$ac_save_LIBS"
12541 fi
12542 fi
12543 GTK_CFLAGS=""
12544 GTK_LIBS=""
12545 :
12546 fi
12547
12548
12549 rm -f conf.gtktest
12550
12551 fi
12552
12553 if test -z "$wx_cv_lib_gtk"; then
12554 wx_cv_lib_gtk=none
12555 else
12556 wx_cv_cflags_gtk=$GTK_CFLAGS
12557 wx_cv_libs_gtk=$GTK_LIBS
12558 fi
12559
12560
12561fi
12562
12563
12564 if test "$gtk_version_cached" = 1; then
12565 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12566 fi
12567
12568 case "$wx_cv_lib_gtk" in
12569 2.0) WXGTK20=1
12570 ;;
12571 1.2.7) WXGTK127=1
12572 WXGTK12=1
12573 ;;
12574 1.2.3) WXGTK12=1
12575 ;;
12576 *) { echo "configure: error:
12577Please check that gtk-config is in path, the directory
12578where GTK+ libraries are installed (returned by
12579'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12580equivalent variable and GTK+ is version 1.2.3 or above.
12581 " 1>&2; exit 1; }
12582 ;;
12583 esac
12584
12585 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12586 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12587
12588 AFMINSTALL=afminstall
12589 TOOLKIT=GTK
12590 GUIDIST=GTK_DIST
12591
12592 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12593echo "configure:12594: checking for gdk_im_open in -lgdk" >&5
12594ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12595if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12596 echo $ac_n "(cached) $ac_c" 1>&6
12597else
12598 ac_save_LIBS="$LIBS"
12599LIBS="-lgdk $LIBS"
12600cat > conftest.$ac_ext <<EOF
12601#line 12602 "configure"
12602#include "confdefs.h"
12603/* Override any gcc2 internal prototype to avoid an error. */
12604/* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12606char gdk_im_open();
12607
12608int main() {
12609gdk_im_open()
12610; return 0; }
12611EOF
12612if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12613 rm -rf conftest*
12614 eval "ac_cv_lib_$ac_lib_var=yes"
12615else
12616 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 rm -rf conftest*
12619 eval "ac_cv_lib_$ac_lib_var=no"
12620fi
12621rm -f conftest*
12622LIBS="$ac_save_LIBS"
12623
12624fi
12625if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12626 echo "$ac_t""yes" 1>&6
12627 cat >> confdefs.h <<\EOF
12628#define HAVE_XIM 1
12629EOF
12630
12631else
12632 echo "$ac_t""no" 1>&6
12633fi
12634
12635 fi
12636
12637 if test "$wxUSE_MGL" = 1; then
12638 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12639echo "configure:12640: checking for SciTech MGL library" >&5
12640 if test "x$MGL_ROOT" = x ; then
12641 echo "$ac_t""not found" 1>&6
12642 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12643 else
12644 echo "$ac_t""$MGL_ROOT" 1>&6
12645 fi
12646
12647 case "${host}" in
12648 *-*-linux* )
12649 mgl_os=linux/gcc/glibc
12650 ;;
12651 *-pc-msdosdjgpp )
12652 mgl_os=dos32/dj2
12653 ;;
12654 *)
12655 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12656 esac
12657
12658 mgl_lib_type=""
12659
12660 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12661 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12662 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12663 mgl_lib_type=debug
12664 fi
12665 fi
12666 if test "x$mgl_lib_type" = x ; then
12667 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12668 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12669 mgl_lib_type=release
12670 else
12671 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12672 fi
12673 fi
12674
12675 wxUSE_UNIVERSAL="yes"
12676
12677 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12678 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12679
12680 AFMINSTALL=afminstall
12681 TOOLKIT=MGL
12682 GUIDIST=MGL_DIST
12683 fi
12684
12685 if test "$wxUSE_MICROWIN" = 1; then
12686 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12687echo "configure:12688: checking for MicroWindows" >&5
12688 if test "x$MICROWINDOWS" = x ; then
12689 echo "$ac_t""not found" 1>&6
12690 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12691 else
12692 echo "$ac_t""$MICROWINDOWS" 1>&6
12693 fi
12694
12695 if test -f $MICROWINDOWS/lib/libmwin.a; then
12696 echo "$ac_t""MicroWindows' libraries found." 1>&6
12697 else
12698 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12699 fi
12700
12701 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12702 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12703
12704 wxUSE_UNIVERSAL="yes"
12705
12706 AFMINSTALL=afminstall
12707 TOOLKIT=MICROWIN
12708 GUIDIST=MICROWIN_DIST
12709
12710 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12711 fi
12712
12713 if test "$wxUSE_X11" = 1; then
12714 # If we find X, set shell vars x_includes and x_libraries to the
12715# paths, otherwise set no_x=yes.
12716# Uses ac_ vars as temps to allow command line to override cache and checks.
12717# --without-x overrides everything else, but does not touch the cache.
12718echo $ac_n "checking for X""... $ac_c" 1>&6
12719echo "configure:12720: checking for X" >&5
12720
12721# Check whether --with-x or --without-x was given.
12722if test "${with_x+set}" = set; then
12723 withval="$with_x"
12724 :
12725fi
12726
12727# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12728if test "x$with_x" = xno; then
12729 # The user explicitly disabled X.
12730 have_x=disabled
12731else
12732 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12733 # Both variables are already set.
12734 have_x=yes
12735 else
12736if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12737 echo $ac_n "(cached) $ac_c" 1>&6
12738else
12739 # One or both of the vars are not set, and there is no cached value.
12740ac_x_includes=NO ac_x_libraries=NO
12741rm -fr conftestdir
12742if mkdir conftestdir; then
12743 cd conftestdir
12744 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12745 cat > Imakefile <<'EOF'
12746acfindx:
12747 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12748EOF
12749 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12751 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12752 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12753 for ac_extension in a so sl; do
12754 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12755 test -f $ac_im_libdir/libX11.$ac_extension; then
12756 ac_im_usrlibdir=$ac_im_libdir; break
12757 fi
12758 done
12759 # Screen out bogus values from the imake configuration. They are
12760 # bogus both because they are the default anyway, and because
12761 # using them would break gcc on systems where it needs fixed includes.
12762 case "$ac_im_incroot" in
12763 /usr/include) ;;
12764 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12765 esac
12766 case "$ac_im_usrlibdir" in
12767 /usr/lib | /lib) ;;
12768 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12769 esac
12770 fi
12771 cd ..
12772 rm -fr conftestdir
12773fi
12774
12775if test "$ac_x_includes" = NO; then
12776 # Guess where to find include files, by looking for this one X11 .h file.
12777 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12778
12779 # First, try using that file with no special directory specified.
12780cat > conftest.$ac_ext <<EOF
12781#line 12782 "configure"
12782#include "confdefs.h"
12783#include <$x_direct_test_include>
12784EOF
12785ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12786{ (eval echo configure:12787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12787ac_err=`grep -v '^ *+' conftest.out`
12788if test -z "$ac_err"; then
12789 rm -rf conftest*
12790 # We can compile using X headers with no special include directory.
12791ac_x_includes=
12792else
12793 echo "$ac_err" >&5
12794 echo "configure: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12796 rm -rf conftest*
12797 # Look for the header file in a standard set of common directories.
12798# Check X11 before X11Rn because it is often a symlink to the current release.
12799 for ac_dir in \
12800 /usr/X11/include \
12801 /usr/X11R6/include \
12802 /usr/X11R5/include \
12803 /usr/X11R4/include \
12804 \
12805 /usr/include/X11 \
12806 /usr/include/X11R6 \
12807 /usr/include/X11R5 \
12808 /usr/include/X11R4 \
12809 \
12810 /usr/local/X11/include \
12811 /usr/local/X11R6/include \
12812 /usr/local/X11R5/include \
12813 /usr/local/X11R4/include \
12814 \
12815 /usr/local/include/X11 \
12816 /usr/local/include/X11R6 \
12817 /usr/local/include/X11R5 \
12818 /usr/local/include/X11R4 \
12819 \
12820 /usr/X386/include \
12821 /usr/x386/include \
12822 /usr/XFree86/include/X11 \
12823 \
12824 /usr/include \
12825 /usr/local/include \
12826 /usr/unsupported/include \
12827 /usr/athena/include \
12828 /usr/local/x11r5/include \
12829 /usr/lpp/Xamples/include \
12830 \
12831 /usr/openwin/include \
12832 /usr/openwin/share/include \
12833 ; \
12834 do
12835 if test -r "$ac_dir/$x_direct_test_include"; then
12836 ac_x_includes=$ac_dir
12837 break
12838 fi
12839 done
12840fi
12841rm -f conftest*
12842fi # $ac_x_includes = NO
12843
12844if test "$ac_x_libraries" = NO; then
12845 # Check for the libraries.
12846
12847 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12848 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12849
12850 # See if we find them without any special options.
12851 # Don't add to $LIBS permanently.
12852 ac_save_LIBS="$LIBS"
12853 LIBS="-l$x_direct_test_library $LIBS"
12854cat > conftest.$ac_ext <<EOF
12855#line 12856 "configure"
12856#include "confdefs.h"
12857
12858int main() {
12859${x_direct_test_function}()
12860; return 0; }
12861EOF
12862if { (eval echo configure:12863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12863 rm -rf conftest*
12864 LIBS="$ac_save_LIBS"
12865# We can link X programs with no special library path.
12866ac_x_libraries=
12867else
12868 echo "configure: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12870 rm -rf conftest*
12871 LIBS="$ac_save_LIBS"
12872# First see if replacing the include by lib works.
12873# Check X11 before X11Rn because it is often a symlink to the current release.
12874for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12875 /usr/X11/lib \
12876 /usr/X11R6/lib \
12877 /usr/X11R5/lib \
12878 /usr/X11R4/lib \
12879 \
12880 /usr/lib/X11 \
12881 /usr/lib/X11R6 \
12882 /usr/lib/X11R5 \
12883 /usr/lib/X11R4 \
12884 \
12885 /usr/local/X11/lib \
12886 /usr/local/X11R6/lib \
12887 /usr/local/X11R5/lib \
12888 /usr/local/X11R4/lib \
12889 \
12890 /usr/local/lib/X11 \
12891 /usr/local/lib/X11R6 \
12892 /usr/local/lib/X11R5 \
12893 /usr/local/lib/X11R4 \
12894 \
12895 /usr/X386/lib \
12896 /usr/x386/lib \
12897 /usr/XFree86/lib/X11 \
12898 \
12899 /usr/lib \
12900 /usr/local/lib \
12901 /usr/unsupported/lib \
12902 /usr/athena/lib \
12903 /usr/local/x11r5/lib \
12904 /usr/lpp/Xamples/lib \
12905 /lib/usr/lib/X11 \
12906 \
12907 /usr/openwin/lib \
12908 /usr/openwin/share/lib \
12909 ; \
12910do
12911 for ac_extension in a so sl; do
12912 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12913 ac_x_libraries=$ac_dir
12914 break 2
12915 fi
12916 done
12917done
12918fi
12919rm -f conftest*
12920fi # $ac_x_libraries = NO
12921
12922if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12923 # Didn't find X anywhere. Cache the known absence of X.
12924 ac_cv_have_x="have_x=no"
12925else
12926 # Record where we found X for the cache.
12927 ac_cv_have_x="have_x=yes \
12928 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12929fi
12930fi
12931 fi
12932 eval "$ac_cv_have_x"
12933fi # $with_x != no
12934
12935if test "$have_x" != yes; then
12936 echo "$ac_t""$have_x" 1>&6
12937 no_x=yes
12938else
12939 # If each of the values was on the command line, it overrides each guess.
12940 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12941 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12942 # Update the cache value to reflect the command line values.
12943 ac_cv_have_x="have_x=yes \
12944 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12945 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12946fi
12947
12948if test "$no_x" = yes; then
12949 # Not all programs may use this symbol, but it does not hurt to define it.
12950 cat >> confdefs.h <<\EOF
12951#define X_DISPLAY_MISSING 1
12952EOF
12953
12954 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12955else
12956 if test -n "$x_includes"; then
12957 X_CFLAGS="$X_CFLAGS -I$x_includes"
12958 fi
12959
12960 # It would also be nice to do this for all -L options, not just this one.
12961 if test -n "$x_libraries"; then
12962 X_LIBS="$X_LIBS -L$x_libraries"
12963 # For Solaris; some versions of Sun CC require a space after -R and
12964 # others require no space. Words are not sufficient . . . .
12965 case "`(uname -sr) 2>/dev/null`" in
12966 "SunOS 5"*)
12967 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12968echo "configure:12969: checking whether -R must be followed by a space" >&5
12969 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12970 cat > conftest.$ac_ext <<EOF
12971#line 12972 "configure"
12972#include "confdefs.h"
12973
12974int main() {
12975
12976; return 0; }
12977EOF
12978if { (eval echo configure:12979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
12979 rm -rf conftest*
12980 ac_R_nospace=yes
12981else
12982 echo "configure: failed program was:" >&5
12983 cat conftest.$ac_ext >&5
12984 rm -rf conftest*
12985 ac_R_nospace=no
12986fi
12987rm -f conftest*
12988 if test $ac_R_nospace = yes; then
12989 echo "$ac_t""no" 1>&6
12990 X_LIBS="$X_LIBS -R$x_libraries"
12991 else
12992 LIBS="$ac_xsave_LIBS -R $x_libraries"
12993 cat > conftest.$ac_ext <<EOF
12994#line 12995 "configure"
12995#include "confdefs.h"
12996
12997int main() {
12998
12999; return 0; }
13000EOF
13001if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13002 rm -rf conftest*
13003 ac_R_space=yes
13004else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -rf conftest*
13008 ac_R_space=no
13009fi
13010rm -f conftest*
13011 if test $ac_R_space = yes; then
13012 echo "$ac_t""yes" 1>&6
13013 X_LIBS="$X_LIBS -R $x_libraries"
13014 else
13015 echo "$ac_t""neither works" 1>&6
13016 fi
13017 fi
13018 LIBS="$ac_xsave_LIBS"
13019 esac
13020 fi
13021
13022 # Check for system-dependent libraries X programs must link with.
13023 # Do this before checking for the system-independent R6 libraries
13024 # (-lICE), since we may need -lsocket or whatever for X linking.
13025
13026 if test "$ISC" = yes; then
13027 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13028 else
13029 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13030 # libraries were built with DECnet support. And karl@cs.umb.edu says
13031 # the Alpha needs dnet_stub (dnet does not exist).
13032 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13033echo "configure:13034: checking for dnet_ntoa in -ldnet" >&5
13034ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13036 echo $ac_n "(cached) $ac_c" 1>&6
13037else
13038 ac_save_LIBS="$LIBS"
13039LIBS="-ldnet $LIBS"
13040cat > conftest.$ac_ext <<EOF
13041#line 13042 "configure"
13042#include "confdefs.h"
13043/* Override any gcc2 internal prototype to avoid an error. */
13044/* We use char because int might match the return type of a gcc2
13045 builtin and then its argument prototype would still apply. */
13046char dnet_ntoa();
13047
13048int main() {
13049dnet_ntoa()
13050; return 0; }
13051EOF
13052if { (eval echo configure:13053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13053 rm -rf conftest*
13054 eval "ac_cv_lib_$ac_lib_var=yes"
13055else
13056 echo "configure: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 rm -rf conftest*
13059 eval "ac_cv_lib_$ac_lib_var=no"
13060fi
13061rm -f conftest*
13062LIBS="$ac_save_LIBS"
13063
13064fi
13065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13066 echo "$ac_t""yes" 1>&6
13067 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13068else
13069 echo "$ac_t""no" 1>&6
13070fi
13071
13072 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13073 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13074echo "configure:13075: checking for dnet_ntoa in -ldnet_stub" >&5
13075ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13078else
13079 ac_save_LIBS="$LIBS"
13080LIBS="-ldnet_stub $LIBS"
13081cat > conftest.$ac_ext <<EOF
13082#line 13083 "configure"
13083#include "confdefs.h"
13084/* Override any gcc2 internal prototype to avoid an error. */
13085/* We use char because int might match the return type of a gcc2
13086 builtin and then its argument prototype would still apply. */
13087char dnet_ntoa();
13088
13089int main() {
13090dnet_ntoa()
13091; return 0; }
13092EOF
13093if { (eval echo configure:13094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13094 rm -rf conftest*
13095 eval "ac_cv_lib_$ac_lib_var=yes"
13096else
13097 echo "configure: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13099 rm -rf conftest*
13100 eval "ac_cv_lib_$ac_lib_var=no"
13101fi
13102rm -f conftest*
13103LIBS="$ac_save_LIBS"
13104
13105fi
13106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13107 echo "$ac_t""yes" 1>&6
13108 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13109else
13110 echo "$ac_t""no" 1>&6
13111fi
13112
13113 fi
13114
13115 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13116 # to get the SysV transport functions.
13117 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13118 # needs -lnsl.
13119 # The nsl library prevents programs from opening the X display
13120 # on Irix 5.2, according to dickey@clark.net.
13121 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13122echo "configure:13123: checking for gethostbyname" >&5
13123if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13124 echo $ac_n "(cached) $ac_c" 1>&6
13125else
13126 cat > conftest.$ac_ext <<EOF
13127#line 13128 "configure"
13128#include "confdefs.h"
13129/* System header to define __stub macros and hopefully few prototypes,
13130 which can conflict with char gethostbyname(); below. */
13131#include <assert.h>
13132/* Override any gcc2 internal prototype to avoid an error. */
13133/* We use char because int might match the return type of a gcc2
13134 builtin and then its argument prototype would still apply. */
13135char gethostbyname();
13136
13137int main() {
13138
13139/* The GNU C library defines this for functions which it implements
13140 to always fail with ENOSYS. Some functions are actually named
13141 something starting with __ and the normal name is an alias. */
13142#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13143choke me
13144#else
13145gethostbyname();
13146#endif
13147
13148; return 0; }
13149EOF
13150if { (eval echo configure:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13151 rm -rf conftest*
13152 eval "ac_cv_func_gethostbyname=yes"
13153else
13154 echo "configure: failed program was:" >&5
13155 cat conftest.$ac_ext >&5
13156 rm -rf conftest*
13157 eval "ac_cv_func_gethostbyname=no"
13158fi
13159rm -f conftest*
13160fi
13161
13162if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13163 echo "$ac_t""yes" 1>&6
13164 :
13165else
13166 echo "$ac_t""no" 1>&6
13167fi
13168
13169 if test $ac_cv_func_gethostbyname = no; then
13170 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13171echo "configure:13172: checking for gethostbyname in -lnsl" >&5
13172ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13174 echo $ac_n "(cached) $ac_c" 1>&6
13175else
13176 ac_save_LIBS="$LIBS"
13177LIBS="-lnsl $LIBS"
13178cat > conftest.$ac_ext <<EOF
13179#line 13180 "configure"
13180#include "confdefs.h"
13181/* Override any gcc2 internal prototype to avoid an error. */
13182/* We use char because int might match the return type of a gcc2
13183 builtin and then its argument prototype would still apply. */
13184char gethostbyname();
13185
13186int main() {
13187gethostbyname()
13188; return 0; }
13189EOF
13190if { (eval echo configure:13191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13191 rm -rf conftest*
13192 eval "ac_cv_lib_$ac_lib_var=yes"
13193else
13194 echo "configure: failed program was:" >&5
13195 cat conftest.$ac_ext >&5
13196 rm -rf conftest*
13197 eval "ac_cv_lib_$ac_lib_var=no"
13198fi
13199rm -f conftest*
13200LIBS="$ac_save_LIBS"
13201
13202fi
13203if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13204 echo "$ac_t""yes" 1>&6
13205 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13206else
13207 echo "$ac_t""no" 1>&6
13208fi
13209
13210 fi
13211
13212 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13213 # socket/setsockopt and other routines are undefined under SCO ODT
13214 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13215 # on later versions), says simon@lia.di.epfl.ch: it contains
13216 # gethostby* variants that don't use the nameserver (or something).
13217 # -lsocket must be given before -lnsl if both are needed.
13218 # We assume that if connect needs -lnsl, so does gethostbyname.
13219 echo $ac_n "checking for connect""... $ac_c" 1>&6
13220echo "configure:13221: checking for connect" >&5
13221if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13222 echo $ac_n "(cached) $ac_c" 1>&6
13223else
13224 cat > conftest.$ac_ext <<EOF
13225#line 13226 "configure"
13226#include "confdefs.h"
13227/* System header to define __stub macros and hopefully few prototypes,
13228 which can conflict with char connect(); below. */
13229#include <assert.h>
13230/* Override any gcc2 internal prototype to avoid an error. */
13231/* We use char because int might match the return type of a gcc2
13232 builtin and then its argument prototype would still apply. */
13233char connect();
13234
13235int main() {
13236
13237/* The GNU C library defines this for functions which it implements
13238 to always fail with ENOSYS. Some functions are actually named
13239 something starting with __ and the normal name is an alias. */
13240#if defined (__stub_connect) || defined (__stub___connect)
13241choke me
13242#else
13243connect();
13244#endif
13245
13246; return 0; }
13247EOF
13248if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13249 rm -rf conftest*
13250 eval "ac_cv_func_connect=yes"
13251else
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 rm -rf conftest*
13255 eval "ac_cv_func_connect=no"
13256fi
13257rm -f conftest*
13258fi
13259
13260if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13261 echo "$ac_t""yes" 1>&6
13262 :
13263else
13264 echo "$ac_t""no" 1>&6
13265fi
13266
13267 if test $ac_cv_func_connect = no; then
13268 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13269echo "configure:13270: checking for connect in -lsocket" >&5
13270ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13272 echo $ac_n "(cached) $ac_c" 1>&6
13273else
13274 ac_save_LIBS="$LIBS"
13275LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13276cat > conftest.$ac_ext <<EOF
13277#line 13278 "configure"
13278#include "confdefs.h"
13279/* Override any gcc2 internal prototype to avoid an error. */
13280/* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13282char connect();
13283
13284int main() {
13285connect()
13286; return 0; }
13287EOF
13288if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13289 rm -rf conftest*
13290 eval "ac_cv_lib_$ac_lib_var=yes"
13291else
13292 echo "configure: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13294 rm -rf conftest*
13295 eval "ac_cv_lib_$ac_lib_var=no"
13296fi
13297rm -f conftest*
13298LIBS="$ac_save_LIBS"
13299
13300fi
13301if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13302 echo "$ac_t""yes" 1>&6
13303 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13304else
13305 echo "$ac_t""no" 1>&6
13306fi
13307
13308 fi
13309
13310 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13311 echo $ac_n "checking for remove""... $ac_c" 1>&6
13312echo "configure:13313: checking for remove" >&5
13313if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13314 echo $ac_n "(cached) $ac_c" 1>&6
13315else
13316 cat > conftest.$ac_ext <<EOF
13317#line 13318 "configure"
13318#include "confdefs.h"
13319/* System header to define __stub macros and hopefully few prototypes,
13320 which can conflict with char remove(); below. */
13321#include <assert.h>
13322/* Override any gcc2 internal prototype to avoid an error. */
13323/* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325char remove();
13326
13327int main() {
13328
13329/* The GNU C library defines this for functions which it implements
13330 to always fail with ENOSYS. Some functions are actually named
13331 something starting with __ and the normal name is an alias. */
13332#if defined (__stub_remove) || defined (__stub___remove)
13333choke me
13334#else
13335remove();
13336#endif
13337
13338; return 0; }
13339EOF
13340if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13341 rm -rf conftest*
13342 eval "ac_cv_func_remove=yes"
13343else
13344 echo "configure: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13346 rm -rf conftest*
13347 eval "ac_cv_func_remove=no"
13348fi
13349rm -f conftest*
13350fi
13351
13352if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13353 echo "$ac_t""yes" 1>&6
13354 :
13355else
13356 echo "$ac_t""no" 1>&6
13357fi
13358
13359 if test $ac_cv_func_remove = no; then
13360 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13361echo "configure:13362: checking for remove in -lposix" >&5
13362ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13363if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13364 echo $ac_n "(cached) $ac_c" 1>&6
13365else
13366 ac_save_LIBS="$LIBS"
13367LIBS="-lposix $LIBS"
13368cat > conftest.$ac_ext <<EOF
13369#line 13370 "configure"
13370#include "confdefs.h"
13371/* Override any gcc2 internal prototype to avoid an error. */
13372/* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
13374char remove();
13375
13376int main() {
13377remove()
13378; return 0; }
13379EOF
13380if { (eval echo configure:13381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13381 rm -rf conftest*
13382 eval "ac_cv_lib_$ac_lib_var=yes"
13383else
13384 echo "configure: failed program was:" >&5
13385 cat conftest.$ac_ext >&5
13386 rm -rf conftest*
13387 eval "ac_cv_lib_$ac_lib_var=no"
13388fi
13389rm -f conftest*
13390LIBS="$ac_save_LIBS"
13391
13392fi
13393if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13394 echo "$ac_t""yes" 1>&6
13395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13396else
13397 echo "$ac_t""no" 1>&6
13398fi
13399
13400 fi
13401
13402 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13403 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13404echo "configure:13405: checking for shmat" >&5
13405if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13406 echo $ac_n "(cached) $ac_c" 1>&6
13407else
13408 cat > conftest.$ac_ext <<EOF
13409#line 13410 "configure"
13410#include "confdefs.h"
13411/* System header to define __stub macros and hopefully few prototypes,
13412 which can conflict with char shmat(); below. */
13413#include <assert.h>
13414/* Override any gcc2 internal prototype to avoid an error. */
13415/* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417char shmat();
13418
13419int main() {
13420
13421/* The GNU C library defines this for functions which it implements
13422 to always fail with ENOSYS. Some functions are actually named
13423 something starting with __ and the normal name is an alias. */
13424#if defined (__stub_shmat) || defined (__stub___shmat)
13425choke me
13426#else
13427shmat();
13428#endif
13429
13430; return 0; }
13431EOF
13432if { (eval echo configure:13433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13433 rm -rf conftest*
13434 eval "ac_cv_func_shmat=yes"
13435else
13436 echo "configure: failed program was:" >&5
13437 cat conftest.$ac_ext >&5
13438 rm -rf conftest*
13439 eval "ac_cv_func_shmat=no"
13440fi
13441rm -f conftest*
13442fi
13443
13444if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13445 echo "$ac_t""yes" 1>&6
13446 :
13447else
13448 echo "$ac_t""no" 1>&6
13449fi
13450
13451 if test $ac_cv_func_shmat = no; then
13452 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13453echo "configure:13454: checking for shmat in -lipc" >&5
13454ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13455if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13457else
13458 ac_save_LIBS="$LIBS"
13459LIBS="-lipc $LIBS"
13460cat > conftest.$ac_ext <<EOF
13461#line 13462 "configure"
13462#include "confdefs.h"
13463/* Override any gcc2 internal prototype to avoid an error. */
13464/* We use char because int might match the return type of a gcc2
13465 builtin and then its argument prototype would still apply. */
13466char shmat();
13467
13468int main() {
13469shmat()
13470; return 0; }
13471EOF
13472if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13473 rm -rf conftest*
13474 eval "ac_cv_lib_$ac_lib_var=yes"
13475else
13476 echo "configure: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13478 rm -rf conftest*
13479 eval "ac_cv_lib_$ac_lib_var=no"
13480fi
13481rm -f conftest*
13482LIBS="$ac_save_LIBS"
13483
13484fi
13485if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13486 echo "$ac_t""yes" 1>&6
13487 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13488else
13489 echo "$ac_t""no" 1>&6
13490fi
13491
13492 fi
13493 fi
13494
13495 # Check for libraries that X11R6 Xt/Xaw programs need.
13496 ac_save_LDFLAGS="$LDFLAGS"
13497 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13498 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13499 # check for ICE first), but we must link in the order -lSM -lICE or
13500 # we get undefined symbols. So assume we have SM if we have ICE.
13501 # These have to be linked with before -lX11, unlike the other
13502 # libraries we check for below, so use a different variable.
13503 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13504 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13505echo "configure:13506: checking for IceConnectionNumber in -lICE" >&5
13506ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13507if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13508 echo $ac_n "(cached) $ac_c" 1>&6
13509else
13510 ac_save_LIBS="$LIBS"
13511LIBS="-lICE $LIBS"
13512cat > conftest.$ac_ext <<EOF
13513#line 13514 "configure"
13514#include "confdefs.h"
13515/* Override any gcc2 internal prototype to avoid an error. */
13516/* We use char because int might match the return type of a gcc2
13517 builtin and then its argument prototype would still apply. */
13518char IceConnectionNumber();
13519
13520int main() {
13521IceConnectionNumber()
13522; return 0; }
13523EOF
13524if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13525 rm -rf conftest*
13526 eval "ac_cv_lib_$ac_lib_var=yes"
13527else
13528 echo "configure: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13530 rm -rf conftest*
13531 eval "ac_cv_lib_$ac_lib_var=no"
13532fi
13533rm -f conftest*
13534LIBS="$ac_save_LIBS"
13535
13536fi
13537if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13538 echo "$ac_t""yes" 1>&6
13539 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13540else
13541 echo "$ac_t""no" 1>&6
13542fi
13543
13544 LDFLAGS="$ac_save_LDFLAGS"
13545
13546fi
13547
13548
13549 if test "$no_x" = "yes"; then
13550 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13551 fi
13552
13553 GUI_TK_LIBRARY="$X_LIBS"
13554 TOOLKIT_INCLUDE="$X_CFLAGS"
13555 AFMINSTALL=afminstall
13556 COMPILED_X_PROGRAM=0
13557
13558 if test "$wxUSE_NANOX" = "yes"; then
13559 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13560echo "configure:13561: checking for MicroWindows/NanoX distribution" >&5
13561 if test "x$MICROWIN" = x ; then
13562 echo "$ac_t""not found" 1>&6
13563 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13564 else
13565 echo "$ac_t""$MICROWIN" 1>&6
13566 cat >> confdefs.h <<\EOF
13567#define wxUSE_NANOX 1
13568EOF
13569
13570 fi
13571 fi
13572
13573 xpm_link=
13574 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13575echo "configure:13576: checking for Xpm library" >&5
13576
13577ac_find_libraries=
13578for ac_dir in $SEARCH_LIB;
13579 do
13580 for ac_extension in a so sl dylib; do
13581 if test -f "$ac_dir/libXpm.$ac_extension"; then
13582 ac_find_libraries=$ac_dir
13583 break 2
13584 fi
13585 done
13586 done
13587
13588 if test "$ac_find_libraries" != "" ; then
13589
13590 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13591 result=$?
13592 if test $result = 0; then
13593 ac_path_to_link=""
13594 else
13595 ac_path_to_link=" -L$ac_find_libraries"
13596 fi
13597
13598 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13599 xpm_link=" -lXpm"
13600 cat >> confdefs.h <<\EOF
13601#define wxHAVE_LIB_XPM 1
13602EOF
13603
13604 echo "$ac_t""found at $ac_find_libraries" 1>&6
13605 else
13606 cat > conftest.$ac_ext <<EOF
13607#line 13608 "configure"
13608#include "confdefs.h"
13609
13610 #include <X11/xpm.h>
13611
13612int main() {
13613
13614 int version;
13615 version = XpmLibraryVersion();
13616
13617; return 0; }
13618EOF
13619if { (eval echo configure:13620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13620 rm -rf conftest*
13621
13622 xpm_link=" -lXpm"
13623 cat >> confdefs.h <<\EOF
13624#define wxHAVE_LIB_XPM 1
13625EOF
13626
13627 echo "$ac_t""found in default search path" 1>&6
13628 COMPILED_X_PROGRAM=0
13629
13630else
13631 echo "configure: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13633 rm -rf conftest*
13634
13635 echo "$ac_t""no" 1>&6
13636 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13637
13638
13639fi
13640rm -f conftest*
13641 fi
13642
13643 wxUSE_UNIVERSAL="yes"
13644
13645 if test "$wxUSE_NANOX" = "yes"; then
13646 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13647 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"
13648 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13649 else
13650 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13651 fi
13652
13653 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13654 TOOLKIT=X11
13655 GUIDIST=X11_DIST
13656 fi
13657
13658 if test "$wxUSE_WINE" = 1; then
13659 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13660echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13661echo "configure:13662: checking for windows.h" >&5
13662if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13663 echo $ac_n "(cached) $ac_c" 1>&6
13664else
13665 cat > conftest.$ac_ext <<EOF
13666#line 13667 "configure"
13667#include "confdefs.h"
13668#include <windows.h>
13669EOF
13670ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13671{ (eval echo configure:13672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13672ac_err=`grep -v '^ *+' conftest.out`
13673if test -z "$ac_err"; then
13674 rm -rf conftest*
13675 eval "ac_cv_header_$ac_safe=yes"
13676else
13677 echo "$ac_err" >&5
13678 echo "configure: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 rm -rf conftest*
13681 eval "ac_cv_header_$ac_safe=no"
13682fi
13683rm -f conftest*
13684fi
13685if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13686 echo "$ac_t""yes" 1>&6
13687 :
13688else
13689 echo "$ac_t""no" 1>&6
13690
13691 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13692
13693fi
13694
13695
13696 xpm_link=
13697 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13698echo "configure:13699: checking for Xpm library" >&5
13699
13700ac_find_libraries=
13701for ac_dir in $SEARCH_LIB;
13702 do
13703 for ac_extension in a so sl dylib; do
13704 if test -f "$ac_dir/libXpm.$ac_extension"; then
13705 ac_find_libraries=$ac_dir
13706 break 2
13707 fi
13708 done
13709 done
13710
13711 if test "$ac_find_libraries" != "" ; then
13712 GUI_TK_LIBRARY="-L$ac_find_libraries"
13713 xpm_link=" -lXpm"
13714 cat >> confdefs.h <<\EOF
13715#define wxHAVE_LIB_XPM 1
13716EOF
13717
13718 echo "$ac_t""found at $ac_find_libraries" 1>&6
13719 else
13720 echo "$ac_t""no" 1>&6
13721 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13722 fi
13723
13724 mesa_link=
13725 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13726echo "configure:13727: checking for Mesa library" >&5
13727
13728ac_find_libraries=
13729for ac_dir in $SEARCH_LIB;
13730 do
13731 for ac_extension in a so sl dylib; do
13732 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13733 ac_find_libraries=$ac_dir
13734 break 2
13735 fi
13736 done
13737 done
13738
13739 if test "$ac_find_libraries" != "" ; then
13740 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13741 mesa_link=" -lMesaGL"
13742 echo "$ac_t""found at $ac_find_libraries" 1>&6
13743 else
13744 { echo "configure: error: no" 1>&2; exit 1; }
13745 fi
13746
13747 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13748 TOOLKIT=MSW
13749 GUIDIST=MSW_DIST
13750 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13751 fi
13752
13753 if test "$wxUSE_MOTIF" = 1; then
13754 if test "$no_x" = yes; then
13755 # Not all programs may use this symbol, but it does not hurt to define it.
13756 cat >> confdefs.h <<\EOF
13757#define X_DISPLAY_MISSING 1
13758EOF
13759
13760 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13761else
13762 if test -n "$x_includes"; then
13763 X_CFLAGS="$X_CFLAGS -I$x_includes"
13764 fi
13765
13766 # It would also be nice to do this for all -L options, not just this one.
13767 if test -n "$x_libraries"; then
13768 X_LIBS="$X_LIBS -L$x_libraries"
13769 # For Solaris; some versions of Sun CC require a space after -R and
13770 # others require no space. Words are not sufficient . . . .
13771 case "`(uname -sr) 2>/dev/null`" in
13772 "SunOS 5"*)
13773 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13774echo "configure:13775: checking whether -R must be followed by a space" >&5
13775 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13776 cat > conftest.$ac_ext <<EOF
13777#line 13778 "configure"
13778#include "confdefs.h"
13779
13780int main() {
13781
13782; return 0; }
13783EOF
13784if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13785 rm -rf conftest*
13786 ac_R_nospace=yes
13787else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 ac_R_nospace=no
13792fi
13793rm -f conftest*
13794 if test $ac_R_nospace = yes; then
13795 echo "$ac_t""no" 1>&6
13796 X_LIBS="$X_LIBS -R$x_libraries"
13797 else
13798 LIBS="$ac_xsave_LIBS -R $x_libraries"
13799 cat > conftest.$ac_ext <<EOF
13800#line 13801 "configure"
13801#include "confdefs.h"
13802
13803int main() {
13804
13805; return 0; }
13806EOF
13807if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13808 rm -rf conftest*
13809 ac_R_space=yes
13810else
13811 echo "configure: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 rm -rf conftest*
13814 ac_R_space=no
13815fi
13816rm -f conftest*
13817 if test $ac_R_space = yes; then
13818 echo "$ac_t""yes" 1>&6
13819 X_LIBS="$X_LIBS -R $x_libraries"
13820 else
13821 echo "$ac_t""neither works" 1>&6
13822 fi
13823 fi
13824 LIBS="$ac_xsave_LIBS"
13825 esac
13826 fi
13827
13828 # Check for system-dependent libraries X programs must link with.
13829 # Do this before checking for the system-independent R6 libraries
13830 # (-lICE), since we may need -lsocket or whatever for X linking.
13831
13832 if test "$ISC" = yes; then
13833 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13834 else
13835 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13836 # libraries were built with DECnet support. And karl@cs.umb.edu says
13837 # the Alpha needs dnet_stub (dnet does not exist).
13838 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13839echo "configure:13840: checking for dnet_ntoa in -ldnet" >&5
13840ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13841if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13842 echo $ac_n "(cached) $ac_c" 1>&6
13843else
13844 ac_save_LIBS="$LIBS"
13845LIBS="-ldnet $LIBS"
13846cat > conftest.$ac_ext <<EOF
13847#line 13848 "configure"
13848#include "confdefs.h"
13849/* Override any gcc2 internal prototype to avoid an error. */
13850/* We use char because int might match the return type of a gcc2
13851 builtin and then its argument prototype would still apply. */
13852char dnet_ntoa();
13853
13854int main() {
13855dnet_ntoa()
13856; return 0; }
13857EOF
13858if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13859 rm -rf conftest*
13860 eval "ac_cv_lib_$ac_lib_var=yes"
13861else
13862 echo "configure: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 rm -rf conftest*
13865 eval "ac_cv_lib_$ac_lib_var=no"
13866fi
13867rm -f conftest*
13868LIBS="$ac_save_LIBS"
13869
13870fi
13871if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13872 echo "$ac_t""yes" 1>&6
13873 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13874else
13875 echo "$ac_t""no" 1>&6
13876fi
13877
13878 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13879 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13880echo "configure:13881: checking for dnet_ntoa in -ldnet_stub" >&5
13881ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13882if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13883 echo $ac_n "(cached) $ac_c" 1>&6
13884else
13885 ac_save_LIBS="$LIBS"
13886LIBS="-ldnet_stub $LIBS"
13887cat > conftest.$ac_ext <<EOF
13888#line 13889 "configure"
13889#include "confdefs.h"
13890/* Override any gcc2 internal prototype to avoid an error. */
13891/* We use char because int might match the return type of a gcc2
13892 builtin and then its argument prototype would still apply. */
13893char dnet_ntoa();
13894
13895int main() {
13896dnet_ntoa()
13897; return 0; }
13898EOF
13899if { (eval echo configure:13900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13900 rm -rf conftest*
13901 eval "ac_cv_lib_$ac_lib_var=yes"
13902else
13903 echo "configure: failed program was:" >&5
13904 cat conftest.$ac_ext >&5
13905 rm -rf conftest*
13906 eval "ac_cv_lib_$ac_lib_var=no"
13907fi
13908rm -f conftest*
13909LIBS="$ac_save_LIBS"
13910
13911fi
13912if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13913 echo "$ac_t""yes" 1>&6
13914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13915else
13916 echo "$ac_t""no" 1>&6
13917fi
13918
13919 fi
13920
13921 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13922 # to get the SysV transport functions.
13923 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13924 # needs -lnsl.
13925 # The nsl library prevents programs from opening the X display
13926 # on Irix 5.2, according to dickey@clark.net.
13927 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13928echo "configure:13929: checking for gethostbyname" >&5
13929if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13930 echo $ac_n "(cached) $ac_c" 1>&6
13931else
13932 cat > conftest.$ac_ext <<EOF
13933#line 13934 "configure"
13934#include "confdefs.h"
13935/* System header to define __stub macros and hopefully few prototypes,
13936 which can conflict with char gethostbyname(); below. */
13937#include <assert.h>
13938/* Override any gcc2 internal prototype to avoid an error. */
13939/* We use char because int might match the return type of a gcc2
13940 builtin and then its argument prototype would still apply. */
13941char gethostbyname();
13942
13943int main() {
13944
13945/* The GNU C library defines this for functions which it implements
13946 to always fail with ENOSYS. Some functions are actually named
13947 something starting with __ and the normal name is an alias. */
13948#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13949choke me
13950#else
13951gethostbyname();
13952#endif
13953
13954; return 0; }
13955EOF
13956if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13957 rm -rf conftest*
13958 eval "ac_cv_func_gethostbyname=yes"
13959else
13960 echo "configure: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 rm -rf conftest*
13963 eval "ac_cv_func_gethostbyname=no"
13964fi
13965rm -f conftest*
13966fi
13967
13968if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13969 echo "$ac_t""yes" 1>&6
13970 :
13971else
13972 echo "$ac_t""no" 1>&6
13973fi
13974
13975 if test $ac_cv_func_gethostbyname = no; then
13976 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13977echo "configure:13978: checking for gethostbyname in -lnsl" >&5
13978ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13979if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13980 echo $ac_n "(cached) $ac_c" 1>&6
13981else
13982 ac_save_LIBS="$LIBS"
13983LIBS="-lnsl $LIBS"
13984cat > conftest.$ac_ext <<EOF
13985#line 13986 "configure"
13986#include "confdefs.h"
13987/* Override any gcc2 internal prototype to avoid an error. */
13988/* We use char because int might match the return type of a gcc2
13989 builtin and then its argument prototype would still apply. */
13990char gethostbyname();
13991
13992int main() {
13993gethostbyname()
13994; return 0; }
13995EOF
13996if { (eval echo configure:13997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
13997 rm -rf conftest*
13998 eval "ac_cv_lib_$ac_lib_var=yes"
13999else
14000 echo "configure: failed program was:" >&5
14001 cat conftest.$ac_ext >&5
14002 rm -rf conftest*
14003 eval "ac_cv_lib_$ac_lib_var=no"
14004fi
14005rm -f conftest*
14006LIBS="$ac_save_LIBS"
14007
14008fi
14009if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14010 echo "$ac_t""yes" 1>&6
14011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14012else
14013 echo "$ac_t""no" 1>&6
14014fi
14015
14016 fi
14017
14018 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14019 # socket/setsockopt and other routines are undefined under SCO ODT
14020 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14021 # on later versions), says simon@lia.di.epfl.ch: it contains
14022 # gethostby* variants that don't use the nameserver (or something).
14023 # -lsocket must be given before -lnsl if both are needed.
14024 # We assume that if connect needs -lnsl, so does gethostbyname.
14025 echo $ac_n "checking for connect""... $ac_c" 1>&6
14026echo "configure:14027: checking for connect" >&5
14027if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14028 echo $ac_n "(cached) $ac_c" 1>&6
14029else
14030 cat > conftest.$ac_ext <<EOF
14031#line 14032 "configure"
14032#include "confdefs.h"
14033/* System header to define __stub macros and hopefully few prototypes,
14034 which can conflict with char connect(); below. */
14035#include <assert.h>
14036/* Override any gcc2 internal prototype to avoid an error. */
14037/* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14039char connect();
14040
14041int main() {
14042
14043/* The GNU C library defines this for functions which it implements
14044 to always fail with ENOSYS. Some functions are actually named
14045 something starting with __ and the normal name is an alias. */
14046#if defined (__stub_connect) || defined (__stub___connect)
14047choke me
14048#else
14049connect();
14050#endif
14051
14052; return 0; }
14053EOF
14054if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14055 rm -rf conftest*
14056 eval "ac_cv_func_connect=yes"
14057else
14058 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 rm -rf conftest*
14061 eval "ac_cv_func_connect=no"
14062fi
14063rm -f conftest*
14064fi
14065
14066if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14067 echo "$ac_t""yes" 1>&6
14068 :
14069else
14070 echo "$ac_t""no" 1>&6
14071fi
14072
14073 if test $ac_cv_func_connect = no; then
14074 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14075echo "configure:14076: checking for connect in -lsocket" >&5
14076ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14077if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14078 echo $ac_n "(cached) $ac_c" 1>&6
14079else
14080 ac_save_LIBS="$LIBS"
14081LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14082cat > conftest.$ac_ext <<EOF
14083#line 14084 "configure"
14084#include "confdefs.h"
14085/* Override any gcc2 internal prototype to avoid an error. */
14086/* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14088char connect();
14089
14090int main() {
14091connect()
14092; return 0; }
14093EOF
14094if { (eval echo configure:14095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14095 rm -rf conftest*
14096 eval "ac_cv_lib_$ac_lib_var=yes"
14097else
14098 echo "configure: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14100 rm -rf conftest*
14101 eval "ac_cv_lib_$ac_lib_var=no"
14102fi
14103rm -f conftest*
14104LIBS="$ac_save_LIBS"
14105
14106fi
14107if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14108 echo "$ac_t""yes" 1>&6
14109 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14110else
14111 echo "$ac_t""no" 1>&6
14112fi
14113
14114 fi
14115
14116 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14117 echo $ac_n "checking for remove""... $ac_c" 1>&6
14118echo "configure:14119: checking for remove" >&5
14119if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14120 echo $ac_n "(cached) $ac_c" 1>&6
14121else
14122 cat > conftest.$ac_ext <<EOF
14123#line 14124 "configure"
14124#include "confdefs.h"
14125/* System header to define __stub macros and hopefully few prototypes,
14126 which can conflict with char remove(); below. */
14127#include <assert.h>
14128/* Override any gcc2 internal prototype to avoid an error. */
14129/* We use char because int might match the return type of a gcc2
14130 builtin and then its argument prototype would still apply. */
14131char remove();
14132
14133int main() {
14134
14135/* The GNU C library defines this for functions which it implements
14136 to always fail with ENOSYS. Some functions are actually named
14137 something starting with __ and the normal name is an alias. */
14138#if defined (__stub_remove) || defined (__stub___remove)
14139choke me
14140#else
14141remove();
14142#endif
14143
14144; return 0; }
14145EOF
14146if { (eval echo configure:14147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14147 rm -rf conftest*
14148 eval "ac_cv_func_remove=yes"
14149else
14150 echo "configure: failed program was:" >&5
14151 cat conftest.$ac_ext >&5
14152 rm -rf conftest*
14153 eval "ac_cv_func_remove=no"
14154fi
14155rm -f conftest*
14156fi
14157
14158if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14159 echo "$ac_t""yes" 1>&6
14160 :
14161else
14162 echo "$ac_t""no" 1>&6
14163fi
14164
14165 if test $ac_cv_func_remove = no; then
14166 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14167echo "configure:14168: checking for remove in -lposix" >&5
14168ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14170 echo $ac_n "(cached) $ac_c" 1>&6
14171else
14172 ac_save_LIBS="$LIBS"
14173LIBS="-lposix $LIBS"
14174cat > conftest.$ac_ext <<EOF
14175#line 14176 "configure"
14176#include "confdefs.h"
14177/* Override any gcc2 internal prototype to avoid an error. */
14178/* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14180char remove();
14181
14182int main() {
14183remove()
14184; return 0; }
14185EOF
14186if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14187 rm -rf conftest*
14188 eval "ac_cv_lib_$ac_lib_var=yes"
14189else
14190 echo "configure: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14192 rm -rf conftest*
14193 eval "ac_cv_lib_$ac_lib_var=no"
14194fi
14195rm -f conftest*
14196LIBS="$ac_save_LIBS"
14197
14198fi
14199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14200 echo "$ac_t""yes" 1>&6
14201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14202else
14203 echo "$ac_t""no" 1>&6
14204fi
14205
14206 fi
14207
14208 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14209 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14210echo "configure:14211: checking for shmat" >&5
14211if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14212 echo $ac_n "(cached) $ac_c" 1>&6
14213else
14214 cat > conftest.$ac_ext <<EOF
14215#line 14216 "configure"
14216#include "confdefs.h"
14217/* System header to define __stub macros and hopefully few prototypes,
14218 which can conflict with char shmat(); below. */
14219#include <assert.h>
14220/* Override any gcc2 internal prototype to avoid an error. */
14221/* We use char because int might match the return type of a gcc2
14222 builtin and then its argument prototype would still apply. */
14223char shmat();
14224
14225int main() {
14226
14227/* The GNU C library defines this for functions which it implements
14228 to always fail with ENOSYS. Some functions are actually named
14229 something starting with __ and the normal name is an alias. */
14230#if defined (__stub_shmat) || defined (__stub___shmat)
14231choke me
14232#else
14233shmat();
14234#endif
14235
14236; return 0; }
14237EOF
14238if { (eval echo configure:14239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14239 rm -rf conftest*
14240 eval "ac_cv_func_shmat=yes"
14241else
14242 echo "configure: failed program was:" >&5
14243 cat conftest.$ac_ext >&5
14244 rm -rf conftest*
14245 eval "ac_cv_func_shmat=no"
14246fi
14247rm -f conftest*
14248fi
14249
14250if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14251 echo "$ac_t""yes" 1>&6
14252 :
14253else
14254 echo "$ac_t""no" 1>&6
14255fi
14256
14257 if test $ac_cv_func_shmat = no; then
14258 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14259echo "configure:14260: checking for shmat in -lipc" >&5
14260ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14261if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14262 echo $ac_n "(cached) $ac_c" 1>&6
14263else
14264 ac_save_LIBS="$LIBS"
14265LIBS="-lipc $LIBS"
14266cat > conftest.$ac_ext <<EOF
14267#line 14268 "configure"
14268#include "confdefs.h"
14269/* Override any gcc2 internal prototype to avoid an error. */
14270/* We use char because int might match the return type of a gcc2
14271 builtin and then its argument prototype would still apply. */
14272char shmat();
14273
14274int main() {
14275shmat()
14276; return 0; }
14277EOF
14278if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14279 rm -rf conftest*
14280 eval "ac_cv_lib_$ac_lib_var=yes"
14281else
14282 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14284 rm -rf conftest*
14285 eval "ac_cv_lib_$ac_lib_var=no"
14286fi
14287rm -f conftest*
14288LIBS="$ac_save_LIBS"
14289
14290fi
14291if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14292 echo "$ac_t""yes" 1>&6
14293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14294else
14295 echo "$ac_t""no" 1>&6
14296fi
14297
14298 fi
14299 fi
14300
14301 # Check for libraries that X11R6 Xt/Xaw programs need.
14302 ac_save_LDFLAGS="$LDFLAGS"
14303 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14304 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14305 # check for ICE first), but we must link in the order -lSM -lICE or
14306 # we get undefined symbols. So assume we have SM if we have ICE.
14307 # These have to be linked with before -lX11, unlike the other
14308 # libraries we check for below, so use a different variable.
14309 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14310 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14311echo "configure:14312: checking for IceConnectionNumber in -lICE" >&5
14312ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14313if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
14315else
14316 ac_save_LIBS="$LIBS"
14317LIBS="-lICE $LIBS"
14318cat > conftest.$ac_ext <<EOF
14319#line 14320 "configure"
14320#include "confdefs.h"
14321/* Override any gcc2 internal prototype to avoid an error. */
14322/* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14324char IceConnectionNumber();
14325
14326int main() {
14327IceConnectionNumber()
14328; return 0; }
14329EOF
14330if { (eval echo configure:14331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14331 rm -rf conftest*
14332 eval "ac_cv_lib_$ac_lib_var=yes"
14333else
14334 echo "configure: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14336 rm -rf conftest*
14337 eval "ac_cv_lib_$ac_lib_var=no"
14338fi
14339rm -f conftest*
14340LIBS="$ac_save_LIBS"
14341
14342fi
14343if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14344 echo "$ac_t""yes" 1>&6
14345 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14346else
14347 echo "$ac_t""no" 1>&6
14348fi
14349
14350 LDFLAGS="$ac_save_LDFLAGS"
14351
14352fi
14353
14354
14355 if test "$no_x" = "yes"; then
14356 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14357 fi
14358
14359 GUI_TK_LIBRARY="$X_LIBS"
14360 TOOLKIT_INCLUDE="$X_CFLAGS"
14361 AFMINSTALL=afminstall
14362 COMPILED_X_PROGRAM=0
14363
14364 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14365echo "configure:14366: checking for Motif/Lesstif headers" >&5
14366
14367ac_find_includes=
14368for ac_dir in $SEARCH_INCLUDE;
14369 do
14370 if test -f "$ac_dir/Xm/Xm.h"; then
14371 ac_find_includes=$ac_dir
14372 break
14373 fi
14374 done
14375
14376 if test "$ac_find_includes" != "" ; then
14377 echo "$ac_t""found $ac_find_includes" 1>&6
14378 else
14379 cat > conftest.$ac_ext <<EOF
14380#line 14381 "configure"
14381#include "confdefs.h"
14382
14383 #include <Xm/Xm.h>
14384
14385int main() {
14386
14387 int version;
14388 version = xmUseVersion;
14389
14390; return 0; }
14391EOF
14392if { (eval echo configure:14393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14393 rm -rf conftest*
14394
14395 echo "$ac_t""found in default search path" 1>&6
14396 COMPILED_X_PROGRAM=1
14397
14398else
14399 echo "configure: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 rm -rf conftest*
14402
14403 echo "$ac_t""no" 1>&6
14404 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14405
14406
14407fi
14408rm -f conftest*
14409 fi
14410
14411 if test "$COMPILED_X_PROGRAM" = 0; then
14412 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14413echo "configure:14414: checking for Motif/Lesstif library" >&5
14414
14415ac_find_libraries=
14416for ac_dir in $SEARCH_LIB;
14417 do
14418 for ac_extension in a so sl dylib; do
14419 if test -f "$ac_dir/libXm.$ac_extension"; then
14420 ac_find_libraries=$ac_dir
14421 break 2
14422 fi
14423 done
14424 done
14425
14426 if test "$ac_find_libraries" != "" ; then
14427
14428 ac_path_to_include=$ac_find_includes
14429 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14430 result=$?
14431 if test $result = 0; then
14432 ac_path_to_include=""
14433 else
14434 ac_path_to_include=" -I$ac_find_includes"
14435 fi
14436
14437
14438 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14439 result=$?
14440 if test $result = 0; then
14441 ac_path_to_link=""
14442 else
14443 ac_path_to_link=" -L$ac_find_libraries"
14444 fi
14445
14446
14447 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14448 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14449 echo "$ac_t""found at $ac_find_libraries" 1>&6
14450 else
14451 cat > conftest.$ac_ext <<EOF
14452#line 14453 "configure"
14453#include "confdefs.h"
14454
14455 #include <Xm/Xm.h>
14456
14457int main() {
14458
14459 int version;
14460 version = xmUseVersion;
14461
14462; return 0; }
14463EOF
14464if { (eval echo configure:14465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14465 rm -rf conftest*
14466
14467 echo "$ac_t""found in default search path" 1>&6
14468 COMPILED_X_PROGRAM=1
14469
14470else
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14473 rm -rf conftest*
14474
14475 echo "$ac_t""no" 1>&6
14476 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14477
14478
14479fi
14480rm -f conftest*
14481 fi
14482 fi
14483
14484 xpm_link=
14485 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14486echo "configure:14487: checking for Xpm library" >&5
14487
14488ac_find_libraries=
14489for ac_dir in $SEARCH_LIB;
14490 do
14491 for ac_extension in a so sl dylib; do
14492 if test -f "$ac_dir/libXpm.$ac_extension"; then
14493 ac_find_libraries=$ac_dir
14494 break 2
14495 fi
14496 done
14497 done
14498
14499 if test "$ac_find_libraries" != "" ; then
14500
14501 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14502 result=$?
14503 if test $result = 0; then
14504 ac_path_to_link=""
14505 else
14506 ac_path_to_link=" -L$ac_find_libraries"
14507 fi
14508
14509 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14510 xpm_link=" -lXpm"
14511 cat >> confdefs.h <<\EOF
14512#define wxHAVE_LIB_XPM 1
14513EOF
14514
14515 echo "$ac_t""found at $ac_find_libraries" 1>&6
14516 else
14517 cat > conftest.$ac_ext <<EOF
14518#line 14519 "configure"
14519#include "confdefs.h"
14520
14521 #include <X11/xpm.h>
14522
14523int main() {
14524
14525 int version;
14526 version = XpmLibraryVersion();
14527
14528; return 0; }
14529EOF
14530if { (eval echo configure:14531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14531 rm -rf conftest*
14532
14533 xpm_link=" -lXpm"
14534 cat >> confdefs.h <<\EOF
14535#define wxHAVE_LIB_XPM 1
14536EOF
14537
14538 echo "$ac_t""found in default search path" 1>&6
14539 COMPILED_X_PROGRAM=0
14540
14541else
14542 echo "configure: failed program was:" >&5
14543 cat conftest.$ac_ext >&5
14544 rm -rf conftest*
14545
14546 echo "$ac_t""no" 1>&6
14547 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14548
14549
14550fi
14551rm -f conftest*
14552 fi
14553
14554 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14555echo "configure:14556: checking if we need -lXp and/or -lSM -lICE" >&5
14556 libp_link=""
14557 libsm_ice_link=""
14558 libs_found=0
14559 for libp in "" " -lXp"; do
14560 if test "$libs_found" = "0"; then
14561 for libsm_ice in " -lSM -lICE"; do
14562 if test "$libs_found" = "0"; then
14563 save_LIBS="$LIBS"
14564 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14565 cat > conftest.$ac_ext <<EOF
14566#line 14567 "configure"
14567#include "confdefs.h"
14568
14569 #include <Xm/Xm.h>
14570 #include <Xm/List.h>
14571
14572int main() {
14573
14574 XmString string = NULL;
14575 Widget w = NULL;
14576 int position = 0;
14577 XmListAddItem(w, string, position);
14578
14579; return 0; }
14580EOF
14581if { (eval echo configure:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
14582 rm -rf conftest*
14583
14584 libp_link="$libp"
14585 libsm_ice_link="$libsm_ice"
14586 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14587 libs_found=1
14588
14589else
14590 echo "configure: failed program was:" >&5
14591 cat conftest.$ac_ext >&5
14592 rm -rf conftest*
14593
14594
14595fi
14596rm -f conftest*
14597 LIBS="$save_LIBS"
14598 fi
14599 done
14600 fi
14601 done
14602
14603 if test "$libs_found" = "0"; then
14604 echo "$ac_t""can't find the right libraries" 1>&6
14605 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14606 fi
14607
14608 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
14609 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14610 TOOLKIT=MOTIF
14611 GUIDIST=MOTIF_DIST
14612 fi
14613
14614 if test "$wxUSE_MAC" = 1; then
14615 if test "$wxUSE_PRECOMP" = "yes"; then
14616 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14617 else
14618 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14619 fi
14620 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14621 CFLAGS="$CFLAGS -fpascal-strings"
14622 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14623
14624 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14625 TOOLKIT=MAC
14626 GUIDIST=MACX_DIST
14627 fi
14628
14629 if test "$wxUSE_PM" = 1; then
14630 TOOLKIT=PM
14631 GUIDIST=GTK_DIST
14632 fi
14633
14634 if test "$TOOLKIT" = "PM" ; then
14635 TOOLKIT_DIR="os2"
14636 else
14637 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14638 fi
14639
14640 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14641
14642 if test "$wxUSE_UNIVERSAL" = "yes"; then
14643 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14644
14645 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14646 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14647
14648 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14649 if test "$wxUSE_X11" = 1; then
14650 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14651 else
14652 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14653 fi
14654 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14655 WIDGET_SET=univ
14656 else
14657 ALL_OBJECTS="\$(GUIOBJS)"
14658 ALL_SOURCES="\$(ALL_SOURCES)"
14659 ALL_HEADERS="\$(ALL_HEADERS)"
14660 fi
14661
14662 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14663
14664 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14665 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14666 fi
14667
14668 if test "$wxUSE_HTML" = "yes"; then
14669 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14670 fi
14671
14672 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14673 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14674 fi
14675 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14676 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14677 fi
14678 if test "$wxUSE_LIBPNG" = "builtin" ; then
14679 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14680 fi
14681
14682 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14683 DISTDIR="wx\$(TOOLKIT)"
14684else
14685 USE_GUI=0
14686
14687 TOOLKIT_DIR="base"
14688
14689 if test "$USE_WIN32" = 1 ; then
14690 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14691 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14692
14693 TOOLKIT="MSW"
14694 else
14695 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14696 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14697 fi
14698
14699 ALL_SOURCES="\$(ALL_SOURCES)"
14700 ALL_HEADERS="\$(ALL_HEADERS)"
14701
14702 PORT_FILES="\${top_srcdir}/src/files.lst"
14703
14704 GUIDIST="BASE_DIST"
14705 DISTDIR="wxBase"
14706fi
14707
14708
14709if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14710 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14711fi
14712
14713if test "$wxUSE_REGEX" = "builtin" ; then
14714 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14715fi
14716if test "$wxUSE_ZLIB" = "builtin" ; then
14717 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14718fi
14719
14720
14721if test "$wxUSE_OPENGL" = "yes"; then
14722 if test "$wxUSE_MAC" = 1; then
14723 OPENGL_LIBS="-framework OpenGL -framework AGL"
14724 elif test "$wxUSE_MSW" = 1; then
14725 OPENGL_LIBS="-lopengl32 -lglu32"
14726 else
14727 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14728echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14729echo "configure:14730: checking for GL/gl.h" >&5
14730if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14731 echo $ac_n "(cached) $ac_c" 1>&6
14732else
14733 cat > conftest.$ac_ext <<EOF
14734#line 14735 "configure"
14735#include "confdefs.h"
14736#include <GL/gl.h>
14737EOF
14738ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14739{ (eval echo configure:14740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14740ac_err=`grep -v '^ *+' conftest.out`
14741if test -z "$ac_err"; then
14742 rm -rf conftest*
14743 eval "ac_cv_header_$ac_safe=yes"
14744else
14745 echo "$ac_err" >&5
14746 echo "configure: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 rm -rf conftest*
14749 eval "ac_cv_header_$ac_safe=no"
14750fi
14751rm -f conftest*
14752fi
14753if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14754 echo "$ac_t""yes" 1>&6
14755
14756 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14757echo "configure:14758: checking for -lGL" >&5
14758
14759ac_find_libraries=
14760for ac_dir in $SEARCH_LIB;
14761 do
14762 for ac_extension in a so sl dylib; do
14763 if test -f "$ac_dir/libGL.$ac_extension"; then
14764 ac_find_libraries=$ac_dir
14765 break 2
14766 fi
14767 done
14768 done
14769
14770 if test "$ac_find_libraries" != "" ; then
14771
14772 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14773 result=$?
14774 if test $result = 0; then
14775 ac_path_to_link=""
14776 else
14777 ac_path_to_link=" -L$ac_find_libraries"
14778 fi
14779
14780 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14781 LDFLAGS_GL="$LDFLAGS"
14782 else
14783 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14784 fi
14785 OPENGL_LIBS="-lGL -lGLU"
14786 echo "$ac_t""yes" 1>&6
14787 else
14788 echo "$ac_t""no" 1>&6
14789 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14790echo "configure:14791: checking for -lMesaGL" >&5
14791
14792ac_find_libraries=
14793for ac_dir in $SEARCH_LIB;
14794 do
14795 for ac_extension in a so sl dylib; do
14796 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14797 ac_find_libraries=$ac_dir
14798 break 2
14799 fi
14800 done
14801 done
14802
14803 if test "$ac_find_libraries" != "" ; then
14804
14805 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14806 result=$?
14807 if test $result = 0; then
14808 ac_path_to_link=""
14809 else
14810 ac_path_to_link=" -L$ac_find_libraries"
14811 fi
14812
14813 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14814 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14815 echo "$ac_t""yes" 1>&6
14816 else
14817 echo "$ac_t""no" 1>&6
14818 fi
14819 fi
14820
14821else
14822 echo "$ac_t""no" 1>&6
14823fi
14824
14825
14826 if test "x$OPENGL_LIBS" = "x"; then
14827 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14828 fi
14829 fi
14830
14831 if test "$wxUSE_OPENGL" = "yes"; then
14832 cat >> confdefs.h <<\EOF
14833#define wxUSE_OPENGL 1
14834EOF
14835
14836 cat >> confdefs.h <<\EOF
14837#define wxUSE_GLCANVAS 1
14838EOF
14839
14840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14841 fi
14842fi
14843
14844if test -z "$TOOLKIT_VPATH" ; then
14845 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14846fi
14847
14848if test -n "$TOOLKIT" ; then
14849 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14850fi
14851
14852lib_unicode_suffix=
14853if test "$wxUSE_UNICODE" = "yes"; then
14854 lib_unicode_suffix=u
14855fi
14856
14857lib_debug_suffix=
14858if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14859 lib_debug_suffix=d
14860fi
14861
14862TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14863TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14864
14865if test "$cross_compiling" = "yes"; then
14866 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14867 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14868fi
14869
14870WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14871WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14872
14873WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14874WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14875
14876WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14877WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14878WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14879WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14880
14881case "${host}" in
14882 *-*-cygwin* | *-*-mingw32* )
14883
14884
14885
14886 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
14887 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14888 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14889 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14890 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14891 else
14892 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14893 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14894 fi
14895 ;;
14896
14897 *-*-darwin* )
14898 if test "$wxUSE_MAC" = 1; then
14899 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14900 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14901 fi
14902 ;;
14903esac
14904
14905WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14906WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14907
14908WXCONFIG_LIBS="-l${WX_LIBRARY}"
14909WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14910
14911if test "$wxUSE_OPENGL" = "yes"; then
14912 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14913 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14914fi
14915
14916
14917
14918if test "$wxUSE_SHARED" = "yes"; then
14919 case "${host}" in
14920 *-pc-os2_emx | *-pc-os2-emx | \
14921 *-pc-msdosdjgpp )
14922 wxUSE_SHARED=no
14923 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14924 ;;
14925 esac
14926fi
14927
14928if test "$wxUSE_SHARED" = "yes"; then
14929
14930 if test "$wxUSE_OPENGL" = "yes"; then
14931 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14932 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14933 else
14934 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14935 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14936 fi
14937
14938 if test "$GCC" = "yes"; then
14939 PIC_FLAG="-fPIC"
14940 fi
14941
14942 SHARED_LD="${CXX} -shared -o"
14943
14944 case "${host}" in
14945 *-hp-hpux* )
14946 if test "$GCC" == "yes"; then
14947 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14948 else
14949 LDFLAGS="$LDFLAGS -L/usr/lib"
14950
14951 SHARED_LD="${CXX} -b -o"
14952 PIC_FLAG="+Z"
14953 fi
14954
14955 if test "$wxUSE_OPENGL" = "yes"; then
14956 WX_ALL_INSTALLED="preinstall_gl"
14957 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14958 else
14959 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14960 fi
14961 ;;
14962
14963 *-*-linux* )
14964 if test "$GCC" != "yes"; then
14965 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14966echo "configure:14967: checking for Intel compiler" >&5
14967if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
14968 echo $ac_n "(cached) $ac_c" 1>&6
14969else
14970
14971 cat > conftest.$ac_ext <<EOF
14972#line 14973 "configure"
14973#include "confdefs.h"
14974
14975int main() {
14976
14977 #ifndef __INTEL_COMPILER
14978 #error Not icc
14979 #endif
14980
14981; return 0; }
14982EOF
14983if { (eval echo configure:14984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14984 rm -rf conftest*
14985 wx_cv_prog_icc=yes
14986else
14987 echo "configure: failed program was:" >&5
14988 cat conftest.$ac_ext >&5
14989 rm -rf conftest*
14990 wx_cv_prog_icc=no
14991
14992fi
14993rm -f conftest*
14994
14995fi
14996
14997echo "$ac_t""$wx_cv_prog_icc" 1>&6
14998 if test "$wx_cv_prog_icc" = "yes"; then
14999 PIC_FLAG="-KPIC"
15000 fi
15001 fi
15002
15003 if test "$wxUSE_SONAME" = "yes" ; then
15004 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15005 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15006 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15007 fi
15008 ;;
15009
15010 *-*-solaris2* )
15011 if test "$GCC" = yes ; then
15012 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15013 else
15014 SHARED_LD="${CXX} -G -o"
15015 PIC_FLAG="-KPIC"
15016 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15017 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15018 fi
15019 ;;
15020
15021 *-*-darwin* )
15022 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15023 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15024 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15025 PIC_FLAG="-dynamic -fPIC"
15026 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15027 SONAME_FLAGS_GL=${SONAME_FLAGS}
15028 ;;
15029
15030 *-*-aix* )
15031 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15032set dummy makeC++SharedLib; ac_word=$2
15033echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15034echo "configure:15035: checking for $ac_word" >&5
15035if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15036 echo $ac_n "(cached) $ac_c" 1>&6
15037else
15038 if test -n "$AIX_CXX_LD"; then
15039 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15040else
15041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15042 for ac_dir in $PATH; do
15043 test -z "$ac_dir" && ac_dir=.
15044 if test -f $ac_dir/$ac_word; then
15045 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15046 break
15047 fi
15048 done
15049 IFS="$ac_save_ifs"
15050 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15051fi
15052fi
15053AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15054if test -n "$AIX_CXX_LD"; then
15055 echo "$ac_t""$AIX_CXX_LD" 1>&6
15056else
15057 echo "$ac_t""no" 1>&6
15058fi
15059
15060
15061 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15062 ;;
15063
15064 *-*-cygwin* | *-*-mingw32* )
15065
15066 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15067
15068 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15069 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15070
15071 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15072
15073 if test "$wxUSE_OPENGL" = "yes"; then
15074 WX_ALL_INSTALLED="preinstall_gl"
15075 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15076 else
15077 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15078 fi
15079 ;;
15080
15081 *-*-beos* )
15082 SHARED_LD="${LD} -shared -o"
15083 ;;
15084
15085 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15086 *-*-sunos4* | \
15087 *-*-irix5* | *-*-irix6* | \
15088 *-*-osf* | \
15089 *-*-dgux5* | \
15090 *-*-sysv5* )
15091 ;;
15092
15093 *)
15094 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15095 esac
15096
15097 if test "x$WX_TARGET_LIBRARY" = "x"; then
15098 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15099 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15100 fi
15101
15102 WX_TARGET_LIBRARY_TYPE="so"
15103 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15104fi
15105
15106if test "$wxUSE_SHARED" = "no"; then
15107
15108 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15109 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15110 fi
15111
15112 if test "$wxUSE_MAC" = 1; then
15113 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15114 fi
15115
15116 if test "$wxUSE_OPENGL" = "yes"; then
15117 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15118 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15119 else
15120 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15121 fi
15122
15123 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15124 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15125
15126 WX_TARGET_LIBRARY_TYPE="a"
15127 INSTALL_LIBRARY='$(INSTALL_DATA)'
15128fi
15129
15130if test "$wxUSE_MAC" = 1; then
15131 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15132 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15133 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15134 # Extract the first word of "Rez", so it can be a program name with args.
15135set dummy Rez; ac_word=$2
15136echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15137echo "configure:15138: checking for $ac_word" >&5
15138if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15139 echo $ac_n "(cached) $ac_c" 1>&6
15140else
15141 if test -n "$RESCOMP"; then
15142 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15143else
15144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15145 for ac_dir in $PATH; do
15146 test -z "$ac_dir" && ac_dir=.
15147 if test -f $ac_dir/$ac_word; then
15148 ac_cv_prog_RESCOMP="Rez"
15149 break
15150 fi
15151 done
15152 IFS="$ac_save_ifs"
15153 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15154fi
15155fi
15156RESCOMP="$ac_cv_prog_RESCOMP"
15157if test -n "$RESCOMP"; then
15158 echo "$ac_t""$RESCOMP" 1>&6
15159else
15160 echo "$ac_t""no" 1>&6
15161fi
15162
15163 # Extract the first word of "DeRez", so it can be a program name with args.
15164set dummy DeRez; ac_word=$2
15165echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15166echo "configure:15167: checking for $ac_word" >&5
15167if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15168 echo $ac_n "(cached) $ac_c" 1>&6
15169else
15170 if test -n "$DEREZ"; then
15171 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15172else
15173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15174 for ac_dir in $PATH; do
15175 test -z "$ac_dir" && ac_dir=.
15176 if test -f $ac_dir/$ac_word; then
15177 ac_cv_prog_DEREZ="DeRez"
15178 break
15179 fi
15180 done
15181 IFS="$ac_save_ifs"
15182 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15183fi
15184fi
15185DEREZ="$ac_cv_prog_DEREZ"
15186if test -n "$DEREZ"; then
15187 echo "$ac_t""$DEREZ" 1>&6
15188else
15189 echo "$ac_t""no" 1>&6
15190fi
15191
15192 MACOSX_BUNDLE="bundle"
15193 if test "$wxUSE_SHARED" = "yes"; then
15194 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15195 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15196 else
15197 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15198 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15199 fi
15200else
15201 if test "$wxUSE_PM" = 1; then
15202 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15203 fi
15204fi
15205
15206
15207echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15208echo "configure:15209: checking for ANSI C header files" >&5
15209if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15210 echo $ac_n "(cached) $ac_c" 1>&6
15211else
15212 cat > conftest.$ac_ext <<EOF
15213#line 15214 "configure"
15214#include "confdefs.h"
15215#include <stdlib.h>
15216#include <stdarg.h>
15217#include <string.h>
15218#include <float.h>
15219EOF
15220ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15221{ (eval echo configure:15222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15222ac_err=`grep -v '^ *+' conftest.out`
15223if test -z "$ac_err"; then
15224 rm -rf conftest*
15225 ac_cv_header_stdc=yes
15226else
15227 echo "$ac_err" >&5
15228 echo "configure: failed program was:" >&5
15229 cat conftest.$ac_ext >&5
15230 rm -rf conftest*
15231 ac_cv_header_stdc=no
15232fi
15233rm -f conftest*
15234
15235if test $ac_cv_header_stdc = yes; then
15236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15237cat > conftest.$ac_ext <<EOF
15238#line 15239 "configure"
15239#include "confdefs.h"
15240#include <string.h>
15241EOF
15242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15243 egrep "memchr" >/dev/null 2>&1; then
15244 :
15245else
15246 rm -rf conftest*
15247 ac_cv_header_stdc=no
15248fi
15249rm -f conftest*
15250
15251fi
15252
15253if test $ac_cv_header_stdc = yes; then
15254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15255cat > conftest.$ac_ext <<EOF
15256#line 15257 "configure"
15257#include "confdefs.h"
15258#include <stdlib.h>
15259EOF
15260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15261 egrep "free" >/dev/null 2>&1; then
15262 :
15263else
15264 rm -rf conftest*
15265 ac_cv_header_stdc=no
15266fi
15267rm -f conftest*
15268
15269fi
15270
15271if test $ac_cv_header_stdc = yes; then
15272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15273if test "$cross_compiling" = yes; then
15274 :
15275else
15276 cat > conftest.$ac_ext <<EOF
15277#line 15278 "configure"
15278#include "confdefs.h"
15279#include <ctype.h>
15280#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15281#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15282#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15283int main () { int i; for (i = 0; i < 256; i++)
15284if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15285exit (0); }
15286
15287EOF
15288if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
15289then
15290 :
15291else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -fr conftest*
15295 ac_cv_header_stdc=no
15296fi
15297rm -fr conftest*
15298fi
15299
15300fi
15301fi
15302
15303echo "$ac_t""$ac_cv_header_stdc" 1>&6
15304if test $ac_cv_header_stdc = yes; then
15305 cat >> confdefs.h <<\EOF
15306#define STDC_HEADERS 1
15307EOF
15308
15309fi
15310
15311echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15312echo "configure:15313: checking for mode_t" >&5
15313if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15314 echo $ac_n "(cached) $ac_c" 1>&6
15315else
15316 cat > conftest.$ac_ext <<EOF
15317#line 15318 "configure"
15318#include "confdefs.h"
15319#include <sys/types.h>
15320#if STDC_HEADERS
15321#include <stdlib.h>
15322#include <stddef.h>
15323#endif
15324EOF
15325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15326 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15327 rm -rf conftest*
15328 ac_cv_type_mode_t=yes
15329else
15330 rm -rf conftest*
15331 ac_cv_type_mode_t=no
15332fi
15333rm -f conftest*
15334
15335fi
15336echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15337if test $ac_cv_type_mode_t = no; then
15338 cat >> confdefs.h <<\EOF
15339#define mode_t int
15340EOF
15341
15342fi
15343
15344echo $ac_n "checking for off_t""... $ac_c" 1>&6
15345echo "configure:15346: checking for off_t" >&5
15346if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15347 echo $ac_n "(cached) $ac_c" 1>&6
15348else
15349 cat > conftest.$ac_ext <<EOF
15350#line 15351 "configure"
15351#include "confdefs.h"
15352#include <sys/types.h>
15353#if STDC_HEADERS
15354#include <stdlib.h>
15355#include <stddef.h>
15356#endif
15357EOF
15358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15359 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15360 rm -rf conftest*
15361 ac_cv_type_off_t=yes
15362else
15363 rm -rf conftest*
15364 ac_cv_type_off_t=no
15365fi
15366rm -f conftest*
15367
15368fi
15369echo "$ac_t""$ac_cv_type_off_t" 1>&6
15370if test $ac_cv_type_off_t = no; then
15371 cat >> confdefs.h <<\EOF
15372#define off_t long
15373EOF
15374
15375fi
15376
15377echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15378echo "configure:15379: checking for pid_t" >&5
15379if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15380 echo $ac_n "(cached) $ac_c" 1>&6
15381else
15382 cat > conftest.$ac_ext <<EOF
15383#line 15384 "configure"
15384#include "confdefs.h"
15385#include <sys/types.h>
15386#if STDC_HEADERS
15387#include <stdlib.h>
15388#include <stddef.h>
15389#endif
15390EOF
15391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15392 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15393 rm -rf conftest*
15394 ac_cv_type_pid_t=yes
15395else
15396 rm -rf conftest*
15397 ac_cv_type_pid_t=no
15398fi
15399rm -f conftest*
15400
15401fi
15402echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15403if test $ac_cv_type_pid_t = no; then
15404 cat >> confdefs.h <<\EOF
15405#define pid_t int
15406EOF
15407
15408fi
15409
15410echo $ac_n "checking for size_t""... $ac_c" 1>&6
15411echo "configure:15412: checking for size_t" >&5
15412if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15413 echo $ac_n "(cached) $ac_c" 1>&6
15414else
15415 cat > conftest.$ac_ext <<EOF
15416#line 15417 "configure"
15417#include "confdefs.h"
15418#include <sys/types.h>
15419#if STDC_HEADERS
15420#include <stdlib.h>
15421#include <stddef.h>
15422#endif
15423EOF
15424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15425 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15426 rm -rf conftest*
15427 ac_cv_type_size_t=yes
15428else
15429 rm -rf conftest*
15430 ac_cv_type_size_t=no
15431fi
15432rm -f conftest*
15433
15434fi
15435echo "$ac_t""$ac_cv_type_size_t" 1>&6
15436if test $ac_cv_type_size_t = no; then
15437 cat >> confdefs.h <<\EOF
15438#define size_t unsigned
15439EOF
15440
15441fi
15442
15443echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15444echo "configure:15445: checking for uid_t in sys/types.h" >&5
15445if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15446 echo $ac_n "(cached) $ac_c" 1>&6
15447else
15448 cat > conftest.$ac_ext <<EOF
15449#line 15450 "configure"
15450#include "confdefs.h"
15451#include <sys/types.h>
15452EOF
15453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15454 egrep "uid_t" >/dev/null 2>&1; then
15455 rm -rf conftest*
15456 ac_cv_type_uid_t=yes
15457else
15458 rm -rf conftest*
15459 ac_cv_type_uid_t=no
15460fi
15461rm -f conftest*
15462
15463fi
15464
15465echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15466if test $ac_cv_type_uid_t = no; then
15467 cat >> confdefs.h <<\EOF
15468#define uid_t int
15469EOF
15470
15471 cat >> confdefs.h <<\EOF
15472#define gid_t int
15473EOF
15474
15475fi
15476
15477
15478
15479ac_ext=C
15480# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15481ac_cpp='$CXXCPP $CPPFLAGS'
15482ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15483ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15484cross_compiling=$ac_cv_prog_cxx_cross
15485
15486echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15487echo "configure:15488: checking if size_t is unsigned int" >&5
15488if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15489 echo $ac_n "(cached) $ac_c" 1>&6
15490else
15491 cat > conftest.$ac_ext <<EOF
15492#line 15493 "configure"
15493#include "confdefs.h"
15494#include <stddef.h>
15495int main() {
15496
15497 return 0; }
15498
15499 struct Foo { void foo(size_t); void foo(unsigned int); };
15500
15501 int bar() {
15502
15503; return 0; }
15504EOF
15505if { (eval echo configure:15506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15506 rm -rf conftest*
15507 wx_cv_size_t_is_uint=no
15508else
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 rm -rf conftest*
15512 wx_cv_size_t_is_uint=yes
15513
15514fi
15515rm -f conftest*
15516
15517fi
15518
15519echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15520
15521if test "$wx_cv_size_t_is_uint" = "yes"; then
15522 cat >> confdefs.h <<\EOF
15523#define wxSIZE_T_IS_UINT 1
15524EOF
15525
15526else
15527 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15528echo "configure:15529: checking if size_t is unsigned long" >&5
15529if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15530 echo $ac_n "(cached) $ac_c" 1>&6
15531else
15532 cat > conftest.$ac_ext <<EOF
15533#line 15534 "configure"
15534#include "confdefs.h"
15535#include <stddef.h>
15536int main() {
15537
15538 return 0; }
15539
15540 struct Foo { void foo(size_t); void foo(unsigned long); };
15541
15542 int bar() {
15543
15544; return 0; }
15545EOF
15546if { (eval echo configure:15547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15547 rm -rf conftest*
15548 wx_cv_size_t_is_ulong=no
15549else
15550 echo "configure: failed program was:" >&5
15551 cat conftest.$ac_ext >&5
15552 rm -rf conftest*
15553 wx_cv_size_t_is_ulong=yes
15554
15555fi
15556rm -f conftest*
15557
15558fi
15559
15560echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15561
15562 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15563 cat >> confdefs.h <<\EOF
15564#define wxSIZE_T_IS_ULONG 1
15565EOF
15566
15567 fi
15568fi
15569
15570ac_ext=c
15571# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15572ac_cpp='$CPP $CPPFLAGS'
15573ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15574ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15575cross_compiling=$ac_cv_prog_cc_cross
15576
15577
15578
15579echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15580echo "configure:15581: checking for pw_gecos in struct passwd" >&5
15581if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15582 echo $ac_n "(cached) $ac_c" 1>&6
15583else
15584
15585 cat > conftest.$ac_ext <<EOF
15586#line 15587 "configure"
15587#include "confdefs.h"
15588#include <pwd.h>
15589int main() {
15590
15591 char *p;
15592 struct passwd *pw;
15593 p = pw->pw_gecos;
15594
15595; return 0; }
15596EOF
15597if { (eval echo configure:15598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15598 rm -rf conftest*
15599
15600 wx_cv_struct_pw_gecos=yes
15601
15602else
15603 echo "configure: failed program was:" >&5
15604 cat conftest.$ac_ext >&5
15605 rm -rf conftest*
15606
15607 wx_cv_struct_pw_gecos=no
15608
15609
15610fi
15611rm -f conftest*
15612
15613
15614fi
15615
15616echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15617
15618if test "$wx_cv_struct_pw_gecos" = "yes"; then
15619 cat >> confdefs.h <<\EOF
15620#define HAVE_PW_GECOS 1
15621EOF
15622
15623fi
15624
15625
15626WCHAR_OK=0
15627if test "$wx_cv_sizeof_wchar_t" != "0"; then
15628 WCHAR_LINK=
15629 for ac_func in wcslen
15630do
15631echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15632echo "configure:15633: checking for $ac_func" >&5
15633if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15634 echo $ac_n "(cached) $ac_c" 1>&6
15635else
15636 cat > conftest.$ac_ext <<EOF
15637#line 15638 "configure"
15638#include "confdefs.h"
15639/* System header to define __stub macros and hopefully few prototypes,
15640 which can conflict with char $ac_func(); below. */
15641#include <assert.h>
15642/* Override any gcc2 internal prototype to avoid an error. */
15643/* We use char because int might match the return type of a gcc2
15644 builtin and then its argument prototype would still apply. */
15645char $ac_func();
15646
15647int main() {
15648
15649/* The GNU C library defines this for functions which it implements
15650 to always fail with ENOSYS. Some functions are actually named
15651 something starting with __ and the normal name is an alias. */
15652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15653choke me
15654#else
15655$ac_func();
15656#endif
15657
15658; return 0; }
15659EOF
15660if { (eval echo configure:15661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15661 rm -rf conftest*
15662 eval "ac_cv_func_$ac_func=yes"
15663else
15664 echo "configure: failed program was:" >&5
15665 cat conftest.$ac_ext >&5
15666 rm -rf conftest*
15667 eval "ac_cv_func_$ac_func=no"
15668fi
15669rm -f conftest*
15670fi
15671
15672if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15673 echo "$ac_t""yes" 1>&6
15674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15675 cat >> confdefs.h <<EOF
15676#define $ac_tr_func 1
15677EOF
15678
15679 cat >> confdefs.h <<\EOF
15680#define HAVE_WCSLEN 1
15681EOF
15682
15683 WCHAR_OK=1
15684
15685else
15686 echo "$ac_t""no" 1>&6
15687fi
15688done
15689
15690
15691 if test "$WCHAR_OK" = 0; then
15692 if test "$TOOLKIT" = "MSW"; then
15693 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15694echo "configure:15695: checking for wcslen in -lmsvcrt" >&5
15695ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15698else
15699 ac_save_LIBS="$LIBS"
15700LIBS="-lmsvcrt $LIBS"
15701cat > conftest.$ac_ext <<EOF
15702#line 15703 "configure"
15703#include "confdefs.h"
15704/* Override any gcc2 internal prototype to avoid an error. */
15705/* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707char wcslen();
15708
15709int main() {
15710wcslen()
15711; return 0; }
15712EOF
15713if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15714 rm -rf conftest*
15715 eval "ac_cv_lib_$ac_lib_var=yes"
15716else
15717 echo "configure: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 rm -rf conftest*
15720 eval "ac_cv_lib_$ac_lib_var=no"
15721fi
15722rm -f conftest*
15723LIBS="$ac_save_LIBS"
15724
15725fi
15726if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15727 echo "$ac_t""yes" 1>&6
15728
15729 cat >> confdefs.h <<\EOF
15730#define HAVE_WCSLEN 1
15731EOF
15732
15733 WCHAR_OK=1
15734
15735else
15736 echo "$ac_t""no" 1>&6
15737fi
15738
15739 else
15740 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15741echo "configure:15742: checking for wcslen in -lw" >&5
15742ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15743if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15744 echo $ac_n "(cached) $ac_c" 1>&6
15745else
15746 ac_save_LIBS="$LIBS"
15747LIBS="-lw $LIBS"
15748cat > conftest.$ac_ext <<EOF
15749#line 15750 "configure"
15750#include "confdefs.h"
15751/* Override any gcc2 internal prototype to avoid an error. */
15752/* We use char because int might match the return type of a gcc2
15753 builtin and then its argument prototype would still apply. */
15754char wcslen();
15755
15756int main() {
15757wcslen()
15758; return 0; }
15759EOF
15760if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15761 rm -rf conftest*
15762 eval "ac_cv_lib_$ac_lib_var=yes"
15763else
15764 echo "configure: failed program was:" >&5
15765 cat conftest.$ac_ext >&5
15766 rm -rf conftest*
15767 eval "ac_cv_lib_$ac_lib_var=no"
15768fi
15769rm -f conftest*
15770LIBS="$ac_save_LIBS"
15771
15772fi
15773if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15774 echo "$ac_t""yes" 1>&6
15775
15776 cat >> confdefs.h <<\EOF
15777#define HAVE_WCSLEN 1
15778EOF
15779
15780 WCHAR_LINK=" -lw"
15781 WCHAR_OK=1
15782
15783else
15784 echo "$ac_t""no" 1>&6
15785fi
15786
15787 fi
15788 fi
15789fi
15790
15791if test "$WCHAR_OK" = 1; then
15792 cat >> confdefs.h <<\EOF
15793#define wxUSE_WCHAR_T 1
15794EOF
15795
15796
15797 for ac_func in wcsrtombs
15798do
15799echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15800echo "configure:15801: checking for $ac_func" >&5
15801if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15802 echo $ac_n "(cached) $ac_c" 1>&6
15803else
15804 cat > conftest.$ac_ext <<EOF
15805#line 15806 "configure"
15806#include "confdefs.h"
15807/* System header to define __stub macros and hopefully few prototypes,
15808 which can conflict with char $ac_func(); below. */
15809#include <assert.h>
15810/* Override any gcc2 internal prototype to avoid an error. */
15811/* We use char because int might match the return type of a gcc2
15812 builtin and then its argument prototype would still apply. */
15813char $ac_func();
15814
15815int main() {
15816
15817/* The GNU C library defines this for functions which it implements
15818 to always fail with ENOSYS. Some functions are actually named
15819 something starting with __ and the normal name is an alias. */
15820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15821choke me
15822#else
15823$ac_func();
15824#endif
15825
15826; return 0; }
15827EOF
15828if { (eval echo configure:15829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15829 rm -rf conftest*
15830 eval "ac_cv_func_$ac_func=yes"
15831else
15832 echo "configure: failed program was:" >&5
15833 cat conftest.$ac_ext >&5
15834 rm -rf conftest*
15835 eval "ac_cv_func_$ac_func=no"
15836fi
15837rm -f conftest*
15838fi
15839
15840if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15841 echo "$ac_t""yes" 1>&6
15842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15843 cat >> confdefs.h <<EOF
15844#define $ac_tr_func 1
15845EOF
15846
15847else
15848 echo "$ac_t""no" 1>&6
15849fi
15850done
15851
15852else
15853 if test "$USE_DARWIN" = 1; then
15854 cat >> confdefs.h <<\EOF
15855#define wxUSE_WCHAR_T 1
15856EOF
15857
15858 else
15859 echo "configure: warning: Wide character support is unavailable" 1>&2
15860 fi
15861fi
15862
15863echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15864echo "configure:15865: checking for vprintf" >&5
15865if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15866 echo $ac_n "(cached) $ac_c" 1>&6
15867else
15868 cat > conftest.$ac_ext <<EOF
15869#line 15870 "configure"
15870#include "confdefs.h"
15871/* System header to define __stub macros and hopefully few prototypes,
15872 which can conflict with char vprintf(); below. */
15873#include <assert.h>
15874/* Override any gcc2 internal prototype to avoid an error. */
15875/* We use char because int might match the return type of a gcc2
15876 builtin and then its argument prototype would still apply. */
15877char vprintf();
15878
15879int main() {
15880
15881/* The GNU C library defines this for functions which it implements
15882 to always fail with ENOSYS. Some functions are actually named
15883 something starting with __ and the normal name is an alias. */
15884#if defined (__stub_vprintf) || defined (__stub___vprintf)
15885choke me
15886#else
15887vprintf();
15888#endif
15889
15890; return 0; }
15891EOF
15892if { (eval echo configure:15893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15893 rm -rf conftest*
15894 eval "ac_cv_func_vprintf=yes"
15895else
15896 echo "configure: failed program was:" >&5
15897 cat conftest.$ac_ext >&5
15898 rm -rf conftest*
15899 eval "ac_cv_func_vprintf=no"
15900fi
15901rm -f conftest*
15902fi
15903
15904if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15905 echo "$ac_t""yes" 1>&6
15906 cat >> confdefs.h <<\EOF
15907#define HAVE_VPRINTF 1
15908EOF
15909
15910else
15911 echo "$ac_t""no" 1>&6
15912fi
15913
15914if test "$ac_cv_func_vprintf" != yes; then
15915echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15916echo "configure:15917: checking for _doprnt" >&5
15917if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15918 echo $ac_n "(cached) $ac_c" 1>&6
15919else
15920 cat > conftest.$ac_ext <<EOF
15921#line 15922 "configure"
15922#include "confdefs.h"
15923/* System header to define __stub macros and hopefully few prototypes,
15924 which can conflict with char _doprnt(); below. */
15925#include <assert.h>
15926/* Override any gcc2 internal prototype to avoid an error. */
15927/* We use char because int might match the return type of a gcc2
15928 builtin and then its argument prototype would still apply. */
15929char _doprnt();
15930
15931int main() {
15932
15933/* The GNU C library defines this for functions which it implements
15934 to always fail with ENOSYS. Some functions are actually named
15935 something starting with __ and the normal name is an alias. */
15936#if defined (__stub__doprnt) || defined (__stub____doprnt)
15937choke me
15938#else
15939_doprnt();
15940#endif
15941
15942; return 0; }
15943EOF
15944if { (eval echo configure:15945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15945 rm -rf conftest*
15946 eval "ac_cv_func__doprnt=yes"
15947else
15948 echo "configure: failed program was:" >&5
15949 cat conftest.$ac_ext >&5
15950 rm -rf conftest*
15951 eval "ac_cv_func__doprnt=no"
15952fi
15953rm -f conftest*
15954fi
15955
15956if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15957 echo "$ac_t""yes" 1>&6
15958 cat >> confdefs.h <<\EOF
15959#define HAVE_DOPRNT 1
15960EOF
15961
15962else
15963 echo "$ac_t""no" 1>&6
15964fi
15965
15966fi
15967
15968
15969
15970
15971
15972
15973echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15974echo "configure:15975: checking for vsnprintf" >&5
15975if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15977else
15978
15979 cat > conftest.$ac_ext <<EOF
15980#line 15981 "configure"
15981#include "confdefs.h"
15982
15983 #include <stdio.h>
15984 #include <stdarg.h>
15985
15986int main() {
15987
15988 int wx_test_vsnprintf(const char *, ...);
15989
15990 wx_test_vsnprintf("%s");
15991 return 0;
15992 }
15993
15994 int wx_test_vsnprintf(const char *fmt, ...)
15995 {
15996 char *s;
15997
15998 va_list argp;
15999 va_start(argp, fmt);
16000 vsnprintf(s, 42, fmt, argp);
16001 va_end(argp);
16002
16003; return 0; }
16004EOF
16005if { (eval echo configure:16006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16006 rm -rf conftest*
16007
16008 wx_cv_func_vsnprintf=yes
16009
16010else
16011 echo "configure: failed program was:" >&5
16012 cat conftest.$ac_ext >&5
16013 rm -rf conftest*
16014
16015 cat > conftest.$ac_ext <<EOF
16016#line 16017 "configure"
16017#include "confdefs.h"
16018
16019 #include <stdio.h>
16020 #include <stdarg.h>
16021
16022int main() {
16023
16024 int wx_test_vsnprintf(const char *, ...);
16025
16026 wx_test_vsnprintf("%s");
16027 return 0;
16028 }
16029
16030 int wx_test_vsnprintf(const char *fmt, ...)
16031 {
16032 char *s;
16033
16034 va_list argp;
16035 va_start(argp, fmt);
16036 _vsnprintf(s, 42, fmt, argp);
16037 va_end(argp);
16038
16039; return 0; }
16040EOF
16041if { (eval echo configure:16042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16042 rm -rf conftest*
16043
16044 wx_cv_func_vsnprintf=yes
16045
16046else
16047 echo "configure: failed program was:" >&5
16048 cat conftest.$ac_ext >&5
16049 rm -rf conftest*
16050
16051 wx_cv_func_vsnprintf=no
16052
16053fi
16054rm -f conftest*
16055
16056fi
16057rm -f conftest*
16058
16059fi
16060
16061echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16062
16063if test "$wx_cv_func_vsnprintf" = yes; then
16064 cat >> confdefs.h <<\EOF
16065#define HAVE_VSNPRINTF 1
16066EOF
16067
16068else
16069 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16070fi
16071
16072echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16073echo "configure:16074: checking for vsscanf" >&5
16074if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16075 echo $ac_n "(cached) $ac_c" 1>&6
16076else
16077
16078 cat > conftest.$ac_ext <<EOF
16079#line 16080 "configure"
16080#include "confdefs.h"
16081
16082 #include <stdio.h>
16083 #include <stdarg.h>
16084
16085int main() {
16086
16087 int wx_test_vsscanf(const char *, ...);
16088
16089 wx_test_vsscanf("%d");
16090 return 0;
16091 }
16092
16093 int wx_test_vsscanf(const char *fmt, ...)
16094 {
16095 va_list argp;
16096 va_start(argp, fmt);
16097 vsscanf("42", fmt, argp);
16098 va_end(argp);
16099
16100; return 0; }
16101EOF
16102if { (eval echo configure:16103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16103 rm -rf conftest*
16104
16105 wx_cv_func_vsscanf=yes
16106
16107else
16108 echo "configure: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16110 rm -rf conftest*
16111
16112 wx_cv_func_vsscanf=no
16113
16114fi
16115rm -f conftest*
16116
16117fi
16118
16119echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16120
16121if test "$wx_cv_func_vsscanf" = yes; then
16122 cat >> confdefs.h <<\EOF
16123#define HAVE_VSSCANF 1
16124EOF
16125
16126fi
16127
16128if test "$TOOLKIT" != "MSW"; then
16129
16130
16131
16132ac_ext=C
16133# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16134ac_cpp='$CXXCPP $CPPFLAGS'
16135ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16136ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16137cross_compiling=$ac_cv_prog_cxx_cross
16138
16139
16140
16141 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16142if test "${with_libiconv_prefix+set}" = set; then
16143 withval="$with_libiconv_prefix"
16144
16145 for dir in `echo "$withval" | tr : ' '`; do
16146 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16147 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16148 done
16149
16150fi
16151
16152
16153 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16154echo "configure:16155: checking for iconv" >&5
16155if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16156 echo $ac_n "(cached) $ac_c" 1>&6
16157else
16158
16159 am_cv_func_iconv="no, consider installing GNU libiconv"
16160 am_cv_lib_iconv=no
16161 cat > conftest.$ac_ext <<EOF
16162#line 16163 "configure"
16163#include "confdefs.h"
16164#include <stdlib.h>
16165#include <iconv.h>
16166int main() {
16167iconv_t cd = iconv_open("","");
16168 iconv(cd,NULL,NULL,NULL,NULL);
16169 iconv_close(cd);
16170; return 0; }
16171EOF
16172if { (eval echo configure:16173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16173 rm -rf conftest*
16174 am_cv_func_iconv=yes
16175else
16176 echo "configure: failed program was:" >&5
16177 cat conftest.$ac_ext >&5
16178fi
16179rm -f conftest*
16180 if test "$am_cv_func_iconv" != yes; then
16181 am_save_LIBS="$LIBS"
16182 LIBS="$LIBS -liconv"
16183 cat > conftest.$ac_ext <<EOF
16184#line 16185 "configure"
16185#include "confdefs.h"
16186#include <stdlib.h>
16187#include <iconv.h>
16188int main() {
16189iconv_t cd = iconv_open("","");
16190 iconv(cd,NULL,NULL,NULL,NULL);
16191 iconv_close(cd);
16192; return 0; }
16193EOF
16194if { (eval echo configure:16195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16195 rm -rf conftest*
16196 am_cv_lib_iconv=yes
16197 am_cv_func_iconv=yes
16198else
16199 echo "configure: failed program was:" >&5
16200 cat conftest.$ac_ext >&5
16201fi
16202rm -f conftest*
16203 LIBS="$am_save_LIBS"
16204 fi
16205
16206fi
16207
16208echo "$ac_t""$am_cv_func_iconv" 1>&6
16209 if test "$am_cv_func_iconv" = yes; then
16210 cat >> confdefs.h <<\EOF
16211#define HAVE_ICONV 1
16212EOF
16213
16214 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16215echo "configure:16216: checking if iconv needs const" >&5
16216if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16217 echo $ac_n "(cached) $ac_c" 1>&6
16218else
16219 cat > conftest.$ac_ext <<EOF
16220#line 16221 "configure"
16221#include "confdefs.h"
16222
16223#include <stdlib.h>
16224#include <iconv.h>
16225extern
16226#ifdef __cplusplus
16227"C"
16228#endif
16229#if defined(__STDC__) || defined(__cplusplus)
16230size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16231#else
16232size_t iconv();
16233#endif
16234
16235int main() {
16236
16237; return 0; }
16238EOF
16239if { (eval echo configure:16240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16240 rm -rf conftest*
16241 wx_cv_func_iconv_const="no"
16242else
16243 echo "configure: failed program was:" >&5
16244 cat conftest.$ac_ext >&5
16245 rm -rf conftest*
16246 wx_cv_func_iconv_const="yes"
16247
16248fi
16249rm -f conftest*
16250
16251fi
16252
16253echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16254
16255 iconv_const=
16256 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16257 iconv_const="const"
16258 fi
16259
16260 cat >> confdefs.h <<EOF
16261#define ICONV_CONST 1
16262EOF
16263
16264 fi
16265 LIBICONV=
16266 if test "$am_cv_lib_iconv" = yes; then
16267 LIBICONV="-liconv"
16268 fi
16269
16270
16271LIBS="$LIBICONV $LIBS"
16272ac_ext=c
16273# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16274ac_cpp='$CPP $CPPFLAGS'
16275ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16276ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16277cross_compiling=$ac_cv_prog_cc_cross
16278
16279
16280if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16281 for ac_func in sigaction
16282do
16283echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16284echo "configure:16285: checking for $ac_func" >&5
16285if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16286 echo $ac_n "(cached) $ac_c" 1>&6
16287else
16288 cat > conftest.$ac_ext <<EOF
16289#line 16290 "configure"
16290#include "confdefs.h"
16291/* System header to define __stub macros and hopefully few prototypes,
16292 which can conflict with char $ac_func(); below. */
16293#include <assert.h>
16294/* Override any gcc2 internal prototype to avoid an error. */
16295/* We use char because int might match the return type of a gcc2
16296 builtin and then its argument prototype would still apply. */
16297char $ac_func();
16298
16299int main() {
16300
16301/* The GNU C library defines this for functions which it implements
16302 to always fail with ENOSYS. Some functions are actually named
16303 something starting with __ and the normal name is an alias. */
16304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16305choke me
16306#else
16307$ac_func();
16308#endif
16309
16310; return 0; }
16311EOF
16312if { (eval echo configure:16313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16313 rm -rf conftest*
16314 eval "ac_cv_func_$ac_func=yes"
16315else
16316 echo "configure: failed program was:" >&5
16317 cat conftest.$ac_ext >&5
16318 rm -rf conftest*
16319 eval "ac_cv_func_$ac_func=no"
16320fi
16321rm -f conftest*
16322fi
16323
16324if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16325 echo "$ac_t""yes" 1>&6
16326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16327 cat >> confdefs.h <<EOF
16328#define $ac_tr_func 1
16329EOF
16330
16331else
16332 echo "$ac_t""no" 1>&6
16333fi
16334done
16335
16336
16337 if test "$ac_cv_func_sigaction" = "no"; then
16338 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16339 wxUSE_ON_FATAL_EXCEPTION=no
16340 fi
16341
16342 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16343
16344 ac_ext=C
16345# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16346ac_cpp='$CXXCPP $CPPFLAGS'
16347ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16348ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16349cross_compiling=$ac_cv_prog_cxx_cross
16350
16351
16352 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16353echo "configure:16354: checking for sa_handler type" >&5
16354if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16355 echo $ac_n "(cached) $ac_c" 1>&6
16356else
16357
16358 cat > conftest.$ac_ext <<EOF
16359#line 16360 "configure"
16360#include "confdefs.h"
16361#include <signal.h>
16362int main() {
16363
16364 extern void testSigHandler(int);
16365
16366 struct sigaction sa;
16367 sa.sa_handler = testSigHandler;
16368
16369; return 0; }
16370EOF
16371if { (eval echo configure:16372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16372 rm -rf conftest*
16373
16374 wx_cv_type_sa_handler=int
16375
16376else
16377 echo "configure: failed program was:" >&5
16378 cat conftest.$ac_ext >&5
16379 rm -rf conftest*
16380
16381 wx_cv_type_sa_handler=void
16382
16383fi
16384rm -f conftest*
16385
16386fi
16387
16388echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16389
16390 ac_ext=c
16391# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16392ac_cpp='$CPP $CPPFLAGS'
16393ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16394ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16395cross_compiling=$ac_cv_prog_cc_cross
16396
16397
16398 cat >> confdefs.h <<EOF
16399#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16400EOF
16401
16402 fi
16403fi
16404
16405for ac_func in vfork
16406do
16407echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16408echo "configure:16409: checking for $ac_func" >&5
16409if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16410 echo $ac_n "(cached) $ac_c" 1>&6
16411else
16412 cat > conftest.$ac_ext <<EOF
16413#line 16414 "configure"
16414#include "confdefs.h"
16415/* System header to define __stub macros and hopefully few prototypes,
16416 which can conflict with char $ac_func(); below. */
16417#include <assert.h>
16418/* Override any gcc2 internal prototype to avoid an error. */
16419/* We use char because int might match the return type of a gcc2
16420 builtin and then its argument prototype would still apply. */
16421char $ac_func();
16422
16423int main() {
16424
16425/* The GNU C library defines this for functions which it implements
16426 to always fail with ENOSYS. Some functions are actually named
16427 something starting with __ and the normal name is an alias. */
16428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16429choke me
16430#else
16431$ac_func();
16432#endif
16433
16434; return 0; }
16435EOF
16436if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16437 rm -rf conftest*
16438 eval "ac_cv_func_$ac_func=yes"
16439else
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
16443 eval "ac_cv_func_$ac_func=no"
16444fi
16445rm -f conftest*
16446fi
16447
16448if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16449 echo "$ac_t""yes" 1>&6
16450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16451 cat >> confdefs.h <<EOF
16452#define $ac_tr_func 1
16453EOF
16454
16455else
16456 echo "$ac_t""no" 1>&6
16457fi
16458done
16459
16460
16461for ac_func in mkstemp mktemp
16462do
16463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16464echo "configure:16465: checking for $ac_func" >&5
16465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466 echo $ac_n "(cached) $ac_c" 1>&6
16467else
16468 cat > conftest.$ac_ext <<EOF
16469#line 16470 "configure"
16470#include "confdefs.h"
16471/* System header to define __stub macros and hopefully few prototypes,
16472 which can conflict with char $ac_func(); below. */
16473#include <assert.h>
16474/* Override any gcc2 internal prototype to avoid an error. */
16475/* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
16477char $ac_func();
16478
16479int main() {
16480
16481/* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485choke me
16486#else
16487$ac_func();
16488#endif
16489
16490; return 0; }
16491EOF
16492if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16493 rm -rf conftest*
16494 eval "ac_cv_func_$ac_func=yes"
16495else
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=no"
16500fi
16501rm -f conftest*
16502fi
16503
16504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505 echo "$ac_t""yes" 1>&6
16506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507 cat >> confdefs.h <<EOF
16508#define $ac_tr_func 1
16509EOF
16510 break
16511else
16512 echo "$ac_t""no" 1>&6
16513fi
16514done
16515
16516
16517echo $ac_n "checking for statfs""... $ac_c" 1>&6
16518echo "configure:16519: checking for statfs" >&5
16519if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16520 echo $ac_n "(cached) $ac_c" 1>&6
16521else
16522 cat > conftest.$ac_ext <<EOF
16523#line 16524 "configure"
16524#include "confdefs.h"
16525
16526 #if defined(__BSD__)
16527 #include <sys/param.h>
16528 #include <sys/mount.h>
16529 #else
16530 #include <sys/vfs.h>
16531 #endif
16532
16533int main() {
16534
16535 long l;
16536 struct statfs fs;
16537 statfs("/", &fs);
16538 l = fs.f_bsize;
16539 l += fs.f_blocks;
16540 l += fs.f_bavail;
16541
16542; return 0; }
16543EOF
16544if { (eval echo configure:16545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16545 rm -rf conftest*
16546
16547 wx_cv_func_statfs=yes
16548
16549else
16550 echo "configure: failed program was:" >&5
16551 cat conftest.$ac_ext >&5
16552 rm -rf conftest*
16553
16554 wx_cv_func_statfs=no
16555
16556
16557fi
16558rm -f conftest*
16559
16560fi
16561
16562echo "$ac_t""$wx_cv_func_statfs" 1>&6
16563
16564if test "$wx_cv_func_statfs" = "yes"; then
16565 cat >> confdefs.h <<\EOF
16566#define HAVE_STATFS 1
16567EOF
16568
16569else
16570 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16571echo "configure:16572: checking for statvfs" >&5
16572if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16573 echo $ac_n "(cached) $ac_c" 1>&6
16574else
16575 cat > conftest.$ac_ext <<EOF
16576#line 16577 "configure"
16577#include "confdefs.h"
16578
16579 #include <sys/statvfs.h>
16580
16581int main() {
16582
16583 long l;
16584 struct statvfs fs;
16585 statvfs("/", &fs);
16586 l = fs.f_bsize;
16587 l += fs.f_blocks;
16588 l += fs.f_bavail;
16589
16590; return 0; }
16591EOF
16592if { (eval echo configure:16593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16593 rm -rf conftest*
16594
16595 wx_cv_func_statvfs=yes
16596
16597else
16598 echo "configure: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16600 rm -rf conftest*
16601
16602 wx_cv_func_statvfs=no
16603
16604
16605fi
16606rm -f conftest*
16607
16608fi
16609
16610echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16611
16612 if test "$wx_cv_func_statvfs" = "yes"; then
16613 cat >> confdefs.h <<\EOF
16614#define HAVE_STATVFS 1
16615EOF
16616
16617 else
16618 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16619 fi
16620fi
16621
16622if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16623 for ac_func in fcntl flock
16624do
16625echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16626echo "configure:16627: checking for $ac_func" >&5
16627if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16628 echo $ac_n "(cached) $ac_c" 1>&6
16629else
16630 cat > conftest.$ac_ext <<EOF
16631#line 16632 "configure"
16632#include "confdefs.h"
16633/* System header to define __stub macros and hopefully few prototypes,
16634 which can conflict with char $ac_func(); below. */
16635#include <assert.h>
16636/* Override any gcc2 internal prototype to avoid an error. */
16637/* We use char because int might match the return type of a gcc2
16638 builtin and then its argument prototype would still apply. */
16639char $ac_func();
16640
16641int main() {
16642
16643/* The GNU C library defines this for functions which it implements
16644 to always fail with ENOSYS. Some functions are actually named
16645 something starting with __ and the normal name is an alias. */
16646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16647choke me
16648#else
16649$ac_func();
16650#endif
16651
16652; return 0; }
16653EOF
16654if { (eval echo configure:16655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16655 rm -rf conftest*
16656 eval "ac_cv_func_$ac_func=yes"
16657else
16658 echo "configure: failed program was:" >&5
16659 cat conftest.$ac_ext >&5
16660 rm -rf conftest*
16661 eval "ac_cv_func_$ac_func=no"
16662fi
16663rm -f conftest*
16664fi
16665
16666if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16667 echo "$ac_t""yes" 1>&6
16668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16669 cat >> confdefs.h <<EOF
16670#define $ac_tr_func 1
16671EOF
16672 break
16673else
16674 echo "$ac_t""no" 1>&6
16675fi
16676done
16677
16678
16679 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16680 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16681 wxUSE_SNGLINST_CHECKER=no
16682 fi
16683fi
16684
16685for ac_func in timegm
16686do
16687echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16688echo "configure:16689: checking for $ac_func" >&5
16689if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16690 echo $ac_n "(cached) $ac_c" 1>&6
16691else
16692 cat > conftest.$ac_ext <<EOF
16693#line 16694 "configure"
16694#include "confdefs.h"
16695/* System header to define __stub macros and hopefully few prototypes,
16696 which can conflict with char $ac_func(); below. */
16697#include <assert.h>
16698/* Override any gcc2 internal prototype to avoid an error. */
16699/* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16701char $ac_func();
16702
16703int main() {
16704
16705/* The GNU C library defines this for functions which it implements
16706 to always fail with ENOSYS. Some functions are actually named
16707 something starting with __ and the normal name is an alias. */
16708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16709choke me
16710#else
16711$ac_func();
16712#endif
16713
16714; return 0; }
16715EOF
16716if { (eval echo configure:16717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16717 rm -rf conftest*
16718 eval "ac_cv_func_$ac_func=yes"
16719else
16720 echo "configure: failed program was:" >&5
16721 cat conftest.$ac_ext >&5
16722 rm -rf conftest*
16723 eval "ac_cv_func_$ac_func=no"
16724fi
16725rm -f conftest*
16726fi
16727
16728if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16729 echo "$ac_t""yes" 1>&6
16730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16731 cat >> confdefs.h <<EOF
16732#define $ac_tr_func 1
16733EOF
16734
16735else
16736 echo "$ac_t""no" 1>&6
16737fi
16738done
16739
16740
16741for ac_func in putenv setenv
16742do
16743echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16744echo "configure:16745: checking for $ac_func" >&5
16745if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16746 echo $ac_n "(cached) $ac_c" 1>&6
16747else
16748 cat > conftest.$ac_ext <<EOF
16749#line 16750 "configure"
16750#include "confdefs.h"
16751/* System header to define __stub macros and hopefully few prototypes,
16752 which can conflict with char $ac_func(); below. */
16753#include <assert.h>
16754/* Override any gcc2 internal prototype to avoid an error. */
16755/* We use char because int might match the return type of a gcc2
16756 builtin and then its argument prototype would still apply. */
16757char $ac_func();
16758
16759int main() {
16760
16761/* The GNU C library defines this for functions which it implements
16762 to always fail with ENOSYS. Some functions are actually named
16763 something starting with __ and the normal name is an alias. */
16764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16765choke me
16766#else
16767$ac_func();
16768#endif
16769
16770; return 0; }
16771EOF
16772if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16773 rm -rf conftest*
16774 eval "ac_cv_func_$ac_func=yes"
16775else
16776 echo "configure: failed program was:" >&5
16777 cat conftest.$ac_ext >&5
16778 rm -rf conftest*
16779 eval "ac_cv_func_$ac_func=no"
16780fi
16781rm -f conftest*
16782fi
16783
16784if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16785 echo "$ac_t""yes" 1>&6
16786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16787 cat >> confdefs.h <<EOF
16788#define $ac_tr_func 1
16789EOF
16790 break
16791else
16792 echo "$ac_t""no" 1>&6
16793fi
16794done
16795
16796
16797HAVE_SOME_SLEEP_FUNC=0
16798if test "$USE_BEOS" = 1; then
16799 cat >> confdefs.h <<\EOF
16800#define HAVE_SLEEP 1
16801EOF
16802
16803 HAVE_SOME_SLEEP_FUNC=1
16804fi
16805
16806if test "$USE_DARWIN" = 1; then
16807 cat >> confdefs.h <<\EOF
16808#define HAVE_USLEEP 1
16809EOF
16810
16811 HAVE_SOME_SLEEP_FUNC=1
16812fi
16813
16814if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16815 POSIX4_LINK=
16816 for ac_func in nanosleep
16817do
16818echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16819echo "configure:16820: checking for $ac_func" >&5
16820if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16821 echo $ac_n "(cached) $ac_c" 1>&6
16822else
16823 cat > conftest.$ac_ext <<EOF
16824#line 16825 "configure"
16825#include "confdefs.h"
16826/* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char $ac_func(); below. */
16828#include <assert.h>
16829/* Override any gcc2 internal prototype to avoid an error. */
16830/* We use char because int might match the return type of a gcc2
16831 builtin and then its argument prototype would still apply. */
16832char $ac_func();
16833
16834int main() {
16835
16836/* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16840choke me
16841#else
16842$ac_func();
16843#endif
16844
16845; return 0; }
16846EOF
16847if { (eval echo configure:16848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16848 rm -rf conftest*
16849 eval "ac_cv_func_$ac_func=yes"
16850else
16851 echo "configure: failed program was:" >&5
16852 cat conftest.$ac_ext >&5
16853 rm -rf conftest*
16854 eval "ac_cv_func_$ac_func=no"
16855fi
16856rm -f conftest*
16857fi
16858
16859if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16860 echo "$ac_t""yes" 1>&6
16861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16862 cat >> confdefs.h <<EOF
16863#define $ac_tr_func 1
16864EOF
16865 cat >> confdefs.h <<\EOF
16866#define HAVE_NANOSLEEP 1
16867EOF
16868
16869else
16870 echo "$ac_t""no" 1>&6
16871echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16872echo "configure:16873: checking for nanosleep in -lposix4" >&5
16873ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16874if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16875 echo $ac_n "(cached) $ac_c" 1>&6
16876else
16877 ac_save_LIBS="$LIBS"
16878LIBS="-lposix4 $LIBS"
16879cat > conftest.$ac_ext <<EOF
16880#line 16881 "configure"
16881#include "confdefs.h"
16882/* Override any gcc2 internal prototype to avoid an error. */
16883/* We use char because int might match the return type of a gcc2
16884 builtin and then its argument prototype would still apply. */
16885char nanosleep();
16886
16887int main() {
16888nanosleep()
16889; return 0; }
16890EOF
16891if { (eval echo configure:16892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16892 rm -rf conftest*
16893 eval "ac_cv_lib_$ac_lib_var=yes"
16894else
16895 echo "configure: failed program was:" >&5
16896 cat conftest.$ac_ext >&5
16897 rm -rf conftest*
16898 eval "ac_cv_lib_$ac_lib_var=no"
16899fi
16900rm -f conftest*
16901LIBS="$ac_save_LIBS"
16902
16903fi
16904if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16905 echo "$ac_t""yes" 1>&6
16906
16907 cat >> confdefs.h <<\EOF
16908#define HAVE_NANOSLEEP 1
16909EOF
16910
16911 POSIX4_LINK=" -lposix4"
16912
16913else
16914 echo "$ac_t""no" 1>&6
16915
16916 for ac_func in usleep
16917do
16918echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16919echo "configure:16920: checking for $ac_func" >&5
16920if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16922else
16923 cat > conftest.$ac_ext <<EOF
16924#line 16925 "configure"
16925#include "confdefs.h"
16926/* System header to define __stub macros and hopefully few prototypes,
16927 which can conflict with char $ac_func(); below. */
16928#include <assert.h>
16929/* Override any gcc2 internal prototype to avoid an error. */
16930/* We use char because int might match the return type of a gcc2
16931 builtin and then its argument prototype would still apply. */
16932char $ac_func();
16933
16934int main() {
16935
16936/* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940choke me
16941#else
16942$ac_func();
16943#endif
16944
16945; return 0; }
16946EOF
16947if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
16948 rm -rf conftest*
16949 eval "ac_cv_func_$ac_func=yes"
16950else
16951 echo "configure: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16953 rm -rf conftest*
16954 eval "ac_cv_func_$ac_func=no"
16955fi
16956rm -f conftest*
16957fi
16958
16959if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16960 echo "$ac_t""yes" 1>&6
16961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16962 cat >> confdefs.h <<EOF
16963#define $ac_tr_func 1
16964EOF
16965 cat >> confdefs.h <<\EOF
16966#define HAVE_USLEEP 1
16967EOF
16968
16969else
16970 echo "$ac_t""no" 1>&6
16971echo "configure: warning: wxSleep() function will not work" 1>&2
16972
16973fi
16974done
16975
16976
16977
16978fi
16979
16980
16981
16982fi
16983done
16984
16985fi
16986
16987for ac_func in uname gethostname
16988do
16989echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16990echo "configure:16991: checking for $ac_func" >&5
16991if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16992 echo $ac_n "(cached) $ac_c" 1>&6
16993else
16994 cat > conftest.$ac_ext <<EOF
16995#line 16996 "configure"
16996#include "confdefs.h"
16997/* System header to define __stub macros and hopefully few prototypes,
16998 which can conflict with char $ac_func(); below. */
16999#include <assert.h>
17000/* Override any gcc2 internal prototype to avoid an error. */
17001/* We use char because int might match the return type of a gcc2
17002 builtin and then its argument prototype would still apply. */
17003char $ac_func();
17004
17005int main() {
17006
17007/* The GNU C library defines this for functions which it implements
17008 to always fail with ENOSYS. Some functions are actually named
17009 something starting with __ and the normal name is an alias. */
17010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17011choke me
17012#else
17013$ac_func();
17014#endif
17015
17016; return 0; }
17017EOF
17018if { (eval echo configure:17019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17019 rm -rf conftest*
17020 eval "ac_cv_func_$ac_func=yes"
17021else
17022 echo "configure: failed program was:" >&5
17023 cat conftest.$ac_ext >&5
17024 rm -rf conftest*
17025 eval "ac_cv_func_$ac_func=no"
17026fi
17027rm -f conftest*
17028fi
17029
17030if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17031 echo "$ac_t""yes" 1>&6
17032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17033 cat >> confdefs.h <<EOF
17034#define $ac_tr_func 1
17035EOF
17036 break
17037else
17038 echo "$ac_t""no" 1>&6
17039fi
17040done
17041
17042
17043
17044ac_ext=C
17045# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17046ac_cpp='$CXXCPP $CPPFLAGS'
17047ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17048ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17049cross_compiling=$ac_cv_prog_cxx_cross
17050
17051
17052for ac_func in strtok_r
17053do
17054echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17055echo "configure:17056: checking for $ac_func" >&5
17056if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17057 echo $ac_n "(cached) $ac_c" 1>&6
17058else
17059 cat > conftest.$ac_ext <<EOF
17060#line 17061 "configure"
17061#include "confdefs.h"
17062/* System header to define __stub macros and hopefully few prototypes,
17063 which can conflict with char $ac_func(); below. */
17064#include <assert.h>
17065/* Override any gcc2 internal prototype to avoid an error. */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069/* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071char $ac_func();
17072
17073int main() {
17074
17075/* The GNU C library defines this for functions which it implements
17076 to always fail with ENOSYS. Some functions are actually named
17077 something starting with __ and the normal name is an alias. */
17078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17079choke me
17080#else
17081$ac_func();
17082#endif
17083
17084; return 0; }
17085EOF
17086if { (eval echo configure:17087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17087 rm -rf conftest*
17088 eval "ac_cv_func_$ac_func=yes"
17089else
17090 echo "configure: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 rm -rf conftest*
17093 eval "ac_cv_func_$ac_func=no"
17094fi
17095rm -f conftest*
17096fi
17097
17098if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17099 echo "$ac_t""yes" 1>&6
17100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17101 cat >> confdefs.h <<EOF
17102#define $ac_tr_func 1
17103EOF
17104
17105else
17106 echo "$ac_t""no" 1>&6
17107fi
17108done
17109
17110
17111ac_ext=c
17112# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17113ac_cpp='$CPP $CPPFLAGS'
17114ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17115ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17116cross_compiling=$ac_cv_prog_cc_cross
17117
17118
17119INET_LINK=
17120for ac_func in inet_addr
17121do
17122echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17123echo "configure:17124: checking for $ac_func" >&5
17124if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17125 echo $ac_n "(cached) $ac_c" 1>&6
17126else
17127 cat > conftest.$ac_ext <<EOF
17128#line 17129 "configure"
17129#include "confdefs.h"
17130/* System header to define __stub macros and hopefully few prototypes,
17131 which can conflict with char $ac_func(); below. */
17132#include <assert.h>
17133/* Override any gcc2 internal prototype to avoid an error. */
17134/* We use char because int might match the return type of a gcc2
17135 builtin and then its argument prototype would still apply. */
17136char $ac_func();
17137
17138int main() {
17139
17140/* The GNU C library defines this for functions which it implements
17141 to always fail with ENOSYS. Some functions are actually named
17142 something starting with __ and the normal name is an alias. */
17143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17144choke me
17145#else
17146$ac_func();
17147#endif
17148
17149; return 0; }
17150EOF
17151if { (eval echo configure:17152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17152 rm -rf conftest*
17153 eval "ac_cv_func_$ac_func=yes"
17154else
17155 echo "configure: failed program was:" >&5
17156 cat conftest.$ac_ext >&5
17157 rm -rf conftest*
17158 eval "ac_cv_func_$ac_func=no"
17159fi
17160rm -f conftest*
17161fi
17162
17163if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17164 echo "$ac_t""yes" 1>&6
17165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17166 cat >> confdefs.h <<EOF
17167#define $ac_tr_func 1
17168EOF
17169 cat >> confdefs.h <<\EOF
17170#define HAVE_INET_ADDR 1
17171EOF
17172
17173else
17174 echo "$ac_t""no" 1>&6
17175echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17176echo "configure:17177: checking for inet_addr in -lnsl" >&5
17177ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17178if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17179 echo $ac_n "(cached) $ac_c" 1>&6
17180else
17181 ac_save_LIBS="$LIBS"
17182LIBS="-lnsl $LIBS"
17183cat > conftest.$ac_ext <<EOF
17184#line 17185 "configure"
17185#include "confdefs.h"
17186/* Override any gcc2 internal prototype to avoid an error. */
17187/* We use char because int might match the return type of a gcc2
17188 builtin and then its argument prototype would still apply. */
17189char inet_addr();
17190
17191int main() {
17192inet_addr()
17193; return 0; }
17194EOF
17195if { (eval echo configure:17196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17196 rm -rf conftest*
17197 eval "ac_cv_lib_$ac_lib_var=yes"
17198else
17199 echo "configure: failed program was:" >&5
17200 cat conftest.$ac_ext >&5
17201 rm -rf conftest*
17202 eval "ac_cv_lib_$ac_lib_var=no"
17203fi
17204rm -f conftest*
17205LIBS="$ac_save_LIBS"
17206
17207fi
17208if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17209 echo "$ac_t""yes" 1>&6
17210 INET_LINK="nsl"
17211else
17212 echo "$ac_t""no" 1>&6
17213echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17214echo "configure:17215: checking for inet_addr in -lresolv" >&5
17215ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17216if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17217 echo $ac_n "(cached) $ac_c" 1>&6
17218else
17219 ac_save_LIBS="$LIBS"
17220LIBS="-lresolv $LIBS"
17221cat > conftest.$ac_ext <<EOF
17222#line 17223 "configure"
17223#include "confdefs.h"
17224/* Override any gcc2 internal prototype to avoid an error. */
17225/* We use char because int might match the return type of a gcc2
17226 builtin and then its argument prototype would still apply. */
17227char inet_addr();
17228
17229int main() {
17230inet_addr()
17231; return 0; }
17232EOF
17233if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17234 rm -rf conftest*
17235 eval "ac_cv_lib_$ac_lib_var=yes"
17236else
17237 echo "configure: failed program was:" >&5
17238 cat conftest.$ac_ext >&5
17239 rm -rf conftest*
17240 eval "ac_cv_lib_$ac_lib_var=no"
17241fi
17242rm -f conftest*
17243LIBS="$ac_save_LIBS"
17244
17245fi
17246if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17247 echo "$ac_t""yes" 1>&6
17248 INET_LINK="resolv"
17249else
17250 echo "$ac_t""no" 1>&6
17251echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17252echo "configure:17253: checking for inet_addr in -lsocket" >&5
17253ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17254if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17255 echo $ac_n "(cached) $ac_c" 1>&6
17256else
17257 ac_save_LIBS="$LIBS"
17258LIBS="-lsocket $LIBS"
17259cat > conftest.$ac_ext <<EOF
17260#line 17261 "configure"
17261#include "confdefs.h"
17262/* Override any gcc2 internal prototype to avoid an error. */
17263/* We use char because int might match the return type of a gcc2
17264 builtin and then its argument prototype would still apply. */
17265char inet_addr();
17266
17267int main() {
17268inet_addr()
17269; return 0; }
17270EOF
17271if { (eval echo configure:17272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17272 rm -rf conftest*
17273 eval "ac_cv_lib_$ac_lib_var=yes"
17274else
17275 echo "configure: failed program was:" >&5
17276 cat conftest.$ac_ext >&5
17277 rm -rf conftest*
17278 eval "ac_cv_lib_$ac_lib_var=no"
17279fi
17280rm -f conftest*
17281LIBS="$ac_save_LIBS"
17282
17283fi
17284if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17285 echo "$ac_t""yes" 1>&6
17286 INET_LINK="socket"
17287
17288else
17289 echo "$ac_t""no" 1>&6
17290fi
17291
17292
17293fi
17294
17295
17296fi
17297
17298
17299
17300fi
17301done
17302
17303
17304for ac_func in inet_aton
17305do
17306echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17307echo "configure:17308: checking for $ac_func" >&5
17308if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17309 echo $ac_n "(cached) $ac_c" 1>&6
17310else
17311 cat > conftest.$ac_ext <<EOF
17312#line 17313 "configure"
17313#include "confdefs.h"
17314/* System header to define __stub macros and hopefully few prototypes,
17315 which can conflict with char $ac_func(); below. */
17316#include <assert.h>
17317/* Override any gcc2 internal prototype to avoid an error. */
17318/* We use char because int might match the return type of a gcc2
17319 builtin and then its argument prototype would still apply. */
17320char $ac_func();
17321
17322int main() {
17323
17324/* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17328choke me
17329#else
17330$ac_func();
17331#endif
17332
17333; return 0; }
17334EOF
17335if { (eval echo configure:17336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17336 rm -rf conftest*
17337 eval "ac_cv_func_$ac_func=yes"
17338else
17339 echo "configure: failed program was:" >&5
17340 cat conftest.$ac_ext >&5
17341 rm -rf conftest*
17342 eval "ac_cv_func_$ac_func=no"
17343fi
17344rm -f conftest*
17345fi
17346
17347if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17348 echo "$ac_t""yes" 1>&6
17349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17350 cat >> confdefs.h <<EOF
17351#define $ac_tr_func 1
17352EOF
17353 cat >> confdefs.h <<\EOF
17354#define HAVE_INET_ATON 1
17355EOF
17356
17357else
17358 echo "$ac_t""no" 1>&6
17359 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17360echo "configure:17361: checking for inet_aton in -l$INET_LINK" >&5
17361ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17362if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17363 echo $ac_n "(cached) $ac_c" 1>&6
17364else
17365 ac_save_LIBS="$LIBS"
17366LIBS="-l$INET_LINK $LIBS"
17367cat > conftest.$ac_ext <<EOF
17368#line 17369 "configure"
17369#include "confdefs.h"
17370/* Override any gcc2 internal prototype to avoid an error. */
17371/* We use char because int might match the return type of a gcc2
17372 builtin and then its argument prototype would still apply. */
17373char inet_aton();
17374
17375int main() {
17376inet_aton()
17377; return 0; }
17378EOF
17379if { (eval echo configure:17380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17380 rm -rf conftest*
17381 eval "ac_cv_lib_$ac_lib_var=yes"
17382else
17383 echo "configure: failed program was:" >&5
17384 cat conftest.$ac_ext >&5
17385 rm -rf conftest*
17386 eval "ac_cv_lib_$ac_lib_var=no"
17387fi
17388rm -f conftest*
17389LIBS="$ac_save_LIBS"
17390
17391fi
17392if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17393 echo "$ac_t""yes" 1>&6
17394 cat >> confdefs.h <<\EOF
17395#define HAVE_INET_ATON 1
17396EOF
17397
17398else
17399 echo "$ac_t""no" 1>&6
17400fi
17401
17402
17403fi
17404done
17405
17406
17407if test "x$INET_LINK" != "x"; then
17408 cat >> confdefs.h <<\EOF
17409#define HAVE_INET_ADDR 1
17410EOF
17411
17412 INET_LINK=" -l$INET_LINK"
17413fi
17414
17415fi
17416
17417
17418cat > confcache <<\EOF
17419# This file is a shell script that caches the results of configure
17420# tests run on this system so they can be shared between configure
17421# scripts and configure runs. It is not useful on other systems.
17422# If it contains results you don't want to keep, you may remove or edit it.
17423#
17424# By default, configure uses ./config.cache as the cache file,
17425# creating it if it does not exist already. You can give configure
17426# the --cache-file=FILE option to use a different cache file; that is
17427# what configure does when it calls configure scripts in
17428# subdirectories, so they share the cache.
17429# Giving --cache-file=/dev/null disables caching, for debugging configure.
17430# config.status only pays attention to the cache file if you give it the
17431# --recheck option to rerun configure.
17432#
17433EOF
17434# The following way of writing the cache mishandles newlines in values,
17435# but we know of no workaround that is simple, portable, and efficient.
17436# So, don't put newlines in cache variables' values.
17437# Ultrix sh set writes to stderr and can't be redirected directly,
17438# and sets the high bit in the cache file unless we assign to the vars.
17439(set) 2>&1 |
17440 case `(ac_space=' '; set) 2>&1` in
17441 *ac_space=\ *)
17442 # `set' does not quote correctly, so add quotes (double-quote substitution
17443 # turns \\\\ into \\, and sed turns \\ into \).
17444 sed -n \
17445 -e "s/'/'\\\\''/g" \
17446 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17447 ;;
17448 *)
17449 # `set' quotes correctly as required by POSIX, so do not add quotes.
17450 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17451 ;;
17452 esac >> confcache
17453if cmp -s $cache_file confcache; then
17454 :
17455else
17456 if test -w $cache_file; then
17457 echo "updating cache $cache_file"
17458 cat confcache > $cache_file
17459 else
17460 echo "not updating unwritable cache $cache_file"
17461 fi
17462fi
17463rm -f confcache
17464
17465
17466
17467CPP_MT_FLAG=
17468if test "$TOOLKIT" != "MSW"; then
17469
17470
17471 THREADS_LINK=
17472 THREADS_CFLAGS=
17473
17474 if test "$wxUSE_THREADS" = "yes" ; then
17475 if test "$wxUSE_WINE" = 1 ; then
17476 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17477 wxUSE_THREADS="no"
17478 elif test "$USE_BEOS" = 1; then
17479 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17480 wxUSE_THREADS="no"
17481 fi
17482 fi
17483
17484 if test "$wxUSE_THREADS" = "yes" ; then
17485
17486
17487 THREAD_OPTS="-pthread"
17488 case "${host}" in
17489 *-*-solaris2* | *-*-sunos4* )
17490 if test "x$GCC" = "xyes"; then
17491 THREAD_OPTS="-pthreads $THREAD_OPTS"
17492 else
17493 THREAD_OPTS="-mt $THREAD_OPTS"
17494 fi
17495 ;;
17496 *-*-freebsd*)
17497 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17498 ;;
17499 *-*-darwin* | *-*-cygwin* )
17500 THREAD_OPTS=""
17501 ;;
17502 *-*-aix*)
17503 THREAD_OPTS="pthreads"
17504 ;;
17505 esac
17506
17507 THREAD_OPTS="$THREAD_OPTS pthread none"
17508
17509 THREADS_OK=no
17510 for flag in $THREAD_OPTS; do
17511 case $flag in
17512 none)
17513 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17514echo "configure:17515: checking whether pthreads work without any flags" >&5
17515 ;;
17516
17517 -*)
17518 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17519echo "configure:17520: checking whether pthreads work with $flag" >&5
17520 THREADS_CFLAGS="$flag"
17521 ;;
17522
17523 *)
17524 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17525echo "configure:17526: checking for the pthreads library -l$flag" >&5
17526 THREADS_LINK="-l$flag"
17527 ;;
17528 esac
17529
17530 save_LIBS="$LIBS"
17531 save_CFLAGS="$CFLAGS"
17532 LIBS="$THREADS_LINK $LIBS"
17533 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17534
17535 cat > conftest.$ac_ext <<EOF
17536#line 17537 "configure"
17537#include "confdefs.h"
17538#include <pthread.h>
17539int main() {
17540pthread_create(0,0,0,0);
17541; return 0; }
17542EOF
17543if { (eval echo configure:17544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17544 rm -rf conftest*
17545 THREADS_OK=yes
17546else
17547 echo "configure: failed program was:" >&5
17548 cat conftest.$ac_ext >&5
17549fi
17550rm -f conftest*
17551
17552 LIBS="$save_LIBS"
17553 CFLAGS="$save_CFLAGS"
17554
17555 echo "$ac_t""$THREADS_OK" 1>&6
17556 if test "x$THREADS_OK" = "xyes"; then
17557 break;
17558 fi
17559
17560 THREADS_LINK=""
17561 THREADS_CFLAGS=""
17562 done
17563
17564 if test "x$THREADS_OK" != "xyes"; then
17565 wxUSE_THREADS=no
17566 echo "configure: warning: No thread support on this system... disabled" 1>&2
17567 else
17568 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17569
17570 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17571echo "configure:17572: checking if more special flags are required for pthreads" >&5
17572 flag=no
17573 case "${host}" in
17574 *-aix* | *-freebsd*)
17575 flag="-D_THREAD_SAFE"
17576 ;;
17577 *solaris* | alpha*-osf*)
17578 flag="-D_REENTRANT"
17579 ;;
17580 esac
17581 echo "$ac_t""${flag}" 1>&6
17582 if test "x$flag" != xno; then
17583 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17584 fi
17585
17586 if test "x$THREADS_CFLAGS" != "x"; then
17587 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17588 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17589 fi
17590 fi
17591 fi
17592
17593 if test "$wxUSE_THREADS" = "yes" ; then
17594 for ac_func in thr_setconcurrency
17595do
17596echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17597echo "configure:17598: checking for $ac_func" >&5
17598if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17599 echo $ac_n "(cached) $ac_c" 1>&6
17600else
17601 cat > conftest.$ac_ext <<EOF
17602#line 17603 "configure"
17603#include "confdefs.h"
17604/* System header to define __stub macros and hopefully few prototypes,
17605 which can conflict with char $ac_func(); below. */
17606#include <assert.h>
17607/* Override any gcc2 internal prototype to avoid an error. */
17608/* We use char because int might match the return type of a gcc2
17609 builtin and then its argument prototype would still apply. */
17610char $ac_func();
17611
17612int main() {
17613
17614/* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17618choke me
17619#else
17620$ac_func();
17621#endif
17622
17623; return 0; }
17624EOF
17625if { (eval echo configure:17626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17626 rm -rf conftest*
17627 eval "ac_cv_func_$ac_func=yes"
17628else
17629 echo "configure: failed program was:" >&5
17630 cat conftest.$ac_ext >&5
17631 rm -rf conftest*
17632 eval "ac_cv_func_$ac_func=no"
17633fi
17634rm -f conftest*
17635fi
17636
17637if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17638 echo "$ac_t""yes" 1>&6
17639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17640 cat >> confdefs.h <<EOF
17641#define $ac_tr_func 1
17642EOF
17643
17644else
17645 echo "$ac_t""no" 1>&6
17646fi
17647done
17648
17649
17650 for ac_hdr in sched.h
17651do
17652ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17653echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17654echo "configure:17655: checking for $ac_hdr" >&5
17655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17656 echo $ac_n "(cached) $ac_c" 1>&6
17657else
17658 cat > conftest.$ac_ext <<EOF
17659#line 17660 "configure"
17660#include "confdefs.h"
17661#include <$ac_hdr>
17662EOF
17663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17664{ (eval echo configure:17665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17665ac_err=`grep -v '^ *+' conftest.out`
17666if test -z "$ac_err"; then
17667 rm -rf conftest*
17668 eval "ac_cv_header_$ac_safe=yes"
17669else
17670 echo "$ac_err" >&5
17671 echo "configure: failed program was:" >&5
17672 cat conftest.$ac_ext >&5
17673 rm -rf conftest*
17674 eval "ac_cv_header_$ac_safe=no"
17675fi
17676rm -f conftest*
17677fi
17678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17679 echo "$ac_t""yes" 1>&6
17680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17681 cat >> confdefs.h <<EOF
17682#define $ac_tr_hdr 1
17683EOF
17684
17685else
17686 echo "$ac_t""no" 1>&6
17687fi
17688done
17689
17690 if test "$ac_cv_header_sched_h" = "yes"; then
17691 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17692echo "configure:17693: checking for sched_yield" >&5
17693if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17694 echo $ac_n "(cached) $ac_c" 1>&6
17695else
17696 cat > conftest.$ac_ext <<EOF
17697#line 17698 "configure"
17698#include "confdefs.h"
17699/* System header to define __stub macros and hopefully few prototypes,
17700 which can conflict with char sched_yield(); below. */
17701#include <assert.h>
17702/* Override any gcc2 internal prototype to avoid an error. */
17703/* We use char because int might match the return type of a gcc2
17704 builtin and then its argument prototype would still apply. */
17705char sched_yield();
17706
17707int main() {
17708
17709/* The GNU C library defines this for functions which it implements
17710 to always fail with ENOSYS. Some functions are actually named
17711 something starting with __ and the normal name is an alias. */
17712#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17713choke me
17714#else
17715sched_yield();
17716#endif
17717
17718; return 0; }
17719EOF
17720if { (eval echo configure:17721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17721 rm -rf conftest*
17722 eval "ac_cv_func_sched_yield=yes"
17723else
17724 echo "configure: failed program was:" >&5
17725 cat conftest.$ac_ext >&5
17726 rm -rf conftest*
17727 eval "ac_cv_func_sched_yield=no"
17728fi
17729rm -f conftest*
17730fi
17731
17732if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17733 echo "$ac_t""yes" 1>&6
17734 cat >> confdefs.h <<\EOF
17735#define HAVE_SCHED_YIELD 1
17736EOF
17737
17738else
17739 echo "$ac_t""no" 1>&6
17740
17741 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17742echo "configure:17743: checking for sched_yield in -lposix4" >&5
17743ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17744if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17745 echo $ac_n "(cached) $ac_c" 1>&6
17746else
17747 ac_save_LIBS="$LIBS"
17748LIBS="-lposix4 $LIBS"
17749cat > conftest.$ac_ext <<EOF
17750#line 17751 "configure"
17751#include "confdefs.h"
17752/* Override any gcc2 internal prototype to avoid an error. */
17753/* We use char because int might match the return type of a gcc2
17754 builtin and then its argument prototype would still apply. */
17755char sched_yield();
17756
17757int main() {
17758sched_yield()
17759; return 0; }
17760EOF
17761if { (eval echo configure:17762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17762 rm -rf conftest*
17763 eval "ac_cv_lib_$ac_lib_var=yes"
17764else
17765 echo "configure: failed program was:" >&5
17766 cat conftest.$ac_ext >&5
17767 rm -rf conftest*
17768 eval "ac_cv_lib_$ac_lib_var=no"
17769fi
17770rm -f conftest*
17771LIBS="$ac_save_LIBS"
17772
17773fi
17774if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17775 echo "$ac_t""yes" 1>&6
17776 cat >> confdefs.h <<\EOF
17777#define HAVE_SCHED_YIELD 1
17778EOF
17779 POSIX4_LINK=" -lposix4"
17780else
17781 echo "$ac_t""no" 1>&6
17782echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17783
17784fi
17785
17786
17787
17788fi
17789
17790 fi
17791
17792 HAVE_PRIOR_FUNCS=0
17793 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17794echo "configure:17795: checking for pthread_attr_getschedpolicy" >&5
17795if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17796 echo $ac_n "(cached) $ac_c" 1>&6
17797else
17798 cat > conftest.$ac_ext <<EOF
17799#line 17800 "configure"
17800#include "confdefs.h"
17801/* System header to define __stub macros and hopefully few prototypes,
17802 which can conflict with char pthread_attr_getschedpolicy(); below. */
17803#include <assert.h>
17804/* Override any gcc2 internal prototype to avoid an error. */
17805/* We use char because int might match the return type of a gcc2
17806 builtin and then its argument prototype would still apply. */
17807char pthread_attr_getschedpolicy();
17808
17809int main() {
17810
17811/* The GNU C library defines this for functions which it implements
17812 to always fail with ENOSYS. Some functions are actually named
17813 something starting with __ and the normal name is an alias. */
17814#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17815choke me
17816#else
17817pthread_attr_getschedpolicy();
17818#endif
17819
17820; return 0; }
17821EOF
17822if { (eval echo configure:17823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17823 rm -rf conftest*
17824 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17825else
17826 echo "configure: failed program was:" >&5
17827 cat conftest.$ac_ext >&5
17828 rm -rf conftest*
17829 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17830fi
17831rm -f conftest*
17832fi
17833
17834if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17835 echo "$ac_t""yes" 1>&6
17836 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17837echo "configure:17838: checking for pthread_attr_setschedparam" >&5
17838if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17839 echo $ac_n "(cached) $ac_c" 1>&6
17840else
17841 cat > conftest.$ac_ext <<EOF
17842#line 17843 "configure"
17843#include "confdefs.h"
17844/* System header to define __stub macros and hopefully few prototypes,
17845 which can conflict with char pthread_attr_setschedparam(); below. */
17846#include <assert.h>
17847/* Override any gcc2 internal prototype to avoid an error. */
17848/* We use char because int might match the return type of a gcc2
17849 builtin and then its argument prototype would still apply. */
17850char pthread_attr_setschedparam();
17851
17852int main() {
17853
17854/* The GNU C library defines this for functions which it implements
17855 to always fail with ENOSYS. Some functions are actually named
17856 something starting with __ and the normal name is an alias. */
17857#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17858choke me
17859#else
17860pthread_attr_setschedparam();
17861#endif
17862
17863; return 0; }
17864EOF
17865if { (eval echo configure:17866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17866 rm -rf conftest*
17867 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17868else
17869 echo "configure: failed program was:" >&5
17870 cat conftest.$ac_ext >&5
17871 rm -rf conftest*
17872 eval "ac_cv_func_pthread_attr_setschedparam=no"
17873fi
17874rm -f conftest*
17875fi
17876
17877if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17878 echo "$ac_t""yes" 1>&6
17879 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17880echo "configure:17881: checking for sched_get_priority_max" >&5
17881if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17882 echo $ac_n "(cached) $ac_c" 1>&6
17883else
17884 cat > conftest.$ac_ext <<EOF
17885#line 17886 "configure"
17886#include "confdefs.h"
17887/* System header to define __stub macros and hopefully few prototypes
17888else
17889 echo "$ac_t""no" 1>&6
17890which can conflict with char sched_get_priority_max(); below. */
17891#include <assert.h>
17892/* Override any gcc2 internal prototype to avoid an error. */
17893/* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17895char sched_get_priority_max();
17896
17897int main() {
17898
17899/* The GNU C library defines this for functions which it implements
17900 to always fail with ENOSYS. Some functions are actually named
17901 something starting with __ and the normal name is an alias. */
17902#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17903choke me
17904#else
17905sched_get_priority_max();
17906#endif
17907
17908; return 0; }
17909EOF
17910if { (eval echo configure:17911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17911 rm -rf conftest*
17912 eval "ac_cv_func_sched_get_priority_max=yes"
17913else
17914 echo "configure: failed program was:" >&5
17915 cat conftest.$ac_ext >&5
17916 rm -rf conftest*
17917 eval "ac_cv_func_sched_get_priority_max=no"
17918fi
17919rm -f conftest*
17920fi
17921
17922if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
17923 echo "$ac_t""yes" 1>&6
17924 HAVE_PRIOR_FUNCS=1
17925else
17926 echo "$ac_t""no" 1>&6
17927echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17928echo "configure:17929: checking for sched_get_priority_max in -lposix4" >&5
17929ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17930if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17931 echo $ac_n "(cached) $ac_c" 1>&6
17932else
17933 ac_save_LIBS="$LIBS"
17934LIBS="-lposix4 $LIBS"
17935cat > conftest.$ac_ext <<EOF
17936#line 17937 "configure"
17937#include "confdefs.h"
17938/* Override any gcc2 internal prototype to avoid an error. */
17939/* We use char because int might match the return type of a gcc2
17940 builtin and then its argument prototype would still apply. */
17941char sched_get_priority_max();
17942
17943int main() {
17944sched_get_priority_max()
17945; return 0; }
17946EOF
17947if { (eval echo configure:17948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
17948 rm -rf conftest*
17949 eval "ac_cv_lib_$ac_lib_var=yes"
17950else
17951 echo "configure: failed program was:" >&5
17952 cat conftest.$ac_ext >&5
17953 rm -rf conftest*
17954 eval "ac_cv_lib_$ac_lib_var=no"
17955fi
17956rm -f conftest*
17957LIBS="$ac_save_LIBS"
17958
17959fi
17960if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17961 echo "$ac_t""yes" 1>&6
17962
17963 HAVE_PRIOR_FUNCS=1
17964 POSIX4_LINK=" -lposix4"
17965
17966else
17967 echo "$ac_t""no" 1>&6
17968fi
17969
17970
17971fi
17972
17973
17974else
17975 echo "$ac_t""no" 1>&6
17976fi
17977
17978
17979fi
17980
17981
17982 if test "$HAVE_PRIOR_FUNCS" = 1; then
17983 cat >> confdefs.h <<\EOF
17984#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17985EOF
17986
17987 else
17988 echo "configure: warning: Setting thread priority will not work" 1>&2
17989 fi
17990
17991 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17992echo "configure:17993: checking for pthread_cancel" >&5
17993if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
17994 echo $ac_n "(cached) $ac_c" 1>&6
17995else
17996 cat > conftest.$ac_ext <<EOF
17997#line 17998 "configure"
17998#include "confdefs.h"
17999/* System header to define __stub macros and hopefully few prototypes,
18000 which can conflict with char pthread_cancel(); below. */
18001#include <assert.h>
18002/* Override any gcc2 internal prototype to avoid an error. */
18003/* We use char because int might match the return type of a gcc2
18004 builtin and then its argument prototype would still apply. */
18005char pthread_cancel();
18006
18007int main() {
18008
18009/* The GNU C library defines this for functions which it implements
18010 to always fail with ENOSYS. Some functions are actually named
18011 something starting with __ and the normal name is an alias. */
18012#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18013choke me
18014#else
18015pthread_cancel();
18016#endif
18017
18018; return 0; }
18019EOF
18020if { (eval echo configure:18021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18021 rm -rf conftest*
18022 eval "ac_cv_func_pthread_cancel=yes"
18023else
18024 echo "configure: failed program was:" >&5
18025 cat conftest.$ac_ext >&5
18026 rm -rf conftest*
18027 eval "ac_cv_func_pthread_cancel=no"
18028fi
18029rm -f conftest*
18030fi
18031
18032if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18033 echo "$ac_t""yes" 1>&6
18034 cat >> confdefs.h <<\EOF
18035#define HAVE_PTHREAD_CANCEL 1
18036EOF
18037
18038else
18039 echo "$ac_t""no" 1>&6
18040echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18041fi
18042
18043
18044 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18045echo "configure:18046: checking for pthread_cleanup_push/pop" >&5
18046if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18047 echo $ac_n "(cached) $ac_c" 1>&6
18048else
18049
18050 cat > conftest.$ac_ext <<EOF
18051#line 18052 "configure"
18052#include "confdefs.h"
18053#include <pthread.h>
18054int main() {
18055
18056 pthread_cleanup_push(NULL, NULL);
18057 pthread_cleanup_pop(0);
18058
18059; return 0; }
18060EOF
18061if { (eval echo configure:18062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18062 rm -rf conftest*
18063
18064 wx_cv_func_pthread_cleanup_push=yes
18065
18066else
18067 echo "configure: failed program was:" >&5
18068 cat conftest.$ac_ext >&5
18069 rm -rf conftest*
18070
18071 wx_cv_func_pthread_cleanup_push=no
18072
18073fi
18074rm -f conftest*
18075
18076fi
18077
18078echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18079
18080 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18081 cat >> confdefs.h <<\EOF
18082#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18083EOF
18084
18085 fi
18086
18087
18088 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18089echo "configure:18090: checking for pthread_mutexattr_t" >&5
18090if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18091 echo $ac_n "(cached) $ac_c" 1>&6
18092else
18093
18094 cat > conftest.$ac_ext <<EOF
18095#line 18096 "configure"
18096#include "confdefs.h"
18097#include <pthread.h>
18098int main() {
18099
18100 pthread_mutexattr_t attr;
18101 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18102
18103; return 0; }
18104EOF
18105if { (eval echo configure:18106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18106 rm -rf conftest*
18107
18108 wx_cv_type_pthread_mutexattr_t=yes
18109
18110else
18111 echo "configure: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18113 rm -rf conftest*
18114
18115 wx_cv_type_pthread_mutexattr_t=no
18116
18117
18118fi
18119rm -f conftest*
18120
18121fi
18122
18123echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18124
18125 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18126 cat >> confdefs.h <<\EOF
18127#define HAVE_PTHREAD_MUTEXATTR_T 1
18128EOF
18129
18130 else
18131 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18132echo "configure:18133: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18133if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18134 echo $ac_n "(cached) $ac_c" 1>&6
18135else
18136
18137 cat > conftest.$ac_ext <<EOF
18138#line 18139 "configure"
18139#include "confdefs.h"
18140#include <pthread.h>
18141int main() {
18142
18143 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18144
18145; return 0; }
18146EOF
18147if { (eval echo configure:18148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18148 rm -rf conftest*
18149
18150 wx_cv_type_pthread_rec_mutex_init=yes
18151
18152else
18153 echo "configure: failed program was:" >&5
18154 cat conftest.$ac_ext >&5
18155 rm -rf conftest*
18156
18157 wx_cv_type_pthread_rec_mutex_init=no
18158
18159
18160fi
18161rm -f conftest*
18162
18163fi
18164
18165echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18166 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18167 cat >> confdefs.h <<\EOF
18168#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18169EOF
18170
18171 else
18172 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18173 fi
18174 fi
18175 fi
18176
18177fi
18178
18179if test "$wxUSE_THREADS" = "yes"; then
18180 cat >> confdefs.h <<\EOF
18181#define wxUSE_THREADS 1
18182EOF
18183
18184
18185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18186else
18187 if test "$ac_cv_func_strtok_r" = "yes"; then
18188 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18189echo "configure:18190: checking if -D_REENTRANT is needed" >&5
18190 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18191 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18192 echo "$ac_t""yes" 1>&6
18193 else
18194 echo "$ac_t""no" 1>&6
18195 fi
18196 fi
18197fi
18198
18199if test "$WXGTK20" = 1 ; then
18200 cat >> confdefs.h <<EOF
18201#define __WXGTK20__ $WXGTK20
18202EOF
18203
18204 WXGTK12=1
18205fi
18206
18207if test "$WXGTK12" = 1 ; then
18208 cat >> confdefs.h <<EOF
18209#define __WXGTK12__ $WXGTK12
18210EOF
18211
18212fi
18213
18214if test "$WXGTK127" = 1 ; then
18215 cat >> confdefs.h <<EOF
18216#define __WXGTK127__ $WXGTK127
18217EOF
18218
18219fi
18220
18221WXDEBUG=
18222
18223if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18224 WXDEBUG="-g"
18225 wxUSE_OPTIMISE=no
18226fi
18227
18228if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18229 wxUSE_DEBUG_INFO=yes
18230 WXDEBUG="-ggdb"
18231fi
18232
18233if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18234 cat >> confdefs.h <<\EOF
18235#define WXDEBUG 1
18236EOF
18237
18238 WXDEBUG_DEFINE="-D__WXDEBUG__"
18239else
18240 if test "$wxUSE_GTK" = 1 ; then
18241 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18242 fi
18243fi
18244
18245if test "$wxUSE_MEM_TRACING" = "yes" ; then
18246 cat >> confdefs.h <<\EOF
18247#define wxUSE_MEMORY_TRACING 1
18248EOF
18249
18250 cat >> confdefs.h <<\EOF
18251#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18252EOF
18253
18254 cat >> confdefs.h <<\EOF
18255#define wxUSE_DEBUG_NEW_ALWAYS 1
18256EOF
18257
18258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18259fi
18260
18261if test "$wxUSE_DMALLOC" = "yes" ; then
18262 DMALLOC_LIBS="-ldmalloc"
18263fi
18264
18265PROFILE=
18266if test "$wxUSE_PROFILE" = "yes" ; then
18267 PROFILE=" -pg"
18268fi
18269
18270CODE_GEN_FLAGS=
18271CODE_GEN_FLAGS_CXX=
18272if test "$GCC" = "yes" ; then
18273 if test "$wxUSE_NO_RTTI" = "yes" ; then
18274 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18275 fi
18276 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18277 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18278 fi
18279 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18280 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18281 fi
18282 if test "$USE_WIN32" = 1 ; then
18283 # I'm not even really sure what this was ever added to solve,
18284 # but someone added it for mingw native builds, so I guess
18285 # they had a reason, right??
18286 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18287 fi
18288
18289 case "${host}" in
18290 powerpc*-*-aix* )
18291 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18292 ;;
18293 esac
18294fi
18295
18296if test "$wxUSE_OPTIMISE" = "no" ; then
18297 OPTIMISE=
18298else
18299 if test "$GCC" = yes ; then
18300 OPTIMISE="-O2"
18301 case "${host}" in
18302 i586-*-*|i686-*-* )
18303 OPTIMISE="${OPTIMISE} "
18304 ;;
18305 esac
18306 else
18307 OPTIMISE="-O"
18308 fi
18309fi
18310
18311if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18312 cat >> confdefs.h <<\EOF
18313#define WXWIN_COMPATIBILITY_2 1
18314EOF
18315
18316
18317 WXWIN_COMPATIBILITY_2_2="yes"
18318fi
18319
18320if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18321 cat >> confdefs.h <<\EOF
18322#define WXWIN_COMPATIBILITY_2_2 1
18323EOF
18324
18325fi
18326
18327
18328if test "$wxUSE_GUI" = "yes"; then
18329 cat >> confdefs.h <<\EOF
18330#define wxUSE_GUI 1
18331EOF
18332
18333
18334 else
18335 cat >> confdefs.h <<\EOF
18336#define wxUSE_NOGUI 1
18337EOF
18338
18339fi
18340
18341
18342if test "$wxUSE_UNIX" = "yes"; then
18343 cat >> confdefs.h <<\EOF
18344#define wxUSE_UNIX 1
18345EOF
18346
18347fi
18348
18349
18350if test "$wxUSE_APPLE_IEEE" = "yes"; then
18351 cat >> confdefs.h <<\EOF
18352#define wxUSE_APPLE_IEEE 1
18353EOF
18354
18355fi
18356
18357if test "$wxUSE_TIMER" = "yes"; then
18358 cat >> confdefs.h <<\EOF
18359#define wxUSE_TIMER 1
18360EOF
18361
18362fi
18363
18364if test "$wxUSE_WAVE" = "yes"; then
18365 cat >> confdefs.h <<\EOF
18366#define wxUSE_WAVE 1
18367EOF
18368
18369fi
18370
18371if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18372 cat >> confdefs.h <<\EOF
18373#define wxUSE_CMDLINE_PARSER 1
18374EOF
18375
18376fi
18377
18378if test "$wxUSE_STOPWATCH" = "yes"; then
18379 cat >> confdefs.h <<\EOF
18380#define wxUSE_STOPWATCH 1
18381EOF
18382
18383fi
18384
18385if test "$wxUSE_DATETIME" = "yes"; then
18386 cat >> confdefs.h <<\EOF
18387#define wxUSE_DATETIME 1
18388EOF
18389
18390fi
18391
18392if test "$wxUSE_TIMEDATE" = "yes"; then
18393 cat >> confdefs.h <<\EOF
18394#define wxUSE_TIMEDATE 1
18395EOF
18396
18397fi
18398
18399if test "$wxUSE_FILE" = "yes"; then
18400 cat >> confdefs.h <<\EOF
18401#define wxUSE_FILE 1
18402EOF
18403
18404fi
18405
18406if test "$wxUSE_FFILE" = "yes"; then
18407 cat >> confdefs.h <<\EOF
18408#define wxUSE_FFILE 1
18409EOF
18410
18411fi
18412
18413if test "$wxUSE_FILESYSTEM" = "yes"; then
18414 cat >> confdefs.h <<\EOF
18415#define wxUSE_FILESYSTEM 1
18416EOF
18417
18418fi
18419
18420if test "$wxUSE_FS_INET" = "yes"; then
18421 cat >> confdefs.h <<\EOF
18422#define wxUSE_FS_INET 1
18423EOF
18424
18425fi
18426
18427if test "$wxUSE_FS_ZIP" = "yes"; then
18428 cat >> confdefs.h <<\EOF
18429#define wxUSE_FS_ZIP 1
18430EOF
18431
18432fi
18433
18434if test "$wxUSE_ZIPSTREAM" = "yes"; then
18435 cat >> confdefs.h <<\EOF
18436#define wxUSE_ZIPSTREAM 1
18437EOF
18438
18439fi
18440
18441if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18442 cat >> confdefs.h <<\EOF
18443#define wxUSE_ON_FATAL_EXCEPTION 1
18444EOF
18445
18446fi
18447
18448if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18449 cat >> confdefs.h <<\EOF
18450#define wxUSE_SNGLINST_CHECKER 1
18451EOF
18452
18453fi
18454
18455if test "$wxUSE_BUSYINFO" = "yes"; then
18456 cat >> confdefs.h <<\EOF
18457#define wxUSE_BUSYINFO 1
18458EOF
18459
18460fi
18461
18462if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18463 cat >> confdefs.h <<\EOF
18464#define wxUSE_STD_IOSTREAM 1
18465EOF
18466
18467fi
18468
18469if test "$wxUSE_TEXTBUFFER" = "yes"; then
18470 cat >> confdefs.h <<\EOF
18471#define wxUSE_TEXTBUFFER 1
18472EOF
18473
18474fi
18475
18476if test "$wxUSE_TEXTFILE" = "yes"; then
18477 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18478 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18479 else
18480 cat >> confdefs.h <<\EOF
18481#define wxUSE_TEXTFILE 1
18482EOF
18483
18484 fi
18485fi
18486
18487if test "$wxUSE_CONFIG" = "yes" ; then
18488 if test "$wxUSE_TEXTFILE" != "yes"; then
18489 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18490 else
18491 cat >> confdefs.h <<\EOF
18492#define wxUSE_CONFIG 1
18493EOF
18494
18495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18496 fi
18497fi
18498
18499if test "$wxUSE_INTL" = "yes" ; then
18500 if test "$wxUSE_FILE" != "yes"; then
18501 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18502 else
18503 cat >> confdefs.h <<\EOF
18504#define wxUSE_INTL 1
18505EOF
18506
18507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18508 GUIDIST="$GUIDIST INTL_DIST"
18509 fi
18510fi
18511
18512if test "$wxUSE_LOG" = "yes"; then
18513 cat >> confdefs.h <<\EOF
18514#define wxUSE_LOG 1
18515EOF
18516
18517
18518 if test "$wxUSE_LOGGUI" = "yes"; then
18519 cat >> confdefs.h <<\EOF
18520#define wxUSE_LOGGUI 1
18521EOF
18522
18523 fi
18524
18525 if test "$wxUSE_LOGWINDOW" = "yes"; then
18526 cat >> confdefs.h <<\EOF
18527#define wxUSE_LOGWINDOW 1
18528EOF
18529
18530 fi
18531
18532 if test "$wxUSE_LOGDIALOG" = "yes"; then
18533 cat >> confdefs.h <<\EOF
18534#define wxUSE_LOG_DIALOG 1
18535EOF
18536
18537 fi
18538fi
18539
18540if test "$wxUSE_LONGLONG" = "yes"; then
18541 cat >> confdefs.h <<\EOF
18542#define wxUSE_LONGLONG 1
18543EOF
18544
18545fi
18546
18547if test "$wxUSE_GEOMETRY" = "yes"; then
18548 cat >> confdefs.h <<\EOF
18549#define wxUSE_GEOMETRY 1
18550EOF
18551
18552fi
18553
18554if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18555 cat >> confdefs.h <<\EOF
18556#define wxUSE_DIALUP_MANAGER 1
18557EOF
18558
18559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18560fi
18561
18562if test "$wxUSE_STREAMS" = "yes" ; then
18563 cat >> confdefs.h <<\EOF
18564#define wxUSE_STREAMS 1
18565EOF
18566
18567fi
18568
18569
18570if test "$wxUSE_DATETIME" = "yes"; then
18571 for ac_func in strptime
18572do
18573echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18574echo "configure:18575: checking for $ac_func" >&5
18575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18576 echo $ac_n "(cached) $ac_c" 1>&6
18577else
18578 cat > conftest.$ac_ext <<EOF
18579#line 18580 "configure"
18580#include "confdefs.h"
18581/* System header to define __stub macros and hopefully few prototypes,
18582 which can conflict with char $ac_func(); below. */
18583#include <assert.h>
18584/* Override any gcc2 internal prototype to avoid an error. */
18585/* We use char because int might match the return type of a gcc2
18586 builtin and then its argument prototype would still apply. */
18587char $ac_func();
18588
18589int main() {
18590
18591/* The GNU C library defines this for functions which it implements
18592 to always fail with ENOSYS. Some functions are actually named
18593 something starting with __ and the normal name is an alias. */
18594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18595choke me
18596#else
18597$ac_func();
18598#endif
18599
18600; return 0; }
18601EOF
18602if { (eval echo configure:18603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18603 rm -rf conftest*
18604 eval "ac_cv_func_$ac_func=yes"
18605else
18606 echo "configure: failed program was:" >&5
18607 cat conftest.$ac_ext >&5
18608 rm -rf conftest*
18609 eval "ac_cv_func_$ac_func=no"
18610fi
18611rm -f conftest*
18612fi
18613
18614if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18615 echo "$ac_t""yes" 1>&6
18616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18617 cat >> confdefs.h <<EOF
18618#define $ac_tr_func 1
18619EOF
18620
18621else
18622 echo "$ac_t""no" 1>&6
18623fi
18624done
18625
18626
18627 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18628echo "configure:18629: checking for timezone variable in <time.h>" >&5
18629if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18630 echo $ac_n "(cached) $ac_c" 1>&6
18631else
18632
18633 cat > conftest.$ac_ext <<EOF
18634#line 18635 "configure"
18635#include "confdefs.h"
18636
18637 #include <time.h>
18638
18639int main() {
18640
18641 int tz;
18642 tz = timezone;
18643
18644; return 0; }
18645EOF
18646if { (eval echo configure:18647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18647 rm -rf conftest*
18648
18649 wx_cv_var_timezone=timezone
18650
18651else
18652 echo "configure: failed program was:" >&5
18653 cat conftest.$ac_ext >&5
18654 rm -rf conftest*
18655
18656 cat > conftest.$ac_ext <<EOF
18657#line 18658 "configure"
18658#include "confdefs.h"
18659
18660 #include <time.h>
18661
18662int main() {
18663
18664 int tz;
18665 tz = _timezone;
18666
18667; return 0; }
18668EOF
18669if { (eval echo configure:18670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18670 rm -rf conftest*
18671
18672 wx_cv_var_timezone=_timezone
18673
18674else
18675 echo "configure: failed program was:" >&5
18676 cat conftest.$ac_ext >&5
18677 rm -rf conftest*
18678
18679 cat > conftest.$ac_ext <<EOF
18680#line 18681 "configure"
18681#include "confdefs.h"
18682
18683 #include <time.h>
18684
18685int main() {
18686
18687 int tz;
18688 tz = __timezone;
18689
18690; return 0; }
18691EOF
18692if { (eval echo configure:18693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18693 rm -rf conftest*
18694
18695 wx_cv_var_timezone=__timezone
18696
18697else
18698 echo "configure: failed program was:" >&5
18699 cat conftest.$ac_ext >&5
18700 rm -rf conftest*
18701
18702 if test "$USE_DOS" = 0 ; then
18703 echo "configure: warning: no timezone variable" 1>&2
18704 fi
18705
18706
18707fi
18708rm -f conftest*
18709
18710
18711fi
18712rm -f conftest*
18713
18714
18715fi
18716rm -f conftest*
18717
18718
18719fi
18720
18721echo "$ac_t""$wx_cv_var_timezone" 1>&6
18722
18723 if test "x$wx_cv_var_timezone" != x ; then
18724 cat >> confdefs.h <<EOF
18725#define WX_TIMEZONE $wx_cv_var_timezone
18726EOF
18727
18728 fi
18729
18730 for ac_func in localtime
18731do
18732echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18733echo "configure:18734: checking for $ac_func" >&5
18734if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18735 echo $ac_n "(cached) $ac_c" 1>&6
18736else
18737 cat > conftest.$ac_ext <<EOF
18738#line 18739 "configure"
18739#include "confdefs.h"
18740/* System header to define __stub macros and hopefully few prototypes,
18741 which can conflict with char $ac_func(); below. */
18742#include <assert.h>
18743/* Override any gcc2 internal prototype to avoid an error. */
18744/* We use char because int might match the return type of a gcc2
18745 builtin and then its argument prototype would still apply. */
18746char $ac_func();
18747
18748int main() {
18749
18750/* The GNU C library defines this for functions which it implements
18751 to always fail with ENOSYS. Some functions are actually named
18752 something starting with __ and the normal name is an alias. */
18753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18754choke me
18755#else
18756$ac_func();
18757#endif
18758
18759; return 0; }
18760EOF
18761if { (eval echo configure:18762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18762 rm -rf conftest*
18763 eval "ac_cv_func_$ac_func=yes"
18764else
18765 echo "configure: failed program was:" >&5
18766 cat conftest.$ac_ext >&5
18767 rm -rf conftest*
18768 eval "ac_cv_func_$ac_func=no"
18769fi
18770rm -f conftest*
18771fi
18772
18773if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18774 echo "$ac_t""yes" 1>&6
18775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18776 cat >> confdefs.h <<EOF
18777#define $ac_tr_func 1
18778EOF
18779
18780else
18781 echo "$ac_t""no" 1>&6
18782fi
18783done
18784
18785
18786 if test "$ac_cv_func_localtime" = "yes"; then
18787 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18788echo "configure:18789: checking for tm_gmtoff in struct tm" >&5
18789if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18790 echo $ac_n "(cached) $ac_c" 1>&6
18791else
18792
18793 cat > conftest.$ac_ext <<EOF
18794#line 18795 "configure"
18795#include "confdefs.h"
18796
18797 #include <time.h>
18798
18799int main() {
18800
18801 struct tm tm;
18802 tm.tm_gmtoff++;
18803
18804; return 0; }
18805EOF
18806if { (eval echo configure:18807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18807 rm -rf conftest*
18808
18809 wx_cv_struct_tm_has_gmtoff=yes
18810
18811else
18812 echo "configure: failed program was:" >&5
18813 cat conftest.$ac_ext >&5
18814 rm -rf conftest*
18815 wx_cv_struct_tm_has_gmtoff=no
18816
18817fi
18818rm -f conftest*
18819
18820fi
18821
18822echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18823 fi
18824
18825 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18826 cat >> confdefs.h <<\EOF
18827#define WX_GMTOFF_IN_TM 1
18828EOF
18829
18830 fi
18831
18832 for ac_func in gettimeofday ftime
18833do
18834echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18835echo "configure:18836: checking for $ac_func" >&5
18836if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18837 echo $ac_n "(cached) $ac_c" 1>&6
18838else
18839 cat > conftest.$ac_ext <<EOF
18840#line 18841 "configure"
18841#include "confdefs.h"
18842/* System header to define __stub macros and hopefully few prototypes,
18843 which can conflict with char $ac_func(); below. */
18844#include <assert.h>
18845/* Override any gcc2 internal prototype to avoid an error. */
18846/* We use char because int might match the return type of a gcc2
18847 builtin and then its argument prototype would still apply. */
18848char $ac_func();
18849
18850int main() {
18851
18852/* The GNU C library defines this for functions which it implements
18853 to always fail with ENOSYS. Some functions are actually named
18854 something starting with __ and the normal name is an alias. */
18855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18856choke me
18857#else
18858$ac_func();
18859#endif
18860
18861; return 0; }
18862EOF
18863if { (eval echo configure:18864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
18864 rm -rf conftest*
18865 eval "ac_cv_func_$ac_func=yes"
18866else
18867 echo "configure: failed program was:" >&5
18868 cat conftest.$ac_ext >&5
18869 rm -rf conftest*
18870 eval "ac_cv_func_$ac_func=no"
18871fi
18872rm -f conftest*
18873fi
18874
18875if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18876 echo "$ac_t""yes" 1>&6
18877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18878 cat >> confdefs.h <<EOF
18879#define $ac_tr_func 1
18880EOF
18881 break
18882else
18883 echo "$ac_t""no" 1>&6
18884fi
18885done
18886
18887
18888 if test "$ac_cv_func_gettimeofday" = "yes"; then
18889 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18890echo "configure:18891: checking whether gettimeofday takes two arguments" >&5
18891if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18892 echo $ac_n "(cached) $ac_c" 1>&6
18893else
18894
18895
18896 ac_ext=C
18897# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18898ac_cpp='$CXXCPP $CPPFLAGS'
18899ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18900ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18901cross_compiling=$ac_cv_prog_cxx_cross
18902
18903
18904 cat > conftest.$ac_ext <<EOF
18905#line 18906 "configure"
18906#include "confdefs.h"
18907
18908 #include <sys/time.h>
18909 #include <unistd.h>
18910
18911int main() {
18912
18913 struct timeval tv;
18914 gettimeofday(&tv, NULL);
18915
18916; return 0; }
18917EOF
18918if { (eval echo configure:18919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18919 rm -rf conftest*
18920 wx_cv_func_gettimeofday_has_2_args=yes
18921else
18922 echo "configure: failed program was:" >&5
18923 cat conftest.$ac_ext >&5
18924 rm -rf conftest*
18925 cat > conftest.$ac_ext <<EOF
18926#line 18927 "configure"
18927#include "confdefs.h"
18928
18929 #include <sys/time.h>
18930 #include <unistd.h>
18931
18932int main() {
18933
18934 struct timeval tv;
18935 gettimeofday(&tv);
18936
18937; return 0; }
18938EOF
18939if { (eval echo configure:18940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18940 rm -rf conftest*
18941 wx_cv_func_gettimeofday_has_2_args=no
18942else
18943 echo "configure: failed program was:" >&5
18944 cat conftest.$ac_ext >&5
18945 rm -rf conftest*
18946
18947 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18948 wx_cv_func_gettimeofday_has_2_args=unknown
18949
18950
18951fi
18952rm -f conftest*
18953
18954fi
18955rm -f conftest*
18956 ac_ext=c
18957# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18958ac_cpp='$CPP $CPPFLAGS'
18959ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18960ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18961cross_compiling=$ac_cv_prog_cc_cross
18962
18963
18964fi
18965
18966echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18967
18968 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18969 cat >> confdefs.h <<\EOF
18970#define WX_GETTIMEOFDAY_NO_TZ 1
18971EOF
18972
18973 fi
18974 fi
18975
18976 cat >> confdefs.h <<\EOF
18977#define wxUSE_TIMEDATE 1
18978EOF
18979
18980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18981fi
18982
18983
18984if test "$wxUSE_SOCKETS" = "yes"; then
18985 if test "$wxUSE_X11" = "1"; then
18986 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18987 wxUSE_SOCKETS="no"
18988 fi
18989
18990 if test "$wxUSE_MGL" = "1"; then
18991 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18992 wxUSE_SOCKETS="no"
18993 fi
18994fi
18995
18996if test "$wxUSE_SOCKETS" = "yes"; then
18997 if test "$TOOLKIT" != "MSW"; then
18998 echo $ac_n "checking for socket""... $ac_c" 1>&6
18999echo "configure:19000: checking for socket" >&5
19000if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19001 echo $ac_n "(cached) $ac_c" 1>&6
19002else
19003 cat > conftest.$ac_ext <<EOF
19004#line 19005 "configure"
19005#include "confdefs.h"
19006/* System header to define __stub macros and hopefully few prototypes,
19007 which can conflict with char socket(); below. */
19008#include <assert.h>
19009/* Override any gcc2 internal prototype to avoid an error. */
19010/* We use char because int might match the return type of a gcc2
19011 builtin and then its argument prototype would still apply. */
19012char socket();
19013
19014int main() {
19015
19016/* The GNU C library defines this for functions which it implements
19017 to always fail with ENOSYS. Some functions are actually named
19018 something starting with __ and the normal name is an alias. */
19019#if defined (__stub_socket) || defined (__stub___socket)
19020choke me
19021#else
19022socket();
19023#endif
19024
19025; return 0; }
19026EOF
19027if { (eval echo configure:19028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19028 rm -rf conftest*
19029 eval "ac_cv_func_socket=yes"
19030else
19031 echo "configure: failed program was:" >&5
19032 cat conftest.$ac_ext >&5
19033 rm -rf conftest*
19034 eval "ac_cv_func_socket=no"
19035fi
19036rm -f conftest*
19037fi
19038
19039if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19040 echo "$ac_t""yes" 1>&6
19041 :
19042else
19043 echo "$ac_t""no" 1>&6
19044echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19045echo "configure:19046: checking for socket in -lsocket" >&5
19046ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19048 echo $ac_n "(cached) $ac_c" 1>&6
19049else
19050 ac_save_LIBS="$LIBS"
19051LIBS="-lsocket $LIBS"
19052cat > conftest.$ac_ext <<EOF
19053#line 19054 "configure"
19054#include "confdefs.h"
19055/* Override any gcc2 internal prototype to avoid an error. */
19056/* We use char because int might match the return type of a gcc2
19057 builtin and then its argument prototype would still apply. */
19058char socket();
19059
19060int main() {
19061socket()
19062; return 0; }
19063EOF
19064if { (eval echo configure:19065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19065 rm -rf conftest*
19066 eval "ac_cv_lib_$ac_lib_var=yes"
19067else
19068 echo "configure: failed program was:" >&5
19069 cat conftest.$ac_ext >&5
19070 rm -rf conftest*
19071 eval "ac_cv_lib_$ac_lib_var=no"
19072fi
19073rm -f conftest*
19074LIBS="$ac_save_LIBS"
19075
19076fi
19077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19078 echo "$ac_t""yes" 1>&6
19079 if test "$INET_LINK" != " -lsocket"; then
19080 INET_LINK="$INET_LINK -lsocket"
19081 fi
19082else
19083 echo "$ac_t""no" 1>&6
19084
19085 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19086 wxUSE_SOCKETS=no
19087
19088
19089fi
19090
19091
19092fi
19093
19094 fi
19095fi
19096
19097if test "$wxUSE_SOCKETS" = "yes" ; then
19098 if test "$TOOLKIT" != "MSW"; then
19099 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19100echo "configure:19101: checking what is the type of the third argument of getsockname" >&5
19101if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19102 echo $ac_n "(cached) $ac_c" 1>&6
19103else
19104
19105
19106 ac_ext=C
19107# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19108ac_cpp='$CXXCPP $CPPFLAGS'
19109ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19110ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19111cross_compiling=$ac_cv_prog_cxx_cross
19112
19113
19114 cat > conftest.$ac_ext <<EOF
19115#line 19116 "configure"
19116#include "confdefs.h"
19117
19118 #include <sys/types.h>
19119 #include <sys/socket.h>
19120
19121int main() {
19122
19123 socklen_t len;
19124 getsockname(0, 0, &len);
19125
19126; return 0; }
19127EOF
19128if { (eval echo configure:19129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19129 rm -rf conftest*
19130 wx_cv_type_getsockname3=socklen_t
19131else
19132 echo "configure: failed program was:" >&5
19133 cat conftest.$ac_ext >&5
19134 rm -rf conftest*
19135 cat > conftest.$ac_ext <<EOF
19136#line 19137 "configure"
19137#include "confdefs.h"
19138
19139 #include <sys/types.h>
19140 #include <sys/socket.h>
19141
19142int main() {
19143
19144 size_t len;
19145 getsockname(0, 0, &len);
19146
19147; return 0; }
19148EOF
19149if { (eval echo configure:19150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19150 rm -rf conftest*
19151 wx_cv_type_getsockname3=size_t
19152else
19153 echo "configure: failed program was:" >&5
19154 cat conftest.$ac_ext >&5
19155 rm -rf conftest*
19156 cat > conftest.$ac_ext <<EOF
19157#line 19158 "configure"
19158#include "confdefs.h"
19159
19160 #include <sys/types.h>
19161 #include <sys/socket.h>
19162
19163int main() {
19164
19165 int len;
19166 getsockname(0, 0, &len);
19167
19168; return 0; }
19169EOF
19170if { (eval echo configure:19171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19171 rm -rf conftest*
19172 wx_cv_type_getsockname3=int
19173else
19174 echo "configure: failed program was:" >&5
19175 cat conftest.$ac_ext >&5
19176 rm -rf conftest*
19177 wx_cv_type_getsockname3=unknown
19178
19179fi
19180rm -f conftest*
19181
19182fi
19183rm -f conftest*
19184
19185fi
19186rm -f conftest*
19187
19188 ac_ext=c
19189# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19190ac_cpp='$CPP $CPPFLAGS'
19191ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19192ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19193cross_compiling=$ac_cv_prog_cc_cross
19194
19195
19196fi
19197
19198echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19199
19200 if test "$wx_cv_type_getsockname3" = "unknown"; then
19201 wxUSE_SOCKETS=no
19202 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19203 else
19204 cat >> confdefs.h <<EOF
19205#define SOCKLEN_T $wx_cv_type_getsockname3
19206EOF
19207
19208 fi
19209 fi
19210fi
19211
19212if test "$wxUSE_SOCKETS" = "yes" ; then
19213 cat >> confdefs.h <<\EOF
19214#define wxUSE_SOCKETS 1
19215EOF
19216
19217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19218fi
19219
19220
19221if test "$wxUSE_GUI" = "yes"; then
19222
19223 if test "$TOOLKIT" = "MAC"; then
19224 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19225 wxUSE_JOYSTICK=no
19226 fi
19227 if test "$TOOLKIT" = "MOTIF"; then
19228 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19229 wxUSE_JOYSTICK=no
19230 fi
19231 if test "$TOOLKIT" = "X11"; then
19232 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19233 wxUSE_JOYSTICK=no
19234 fi
19235
19236 if test "$TOOLKIT" != "MSW"; then
19237 if test "$wxUSE_JOYSTICK" = "yes"; then
19238 for ac_hdr in linux/joystick.h
19239do
19240ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19241echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19242echo "configure:19243: checking for $ac_hdr" >&5
19243if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19244 echo $ac_n "(cached) $ac_c" 1>&6
19245else
19246 cat > conftest.$ac_ext <<EOF
19247#line 19248 "configure"
19248#include "confdefs.h"
19249#include <$ac_hdr>
19250EOF
19251ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19252{ (eval echo configure:19253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19253ac_err=`grep -v '^ *+' conftest.out`
19254if test -z "$ac_err"; then
19255 rm -rf conftest*
19256 eval "ac_cv_header_$ac_safe=yes"
19257else
19258 echo "$ac_err" >&5
19259 echo "configure: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19261 rm -rf conftest*
19262 eval "ac_cv_header_$ac_safe=no"
19263fi
19264rm -f conftest*
19265fi
19266if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19267 echo "$ac_t""yes" 1>&6
19268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19269 cat >> confdefs.h <<EOF
19270#define $ac_tr_hdr 1
19271EOF
19272
19273else
19274 echo "$ac_t""no" 1>&6
19275fi
19276done
19277
19278 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19279 wxUSE_JOYSTICK=no
19280 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19281 fi
19282 fi
19283 fi
19284
19285 if test "$wxUSE_JOYSTICK" = "yes"; then
19286 cat >> confdefs.h <<\EOF
19287#define wxUSE_JOYSTICK 1
19288EOF
19289
19290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19291 fi
19292fi
19293
19294
19295if test "$TOOLKIT" != "MSW"; then
19296
19297 HAVE_DL_FUNCS=0
19298 HAVE_SHL_FUNCS=0
19299 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19300 if test "$USE_DARWIN" = 1; then
19301 HAVE_DL_FUNCS=1
19302 else
19303 for ac_func in dlopen
19304do
19305echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19306echo "configure:19307: checking for $ac_func" >&5
19307if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19308 echo $ac_n "(cached) $ac_c" 1>&6
19309else
19310 cat > conftest.$ac_ext <<EOF
19311#line 19312 "configure"
19312#include "confdefs.h"
19313/* System header to define __stub macros and hopefully few prototypes,
19314 which can conflict with char $ac_func(); below. */
19315#include <assert.h>
19316/* Override any gcc2 internal prototype to avoid an error. */
19317/* We use char because int might match the return type of a gcc2
19318 builtin and then its argument prototype would still apply. */
19319char $ac_func();
19320
19321int main() {
19322
19323/* The GNU C library defines this for functions which it implements
19324 to always fail with ENOSYS. Some functions are actually named
19325 something starting with __ and the normal name is an alias. */
19326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19327choke me
19328#else
19329$ac_func();
19330#endif
19331
19332; return 0; }
19333EOF
19334if { (eval echo configure:19335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19335 rm -rf conftest*
19336 eval "ac_cv_func_$ac_func=yes"
19337else
19338 echo "configure: failed program was:" >&5
19339 cat conftest.$ac_ext >&5
19340 rm -rf conftest*
19341 eval "ac_cv_func_$ac_func=no"
19342fi
19343rm -f conftest*
19344fi
19345
19346if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19347 echo "$ac_t""yes" 1>&6
19348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19349 cat >> confdefs.h <<EOF
19350#define $ac_tr_func 1
19351EOF
19352
19353 cat >> confdefs.h <<\EOF
19354#define HAVE_DLOPEN 1
19355EOF
19356
19357 HAVE_DL_FUNCS=1
19358
19359else
19360 echo "$ac_t""no" 1>&6
19361echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19362echo "configure:19363: checking for dlopen in -ldl" >&5
19363ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19364if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19365 echo $ac_n "(cached) $ac_c" 1>&6
19366else
19367 ac_save_LIBS="$LIBS"
19368LIBS="-ldl $LIBS"
19369cat > conftest.$ac_ext <<EOF
19370#line 19371 "configure"
19371#include "confdefs.h"
19372/* Override any gcc2 internal prototype to avoid an error. */
19373/* We use char because int might match the return type of a gcc2
19374 builtin and then its argument prototype would still apply. */
19375char dlopen();
19376
19377int main() {
19378dlopen()
19379; return 0; }
19380EOF
19381if { (eval echo configure:19382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19382 rm -rf conftest*
19383 eval "ac_cv_lib_$ac_lib_var=yes"
19384else
19385 echo "configure: failed program was:" >&5
19386 cat conftest.$ac_ext >&5
19387 rm -rf conftest*
19388 eval "ac_cv_lib_$ac_lib_var=no"
19389fi
19390rm -f conftest*
19391LIBS="$ac_save_LIBS"
19392
19393fi
19394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19395 echo "$ac_t""yes" 1>&6
19396
19397 cat >> confdefs.h <<\EOF
19398#define HAVE_DLOPEN 1
19399EOF
19400
19401 HAVE_DL_FUNCS=1
19402 DL_LINK=" -ldl$DL_LINK"
19403
19404else
19405 echo "$ac_t""no" 1>&6
19406
19407 for ac_func in shl_load
19408do
19409echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19410echo "configure:19411: checking for $ac_func" >&5
19411if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19412 echo $ac_n "(cached) $ac_c" 1>&6
19413else
19414 cat > conftest.$ac_ext <<EOF
19415#line 19416 "configure"
19416#include "confdefs.h"
19417/* System header to define __stub macros and hopefully few prototypes,
19418 which can conflict with char $ac_func(); below. */
19419#include <assert.h>
19420/* Override any gcc2 internal prototype to avoid an error. */
19421/* We use char because int might match the return type of a gcc2
19422 builtin and then its argument prototype would still apply. */
19423char $ac_func();
19424
19425int main() {
19426
19427/* The GNU C library defines this for functions which it implements
19428 to always fail with ENOSYS. Some functions are actually named
19429 something starting with __ and the normal name is an alias. */
19430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19431choke me
19432#else
19433$ac_func();
19434#endif
19435
19436; return 0; }
19437EOF
19438if { (eval echo configure:19439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19439 rm -rf conftest*
19440 eval "ac_cv_func_$ac_func=yes"
19441else
19442 echo "configure: failed program was:" >&5
19443 cat conftest.$ac_ext >&5
19444 rm -rf conftest*
19445 eval "ac_cv_func_$ac_func=no"
19446fi
19447rm -f conftest*
19448fi
19449
19450if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19451 echo "$ac_t""yes" 1>&6
19452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19453 cat >> confdefs.h <<EOF
19454#define $ac_tr_func 1
19455EOF
19456
19457 cat >> confdefs.h <<\EOF
19458#define HAVE_SHL_LOAD 1
19459EOF
19460
19461 HAVE_SHL_FUNCS=1
19462
19463else
19464 echo "$ac_t""no" 1>&6
19465echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19466echo "configure:19467: checking for dld in -lshl_load" >&5
19467ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19468if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19469 echo $ac_n "(cached) $ac_c" 1>&6
19470else
19471 ac_save_LIBS="$LIBS"
19472LIBS="-lshl_load $LIBS"
19473cat > conftest.$ac_ext <<EOF
19474#line 19475 "configure"
19475#include "confdefs.h"
19476/* Override any gcc2 internal prototype to avoid an error. */
19477/* We use char because int might match the return type of a gcc2
19478 builtin and then its argument prototype would still apply. */
19479char dld();
19480
19481int main() {
19482dld()
19483; return 0; }
19484EOF
19485if { (eval echo configure:19486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19486 rm -rf conftest*
19487 eval "ac_cv_lib_$ac_lib_var=yes"
19488else
19489 echo "configure: failed program was:" >&5
19490 cat conftest.$ac_ext >&5
19491 rm -rf conftest*
19492 eval "ac_cv_lib_$ac_lib_var=no"
19493fi
19494rm -f conftest*
19495LIBS="$ac_save_LIBS"
19496
19497fi
19498if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19499 echo "$ac_t""yes" 1>&6
19500
19501 HAVE_SHL_FUNCS=1
19502 DL_LINK=" -ldld$DL_LINK"
19503
19504else
19505 echo "$ac_t""no" 1>&6
19506fi
19507
19508
19509fi
19510done
19511
19512
19513fi
19514
19515
19516fi
19517done
19518
19519
19520 if test "$HAVE_DL_FUNCS" = 1; then
19521 for ac_func in dlerror
19522do
19523echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19524echo "configure:19525: checking for $ac_func" >&5
19525if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19526 echo $ac_n "(cached) $ac_c" 1>&6
19527else
19528 cat > conftest.$ac_ext <<EOF
19529#line 19530 "configure"
19530#include "confdefs.h"
19531/* System header to define __stub macros and hopefully few prototypes,
19532 which can conflict with char $ac_func(); below. */
19533#include <assert.h>
19534/* Override any gcc2 internal prototype to avoid an error. */
19535/* We use char because int might match the return type of a gcc2
19536 builtin and then its argument prototype would still apply. */
19537char $ac_func();
19538
19539int main() {
19540
19541/* The GNU C library defines this for functions which it implements
19542 to always fail with ENOSYS. Some functions are actually named
19543 something starting with __ and the normal name is an alias. */
19544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19545choke me
19546#else
19547$ac_func();
19548#endif
19549
19550; return 0; }
19551EOF
19552if { (eval echo configure:19553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19553 rm -rf conftest*
19554 eval "ac_cv_func_$ac_func=yes"
19555else
19556 echo "configure: failed program was:" >&5
19557 cat conftest.$ac_ext >&5
19558 rm -rf conftest*
19559 eval "ac_cv_func_$ac_func=no"
19560fi
19561rm -f conftest*
19562fi
19563
19564if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19565 echo "$ac_t""yes" 1>&6
19566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19567 cat >> confdefs.h <<EOF
19568#define $ac_tr_func 1
19569EOF
19570 cat >> confdefs.h <<\EOF
19571#define HAVE_DLERROR 1
19572EOF
19573
19574else
19575 echo "$ac_t""no" 1>&6
19576echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19577echo "configure:19578: checking for dlerror in -ldl" >&5
19578ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19580 echo $ac_n "(cached) $ac_c" 1>&6
19581else
19582 ac_save_LIBS="$LIBS"
19583LIBS="-ldl $LIBS"
19584cat > conftest.$ac_ext <<EOF
19585#line 19586 "configure"
19586#include "confdefs.h"
19587/* Override any gcc2 internal prototype to avoid an error. */
19588/* We use char because int might match the return type of a gcc2
19589 builtin and then its argument prototype would still apply. */
19590char dlerror();
19591
19592int main() {
19593dlerror()
19594; return 0; }
19595EOF
19596if { (eval echo configure:19597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19597 rm -rf conftest*
19598 eval "ac_cv_lib_$ac_lib_var=yes"
19599else
19600 echo "configure: failed program was:" >&5
19601 cat conftest.$ac_ext >&5
19602 rm -rf conftest*
19603 eval "ac_cv_lib_$ac_lib_var=no"
19604fi
19605rm -f conftest*
19606LIBS="$ac_save_LIBS"
19607
19608fi
19609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19610 echo "$ac_t""yes" 1>&6
19611 cat >> confdefs.h <<\EOF
19612#define HAVE_DLERROR 1
19613EOF
19614
19615else
19616 echo "$ac_t""no" 1>&6
19617fi
19618
19619fi
19620done
19621
19622 fi
19623 fi
19624
19625 if test "$HAVE_DL_FUNCS" = 0; then
19626 if test "$HAVE_SHL_FUNCS" = 0; then
19627 if test "$USE_UNIX" = 1; then
19628 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19629 wxUSE_DYNAMIC_LOADER=no
19630 wxUSE_DYNLIB_CLASS=no
19631 else
19632 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19633 fi
19634 fi
19635 fi
19636 fi
19637fi
19638
19639if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19640 cat >> confdefs.h <<\EOF
19641#define wxUSE_DYNAMIC_LOADER 1
19642EOF
19643
19644elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19645 cat >> confdefs.h <<\EOF
19646#define wxUSE_DYNLIB_CLASS 1
19647EOF
19648
19649fi
19650
19651
19652if test "$wxUSE_FONTMAP" = "yes" ; then
19653 cat >> confdefs.h <<\EOF
19654#define wxUSE_FONTMAP 1
19655EOF
19656
19657fi
19658
19659if test "$wxUSE_UNICODE" = "yes" ; then
19660 cat >> confdefs.h <<\EOF
19661#define wxUSE_UNICODE 1
19662EOF
19663
19664
19665 if test "$wxUSE_MSW" != 1; then
19666 wxUSE_UNICODE_MSLU=no
19667 fi
19668
19669 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19670 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19671echo "configure:19672: checking for main in -lunicows" >&5
19672ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19673if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19674 echo $ac_n "(cached) $ac_c" 1>&6
19675else
19676 ac_save_LIBS="$LIBS"
19677LIBS="-lunicows $LIBS"
19678cat > conftest.$ac_ext <<EOF
19679#line 19680 "configure"
19680#include "confdefs.h"
19681
19682int main() {
19683main()
19684; return 0; }
19685EOF
19686if { (eval echo configure:19687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
19687 rm -rf conftest*
19688 eval "ac_cv_lib_$ac_lib_var=yes"
19689else
19690 echo "configure: failed program was:" >&5
19691 cat conftest.$ac_ext >&5
19692 rm -rf conftest*
19693 eval "ac_cv_lib_$ac_lib_var=no"
19694fi
19695rm -f conftest*
19696LIBS="$ac_save_LIBS"
19697
19698fi
19699if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19700 echo "$ac_t""yes" 1>&6
19701
19702 cat >> confdefs.h <<\EOF
19703#define wxUSE_UNICODE_MSLU 1
19704EOF
19705
19706
19707else
19708 echo "$ac_t""no" 1>&6
19709
19710 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19711 Applications will only run on Windows NT/2000/XP!" 1>&2
19712 wxUSE_UNICODE_MSLU=no
19713
19714fi
19715
19716 fi
19717fi
19718
19719if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19720 cat >> confdefs.h <<\EOF
19721#define wxUSE_EXPERIMENTAL_PRINTF 1
19722EOF
19723
19724fi
19725
19726
19727
19728IODBC_C_SRC=""
19729if test "$wxUSE_ODBC" = "yes" ; then
19730 cat >> confdefs.h <<\EOF
19731#define wxUSE_ODBC 1
19732EOF
19733
19734 WXODBCFLAG="-D_IODBC_"
19735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19736fi
19737
19738
19739if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19740 cat >> confdefs.h <<\EOF
19741#define wxUSE_POSTSCRIPT 1
19742EOF
19743
19744fi
19745
19746cat >> confdefs.h <<\EOF
19747#define wxUSE_AFM_FOR_POSTSCRIPT 1
19748EOF
19749
19750
19751cat >> confdefs.h <<\EOF
19752#define wxUSE_NORMALIZED_PS_FONTS 1
19753EOF
19754
19755
19756
19757if test "$wxUSE_CONSTRAINTS" = "yes"; then
19758 cat >> confdefs.h <<\EOF
19759#define wxUSE_CONSTRAINTS 1
19760EOF
19761
19762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19763fi
19764
19765if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19766 if test "$wxUSE_UNIVERSAL" = "yes"; then
19767 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19768 wxUSE_MDI_ARCHITECTURE=no
19769 fi
19770
19771 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19772 cat >> confdefs.h <<\EOF
19773#define wxUSE_MDI_ARCHITECTURE 1
19774EOF
19775
19776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19777 fi
19778fi
19779
19780if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19781 cat >> confdefs.h <<\EOF
19782#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19783EOF
19784
19785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19786 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19788 fi
19789fi
19790
19791if test "$wxUSE_HELP" = "yes"; then
19792 cat >> confdefs.h <<\EOF
19793#define wxUSE_HELP 1
19794EOF
19795
19796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19797
19798 if test "$wxUSE_MSW" = 1; then
19799 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19800 cat >> confdefs.h <<\EOF
19801#define wxUSE_MS_HTML_HELP 1
19802EOF
19803
19804 fi
19805 fi
19806
19807 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19808 if test "$wxUSE_HTML" = "yes"; then
19809 cat >> confdefs.h <<\EOF
19810#define wxUSE_WXHTML_HELP 1
19811EOF
19812
19813 else
19814 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19815 wxUSE_WXHTML_HELP=no
19816 fi
19817 fi
19818fi
19819
19820if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19821 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19822 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19823 else
19824 cat >> confdefs.h <<\EOF
19825#define wxUSE_PRINTING_ARCHITECTURE 1
19826EOF
19827
19828 fi
19829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19830fi
19831
19832if test "$wxUSE_PROLOGIO" = "yes" ; then
19833 cat >> confdefs.h <<\EOF
19834#define wxUSE_PROLOGIO 1
19835EOF
19836
19837fi
19838
19839if test "$wxUSE_RESOURCES" = "yes" ; then
19840 if test "$wxUSE_NANOX" = "yes"; then
19841 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19842 else
19843 cat >> confdefs.h <<\EOF
19844#define wxUSE_RESOURCES 1
19845EOF
19846
19847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19848 fi
19849fi
19850
19851if test "$wxUSE_X_RESOURCES" = "yes"; then
19852 cat >> confdefs.h <<\EOF
19853#define wxUSE_X_RESOURCES 1
19854EOF
19855
19856fi
19857
19858
19859if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19860 -o "$wxUSE_CLIPBOARD" = "yes" \
19861 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19862 for ac_hdr in ole2.h
19863do
19864ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19865echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19866echo "configure:19867: checking for $ac_hdr" >&5
19867if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19868 echo $ac_n "(cached) $ac_c" 1>&6
19869else
19870 cat > conftest.$ac_ext <<EOF
19871#line 19872 "configure"
19872#include "confdefs.h"
19873#include <$ac_hdr>
19874EOF
19875ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19876{ (eval echo configure:19877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19877ac_err=`grep -v '^ *+' conftest.out`
19878if test -z "$ac_err"; then
19879 rm -rf conftest*
19880 eval "ac_cv_header_$ac_safe=yes"
19881else
19882 echo "$ac_err" >&5
19883 echo "configure: failed program was:" >&5
19884 cat conftest.$ac_ext >&5
19885 rm -rf conftest*
19886 eval "ac_cv_header_$ac_safe=no"
19887fi
19888rm -f conftest*
19889fi
19890if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19891 echo "$ac_t""yes" 1>&6
19892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19893 cat >> confdefs.h <<EOF
19894#define $ac_tr_hdr 1
19895EOF
19896
19897else
19898 echo "$ac_t""no" 1>&6
19899fi
19900done
19901
19902
19903 if test "$ac_cv_header_ole2_h" = "yes" ; then
19904 if test "$GCC" = yes ; then
19905 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19906 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19907 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19908 cat >> confdefs.h <<\EOF
19909#define wxUSE_OLE 1
19910EOF
19911
19912
19913 fi
19914
19915 cat >> confdefs.h <<\EOF
19916#define wxUSE_DATAOBJ 1
19917EOF
19918
19919 else
19920 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19921
19922 wxUSE_CLIPBOARD=no
19923 wxUSE_DRAG_AND_DROP=no
19924 wxUSE_DATAOBJ=no
19925 fi
19926
19927 if test "$wxUSE_METAFILE" = "yes"; then
19928 cat >> confdefs.h <<\EOF
19929#define wxUSE_METAFILE 1
19930EOF
19931
19932
19933 cat >> confdefs.h <<\EOF
19934#define wxUSE_ENH_METAFILE 1
19935EOF
19936
19937 fi
19938fi
19939
19940if test "$wxUSE_IPC" = "yes"; then
19941 if test "$wxUSE_SOCKETS" != "yes"; then
19942 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19943 fi
19944
19945 cat >> confdefs.h <<\EOF
19946#define wxUSE_IPC 1
19947EOF
19948
19949fi
19950
19951if test "$wxUSE_CLIPBOARD" = "yes"; then
19952 if test "$wxUSE_MGL" = 1; then
19953 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19954 wxUSE_CLIPBOARD=no
19955 fi
19956
19957 if test "$wxUSE_CLIPBOARD" = "yes"; then
19958 cat >> confdefs.h <<\EOF
19959#define wxUSE_CLIPBOARD 1
19960EOF
19961
19962
19963 cat >> confdefs.h <<\EOF
19964#define wxUSE_DATAOBJ 1
19965EOF
19966
19967 fi
19968fi
19969
19970if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19971 if test "$wxUSE_GTK" = 1; then
19972 if test "$WXGTK12" != 1; then
19973 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19974 wxUSE_DRAG_AND_DROP=no
19975 fi
19976 fi
19977
19978 if test "$wxUSE_MOTIF" = 1; then
19979 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19980 wxUSE_DRAG_AND_DROP=no
19981 fi
19982
19983 if test "$wxUSE_X11" = 1; then
19984 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19985 wxUSE_DRAG_AND_DROP=no
19986 fi
19987
19988 if test "$wxUSE_MGL" = 1; then
19989 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19990 wxUSE_DRAG_AND_DROP=no
19991 fi
19992
19993 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19994 cat >> confdefs.h <<\EOF
19995#define wxUSE_DRAG_AND_DROP 1
19996EOF
19997
19998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19999 fi
20000
20001fi
20002
20003if test "$wxUSE_SPLINES" = "yes" ; then
20004 cat >> confdefs.h <<\EOF
20005#define wxUSE_SPLINES 1
20006EOF
20007
20008fi
20009
20010
20011USES_CONTROLS=0
20012if test "$wxUSE_CONTROLS" = "yes"; then
20013 USES_CONTROLS=1
20014fi
20015
20016if test "$wxUSE_ACCEL" = "yes"; then
20017 cat >> confdefs.h <<\EOF
20018#define wxUSE_ACCEL 1
20019EOF
20020
20021 USES_CONTROLS=1
20022fi
20023
20024if test "$wxUSE_BUTTON" = "yes"; then
20025 cat >> confdefs.h <<\EOF
20026#define wxUSE_BUTTON 1
20027EOF
20028
20029 USES_CONTROLS=1
20030fi
20031
20032if test "$wxUSE_BMPBUTTON" = "yes"; then
20033 cat >> confdefs.h <<\EOF
20034#define wxUSE_BMPBUTTON 1
20035EOF
20036
20037 USES_CONTROLS=1
20038fi
20039
20040if test "$wxUSE_CALCTRL" = "yes"; then
20041 cat >> confdefs.h <<\EOF
20042#define wxUSE_CALENDARCTRL 1
20043EOF
20044
20045 USES_CONTROLS=1
20046 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20047fi
20048
20049if test "$wxUSE_CARET" = "yes"; then
20050 cat >> confdefs.h <<\EOF
20051#define wxUSE_CARET 1
20052EOF
20053
20054 USES_CONTROLS=1
20055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20056fi
20057
20058if test "$wxUSE_COMBOBOX" = "yes"; then
20059 cat >> confdefs.h <<\EOF
20060#define wxUSE_COMBOBOX 1
20061EOF
20062
20063 USES_CONTROLS=1
20064fi
20065
20066if test "$wxUSE_CHOICE" = "yes"; then
20067 cat >> confdefs.h <<\EOF
20068#define wxUSE_CHOICE 1
20069EOF
20070
20071 USES_CONTROLS=1
20072fi
20073
20074if test "$wxUSE_CHECKBOX" = "yes"; then
20075 cat >> confdefs.h <<\EOF
20076#define wxUSE_CHECKBOX 1
20077EOF
20078
20079 USES_CONTROLS=1
20080fi
20081
20082if test "$wxUSE_CHECKLST" = "yes"; then
20083 cat >> confdefs.h <<\EOF
20084#define wxUSE_CHECKLISTBOX 1
20085EOF
20086
20087 USES_CONTROLS=1
20088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20089fi
20090
20091if test "$wxUSE_GAUGE" = "yes"; then
20092 cat >> confdefs.h <<\EOF
20093#define wxUSE_GAUGE 1
20094EOF
20095
20096 USES_CONTROLS=1
20097fi
20098
20099if test "$wxUSE_NEW_GRID" = "yes"; then
20100 wxUSE_GRID="yes"
20101 cat >> confdefs.h <<\EOF
20102#define wxUSE_NEW_GRID 1
20103EOF
20104
20105 USES_CONTROLS=1
20106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20107fi
20108
20109if test "$wxUSE_GRID" = "yes"; then
20110 cat >> confdefs.h <<\EOF
20111#define wxUSE_GRID 1
20112EOF
20113
20114 USES_CONTROLS=1
20115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20116fi
20117
20118if test "$wxUSE_IMAGLIST" = "yes"; then
20119 cat >> confdefs.h <<\EOF
20120#define wxUSE_IMAGLIST 1
20121EOF
20122
20123fi
20124
20125if test "$wxUSE_LISTBOX" = "yes"; then
20126 cat >> confdefs.h <<\EOF
20127#define wxUSE_LISTBOX 1
20128EOF
20129
20130 USES_CONTROLS=1
20131fi
20132
20133if test "$wxUSE_LISTCTRL" = "yes"; then
20134 if test "$wxUSE_IMAGLIST" = "yes"; then
20135 cat >> confdefs.h <<\EOF
20136#define wxUSE_LISTCTRL 1
20137EOF
20138
20139 USES_CONTROLS=1
20140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20141 else
20142 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20143 fi
20144fi
20145
20146if test "$wxUSE_NOTEBOOK" = "yes"; then
20147 cat >> confdefs.h <<\EOF
20148#define wxUSE_NOTEBOOK 1
20149EOF
20150
20151 USES_CONTROLS=1
20152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20153fi
20154
20155if test "$wxUSE_PROPSHEET" = "yes"; then
20156 cat >> confdefs.h <<\EOF
20157#define wxUSE_PROPSHEET 1
20158EOF
20159
20160 USES_CONTROLS=1
20161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20162fi
20163
20164if test "$wxUSE_RADIOBOX" = "yes"; then
20165 cat >> confdefs.h <<\EOF
20166#define wxUSE_RADIOBOX 1
20167EOF
20168
20169 USES_CONTROLS=1
20170fi
20171
20172if test "$wxUSE_RADIOBTN" = "yes"; then
20173 cat >> confdefs.h <<\EOF
20174#define wxUSE_RADIOBTN 1
20175EOF
20176
20177 USES_CONTROLS=1
20178fi
20179
20180if test "$wxUSE_SASH" = "yes"; then
20181 cat >> confdefs.h <<\EOF
20182#define wxUSE_SASH 1
20183EOF
20184
20185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20186fi
20187
20188if test "$wxUSE_SCROLLBAR" = "yes"; then
20189 cat >> confdefs.h <<\EOF
20190#define wxUSE_SCROLLBAR 1
20191EOF
20192
20193 USES_CONTROLS=1
20194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20195fi
20196
20197if test "$wxUSE_SLIDER" = "yes"; then
20198 cat >> confdefs.h <<\EOF
20199#define wxUSE_SLIDER 1
20200EOF
20201
20202 USES_CONTROLS=1
20203fi
20204
20205if test "$wxUSE_SPINBTN" = "yes"; then
20206 cat >> confdefs.h <<\EOF
20207#define wxUSE_SPINBTN 1
20208EOF
20209
20210 USES_CONTROLS=1
20211fi
20212
20213if test "$wxUSE_SPINCTRL" = "yes"; then
20214 cat >> confdefs.h <<\EOF
20215#define wxUSE_SPINCTRL 1
20216EOF
20217
20218 USES_CONTROLS=1
20219fi
20220
20221if test "$wxUSE_SPLITTER" = "yes"; then
20222 cat >> confdefs.h <<\EOF
20223#define wxUSE_SPLITTER 1
20224EOF
20225
20226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20227fi
20228
20229if test "$wxUSE_STATBMP" = "yes"; then
20230 cat >> confdefs.h <<\EOF
20231#define wxUSE_STATBMP 1
20232EOF
20233
20234 USES_CONTROLS=1
20235fi
20236
20237if test "$wxUSE_STATBOX" = "yes"; then
20238 cat >> confdefs.h <<\EOF
20239#define wxUSE_STATBOX 1
20240EOF
20241
20242 USES_CONTROLS=1
20243fi
20244
20245if test "$wxUSE_STATTEXT" = "yes"; then
20246 cat >> confdefs.h <<\EOF
20247#define wxUSE_STATTEXT 1
20248EOF
20249
20250 USES_CONTROLS=1
20251fi
20252
20253if test "$wxUSE_STATLINE" = "yes"; then
20254 if test "$wxUSE_WINE" = 1 ; then
20255 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20256 else
20257 cat >> confdefs.h <<\EOF
20258#define wxUSE_STATLINE 1
20259EOF
20260
20261 USES_CONTROLS=1
20262 fi
20263fi
20264
20265if test "$wxUSE_STATUSBAR" = "yes"; then
20266 cat >> confdefs.h <<\EOF
20267#define wxUSE_STATUSBAR 1
20268EOF
20269
20270 USES_CONTROLS=1
20271
20272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20273fi
20274
20275if test "$wxUSE_TABDIALOG" = "yes"; then
20276 cat >> confdefs.h <<\EOF
20277#define wxUSE_TAB_DIALOG 1
20278EOF
20279
20280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20281fi
20282
20283if test "$wxUSE_TEXTCTRL" = "yes"; then
20284 cat >> confdefs.h <<\EOF
20285#define wxUSE_TEXTCTRL 1
20286EOF
20287
20288 USES_CONTROLS=1
20289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20290fi
20291
20292if test "$wxUSE_TOGGLEBTN" = "yes"; then
20293 if test "$wxUSE_MAC" = 1; then
20294 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20295 wxUSE_TOGGLEBTN=no
20296 fi
20297 if test "$wxUSE_UNIVERSAL" = "yes"; then
20298 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20299 wxUSE_TOGGLEBTN=no
20300 fi
20301
20302 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20303 cat >> confdefs.h <<\EOF
20304#define wxUSE_TOGGLEBTN 1
20305EOF
20306
20307 USES_CONTROLS=1
20308 fi
20309fi
20310
20311if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20312 cat >> confdefs.h <<\EOF
20313#define wxUSE_TOOLBAR_SIMPLE 1
20314EOF
20315
20316 wxUSE_TOOLBAR="yes"
20317 USES_CONTROLS=1
20318fi
20319
20320if test "$wxUSE_TOOLBAR" = "yes"; then
20321 cat >> confdefs.h <<\EOF
20322#define wxUSE_TOOLBAR 1
20323EOF
20324
20325 USES_CONTROLS=1
20326
20327 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20328 wxUSE_TOOLBAR_NATIVE="yes"
20329 fi
20330
20331 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20332 cat >> confdefs.h <<\EOF
20333#define wxUSE_TOOLBAR_NATIVE 1
20334EOF
20335
20336 USES_CONTROLS=1
20337 fi
20338
20339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20340fi
20341
20342if test "$wxUSE_TOOLTIPS" = "yes"; then
20343 if test "$wxUSE_MOTIF" = 1; then
20344 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20345 else
20346 if test "$wxUSE_WINE" = 1; then
20347 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20348 else
20349 if test "$wxUSE_UNIVERSAL" = "yes"; then
20350 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20351 else
20352 cat >> confdefs.h <<\EOF
20353#define wxUSE_TOOLTIPS 1
20354EOF
20355
20356 fi
20357 fi
20358 fi
20359fi
20360
20361if test "$wxUSE_TREECTRL" = "yes"; then
20362 if test "$wxUSE_IMAGLIST" = "yes"; then
20363 cat >> confdefs.h <<\EOF
20364#define wxUSE_TREECTRL 1
20365EOF
20366
20367 USES_CONTROLS=1
20368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20369 else
20370 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20371 fi
20372fi
20373
20374if test "$wxUSE_POPUPWIN" = "yes"; then
20375 if test "$wxUSE_MAC" = 1; then
20376 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20377 else
20378 if test "$wxUSE_MOTIF" = 1; then
20379 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20380 else
20381 if test "$wxUSE_PM" = 1; then
20382 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20383 else
20384 cat >> confdefs.h <<\EOF
20385#define wxUSE_POPUPWIN 1
20386EOF
20387
20388
20389 USES_CONTROLS=1
20390 fi
20391 fi
20392 fi
20393fi
20394
20395if test "$wxUSE_TIPWINDOW" = "yes"; then
20396 if test "$wxUSE_PM" = 1; then
20397 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20398 else
20399 cat >> confdefs.h <<\EOF
20400#define wxUSE_TIPWINDOW 1
20401EOF
20402
20403 fi
20404fi
20405
20406if test "$USES_CONTROLS" = 1; then
20407 cat >> confdefs.h <<\EOF
20408#define wxUSE_CONTROLS 1
20409EOF
20410
20411fi
20412
20413
20414if test "$wxUSE_TREELAYOUT" = "yes"; then
20415 cat >> confdefs.h <<\EOF
20416#define wxUSE_TREELAYOUT 1
20417EOF
20418
20419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20420fi
20421
20422if test "$wxUSE_DRAGIMAGE" = "yes"; then
20423 cat >> confdefs.h <<\EOF
20424#define wxUSE_DRAGIMAGE 1
20425EOF
20426
20427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20428fi
20429
20430if test "$wxUSE_MENUS" = "yes"; then
20431 cat >> confdefs.h <<\EOF
20432#define wxUSE_MENUS 1
20433EOF
20434
20435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20436fi
20437
20438if test "$wxUSE_METAFILE" = "yes"; then
20439 cat >> confdefs.h <<\EOF
20440#define wxUSE_METAFILE 1
20441EOF
20442
20443fi
20444
20445if test "$wxUSE_MIMETYPE" = "yes"; then
20446 cat >> confdefs.h <<\EOF
20447#define wxUSE_MIMETYPE 1
20448EOF
20449
20450fi
20451
20452if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20453 cat >> confdefs.h <<\EOF
20454#define wxUSE_SYSTEM_OPTIONS 1
20455EOF
20456
20457if test "$TOOLKIT" = "MSW"; then
20458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20459fi
20460
20461fi
20462
20463if test "$wxUSE_PROTOCOL" = "yes"; then
20464 if test "$wxUSE_SOCKETS" != "yes"; then
20465 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20466 wxUSE_PROTOCOL=no
20467 fi
20468
20469 if test "$wxUSE_PROTOCOL" = "yes"; then
20470 cat >> confdefs.h <<\EOF
20471#define wxUSE_PROTOCOL 1
20472EOF
20473
20474
20475 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20476 cat >> confdefs.h <<\EOF
20477#define wxUSE_PROTOCOL_HTTP 1
20478EOF
20479
20480 fi
20481 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20482 cat >> confdefs.h <<\EOF
20483#define wxUSE_PROTOCOL_FTP 1
20484EOF
20485
20486 fi
20487 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20488 cat >> confdefs.h <<\EOF
20489#define wxUSE_PROTOCOL_FILE 1
20490EOF
20491
20492 fi
20493 fi
20494fi
20495
20496if test "$wxUSE_URL" = "yes"; then
20497 if test "$wxUSE_PROTOCOL" != "yes"; then
20498 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20499 wxUSE_URL=no
20500 fi
20501 if test "$wxUSE_URL" = "yes"; then
20502 cat >> confdefs.h <<\EOF
20503#define wxUSE_URL 1
20504EOF
20505
20506 fi
20507fi
20508
20509if test "$wxUSE_MINIFRAME" = "yes"; then
20510 cat >> confdefs.h <<\EOF
20511#define wxUSE_MINIFRAME 1
20512EOF
20513
20514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20515fi
20516
20517if test "$wxUSE_HTML" = "yes"; then
20518 cat >> confdefs.h <<\EOF
20519#define wxUSE_HTML 1
20520EOF
20521
20522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20523fi
20524
20525if test "$wxUSE_VALIDATORS" = "yes"; then
20526 cat >> confdefs.h <<\EOF
20527#define wxUSE_VALIDATORS 1
20528EOF
20529
20530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20531fi
20532
20533if test "$wxUSE_PALETTE" = "yes" ; then
20534 cat >> confdefs.h <<\EOF
20535#define wxUSE_PALETTE 1
20536EOF
20537
20538fi
20539
20540if test "$wxUSE_IMAGE" = "yes" ; then
20541 cat >> confdefs.h <<\EOF
20542#define wxUSE_IMAGE 1
20543EOF
20544
20545fi
20546
20547if test "$wxUSE_GIF" = "yes" ; then
20548 cat >> confdefs.h <<\EOF
20549#define wxUSE_GIF 1
20550EOF
20551
20552fi
20553
20554if test "$wxUSE_PCX" = "yes" ; then
20555 cat >> confdefs.h <<\EOF
20556#define wxUSE_PCX 1
20557EOF
20558
20559fi
20560
20561if test "$wxUSE_IFF" = "yes" ; then
20562 cat >> confdefs.h <<\EOF
20563#define wxUSE_IFF 1
20564EOF
20565
20566fi
20567
20568if test "$wxUSE_PNM" = "yes" ; then
20569 cat >> confdefs.h <<\EOF
20570#define wxUSE_PNM 1
20571EOF
20572
20573fi
20574
20575if test "$wxUSE_XPM" = "yes" ; then
20576 cat >> confdefs.h <<\EOF
20577#define wxUSE_XPM 1
20578EOF
20579
20580fi
20581
20582if test "$wxUSE_ICO_CUR" = "yes" ; then
20583 cat >> confdefs.h <<\EOF
20584#define wxUSE_ICO_CUR 1
20585EOF
20586
20587fi
20588
20589if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20590 LIBS=" -lunicows $LIBS"
20591fi
20592
20593
20594if test "$wxUSE_CHOICEDLG" = "yes"; then
20595 cat >> confdefs.h <<\EOF
20596#define wxUSE_CHOICEDLG 1
20597EOF
20598
20599fi
20600
20601if test "$wxUSE_COLOURDLG" = "yes"; then
20602 cat >> confdefs.h <<\EOF
20603#define wxUSE_COLOURDLG 1
20604EOF
20605
20606fi
20607
20608if test "$wxUSE_FILEDLG" = "yes"; then
20609 cat >> confdefs.h <<\EOF
20610#define wxUSE_FILEDLG 1
20611EOF
20612
20613fi
20614
20615if test "$wxUSE_FINDREPLDLG" = "yes"; then
20616 cat >> confdefs.h <<\EOF
20617#define wxUSE_FINDREPLDLG 1
20618EOF
20619
20620fi
20621
20622if test "$wxUSE_FONTDLG" = "yes"; then
20623 cat >> confdefs.h <<\EOF
20624#define wxUSE_FONTDLG 1
20625EOF
20626
20627fi
20628
20629if test "$wxUSE_DIRDLG" = "yes"; then
20630 if test "$wxUSE_TREECTRL" != "yes"; then
20631 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20632 else
20633 cat >> confdefs.h <<\EOF
20634#define wxUSE_DIRDLG 1
20635EOF
20636
20637 fi
20638fi
20639
20640if test "$wxUSE_MSGDLG" = "yes"; then
20641 cat >> confdefs.h <<\EOF
20642#define wxUSE_MSGDLG 1
20643EOF
20644
20645fi
20646
20647if test "$wxUSE_NUMBERDLG" = "yes"; then
20648 cat >> confdefs.h <<\EOF
20649#define wxUSE_NUMBERDLG 1
20650EOF
20651
20652fi
20653
20654if test "$wxUSE_PROGRESSDLG" = "yes"; then
20655 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20656 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20657 else
20658 cat >> confdefs.h <<\EOF
20659#define wxUSE_PROGRESSDLG 1
20660EOF
20661
20662 fi
20663fi
20664
20665if test "$wxUSE_SPLASH" = "yes"; then
20666 cat >> confdefs.h <<\EOF
20667#define wxUSE_SPLASH 1
20668EOF
20669
20670fi
20671
20672if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20673 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20674 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20675 else
20676 cat >> confdefs.h <<\EOF
20677#define wxUSE_STARTUP_TIPS 1
20678EOF
20679
20680 fi
20681fi
20682
20683if test "$wxUSE_TEXTDLG" = "yes"; then
20684 cat >> confdefs.h <<\EOF
20685#define wxUSE_TEXTDLG 1
20686EOF
20687
20688fi
20689
20690if test "$wxUSE_WIZARDDLG" = "yes"; then
20691 cat >> confdefs.h <<\EOF
20692#define wxUSE_WIZARDDLG 1
20693EOF
20694
20695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20696fi
20697
20698
20699if test "$cross_compiling" = "yes"; then
20700 OSINFO="\"$host\""
20701else
20702 OSINFO=`uname -s -r -m`
20703 OSINFO="\"$OSINFO\""
20704fi
20705
20706cat >> confdefs.h <<EOF
20707#define WXWIN_OS_DESCRIPTION $OSINFO
20708EOF
20709
20710
20711
20712if test "x$prefix" != "xNONE"; then
20713 wxPREFIX=$prefix
20714else
20715 wxPREFIX=$ac_default_prefix
20716fi
20717
20718cat >> confdefs.h <<EOF
20719#define wxINSTALL_PREFIX "$wxPREFIX"
20720EOF
20721
20722
20723
20724
20725
20726if test "$wxUSE_MAC" = 1 ; then
20727 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20728fi
20729
20730
20731LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20732
20733if test "$wxUSE_GUI" = "yes"; then
20734
20735 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20736
20737
20738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20739 drawing dynamic erase event exec font image \
20740 minimal richedit rotate widgets"
20741
20742 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20743else
20744 SAMPLES_SUBDIRS="console"
20745fi
20746
20747
20748INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20749-I\${top_srcdir}/include \
20750$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20751$TOOLKIT_INCLUDE"
20752
20753if test "$wxUSE_GTK" = 1; then
20754 WXCONFIG_INCLUDE=
20755else
20756 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20757fi
20758
20759if test "$GXX" = yes ; then
20760 CXXWARNINGS="-Wall"
20761
20762 if test "$wxUSE_NO_DEPS" = "no" ; then
20763 CFLAGS="-MMD $CFLAGS"
20764 CXXFLAGS="-MMD $CXXFLAGS"
20765 fi
20766fi
20767
20768EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20769
20770CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20771CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20772LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20773
20774LDFLAGS="$LDFLAGS $PROFILE"
20775
20776SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20868echo "configure:20869: checking whether ${MAKE-make} sets \${MAKE}" >&5
20869set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20870if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20871 echo $ac_n "(cached) $ac_c" 1>&6
20872else
20873 cat > conftestmake <<\EOF
20874all:
20875 @echo 'ac_maketemp="${MAKE}"'
20876EOF
20877# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20878eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20879if test -n "$ac_maketemp"; then
20880 eval ac_cv_prog_make_${ac_make}_set=yes
20881else
20882 eval ac_cv_prog_make_${ac_make}_set=no
20883fi
20884rm -f conftestmake
20885fi
20886if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20887 echo "$ac_t""yes" 1>&6
20888 SET_MAKE=
20889else
20890 echo "$ac_t""no" 1>&6
20891 SET_MAKE="MAKE=${MAKE-make}"
20892fi
20893
20894
20895if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20896 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20897fi
20898
20899
20900
20901wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20902wx_cv_if_gnu_make=$IF_GNU_MAKE
20903wx_cv_path_ifs=$PATH_IFS
20904wx_cv_program_ext=$PROGRAM_EXT
20905wx_cv_target_library=$WX_TARGET_LIBRARY
20906wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20907wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20908export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20909 wx_cv_path_ifs wx_cv_program_ext \
20910 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20911
20912subdirs="demos samples utils contrib"
20913
20914
20915trap '' 1 2 15
20916cat > confcache <<\EOF
20917# This file is a shell script that caches the results of configure
20918# tests run on this system so they can be shared between configure
20919# scripts and configure runs. It is not useful on other systems.
20920# If it contains results you don't want to keep, you may remove or edit it.
20921#
20922# By default, configure uses ./config.cache as the cache file,
20923# creating it if it does not exist already. You can give configure
20924# the --cache-file=FILE option to use a different cache file; that is
20925# what configure does when it calls configure scripts in
20926# subdirectories, so they share the cache.
20927# Giving --cache-file=/dev/null disables caching, for debugging configure.
20928# config.status only pays attention to the cache file if you give it the
20929# --recheck option to rerun configure.
20930#
20931EOF
20932# The following way of writing the cache mishandles newlines in values,
20933# but we know of no workaround that is simple, portable, and efficient.
20934# So, don't put newlines in cache variables' values.
20935# Ultrix sh set writes to stderr and can't be redirected directly,
20936# and sets the high bit in the cache file unless we assign to the vars.
20937(set) 2>&1 |
20938 case `(ac_space=' '; set) 2>&1` in
20939 *ac_space=\ *)
20940 # `set' does not quote correctly, so add quotes (double-quote substitution
20941 # turns \\\\ into \\, and sed turns \\ into \).
20942 sed -n \
20943 -e "s/'/'\\\\''/g" \
20944 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20945 ;;
20946 *)
20947 # `set' quotes correctly as required by POSIX, so do not add quotes.
20948 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20949 ;;
20950 esac >> confcache
20951if cmp -s $cache_file confcache; then
20952 :
20953else
20954 if test -w $cache_file; then
20955 echo "updating cache $cache_file"
20956 cat confcache > $cache_file
20957 else
20958 echo "not updating unwritable cache $cache_file"
20959 fi
20960fi
20961rm -f confcache
20962
20963trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20964
20965test "x$prefix" = xNONE && prefix=$ac_default_prefix
20966# Let make expand exec_prefix.
20967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20968
20969# Any assignment to VPATH causes Sun make to only execute
20970# the first set of double-colon rules, so remove it if not needed.
20971# If there is a colon in the path, we need to keep it.
20972if test "x$srcdir" = x.; then
20973 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20974fi
20975
20976trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20977
20978DEFS=-DHAVE_CONFIG_H
20979
20980# Without the "./", some shells look in PATH for config.status.
20981: ${CONFIG_STATUS=./config.status}
20982
20983echo creating $CONFIG_STATUS
20984rm -f $CONFIG_STATUS
20985cat > $CONFIG_STATUS <<EOF
20986#! /bin/sh
20987# Generated automatically by configure.
20988# Run this file to recreate the current configuration.
20989# This directory was configured as follows,
20990# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20991#
20992# $0 $ac_configure_args
20993#
20994# Compiler output produced by configure, useful for debugging
20995# configure, is in ./config.log if it exists.
20996
20997ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20998for ac_option
20999do
21000 case "\$ac_option" in
21001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21002 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21003 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21004 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21005 echo "$CONFIG_STATUS generated by autoconf version 2.12"
21006 exit 0 ;;
21007 -help | --help | --hel | --he | --h)
21008 echo "\$ac_cs_usage"; exit 0 ;;
21009 *) echo "\$ac_cs_usage"; exit 1 ;;
21010 esac
21011done
21012
21013ac_given_srcdir=$srcdir
21014ac_given_INSTALL="$INSTALL"
21015
21016trap 'rm -fr `echo "
21017 wx-config
21018 src/make.env
21019 src/makeprog.env
21020 src/makelib.env
21021 Makefile
21022 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21023EOF
21024cat >> $CONFIG_STATUS <<EOF
21025
21026# Protect against being on the right side of a sed subst in config.status.
21027sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21028 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21029$ac_vpsub
21030$extrasub
21031s%@CFLAGS@%$CFLAGS%g
21032s%@CPPFLAGS@%$CPPFLAGS%g
21033s%@CXXFLAGS@%$CXXFLAGS%g
21034s%@DEFS@%$DEFS%g
21035s%@LDFLAGS@%$LDFLAGS%g
21036s%@LIBS@%$LIBS%g
21037s%@exec_prefix@%$exec_prefix%g
21038s%@prefix@%$prefix%g
21039s%@program_transform_name@%$program_transform_name%g
21040s%@bindir@%$bindir%g
21041s%@sbindir@%$sbindir%g
21042s%@libexecdir@%$libexecdir%g
21043s%@datadir@%$datadir%g
21044s%@sysconfdir@%$sysconfdir%g
21045s%@sharedstatedir@%$sharedstatedir%g
21046s%@localstatedir@%$localstatedir%g
21047s%@libdir@%$libdir%g
21048s%@includedir@%$includedir%g
21049s%@oldincludedir@%$oldincludedir%g
21050s%@infodir@%$infodir%g
21051s%@mandir@%$mandir%g
21052s%@host@%$host%g
21053s%@host_alias@%$host_alias%g
21054s%@host_cpu@%$host_cpu%g
21055s%@host_vendor@%$host_vendor%g
21056s%@host_os@%$host_os%g
21057s%@target@%$target%g
21058s%@target_alias@%$target_alias%g
21059s%@target_cpu@%$target_cpu%g
21060s%@target_vendor@%$target_vendor%g
21061s%@target_os@%$target_os%g
21062s%@build@%$build%g
21063s%@build_alias@%$build_alias%g
21064s%@build_cpu@%$build_cpu%g
21065s%@build_vendor@%$build_vendor%g
21066s%@build_os@%$build_os%g
21067s%@CC@%$CC%g
21068s%@CPP@%$CPP%g
21069s%@CXX@%$CXX%g
21070s%@RANLIB@%$RANLIB%g
21071s%@AR@%$AR%g
21072s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21073s%@INSTALL_DATA@%$INSTALL_DATA%g
21074s%@STRIP@%$STRIP%g
21075s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21076s%@YACC@%$YACC%g
21077s%@LEX@%$LEX%g
21078s%@LEXLIB@%$LEXLIB%g
21079s%@LN_S@%$LN_S%g
21080s%@CXXCPP@%$CXXCPP%g
21081s%@PKG_CONFIG@%$PKG_CONFIG%g
21082s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21083s%@GTK_LIBS@%$GTK_LIBS%g
21084s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21085s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21086s%@GTK_CONFIG@%$GTK_CONFIG%g
21087s%@X_CFLAGS@%$X_CFLAGS%g
21088s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21089s%@X_LIBS@%$X_LIBS%g
21090s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21091s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21092s%@RESCOMP@%$RESCOMP%g
21093s%@DEREZ@%$DEREZ%g
21094s%@LIBICONV@%$LIBICONV%g
21095s%@LEX_STEM@%$LEX_STEM%g
21096s%@PATH_IFS@%$PATH_IFS%g
21097s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21098s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21099s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21100s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21101s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21102s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21103s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21104s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21105s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21106s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21107s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21108s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21109s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21110s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21111s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21112s%@WX_ALL@%$WX_ALL%g
21113s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21114s%@SHARED_LD@%$SHARED_LD%g
21115s%@PIC_FLAG@%$PIC_FLAG%g
21116s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21117s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21118s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21119s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21120s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21121s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21122s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21123s%@USE_GUI@%$USE_GUI%g
21124s%@AFMINSTALL@%$AFMINSTALL%g
21125s%@TOOLKIT@%$TOOLKIT%g
21126s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21127s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21128s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21129s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21130s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21131s%@cross_compiling@%$cross_compiling%g
21132s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21133s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21134s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21135s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21136s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21137s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21138s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21139s%@ALL_HEADERS@%$ALL_HEADERS%g
21140s%@ALL_SOURCES@%$ALL_SOURCES%g
21141s%@GUIDIST@%$GUIDIST%g
21142s%@PORT_FILES@%$PORT_FILES%g
21143s%@DISTDIR@%$DISTDIR%g
21144s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21145s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21146s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21147s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21148s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21149s%@EXTRADEFS@%$EXTRADEFS%g
21150s%@RESFLAGS@%$RESFLAGS%g
21151s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21152s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21153s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21154s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21155s%@LIBWXMACRES@%$LIBWXMACRES%g
21156s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21157s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21158s%@DLLTOOL@%$DLLTOOL%g
21159s%@AS@%$AS%g
21160s%@NM@%$NM%g
21161s%@LD@%$LD%g
21162s%@MAKEINFO@%$MAKEINFO%g
21163s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21164s%@SET_MAKE@%$SET_MAKE%g
21165s%@subdirs@%$subdirs%g
21166
21167CEOF
21168EOF
21169
21170cat >> $CONFIG_STATUS <<\EOF
21171
21172# Split the substitutions into bite-sized pieces for seds with
21173# small command number limits, like on Digital OSF/1 and HP-UX.
21174ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21175ac_file=1 # Number of current file.
21176ac_beg=1 # First line for current file.
21177ac_end=$ac_max_sed_cmds # Line after last line for current file.
21178ac_more_lines=:
21179ac_sed_cmds=""
21180while $ac_more_lines; do
21181 if test $ac_beg -gt 1; then
21182 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21183 else
21184 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21185 fi
21186 if test ! -s conftest.s$ac_file; then
21187 ac_more_lines=false
21188 rm -f conftest.s$ac_file
21189 else
21190 if test -z "$ac_sed_cmds"; then
21191 ac_sed_cmds="sed -f conftest.s$ac_file"
21192 else
21193 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21194 fi
21195 ac_file=`expr $ac_file + 1`
21196 ac_beg=$ac_end
21197 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21198 fi
21199done
21200if test -z "$ac_sed_cmds"; then
21201 ac_sed_cmds=cat
21202fi
21203EOF
21204
21205cat >> $CONFIG_STATUS <<EOF
21206
21207CONFIG_FILES=\${CONFIG_FILES-"wx-config
21208 src/make.env
21209 src/makeprog.env
21210 src/makelib.env
21211 Makefile
21212 "}
21213EOF
21214cat >> $CONFIG_STATUS <<\EOF
21215for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21217 case "$ac_file" in
21218 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21219 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21220 *) ac_file_in="${ac_file}.in" ;;
21221 esac
21222
21223 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21224
21225 # Remove last slash and all that follows it. Not all systems have dirname.
21226 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21227 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21228 # The file is in a subdirectory.
21229 test ! -d "$ac_dir" && mkdir "$ac_dir"
21230 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21231 # A "../" for each directory in $ac_dir_suffix.
21232 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21233 else
21234 ac_dir_suffix= ac_dots=
21235 fi
21236
21237 case "$ac_given_srcdir" in
21238 .) srcdir=.
21239 if test -z "$ac_dots"; then top_srcdir=.
21240 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21241 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21242 *) # Relative path.
21243 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21244 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21245 esac
21246
21247 case "$ac_given_INSTALL" in
21248 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21249 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21250 esac
21251
21252 echo creating "$ac_file"
21253 rm -f "$ac_file"
21254 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21255 case "$ac_file" in
21256 *Makefile*) ac_comsub="1i\\
21257# $configure_input" ;;
21258 *) ac_comsub= ;;
21259 esac
21260
21261 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21262 sed -e "$ac_comsub
21263s%@configure_input@%$configure_input%g
21264s%@srcdir@%$srcdir%g
21265s%@top_srcdir@%$top_srcdir%g
21266s%@INSTALL@%$INSTALL%g
21267" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21268fi; done
21269rm -f conftest.s*
21270
21271# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21272# NAME is the cpp macro being defined and VALUE is the value it is being given.
21273#
21274# ac_d sets the value in "#define NAME VALUE" lines.
21275ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21276ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21277ac_dC='\3'
21278ac_dD='%g'
21279# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21280ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21281ac_uB='\([ ]\)%\1#\2define\3'
21282ac_uC=' '
21283ac_uD='\4%g'
21284# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21285ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21286ac_eB='$%\1#\2define\3'
21287ac_eC=' '
21288ac_eD='%g'
21289
21290if test "${CONFIG_HEADERS+set}" != set; then
21291EOF
21292cat >> $CONFIG_STATUS <<EOF
21293 CONFIG_HEADERS="setup.h:setup.h.in"
21294EOF
21295cat >> $CONFIG_STATUS <<\EOF
21296fi
21297for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21299 case "$ac_file" in
21300 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21301 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21302 *) ac_file_in="${ac_file}.in" ;;
21303 esac
21304
21305 echo creating $ac_file
21306
21307 rm -f conftest.frag conftest.in conftest.out
21308 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21309 cat $ac_file_inputs > conftest.in
21310
21311EOF
21312
21313# Transform confdefs.h into a sed script conftest.vals that substitutes
21314# the proper values into config.h.in to produce config.h. And first:
21315# Protect against being on the right side of a sed subst in config.status.
21316# Protect against being in an unquoted here document in config.status.
21317rm -f conftest.vals
21318cat > conftest.hdr <<\EOF
21319s/[\\&%]/\\&/g
21320s%[\\$`]%\\&%g
21321s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21322s%ac_d%ac_u%gp
21323s%ac_u%ac_e%gp
21324EOF
21325sed -n -f conftest.hdr confdefs.h > conftest.vals
21326rm -f conftest.hdr
21327
21328# This sed command replaces #undef with comments. This is necessary, for
21329# example, in the case of _POSIX_SOURCE, which is predefined and required
21330# on some systems where configure will not decide to define it.
21331cat >> conftest.vals <<\EOF
21332s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21333EOF
21334
21335# Break up conftest.vals because some shells have a limit on
21336# the size of here documents, and old seds have small limits too.
21337
21338rm -f conftest.tail
21339while :
21340do
21341 ac_lines=`grep -c . conftest.vals`
21342 # grep -c gives empty output for an empty file on some AIX systems.
21343 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21344 # Write a limited-size here document to conftest.frag.
21345 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21346 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21347 echo 'CEOF
21348 sed -f conftest.frag conftest.in > conftest.out
21349 rm -f conftest.in
21350 mv conftest.out conftest.in
21351' >> $CONFIG_STATUS
21352 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21353 rm -f conftest.vals
21354 mv conftest.tail conftest.vals
21355done
21356rm -f conftest.vals
21357
21358cat >> $CONFIG_STATUS <<\EOF
21359 rm -f conftest.frag conftest.h
21360 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21361 cat conftest.in >> conftest.h
21362 rm -f conftest.in
21363 if cmp -s $ac_file conftest.h 2>/dev/null; then
21364 echo "$ac_file is unchanged"
21365 rm -f conftest.h
21366 else
21367 # Remove last slash and all that follows it. Not all systems have dirname.
21368 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21369 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21370 # The file is in a subdirectory.
21371 test ! -d "$ac_dir" && mkdir "$ac_dir"
21372 fi
21373 rm -f $ac_file
21374 mv conftest.h $ac_file
21375 fi
21376fi; done
21377
21378EOF
21379cat >> $CONFIG_STATUS <<EOF
21380
21381 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21382 LN_S="${LN_S}"
21383
21384
21385EOF
21386cat >> $CONFIG_STATUS <<\EOF
21387
21388 if test ! -h wx-config; then
21389 chmod +x wx-config
21390 mv wx-config wx${TOOLCHAIN_NAME}-config
21391 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21392 fi
21393
21394 if test ! -d lib; then
21395 mkdir lib
21396 fi
21397 if test ! -d lib/wx; then
21398 mkdir lib/wx
21399 fi
21400 if test ! -d lib/wx/include; then
21401 mkdir lib/wx/include
21402 fi
21403 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21404 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21405 fi
21406 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21407 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21408 fi
21409 if test -f setup.h; then
21410 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21411 fi
21412
21413exit 0
21414EOF
21415chmod +x $CONFIG_STATUS
21416rm -fr confdefs* $ac_clean_files
21417test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21418
21419if test "$no_recursion" != yes; then
21420
21421 # Remove --cache-file and --srcdir arguments so they do not pile up.
21422 ac_sub_configure_args=
21423 ac_prev=
21424 for ac_arg in $ac_configure_args; do
21425 if test -n "$ac_prev"; then
21426 ac_prev=
21427 continue
21428 fi
21429 case "$ac_arg" in
21430 -cache-file | --cache-file | --cache-fil | --cache-fi \
21431 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21432 ac_prev=cache_file ;;
21433 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21434 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21435 ;;
21436 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21437 ac_prev=srcdir ;;
21438 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21439 ;;
21440 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21441 esac
21442 done
21443
21444 for ac_config_dir in demos samples utils contrib; do
21445
21446 # Do not complain, so a configure script can configure whichever
21447 # parts of a large source tree are present.
21448 if test ! -d $srcdir/$ac_config_dir; then
21449 continue
21450 fi
21451
21452 echo configuring in $ac_config_dir
21453
21454 case "$srcdir" in
21455 .) ;;
21456 *)
21457 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21458 else
21459 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21460 fi
21461 ;;
21462 esac
21463
21464 ac_popdir=`pwd`
21465 cd $ac_config_dir
21466
21467 # A "../" for each directory in /$ac_config_dir.
21468 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21469
21470 case "$srcdir" in
21471 .) # No --srcdir option. We are building in place.
21472 ac_sub_srcdir=$srcdir ;;
21473 /*) # Absolute path.
21474 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21475 *) # Relative path.
21476 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21477 esac
21478
21479 # Check for guested configure; otherwise get Cygnus style configure.
21480 if test -f $ac_sub_srcdir/configure; then
21481 ac_sub_configure=$ac_sub_srcdir/configure
21482 elif test -f $ac_sub_srcdir/configure.in; then
21483 ac_sub_configure=$ac_configure
21484 else
21485 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21486 ac_sub_configure=
21487 fi
21488
21489 # The recursion is here.
21490 if test -n "$ac_sub_configure"; then
21491
21492 # Make the cache file name correct relative to the subdirectory.
21493 case "$cache_file" in
21494 /*) ac_sub_cache_file=$cache_file ;;
21495 *) # Relative path.
21496 ac_sub_cache_file="$ac_dots$cache_file" ;;
21497 esac
21498 case "$ac_given_INSTALL" in
21499 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21500 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21501 esac
21502
21503 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21504 # The eval makes quoting arguments work.
21505 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21506 then :
21507 else
21508 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21509 fi
21510 fi
21511
21512 cd $ac_popdir
21513 done
21514fi
21515
21516