]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
Applied patch [ 743194 ] HitTest for wxNotebook
[wxWidgets.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65# Configure paths for GTK+
66# Owen Taylor 1997-2001
67
68
69
70# Configure paths for GTK+
71# Owen Taylor 97-11-3
72
73
74
75
76
77
78
79
80# Guess values for system-dependent variables and create Makefiles.
81# Generated automatically using autoconf version 2.13
82# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83#
84# This configure script is free software; the Free Software Foundation
85# gives unlimited permission to copy, distribute and modify it.
86
87# Defaults:
88ac_help=
89ac_default_prefix=/usr/local
90# Any additions from configure.in:
91ac_help="$ac_help
92 --enable-gui use GUI classes"
93ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95ac_help="$ac_help
96 --with-gtk use GTK+"
97ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99ac_help="$ac_help
100 --with-mac use Mac OS X"
101ac_help="$ac_help
102 --with-cocoa use Cocoa"
103ac_help="$ac_help
104 --with-wine use Wine"
105ac_help="$ac_help
106 --with-msw use MS-Windows"
107ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111ac_help="$ac_help
112 --with-microwin use MicroWindows"
113ac_help="$ac_help
114 --with-x11 use X11"
115ac_help="$ac_help
116 --enable-nanox use NanoX"
117ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135ac_help="$ac_help
136 --enable-shared create shared library code"
137ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139ac_help="$ac_help
140 --enable-optimise create optimised code"
141ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143ac_help="$ac_help
144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
145ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155ac_help="$ac_help
156 --enable-profile create code with profiling information"
157ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167ac_help="$ac_help
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
171ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173ac_help="$ac_help
174 --enable-intl use internationalization system"
175ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185ac_help="$ac_help
186 --enable-sockets use socket/network classes"
187ac_help="$ac_help
188 --enable-ole use OLE classes"
189ac_help="$ac_help
190 --enable-dataobj use data object classes"
191ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
197ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203ac_help="$ac_help
204 --enable-timer use wxTimer class"
205ac_help="$ac_help
206 --enable-wave use wxWave class"
207ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215ac_help="$ac_help
216 --enable-geometry use geometry class"
217ac_help="$ac_help
218 --enable-log use logging system"
219ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221ac_help="$ac_help
222 --enable-file use wxFile classes"
223ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255ac_help="$ac_help
256 --enable-url use wxURL class"
257ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265ac_help="$ac_help
266 --enable-threads use threads"
267ac_help="$ac_help
268 --enable-docview use document view architecture"
269ac_help="$ac_help
270 --enable-help use help subsystem"
271ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279ac_help="$ac_help
280 --enable-printarch use printing architecture"
281ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
291ac_help="$ac_help
292 --enable-resources use wxWindows resources"
293ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
295ac_help="$ac_help
296 --enable-clipboard use wxClipboard class"
297ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
301ac_help="$ac_help
302 --enable-controls use all usual controls"
303ac_help="$ac_help
304 --enable-accel use accelerators"
305ac_help="$ac_help
306 --enable-button use wxButton class"
307ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311ac_help="$ac_help
312 --enable-caret use wxCaret class"
313ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317ac_help="$ac_help
318 --enable-choice use wxChoice class"
319ac_help="$ac_help
320 --enable-combobox use wxComboBox class"
321ac_help="$ac_help
322 --enable-display use wxDisplay class"
323ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325ac_help="$ac_help
326 --enable-grid use wxGrid class"
327ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
335ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343ac_help="$ac_help
344 --enable-slider use wxSlider class"
345ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413ac_help="$ac_help
414 --enable-splines use spline drawing code"
415ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
425ac_help="$ac_help
426 --enable-accessibility enable accessibility support"
427ac_help="$ac_help
428 --enable-palette use wxPalette class"
429ac_help="$ac_help
430 --enable-image use wxImage class"
431ac_help="$ac_help
432 --enable-gif use gif images (GIF file format)"
433ac_help="$ac_help
434 --enable-pcx use pcx images (PCX file format)"
435ac_help="$ac_help
436 --enable-iff use iff images (IFF file format)"
437ac_help="$ac_help
438 --enable-pnm use pnm images (PNM file format)"
439ac_help="$ac_help
440 --enable-xpm use xpm images (XPM file format)"
441ac_help="$ac_help
442 --enable-icocur use Windows ICO and CUR formats"
443ac_help="$ac_help
444 --disable-largefile omit support for large files"
445ac_help="$ac_help
446 --disable-gtktest do not try to compile and run a test GTK+ program"
447ac_help="$ac_help
448 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
451ac_help="$ac_help
452 --disable-gtktest Do not try to compile and run a test GTK program"
453ac_help="$ac_help
454 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
455ac_help="$ac_help
456 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
457ac_help="$ac_help
458 --disable-gtktest Do not try to compile and run a test GTK program"
459ac_help="$ac_help
460 --with-x use the X Window System"
461ac_help="$ac_help
462 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
463
464# Initialize some variables set by options.
465# The variables have the same names as the options, with
466# dashes changed to underlines.
467build=NONE
468cache_file=./config.cache
469exec_prefix=NONE
470host=NONE
471no_create=
472nonopt=NONE
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481target=NONE
482verbose=
483x_includes=NONE
484x_libraries=NONE
485bindir='${exec_prefix}/bin'
486sbindir='${exec_prefix}/sbin'
487libexecdir='${exec_prefix}/libexec'
488datadir='${prefix}/share'
489sysconfdir='${prefix}/etc'
490sharedstatedir='${prefix}/com'
491localstatedir='${prefix}/var'
492libdir='${exec_prefix}/lib'
493includedir='${prefix}/include'
494oldincludedir='/usr/include'
495infodir='${prefix}/info'
496mandir='${prefix}/man'
497
498# Initialize some other variables.
499subdirs=
500MFLAGS= MAKEFLAGS=
501SHELL=${CONFIG_SHELL-/bin/sh}
502# Maximum number of lines to put in a shell here document.
503ac_max_here_lines=12
504
505ac_prev=
506for ac_option
507do
508
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 case "$ac_option" in
517 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
518 *) ac_optarg= ;;
519 esac
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case "$ac_option" in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir="$ac_optarg" ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build="$ac_optarg" ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file="$ac_optarg" ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir="$ac_optarg" ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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 eval "enable_${ac_feature}=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
559 # Reject names that are not valid shell variable names.
560 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
561 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
562 fi
563 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
564 case "$ac_option" in
565 *=*) ;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_${ac_feature}='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix="$ac_optarg" ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he)
584 # Omit some internal or obsolete options to make the list less imposing.
585 # This message is too long to be a string in the A/UX 3.1 sh.
586 cat << EOF
587Usage: configure [options] [host]
588Options: [defaults in brackets after descriptions]
589Configuration:
590 --cache-file=FILE cache test results in FILE
591 --help print this message
592 --no-create do not create output files
593 --quiet, --silent do not print \`checking...' messages
594 --version print the version of autoconf that created configure
595Directory and file names:
596 --prefix=PREFIX install architecture-independent files in PREFIX
597 [$ac_default_prefix]
598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
599 [same as prefix]
600 --bindir=DIR user executables in DIR [EPREFIX/bin]
601 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
602 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
603 --datadir=DIR read-only architecture-independent data in DIR
604 [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data in DIR
607 [PREFIX/com]
608 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
609 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
610 --includedir=DIR C header files in DIR [PREFIX/include]
611 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
612 --infodir=DIR info documentation in DIR [PREFIX/info]
613 --mandir=DIR man documentation in DIR [PREFIX/man]
614 --srcdir=DIR find the sources in DIR [configure dir or ..]
615 --program-prefix=PREFIX prepend PREFIX to installed program names
616 --program-suffix=SUFFIX append SUFFIX to installed program names
617 --program-transform-name=PROGRAM
618 run sed PROGRAM on installed program names
619EOF
620 cat << EOF
621Host type:
622 --build=BUILD configure for building on BUILD [BUILD=HOST]
623 --host=HOST configure for HOST [guessed]
624 --target=TARGET configure for TARGET [TARGET=HOST]
625Features and packages:
626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
630 --x-includes=DIR X include files are in DIR
631 --x-libraries=DIR X library files are in DIR
632EOF
633 if test -n "$ac_help"; then
634 echo "--enable and --with options recognized:$ac_help"
635 fi
636 exit 0 ;;
637
638 -host | --host | --hos | --ho)
639 ac_prev=host ;;
640 -host=* | --host=* | --hos=* | --ho=*)
641 host="$ac_optarg" ;;
642
643 -includedir | --includedir | --includedi | --included | --include \
644 | --includ | --inclu | --incl | --inc)
645 ac_prev=includedir ;;
646 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
647 | --includ=* | --inclu=* | --incl=* | --inc=*)
648 includedir="$ac_optarg" ;;
649
650 -infodir | --infodir | --infodi | --infod | --info | --inf)
651 ac_prev=infodir ;;
652 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
653 infodir="$ac_optarg" ;;
654
655 -libdir | --libdir | --libdi | --libd)
656 ac_prev=libdir ;;
657 -libdir=* | --libdir=* | --libdi=* | --libd=*)
658 libdir="$ac_optarg" ;;
659
660 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
661 | --libexe | --libex | --libe)
662 ac_prev=libexecdir ;;
663 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
664 | --libexe=* | --libex=* | --libe=*)
665 libexecdir="$ac_optarg" ;;
666
667 -localstatedir | --localstatedir | --localstatedi | --localstated \
668 | --localstate | --localstat | --localsta | --localst \
669 | --locals | --local | --loca | --loc | --lo)
670 ac_prev=localstatedir ;;
671 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
672 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
673 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
674 localstatedir="$ac_optarg" ;;
675
676 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
677 ac_prev=mandir ;;
678 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
679 mandir="$ac_optarg" ;;
680
681 -nfp | --nfp | --nf)
682 # Obsolete; use --without-fp.
683 with_fp=no ;;
684
685 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
686 | --no-cr | --no-c)
687 no_create=yes ;;
688
689 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
690 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
691 no_recursion=yes ;;
692
693 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
694 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
695 | --oldin | --oldi | --old | --ol | --o)
696 ac_prev=oldincludedir ;;
697 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
698 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
699 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
700 oldincludedir="$ac_optarg" ;;
701
702 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
703 ac_prev=prefix ;;
704 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
705 prefix="$ac_optarg" ;;
706
707 -program-prefix | --program-prefix | --program-prefi | --program-pref \
708 | --program-pre | --program-pr | --program-p)
709 ac_prev=program_prefix ;;
710 -program-prefix=* | --program-prefix=* | --program-prefi=* \
711 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
712 program_prefix="$ac_optarg" ;;
713
714 -program-suffix | --program-suffix | --program-suffi | --program-suff \
715 | --program-suf | --program-su | --program-s)
716 ac_prev=program_suffix ;;
717 -program-suffix=* | --program-suffix=* | --program-suffi=* \
718 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
719 program_suffix="$ac_optarg" ;;
720
721 -program-transform-name | --program-transform-name \
722 | --program-transform-nam | --program-transform-na \
723 | --program-transform-n | --program-transform- \
724 | --program-transform | --program-transfor \
725 | --program-transfo | --program-transf \
726 | --program-trans | --program-tran \
727 | --progr-tra | --program-tr | --program-t)
728 ac_prev=program_transform_name ;;
729 -program-transform-name=* | --program-transform-name=* \
730 | --program-transform-nam=* | --program-transform-na=* \
731 | --program-transform-n=* | --program-transform-=* \
732 | --program-transform=* | --program-transfor=* \
733 | --program-transfo=* | --program-transf=* \
734 | --program-trans=* | --program-tran=* \
735 | --progr-tra=* | --program-tr=* | --program-t=*)
736 program_transform_name="$ac_optarg" ;;
737
738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
739 | -silent | --silent | --silen | --sile | --sil)
740 silent=yes ;;
741
742 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
743 ac_prev=sbindir ;;
744 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
745 | --sbi=* | --sb=*)
746 sbindir="$ac_optarg" ;;
747
748 -sharedstatedir | --sharedstatedir | --sharedstatedi \
749 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
750 | --sharedst | --shareds | --shared | --share | --shar \
751 | --sha | --sh)
752 ac_prev=sharedstatedir ;;
753 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
754 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
755 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
756 | --sha=* | --sh=*)
757 sharedstatedir="$ac_optarg" ;;
758
759 -site | --site | --sit)
760 ac_prev=site ;;
761 -site=* | --site=* | --sit=*)
762 site="$ac_optarg" ;;
763
764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
765 ac_prev=srcdir ;;
766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
767 srcdir="$ac_optarg" ;;
768
769 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
770 | --syscon | --sysco | --sysc | --sys | --sy)
771 ac_prev=sysconfdir ;;
772 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
773 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
774 sysconfdir="$ac_optarg" ;;
775
776 -target | --target | --targe | --targ | --tar | --ta | --t)
777 ac_prev=target ;;
778 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
779 target="$ac_optarg" ;;
780
781 -v | -verbose | --verbose | --verbos | --verbo | --verb)
782 verbose=yes ;;
783
784 -version | --version | --versio | --versi | --vers)
785 echo "configure generated by autoconf version 2.13"
786 exit 0 ;;
787
788 -with-* | --with-*)
789 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
790 # Reject names that are not valid shell variable names.
791 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
794 ac_package=`echo $ac_package| sed 's/-/_/g'`
795 case "$ac_option" in
796 *=*) ;;
797 *) ac_optarg=yes ;;
798 esac
799 eval "with_${ac_package}='$ac_optarg'" ;;
800
801 -without-* | --without-*)
802 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
803 # Reject names that are not valid shell variable names.
804 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
805 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
806 fi
807 ac_package=`echo $ac_package| sed 's/-/_/g'`
808 eval "with_${ac_package}=no" ;;
809
810 --x)
811 # Obsolete; use --with-x.
812 with_x=yes ;;
813
814 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
815 | --x-incl | --x-inc | --x-in | --x-i)
816 ac_prev=x_includes ;;
817 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
818 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
819 x_includes="$ac_optarg" ;;
820
821 -x-libraries | --x-libraries | --x-librarie | --x-librari \
822 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
823 ac_prev=x_libraries ;;
824 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
825 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
826 x_libraries="$ac_optarg" ;;
827
828 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
829 ;;
830
831 *)
832 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
833 echo "configure: warning: $ac_option: invalid host type" 1>&2
834 fi
835 if test "x$nonopt" != xNONE; then
836 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
837 fi
838 nonopt="$ac_option"
839 ;;
840
841 esac
842done
843
844if test -n "$ac_prev"; then
845 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
846fi
847
848trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
849
850# File descriptor usage:
851# 0 standard input
852# 1 file creation
853# 2 errors and warnings
854# 3 some systems may open it to /dev/tty
855# 4 used on the Kubota Titan
856# 6 checking for... messages and results
857# 5 compiler messages saved in config.log
858if test "$silent" = yes; then
859 exec 6>/dev/null
860else
861 exec 6>&1
862fi
863exec 5>./config.log
864
865echo "\
866This file contains any messages produced by compilers while
867running configure, to aid debugging if configure makes a mistake.
868" 1>&5
869
870# Strip out --no-create and --no-recursion so they do not pile up.
871# Also quote any args containing shell metacharacters.
872ac_configure_args=
873for ac_arg
874do
875 case "$ac_arg" in
876 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877 | --no-cr | --no-c) ;;
878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
881 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
882 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
883 esac
884done
885
886# NLS nuisances.
887# Only set these to C if already set. These must not be set unconditionally
888# because not all systems understand e.g. LANG=C (notably SCO).
889# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
890# Non-C LC_CTYPE values break the ctype check.
891if test "${LANG+set}" = set; then LANG=C; export LANG; fi
892if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
893if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
894if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
895
896# confdefs.h avoids OS command line length limits that DEFS can exceed.
897rm -rf conftest* confdefs.h
898# AIX cpp loses on an empty file, so make sure it contains at least a newline.
899echo > confdefs.h
900
901# A filename unique to this package, relative to the directory that
902# configure is in, which we can look for to find out if srcdir is correct.
903ac_unique_file=wx-config.in
904
905# Find the source files, if location was not specified.
906if test -z "$srcdir"; then
907 ac_srcdir_defaulted=yes
908 # Try the directory containing this script, then its parent.
909 ac_prog=$0
910 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
911 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
912 srcdir=$ac_confdir
913 if test ! -r $srcdir/$ac_unique_file; then
914 srcdir=..
915 fi
916else
917 ac_srcdir_defaulted=no
918fi
919if test ! -r $srcdir/$ac_unique_file; then
920 if test "$ac_srcdir_defaulted" = yes; then
921 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
922 else
923 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
924 fi
925fi
926srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
927
928# Prefer explicitly selected file to automatically selected ones.
929if test -z "$CONFIG_SITE"; then
930 if test "x$prefix" != xNONE; then
931 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
932 else
933 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
934 fi
935fi
936for ac_site_file in $CONFIG_SITE; do
937 if test -r "$ac_site_file"; then
938 echo "loading site script $ac_site_file"
939 . "$ac_site_file"
940 fi
941done
942
943if test -r "$cache_file"; then
944 echo "loading cache $cache_file"
945 . $cache_file
946else
947 echo "creating cache $cache_file"
948 > $cache_file
949fi
950
951ac_ext=c
952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953ac_cpp='$CPP $CPPFLAGS'
954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956cross_compiling=$ac_cv_prog_cc_cross
957
958ac_exeext=
959ac_objext=o
960if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
961 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
962 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
963 ac_n= ac_c='
964' ac_t=' '
965 else
966 ac_n=-n ac_c= ac_t=
967 fi
968else
969 ac_n= ac_c='\c' ac_t=
970fi
971
972
973
974ac_aux_dir=
975for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976 if test -f $ac_dir/install-sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install-sh -c"
979 break
980 elif test -f $ac_dir/install.sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install.sh -c"
983 break
984 fi
985done
986if test -z "$ac_aux_dir"; then
987 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988fi
989ac_config_guess=$ac_aux_dir/config.guess
990ac_config_sub=$ac_aux_dir/config.sub
991ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
992
993
994# Do some error checking and defaulting for the host and target type.
995# The inputs are:
996# configure --host=HOST --target=TARGET --build=BUILD NONOPT
997#
998# The rules are:
999# 1. You are not allowed to specify --host, --target, and nonopt at the
1000# same time.
1001# 2. Host defaults to nonopt.
1002# 3. If nonopt is not specified, then host defaults to the current host,
1003# as determined by config.guess.
1004# 4. Target and build default to nonopt.
1005# 5. If nonopt is not specified, then target and build default to host.
1006
1007# The aliases save the names the user supplied, while $host etc.
1008# will get canonicalized.
1009case $host---$target---$nonopt in
1010NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012esac
1013
1014
1015# Make sure we can run config.sub.
1016if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1017else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1018fi
1019
1020echo $ac_n "checking host system type""... $ac_c" 1>&6
1021echo "configure:1022: checking host system type" >&5
1022
1023host_alias=$host
1024case "$host_alias" in
1025NONE)
1026 case $nonopt in
1027 NONE)
1028 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1029 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 fi ;;
1031 *) host_alias=$nonopt ;;
1032 esac ;;
1033esac
1034
1035host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1036host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039echo "$ac_t""$host" 1>&6
1040
1041echo $ac_n "checking target system type""... $ac_c" 1>&6
1042echo "configure:1043: checking target system type" >&5
1043
1044target_alias=$target
1045case "$target_alias" in
1046NONE)
1047 case $nonopt in
1048 NONE) target_alias=$host_alias ;;
1049 *) target_alias=$nonopt ;;
1050 esac ;;
1051esac
1052
1053target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1054target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057echo "$ac_t""$target" 1>&6
1058
1059echo $ac_n "checking build system type""... $ac_c" 1>&6
1060echo "configure:1061: checking build system type" >&5
1061
1062build_alias=$build
1063case "$build_alias" in
1064NONE)
1065 case $nonopt in
1066 NONE) build_alias=$host_alias ;;
1067 *) build_alias=$nonopt ;;
1068 esac ;;
1069esac
1070
1071build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075echo "$ac_t""$build" 1>&6
1076
1077test "$host_alias" != "$target_alias" &&
1078 test "$program_prefix$program_suffix$program_transform_name" = \
1079 NONENONEs,x,x, &&
1080 program_prefix=${target_alias}-
1081
1082
1083
1084WX_MAJOR_VERSION_NUMBER=2
1085WX_MINOR_VERSION_NUMBER=5
1086WX_RELEASE_NUMBER=0
1087
1088WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1089WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1090
1091WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1092
1093WX_CURRENT=0
1094WX_REVISION=0
1095WX_AGE=0
1096
1097
1098
1099USE_UNIX=1
1100USE_WIN32=0
1101USE_DOS=0
1102USE_BEOS=0
1103USE_MAC=0
1104
1105USE_AIX=
1106USE_BSD=
1107USE_DARWIN=
1108USE_FREEBSD=
1109USE_HPUX=
1110USE_LINUX=
1111USE_NETBSD=
1112USE_OPENBSD=
1113USE_OSF=
1114USE_SGI=
1115USE_SOLARIS=
1116USE_SUN=
1117USE_SUNOS=
1118USE_SVR4=
1119USE_SYSV=
1120USE_VMS=
1121USE_ULTRIX=
1122USE_UNIXWARE=
1123
1124USE_ALPHA=
1125
1126NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130DEFAULT_wxUSE_COCOA=0
1131DEFAULT_wxUSE_GTK=0
1132DEFAULT_wxUSE_MAC=0
1133DEFAULT_wxUSE_MGL=0
1134DEFAULT_wxUSE_MICROWIN=0
1135DEFAULT_wxUSE_MOTIF=0
1136DEFAULT_wxUSE_MSW=0
1137DEFAULT_wxUSE_PM=0
1138DEFAULT_wxUSE_X11=0
1139
1140DEFAULT_DEFAULT_wxUSE_COCOA=0
1141DEFAULT_DEFAULT_wxUSE_GTK=0
1142DEFAULT_DEFAULT_wxUSE_MAC=0
1143DEFAULT_DEFAULT_wxUSE_MGL=0
1144DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1145DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146DEFAULT_DEFAULT_wxUSE_MSW=0
1147DEFAULT_DEFAULT_wxUSE_PM=0
1148DEFAULT_DEFAULT_wxUSE_X11=0
1149
1150PROGRAM_EXT=
1151SO_SUFFIX=so
1152
1153case "${host}" in
1154 *-hp-hpux* )
1155 USE_HPUX=1
1156 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1157 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1158 SO_SUFFIX=sl
1159 cat >> confdefs.h <<\EOF
1160#define __HPUX__ 1
1161EOF
1162
1163 ;;
1164 *-*-linux* )
1165 USE_LINUX=1
1166 cat >> confdefs.h <<\EOF
1167#define __LINUX__ 1
1168EOF
1169
1170 TMP=`uname -m`
1171 if test "x$TMP" = "xalpha"; then
1172 USE_ALPHA=1
1173 cat >> confdefs.h <<\EOF
1174#define __ALPHA__ 1
1175EOF
1176
1177 fi
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-irix5* | *-*-irix6* )
1181 USE_SGI=1
1182 USE_SVR4=1
1183 cat >> confdefs.h <<\EOF
1184#define __SGI__ 1
1185EOF
1186
1187 cat >> confdefs.h <<\EOF
1188#define __SVR4__ 1
1189EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-solaris2* )
1194 USE_SUN=1
1195 USE_SOLARIS=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198#define __SUN__ 1
1199EOF
1200
1201 cat >> confdefs.h <<\EOF
1202#define __SOLARIS__ 1
1203EOF
1204
1205 cat >> confdefs.h <<\EOF
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1211 ;;
1212 *-*-sunos4* )
1213 USE_SUN=1
1214 USE_SUNOS=1
1215 USE_BSD=1
1216 cat >> confdefs.h <<\EOF
1217#define __SUN__ 1
1218EOF
1219
1220 cat >> confdefs.h <<\EOF
1221#define __SUNOS__ 1
1222EOF
1223
1224 cat >> confdefs.h <<\EOF
1225#define __BSD__ 1
1226EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-freebsd*)
1231 USE_BSD=1
1232 USE_FREEBSD=1
1233 cat >> confdefs.h <<\EOF
1234#define __FREEBSD__ 1
1235EOF
1236
1237 cat >> confdefs.h <<\EOF
1238#define __BSD__ 1
1239EOF
1240
1241 DEFAULT_DEFAULT_wxUSE_GTK=1
1242 ;;
1243 *-*-openbsd*)
1244 USE_BSD=1
1245 USE_OPENBSD=1
1246 cat >> confdefs.h <<\EOF
1247#define __OPENBSD__ 1
1248EOF
1249
1250 cat >> confdefs.h <<\EOF
1251#define __BSD__ 1
1252EOF
1253
1254 DEFAULT_DEFAULT_wxUSE_GTK=1
1255 ;;
1256 *-*-netbsd*)
1257 USE_BSD=1
1258 USE_NETBSD=1
1259 cat >> confdefs.h <<\EOF
1260#define __NETBSD__ 1
1261EOF
1262
1263 cat >> confdefs.h <<\EOF
1264#define __BSD__ 1
1265EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_GTK=1
1268 ;;
1269 *-*-osf* )
1270 USE_ALPHA=1
1271 USE_OSF=1
1272 cat >> confdefs.h <<\EOF
1273#define __ALPHA__ 1
1274EOF
1275
1276 cat >> confdefs.h <<\EOF
1277#define __OSF__ 1
1278EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1282 ;;
1283 *-*-dgux5* )
1284 USE_ALPHA=1
1285 USE_SVR4=1
1286 cat >> confdefs.h <<\EOF
1287#define __ALPHA__ 1
1288EOF
1289
1290 cat >> confdefs.h <<\EOF
1291#define __SVR4__ 1
1292EOF
1293
1294 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295 ;;
1296 *-*-sysv5* )
1297 USE_SYSV=1
1298 USE_SVR4=1
1299 cat >> confdefs.h <<\EOF
1300#define __SYSV__ 1
1301EOF
1302
1303 cat >> confdefs.h <<\EOF
1304#define __SVR4__ 1
1305EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309 *-*-aix* )
1310 USE_AIX=1
1311 USE_SYSV=1
1312 USE_SVR4=1
1313 SO_SUFFIX=a
1314 cat >> confdefs.h <<\EOF
1315#define __AIX__ 1
1316EOF
1317
1318 cat >> confdefs.h <<\EOF
1319#define __SYSV__ 1
1320EOF
1321
1322 cat >> confdefs.h <<\EOF
1323#define __SVR4__ 1
1324EOF
1325
1326 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327 ;;
1328
1329 *-*-*UnixWare*)
1330 USE_SYSV=1
1331 USE_SVR4=1
1332 USE_UNIXWARE=1
1333 cat >> confdefs.h <<\EOF
1334#define __UNIXWARE__ 1
1335EOF
1336
1337 ;;
1338
1339 *-*-cygwin* | *-*-mingw32* )
1340 SO_SUFFIX=dll
1341 PROGRAM_EXT=".exe"
1342 RESCOMP=windres
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
1349 cat >> confdefs.h <<\EOF
1350#define __DOS__ 1
1351EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
1355 LIBS="$LIBS -lstdc++"
1356 ;;
1357
1358 *-pc-os2_emx | *-pc-os2-emx )
1359 cat >> confdefs.h <<\EOF
1360#define __EMX__ 1
1361EOF
1362
1363 PROGRAM_EXT=".exe"
1364 DEFAULT_DEFAULT_wxUSE_PM=1
1365 ;;
1366
1367 powerpc-*-darwin* )
1368 USE_BSD=1
1369 USE_DARWIN=1
1370 SO_SUFFIX=dylib
1371 cat >> confdefs.h <<\EOF
1372#define __BSD__ 1
1373EOF
1374
1375 cat >> confdefs.h <<\EOF
1376#define __DARWIN__ 1
1377EOF
1378
1379 cat >> confdefs.h <<\EOF
1380#define __POWERPC__ 1
1381EOF
1382
1383 cat >> confdefs.h <<\EOF
1384#define TARGET_CARBON 1
1385EOF
1386
1387 DEFAULT_DEFAULT_wxUSE_MAC=1
1388 ;;
1389
1390 *-*-beos* )
1391 USE_BEOS=1
1392 cat >> confdefs.h <<\EOF
1393#define __BEOS__ 1
1394EOF
1395
1396 ;;
1397
1398 *)
1399 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1400esac
1401
1402
1403
1404
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
1410
1411
1412DEBUG_CONFIGURE=0
1413if test $DEBUG_CONFIGURE = 1; then
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
1416 DEFAULT_wxUSE_NANOX=no
1417
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
1421 DEFAULT_wxUSE_SONAME=no
1422 DEFAULT_wxUSE_OPTIMISE=no
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
1434 DEFAULT_wxUSE_PRECOMP=no
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
1440 DEFAULT_wxUSE_LOGDIALOG=no
1441
1442 DEFAULT_wxUSE_GUI=yes
1443 DEFAULT_wxUSE_CONTROLS=no
1444
1445 DEFAULT_wxUSE_REGEX=no
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
1449 DEFAULT_wxUSE_LIBTIFF=no
1450 DEFAULT_wxUSE_ODBC=no
1451 DEFAULT_wxUSE_OPENGL=no
1452
1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1458 DEFAULT_wxUSE_TIMER=no
1459 DEFAULT_wxUSE_STOPWATCH=no
1460 DEFAULT_wxUSE_FILE=no
1461 DEFAULT_wxUSE_FFILE=no
1462 DEFAULT_wxUSE_TEXTBUFFER=no
1463 DEFAULT_wxUSE_TEXTFILE=no
1464 DEFAULT_wxUSE_WAVE=no
1465 DEFAULT_wxUSE_INTL=no
1466 DEFAULT_wxUSE_CONFIG=no
1467 DEFAULT_wxUSE_FONTMAP=no
1468 DEFAULT_wxUSE_STREAMS=no
1469 DEFAULT_wxUSE_SOCKETS=no
1470 DEFAULT_wxUSE_OLE=no
1471 DEFAULT_wxUSE_DATAOBJ=no
1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
1473 DEFAULT_wxUSE_JOYSTICK=no
1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1476 DEFAULT_wxUSE_LONGLONG=no
1477 DEFAULT_wxUSE_GEOMETRY=no
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483 DEFAULT_wxUSE_X_RESOURCES=no
1484 DEFAULT_wxUSE_CLIPBOARD=no
1485 DEFAULT_wxUSE_TOOLTIPS=no
1486 DEFAULT_wxUSE_DRAG_AND_DROP=no
1487 DEFAULT_wxUSE_DRAGIMAGE=no
1488 DEFAULT_wxUSE_SPLINES=no
1489
1490 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1491 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1492 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1493
1494 DEFAULT_wxUSE_RESOURCES=no
1495 DEFAULT_wxUSE_CONSTRAINTS=no
1496 DEFAULT_wxUSE_IPC=no
1497 DEFAULT_wxUSE_HELP=no
1498 DEFAULT_wxUSE_MS_HTML_HELP=no
1499 DEFAULT_wxUSE_WXHTML_HELP=no
1500 DEFAULT_wxUSE_TREELAYOUT=no
1501 DEFAULT_wxUSE_METAFILE=no
1502 DEFAULT_wxUSE_MIMETYPE=no
1503 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1504 DEFAULT_wxUSE_PROTOCOL=no
1505 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FTP=no
1507 DEFAULT_wxUSE_PROTOCOL_FILE=no
1508 DEFAULT_wxUSE_URL=no
1509
1510 DEFAULT_wxUSE_COMMONDLGS=no
1511 DEFAULT_wxUSE_CHOICEDLG=no
1512 DEFAULT_wxUSE_COLOURDLG=no
1513 DEFAULT_wxUSE_DIRDLG=no
1514 DEFAULT_wxUSE_FILEDLG=no
1515 DEFAULT_wxUSE_FINDREPLDLG=no
1516 DEFAULT_wxUSE_FONTDLG=no
1517 DEFAULT_wxUSE_MSGDLG=no
1518 DEFAULT_wxUSE_NUMBERDLG=no
1519 DEFAULT_wxUSE_TEXTDLG=no
1520 DEFAULT_wxUSE_SPLASH=no
1521 DEFAULT_wxUSE_STARTUP_TIPS=no
1522 DEFAULT_wxUSE_PROGRESSDLG=no
1523 DEFAULT_wxUSE_WIZARDDLG=no
1524
1525 DEFAULT_wxUSE_MENUS=no
1526 DEFAULT_wxUSE_MINIFRAME=no
1527 DEFAULT_wxUSE_HTML=no
1528 DEFAULT_wxUSE_FILESYSTEM=no
1529 DEFAULT_wxUSE_FS_INET=no
1530 DEFAULT_wxUSE_FS_ZIP=no
1531 DEFAULT_wxUSE_BUSYINFO=no
1532 DEFAULT_wxUSE_ZIPSTREAM=no
1533 DEFAULT_wxUSE_VALIDATORS=no
1534
1535 DEFAULT_wxUSE_ACCEL=no
1536 DEFAULT_wxUSE_BUTTON=no
1537 DEFAULT_wxUSE_BMPBUTTON=no
1538 DEFAULT_wxUSE_CALCTRL=no
1539 DEFAULT_wxUSE_CARET=no
1540 DEFAULT_wxUSE_CHECKBOX=no
1541 DEFAULT_wxUSE_CHECKLST=no
1542 DEFAULT_wxUSE_CHOICE=no
1543 DEFAULT_wxUSE_COMBOBOX=no
1544 DEFAULT_wxUSE_DISPLAY=no
1545 DEFAULT_wxUSE_GAUGE=no
1546 DEFAULT_wxUSE_GRID=no
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
1551 DEFAULT_wxUSE_RADIOBOX=no
1552 DEFAULT_wxUSE_RADIOBTN=no
1553 DEFAULT_wxUSE_SASH=no
1554 DEFAULT_wxUSE_SCROLLBAR=no
1555 DEFAULT_wxUSE_SLIDER=no
1556 DEFAULT_wxUSE_SPINBTN=no
1557 DEFAULT_wxUSE_SPINCTRL=no
1558 DEFAULT_wxUSE_SPLITTER=no
1559 DEFAULT_wxUSE_STATBMP=no
1560 DEFAULT_wxUSE_STATBOX=no
1561 DEFAULT_wxUSE_STATLINE=no
1562 DEFAULT_wxUSE_STATTEXT=no
1563 DEFAULT_wxUSE_STATUSBAR=yes
1564 DEFAULT_wxUSE_TABDIALOG=no
1565 DEFAULT_wxUSE_TEXTCTRL=no
1566 DEFAULT_wxUSE_TOGGLEBTN=no
1567 DEFAULT_wxUSE_TOOLBAR=no
1568 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1569 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1570 DEFAULT_wxUSE_TREECTRL=no
1571 DEFAULT_wxUSE_POPUPWIN=no
1572 DEFAULT_wxUSE_TIPWINDOW=no
1573
1574 DEFAULT_wxUSE_UNICODE=no
1575 DEFAULT_wxUSE_UNICODE_MSLU=no
1576 DEFAULT_wxUSE_WCSRTOMBS=no
1577
1578 DEFAULT_wxUSE_PALETTE=no
1579 DEFAULT_wxUSE_IMAGE=no
1580 DEFAULT_wxUSE_GIF=no
1581 DEFAULT_wxUSE_PCX=no
1582 DEFAULT_wxUSE_PNM=no
1583 DEFAULT_wxUSE_IFF=no
1584 DEFAULT_wxUSE_XPM=no
1585 DEFAULT_wxUSE_ICO_CUR=no
1586 DEFAULT_wxUSE_ACCESSIBILITY=no
1587else
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
1590 DEFAULT_wxUSE_NANOX=no
1591
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
1595 DEFAULT_wxUSE_SONAME=no
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
1608 DEFAULT_wxUSE_PRECOMP=no
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
1614 DEFAULT_wxUSE_LOGDIALOG=yes
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
1618 DEFAULT_wxUSE_REGEX=yes
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
1622 DEFAULT_wxUSE_LIBTIFF=yes
1623 DEFAULT_wxUSE_ODBC=no
1624 DEFAULT_wxUSE_OPENGL=no
1625
1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1631 DEFAULT_wxUSE_TIMER=yes
1632 DEFAULT_wxUSE_STOPWATCH=yes
1633 DEFAULT_wxUSE_FILE=yes
1634 DEFAULT_wxUSE_FFILE=yes
1635 DEFAULT_wxUSE_TEXTBUFFER=yes
1636 DEFAULT_wxUSE_TEXTFILE=yes
1637 DEFAULT_wxUSE_WAVE=no
1638 DEFAULT_wxUSE_INTL=yes
1639 DEFAULT_wxUSE_CONFIG=yes
1640 DEFAULT_wxUSE_FONTMAP=yes
1641 DEFAULT_wxUSE_STREAMS=yes
1642 DEFAULT_wxUSE_SOCKETS=yes
1643 DEFAULT_wxUSE_OLE=yes
1644 DEFAULT_wxUSE_DATAOBJ=yes
1645 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1646 DEFAULT_wxUSE_JOYSTICK=yes
1647 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1648 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1649 DEFAULT_wxUSE_LONGLONG=yes
1650 DEFAULT_wxUSE_GEOMETRY=yes
1651
1652 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1653 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1654 DEFAULT_wxUSE_POSTSCRIPT=yes
1655
1656 DEFAULT_wxUSE_X_RESOURCES=no
1657 DEFAULT_wxUSE_CLIPBOARD=yes
1658 DEFAULT_wxUSE_TOOLTIPS=yes
1659 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1660 DEFAULT_wxUSE_DRAGIMAGE=yes
1661 DEFAULT_wxUSE_SPLINES=yes
1662
1663 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1666
1667 DEFAULT_wxUSE_RESOURCES=no
1668 DEFAULT_wxUSE_CONSTRAINTS=yes
1669 DEFAULT_wxUSE_IPC=yes
1670 DEFAULT_wxUSE_HELP=yes
1671 DEFAULT_wxUSE_MS_HTML_HELP=yes
1672 DEFAULT_wxUSE_WXHTML_HELP=yes
1673 DEFAULT_wxUSE_TREELAYOUT=yes
1674 DEFAULT_wxUSE_METAFILE=yes
1675 DEFAULT_wxUSE_MIMETYPE=yes
1676 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1677 DEFAULT_wxUSE_PROTOCOL=yes
1678 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1679 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1680 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1681 DEFAULT_wxUSE_URL=yes
1682
1683 DEFAULT_wxUSE_COMMONDLGS=yes
1684 DEFAULT_wxUSE_CHOICEDLG=yes
1685 DEFAULT_wxUSE_COLOURDLG=yes
1686 DEFAULT_wxUSE_DIRDLG=yes
1687 DEFAULT_wxUSE_FILEDLG=yes
1688 DEFAULT_wxUSE_FINDREPLDLG=yes
1689 DEFAULT_wxUSE_FONTDLG=yes
1690 DEFAULT_wxUSE_MSGDLG=yes
1691 DEFAULT_wxUSE_NUMBERDLG=yes
1692 DEFAULT_wxUSE_TEXTDLG=yes
1693 DEFAULT_wxUSE_SPLASH=yes
1694 DEFAULT_wxUSE_STARTUP_TIPS=yes
1695 DEFAULT_wxUSE_PROGRESSDLG=yes
1696 DEFAULT_wxUSE_WIZARDDLG=yes
1697
1698 DEFAULT_wxUSE_MENUS=yes
1699 DEFAULT_wxUSE_MINIFRAME=yes
1700 DEFAULT_wxUSE_HTML=yes
1701 DEFAULT_wxUSE_FILESYSTEM=yes
1702 DEFAULT_wxUSE_FS_INET=yes
1703 DEFAULT_wxUSE_FS_ZIP=yes
1704 DEFAULT_wxUSE_BUSYINFO=yes
1705 DEFAULT_wxUSE_ZIPSTREAM=yes
1706 DEFAULT_wxUSE_VALIDATORS=yes
1707
1708 DEFAULT_wxUSE_ACCEL=yes
1709 DEFAULT_wxUSE_BUTTON=yes
1710 DEFAULT_wxUSE_BMPBUTTON=yes
1711 DEFAULT_wxUSE_CALCTRL=yes
1712 DEFAULT_wxUSE_CARET=yes
1713 DEFAULT_wxUSE_CHECKBOX=yes
1714 DEFAULT_wxUSE_CHECKLST=yes
1715 DEFAULT_wxUSE_CHOICE=yes
1716 DEFAULT_wxUSE_COMBOBOX=yes
1717 DEFAULT_wxUSE_DISPLAY=no
1718 DEFAULT_wxUSE_GAUGE=yes
1719 DEFAULT_wxUSE_GRID=yes
1720 DEFAULT_wxUSE_IMAGLIST=yes
1721 DEFAULT_wxUSE_LISTBOX=yes
1722 DEFAULT_wxUSE_LISTCTRL=yes
1723 DEFAULT_wxUSE_NOTEBOOK=yes
1724 DEFAULT_wxUSE_RADIOBOX=yes
1725 DEFAULT_wxUSE_RADIOBTN=yes
1726 DEFAULT_wxUSE_SASH=yes
1727 DEFAULT_wxUSE_SCROLLBAR=yes
1728 DEFAULT_wxUSE_SLIDER=yes
1729 DEFAULT_wxUSE_SPINBTN=yes
1730 DEFAULT_wxUSE_SPINCTRL=yes
1731 DEFAULT_wxUSE_SPLITTER=yes
1732 DEFAULT_wxUSE_STATBMP=yes
1733 DEFAULT_wxUSE_STATBOX=yes
1734 DEFAULT_wxUSE_STATLINE=yes
1735 DEFAULT_wxUSE_STATTEXT=yes
1736 DEFAULT_wxUSE_STATUSBAR=yes
1737 DEFAULT_wxUSE_TABDIALOG=no
1738 DEFAULT_wxUSE_TEXTCTRL=yes
1739 DEFAULT_wxUSE_TOGGLEBTN=yes
1740 DEFAULT_wxUSE_TOOLBAR=yes
1741 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1742 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1743 DEFAULT_wxUSE_TREECTRL=yes
1744 DEFAULT_wxUSE_POPUPWIN=yes
1745 DEFAULT_wxUSE_TIPWINDOW=yes
1746
1747 DEFAULT_wxUSE_UNICODE=no
1748 DEFAULT_wxUSE_UNICODE_MSLU=yes
1749 DEFAULT_wxUSE_WCSRTOMBS=no
1750
1751 DEFAULT_wxUSE_PALETTE=yes
1752 DEFAULT_wxUSE_IMAGE=yes
1753 DEFAULT_wxUSE_GIF=yes
1754 DEFAULT_wxUSE_PCX=yes
1755 DEFAULT_wxUSE_IFF=no
1756 DEFAULT_wxUSE_PNM=yes
1757 DEFAULT_wxUSE_XPM=yes
1758 DEFAULT_wxUSE_ICO_CUR=yes
1759 DEFAULT_wxUSE_ACCESSIBILITY=no
1760fi
1761
1762
1763
1764for toolkit in `echo $ALL_TOOLKITS`; do
1765 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1766 if test "x$LINE" != "x" ; then
1767 has_toolkit_in_cache=1
1768 eval "DEFAULT_$LINE"
1769 eval "CACHE_$toolkit=1"
1770 fi
1771done
1772
1773
1774
1775 enablestring=
1776 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1777echo "configure:1778: checking for --${enablestring:-enable}-gui" >&5
1778 no_cache=0
1779 # Check whether --enable-gui or --disable-gui was given.
1780if test "${enable_gui+set}" = set; then
1781 enableval="$enable_gui"
1782
1783 if test "$enableval" = yes; then
1784 ac_cv_use_gui='wxUSE_GUI=yes'
1785 else
1786 ac_cv_use_gui='wxUSE_GUI=no'
1787 fi
1788
1789else
1790
1791 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1792 if test "x$LINE" != x ; then
1793 eval "DEFAULT_$LINE"
1794 else
1795 no_cache=1
1796 fi
1797
1798 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1799
1800fi
1801
1802
1803 eval "$ac_cv_use_gui"
1804 if test "$no_cache" != 1; then
1805 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1806 fi
1807
1808 if test "$wxUSE_GUI" = yes; then
1809 echo "$ac_t""yes" 1>&6
1810 else
1811 echo "$ac_t""no" 1>&6
1812 fi
1813
1814
1815if test "$wxUSE_GUI" = "yes"; then
1816
1817
1818 enablestring=
1819 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1820echo "configure:1821: checking for --${enablestring:-enable}-universal" >&5
1821 no_cache=0
1822 # Check whether --enable-universal or --disable-universal was given.
1823if test "${enable_universal+set}" = set; then
1824 enableval="$enable_universal"
1825
1826 if test "$enableval" = yes; then
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1828 else
1829 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1830 fi
1831
1832else
1833
1834 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1835 if test "x$LINE" != x ; then
1836 eval "DEFAULT_$LINE"
1837 else
1838 no_cache=1
1839 fi
1840
1841 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1842
1843fi
1844
1845
1846 eval "$ac_cv_use_universal"
1847 if test "$no_cache" != 1; then
1848 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1849 fi
1850
1851 if test "$wxUSE_UNIVERSAL" = yes; then
1852 echo "$ac_t""yes" 1>&6
1853 else
1854 echo "$ac_t""no" 1>&6
1855 fi
1856
1857# Check whether --with-gtk or --without-gtk was given.
1858if test "${with_gtk+set}" = set; then
1859 withval="$with_gtk"
1860 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1861fi
1862
1863# Check whether --with-motif or --without-motif was given.
1864if test "${with_motif+set}" = set; then
1865 withval="$with_motif"
1866 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1867fi
1868
1869# Check whether --with-mac or --without-mac was given.
1870if test "${with_mac+set}" = set; then
1871 withval="$with_mac"
1872 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1873fi
1874
1875# Check whether --with-cocoa or --without-cocoa was given.
1876if test "${with_cocoa+set}" = set; then
1877 withval="$with_cocoa"
1878 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1879fi
1880
1881# Check whether --with-wine or --without-wine was given.
1882if test "${with_wine+set}" = set; then
1883 withval="$with_wine"
1884 wxUSE_WINE="$withval" CACHE_WINE=1
1885fi
1886
1887# Check whether --with-msw or --without-msw was given.
1888if test "${with_msw+set}" = set; then
1889 withval="$with_msw"
1890 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1891fi
1892
1893# Check whether --with-pm or --without-pm was given.
1894if test "${with_pm+set}" = set; then
1895 withval="$with_pm"
1896 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1897fi
1898
1899# Check whether --with-mgl or --without-mgl was given.
1900if test "${with_mgl+set}" = set; then
1901 withval="$with_mgl"
1902 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1903fi
1904
1905# Check whether --with-microwin or --without-microwin was given.
1906if test "${with_microwin+set}" = set; then
1907 withval="$with_microwin"
1908 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1909fi
1910
1911# Check whether --with-x11 or --without-x11 was given.
1912if test "${with_x11+set}" = set; then
1913 withval="$with_x11"
1914 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1915fi
1916
1917
1918 enablestring=
1919 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1920echo "configure:1921: checking for --${enablestring:-enable}-nanox" >&5
1921 no_cache=0
1922 # Check whether --enable-nanox or --disable-nanox was given.
1923if test "${enable_nanox+set}" = set; then
1924 enableval="$enable_nanox"
1925
1926 if test "$enableval" = yes; then
1927 ac_cv_use_nanox='wxUSE_NANOX=yes'
1928 else
1929 ac_cv_use_nanox='wxUSE_NANOX=no'
1930 fi
1931
1932else
1933
1934 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1935 if test "x$LINE" != x ; then
1936 eval "DEFAULT_$LINE"
1937 else
1938 no_cache=1
1939 fi
1940
1941 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1942
1943fi
1944
1945
1946 eval "$ac_cv_use_nanox"
1947 if test "$no_cache" != 1; then
1948 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1949 fi
1950
1951 if test "$wxUSE_NANOX" = yes; then
1952 echo "$ac_t""yes" 1>&6
1953 else
1954 echo "$ac_t""no" 1>&6
1955 fi
1956
1957
1958
1959 enablestring=
1960 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1961echo "configure:1962: checking for --${enablestring:-enable}-gtk2" >&5
1962 no_cache=0
1963 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1964if test "${enable_gtk2+set}" = set; then
1965 enableval="$enable_gtk2"
1966
1967 if test "$enableval" = yes; then
1968 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1969 else
1970 ac_cv_use_gtk2='wxUSE_GTK2=no'
1971 fi
1972
1973else
1974
1975 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1976 if test "x$LINE" != x ; then
1977 eval "DEFAULT_$LINE"
1978 else
1979 no_cache=1
1980 fi
1981
1982 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1983
1984fi
1985
1986
1987 eval "$ac_cv_use_gtk2"
1988 if test "$no_cache" != 1; then
1989 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1990 fi
1991
1992 if test "$wxUSE_GTK2" = yes; then
1993 echo "$ac_t""yes" 1>&6
1994 else
1995 echo "$ac_t""no" 1>&6
1996 fi
1997
1998
1999
2000 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2001echo "configure:2002: checking for --with-libpng" >&5
2002 no_cache=0
2003 # Check whether --with-libpng or --without-libpng was given.
2004if test "${with_libpng+set}" = set; then
2005 withval="$with_libpng"
2006
2007 if test "$withval" = yes; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2009 elif test "$withval" = no; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2011 elif test "$withval" = sys; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2013 elif test "$withval" = builtin; then
2014 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2015 else
2016 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2017 fi
2018
2019else
2020
2021 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2022 if test "x$LINE" != x ; then
2023 eval "DEFAULT_$LINE"
2024 else
2025 no_cache=1
2026 fi
2027
2028 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2029
2030fi
2031
2032
2033 eval "$ac_cv_use_libpng"
2034 if test "$no_cache" != 1; then
2035 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2036 fi
2037
2038 if test "$wxUSE_LIBPNG" = yes; then
2039 echo "$ac_t""yes" 1>&6
2040 elif test "$wxUSE_LIBPNG" = no; then
2041 echo "$ac_t""no" 1>&6
2042 elif test "$wxUSE_LIBPNG" = sys; then
2043 echo "$ac_t""system version" 1>&6
2044 elif test "$wxUSE_LIBPNG" = builtin; then
2045 echo "$ac_t""builtin version" 1>&6
2046 else
2047 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2048 fi
2049
2050
2051 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2052echo "configure:2053: checking for --with-libjpeg" >&5
2053 no_cache=0
2054 # Check whether --with-libjpeg or --without-libjpeg was given.
2055if test "${with_libjpeg+set}" = set; then
2056 withval="$with_libjpeg"
2057
2058 if test "$withval" = yes; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2060 elif test "$withval" = no; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2062 elif test "$withval" = sys; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2064 elif test "$withval" = builtin; then
2065 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2066 else
2067 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2068 fi
2069
2070else
2071
2072 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2073 if test "x$LINE" != x ; then
2074 eval "DEFAULT_$LINE"
2075 else
2076 no_cache=1
2077 fi
2078
2079 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2080
2081fi
2082
2083
2084 eval "$ac_cv_use_libjpeg"
2085 if test "$no_cache" != 1; then
2086 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2087 fi
2088
2089 if test "$wxUSE_LIBJPEG" = yes; then
2090 echo "$ac_t""yes" 1>&6
2091 elif test "$wxUSE_LIBJPEG" = no; then
2092 echo "$ac_t""no" 1>&6
2093 elif test "$wxUSE_LIBJPEG" = sys; then
2094 echo "$ac_t""system version" 1>&6
2095 elif test "$wxUSE_LIBJPEG" = builtin; then
2096 echo "$ac_t""builtin version" 1>&6
2097 else
2098 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2099 fi
2100
2101
2102 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2103echo "configure:2104: checking for --with-libtiff" >&5
2104 no_cache=0
2105 # Check whether --with-libtiff or --without-libtiff was given.
2106if test "${with_libtiff+set}" = set; then
2107 withval="$with_libtiff"
2108
2109 if test "$withval" = yes; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2111 elif test "$withval" = no; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2113 elif test "$withval" = sys; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2115 elif test "$withval" = builtin; then
2116 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2117 else
2118 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2119 fi
2120
2121else
2122
2123 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2124 if test "x$LINE" != x ; then
2125 eval "DEFAULT_$LINE"
2126 else
2127 no_cache=1
2128 fi
2129
2130 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2131
2132fi
2133
2134
2135 eval "$ac_cv_use_libtiff"
2136 if test "$no_cache" != 1; then
2137 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2138 fi
2139
2140 if test "$wxUSE_LIBTIFF" = yes; then
2141 echo "$ac_t""yes" 1>&6
2142 elif test "$wxUSE_LIBTIFF" = no; then
2143 echo "$ac_t""no" 1>&6
2144 elif test "$wxUSE_LIBTIFF" = sys; then
2145 echo "$ac_t""system version" 1>&6
2146 elif test "$wxUSE_LIBTIFF" = builtin; then
2147 echo "$ac_t""builtin version" 1>&6
2148 else
2149 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2150 fi
2151
2152
2153 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2154echo "configure:2155: checking for --with-opengl" >&5
2155 no_cache=0
2156 # Check whether --with-opengl or --without-opengl was given.
2157if test "${with_opengl+set}" = set; then
2158 withval="$with_opengl"
2159
2160 if test "$withval" = yes; then
2161 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2162 else
2163 ac_cv_use_opengl='wxUSE_OPENGL=no'
2164 fi
2165
2166else
2167
2168 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2169 if test "x$LINE" != x ; then
2170 eval "DEFAULT_$LINE"
2171 else
2172 no_cache=1
2173 fi
2174
2175 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2176
2177fi
2178
2179
2180 eval "$ac_cv_use_opengl"
2181 if test "$no_cache" != 1; then
2182 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2183 fi
2184
2185 if test "$wxUSE_OPENGL" = yes; then
2186 echo "$ac_t""yes" 1>&6
2187 else
2188 echo "$ac_t""no" 1>&6
2189 fi
2190
2191
2192fi
2193
2194
2195 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2196echo "configure:2197: checking for --with-dmalloc" >&5
2197 no_cache=0
2198 # Check whether --with-dmalloc or --without-dmalloc was given.
2199if test "${with_dmalloc+set}" = set; then
2200 withval="$with_dmalloc"
2201
2202 if test "$withval" = yes; then
2203 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2204 else
2205 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2206 fi
2207
2208else
2209
2210 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2211 if test "x$LINE" != x ; then
2212 eval "DEFAULT_$LINE"
2213 else
2214 no_cache=1
2215 fi
2216
2217 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2218
2219fi
2220
2221
2222 eval "$ac_cv_use_dmalloc"
2223 if test "$no_cache" != 1; then
2224 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2225 fi
2226
2227 if test "$wxUSE_DMALLOC" = yes; then
2228 echo "$ac_t""yes" 1>&6
2229 else
2230 echo "$ac_t""no" 1>&6
2231 fi
2232
2233
2234 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2235echo "configure:2236: checking for --with-regex" >&5
2236 no_cache=0
2237 # Check whether --with-regex or --without-regex was given.
2238if test "${with_regex+set}" = set; then
2239 withval="$with_regex"
2240
2241 if test "$withval" = yes; then
2242 ac_cv_use_regex='wxUSE_REGEX=yes'
2243 elif test "$withval" = no; then
2244 ac_cv_use_regex='wxUSE_REGEX=no'
2245 elif test "$withval" = sys; then
2246 ac_cv_use_regex='wxUSE_REGEX=sys'
2247 elif test "$withval" = builtin; then
2248 ac_cv_use_regex='wxUSE_REGEX=builtin'
2249 else
2250 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2251 fi
2252
2253else
2254
2255 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2263
2264fi
2265
2266
2267 eval "$ac_cv_use_regex"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_REGEX" = yes; then
2273 echo "$ac_t""yes" 1>&6
2274 elif test "$wxUSE_REGEX" = no; then
2275 echo "$ac_t""no" 1>&6
2276 elif test "$wxUSE_REGEX" = sys; then
2277 echo "$ac_t""system version" 1>&6
2278 elif test "$wxUSE_REGEX" = builtin; then
2279 echo "$ac_t""builtin version" 1>&6
2280 else
2281 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2282 fi
2283
2284
2285 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2286echo "configure:2287: checking for --with-zlib" >&5
2287 no_cache=0
2288 # Check whether --with-zlib or --without-zlib was given.
2289if test "${with_zlib+set}" = set; then
2290 withval="$with_zlib"
2291
2292 if test "$withval" = yes; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2294 elif test "$withval" = no; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=no'
2296 elif test "$withval" = sys; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2298 elif test "$withval" = builtin; then
2299 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2300 else
2301 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2302 fi
2303
2304else
2305
2306 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2307 if test "x$LINE" != x ; then
2308 eval "DEFAULT_$LINE"
2309 else
2310 no_cache=1
2311 fi
2312
2313 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2314
2315fi
2316
2317
2318 eval "$ac_cv_use_zlib"
2319 if test "$no_cache" != 1; then
2320 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2321 fi
2322
2323 if test "$wxUSE_ZLIB" = yes; then
2324 echo "$ac_t""yes" 1>&6
2325 elif test "$wxUSE_ZLIB" = no; then
2326 echo "$ac_t""no" 1>&6
2327 elif test "$wxUSE_ZLIB" = sys; then
2328 echo "$ac_t""system version" 1>&6
2329 elif test "$wxUSE_ZLIB" = builtin; then
2330 echo "$ac_t""builtin version" 1>&6
2331 else
2332 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2333 fi
2334
2335
2336 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2337echo "configure:2338: checking for --with-odbc" >&5
2338 no_cache=0
2339 # Check whether --with-odbc or --without-odbc was given.
2340if test "${with_odbc+set}" = set; then
2341 withval="$with_odbc"
2342
2343 if test "$withval" = yes; then
2344 ac_cv_use_odbc='wxUSE_ODBC=yes'
2345 else
2346 ac_cv_use_odbc='wxUSE_ODBC=no'
2347 fi
2348
2349else
2350
2351 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2359
2360fi
2361
2362
2363 eval "$ac_cv_use_odbc"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_ODBC" = yes; then
2369 echo "$ac_t""yes" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2372 fi
2373
2374
2375
2376
2377 enablestring=
2378 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2379echo "configure:2380: checking for --${enablestring:-enable}-shared" >&5
2380 no_cache=0
2381 # Check whether --enable-shared or --disable-shared was given.
2382if test "${enable_shared+set}" = set; then
2383 enableval="$enable_shared"
2384
2385 if test "$enableval" = yes; then
2386 ac_cv_use_shared='wxUSE_SHARED=yes'
2387 else
2388 ac_cv_use_shared='wxUSE_SHARED=no'
2389 fi
2390
2391else
2392
2393 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2401
2402fi
2403
2404
2405 eval "$ac_cv_use_shared"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_SHARED" = yes; then
2411 echo "$ac_t""yes" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2414 fi
2415
2416
2417 enablestring=
2418 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2419echo "configure:2420: checking for --${enablestring:-enable}-soname" >&5
2420 no_cache=0
2421 # Check whether --enable-soname or --disable-soname was given.
2422if test "${enable_soname+set}" = set; then
2423 enableval="$enable_soname"
2424
2425 if test "$enableval" = yes; then
2426 ac_cv_use_soname='wxUSE_SONAME=yes'
2427 else
2428 ac_cv_use_soname='wxUSE_SONAME=no'
2429 fi
2430
2431else
2432
2433 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2434 if test "x$LINE" != x ; then
2435 eval "DEFAULT_$LINE"
2436 else
2437 no_cache=1
2438 fi
2439
2440 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2441
2442fi
2443
2444
2445 eval "$ac_cv_use_soname"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_SONAME" = yes; then
2451 echo "$ac_t""yes" 1>&6
2452 else
2453 echo "$ac_t""no" 1>&6
2454 fi
2455
2456
2457 enablestring=
2458 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2459echo "configure:2460: checking for --${enablestring:-enable}-optimise" >&5
2460 no_cache=0
2461 # Check whether --enable-optimise or --disable-optimise was given.
2462if test "${enable_optimise+set}" = set; then
2463 enableval="$enable_optimise"
2464
2465 if test "$enableval" = yes; then
2466 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2467 else
2468 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2469 fi
2470
2471else
2472
2473 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2481
2482fi
2483
2484
2485 eval "$ac_cv_use_optimise"
2486 if test "$no_cache" != 1; then
2487 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2488 fi
2489
2490 if test "$wxUSE_OPTIMISE" = yes; then
2491 echo "$ac_t""yes" 1>&6
2492 else
2493 echo "$ac_t""no" 1>&6
2494 fi
2495
2496
2497 enablestring=
2498 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2499echo "configure:2500: checking for --${enablestring:-enable}-debug" >&5
2500 no_cache=0
2501 # Check whether --enable-debug or --disable-debug was given.
2502if test "${enable_debug+set}" = set; then
2503 enableval="$enable_debug"
2504
2505 if test "$enableval" = yes; then
2506 ac_cv_use_debug='wxUSE_DEBUG=yes'
2507 else
2508 ac_cv_use_debug='wxUSE_DEBUG=no'
2509 fi
2510
2511else
2512
2513 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2514 if test "x$LINE" != x ; then
2515 eval "DEFAULT_$LINE"
2516 else
2517 no_cache=1
2518 fi
2519
2520 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2521
2522fi
2523
2524
2525 eval "$ac_cv_use_debug"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_DEBUG" = yes; then
2531 echo "$ac_t""yes" 1>&6
2532 else
2533 echo "$ac_t""no" 1>&6
2534 fi
2535
2536
2537
2538 enablestring=
2539 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2540echo "configure:2541: checking for --${enablestring:-enable}-precomp" >&5
2541 no_cache=0
2542 # Check whether --enable-precomp or --disable-precomp was given.
2543if test "${enable_precomp+set}" = set; then
2544 enableval="$enable_precomp"
2545
2546 if test "$enableval" = yes; then
2547 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2548 else
2549 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2550 fi
2551
2552else
2553
2554 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2562
2563fi
2564
2565
2566 eval "$ac_cv_use_precomp"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_PRECOMP" = yes; then
2572 echo "$ac_t""yes" 1>&6
2573 else
2574 echo "$ac_t""no" 1>&6
2575 fi
2576
2577
2578if test "$wxUSE_DEBUG" = "yes"; then
2579 DEFAULT_wxUSE_DEBUG_FLAG=yes
2580 DEFAULT_wxUSE_DEBUG_INFO=yes
2581elif test "$wxUSE_DEBUG" = "no"; then
2582 DEFAULT_wxUSE_DEBUG_FLAG=no
2583 DEFAULT_wxUSE_DEBUG_INFO=no
2584fi
2585
2586
2587 enablestring=
2588 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2589echo "configure:2590: checking for --${enablestring:-enable}-debug_flag" >&5
2590 no_cache=0
2591 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2592if test "${enable_debug_flag+set}" = set; then
2593 enableval="$enable_debug_flag"
2594
2595 if test "$enableval" = yes; then
2596 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2597 else
2598 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2599 fi
2600
2601else
2602
2603 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
2610 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2611
2612fi
2613
2614
2615 eval "$ac_cv_use_debug_flag"
2616 if test "$no_cache" != 1; then
2617 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2618 fi
2619
2620 if test "$wxUSE_DEBUG_FLAG" = yes; then
2621 echo "$ac_t""yes" 1>&6
2622 else
2623 echo "$ac_t""no" 1>&6
2624 fi
2625
2626
2627 enablestring=
2628 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2629echo "configure:2630: checking for --${enablestring:-enable}-debug_info" >&5
2630 no_cache=0
2631 # Check whether --enable-debug_info or --disable-debug_info was given.
2632if test "${enable_debug_info+set}" = set; then
2633 enableval="$enable_debug_info"
2634
2635 if test "$enableval" = yes; then
2636 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2637 else
2638 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2639 fi
2640
2641else
2642
2643 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2644 if test "x$LINE" != x ; then
2645 eval "DEFAULT_$LINE"
2646 else
2647 no_cache=1
2648 fi
2649
2650 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2651
2652fi
2653
2654
2655 eval "$ac_cv_use_debug_info"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxUSE_DEBUG_INFO" = yes; then
2661 echo "$ac_t""yes" 1>&6
2662 else
2663 echo "$ac_t""no" 1>&6
2664 fi
2665
2666
2667 enablestring=
2668 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2669echo "configure:2670: checking for --${enablestring:-enable}-debug_gdb" >&5
2670 no_cache=0
2671 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2672if test "${enable_debug_gdb+set}" = set; then
2673 enableval="$enable_debug_gdb"
2674
2675 if test "$enableval" = yes; then
2676 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2677 else
2678 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2679 fi
2680
2681else
2682
2683 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2684 if test "x$LINE" != x ; then
2685 eval "DEFAULT_$LINE"
2686 else
2687 no_cache=1
2688 fi
2689
2690 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2691
2692fi
2693
2694
2695 eval "$ac_cv_use_debug_gdb"
2696 if test "$no_cache" != 1; then
2697 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2698 fi
2699
2700 if test "$wxUSE_DEBUG_GDB" = yes; then
2701 echo "$ac_t""yes" 1>&6
2702 else
2703 echo "$ac_t""no" 1>&6
2704 fi
2705
2706
2707 enablestring=
2708 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2709echo "configure:2710: checking for --${enablestring:-enable}-debug_cntxt" >&5
2710 no_cache=0
2711 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2712if test "${enable_debug_cntxt+set}" = set; then
2713 enableval="$enable_debug_cntxt"
2714
2715 if test "$enableval" = yes; then
2716 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2717 else
2718 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2719 fi
2720
2721else
2722
2723 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
2730 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2731
2732fi
2733
2734
2735 eval "$ac_cv_use_debug_cntxt"
2736 if test "$no_cache" != 1; then
2737 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2738 fi
2739
2740 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2741 echo "$ac_t""yes" 1>&6
2742 else
2743 echo "$ac_t""no" 1>&6
2744 fi
2745
2746
2747 enablestring=
2748 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2749echo "configure:2750: checking for --${enablestring:-enable}-mem_tracing" >&5
2750 no_cache=0
2751 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2752if test "${enable_mem_tracing+set}" = set; then
2753 enableval="$enable_mem_tracing"
2754
2755 if test "$enableval" = yes; then
2756 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2757 else
2758 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2759 fi
2760
2761else
2762
2763 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2771
2772fi
2773
2774
2775 eval "$ac_cv_use_mem_tracing"
2776 if test "$no_cache" != 1; then
2777 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2778 fi
2779
2780 if test "$wxUSE_MEM_TRACING" = yes; then
2781 echo "$ac_t""yes" 1>&6
2782 else
2783 echo "$ac_t""no" 1>&6
2784 fi
2785
2786
2787 enablestring=
2788 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2789echo "configure:2790: checking for --${enablestring:-enable}-profile" >&5
2790 no_cache=0
2791 # Check whether --enable-profile or --disable-profile was given.
2792if test "${enable_profile+set}" = set; then
2793 enableval="$enable_profile"
2794
2795 if test "$enableval" = yes; then
2796 ac_cv_use_profile='wxUSE_PROFILE=yes'
2797 else
2798 ac_cv_use_profile='wxUSE_PROFILE=no'
2799 fi
2800
2801else
2802
2803 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2804 if test "x$LINE" != x ; then
2805 eval "DEFAULT_$LINE"
2806 else
2807 no_cache=1
2808 fi
2809
2810 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2811
2812fi
2813
2814
2815 eval "$ac_cv_use_profile"
2816 if test "$no_cache" != 1; then
2817 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2818 fi
2819
2820 if test "$wxUSE_PROFILE" = yes; then
2821 echo "$ac_t""yes" 1>&6
2822 else
2823 echo "$ac_t""no" 1>&6
2824 fi
2825
2826
2827 enablestring=
2828 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2829echo "configure:2830: checking for --${enablestring:-enable}-no_rtti" >&5
2830 no_cache=0
2831 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2832if test "${enable_no_rtti+set}" = set; then
2833 enableval="$enable_no_rtti"
2834
2835 if test "$enableval" = yes; then
2836 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2837 else
2838 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2839 fi
2840
2841else
2842
2843 LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2851
2852fi
2853
2854
2855 eval "$ac_cv_use_no_rtti"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_NO_RTTI" = yes; then
2861 echo "$ac_t""yes" 1>&6
2862 else
2863 echo "$ac_t""no" 1>&6
2864 fi
2865
2866
2867 enablestring=
2868 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2869echo "configure:2870: checking for --${enablestring:-enable}-no_exceptions" >&5
2870 no_cache=0
2871 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2872if test "${enable_no_exceptions+set}" = set; then
2873 enableval="$enable_no_exceptions"
2874
2875 if test "$enableval" = yes; then
2876 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2877 else
2878 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2879 fi
2880
2881else
2882
2883 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2884 if test "x$LINE" != x ; then
2885 eval "DEFAULT_$LINE"
2886 else
2887 no_cache=1
2888 fi
2889
2890 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2891
2892fi
2893
2894
2895 eval "$ac_cv_use_no_exceptions"
2896 if test "$no_cache" != 1; then
2897 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2898 fi
2899
2900 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2901 echo "$ac_t""yes" 1>&6
2902 else
2903 echo "$ac_t""no" 1>&6
2904 fi
2905
2906
2907 enablestring=
2908 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2909echo "configure:2910: checking for --${enablestring:-enable}-permissive" >&5
2910 no_cache=0
2911 # Check whether --enable-permissive or --disable-permissive was given.
2912if test "${enable_permissive+set}" = set; then
2913 enableval="$enable_permissive"
2914
2915 if test "$enableval" = yes; then
2916 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2917 else
2918 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2919 fi
2920
2921else
2922
2923 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2924 if test "x$LINE" != x ; then
2925 eval "DEFAULT_$LINE"
2926 else
2927 no_cache=1
2928 fi
2929
2930 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2931
2932fi
2933
2934
2935 eval "$ac_cv_use_permissive"
2936 if test "$no_cache" != 1; then
2937 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2938 fi
2939
2940 if test "$wxUSE_PERMISSIVE" = yes; then
2941 echo "$ac_t""yes" 1>&6
2942 else
2943 echo "$ac_t""no" 1>&6
2944 fi
2945
2946
2947 enablestring=
2948 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2949echo "configure:2950: checking for --${enablestring:-enable}-no_deps" >&5
2950 no_cache=0
2951 # Check whether --enable-no_deps or --disable-no_deps was given.
2952if test "${enable_no_deps+set}" = set; then
2953 enableval="$enable_no_deps"
2954
2955 if test "$enableval" = yes; then
2956 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2957 else
2958 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2959 fi
2960
2961else
2962
2963 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2971
2972fi
2973
2974
2975 eval "$ac_cv_use_no_deps"
2976 if test "$no_cache" != 1; then
2977 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2978 fi
2979
2980 if test "$wxUSE_NO_DEPS" = yes; then
2981 echo "$ac_t""yes" 1>&6
2982 else
2983 echo "$ac_t""no" 1>&6
2984 fi
2985
2986
2987
2988 enablestring=
2989 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2990echo "configure:2991: checking for --${enablestring:-enable}-compat20" >&5
2991 no_cache=0
2992 # Check whether --enable-compat20 or --disable-compat20 was given.
2993if test "${enable_compat20+set}" = set; then
2994 enableval="$enable_compat20"
2995
2996 if test "$enableval" = yes; then
2997 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2998 else
2999 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3000 fi
3001
3002else
3003
3004 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3005 if test "x$LINE" != x ; then
3006 eval "DEFAULT_$LINE"
3007 else
3008 no_cache=1
3009 fi
3010
3011 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3012
3013fi
3014
3015
3016 eval "$ac_cv_use_compat20"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3022 echo "$ac_t""yes" 1>&6
3023 else
3024 echo "$ac_t""no" 1>&6
3025 fi
3026
3027
3028 enablestring=
3029 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3030echo "configure:3031: checking for --${enablestring:-enable}-compat22" >&5
3031 no_cache=0
3032 # Check whether --enable-compat22 or --disable-compat22 was given.
3033if test "${enable_compat22+set}" = set; then
3034 enableval="$enable_compat22"
3035
3036 if test "$enableval" = yes; then
3037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3038 else
3039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3040 fi
3041
3042else
3043
3044 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3045 if test "x$LINE" != x ; then
3046 eval "DEFAULT_$LINE"
3047 else
3048 no_cache=1
3049 fi
3050
3051 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3052
3053fi
3054
3055
3056 eval "$ac_cv_use_compat22"
3057 if test "$no_cache" != 1; then
3058 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3059 fi
3060
3061 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3062 echo "$ac_t""yes" 1>&6
3063 else
3064 echo "$ac_t""no" 1>&6
3065 fi
3066
3067
3068 enablestring=disable
3069 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3070echo "configure:3071: checking for --${enablestring:-enable}-compat24" >&5
3071 no_cache=0
3072 # Check whether --enable-compat24 or --disable-compat24 was given.
3073if test "${enable_compat24+set}" = set; then
3074 enableval="$enable_compat24"
3075
3076 if test "$enableval" = yes; then
3077 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3078 else
3079 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3080 fi
3081
3082else
3083
3084 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3085 if test "x$LINE" != x ; then
3086 eval "DEFAULT_$LINE"
3087 else
3088 no_cache=1
3089 fi
3090
3091 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3092
3093fi
3094
3095
3096 eval "$ac_cv_use_compat24"
3097 if test "$no_cache" != 1; then
3098 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3099 fi
3100
3101 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3102 echo "$ac_t""yes" 1>&6
3103 else
3104 echo "$ac_t""no" 1>&6
3105 fi
3106
3107
3108# Check whether --enable-rpath or --disable-rpath was given.
3109if test "${enable_rpath+set}" = set; then
3110 enableval="$enable_rpath"
3111 wxRPATH_DIR="$enableval"
3112fi
3113
3114
3115if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3116 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3117fi
3118
3119
3120
3121
3122 enablestring=
3123 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3124echo "configure:3125: checking for --${enablestring:-enable}-intl" >&5
3125 no_cache=0
3126 # Check whether --enable-intl or --disable-intl was given.
3127if test "${enable_intl+set}" = set; then
3128 enableval="$enable_intl"
3129
3130 if test "$enableval" = yes; then
3131 ac_cv_use_intl='wxUSE_INTL=yes'
3132 else
3133 ac_cv_use_intl='wxUSE_INTL=no'
3134 fi
3135
3136else
3137
3138 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3146
3147fi
3148
3149
3150 eval "$ac_cv_use_intl"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_INTL" = yes; then
3156 echo "$ac_t""yes" 1>&6
3157 else
3158 echo "$ac_t""no" 1>&6
3159 fi
3160
3161
3162 enablestring=
3163 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3164echo "configure:3165: checking for --${enablestring:-enable}-config" >&5
3165 no_cache=0
3166 # Check whether --enable-config or --disable-config was given.
3167if test "${enable_config+set}" = set; then
3168 enableval="$enable_config"
3169
3170 if test "$enableval" = yes; then
3171 ac_cv_use_config='wxUSE_CONFIG=yes'
3172 else
3173 ac_cv_use_config='wxUSE_CONFIG=no'
3174 fi
3175
3176else
3177
3178 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3179 if test "x$LINE" != x ; then
3180 eval "DEFAULT_$LINE"
3181 else
3182 no_cache=1
3183 fi
3184
3185 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3186
3187fi
3188
3189
3190 eval "$ac_cv_use_config"
3191 if test "$no_cache" != 1; then
3192 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3193 fi
3194
3195 if test "$wxUSE_CONFIG" = yes; then
3196 echo "$ac_t""yes" 1>&6
3197 else
3198 echo "$ac_t""no" 1>&6
3199 fi
3200
3201
3202
3203 enablestring=
3204 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3205echo "configure:3206: checking for --${enablestring:-enable}-protocols" >&5
3206 no_cache=0
3207 # Check whether --enable-protocols or --disable-protocols was given.
3208if test "${enable_protocols+set}" = set; then
3209 enableval="$enable_protocols"
3210
3211 if test "$enableval" = yes; then
3212 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3213 else
3214 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3215 fi
3216
3217else
3218
3219 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3220 if test "x$LINE" != x ; then
3221 eval "DEFAULT_$LINE"
3222 else
3223 no_cache=1
3224 fi
3225
3226 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3227
3228fi
3229
3230
3231 eval "$ac_cv_use_protocols"
3232 if test "$no_cache" != 1; then
3233 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3234 fi
3235
3236 if test "$wxUSE_PROTOCOL" = yes; then
3237 echo "$ac_t""yes" 1>&6
3238 else
3239 echo "$ac_t""no" 1>&6
3240 fi
3241
3242
3243 enablestring=
3244 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3245echo "configure:3246: checking for --${enablestring:-enable}-ftp" >&5
3246 no_cache=0
3247 # Check whether --enable-ftp or --disable-ftp was given.
3248if test "${enable_ftp+set}" = set; then
3249 enableval="$enable_ftp"
3250
3251 if test "$enableval" = yes; then
3252 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3253 else
3254 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3255 fi
3256
3257else
3258
3259 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3267
3268fi
3269
3270
3271 eval "$ac_cv_use_ftp"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3277 echo "$ac_t""yes" 1>&6
3278 else
3279 echo "$ac_t""no" 1>&6
3280 fi
3281
3282
3283 enablestring=
3284 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3285echo "configure:3286: checking for --${enablestring:-enable}-http" >&5
3286 no_cache=0
3287 # Check whether --enable-http or --disable-http was given.
3288if test "${enable_http+set}" = set; then
3289 enableval="$enable_http"
3290
3291 if test "$enableval" = yes; then
3292 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3293 else
3294 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3295 fi
3296
3297else
3298
3299 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3300 if test "x$LINE" != x ; then
3301 eval "DEFAULT_$LINE"
3302 else
3303 no_cache=1
3304 fi
3305
3306 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3307
3308fi
3309
3310
3311 eval "$ac_cv_use_http"
3312 if test "$no_cache" != 1; then
3313 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3314 fi
3315
3316 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3317 echo "$ac_t""yes" 1>&6
3318 else
3319 echo "$ac_t""no" 1>&6
3320 fi
3321
3322
3323 enablestring=
3324 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3325echo "configure:3326: checking for --${enablestring:-enable}-fileproto" >&5
3326 no_cache=0
3327 # Check whether --enable-fileproto or --disable-fileproto was given.
3328if test "${enable_fileproto+set}" = set; then
3329 enableval="$enable_fileproto"
3330
3331 if test "$enableval" = yes; then
3332 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3333 else
3334 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3335 fi
3336
3337else
3338
3339 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3340 if test "x$LINE" != x ; then
3341 eval "DEFAULT_$LINE"
3342 else
3343 no_cache=1
3344 fi
3345
3346 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3347
3348fi
3349
3350
3351 eval "$ac_cv_use_fileproto"
3352 if test "$no_cache" != 1; then
3353 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3354 fi
3355
3356 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3357 echo "$ac_t""yes" 1>&6
3358 else
3359 echo "$ac_t""no" 1>&6
3360 fi
3361
3362
3363 enablestring=
3364 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3365echo "configure:3366: checking for --${enablestring:-enable}-sockets" >&5
3366 no_cache=0
3367 # Check whether --enable-sockets or --disable-sockets was given.
3368if test "${enable_sockets+set}" = set; then
3369 enableval="$enable_sockets"
3370
3371 if test "$enableval" = yes; then
3372 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3373 else
3374 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3375 fi
3376
3377else
3378
3379 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3380 if test "x$LINE" != x ; then
3381 eval "DEFAULT_$LINE"
3382 else
3383 no_cache=1
3384 fi
3385
3386 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3387
3388fi
3389
3390
3391 eval "$ac_cv_use_sockets"
3392 if test "$no_cache" != 1; then
3393 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3394 fi
3395
3396 if test "$wxUSE_SOCKETS" = yes; then
3397 echo "$ac_t""yes" 1>&6
3398 else
3399 echo "$ac_t""no" 1>&6
3400 fi
3401
3402
3403 enablestring=
3404 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3405echo "configure:3406: checking for --${enablestring:-enable}-ole" >&5
3406 no_cache=0
3407 # Check whether --enable-ole or --disable-ole was given.
3408if test "${enable_ole+set}" = set; then
3409 enableval="$enable_ole"
3410
3411 if test "$enableval" = yes; then
3412 ac_cv_use_ole='wxUSE_OLE=yes'
3413 else
3414 ac_cv_use_ole='wxUSE_OLE=no'
3415 fi
3416
3417else
3418
3419 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3427
3428fi
3429
3430
3431 eval "$ac_cv_use_ole"
3432 if test "$no_cache" != 1; then
3433 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3434 fi
3435
3436 if test "$wxUSE_OLE" = yes; then
3437 echo "$ac_t""yes" 1>&6
3438 else
3439 echo "$ac_t""no" 1>&6
3440 fi
3441
3442
3443 enablestring=
3444 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3445echo "configure:3446: checking for --${enablestring:-enable}-dataobj" >&5
3446 no_cache=0
3447 # Check whether --enable-dataobj or --disable-dataobj was given.
3448if test "${enable_dataobj+set}" = set; then
3449 enableval="$enable_dataobj"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3453 else
3454 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3467
3468fi
3469
3470
3471 eval "$ac_cv_use_dataobj"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_DATAOBJ" = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3480 fi
3481
3482
3483
3484 enablestring=
3485 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3486echo "configure:3487: checking for --${enablestring:-enable}-ipc" >&5
3487 no_cache=0
3488 # Check whether --enable-ipc or --disable-ipc was given.
3489if test "${enable_ipc+set}" = set; then
3490 enableval="$enable_ipc"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_ipc='wxUSE_IPC=yes'
3494 else
3495 ac_cv_use_ipc='wxUSE_IPC=no'
3496 fi
3497
3498else
3499
3500 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3508
3509fi
3510
3511
3512 eval "$ac_cv_use_ipc"
3513 if test "$no_cache" != 1; then
3514 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3515 fi
3516
3517 if test "$wxUSE_IPC" = yes; then
3518 echo "$ac_t""yes" 1>&6
3519 else
3520 echo "$ac_t""no" 1>&6
3521 fi
3522
3523
3524
3525 enablestring=
3526 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3527echo "configure:3528: checking for --${enablestring:-enable}-cmdline" >&5
3528 no_cache=0
3529 # Check whether --enable-cmdline or --disable-cmdline was given.
3530if test "${enable_cmdline+set}" = set; then
3531 enableval="$enable_cmdline"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3535 else
3536 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3549
3550fi
3551
3552
3553 eval "$ac_cv_use_cmdline"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3559 echo "$ac_t""yes" 1>&6
3560 else
3561 echo "$ac_t""no" 1>&6
3562 fi
3563
3564
3565 enablestring=
3566 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3567echo "configure:3568: checking for --${enablestring:-enable}-datetime" >&5
3568 no_cache=0
3569 # Check whether --enable-datetime or --disable-datetime was given.
3570if test "${enable_datetime+set}" = set; then
3571 enableval="$enable_datetime"
3572
3573 if test "$enableval" = yes; then
3574 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3575 else
3576 ac_cv_use_datetime='wxUSE_DATETIME=no'
3577 fi
3578
3579else
3580
3581 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3582 if test "x$LINE" != x ; then
3583 eval "DEFAULT_$LINE"
3584 else
3585 no_cache=1
3586 fi
3587
3588 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3589
3590fi
3591
3592
3593 eval "$ac_cv_use_datetime"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_DATETIME" = yes; then
3599 echo "$ac_t""yes" 1>&6
3600 else
3601 echo "$ac_t""no" 1>&6
3602 fi
3603
3604
3605 enablestring=
3606 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3607echo "configure:3608: checking for --${enablestring:-enable}-stopwatch" >&5
3608 no_cache=0
3609 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3610if test "${enable_stopwatch+set}" = set; then
3611 enableval="$enable_stopwatch"
3612
3613 if test "$enableval" = yes; then
3614 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3615 else
3616 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3617 fi
3618
3619else
3620
3621 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3622 if test "x$LINE" != x ; then
3623 eval "DEFAULT_$LINE"
3624 else
3625 no_cache=1
3626 fi
3627
3628 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3629
3630fi
3631
3632
3633 eval "$ac_cv_use_stopwatch"
3634 if test "$no_cache" != 1; then
3635 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3636 fi
3637
3638 if test "$wxUSE_STOPWATCH" = yes; then
3639 echo "$ac_t""yes" 1>&6
3640 else
3641 echo "$ac_t""no" 1>&6
3642 fi
3643
3644
3645 enablestring=
3646 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3647echo "configure:3648: checking for --${enablestring:-enable}-dialupman" >&5
3648 no_cache=0
3649 # Check whether --enable-dialupman or --disable-dialupman was given.
3650if test "${enable_dialupman+set}" = set; then
3651 enableval="$enable_dialupman"
3652
3653 if test "$enableval" = yes; then
3654 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3655 else
3656 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3657 fi
3658
3659else
3660
3661 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3662 if test "x$LINE" != x ; then
3663 eval "DEFAULT_$LINE"
3664 else
3665 no_cache=1
3666 fi
3667
3668 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3669
3670fi
3671
3672
3673 eval "$ac_cv_use_dialupman"
3674 if test "$no_cache" != 1; then
3675 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3676 fi
3677
3678 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3679 echo "$ac_t""yes" 1>&6
3680 else
3681 echo "$ac_t""no" 1>&6
3682 fi
3683
3684
3685 enablestring=
3686 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3687echo "configure:3688: checking for --${enablestring:-enable}-apple_ieee" >&5
3688 no_cache=0
3689 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3690if test "${enable_apple_ieee+set}" = set; then
3691 enableval="$enable_apple_ieee"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3695 else
3696 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3709
3710fi
3711
3712
3713 eval "$ac_cv_use_apple_ieee"
3714 if test "$no_cache" != 1; then
3715 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3716 fi
3717
3718 if test "$wxUSE_APPLE_IEEE" = yes; then
3719 echo "$ac_t""yes" 1>&6
3720 else
3721 echo "$ac_t""no" 1>&6
3722 fi
3723
3724
3725 enablestring=
3726 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3727echo "configure:3728: checking for --${enablestring:-enable}-timer" >&5
3728 no_cache=0
3729 # Check whether --enable-timer or --disable-timer was given.
3730if test "${enable_timer+set}" = set; then
3731 enableval="$enable_timer"
3732
3733 if test "$enableval" = yes; then
3734 ac_cv_use_timer='wxUSE_TIMER=yes'
3735 else
3736 ac_cv_use_timer='wxUSE_TIMER=no'
3737 fi
3738
3739else
3740
3741 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
3748 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3749
3750fi
3751
3752
3753 eval "$ac_cv_use_timer"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_TIMER" = yes; then
3759 echo "$ac_t""yes" 1>&6
3760 else
3761 echo "$ac_t""no" 1>&6
3762 fi
3763
3764
3765 enablestring=
3766 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3767echo "configure:3768: checking for --${enablestring:-enable}-wave" >&5
3768 no_cache=0
3769 # Check whether --enable-wave or --disable-wave was given.
3770if test "${enable_wave+set}" = set; then
3771 enableval="$enable_wave"
3772
3773 if test "$enableval" = yes; then
3774 ac_cv_use_wave='wxUSE_WAVE=yes'
3775 else
3776 ac_cv_use_wave='wxUSE_WAVE=no'
3777 fi
3778
3779else
3780
3781 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3789
3790fi
3791
3792
3793 eval "$ac_cv_use_wave"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_WAVE" = yes; then
3799 echo "$ac_t""yes" 1>&6
3800 else
3801 echo "$ac_t""no" 1>&6
3802 fi
3803
3804
3805 enablestring=
3806 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3807echo "configure:3808: checking for --${enablestring:-enable}-fraction" >&5
3808 no_cache=0
3809 # Check whether --enable-fraction or --disable-fraction was given.
3810if test "${enable_fraction+set}" = set; then
3811 enableval="$enable_fraction"
3812
3813 if test "$enableval" = yes; then
3814 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3815 else
3816 ac_cv_use_fraction='wxUSE_FRACTION=no'
3817 fi
3818
3819else
3820
3821 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3822 if test "x$LINE" != x ; then
3823 eval "DEFAULT_$LINE"
3824 else
3825 no_cache=1
3826 fi
3827
3828 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3829
3830fi
3831
3832
3833 eval "$ac_cv_use_fraction"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_FRACTION" = yes; then
3839 echo "$ac_t""yes" 1>&6
3840 else
3841 echo "$ac_t""no" 1>&6
3842 fi
3843
3844
3845 enablestring=
3846 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3847echo "configure:3848: checking for --${enablestring:-enable}-dynlib" >&5
3848 no_cache=0
3849 # Check whether --enable-dynlib or --disable-dynlib was given.
3850if test "${enable_dynlib+set}" = set; then
3851 enableval="$enable_dynlib"
3852
3853 if test "$enableval" = yes; then
3854 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3855 else
3856 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3857 fi
3858
3859else
3860
3861 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3869
3870fi
3871
3872
3873 eval "$ac_cv_use_dynlib"
3874 if test "$no_cache" != 1; then
3875 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3876 fi
3877
3878 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3879 echo "$ac_t""yes" 1>&6
3880 else
3881 echo "$ac_t""no" 1>&6
3882 fi
3883
3884
3885 enablestring=
3886 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3887echo "configure:3888: checking for --${enablestring:-enable}-dynamicloader" >&5
3888 no_cache=0
3889 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3890if test "${enable_dynamicloader+set}" = set; then
3891 enableval="$enable_dynamicloader"
3892
3893 if test "$enableval" = yes; then
3894 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3895 else
3896 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3897 fi
3898
3899else
3900
3901 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3902 if test "x$LINE" != x ; then
3903 eval "DEFAULT_$LINE"
3904 else
3905 no_cache=1
3906 fi
3907
3908 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3909
3910fi
3911
3912
3913 eval "$ac_cv_use_dynamicloader"
3914 if test "$no_cache" != 1; then
3915 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3916 fi
3917
3918 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3919 echo "$ac_t""yes" 1>&6
3920 else
3921 echo "$ac_t""no" 1>&6
3922 fi
3923
3924
3925 enablestring=
3926 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3927echo "configure:3928: checking for --${enablestring:-enable}-longlong" >&5
3928 no_cache=0
3929 # Check whether --enable-longlong or --disable-longlong was given.
3930if test "${enable_longlong+set}" = set; then
3931 enableval="$enable_longlong"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3935 else
3936 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3937 fi
3938
3939else
3940
3941 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3949
3950fi
3951
3952
3953 eval "$ac_cv_use_longlong"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_LONGLONG" = yes; then
3959 echo "$ac_t""yes" 1>&6
3960 else
3961 echo "$ac_t""no" 1>&6
3962 fi
3963
3964
3965 enablestring=
3966 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3967echo "configure:3968: checking for --${enablestring:-enable}-geometry" >&5
3968 no_cache=0
3969 # Check whether --enable-geometry or --disable-geometry was given.
3970if test "${enable_geometry+set}" = set; then
3971 enableval="$enable_geometry"
3972
3973 if test "$enableval" = yes; then
3974 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3975 else
3976 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3977 fi
3978
3979else
3980
3981 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3982 if test "x$LINE" != x ; then
3983 eval "DEFAULT_$LINE"
3984 else
3985 no_cache=1
3986 fi
3987
3988 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3989
3990fi
3991
3992
3993 eval "$ac_cv_use_geometry"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$wxUSE_GEOMETRY" = yes; then
3999 echo "$ac_t""yes" 1>&6
4000 else
4001 echo "$ac_t""no" 1>&6
4002 fi
4003
4004
4005 enablestring=
4006 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4007echo "configure:4008: checking for --${enablestring:-enable}-log" >&5
4008 no_cache=0
4009 # Check whether --enable-log or --disable-log was given.
4010if test "${enable_log+set}" = set; then
4011 enableval="$enable_log"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_log='wxUSE_LOG=yes'
4015 else
4016 ac_cv_use_log='wxUSE_LOG=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4029
4030fi
4031
4032
4033 eval "$ac_cv_use_log"
4034 if test "$no_cache" != 1; then
4035 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4036 fi
4037
4038 if test "$wxUSE_LOG" = yes; then
4039 echo "$ac_t""yes" 1>&6
4040 else
4041 echo "$ac_t""no" 1>&6
4042 fi
4043
4044
4045 enablestring=
4046 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4047echo "configure:4048: checking for --${enablestring:-enable}-streams" >&5
4048 no_cache=0
4049 # Check whether --enable-streams or --disable-streams was given.
4050if test "${enable_streams+set}" = set; then
4051 enableval="$enable_streams"
4052
4053 if test "$enableval" = yes; then
4054 ac_cv_use_streams='wxUSE_STREAMS=yes'
4055 else
4056 ac_cv_use_streams='wxUSE_STREAMS=no'
4057 fi
4058
4059else
4060
4061 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4062 if test "x$LINE" != x ; then
4063 eval "DEFAULT_$LINE"
4064 else
4065 no_cache=1
4066 fi
4067
4068 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4069
4070fi
4071
4072
4073 eval "$ac_cv_use_streams"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_STREAMS" = yes; then
4079 echo "$ac_t""yes" 1>&6
4080 else
4081 echo "$ac_t""no" 1>&6
4082 fi
4083
4084
4085 enablestring=
4086 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4087echo "configure:4088: checking for --${enablestring:-enable}-file" >&5
4088 no_cache=0
4089 # Check whether --enable-file or --disable-file was given.
4090if test "${enable_file+set}" = set; then
4091 enableval="$enable_file"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_file='wxUSE_FILE=yes'
4095 else
4096 ac_cv_use_file='wxUSE_FILE=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4109
4110fi
4111
4112
4113 eval "$ac_cv_use_file"
4114 if test "$no_cache" != 1; then
4115 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4116 fi
4117
4118 if test "$wxUSE_FILE" = yes; then
4119 echo "$ac_t""yes" 1>&6
4120 else
4121 echo "$ac_t""no" 1>&6
4122 fi
4123
4124
4125 enablestring=
4126 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4127echo "configure:4128: checking for --${enablestring:-enable}-ffile" >&5
4128 no_cache=0
4129 # Check whether --enable-ffile or --disable-ffile was given.
4130if test "${enable_ffile+set}" = set; then
4131 enableval="$enable_ffile"
4132
4133 if test "$enableval" = yes; then
4134 ac_cv_use_ffile='wxUSE_FFILE=yes'
4135 else
4136 ac_cv_use_ffile='wxUSE_FFILE=no'
4137 fi
4138
4139else
4140
4141 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4142 if test "x$LINE" != x ; then
4143 eval "DEFAULT_$LINE"
4144 else
4145 no_cache=1
4146 fi
4147
4148 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4149
4150fi
4151
4152
4153 eval "$ac_cv_use_ffile"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$wxUSE_FFILE" = yes; then
4159 echo "$ac_t""yes" 1>&6
4160 else
4161 echo "$ac_t""no" 1>&6
4162 fi
4163
4164
4165 enablestring=
4166 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4167echo "configure:4168: checking for --${enablestring:-enable}-textbuf" >&5
4168 no_cache=0
4169 # Check whether --enable-textbuf or --disable-textbuf was given.
4170if test "${enable_textbuf+set}" = set; then
4171 enableval="$enable_textbuf"
4172
4173 if test "$enableval" = yes; then
4174 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4175 else
4176 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4177 fi
4178
4179else
4180
4181 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4182 if test "x$LINE" != x ; then
4183 eval "DEFAULT_$LINE"
4184 else
4185 no_cache=1
4186 fi
4187
4188 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4189
4190fi
4191
4192
4193 eval "$ac_cv_use_textbuf"
4194 if test "$no_cache" != 1; then
4195 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4196 fi
4197
4198 if test "$wxUSE_TEXTBUFFER" = yes; then
4199 echo "$ac_t""yes" 1>&6
4200 else
4201 echo "$ac_t""no" 1>&6
4202 fi
4203
4204
4205 enablestring=
4206 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4207echo "configure:4208: checking for --${enablestring:-enable}-textfile" >&5
4208 no_cache=0
4209 # Check whether --enable-textfile or --disable-textfile was given.
4210if test "${enable_textfile+set}" = set; then
4211 enableval="$enable_textfile"
4212
4213 if test "$enableval" = yes; then
4214 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4215 else
4216 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4217 fi
4218
4219else
4220
4221 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4222 if test "x$LINE" != x ; then
4223 eval "DEFAULT_$LINE"
4224 else
4225 no_cache=1
4226 fi
4227
4228 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4229
4230fi
4231
4232
4233 eval "$ac_cv_use_textfile"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_TEXTFILE" = yes; then
4239 echo "$ac_t""yes" 1>&6
4240 else
4241 echo "$ac_t""no" 1>&6
4242 fi
4243
4244
4245 enablestring=
4246 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4247echo "configure:4248: checking for --${enablestring:-enable}-fontmap" >&5
4248 no_cache=0
4249 # Check whether --enable-fontmap or --disable-fontmap was given.
4250if test "${enable_fontmap+set}" = set; then
4251 enableval="$enable_fontmap"
4252
4253 if test "$enableval" = yes; then
4254 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4255 else
4256 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4257 fi
4258
4259else
4260
4261 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
4268 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4269
4270fi
4271
4272
4273 eval "$ac_cv_use_fontmap"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_FONTMAP" = yes; then
4279 echo "$ac_t""yes" 1>&6
4280 else
4281 echo "$ac_t""no" 1>&6
4282 fi
4283
4284
4285 enablestring=
4286 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4287echo "configure:4288: checking for --${enablestring:-enable}-unicode" >&5
4288 no_cache=0
4289 # Check whether --enable-unicode or --disable-unicode was given.
4290if test "${enable_unicode+set}" = set; then
4291 enableval="$enable_unicode"
4292
4293 if test "$enableval" = yes; then
4294 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4295 else
4296 ac_cv_use_unicode='wxUSE_UNICODE=no'
4297 fi
4298
4299else
4300
4301 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4302 if test "x$LINE" != x ; then
4303 eval "DEFAULT_$LINE"
4304 else
4305 no_cache=1
4306 fi
4307
4308 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4309
4310fi
4311
4312
4313 eval "$ac_cv_use_unicode"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_UNICODE" = yes; then
4319 echo "$ac_t""yes" 1>&6
4320 else
4321 echo "$ac_t""no" 1>&6
4322 fi
4323
4324
4325 enablestring=
4326 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4327echo "configure:4328: checking for --${enablestring:-enable}-mslu" >&5
4328 no_cache=0
4329 # Check whether --enable-mslu or --disable-mslu was given.
4330if test "${enable_mslu+set}" = set; then
4331 enableval="$enable_mslu"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4335 else
4336 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4349
4350fi
4351
4352
4353 eval "$ac_cv_use_mslu"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_UNICODE_MSLU" = yes; then
4359 echo "$ac_t""yes" 1>&6
4360 else
4361 echo "$ac_t""no" 1>&6
4362 fi
4363
4364
4365 enablestring=
4366 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4367echo "configure:4368: checking for --${enablestring:-enable}-wxprintfv" >&5
4368 no_cache=0
4369 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4370if test "${enable_wxprintfv+set}" = set; then
4371 enableval="$enable_wxprintfv"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4375 else
4376 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4389
4390fi
4391
4392
4393 eval "$ac_cv_use_wxprintfv"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4399 echo "$ac_t""yes" 1>&6
4400 else
4401 echo "$ac_t""no" 1>&6
4402 fi
4403
4404
4405 enablestring=
4406 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4407echo "configure:4408: checking for --${enablestring:-enable}-std_iostreams" >&5
4408 no_cache=0
4409 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4410if test "${enable_std_iostreams+set}" = set; then
4411 enableval="$enable_std_iostreams"
4412
4413 if test "$enableval" = yes; then
4414 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4415 else
4416 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4417 fi
4418
4419else
4420
4421 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4422 if test "x$LINE" != x ; then
4423 eval "DEFAULT_$LINE"
4424 else
4425 no_cache=1
4426 fi
4427
4428 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4429
4430fi
4431
4432
4433 eval "$ac_cv_use_std_iostreams"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_STD_IOSTREAM" = yes; then
4439 echo "$ac_t""yes" 1>&6
4440 else
4441 echo "$ac_t""no" 1>&6
4442 fi
4443
4444
4445 enablestring=
4446 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4447echo "configure:4448: checking for --${enablestring:-enable}-filesystem" >&5
4448 no_cache=0
4449 # Check whether --enable-filesystem or --disable-filesystem was given.
4450if test "${enable_filesystem+set}" = set; then
4451 enableval="$enable_filesystem"
4452
4453 if test "$enableval" = yes; then
4454 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4455 else
4456 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4457 fi
4458
4459else
4460
4461 LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4469
4470fi
4471
4472
4473 eval "$ac_cv_use_filesystem"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_FILESYSTEM" = yes; then
4479 echo "$ac_t""yes" 1>&6
4480 else
4481 echo "$ac_t""no" 1>&6
4482 fi
4483
4484
4485 enablestring=
4486 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4487echo "configure:4488: checking for --${enablestring:-enable}-fs_inet" >&5
4488 no_cache=0
4489 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4490if test "${enable_fs_inet+set}" = set; then
4491 enableval="$enable_fs_inet"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4495 else
4496 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4509
4510fi
4511
4512
4513 eval "$ac_cv_use_fs_inet"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_FS_INET" = yes; then
4519 echo "$ac_t""yes" 1>&6
4520 else
4521 echo "$ac_t""no" 1>&6
4522 fi
4523
4524
4525 enablestring=
4526 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4527echo "configure:4528: checking for --${enablestring:-enable}-fs_zip" >&5
4528 no_cache=0
4529 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4530if test "${enable_fs_zip+set}" = set; then
4531 enableval="$enable_fs_zip"
4532
4533 if test "$enableval" = yes; then
4534 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4535 else
4536 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4537 fi
4538
4539else
4540
4541 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4542 if test "x$LINE" != x ; then
4543 eval "DEFAULT_$LINE"
4544 else
4545 no_cache=1
4546 fi
4547
4548 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4549
4550fi
4551
4552
4553 eval "$ac_cv_use_fs_zip"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_FS_ZIP" = yes; then
4559 echo "$ac_t""yes" 1>&6
4560 else
4561 echo "$ac_t""no" 1>&6
4562 fi
4563
4564
4565 enablestring=
4566 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4567echo "configure:4568: checking for --${enablestring:-enable}-zipstream" >&5
4568 no_cache=0
4569 # Check whether --enable-zipstream or --disable-zipstream was given.
4570if test "${enable_zipstream+set}" = set; then
4571 enableval="$enable_zipstream"
4572
4573 if test "$enableval" = yes; then
4574 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4575 else
4576 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4577 fi
4578
4579else
4580
4581 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4582 if test "x$LINE" != x ; then
4583 eval "DEFAULT_$LINE"
4584 else
4585 no_cache=1
4586 fi
4587
4588 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4589
4590fi
4591
4592
4593 eval "$ac_cv_use_zipstream"
4594 if test "$no_cache" != 1; then
4595 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4596 fi
4597
4598 if test "$wxUSE_ZIPSTREAM" = yes; then
4599 echo "$ac_t""yes" 1>&6
4600 else
4601 echo "$ac_t""no" 1>&6
4602 fi
4603
4604
4605
4606 enablestring=
4607 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4608echo "configure:4609: checking for --${enablestring:-enable}-catch_segvs" >&5
4609 no_cache=0
4610 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4611if test "${enable_catch_segvs+set}" = set; then
4612 enableval="$enable_catch_segvs"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4616 else
4617 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4630
4631fi
4632
4633
4634 eval "$ac_cv_use_catch_segvs"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
4646 enablestring=
4647 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4648echo "configure:4649: checking for --${enablestring:-enable}-snglinst" >&5
4649 no_cache=0
4650 # Check whether --enable-snglinst or --disable-snglinst was given.
4651if test "${enable_snglinst+set}" = set; then
4652 enableval="$enable_snglinst"
4653
4654 if test "$enableval" = yes; then
4655 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4656 else
4657 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4658 fi
4659
4660else
4661
4662 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4663 if test "x$LINE" != x ; then
4664 eval "DEFAULT_$LINE"
4665 else
4666 no_cache=1
4667 fi
4668
4669 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4670
4671fi
4672
4673
4674 eval "$ac_cv_use_snglinst"
4675 if test "$no_cache" != 1; then
4676 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4677 fi
4678
4679 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4680 echo "$ac_t""yes" 1>&6
4681 else
4682 echo "$ac_t""no" 1>&6
4683 fi
4684
4685
4686
4687 enablestring=
4688 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4689echo "configure:4690: checking for --${enablestring:-enable}-mimetype" >&5
4690 no_cache=0
4691 # Check whether --enable-mimetype or --disable-mimetype was given.
4692if test "${enable_mimetype+set}" = set; then
4693 enableval="$enable_mimetype"
4694
4695 if test "$enableval" = yes; then
4696 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4697 else
4698 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4699 fi
4700
4701else
4702
4703 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4711
4712fi
4713
4714
4715 eval "$ac_cv_use_mimetype"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_MIMETYPE" = yes; then
4721 echo "$ac_t""yes" 1>&6
4722 else
4723 echo "$ac_t""no" 1>&6
4724 fi
4725
4726
4727 enablestring=
4728 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4729echo "configure:4730: checking for --${enablestring:-enable}-system_options" >&5
4730 no_cache=0
4731 # Check whether --enable-system_options or --disable-system_options was given.
4732if test "${enable_system_options+set}" = set; then
4733 enableval="$enable_system_options"
4734
4735 if test "$enableval" = yes; then
4736 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4737 else
4738 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4739 fi
4740
4741else
4742
4743 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4744 if test "x$LINE" != x ; then
4745 eval "DEFAULT_$LINE"
4746 else
4747 no_cache=1
4748 fi
4749
4750 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4751
4752fi
4753
4754
4755 eval "$ac_cv_use_system_options"
4756 if test "$no_cache" != 1; then
4757 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4758 fi
4759
4760 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4761 echo "$ac_t""yes" 1>&6
4762 else
4763 echo "$ac_t""no" 1>&6
4764 fi
4765
4766
4767
4768 enablestring=
4769 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4770echo "configure:4771: checking for --${enablestring:-enable}-url" >&5
4771 no_cache=0
4772 # Check whether --enable-url or --disable-url was given.
4773if test "${enable_url+set}" = set; then
4774 enableval="$enable_url"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_url='wxUSE_URL=yes'
4778 else
4779 ac_cv_use_url='wxUSE_URL=no'
4780 fi
4781
4782else
4783
4784 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4792
4793fi
4794
4795
4796 eval "$ac_cv_use_url"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_URL" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
4808 enablestring=
4809 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4810echo "configure:4811: checking for --${enablestring:-enable}-protocol" >&5
4811 no_cache=0
4812 # Check whether --enable-protocol or --disable-protocol was given.
4813if test "${enable_protocol+set}" = set; then
4814 enableval="$enable_protocol"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4818 else
4819 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4820 fi
4821
4822else
4823
4824 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4832
4833fi
4834
4835
4836 eval "$ac_cv_use_protocol"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_PROTOCOL" = yes; then
4842 echo "$ac_t""yes" 1>&6
4843 else
4844 echo "$ac_t""no" 1>&6
4845 fi
4846
4847
4848 enablestring=
4849 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4850echo "configure:4851: checking for --${enablestring:-enable}-protocol_http" >&5
4851 no_cache=0
4852 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4853if test "${enable_protocol_http+set}" = set; then
4854 enableval="$enable_protocol_http"
4855
4856 if test "$enableval" = yes; then
4857 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4858 else
4859 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4860 fi
4861
4862else
4863
4864 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4865 if test "x$LINE" != x ; then
4866 eval "DEFAULT_$LINE"
4867 else
4868 no_cache=1
4869 fi
4870
4871 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4872
4873fi
4874
4875
4876 eval "$ac_cv_use_protocol_http"
4877 if test "$no_cache" != 1; then
4878 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4879 fi
4880
4881 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4882 echo "$ac_t""yes" 1>&6
4883 else
4884 echo "$ac_t""no" 1>&6
4885 fi
4886
4887
4888 enablestring=
4889 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4890echo "configure:4891: checking for --${enablestring:-enable}-protocol_ftp" >&5
4891 no_cache=0
4892 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4893if test "${enable_protocol_ftp+set}" = set; then
4894 enableval="$enable_protocol_ftp"
4895
4896 if test "$enableval" = yes; then
4897 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4898 else
4899 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4900 fi
4901
4902else
4903
4904 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4912
4913fi
4914
4915
4916 eval "$ac_cv_use_protocol_ftp"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4922 echo "$ac_t""yes" 1>&6
4923 else
4924 echo "$ac_t""no" 1>&6
4925 fi
4926
4927
4928 enablestring=
4929 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4930echo "configure:4931: checking for --${enablestring:-enable}-protocol_file" >&5
4931 no_cache=0
4932 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4933if test "${enable_protocol_file+set}" = set; then
4934 enableval="$enable_protocol_file"
4935
4936 if test "$enableval" = yes; then
4937 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4938 else
4939 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4940 fi
4941
4942else
4943
4944 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4952
4953fi
4954
4955
4956 eval "$ac_cv_use_protocol_file"
4957 if test "$no_cache" != 1; then
4958 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4959 fi
4960
4961 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4962 echo "$ac_t""yes" 1>&6
4963 else
4964 echo "$ac_t""no" 1>&6
4965 fi
4966
4967
4968
4969
4970
4971 enablestring=
4972 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4973echo "configure:4974: checking for --${enablestring:-enable}-threads" >&5
4974 no_cache=0
4975 # Check whether --enable-threads or --disable-threads was given.
4976if test "${enable_threads+set}" = set; then
4977 enableval="$enable_threads"
4978
4979 if test "$enableval" = yes; then
4980 ac_cv_use_threads='wxUSE_THREADS=yes'
4981 else
4982 ac_cv_use_threads='wxUSE_THREADS=no'
4983 fi
4984
4985else
4986
4987 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4995
4996fi
4997
4998
4999 eval "$ac_cv_use_threads"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_THREADS" = yes; then
5005 echo "$ac_t""yes" 1>&6
5006 else
5007 echo "$ac_t""no" 1>&6
5008 fi
5009
5010
5011if test "$wxUSE_GUI" = "yes"; then
5012
5013
5014
5015 enablestring=
5016 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5017echo "configure:5018: checking for --${enablestring:-enable}-docview" >&5
5018 no_cache=0
5019 # Check whether --enable-docview or --disable-docview was given.
5020if test "${enable_docview+set}" = set; then
5021 enableval="$enable_docview"
5022
5023 if test "$enableval" = yes; then
5024 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5025 else
5026 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5027 fi
5028
5029else
5030
5031 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5032 if test "x$LINE" != x ; then
5033 eval "DEFAULT_$LINE"
5034 else
5035 no_cache=1
5036 fi
5037
5038 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5039
5040fi
5041
5042
5043 eval "$ac_cv_use_docview"
5044 if test "$no_cache" != 1; then
5045 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5046 fi
5047
5048 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5049 echo "$ac_t""yes" 1>&6
5050 else
5051 echo "$ac_t""no" 1>&6
5052 fi
5053
5054
5055 enablestring=
5056 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5057echo "configure:5058: checking for --${enablestring:-enable}-help" >&5
5058 no_cache=0
5059 # Check whether --enable-help or --disable-help was given.
5060if test "${enable_help+set}" = set; then
5061 enableval="$enable_help"
5062
5063 if test "$enableval" = yes; then
5064 ac_cv_use_help='wxUSE_HELP=yes'
5065 else
5066 ac_cv_use_help='wxUSE_HELP=no'
5067 fi
5068
5069else
5070
5071 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5072 if test "x$LINE" != x ; then
5073 eval "DEFAULT_$LINE"
5074 else
5075 no_cache=1
5076 fi
5077
5078 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5079
5080fi
5081
5082
5083 eval "$ac_cv_use_help"
5084 if test "$no_cache" != 1; then
5085 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5086 fi
5087
5088 if test "$wxUSE_HELP" = yes; then
5089 echo "$ac_t""yes" 1>&6
5090 else
5091 echo "$ac_t""no" 1>&6
5092 fi
5093
5094
5095 enablestring=
5096 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5097echo "configure:5098: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5098 no_cache=0
5099 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5100if test "${enable_mshtmlhelp+set}" = set; then
5101 enableval="$enable_mshtmlhelp"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5105 else
5106 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5119
5120fi
5121
5122
5123 eval "$ac_cv_use_mshtmlhelp"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_MS_HTML_HELP" = yes; then
5129 echo "$ac_t""yes" 1>&6
5130 else
5131 echo "$ac_t""no" 1>&6
5132 fi
5133
5134
5135 enablestring=
5136 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5137echo "configure:5138: checking for --${enablestring:-enable}-html" >&5
5138 no_cache=0
5139 # Check whether --enable-html or --disable-html was given.
5140if test "${enable_html+set}" = set; then
5141 enableval="$enable_html"
5142
5143 if test "$enableval" = yes; then
5144 ac_cv_use_html='wxUSE_HTML=yes'
5145 else
5146 ac_cv_use_html='wxUSE_HTML=no'
5147 fi
5148
5149else
5150
5151 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
5158 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5159
5160fi
5161
5162
5163 eval "$ac_cv_use_html"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_HTML" = yes; then
5169 echo "$ac_t""yes" 1>&6
5170 else
5171 echo "$ac_t""no" 1>&6
5172 fi
5173
5174
5175 enablestring=
5176 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5177echo "configure:5178: checking for --${enablestring:-enable}-htmlhelp" >&5
5178 no_cache=0
5179 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5180if test "${enable_htmlhelp+set}" = set; then
5181 enableval="$enable_htmlhelp"
5182
5183 if test "$enableval" = yes; then
5184 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5185 else
5186 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5187 fi
5188
5189else
5190
5191 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5199
5200fi
5201
5202
5203 eval "$ac_cv_use_htmlhelp"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_WXHTML_HELP" = yes; then
5209 echo "$ac_t""yes" 1>&6
5210 else
5211 echo "$ac_t""no" 1>&6
5212 fi
5213
5214
5215 enablestring=
5216 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5217echo "configure:5218: checking for --${enablestring:-enable}-constraints" >&5
5218 no_cache=0
5219 # Check whether --enable-constraints or --disable-constraints was given.
5220if test "${enable_constraints+set}" = set; then
5221 enableval="$enable_constraints"
5222
5223 if test "$enableval" = yes; then
5224 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5225 else
5226 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5227 fi
5228
5229else
5230
5231 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5239
5240fi
5241
5242
5243 eval "$ac_cv_use_constraints"
5244 if test "$no_cache" != 1; then
5245 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5246 fi
5247
5248 if test "$wxUSE_CONSTRAINTS" = yes; then
5249 echo "$ac_t""yes" 1>&6
5250 else
5251 echo "$ac_t""no" 1>&6
5252 fi
5253
5254
5255 enablestring=
5256 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5257echo "configure:5258: checking for --${enablestring:-enable}-printarch" >&5
5258 no_cache=0
5259 # Check whether --enable-printarch or --disable-printarch was given.
5260if test "${enable_printarch+set}" = set; then
5261 enableval="$enable_printarch"
5262
5263 if test "$enableval" = yes; then
5264 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5265 else
5266 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5267 fi
5268
5269else
5270
5271 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5279
5280fi
5281
5282
5283 eval "$ac_cv_use_printarch"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5289 echo "$ac_t""yes" 1>&6
5290 else
5291 echo "$ac_t""no" 1>&6
5292 fi
5293
5294
5295 enablestring=
5296 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5297echo "configure:5298: checking for --${enablestring:-enable}-mdi" >&5
5298 no_cache=0
5299 # Check whether --enable-mdi or --disable-mdi was given.
5300if test "${enable_mdi+set}" = set; then
5301 enableval="$enable_mdi"
5302
5303 if test "$enableval" = yes; then
5304 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5305 else
5306 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5307 fi
5308
5309else
5310
5311 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
5318 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5319
5320fi
5321
5322
5323 eval "$ac_cv_use_mdi"
5324 if test "$no_cache" != 1; then
5325 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5326 fi
5327
5328 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5329 echo "$ac_t""yes" 1>&6
5330 else
5331 echo "$ac_t""no" 1>&6
5332 fi
5333
5334
5335 enablestring=
5336 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5337echo "configure:5338: checking for --${enablestring:-enable}-loggui" >&5
5338 no_cache=0
5339 # Check whether --enable-loggui or --disable-loggui was given.
5340if test "${enable_loggui+set}" = set; then
5341 enableval="$enable_loggui"
5342
5343 if test "$enableval" = yes; then
5344 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5345 else
5346 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5347 fi
5348
5349else
5350
5351 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5359
5360fi
5361
5362
5363 eval "$ac_cv_use_loggui"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_LOGGUI" = yes; then
5369 echo "$ac_t""yes" 1>&6
5370 else
5371 echo "$ac_t""no" 1>&6
5372 fi
5373
5374
5375 enablestring=
5376 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5377echo "configure:5378: checking for --${enablestring:-enable}-logwin" >&5
5378 no_cache=0
5379 # Check whether --enable-logwin or --disable-logwin was given.
5380if test "${enable_logwin+set}" = set; then
5381 enableval="$enable_logwin"
5382
5383 if test "$enableval" = yes; then
5384 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5385 else
5386 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5387 fi
5388
5389else
5390
5391 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5399
5400fi
5401
5402
5403 eval "$ac_cv_use_logwin"
5404 if test "$no_cache" != 1; then
5405 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5406 fi
5407
5408 if test "$wxUSE_LOGWINDOW" = yes; then
5409 echo "$ac_t""yes" 1>&6
5410 else
5411 echo "$ac_t""no" 1>&6
5412 fi
5413
5414
5415 enablestring=
5416 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5417echo "configure:5418: checking for --${enablestring:-enable}-logdialog" >&5
5418 no_cache=0
5419 # Check whether --enable-logdialog or --disable-logdialog was given.
5420if test "${enable_logdialog+set}" = set; then
5421 enableval="$enable_logdialog"
5422
5423 if test "$enableval" = yes; then
5424 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5425 else
5426 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5427 fi
5428
5429else
5430
5431 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5439
5440fi
5441
5442
5443 eval "$ac_cv_use_logdialog"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_LOGDIALOG" = yes; then
5449 echo "$ac_t""yes" 1>&6
5450 else
5451 echo "$ac_t""no" 1>&6
5452 fi
5453
5454
5455
5456 enablestring=
5457 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5458echo "configure:5459: checking for --${enablestring:-enable}-postscript" >&5
5459 no_cache=0
5460 # Check whether --enable-postscript or --disable-postscript was given.
5461if test "${enable_postscript+set}" = set; then
5462 enableval="$enable_postscript"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5466 else
5467 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5480
5481fi
5482
5483
5484 eval "$ac_cv_use_postscript"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_POSTSCRIPT" = yes; then
5490 echo "$ac_t""yes" 1>&6
5491 else
5492 echo "$ac_t""no" 1>&6
5493 fi
5494
5495
5496
5497
5498
5499 enablestring=
5500 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5501echo "configure:5502: checking for --${enablestring:-enable}-resources" >&5
5502 no_cache=0
5503 # Check whether --enable-resources or --disable-resources was given.
5504if test "${enable_resources+set}" = set; then
5505 enableval="$enable_resources"
5506
5507 if test "$enableval" = yes; then
5508 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5509 else
5510 ac_cv_use_resources='wxUSE_RESOURCES=no'
5511 fi
5512
5513else
5514
5515 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5523
5524fi
5525
5526
5527 eval "$ac_cv_use_resources"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_RESOURCES" = yes; then
5533 echo "$ac_t""yes" 1>&6
5534 else
5535 echo "$ac_t""no" 1>&6
5536 fi
5537
5538
5539
5540 enablestring=
5541 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5542echo "configure:5543: checking for --${enablestring:-enable}-xresources" >&5
5543 no_cache=0
5544 # Check whether --enable-xresources or --disable-xresources was given.
5545if test "${enable_xresources+set}" = set; then
5546 enableval="$enable_xresources"
5547
5548 if test "$enableval" = yes; then
5549 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5550 else
5551 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5552 fi
5553
5554else
5555
5556 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
5563 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5564
5565fi
5566
5567
5568 eval "$ac_cv_use_xresources"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_X_RESOURCES" = yes; then
5574 echo "$ac_t""yes" 1>&6
5575 else
5576 echo "$ac_t""no" 1>&6
5577 fi
5578
5579
5580
5581
5582 enablestring=
5583 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5584echo "configure:5585: checking for --${enablestring:-enable}-clipboard" >&5
5585 no_cache=0
5586 # Check whether --enable-clipboard or --disable-clipboard was given.
5587if test "${enable_clipboard+set}" = set; then
5588 enableval="$enable_clipboard"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5592 else
5593 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5594 fi
5595
5596else
5597
5598 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5606
5607fi
5608
5609
5610 eval "$ac_cv_use_clipboard"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_CLIPBOARD" = yes; then
5616 echo "$ac_t""yes" 1>&6
5617 else
5618 echo "$ac_t""no" 1>&6
5619 fi
5620
5621
5622 enablestring=
5623 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5624echo "configure:5625: checking for --${enablestring:-enable}-dnd" >&5
5625 no_cache=0
5626 # Check whether --enable-dnd or --disable-dnd was given.
5627if test "${enable_dnd+set}" = set; then
5628 enableval="$enable_dnd"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5632 else
5633 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5634 fi
5635
5636else
5637
5638 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5646
5647fi
5648
5649
5650 eval "$ac_cv_use_dnd"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5656 echo "$ac_t""yes" 1>&6
5657 else
5658 echo "$ac_t""no" 1>&6
5659 fi
5660
5661
5662 enablestring=
5663 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5664echo "configure:5665: checking for --${enablestring:-enable}-metafile" >&5
5665 no_cache=0
5666 # Check whether --enable-metafile or --disable-metafile was given.
5667if test "${enable_metafile+set}" = set; then
5668 enableval="$enable_metafile"
5669
5670 if test "$enableval" = yes; then
5671 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5672 else
5673 ac_cv_use_metafile='wxUSE_METAFILE=no'
5674 fi
5675
5676else
5677
5678 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5679 if test "x$LINE" != x ; then
5680 eval "DEFAULT_$LINE"
5681 else
5682 no_cache=1
5683 fi
5684
5685 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5686
5687fi
5688
5689
5690 eval "$ac_cv_use_metafile"
5691 if test "$no_cache" != 1; then
5692 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5693 fi
5694
5695 if test "$wxUSE_METAFILE" = yes; then
5696 echo "$ac_t""yes" 1>&6
5697 else
5698 echo "$ac_t""no" 1>&6
5699 fi
5700
5701
5702
5703
5704
5705 enablestring=
5706 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5707echo "configure:5708: checking for --${enablestring:-enable}-controls" >&5
5708 no_cache=0
5709 # Check whether --enable-controls or --disable-controls was given.
5710if test "${enable_controls+set}" = set; then
5711 enableval="$enable_controls"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5715 else
5716 ac_cv_use_controls='wxUSE_CONTROLS=no'
5717 fi
5718
5719else
5720
5721 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5729
5730fi
5731
5732
5733 eval "$ac_cv_use_controls"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_CONTROLS" = yes; then
5739 echo "$ac_t""yes" 1>&6
5740 else
5741 echo "$ac_t""no" 1>&6
5742 fi
5743
5744
5745if test "$wxUSE_CONTROLS" = "yes"; then
5746 DEFAULT_wxUSE_ACCEL=yes
5747 DEFAULT_wxUSE_BMPBUTTON=yes
5748 DEFAULT_wxUSE_BUTTON=yes
5749 DEFAULT_wxUSE_CALCTRL=no
5750 DEFAULT_wxUSE_CARET=yes
5751 DEFAULT_wxUSE_COMBOBOX=yes
5752 DEFAULT_wxUSE_CHECKBOX=yes
5753 DEFAULT_wxUSE_CHECKLISTBOX=yes
5754 DEFAULT_wxUSE_CHOICE=yes
5755 DEFAULT_wxUSE_GAUGE=yes
5756 DEFAULT_wxUSE_GRID=yes
5757 DEFAULT_wxUSE_IMAGLIST=yes
5758 DEFAULT_wxUSE_LISTBOX=yes
5759 DEFAULT_wxUSE_LISTCTRL=yes
5760 DEFAULT_wxUSE_NOTEBOOK=yes
5761 DEFAULT_wxUSE_RADIOBOX=yes
5762 DEFAULT_wxUSE_RADIOBTN=yes
5763 DEFAULT_wxUSE_SASH=yes
5764 DEFAULT_wxUSE_SCROLLBAR=yes
5765 DEFAULT_wxUSE_SLIDER=yes
5766 DEFAULT_wxUSE_SPINBTN=yes
5767 DEFAULT_wxUSE_SPINCTRL=yes
5768 DEFAULT_wxUSE_SPLITTER=yes
5769 DEFAULT_wxUSE_STATBMP=yes
5770 DEFAULT_wxUSE_STATBOX=yes
5771 DEFAULT_wxUSE_STATLINE=yes
5772 DEFAULT_wxUSE_STATUSBAR=yes
5773 DEFAULT_wxUSE_TAB_DIALOG=yes
5774 DEFAULT_wxUSE_TOGGLEBTN=yes
5775 DEFAULT_wxUSE_TOOLBAR=yes
5776 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5777 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5778 DEFAULT_wxUSE_TOOLTIPS=yes
5779 DEFAULT_wxUSE_TREECTRL=yes
5780 DEFAULT_wxUSE_POPUPWIN=yes
5781 DEFAULT_wxUSE_TIPWINDOW=yes
5782elif test "$wxUSE_CONTROLS" = "no"; then
5783 DEFAULT_wxUSE_ACCEL=no
5784 DEFAULT_wxUSE_BMPBUTTON=no
5785 DEFAULT_wxUSE_BUTTON=no
5786 DEFAULT_wxUSE_CALCTRL=no
5787 DEFAULT_wxUSE_CARET=no
5788 DEFAULT_wxUSE_COMBOBOX=no
5789 DEFAULT_wxUSE_CHECKBOX=no
5790 DEFAULT_wxUSE_CHECKLISTBOX=no
5791 DEFAULT_wxUSE_CHOICE=no
5792 DEFAULT_wxUSE_GAUGE=no
5793 DEFAULT_wxUSE_GRID=no
5794 DEFAULT_wxUSE_IMAGLIST=no
5795 DEFAULT_wxUSE_LISTBOX=no
5796 DEFAULT_wxUSE_LISTCTRL=no
5797 DEFAULT_wxUSE_NOTEBOOK=no
5798 DEFAULT_wxUSE_RADIOBOX=no
5799 DEFAULT_wxUSE_RADIOBTN=no
5800 DEFAULT_wxUSE_SASH=no
5801 DEFAULT_wxUSE_SCROLLBAR=no
5802 DEFAULT_wxUSE_SLIDER=no
5803 DEFAULT_wxUSE_SPINBTN=no
5804 DEFAULT_wxUSE_SPINCTRL=no
5805 DEFAULT_wxUSE_SPLITTER=no
5806 DEFAULT_wxUSE_STATBMP=no
5807 DEFAULT_wxUSE_STATBOX=no
5808 DEFAULT_wxUSE_STATLINE=no
5809 DEFAULT_wxUSE_STATUSBAR=no
5810 DEFAULT_wxUSE_TAB_DIALOG=no
5811 DEFAULT_wxUSE_TOGGLEBTN=no
5812 DEFAULT_wxUSE_TOOLBAR=no
5813 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5814 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5815 DEFAULT_wxUSE_TOOLTIPS=no
5816 DEFAULT_wxUSE_TREECTRL=no
5817 DEFAULT_wxUSE_POPUPWIN=no
5818 DEFAULT_wxUSE_TIPWINDOW=no
5819fi
5820
5821## FIXME: This is a blatant hack
5822if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5823 wxUSE_PRINTING_ARCHITECTURE=no
5824 wxUSE_HELP=no
5825 wxUSE_CLIPBOARD=no
5826 wxUSE_DRAG_AND_DROP=no
5827 wxUSE_DATAOBJ=no
5828 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5829 DEFAULT_wxUSE_GAUGE=no
5830 DEFAULT_wxUSE_SCROLLBAR=no
5831 DEFAULT_wxUSE_SLIDER=no
5832 DEFAULT_wxUSE_COMBOBOX=no
5833 DEFAULT_wxUSE_CALCTRL=no
5834 DEFAULT_wxUSE_SPINBTN=no
5835 DEFAULT_wxUSE_SPINCTRL=no
5836 DEFAULT_wxUSE_TOOLTIPS=no
5837 DEFAULT_wxUSE_COLOURDLG=no
5838 DEFAULT_wxUSE_DRAGIMAGE=no
5839 DEFAULT_wxUSE_FINDREPLDLG=no
5840 DEFAULT_wxUSE_FONTDLG=no
5841 DEFAULT_wxUSE_GRID=no
5842 DEFAULT_wxUSE_NUMBERDLG=no
5843 DEFAULT_wxUSE_PROGRESSDLG=no
5844 DEFAULT_wxUSE_SASH=no
5845 DEFAULT_wxUSE_SPLITTER=no
5846 DEFAULT_wxUSE_WIZARDDLG=no
5847 DEFAULT_wxUSE_SPLITTER=no
5848 DEFAULT_wxUSE_STARTUP_TIPS=no
5849fi
5850
5851
5852 enablestring=
5853 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5854echo "configure:5855: checking for --${enablestring:-enable}-accel" >&5
5855 no_cache=0
5856 # Check whether --enable-accel or --disable-accel was given.
5857if test "${enable_accel+set}" = set; then
5858 enableval="$enable_accel"
5859
5860 if test "$enableval" = yes; then
5861 ac_cv_use_accel='wxUSE_ACCEL=yes'
5862 else
5863 ac_cv_use_accel='wxUSE_ACCEL=no'
5864 fi
5865
5866else
5867
5868 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5876
5877fi
5878
5879
5880 eval "$ac_cv_use_accel"
5881 if test "$no_cache" != 1; then
5882 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5883 fi
5884
5885 if test "$wxUSE_ACCEL" = yes; then
5886 echo "$ac_t""yes" 1>&6
5887 else
5888 echo "$ac_t""no" 1>&6
5889 fi
5890
5891
5892 enablestring=
5893 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5894echo "configure:5895: checking for --${enablestring:-enable}-button" >&5
5895 no_cache=0
5896 # Check whether --enable-button or --disable-button was given.
5897if test "${enable_button+set}" = set; then
5898 enableval="$enable_button"
5899
5900 if test "$enableval" = yes; then
5901 ac_cv_use_button='wxUSE_BUTTON=yes'
5902 else
5903 ac_cv_use_button='wxUSE_BUTTON=no'
5904 fi
5905
5906else
5907
5908 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5909 if test "x$LINE" != x ; then
5910 eval "DEFAULT_$LINE"
5911 else
5912 no_cache=1
5913 fi
5914
5915 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5916
5917fi
5918
5919
5920 eval "$ac_cv_use_button"
5921 if test "$no_cache" != 1; then
5922 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5923 fi
5924
5925 if test "$wxUSE_BUTTON" = yes; then
5926 echo "$ac_t""yes" 1>&6
5927 else
5928 echo "$ac_t""no" 1>&6
5929 fi
5930
5931
5932 enablestring=
5933 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5934echo "configure:5935: checking for --${enablestring:-enable}-bmpbutton" >&5
5935 no_cache=0
5936 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5937if test "${enable_bmpbutton+set}" = set; then
5938 enableval="$enable_bmpbutton"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5942 else
5943 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5956
5957fi
5958
5959
5960 eval "$ac_cv_use_bmpbutton"
5961 if test "$no_cache" != 1; then
5962 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5963 fi
5964
5965 if test "$wxUSE_BMPBUTTON" = yes; then
5966 echo "$ac_t""yes" 1>&6
5967 else
5968 echo "$ac_t""no" 1>&6
5969 fi
5970
5971
5972 enablestring=
5973 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5974echo "configure:5975: checking for --${enablestring:-enable}-calendar" >&5
5975 no_cache=0
5976 # Check whether --enable-calendar or --disable-calendar was given.
5977if test "${enable_calendar+set}" = set; then
5978 enableval="$enable_calendar"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5982 else
5983 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5996
5997fi
5998
5999
6000 eval "$ac_cv_use_calendar"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_CALCTRL" = yes; then
6006 echo "$ac_t""yes" 1>&6
6007 else
6008 echo "$ac_t""no" 1>&6
6009 fi
6010
6011
6012 enablestring=
6013 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6014echo "configure:6015: checking for --${enablestring:-enable}-caret" >&5
6015 no_cache=0
6016 # Check whether --enable-caret or --disable-caret was given.
6017if test "${enable_caret+set}" = set; then
6018 enableval="$enable_caret"
6019
6020 if test "$enableval" = yes; then
6021 ac_cv_use_caret='wxUSE_CARET=yes'
6022 else
6023 ac_cv_use_caret='wxUSE_CARET=no'
6024 fi
6025
6026else
6027
6028 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6036
6037fi
6038
6039
6040 eval "$ac_cv_use_caret"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_CARET" = yes; then
6046 echo "$ac_t""yes" 1>&6
6047 else
6048 echo "$ac_t""no" 1>&6
6049 fi
6050
6051
6052 enablestring=
6053 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6054echo "configure:6055: checking for --${enablestring:-enable}-checkbox" >&5
6055 no_cache=0
6056 # Check whether --enable-checkbox or --disable-checkbox was given.
6057if test "${enable_checkbox+set}" = set; then
6058 enableval="$enable_checkbox"
6059
6060 if test "$enableval" = yes; then
6061 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6062 else
6063 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6064 fi
6065
6066else
6067
6068 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6076
6077fi
6078
6079
6080 eval "$ac_cv_use_checkbox"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_CHECKBOX" = yes; then
6086 echo "$ac_t""yes" 1>&6
6087 else
6088 echo "$ac_t""no" 1>&6
6089 fi
6090
6091
6092 enablestring=
6093 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6094echo "configure:6095: checking for --${enablestring:-enable}-checklst" >&5
6095 no_cache=0
6096 # Check whether --enable-checklst or --disable-checklst was given.
6097if test "${enable_checklst+set}" = set; then
6098 enableval="$enable_checklst"
6099
6100 if test "$enableval" = yes; then
6101 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6102 else
6103 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6104 fi
6105
6106else
6107
6108 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6116
6117fi
6118
6119
6120 eval "$ac_cv_use_checklst"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_CHECKLST" = yes; then
6126 echo "$ac_t""yes" 1>&6
6127 else
6128 echo "$ac_t""no" 1>&6
6129 fi
6130
6131
6132 enablestring=
6133 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6134echo "configure:6135: checking for --${enablestring:-enable}-choice" >&5
6135 no_cache=0
6136 # Check whether --enable-choice or --disable-choice was given.
6137if test "${enable_choice+set}" = set; then
6138 enableval="$enable_choice"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_choice='wxUSE_CHOICE=yes'
6142 else
6143 ac_cv_use_choice='wxUSE_CHOICE=no'
6144 fi
6145
6146else
6147
6148 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6156
6157fi
6158
6159
6160 eval "$ac_cv_use_choice"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_CHOICE" = yes; then
6166 echo "$ac_t""yes" 1>&6
6167 else
6168 echo "$ac_t""no" 1>&6
6169 fi
6170
6171
6172 enablestring=
6173 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6174echo "configure:6175: checking for --${enablestring:-enable}-combobox" >&5
6175 no_cache=0
6176 # Check whether --enable-combobox or --disable-combobox was given.
6177if test "${enable_combobox+set}" = set; then
6178 enableval="$enable_combobox"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6182 else
6183 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6196
6197fi
6198
6199
6200 eval "$ac_cv_use_combobox"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_COMBOBOX" = yes; then
6206 echo "$ac_t""yes" 1>&6
6207 else
6208 echo "$ac_t""no" 1>&6
6209 fi
6210
6211
6212 enablestring=
6213 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6214echo "configure:6215: checking for --${enablestring:-enable}-display" >&5
6215 no_cache=0
6216 # Check whether --enable-display or --disable-display was given.
6217if test "${enable_display+set}" = set; then
6218 enableval="$enable_display"
6219
6220 if test "$enableval" = yes; then
6221 ac_cv_use_display='wxUSE_DISPLAY=yes'
6222 else
6223 ac_cv_use_display='wxUSE_DISPLAY=no'
6224 fi
6225
6226else
6227
6228 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
6235 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6236
6237fi
6238
6239
6240 eval "$ac_cv_use_display"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_DISPLAY" = yes; then
6246 echo "$ac_t""yes" 1>&6
6247 else
6248 echo "$ac_t""no" 1>&6
6249 fi
6250
6251
6252 enablestring=
6253 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6254echo "configure:6255: checking for --${enablestring:-enable}-gauge" >&5
6255 no_cache=0
6256 # Check whether --enable-gauge or --disable-gauge was given.
6257if test "${enable_gauge+set}" = set; then
6258 enableval="$enable_gauge"
6259
6260 if test "$enableval" = yes; then
6261 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6262 else
6263 ac_cv_use_gauge='wxUSE_GAUGE=no'
6264 fi
6265
6266else
6267
6268 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 else
6272 no_cache=1
6273 fi
6274
6275 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6276
6277fi
6278
6279
6280 eval "$ac_cv_use_gauge"
6281 if test "$no_cache" != 1; then
6282 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6283 fi
6284
6285 if test "$wxUSE_GAUGE" = yes; then
6286 echo "$ac_t""yes" 1>&6
6287 else
6288 echo "$ac_t""no" 1>&6
6289 fi
6290
6291
6292 enablestring=
6293 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6294echo "configure:6295: checking for --${enablestring:-enable}-grid" >&5
6295 no_cache=0
6296 # Check whether --enable-grid or --disable-grid was given.
6297if test "${enable_grid+set}" = set; then
6298 enableval="$enable_grid"
6299
6300 if test "$enableval" = yes; then
6301 ac_cv_use_grid='wxUSE_GRID=yes'
6302 else
6303 ac_cv_use_grid='wxUSE_GRID=no'
6304 fi
6305
6306else
6307
6308 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6316
6317fi
6318
6319
6320 eval "$ac_cv_use_grid"
6321 if test "$no_cache" != 1; then
6322 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6323 fi
6324
6325 if test "$wxUSE_GRID" = yes; then
6326 echo "$ac_t""yes" 1>&6
6327 else
6328 echo "$ac_t""no" 1>&6
6329 fi
6330
6331
6332 enablestring=
6333 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6334echo "configure:6335: checking for --${enablestring:-enable}-imaglist" >&5
6335 no_cache=0
6336 # Check whether --enable-imaglist or --disable-imaglist was given.
6337if test "${enable_imaglist+set}" = set; then
6338 enableval="$enable_imaglist"
6339
6340 if test "$enableval" = yes; then
6341 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6342 else
6343 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6344 fi
6345
6346else
6347
6348 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6356
6357fi
6358
6359
6360 eval "$ac_cv_use_imaglist"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_IMAGLIST" = yes; then
6366 echo "$ac_t""yes" 1>&6
6367 else
6368 echo "$ac_t""no" 1>&6
6369 fi
6370
6371
6372 enablestring=
6373 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6374echo "configure:6375: checking for --${enablestring:-enable}-listbox" >&5
6375 no_cache=0
6376 # Check whether --enable-listbox or --disable-listbox was given.
6377if test "${enable_listbox+set}" = set; then
6378 enableval="$enable_listbox"
6379
6380 if test "$enableval" = yes; then
6381 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6382 else
6383 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6384 fi
6385
6386else
6387
6388 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6396
6397fi
6398
6399
6400 eval "$ac_cv_use_listbox"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_LISTBOX" = yes; then
6406 echo "$ac_t""yes" 1>&6
6407 else
6408 echo "$ac_t""no" 1>&6
6409 fi
6410
6411
6412 enablestring=
6413 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6414echo "configure:6415: checking for --${enablestring:-enable}-listctrl" >&5
6415 no_cache=0
6416 # Check whether --enable-listctrl or --disable-listctrl was given.
6417if test "${enable_listctrl+set}" = set; then
6418 enableval="$enable_listctrl"
6419
6420 if test "$enableval" = yes; then
6421 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6422 else
6423 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6424 fi
6425
6426else
6427
6428 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6436
6437fi
6438
6439
6440 eval "$ac_cv_use_listctrl"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_LISTCTRL" = yes; then
6446 echo "$ac_t""yes" 1>&6
6447 else
6448 echo "$ac_t""no" 1>&6
6449 fi
6450
6451
6452 enablestring=
6453 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6454echo "configure:6455: checking for --${enablestring:-enable}-notebook" >&5
6455 no_cache=0
6456 # Check whether --enable-notebook or --disable-notebook was given.
6457if test "${enable_notebook+set}" = set; then
6458 enableval="$enable_notebook"
6459
6460 if test "$enableval" = yes; then
6461 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6462 else
6463 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6464 fi
6465
6466else
6467
6468 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6476
6477fi
6478
6479
6480 eval "$ac_cv_use_notebook"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_NOTEBOOK" = yes; then
6486 echo "$ac_t""yes" 1>&6
6487 else
6488 echo "$ac_t""no" 1>&6
6489 fi
6490
6491
6492 enablestring=
6493 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6494echo "configure:6495: checking for --${enablestring:-enable}-radiobox" >&5
6495 no_cache=0
6496 # Check whether --enable-radiobox or --disable-radiobox was given.
6497if test "${enable_radiobox+set}" = set; then
6498 enableval="$enable_radiobox"
6499
6500 if test "$enableval" = yes; then
6501 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6502 else
6503 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6504 fi
6505
6506else
6507
6508 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6516
6517fi
6518
6519
6520 eval "$ac_cv_use_radiobox"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_RADIOBOX" = yes; then
6526 echo "$ac_t""yes" 1>&6
6527 else
6528 echo "$ac_t""no" 1>&6
6529 fi
6530
6531
6532 enablestring=
6533 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6534echo "configure:6535: checking for --${enablestring:-enable}-radiobtn" >&5
6535 no_cache=0
6536 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6537if test "${enable_radiobtn+set}" = set; then
6538 enableval="$enable_radiobtn"
6539
6540 if test "$enableval" = yes; then
6541 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6542 else
6543 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6544 fi
6545
6546else
6547
6548 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6556
6557fi
6558
6559
6560 eval "$ac_cv_use_radiobtn"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_RADIOBTN" = yes; then
6566 echo "$ac_t""yes" 1>&6
6567 else
6568 echo "$ac_t""no" 1>&6
6569 fi
6570
6571
6572 enablestring=
6573 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6574echo "configure:6575: checking for --${enablestring:-enable}-sash" >&5
6575 no_cache=0
6576 # Check whether --enable-sash or --disable-sash was given.
6577if test "${enable_sash+set}" = set; then
6578 enableval="$enable_sash"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_sash='wxUSE_SASH=yes'
6582 else
6583 ac_cv_use_sash='wxUSE_SASH=no'
6584 fi
6585
6586else
6587
6588 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6596
6597fi
6598
6599
6600 eval "$ac_cv_use_sash"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_SASH" = yes; then
6606 echo "$ac_t""yes" 1>&6
6607 else
6608 echo "$ac_t""no" 1>&6
6609 fi
6610
6611
6612 enablestring=
6613 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6614echo "configure:6615: checking for --${enablestring:-enable}-scrollbar" >&5
6615 no_cache=0
6616 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6617if test "${enable_scrollbar+set}" = set; then
6618 enableval="$enable_scrollbar"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6622 else
6623 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_SCROLLBAR" ${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_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6636
6637fi
6638
6639
6640 eval "$ac_cv_use_scrollbar"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_SCROLLBAR" = yes; then
6646 echo "$ac_t""yes" 1>&6
6647 else
6648 echo "$ac_t""no" 1>&6
6649 fi
6650
6651
6652 enablestring=
6653 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6654echo "configure:6655: checking for --${enablestring:-enable}-slider" >&5
6655 no_cache=0
6656 # Check whether --enable-slider or --disable-slider was given.
6657if test "${enable_slider+set}" = set; then
6658 enableval="$enable_slider"
6659
6660 if test "$enableval" = yes; then
6661 ac_cv_use_slider='wxUSE_SLIDER=yes'
6662 else
6663 ac_cv_use_slider='wxUSE_SLIDER=no'
6664 fi
6665
6666else
6667
6668 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6676
6677fi
6678
6679
6680 eval "$ac_cv_use_slider"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_SLIDER" = yes; then
6686 echo "$ac_t""yes" 1>&6
6687 else
6688 echo "$ac_t""no" 1>&6
6689 fi
6690
6691
6692 enablestring=
6693 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6694echo "configure:6695: checking for --${enablestring:-enable}-spinbtn" >&5
6695 no_cache=0
6696 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6697if test "${enable_spinbtn+set}" = set; then
6698 enableval="$enable_spinbtn"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6702 else
6703 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6704 fi
6705
6706else
6707
6708 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6716
6717fi
6718
6719
6720 eval "$ac_cv_use_spinbtn"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_SPINBTN" = yes; then
6726 echo "$ac_t""yes" 1>&6
6727 else
6728 echo "$ac_t""no" 1>&6
6729 fi
6730
6731
6732 enablestring=
6733 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6734echo "configure:6735: checking for --${enablestring:-enable}-spinctrl" >&5
6735 no_cache=0
6736 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6737if test "${enable_spinctrl+set}" = set; then
6738 enableval="$enable_spinctrl"
6739
6740 if test "$enableval" = yes; then
6741 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6742 else
6743 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6744 fi
6745
6746else
6747
6748 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6756
6757fi
6758
6759
6760 eval "$ac_cv_use_spinctrl"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_SPINCTRL" = yes; then
6766 echo "$ac_t""yes" 1>&6
6767 else
6768 echo "$ac_t""no" 1>&6
6769 fi
6770
6771
6772 enablestring=
6773 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6774echo "configure:6775: checking for --${enablestring:-enable}-splitter" >&5
6775 no_cache=0
6776 # Check whether --enable-splitter or --disable-splitter was given.
6777if test "${enable_splitter+set}" = set; then
6778 enableval="$enable_splitter"
6779
6780 if test "$enableval" = yes; then
6781 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6782 else
6783 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6784 fi
6785
6786else
6787
6788 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6796
6797fi
6798
6799
6800 eval "$ac_cv_use_splitter"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_SPLITTER" = yes; then
6806 echo "$ac_t""yes" 1>&6
6807 else
6808 echo "$ac_t""no" 1>&6
6809 fi
6810
6811
6812 enablestring=
6813 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6814echo "configure:6815: checking for --${enablestring:-enable}-statbmp" >&5
6815 no_cache=0
6816 # Check whether --enable-statbmp or --disable-statbmp was given.
6817if test "${enable_statbmp+set}" = set; then
6818 enableval="$enable_statbmp"
6819
6820 if test "$enableval" = yes; then
6821 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6822 else
6823 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6824 fi
6825
6826else
6827
6828 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6829 if test "x$LINE" != x ; then
6830 eval "DEFAULT_$LINE"
6831 else
6832 no_cache=1
6833 fi
6834
6835 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6836
6837fi
6838
6839
6840 eval "$ac_cv_use_statbmp"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_STATBMP" = yes; then
6846 echo "$ac_t""yes" 1>&6
6847 else
6848 echo "$ac_t""no" 1>&6
6849 fi
6850
6851
6852 enablestring=
6853 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6854echo "configure:6855: checking for --${enablestring:-enable}-statbox" >&5
6855 no_cache=0
6856 # Check whether --enable-statbox or --disable-statbox was given.
6857if test "${enable_statbox+set}" = set; then
6858 enableval="$enable_statbox"
6859
6860 if test "$enableval" = yes; then
6861 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6862 else
6863 ac_cv_use_statbox='wxUSE_STATBOX=no'
6864 fi
6865
6866else
6867
6868 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6876
6877fi
6878
6879
6880 eval "$ac_cv_use_statbox"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_STATBOX" = yes; then
6886 echo "$ac_t""yes" 1>&6
6887 else
6888 echo "$ac_t""no" 1>&6
6889 fi
6890
6891
6892 enablestring=
6893 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6894echo "configure:6895: checking for --${enablestring:-enable}-statline" >&5
6895 no_cache=0
6896 # Check whether --enable-statline or --disable-statline was given.
6897if test "${enable_statline+set}" = set; then
6898 enableval="$enable_statline"
6899
6900 if test "$enableval" = yes; then
6901 ac_cv_use_statline='wxUSE_STATLINE=yes'
6902 else
6903 ac_cv_use_statline='wxUSE_STATLINE=no'
6904 fi
6905
6906else
6907
6908 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6909 if test "x$LINE" != x ; then
6910 eval "DEFAULT_$LINE"
6911 else
6912 no_cache=1
6913 fi
6914
6915 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6916
6917fi
6918
6919
6920 eval "$ac_cv_use_statline"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_STATLINE" = yes; then
6926 echo "$ac_t""yes" 1>&6
6927 else
6928 echo "$ac_t""no" 1>&6
6929 fi
6930
6931
6932 enablestring=
6933 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6934echo "configure:6935: checking for --${enablestring:-enable}-stattext" >&5
6935 no_cache=0
6936 # Check whether --enable-stattext or --disable-stattext was given.
6937if test "${enable_stattext+set}" = set; then
6938 enableval="$enable_stattext"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6942 else
6943 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6956
6957fi
6958
6959
6960 eval "$ac_cv_use_stattext"
6961 if test "$no_cache" != 1; then
6962 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6963 fi
6964
6965 if test "$wxUSE_STATTEXT" = yes; then
6966 echo "$ac_t""yes" 1>&6
6967 else
6968 echo "$ac_t""no" 1>&6
6969 fi
6970
6971
6972 enablestring=
6973 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6974echo "configure:6975: checking for --${enablestring:-enable}-statusbar" >&5
6975 no_cache=0
6976 # Check whether --enable-statusbar or --disable-statusbar was given.
6977if test "${enable_statusbar+set}" = set; then
6978 enableval="$enable_statusbar"
6979
6980 if test "$enableval" = yes; then
6981 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6982 else
6983 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6984 fi
6985
6986else
6987
6988 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6989 if test "x$LINE" != x ; then
6990 eval "DEFAULT_$LINE"
6991 else
6992 no_cache=1
6993 fi
6994
6995 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6996
6997fi
6998
6999
7000 eval "$ac_cv_use_statusbar"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_STATUSBAR" = yes; then
7006 echo "$ac_t""yes" 1>&6
7007 else
7008 echo "$ac_t""no" 1>&6
7009 fi
7010
7011
7012 enablestring=
7013 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7014echo "configure:7015: checking for --${enablestring:-enable}-tabdialog" >&5
7015 no_cache=0
7016 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7017if test "${enable_tabdialog+set}" = set; then
7018 enableval="$enable_tabdialog"
7019
7020 if test "$enableval" = yes; then
7021 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7022 else
7023 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7024 fi
7025
7026else
7027
7028 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7036
7037fi
7038
7039
7040 eval "$ac_cv_use_tabdialog"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_TABDIALOG" = yes; then
7046 echo "$ac_t""yes" 1>&6
7047 else
7048 echo "$ac_t""no" 1>&6
7049 fi
7050
7051
7052 enablestring=
7053 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7054echo "configure:7055: checking for --${enablestring:-enable}-textctrl" >&5
7055 no_cache=0
7056 # Check whether --enable-textctrl or --disable-textctrl was given.
7057if test "${enable_textctrl+set}" = set; then
7058 enableval="$enable_textctrl"
7059
7060 if test "$enableval" = yes; then
7061 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7062 else
7063 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7064 fi
7065
7066else
7067
7068 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7076
7077fi
7078
7079
7080 eval "$ac_cv_use_textctrl"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_TEXTCTRL" = yes; then
7086 echo "$ac_t""yes" 1>&6
7087 else
7088 echo "$ac_t""no" 1>&6
7089 fi
7090
7091
7092 enablestring=
7093 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7094echo "configure:7095: checking for --${enablestring:-enable}-togglebtn" >&5
7095 no_cache=0
7096 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7097if test "${enable_togglebtn+set}" = set; then
7098 enableval="$enable_togglebtn"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7102 else
7103 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7116
7117fi
7118
7119
7120 eval "$ac_cv_use_togglebtn"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_TOGGLEBTN" = yes; then
7126 echo "$ac_t""yes" 1>&6
7127 else
7128 echo "$ac_t""no" 1>&6
7129 fi
7130
7131
7132 enablestring=
7133 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7134echo "configure:7135: checking for --${enablestring:-enable}-toolbar" >&5
7135 no_cache=0
7136 # Check whether --enable-toolbar or --disable-toolbar was given.
7137if test "${enable_toolbar+set}" = set; then
7138 enableval="$enable_toolbar"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7142 else
7143 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7156
7157fi
7158
7159
7160 eval "$ac_cv_use_toolbar"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TOOLBAR" = yes; then
7166 echo "$ac_t""yes" 1>&6
7167 else
7168 echo "$ac_t""no" 1>&6
7169 fi
7170
7171
7172 enablestring=
7173 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7174echo "configure:7175: checking for --${enablestring:-enable}-tbarnative" >&5
7175 no_cache=0
7176 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7177if test "${enable_tbarnative+set}" = set; then
7178 enableval="$enable_tbarnative"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7182 else
7183 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7196
7197fi
7198
7199
7200 eval "$ac_cv_use_tbarnative"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7206 echo "$ac_t""yes" 1>&6
7207 else
7208 echo "$ac_t""no" 1>&6
7209 fi
7210
7211
7212 enablestring=
7213 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7214echo "configure:7215: checking for --${enablestring:-enable}-tbarsmpl" >&5
7215 no_cache=0
7216 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7217if test "${enable_tbarsmpl+set}" = set; then
7218 enableval="$enable_tbarsmpl"
7219
7220 if test "$enableval" = yes; then
7221 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7222 else
7223 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7224 fi
7225
7226else
7227
7228 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7236
7237fi
7238
7239
7240 eval "$ac_cv_use_tbarsmpl"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7246 echo "$ac_t""yes" 1>&6
7247 else
7248 echo "$ac_t""no" 1>&6
7249 fi
7250
7251
7252 enablestring=
7253 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7254echo "configure:7255: checking for --${enablestring:-enable}-treectrl" >&5
7255 no_cache=0
7256 # Check whether --enable-treectrl or --disable-treectrl was given.
7257if test "${enable_treectrl+set}" = set; then
7258 enableval="$enable_treectrl"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7262 else
7263 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7276
7277fi
7278
7279
7280 eval "$ac_cv_use_treectrl"
7281 if test "$no_cache" != 1; then
7282 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7283 fi
7284
7285 if test "$wxUSE_TREECTRL" = yes; then
7286 echo "$ac_t""yes" 1>&6
7287 else
7288 echo "$ac_t""no" 1>&6
7289 fi
7290
7291
7292 enablestring=
7293 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7294echo "configure:7295: checking for --${enablestring:-enable}-tipwindow" >&5
7295 no_cache=0
7296 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7297if test "${enable_tipwindow+set}" = set; then
7298 enableval="$enable_tipwindow"
7299
7300 if test "$enableval" = yes; then
7301 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7302 else
7303 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7304 fi
7305
7306else
7307
7308 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7309 if test "x$LINE" != x ; then
7310 eval "DEFAULT_$LINE"
7311 else
7312 no_cache=1
7313 fi
7314
7315 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7316
7317fi
7318
7319
7320 eval "$ac_cv_use_tipwindow"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_TIPWINDOW" = yes; then
7326 echo "$ac_t""yes" 1>&6
7327 else
7328 echo "$ac_t""no" 1>&6
7329 fi
7330
7331
7332 enablestring=
7333 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7334echo "configure:7335: checking for --${enablestring:-enable}-popupwin" >&5
7335 no_cache=0
7336 # Check whether --enable-popupwin or --disable-popupwin was given.
7337if test "${enable_popupwin+set}" = set; then
7338 enableval="$enable_popupwin"
7339
7340 if test "$enableval" = yes; then
7341 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7342 else
7343 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7344 fi
7345
7346else
7347
7348 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7356
7357fi
7358
7359
7360 eval "$ac_cv_use_popupwin"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_POPUPWIN" = yes; then
7366 echo "$ac_t""yes" 1>&6
7367 else
7368 echo "$ac_t""no" 1>&6
7369 fi
7370
7371
7372
7373
7374 enablestring=
7375 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7376echo "configure:7377: checking for --${enablestring:-enable}-commondlg" >&5
7377 no_cache=0
7378 # Check whether --enable-commondlg or --disable-commondlg was given.
7379if test "${enable_commondlg+set}" = set; then
7380 enableval="$enable_commondlg"
7381
7382 if test "$enableval" = yes; then
7383 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7384 else
7385 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7386 fi
7387
7388else
7389
7390 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7398
7399fi
7400
7401
7402 eval "$ac_cv_use_commondlg"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_COMMONDLGS" = yes; then
7408 echo "$ac_t""yes" 1>&6
7409 else
7410 echo "$ac_t""no" 1>&6
7411 fi
7412
7413
7414 enablestring=
7415 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7416echo "configure:7417: checking for --${enablestring:-enable}-choicedlg" >&5
7417 no_cache=0
7418 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7419if test "${enable_choicedlg+set}" = set; then
7420 enableval="$enable_choicedlg"
7421
7422 if test "$enableval" = yes; then
7423 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7424 else
7425 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7426 fi
7427
7428else
7429
7430 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7431 if test "x$LINE" != x ; then
7432 eval "DEFAULT_$LINE"
7433 else
7434 no_cache=1
7435 fi
7436
7437 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7438
7439fi
7440
7441
7442 eval "$ac_cv_use_choicedlg"
7443 if test "$no_cache" != 1; then
7444 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7445 fi
7446
7447 if test "$wxUSE_CHOICEDLG" = yes; then
7448 echo "$ac_t""yes" 1>&6
7449 else
7450 echo "$ac_t""no" 1>&6
7451 fi
7452
7453
7454 enablestring=
7455 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7456echo "configure:7457: checking for --${enablestring:-enable}-coldlg" >&5
7457 no_cache=0
7458 # Check whether --enable-coldlg or --disable-coldlg was given.
7459if test "${enable_coldlg+set}" = set; then
7460 enableval="$enable_coldlg"
7461
7462 if test "$enableval" = yes; then
7463 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7464 else
7465 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7466 fi
7467
7468else
7469
7470 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7471 if test "x$LINE" != x ; then
7472 eval "DEFAULT_$LINE"
7473 else
7474 no_cache=1
7475 fi
7476
7477 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7478
7479fi
7480
7481
7482 eval "$ac_cv_use_coldlg"
7483 if test "$no_cache" != 1; then
7484 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7485 fi
7486
7487 if test "$wxUSE_COLOURDLG" = yes; then
7488 echo "$ac_t""yes" 1>&6
7489 else
7490 echo "$ac_t""no" 1>&6
7491 fi
7492
7493
7494 enablestring=
7495 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7496echo "configure:7497: checking for --${enablestring:-enable}-filedlg" >&5
7497 no_cache=0
7498 # Check whether --enable-filedlg or --disable-filedlg was given.
7499if test "${enable_filedlg+set}" = set; then
7500 enableval="$enable_filedlg"
7501
7502 if test "$enableval" = yes; then
7503 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7504 else
7505 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7506 fi
7507
7508else
7509
7510 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7511 if test "x$LINE" != x ; then
7512 eval "DEFAULT_$LINE"
7513 else
7514 no_cache=1
7515 fi
7516
7517 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7518
7519fi
7520
7521
7522 eval "$ac_cv_use_filedlg"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_FILEDLG" = yes; then
7528 echo "$ac_t""yes" 1>&6
7529 else
7530 echo "$ac_t""no" 1>&6
7531 fi
7532
7533
7534 enablestring=
7535 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7536echo "configure:7537: checking for --${enablestring:-enable}-finddlg" >&5
7537 no_cache=0
7538 # Check whether --enable-finddlg or --disable-finddlg was given.
7539if test "${enable_finddlg+set}" = set; then
7540 enableval="$enable_finddlg"
7541
7542 if test "$enableval" = yes; then
7543 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7544 else
7545 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7546 fi
7547
7548else
7549
7550 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7551 if test "x$LINE" != x ; then
7552 eval "DEFAULT_$LINE"
7553 else
7554 no_cache=1
7555 fi
7556
7557 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7558
7559fi
7560
7561
7562 eval "$ac_cv_use_finddlg"
7563 if test "$no_cache" != 1; then
7564 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7565 fi
7566
7567 if test "$wxUSE_FINDREPLDLG" = yes; then
7568 echo "$ac_t""yes" 1>&6
7569 else
7570 echo "$ac_t""no" 1>&6
7571 fi
7572
7573
7574 enablestring=
7575 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7576echo "configure:7577: checking for --${enablestring:-enable}-fontdlg" >&5
7577 no_cache=0
7578 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7579if test "${enable_fontdlg+set}" = set; then
7580 enableval="$enable_fontdlg"
7581
7582 if test "$enableval" = yes; then
7583 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7584 else
7585 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7586 fi
7587
7588else
7589
7590 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7591 if test "x$LINE" != x ; then
7592 eval "DEFAULT_$LINE"
7593 else
7594 no_cache=1
7595 fi
7596
7597 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7598
7599fi
7600
7601
7602 eval "$ac_cv_use_fontdlg"
7603 if test "$no_cache" != 1; then
7604 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7605 fi
7606
7607 if test "$wxUSE_FONTDLG" = yes; then
7608 echo "$ac_t""yes" 1>&6
7609 else
7610 echo "$ac_t""no" 1>&6
7611 fi
7612
7613
7614 enablestring=
7615 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7616echo "configure:7617: checking for --${enablestring:-enable}-dirdlg" >&5
7617 no_cache=0
7618 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7619if test "${enable_dirdlg+set}" = set; then
7620 enableval="$enable_dirdlg"
7621
7622 if test "$enableval" = yes; then
7623 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7624 else
7625 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7626 fi
7627
7628else
7629
7630 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7631 if test "x$LINE" != x ; then
7632 eval "DEFAULT_$LINE"
7633 else
7634 no_cache=1
7635 fi
7636
7637 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7638
7639fi
7640
7641
7642 eval "$ac_cv_use_dirdlg"
7643 if test "$no_cache" != 1; then
7644 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7645 fi
7646
7647 if test "$wxUSE_DIRDLG" = yes; then
7648 echo "$ac_t""yes" 1>&6
7649 else
7650 echo "$ac_t""no" 1>&6
7651 fi
7652
7653
7654 enablestring=
7655 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7656echo "configure:7657: checking for --${enablestring:-enable}-msgdlg" >&5
7657 no_cache=0
7658 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7659if test "${enable_msgdlg+set}" = set; then
7660 enableval="$enable_msgdlg"
7661
7662 if test "$enableval" = yes; then
7663 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7664 else
7665 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7666 fi
7667
7668else
7669
7670 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7671 if test "x$LINE" != x ; then
7672 eval "DEFAULT_$LINE"
7673 else
7674 no_cache=1
7675 fi
7676
7677 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7678
7679fi
7680
7681
7682 eval "$ac_cv_use_msgdlg"
7683 if test "$no_cache" != 1; then
7684 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7685 fi
7686
7687 if test "$wxUSE_MSGDLG" = yes; then
7688 echo "$ac_t""yes" 1>&6
7689 else
7690 echo "$ac_t""no" 1>&6
7691 fi
7692
7693
7694 enablestring=
7695 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7696echo "configure:7697: checking for --${enablestring:-enable}-numberdlg" >&5
7697 no_cache=0
7698 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7699if test "${enable_numberdlg+set}" = set; then
7700 enableval="$enable_numberdlg"
7701
7702 if test "$enableval" = yes; then
7703 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7704 else
7705 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7706 fi
7707
7708else
7709
7710 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7711 if test "x$LINE" != x ; then
7712 eval "DEFAULT_$LINE"
7713 else
7714 no_cache=1
7715 fi
7716
7717 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7718
7719fi
7720
7721
7722 eval "$ac_cv_use_numberdlg"
7723 if test "$no_cache" != 1; then
7724 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7725 fi
7726
7727 if test "$wxUSE_NUMBERDLG" = yes; then
7728 echo "$ac_t""yes" 1>&6
7729 else
7730 echo "$ac_t""no" 1>&6
7731 fi
7732
7733
7734 enablestring=
7735 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7736echo "configure:7737: checking for --${enablestring:-enable}-splash" >&5
7737 no_cache=0
7738 # Check whether --enable-splash or --disable-splash was given.
7739if test "${enable_splash+set}" = set; then
7740 enableval="$enable_splash"
7741
7742 if test "$enableval" = yes; then
7743 ac_cv_use_splash='wxUSE_SPLASH=yes'
7744 else
7745 ac_cv_use_splash='wxUSE_SPLASH=no'
7746 fi
7747
7748else
7749
7750 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7751 if test "x$LINE" != x ; then
7752 eval "DEFAULT_$LINE"
7753 else
7754 no_cache=1
7755 fi
7756
7757 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7758
7759fi
7760
7761
7762 eval "$ac_cv_use_splash"
7763 if test "$no_cache" != 1; then
7764 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7765 fi
7766
7767 if test "$wxUSE_SPLASH" = yes; then
7768 echo "$ac_t""yes" 1>&6
7769 else
7770 echo "$ac_t""no" 1>&6
7771 fi
7772
7773
7774 enablestring=
7775 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7776echo "configure:7777: checking for --${enablestring:-enable}-textdlg" >&5
7777 no_cache=0
7778 # Check whether --enable-textdlg or --disable-textdlg was given.
7779if test "${enable_textdlg+set}" = set; then
7780 enableval="$enable_textdlg"
7781
7782 if test "$enableval" = yes; then
7783 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7784 else
7785 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7786 fi
7787
7788else
7789
7790 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7791 if test "x$LINE" != x ; then
7792 eval "DEFAULT_$LINE"
7793 else
7794 no_cache=1
7795 fi
7796
7797 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7798
7799fi
7800
7801
7802 eval "$ac_cv_use_textdlg"
7803 if test "$no_cache" != 1; then
7804 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7805 fi
7806
7807 if test "$wxUSE_TEXTDLG" = yes; then
7808 echo "$ac_t""yes" 1>&6
7809 else
7810 echo "$ac_t""no" 1>&6
7811 fi
7812
7813
7814 enablestring=
7815 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7816echo "configure:7817: checking for --${enablestring:-enable}-tipdlg" >&5
7817 no_cache=0
7818 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7819if test "${enable_tipdlg+set}" = set; then
7820 enableval="$enable_tipdlg"
7821
7822 if test "$enableval" = yes; then
7823 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7824 else
7825 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7826 fi
7827
7828else
7829
7830 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7831 if test "x$LINE" != x ; then
7832 eval "DEFAULT_$LINE"
7833 else
7834 no_cache=1
7835 fi
7836
7837 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7838
7839fi
7840
7841
7842 eval "$ac_cv_use_tipdlg"
7843 if test "$no_cache" != 1; then
7844 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7845 fi
7846
7847 if test "$wxUSE_STARTUP_TIPS" = yes; then
7848 echo "$ac_t""yes" 1>&6
7849 else
7850 echo "$ac_t""no" 1>&6
7851 fi
7852
7853
7854 enablestring=
7855 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7856echo "configure:7857: checking for --${enablestring:-enable}-progressdlg" >&5
7857 no_cache=0
7858 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7859if test "${enable_progressdlg+set}" = set; then
7860 enableval="$enable_progressdlg"
7861
7862 if test "$enableval" = yes; then
7863 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7864 else
7865 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7866 fi
7867
7868else
7869
7870 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7878
7879fi
7880
7881
7882 eval "$ac_cv_use_progressdlg"
7883 if test "$no_cache" != 1; then
7884 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7885 fi
7886
7887 if test "$wxUSE_PROGRESSDLG" = yes; then
7888 echo "$ac_t""yes" 1>&6
7889 else
7890 echo "$ac_t""no" 1>&6
7891 fi
7892
7893
7894 enablestring=
7895 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7896echo "configure:7897: checking for --${enablestring:-enable}-wizarddlg" >&5
7897 no_cache=0
7898 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7899if test "${enable_wizarddlg+set}" = set; then
7900 enableval="$enable_wizarddlg"
7901
7902 if test "$enableval" = yes; then
7903 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7904 else
7905 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7906 fi
7907
7908else
7909
7910 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7911 if test "x$LINE" != x ; then
7912 eval "DEFAULT_$LINE"
7913 else
7914 no_cache=1
7915 fi
7916
7917 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7918
7919fi
7920
7921
7922 eval "$ac_cv_use_wizarddlg"
7923 if test "$no_cache" != 1; then
7924 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7925 fi
7926
7927 if test "$wxUSE_WIZARDDLG" = yes; then
7928 echo "$ac_t""yes" 1>&6
7929 else
7930 echo "$ac_t""no" 1>&6
7931 fi
7932
7933
7934
7935
7936 enablestring=
7937 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7938echo "configure:7939: checking for --${enablestring:-enable}-menus" >&5
7939 no_cache=0
7940 # Check whether --enable-menus or --disable-menus was given.
7941if test "${enable_menus+set}" = set; then
7942 enableval="$enable_menus"
7943
7944 if test "$enableval" = yes; then
7945 ac_cv_use_menus='wxUSE_MENUS=yes'
7946 else
7947 ac_cv_use_menus='wxUSE_MENUS=no'
7948 fi
7949
7950else
7951
7952 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7953 if test "x$LINE" != x ; then
7954 eval "DEFAULT_$LINE"
7955 else
7956 no_cache=1
7957 fi
7958
7959 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7960
7961fi
7962
7963
7964 eval "$ac_cv_use_menus"
7965 if test "$no_cache" != 1; then
7966 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7967 fi
7968
7969 if test "$wxUSE_MENUS" = yes; then
7970 echo "$ac_t""yes" 1>&6
7971 else
7972 echo "$ac_t""no" 1>&6
7973 fi
7974
7975
7976 enablestring=
7977 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7978echo "configure:7979: checking for --${enablestring:-enable}-miniframe" >&5
7979 no_cache=0
7980 # Check whether --enable-miniframe or --disable-miniframe was given.
7981if test "${enable_miniframe+set}" = set; then
7982 enableval="$enable_miniframe"
7983
7984 if test "$enableval" = yes; then
7985 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7986 else
7987 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7988 fi
7989
7990else
7991
7992 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7993 if test "x$LINE" != x ; then
7994 eval "DEFAULT_$LINE"
7995 else
7996 no_cache=1
7997 fi
7998
7999 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8000
8001fi
8002
8003
8004 eval "$ac_cv_use_miniframe"
8005 if test "$no_cache" != 1; then
8006 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8007 fi
8008
8009 if test "$wxUSE_MINIFRAME" = yes; then
8010 echo "$ac_t""yes" 1>&6
8011 else
8012 echo "$ac_t""no" 1>&6
8013 fi
8014
8015
8016 enablestring=
8017 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8018echo "configure:8019: checking for --${enablestring:-enable}-tooltips" >&5
8019 no_cache=0
8020 # Check whether --enable-tooltips or --disable-tooltips was given.
8021if test "${enable_tooltips+set}" = set; then
8022 enableval="$enable_tooltips"
8023
8024 if test "$enableval" = yes; then
8025 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8026 else
8027 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8028 fi
8029
8030else
8031
8032 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8040
8041fi
8042
8043
8044 eval "$ac_cv_use_tooltips"
8045 if test "$no_cache" != 1; then
8046 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8047 fi
8048
8049 if test "$wxUSE_TOOLTIPS" = yes; then
8050 echo "$ac_t""yes" 1>&6
8051 else
8052 echo "$ac_t""no" 1>&6
8053 fi
8054
8055
8056 enablestring=
8057 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8058echo "configure:8059: checking for --${enablestring:-enable}-splines" >&5
8059 no_cache=0
8060 # Check whether --enable-splines or --disable-splines was given.
8061if test "${enable_splines+set}" = set; then
8062 enableval="$enable_splines"
8063
8064 if test "$enableval" = yes; then
8065 ac_cv_use_splines='wxUSE_SPLINES=yes'
8066 else
8067 ac_cv_use_splines='wxUSE_SPLINES=no'
8068 fi
8069
8070else
8071
8072 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8073 if test "x$LINE" != x ; then
8074 eval "DEFAULT_$LINE"
8075 else
8076 no_cache=1
8077 fi
8078
8079 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8080
8081fi
8082
8083
8084 eval "$ac_cv_use_splines"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_SPLINES" = yes; then
8090 echo "$ac_t""yes" 1>&6
8091 else
8092 echo "$ac_t""no" 1>&6
8093 fi
8094
8095
8096 enablestring=
8097 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8098echo "configure:8099: checking for --${enablestring:-enable}-validators" >&5
8099 no_cache=0
8100 # Check whether --enable-validators or --disable-validators was given.
8101if test "${enable_validators+set}" = set; then
8102 enableval="$enable_validators"
8103
8104 if test "$enableval" = yes; then
8105 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8106 else
8107 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8108 fi
8109
8110else
8111
8112 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8120
8121fi
8122
8123
8124 eval "$ac_cv_use_validators"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_VALIDATORS" = yes; then
8130 echo "$ac_t""yes" 1>&6
8131 else
8132 echo "$ac_t""no" 1>&6
8133 fi
8134
8135
8136 enablestring=
8137 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8138echo "configure:8139: checking for --${enablestring:-enable}-busyinfo" >&5
8139 no_cache=0
8140 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8141if test "${enable_busyinfo+set}" = set; then
8142 enableval="$enable_busyinfo"
8143
8144 if test "$enableval" = yes; then
8145 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8146 else
8147 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8148 fi
8149
8150else
8151
8152 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8153 if test "x$LINE" != x ; then
8154 eval "DEFAULT_$LINE"
8155 else
8156 no_cache=1
8157 fi
8158
8159 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8160
8161fi
8162
8163
8164 eval "$ac_cv_use_busyinfo"
8165 if test "$no_cache" != 1; then
8166 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8167 fi
8168
8169 if test "$wxUSE_BUSYINFO" = yes; then
8170 echo "$ac_t""yes" 1>&6
8171 else
8172 echo "$ac_t""no" 1>&6
8173 fi
8174
8175
8176 enablestring=
8177 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8178echo "configure:8179: checking for --${enablestring:-enable}-joystick" >&5
8179 no_cache=0
8180 # Check whether --enable-joystick or --disable-joystick was given.
8181if test "${enable_joystick+set}" = set; then
8182 enableval="$enable_joystick"
8183
8184 if test "$enableval" = yes; then
8185 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8186 else
8187 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8188 fi
8189
8190else
8191
8192 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8200
8201fi
8202
8203
8204 eval "$ac_cv_use_joystick"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_JOYSTICK" = yes; then
8210 echo "$ac_t""yes" 1>&6
8211 else
8212 echo "$ac_t""no" 1>&6
8213 fi
8214
8215
8216 enablestring=
8217 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8218echo "configure:8219: checking for --${enablestring:-enable}-metafile" >&5
8219 no_cache=0
8220 # Check whether --enable-metafile or --disable-metafile was given.
8221if test "${enable_metafile+set}" = set; then
8222 enableval="$enable_metafile"
8223
8224 if test "$enableval" = yes; then
8225 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8226 else
8227 ac_cv_use_metafile='wxUSE_METAFILE=no'
8228 fi
8229
8230else
8231
8232 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8233 if test "x$LINE" != x ; then
8234 eval "DEFAULT_$LINE"
8235 else
8236 no_cache=1
8237 fi
8238
8239 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8240
8241fi
8242
8243
8244 eval "$ac_cv_use_metafile"
8245 if test "$no_cache" != 1; then
8246 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8247 fi
8248
8249 if test "$wxUSE_METAFILE" = yes; then
8250 echo "$ac_t""yes" 1>&6
8251 else
8252 echo "$ac_t""no" 1>&6
8253 fi
8254
8255
8256 enablestring=
8257 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8258echo "configure:8259: checking for --${enablestring:-enable}-dragimage" >&5
8259 no_cache=0
8260 # Check whether --enable-dragimage or --disable-dragimage was given.
8261if test "${enable_dragimage+set}" = set; then
8262 enableval="$enable_dragimage"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8266 else
8267 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8280
8281fi
8282
8283
8284 eval "$ac_cv_use_dragimage"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_DRAGIMAGE" = yes; then
8290 echo "$ac_t""yes" 1>&6
8291 else
8292 echo "$ac_t""no" 1>&6
8293 fi
8294
8295
8296 enablestring=
8297 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8298echo "configure:8299: checking for --${enablestring:-enable}-accessibility" >&5
8299 no_cache=0
8300 # Check whether --enable-accessibility or --disable-accessibility was given.
8301if test "${enable_accessibility+set}" = set; then
8302 enableval="$enable_accessibility"
8303
8304 if test "$enableval" = yes; then
8305 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8306 else
8307 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8308 fi
8309
8310else
8311
8312 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8313 if test "x$LINE" != x ; then
8314 eval "DEFAULT_$LINE"
8315 else
8316 no_cache=1
8317 fi
8318
8319 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8320
8321fi
8322
8323
8324 eval "$ac_cv_use_accessibility"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_ACCESSIBILITY" = yes; then
8330 echo "$ac_t""yes" 1>&6
8331 else
8332 echo "$ac_t""no" 1>&6
8333 fi
8334
8335
8336
8337
8338 enablestring=
8339 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8340echo "configure:8341: checking for --${enablestring:-enable}-palette" >&5
8341 no_cache=0
8342 # Check whether --enable-palette or --disable-palette was given.
8343if test "${enable_palette+set}" = set; then
8344 enableval="$enable_palette"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_palette='wxUSE_PALETTE=yes'
8348 else
8349 ac_cv_use_palette='wxUSE_PALETTE=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8362
8363fi
8364
8365
8366 eval "$ac_cv_use_palette"
8367 if test "$no_cache" != 1; then
8368 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8369 fi
8370
8371 if test "$wxUSE_PALETTE" = yes; then
8372 echo "$ac_t""yes" 1>&6
8373 else
8374 echo "$ac_t""no" 1>&6
8375 fi
8376
8377
8378 enablestring=
8379 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8380echo "configure:8381: checking for --${enablestring:-enable}-image" >&5
8381 no_cache=0
8382 # Check whether --enable-image or --disable-image was given.
8383if test "${enable_image+set}" = set; then
8384 enableval="$enable_image"
8385
8386 if test "$enableval" = yes; then
8387 ac_cv_use_image='wxUSE_IMAGE=yes'
8388 else
8389 ac_cv_use_image='wxUSE_IMAGE=no'
8390 fi
8391
8392else
8393
8394 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8395 if test "x$LINE" != x ; then
8396 eval "DEFAULT_$LINE"
8397 else
8398 no_cache=1
8399 fi
8400
8401 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8402
8403fi
8404
8405
8406 eval "$ac_cv_use_image"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_IMAGE" = yes; then
8412 echo "$ac_t""yes" 1>&6
8413 else
8414 echo "$ac_t""no" 1>&6
8415 fi
8416
8417
8418 enablestring=
8419 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8420echo "configure:8421: checking for --${enablestring:-enable}-gif" >&5
8421 no_cache=0
8422 # Check whether --enable-gif or --disable-gif was given.
8423if test "${enable_gif+set}" = set; then
8424 enableval="$enable_gif"
8425
8426 if test "$enableval" = yes; then
8427 ac_cv_use_gif='wxUSE_GIF=yes'
8428 else
8429 ac_cv_use_gif='wxUSE_GIF=no'
8430 fi
8431
8432else
8433
8434 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8435 if test "x$LINE" != x ; then
8436 eval "DEFAULT_$LINE"
8437 else
8438 no_cache=1
8439 fi
8440
8441 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8442
8443fi
8444
8445
8446 eval "$ac_cv_use_gif"
8447 if test "$no_cache" != 1; then
8448 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8449 fi
8450
8451 if test "$wxUSE_GIF" = yes; then
8452 echo "$ac_t""yes" 1>&6
8453 else
8454 echo "$ac_t""no" 1>&6
8455 fi
8456
8457
8458 enablestring=
8459 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8460echo "configure:8461: checking for --${enablestring:-enable}-pcx" >&5
8461 no_cache=0
8462 # Check whether --enable-pcx or --disable-pcx was given.
8463if test "${enable_pcx+set}" = set; then
8464 enableval="$enable_pcx"
8465
8466 if test "$enableval" = yes; then
8467 ac_cv_use_pcx='wxUSE_PCX=yes'
8468 else
8469 ac_cv_use_pcx='wxUSE_PCX=no'
8470 fi
8471
8472else
8473
8474 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8475 if test "x$LINE" != x ; then
8476 eval "DEFAULT_$LINE"
8477 else
8478 no_cache=1
8479 fi
8480
8481 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8482
8483fi
8484
8485
8486 eval "$ac_cv_use_pcx"
8487 if test "$no_cache" != 1; then
8488 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8489 fi
8490
8491 if test "$wxUSE_PCX" = yes; then
8492 echo "$ac_t""yes" 1>&6
8493 else
8494 echo "$ac_t""no" 1>&6
8495 fi
8496
8497
8498 enablestring=
8499 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8500echo "configure:8501: checking for --${enablestring:-enable}-iff" >&5
8501 no_cache=0
8502 # Check whether --enable-iff or --disable-iff was given.
8503if test "${enable_iff+set}" = set; then
8504 enableval="$enable_iff"
8505
8506 if test "$enableval" = yes; then
8507 ac_cv_use_iff='wxUSE_IFF=yes'
8508 else
8509 ac_cv_use_iff='wxUSE_IFF=no'
8510 fi
8511
8512else
8513
8514 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8522
8523fi
8524
8525
8526 eval "$ac_cv_use_iff"
8527 if test "$no_cache" != 1; then
8528 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8529 fi
8530
8531 if test "$wxUSE_IFF" = yes; then
8532 echo "$ac_t""yes" 1>&6
8533 else
8534 echo "$ac_t""no" 1>&6
8535 fi
8536
8537
8538 enablestring=
8539 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8540echo "configure:8541: checking for --${enablestring:-enable}-pnm" >&5
8541 no_cache=0
8542 # Check whether --enable-pnm or --disable-pnm was given.
8543if test "${enable_pnm+set}" = set; then
8544 enableval="$enable_pnm"
8545
8546 if test "$enableval" = yes; then
8547 ac_cv_use_pnm='wxUSE_PNM=yes'
8548 else
8549 ac_cv_use_pnm='wxUSE_PNM=no'
8550 fi
8551
8552else
8553
8554 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8555 if test "x$LINE" != x ; then
8556 eval "DEFAULT_$LINE"
8557 else
8558 no_cache=1
8559 fi
8560
8561 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8562
8563fi
8564
8565
8566 eval "$ac_cv_use_pnm"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_PNM" = yes; then
8572 echo "$ac_t""yes" 1>&6
8573 else
8574 echo "$ac_t""no" 1>&6
8575 fi
8576
8577
8578 enablestring=
8579 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8580echo "configure:8581: checking for --${enablestring:-enable}-xpm" >&5
8581 no_cache=0
8582 # Check whether --enable-xpm or --disable-xpm was given.
8583if test "${enable_xpm+set}" = set; then
8584 enableval="$enable_xpm"
8585
8586 if test "$enableval" = yes; then
8587 ac_cv_use_xpm='wxUSE_XPM=yes'
8588 else
8589 ac_cv_use_xpm='wxUSE_XPM=no'
8590 fi
8591
8592else
8593
8594 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8595 if test "x$LINE" != x ; then
8596 eval "DEFAULT_$LINE"
8597 else
8598 no_cache=1
8599 fi
8600
8601 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8602
8603fi
8604
8605
8606 eval "$ac_cv_use_xpm"
8607 if test "$no_cache" != 1; then
8608 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8609 fi
8610
8611 if test "$wxUSE_XPM" = yes; then
8612 echo "$ac_t""yes" 1>&6
8613 else
8614 echo "$ac_t""no" 1>&6
8615 fi
8616
8617
8618 enablestring=
8619 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8620echo "configure:8621: checking for --${enablestring:-enable}-ico_cur" >&5
8621 no_cache=0
8622 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8623if test "${enable_ico_cur+set}" = set; then
8624 enableval="$enable_ico_cur"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8628 else
8629 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8642
8643fi
8644
8645
8646 eval "$ac_cv_use_ico_cur"
8647 if test "$no_cache" != 1; then
8648 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8649 fi
8650
8651 if test "$wxUSE_ICO_CUR" = yes; then
8652 echo "$ac_t""yes" 1>&6
8653 else
8654 echo "$ac_t""no" 1>&6
8655 fi
8656
8657
8658fi
8659
8660case "${host}" in
8661 *-pc-os2_emx | *-pc-os2-emx )
8662 PATH_IFS=';'
8663 LEX_STEM="lexyy"
8664 ;;
8665 *)
8666 PATH_IFS=':'
8667 LEX_STEM="lex.yy"
8668 ;;
8669esac
8670
8671
8672
8673 echo "saving argument cache $wx_arg_cache_file"
8674 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8675
8676
8677
8678echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8679echo "configure:8680: checking for toolkit" >&5
8680
8681# In Wine, we need to default to MSW, not GTK or MOTIF
8682if test "$wxUSE_WINE" = "yes"; then
8683 DEFAULT_DEFAULT_wxUSE_GTK=0
8684 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8685 DEFAULT_DEFAULT_wxUSE_MSW=1
8686fi
8687
8688if test "$wxUSE_GUI" = "yes"; then
8689
8690 if test "$USE_BEOS" = 1; then
8691 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8692 fi
8693
8694 if test "$TOOLKIT_GIVEN" = 1; then
8695 for toolkit in `echo $ALL_TOOLKITS`; do
8696 var=wxUSE_$toolkit
8697 eval "value=\$${var}"
8698 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8699 done
8700 else
8701 for toolkit in `echo $ALL_TOOLKITS`; do
8702 if test "$has_toolkit_in_cache" != 1; then
8703 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8704 else
8705 var=DEFAULT_wxUSE_$toolkit
8706 fi
8707 eval "wxUSE_$toolkit=\$${var}"
8708 done
8709 fi
8710
8711 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8712 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8713 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8714
8715 case "${host}" in
8716 *-pc-os2_emx | *-pc-os2-emx )
8717 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8718 esac
8719
8720 case "$NUM_TOOLKITS" in
8721 1)
8722 ;;
8723 0)
8724 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8725 ;;
8726 *)
8727 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8728 esac
8729
8730 for toolkit in `echo $ALL_TOOLKITS`; do
8731 var=wxUSE_$toolkit
8732 eval "value=\$${var}"
8733 if test "x$value" != x; then
8734 cache_var=CACHE_$toolkit
8735 eval "cache=\$${cache_var}"
8736 if test "$cache" = 1; then
8737 echo "$var=$value" >> ${wx_arg_cache_file}
8738 fi
8739 if test "$value" = 1; then
8740 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8741 echo "$ac_t""$toolkit_echo" 1>&6
8742 fi
8743 fi
8744 done
8745else
8746 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8747fi
8748
8749wants_win32=0
8750doesnt_want_win32=0
8751case "${host}" in
8752 *-*-cygwin*)
8753 if test "$wxUSE_MSW" = 1 ; then
8754 wants_win32=1
8755 else
8756 doesnt_want_win32=1
8757 fi
8758 ;;
8759 *-*-mingw*)
8760 wants_win32=1
8761 ;;
8762esac
8763
8764if test "$wxUSE_WINE" = "yes"; then
8765 wants_win32=1
8766 CC=winegcc
8767 CXX=wineg++
8768 RESCOMP=wrc
8769fi
8770
8771if test "$wants_win32" = 1 ; then
8772 USE_UNIX=0
8773 USE_WIN32=1
8774 cat >> confdefs.h <<\EOF
8775#define __WIN32__ 1
8776EOF
8777
8778 cat >> confdefs.h <<\EOF
8779#define __WIN95__ 1
8780EOF
8781
8782 cat >> confdefs.h <<\EOF
8783#define __WINDOWS__ 1
8784EOF
8785
8786 cat >> confdefs.h <<\EOF
8787#define __GNUWIN32__ 1
8788EOF
8789
8790 cat >> confdefs.h <<\EOF
8791#define STRICT 1
8792EOF
8793
8794 cat >> confdefs.h <<\EOF
8795#define WINVER 0x0400
8796EOF
8797
8798fi
8799if test "$doesnt_want_win32" = 1 ; then
8800 USE_UNIX=1
8801 USE_WIN32=0
8802fi
8803
8804if test "$USE_UNIX" = 1 ; then
8805 wxUSE_UNIX=yes
8806 cat >> confdefs.h <<\EOF
8807#define __UNIX__ 1
8808EOF
8809
8810fi
8811
8812
8813cat > confcache <<\EOF
8814# This file is a shell script that caches the results of configure
8815# tests run on this system so they can be shared between configure
8816# scripts and configure runs. It is not useful on other systems.
8817# If it contains results you don't want to keep, you may remove or edit it.
8818#
8819# By default, configure uses ./config.cache as the cache file,
8820# creating it if it does not exist already. You can give configure
8821# the --cache-file=FILE option to use a different cache file; that is
8822# what configure does when it calls configure scripts in
8823# subdirectories, so they share the cache.
8824# Giving --cache-file=/dev/null disables caching, for debugging configure.
8825# config.status only pays attention to the cache file if you give it the
8826# --recheck option to rerun configure.
8827#
8828EOF
8829# The following way of writing the cache mishandles newlines in values,
8830# but we know of no workaround that is simple, portable, and efficient.
8831# So, don't put newlines in cache variables' values.
8832# Ultrix sh set writes to stderr and can't be redirected directly,
8833# and sets the high bit in the cache file unless we assign to the vars.
8834(set) 2>&1 |
8835 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8836 *ac_space=\ *)
8837 # `set' does not quote correctly, so add quotes (double-quote substitution
8838 # turns \\\\ into \\, and sed turns \\ into \).
8839 sed -n \
8840 -e "s/'/'\\\\''/g" \
8841 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8842 ;;
8843 *)
8844 # `set' quotes correctly as required by POSIX, so do not add quotes.
8845 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8846 ;;
8847 esac >> confcache
8848if cmp -s $cache_file confcache; then
8849 :
8850else
8851 if test -w $cache_file; then
8852 echo "updating cache $cache_file"
8853 cat confcache > $cache_file
8854 else
8855 echo "not updating unwritable cache $cache_file"
8856 fi
8857fi
8858rm -f confcache
8859
8860
8861if test "$build" != "$host" ; then
8862 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8863 CC=$host_alias-gcc
8864 CXX=$host_alias-c++
8865 AR=$host_alias-ar
8866 RANLIB=$host_alias-ranlib
8867 DLLTOOL=$host_alias-dlltool
8868 RESCOMP=$host_alias-windres
8869 LD=$host_alias-ld
8870 NM=$host_alias-nm
8871 STRIP=$host_alias-strip
8872 else
8873 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8874 fi
8875fi
8876
8877CFLAGS=${CFLAGS:=}
8878# Extract the first word of "gcc", so it can be a program name with args.
8879set dummy gcc; ac_word=$2
8880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8881echo "configure:8882: checking for $ac_word" >&5
8882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8884else
8885 if test -n "$CC"; then
8886 ac_cv_prog_CC="$CC" # Let the user override the test.
8887else
8888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8889 ac_dummy="$PATH"
8890 for ac_dir in $ac_dummy; do
8891 test -z "$ac_dir" && ac_dir=.
8892 if test -f $ac_dir/$ac_word; then
8893 ac_cv_prog_CC="gcc"
8894 break
8895 fi
8896 done
8897 IFS="$ac_save_ifs"
8898fi
8899fi
8900CC="$ac_cv_prog_CC"
8901if test -n "$CC"; then
8902 echo "$ac_t""$CC" 1>&6
8903else
8904 echo "$ac_t""no" 1>&6
8905fi
8906
8907if test -z "$CC"; then
8908 # Extract the first word of "cc", so it can be a program name with args.
8909set dummy cc; ac_word=$2
8910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8911echo "configure:8912: checking for $ac_word" >&5
8912if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8914else
8915 if test -n "$CC"; then
8916 ac_cv_prog_CC="$CC" # Let the user override the test.
8917else
8918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8919 ac_prog_rejected=no
8920 ac_dummy="$PATH"
8921 for ac_dir in $ac_dummy; do
8922 test -z "$ac_dir" && ac_dir=.
8923 if test -f $ac_dir/$ac_word; then
8924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8925 ac_prog_rejected=yes
8926 continue
8927 fi
8928 ac_cv_prog_CC="cc"
8929 break
8930 fi
8931 done
8932 IFS="$ac_save_ifs"
8933if test $ac_prog_rejected = yes; then
8934 # We found a bogon in the path, so make sure we never use it.
8935 set dummy $ac_cv_prog_CC
8936 shift
8937 if test $# -gt 0; then
8938 # We chose a different compiler from the bogus one.
8939 # However, it has the same basename, so the bogon will be chosen
8940 # first if we set CC to just the basename; use the full file name.
8941 shift
8942 set dummy "$ac_dir/$ac_word" "$@"
8943 shift
8944 ac_cv_prog_CC="$@"
8945 fi
8946fi
8947fi
8948fi
8949CC="$ac_cv_prog_CC"
8950if test -n "$CC"; then
8951 echo "$ac_t""$CC" 1>&6
8952else
8953 echo "$ac_t""no" 1>&6
8954fi
8955
8956 if test -z "$CC"; then
8957 case "`uname -s`" in
8958 *win32* | *WIN32*)
8959 # Extract the first word of "cl", so it can be a program name with args.
8960set dummy cl; ac_word=$2
8961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8962echo "configure:8963: checking for $ac_word" >&5
8963if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8965else
8966 if test -n "$CC"; then
8967 ac_cv_prog_CC="$CC" # Let the user override the test.
8968else
8969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8970 ac_dummy="$PATH"
8971 for ac_dir in $ac_dummy; do
8972 test -z "$ac_dir" && ac_dir=.
8973 if test -f $ac_dir/$ac_word; then
8974 ac_cv_prog_CC="cl"
8975 break
8976 fi
8977 done
8978 IFS="$ac_save_ifs"
8979fi
8980fi
8981CC="$ac_cv_prog_CC"
8982if test -n "$CC"; then
8983 echo "$ac_t""$CC" 1>&6
8984else
8985 echo "$ac_t""no" 1>&6
8986fi
8987 ;;
8988 esac
8989 fi
8990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8991fi
8992
8993echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8994echo "configure:8995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8995
8996ac_ext=c
8997# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8998ac_cpp='$CPP $CPPFLAGS'
8999ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9000ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9001cross_compiling=$ac_cv_prog_cc_cross
9002
9003cat > conftest.$ac_ext << EOF
9004
9005#line 9006 "configure"
9006#include "confdefs.h"
9007
9008main(){return(0);}
9009EOF
9010if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9011 ac_cv_prog_cc_works=yes
9012 # If we can't run a trivial program, we are probably using a cross compiler.
9013 if (./conftest; exit) 2>/dev/null; then
9014 ac_cv_prog_cc_cross=no
9015 else
9016 ac_cv_prog_cc_cross=yes
9017 fi
9018else
9019 echo "configure: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9021 ac_cv_prog_cc_works=no
9022fi
9023rm -fr conftest*
9024ac_ext=c
9025# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9026ac_cpp='$CPP $CPPFLAGS'
9027ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9028ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9029cross_compiling=$ac_cv_prog_cc_cross
9030
9031echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9032if test $ac_cv_prog_cc_works = no; then
9033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9034fi
9035echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9036echo "configure:9037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9037echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9038cross_compiling=$ac_cv_prog_cc_cross
9039
9040echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9041echo "configure:9042: checking whether we are using GNU C" >&5
9042if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9044else
9045 cat > conftest.c <<EOF
9046#ifdef __GNUC__
9047 yes;
9048#endif
9049EOF
9050if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9051 ac_cv_prog_gcc=yes
9052else
9053 ac_cv_prog_gcc=no
9054fi
9055fi
9056
9057echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9058
9059if test $ac_cv_prog_gcc = yes; then
9060 GCC=yes
9061else
9062 GCC=
9063fi
9064
9065ac_test_CFLAGS="${CFLAGS+set}"
9066ac_save_CFLAGS="$CFLAGS"
9067CFLAGS=
9068echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9069echo "configure:9070: checking whether ${CC-cc} accepts -g" >&5
9070if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072else
9073 echo 'void f(){}' > conftest.c
9074if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9075 ac_cv_prog_cc_g=yes
9076else
9077 ac_cv_prog_cc_g=no
9078fi
9079rm -f conftest*
9080
9081fi
9082
9083echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9084if test "$ac_test_CFLAGS" = set; then
9085 CFLAGS="$ac_save_CFLAGS"
9086elif test $ac_cv_prog_cc_g = yes; then
9087 if test "$GCC" = yes; then
9088 CFLAGS="-g -O2"
9089 else
9090 CFLAGS="-g"
9091 fi
9092else
9093 if test "$GCC" = yes; then
9094 CFLAGS="-O2"
9095 else
9096 CFLAGS=
9097 fi
9098fi
9099
9100
9101echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9102echo "configure:9103: checking how to run the C preprocessor" >&5
9103# On Suns, sometimes $CPP names a directory.
9104if test -n "$CPP" && test -d "$CPP"; then
9105 CPP=
9106fi
9107if test -z "$CPP"; then
9108if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9109 echo $ac_n "(cached) $ac_c" 1>&6
9110else
9111 # This must be in double quotes, not single quotes, because CPP may get
9112 # substituted into the Makefile and "${CC-cc}" will confuse make.
9113 CPP="${CC-cc} -E"
9114 # On the NeXT, cc -E runs the code through the compiler's parser,
9115 # not just through cpp.
9116 cat > conftest.$ac_ext <<EOF
9117#line 9118 "configure"
9118#include "confdefs.h"
9119#include <assert.h>
9120Syntax Error
9121EOF
9122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9123{ (eval echo configure:9124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9125if test -z "$ac_err"; then
9126 :
9127else
9128 echo "$ac_err" >&5
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 rm -rf conftest*
9132 CPP="${CC-cc} -E -traditional-cpp"
9133 cat > conftest.$ac_ext <<EOF
9134#line 9135 "configure"
9135#include "confdefs.h"
9136#include <assert.h>
9137Syntax Error
9138EOF
9139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9140{ (eval echo configure:9141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9142if test -z "$ac_err"; then
9143 :
9144else
9145 echo "$ac_err" >&5
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9148 rm -rf conftest*
9149 CPP="${CC-cc} -nologo -E"
9150 cat > conftest.$ac_ext <<EOF
9151#line 9152 "configure"
9152#include "confdefs.h"
9153#include <assert.h>
9154Syntax Error
9155EOF
9156ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9157{ (eval echo configure:9158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9158ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9159if test -z "$ac_err"; then
9160 :
9161else
9162 echo "$ac_err" >&5
9163 echo "configure: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9165 rm -rf conftest*
9166 CPP=/lib/cpp
9167fi
9168rm -f conftest*
9169fi
9170rm -f conftest*
9171fi
9172rm -f conftest*
9173 ac_cv_prog_CPP="$CPP"
9174fi
9175 CPP="$ac_cv_prog_CPP"
9176else
9177 ac_cv_prog_CPP="$CPP"
9178fi
9179echo "$ac_t""$CPP" 1>&6
9180
9181if test $ac_cv_prog_gcc = yes; then
9182 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9183echo "configure:9184: checking whether ${CC-cc} needs -traditional" >&5
9184if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
9186else
9187 ac_pattern="Autoconf.*'x'"
9188 cat > conftest.$ac_ext <<EOF
9189#line 9190 "configure"
9190#include "confdefs.h"
9191#include <sgtty.h>
9192Autoconf TIOCGETP
9193EOF
9194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195 egrep "$ac_pattern" >/dev/null 2>&1; then
9196 rm -rf conftest*
9197 ac_cv_prog_gcc_traditional=yes
9198else
9199 rm -rf conftest*
9200 ac_cv_prog_gcc_traditional=no
9201fi
9202rm -f conftest*
9203
9204
9205 if test $ac_cv_prog_gcc_traditional = no; then
9206 cat > conftest.$ac_ext <<EOF
9207#line 9208 "configure"
9208#include "confdefs.h"
9209#include <termio.h>
9210Autoconf TCGETA
9211EOF
9212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9213 egrep "$ac_pattern" >/dev/null 2>&1; then
9214 rm -rf conftest*
9215 ac_cv_prog_gcc_traditional=yes
9216fi
9217rm -f conftest*
9218
9219 fi
9220fi
9221
9222echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9223 if test $ac_cv_prog_gcc_traditional = yes; then
9224 CC="$CC -traditional"
9225 fi
9226fi
9227
9228
9229
9230ac_ext=C
9231# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9232ac_cpp='$CXXCPP $CPPFLAGS'
9233ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9234ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9235cross_compiling=$ac_cv_prog_cxx_cross
9236
9237
9238CXXFLAGS=${CXXFLAGS:=}
9239for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9240do
9241# Extract the first word of "$ac_prog", so it can be a program name with args.
9242set dummy $ac_prog; ac_word=$2
9243echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9244echo "configure:9245: checking for $ac_word" >&5
9245if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9247else
9248 if test -n "$CXX"; then
9249 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9250else
9251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9252 ac_dummy="$PATH"
9253 for ac_dir in $ac_dummy; do
9254 test -z "$ac_dir" && ac_dir=.
9255 if test -f $ac_dir/$ac_word; then
9256 ac_cv_prog_CXX="$ac_prog"
9257 break
9258 fi
9259 done
9260 IFS="$ac_save_ifs"
9261fi
9262fi
9263CXX="$ac_cv_prog_CXX"
9264if test -n "$CXX"; then
9265 echo "$ac_t""$CXX" 1>&6
9266else
9267 echo "$ac_t""no" 1>&6
9268fi
9269
9270test -n "$CXX" && break
9271done
9272test -n "$CXX" || CXX="gcc"
9273
9274
9275echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9276echo "configure:9277: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9277
9278ac_ext=C
9279# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9280ac_cpp='$CXXCPP $CPPFLAGS'
9281ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9282ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9283cross_compiling=$ac_cv_prog_cxx_cross
9284
9285cat > conftest.$ac_ext << EOF
9286
9287#line 9288 "configure"
9288#include "confdefs.h"
9289
9290int main(){return(0);}
9291EOF
9292if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9293 ac_cv_prog_cxx_works=yes
9294 # If we can't run a trivial program, we are probably using a cross compiler.
9295 if (./conftest; exit) 2>/dev/null; then
9296 ac_cv_prog_cxx_cross=no
9297 else
9298 ac_cv_prog_cxx_cross=yes
9299 fi
9300else
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 ac_cv_prog_cxx_works=no
9304fi
9305rm -fr conftest*
9306ac_ext=C
9307# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9308ac_cpp='$CXXCPP $CPPFLAGS'
9309ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9310ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9311cross_compiling=$ac_cv_prog_cxx_cross
9312
9313echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9314if test $ac_cv_prog_cxx_works = no; then
9315 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9316fi
9317echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9318echo "configure:9319: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9319echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9320cross_compiling=$ac_cv_prog_cxx_cross
9321
9322echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9323echo "configure:9324: checking whether we are using GNU C++" >&5
9324if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326else
9327 cat > conftest.C <<EOF
9328#ifdef __GNUC__
9329 yes;
9330#endif
9331EOF
9332if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9333 ac_cv_prog_gxx=yes
9334else
9335 ac_cv_prog_gxx=no
9336fi
9337fi
9338
9339echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9340
9341if test $ac_cv_prog_gxx = yes; then
9342 GXX=yes
9343else
9344 GXX=
9345fi
9346
9347ac_test_CXXFLAGS="${CXXFLAGS+set}"
9348ac_save_CXXFLAGS="$CXXFLAGS"
9349CXXFLAGS=
9350echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9351echo "configure:9352: checking whether ${CXX-g++} accepts -g" >&5
9352if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9354else
9355 echo 'void f(){}' > conftest.cc
9356if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9357 ac_cv_prog_cxx_g=yes
9358else
9359 ac_cv_prog_cxx_g=no
9360fi
9361rm -f conftest*
9362
9363fi
9364
9365echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9366if test "$ac_test_CXXFLAGS" = set; then
9367 CXXFLAGS="$ac_save_CXXFLAGS"
9368elif test $ac_cv_prog_cxx_g = yes; then
9369 if test "$GXX" = yes; then
9370 CXXFLAGS="-g -O2"
9371 else
9372 CXXFLAGS="-g"
9373 fi
9374else
9375 if test "$GXX" = yes; then
9376 CXXFLAGS="-O2"
9377 else
9378 CXXFLAGS=
9379 fi
9380fi
9381
9382
9383ac_ext=c
9384# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9385ac_cpp='$CPP $CPPFLAGS'
9386ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9387ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9388cross_compiling=$ac_cv_prog_cc_cross
9389
9390
9391# Extract the first word of "ranlib", so it can be a program name with args.
9392set dummy ranlib; ac_word=$2
9393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9394echo "configure:9395: checking for $ac_word" >&5
9395if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397else
9398 if test -n "$RANLIB"; then
9399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9400else
9401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9402 ac_dummy="$PATH"
9403 for ac_dir in $ac_dummy; do
9404 test -z "$ac_dir" && ac_dir=.
9405 if test -f $ac_dir/$ac_word; then
9406 ac_cv_prog_RANLIB="ranlib"
9407 break
9408 fi
9409 done
9410 IFS="$ac_save_ifs"
9411 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9412fi
9413fi
9414RANLIB="$ac_cv_prog_RANLIB"
9415if test -n "$RANLIB"; then
9416 echo "$ac_t""$RANLIB" 1>&6
9417else
9418 echo "$ac_t""no" 1>&6
9419fi
9420
9421
9422# Extract the first word of "ar", so it can be a program name with args.
9423set dummy ar; ac_word=$2
9424echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9425echo "configure:9426: checking for $ac_word" >&5
9426if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9427 echo $ac_n "(cached) $ac_c" 1>&6
9428else
9429 if test -n "$AR"; then
9430 ac_cv_prog_AR="$AR" # Let the user override the test.
9431else
9432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9433 ac_dummy="$PATH"
9434 for ac_dir in $ac_dummy; do
9435 test -z "$ac_dir" && ac_dir=.
9436 if test -f $ac_dir/$ac_word; then
9437 ac_cv_prog_AR="ar"
9438 break
9439 fi
9440 done
9441 IFS="$ac_save_ifs"
9442 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9443fi
9444fi
9445AR="$ac_cv_prog_AR"
9446if test -n "$AR"; then
9447 echo "$ac_t""$AR" 1>&6
9448else
9449 echo "$ac_t""no" 1>&6
9450fi
9451
9452
9453# Find a good install program. We prefer a C program (faster),
9454# so one script is as good as another. But avoid the broken or
9455# incompatible versions:
9456# SysV /etc/install, /usr/sbin/install
9457# SunOS /usr/etc/install
9458# IRIX /sbin/install
9459# AIX /bin/install
9460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9463# ./install, which can be erroneously created by make from ./install.sh.
9464echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9465echo "configure:9466: checking for a BSD compatible install" >&5
9466if test -z "$INSTALL"; then
9467if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469else
9470 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9471 for ac_dir in $PATH; do
9472 # Account for people who put trailing slashes in PATH elements.
9473 case "$ac_dir/" in
9474 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9475 *)
9476 # OSF1 and SCO ODT 3.0 have their own names for install.
9477 # Don't use installbsd from OSF since it installs stuff as root
9478 # by default.
9479 for ac_prog in ginstall scoinst install; do
9480 if test -f $ac_dir/$ac_prog; then
9481 if test $ac_prog = install &&
9482 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9483 # AIX install. It has an incompatible calling convention.
9484 :
9485 else
9486 ac_cv_path_install="$ac_dir/$ac_prog -c"
9487 break 2
9488 fi
9489 fi
9490 done
9491 ;;
9492 esac
9493 done
9494 IFS="$ac_save_IFS"
9495
9496fi
9497 if test "${ac_cv_path_install+set}" = set; then
9498 INSTALL="$ac_cv_path_install"
9499 else
9500 # As a last resort, use the slow shell script. We don't cache a
9501 # path for INSTALL within a source directory, because that will
9502 # break other packages using the cache if that directory is
9503 # removed, or if the path is relative.
9504 INSTALL="$ac_install_sh"
9505 fi
9506fi
9507echo "$ac_t""$INSTALL" 1>&6
9508
9509# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9510# It thinks the first close brace ends the variable substitution.
9511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9512
9513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9514
9515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9516
9517
9518case ${INSTALL} in
9519 /* ) # Absolute
9520 ;;
9521 ?:* ) # Drive letter, considered as absolute.
9522 ;;
9523 *)
9524 INSTALL=`pwd`/${INSTALL} ;;
9525esac
9526
9527case ${host} in
9528 *-hp-hpux* )
9529 INSTALL_DIR="mkdir"
9530 ;;
9531
9532 *) INSTALL_DIR="$INSTALL -d"
9533 ;;
9534esac
9535
9536
9537case "${host}" in
9538
9539 powerpc-*-darwin* )
9540 INSTALL_PROGRAM="cp -fp"
9541 INSTALL_DATA="cp -fp"
9542 ;;
9543 *)
9544 ;;
9545esac
9546
9547# Extract the first word of "strip", so it can be a program name with args.
9548set dummy strip; ac_word=$2
9549echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9550echo "configure:9551: checking for $ac_word" >&5
9551if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553else
9554 if test -n "$STRIP"; then
9555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9556else
9557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9558 ac_dummy="$PATH"
9559 for ac_dir in $ac_dummy; do
9560 test -z "$ac_dir" && ac_dir=.
9561 if test -f $ac_dir/$ac_word; then
9562 ac_cv_prog_STRIP="strip"
9563 break
9564 fi
9565 done
9566 IFS="$ac_save_ifs"
9567 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9568fi
9569fi
9570STRIP="$ac_cv_prog_STRIP"
9571if test -n "$STRIP"; then
9572 echo "$ac_t""$STRIP" 1>&6
9573else
9574 echo "$ac_t""no" 1>&6
9575fi
9576
9577
9578echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9579echo "configure:9580: checking if make is GNU make" >&5
9580if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582else
9583
9584 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9585 egrep -s GNU > /dev/null); then
9586 wx_cv_prog_makeisgnu="yes"
9587 else
9588 wx_cv_prog_makeisgnu="no"
9589 fi
9590
9591fi
9592
9593echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9594
9595if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9596 IF_GNU_MAKE=""
9597else
9598 IF_GNU_MAKE="#"
9599fi
9600
9601
9602
9603if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9604echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9605echo "configure:9606: checking if make supports VPATH" >&5
9606if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9607 echo $ac_n "(cached) $ac_c" 1>&6
9608else
9609
9610cat - << EOF > confMake
9611check : file
9612 cp \$? \$@
9613 cp \$? final_file
9614EOF
9615
9616if test ! -d sub ; then
9617 mkdir sub
9618fi
9619echo dummy > sub/file
9620${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9621RESULT=$?
9622rm -f sub/file check final_file confMake
9623rmdir sub
9624if test "$RESULT" = 0; then
9625 wx_cv_prog_makevpath="yes"
9626else
9627 wx_cv_prog_makevpath="no"
9628fi
9629
9630fi
9631
9632echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9633
9634if test "x$wx_cv_prog_makevpath" != "xyes"; then
9635{ echo "configure: error:
9636You need a make-utility that is able to use the variable
9637VPATH correctly.
9638If your version of make does not support VPATH correctly,
9639please install GNU-make (possibly as gmake), and start
9640configure with the following command:
9641export MAKE=gmake; ./configure for sh-type shells
9642setenv MAKE gmake; ./configure for csh-type shells
9643Also please do remember to use gmake in this case every time
9644you are trying to compile.
9645" 1>&2; exit 1; }
9646fi fi
9647for ac_prog in 'bison -y' byacc
9648do
9649# Extract the first word of "$ac_prog", so it can be a program name with args.
9650set dummy $ac_prog; ac_word=$2
9651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9652echo "configure:9653: checking for $ac_word" >&5
9653if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9655else
9656 if test -n "$YACC"; then
9657 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9658else
9659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9660 ac_dummy="$PATH"
9661 for ac_dir in $ac_dummy; do
9662 test -z "$ac_dir" && ac_dir=.
9663 if test -f $ac_dir/$ac_word; then
9664 ac_cv_prog_YACC="$ac_prog"
9665 break
9666 fi
9667 done
9668 IFS="$ac_save_ifs"
9669fi
9670fi
9671YACC="$ac_cv_prog_YACC"
9672if test -n "$YACC"; then
9673 echo "$ac_t""$YACC" 1>&6
9674else
9675 echo "$ac_t""no" 1>&6
9676fi
9677
9678test -n "$YACC" && break
9679done
9680test -n "$YACC" || YACC="yacc"
9681
9682
9683# Extract the first word of "flex", so it can be a program name with args.
9684set dummy flex; ac_word=$2
9685echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9686echo "configure:9687: checking for $ac_word" >&5
9687if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
9689else
9690 if test -n "$LEX"; then
9691 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9692else
9693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9694 ac_dummy="$PATH"
9695 for ac_dir in $ac_dummy; do
9696 test -z "$ac_dir" && ac_dir=.
9697 if test -f $ac_dir/$ac_word; then
9698 ac_cv_prog_LEX="flex"
9699 break
9700 fi
9701 done
9702 IFS="$ac_save_ifs"
9703 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9704fi
9705fi
9706LEX="$ac_cv_prog_LEX"
9707if test -n "$LEX"; then
9708 echo "$ac_t""$LEX" 1>&6
9709else
9710 echo "$ac_t""no" 1>&6
9711fi
9712
9713if test -z "$LEXLIB"
9714then
9715 case "$LEX" in
9716 flex*) ac_lib=fl ;;
9717 *) ac_lib=l ;;
9718 esac
9719 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9720echo "configure:9721: checking for yywrap in -l$ac_lib" >&5
9721ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9722if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9724else
9725 ac_save_LIBS="$LIBS"
9726LIBS="-l$ac_lib $LIBS"
9727cat > conftest.$ac_ext <<EOF
9728#line 9729 "configure"
9729#include "confdefs.h"
9730/* Override any gcc2 internal prototype to avoid an error. */
9731/* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733char yywrap();
9734
9735int main() {
9736yywrap()
9737; return 0; }
9738EOF
9739if { (eval echo configure:9740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9740 rm -rf conftest*
9741 eval "ac_cv_lib_$ac_lib_var=yes"
9742else
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 eval "ac_cv_lib_$ac_lib_var=no"
9747fi
9748rm -f conftest*
9749LIBS="$ac_save_LIBS"
9750
9751fi
9752if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 LEXLIB="-l$ac_lib"
9755else
9756 echo "$ac_t""no" 1>&6
9757fi
9758
9759fi
9760
9761
9762echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9763echo "configure:9764: checking whether ln -s works" >&5
9764if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9765 echo $ac_n "(cached) $ac_c" 1>&6
9766else
9767 rm -f conftestdata
9768if ln -s X conftestdata 2>/dev/null
9769then
9770 rm -f conftestdata
9771 ac_cv_prog_LN_S="ln -s"
9772else
9773 ac_cv_prog_LN_S=ln
9774fi
9775fi
9776LN_S="$ac_cv_prog_LN_S"
9777if test "$ac_cv_prog_LN_S" = "ln -s"; then
9778 echo "$ac_t""yes" 1>&6
9779else
9780 echo "$ac_t""no" 1>&6
9781fi
9782
9783
9784case "${host}" in
9785 *-pc-os2_emx | *-pc-os2-emx )
9786 LIBS="$LIBS -lstdcpp"
9787 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9788 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9789echo "configure:9790: checking for drand48 in -lcExt" >&5
9790ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9791if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9793else
9794 ac_save_LIBS="$LIBS"
9795LIBS="-lcExt $LIBS"
9796cat > conftest.$ac_ext <<EOF
9797#line 9798 "configure"
9798#include "confdefs.h"
9799/* Override any gcc2 internal prototype to avoid an error. */
9800/* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9802char drand48();
9803
9804int main() {
9805drand48()
9806; return 0; }
9807EOF
9808if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 rm -rf conftest*
9810 eval "ac_cv_lib_$ac_lib_var=yes"
9811else
9812 echo "configure: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 rm -rf conftest*
9815 eval "ac_cv_lib_$ac_lib_var=no"
9816fi
9817rm -f conftest*
9818LIBS="$ac_save_LIBS"
9819
9820fi
9821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9822 echo "$ac_t""yes" 1>&6
9823 LIBS="$LIBS -lcExt"
9824else
9825 echo "$ac_t""no" 1>&6
9826fi
9827
9828 else
9829 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9830 fi
9831 ;;
9832esac
9833
9834
9835if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9836 for ac_hdr in strings.h
9837do
9838ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9839echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9840echo "configure:9841: checking for $ac_hdr" >&5
9841if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9843else
9844 cat > conftest.$ac_ext <<EOF
9845#line 9846 "configure"
9846#include "confdefs.h"
9847#include <$ac_hdr>
9848EOF
9849ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9850{ (eval echo configure:9851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9851ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9852if test -z "$ac_err"; then
9853 rm -rf conftest*
9854 eval "ac_cv_header_$ac_safe=yes"
9855else
9856 echo "$ac_err" >&5
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 rm -rf conftest*
9860 eval "ac_cv_header_$ac_safe=no"
9861fi
9862rm -f conftest*
9863fi
9864if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9865 echo "$ac_t""yes" 1>&6
9866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9867 cat >> confdefs.h <<EOF
9868#define $ac_tr_hdr 1
9869EOF
9870
9871else
9872 echo "$ac_t""no" 1>&6
9873fi
9874done
9875
9876fi
9877
9878for ac_hdr in stdlib.h
9879do
9880ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9881echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9882echo "configure:9883: checking for $ac_hdr" >&5
9883if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9885else
9886 cat > conftest.$ac_ext <<EOF
9887#line 9888 "configure"
9888#include "confdefs.h"
9889#include <$ac_hdr>
9890EOF
9891ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9892{ (eval echo configure:9893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9893ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9894if test -z "$ac_err"; then
9895 rm -rf conftest*
9896 eval "ac_cv_header_$ac_safe=yes"
9897else
9898 echo "$ac_err" >&5
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -rf conftest*
9902 eval "ac_cv_header_$ac_safe=no"
9903fi
9904rm -f conftest*
9905fi
9906if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9907 echo "$ac_t""yes" 1>&6
9908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9909 cat >> confdefs.h <<EOF
9910#define $ac_tr_hdr 1
9911EOF
9912
9913else
9914 echo "$ac_t""no" 1>&6
9915fi
9916done
9917
9918for ac_hdr in malloc.h
9919do
9920ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9921echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9922echo "configure:9923: checking for $ac_hdr" >&5
9923if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925else
9926 cat > conftest.$ac_ext <<EOF
9927#line 9928 "configure"
9928#include "confdefs.h"
9929#include <$ac_hdr>
9930EOF
9931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9932{ (eval echo configure:9933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9934if test -z "$ac_err"; then
9935 rm -rf conftest*
9936 eval "ac_cv_header_$ac_safe=yes"
9937else
9938 echo "$ac_err" >&5
9939 echo "configure: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 rm -rf conftest*
9942 eval "ac_cv_header_$ac_safe=no"
9943fi
9944rm -f conftest*
9945fi
9946if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9947 echo "$ac_t""yes" 1>&6
9948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9949 cat >> confdefs.h <<EOF
9950#define $ac_tr_hdr 1
9951EOF
9952
9953else
9954 echo "$ac_t""no" 1>&6
9955fi
9956done
9957
9958for ac_hdr in unistd.h
9959do
9960ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9961echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9962echo "configure:9963: checking for $ac_hdr" >&5
9963if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9965else
9966 cat > conftest.$ac_ext <<EOF
9967#line 9968 "configure"
9968#include "confdefs.h"
9969#include <$ac_hdr>
9970EOF
9971ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9972{ (eval echo configure:9973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9973ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9974if test -z "$ac_err"; then
9975 rm -rf conftest*
9976 eval "ac_cv_header_$ac_safe=yes"
9977else
9978 echo "$ac_err" >&5
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 rm -rf conftest*
9982 eval "ac_cv_header_$ac_safe=no"
9983fi
9984rm -f conftest*
9985fi
9986if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9987 echo "$ac_t""yes" 1>&6
9988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9989 cat >> confdefs.h <<EOF
9990#define $ac_tr_hdr 1
9991EOF
9992
9993else
9994 echo "$ac_t""no" 1>&6
9995fi
9996done
9997
9998for ac_hdr in wchar.h
9999do
10000ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10001echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10002echo "configure:10003: checking for $ac_hdr" >&5
10003if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10005else
10006 cat > conftest.$ac_ext <<EOF
10007#line 10008 "configure"
10008#include "confdefs.h"
10009#include <$ac_hdr>
10010EOF
10011ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10012{ (eval echo configure:10013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10013ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10014if test -z "$ac_err"; then
10015 rm -rf conftest*
10016 eval "ac_cv_header_$ac_safe=yes"
10017else
10018 echo "$ac_err" >&5
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 rm -rf conftest*
10022 eval "ac_cv_header_$ac_safe=no"
10023fi
10024rm -f conftest*
10025fi
10026if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10027 echo "$ac_t""yes" 1>&6
10028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10029 cat >> confdefs.h <<EOF
10030#define $ac_tr_hdr 1
10031EOF
10032
10033else
10034 echo "$ac_t""no" 1>&6
10035fi
10036done
10037
10038
10039if test "$ac_cv_header_wchar_h" != "yes"; then
10040 for ac_hdr in wcstr.h
10041do
10042ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10043echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10044echo "configure:10045: checking for $ac_hdr" >&5
10045if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10047else
10048 cat > conftest.$ac_ext <<EOF
10049#line 10050 "configure"
10050#include "confdefs.h"
10051#include <$ac_hdr>
10052EOF
10053ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10054{ (eval echo configure:10055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10055ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10056if test -z "$ac_err"; then
10057 rm -rf conftest*
10058 eval "ac_cv_header_$ac_safe=yes"
10059else
10060 echo "$ac_err" >&5
10061 echo "configure: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10063 rm -rf conftest*
10064 eval "ac_cv_header_$ac_safe=no"
10065fi
10066rm -f conftest*
10067fi
10068if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
10070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10071 cat >> confdefs.h <<EOF
10072#define $ac_tr_hdr 1
10073EOF
10074
10075else
10076 echo "$ac_t""no" 1>&6
10077fi
10078done
10079
10080fi
10081
10082for ac_hdr in fnmatch.h
10083do
10084ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10085echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10086echo "configure:10087: checking for $ac_hdr" >&5
10087if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10089else
10090 cat > conftest.$ac_ext <<EOF
10091#line 10092 "configure"
10092#include "confdefs.h"
10093#include <$ac_hdr>
10094EOF
10095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10096{ (eval echo configure:10097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10098if test -z "$ac_err"; then
10099 rm -rf conftest*
10100 eval "ac_cv_header_$ac_safe=yes"
10101else
10102 echo "$ac_err" >&5
10103 echo "configure: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 rm -rf conftest*
10106 eval "ac_cv_header_$ac_safe=no"
10107fi
10108rm -f conftest*
10109fi
10110if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10111 echo "$ac_t""yes" 1>&6
10112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10113 cat >> confdefs.h <<EOF
10114#define $ac_tr_hdr 1
10115EOF
10116
10117else
10118 echo "$ac_t""no" 1>&6
10119fi
10120done
10121
10122
10123if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10124 for ac_func in fnmatch
10125do
10126echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10127echo "configure:10128: checking for $ac_func" >&5
10128if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10129 echo $ac_n "(cached) $ac_c" 1>&6
10130else
10131 cat > conftest.$ac_ext <<EOF
10132#line 10133 "configure"
10133#include "confdefs.h"
10134/* System header to define __stub macros and hopefully few prototypes,
10135 which can conflict with char $ac_func(); below. */
10136#include <assert.h>
10137/* Override any gcc2 internal prototype to avoid an error. */
10138/* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10140char $ac_func();
10141
10142int main() {
10143
10144/* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
10147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10148choke me
10149#else
10150$ac_func();
10151#endif
10152
10153; return 0; }
10154EOF
10155if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10156 rm -rf conftest*
10157 eval "ac_cv_func_$ac_func=yes"
10158else
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -rf conftest*
10162 eval "ac_cv_func_$ac_func=no"
10163fi
10164rm -f conftest*
10165fi
10166
10167if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10168 echo "$ac_t""yes" 1>&6
10169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10170 cat >> confdefs.h <<EOF
10171#define $ac_tr_func 1
10172EOF
10173
10174else
10175 echo "$ac_t""no" 1>&6
10176fi
10177done
10178
10179fi
10180
10181for ac_hdr in langinfo.h
10182do
10183ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10184echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10185echo "configure:10186: checking for $ac_hdr" >&5
10186if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188else
10189 cat > conftest.$ac_ext <<EOF
10190#line 10191 "configure"
10191#include "confdefs.h"
10192#include <$ac_hdr>
10193EOF
10194ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10195{ (eval echo configure:10196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10196ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10197if test -z "$ac_err"; then
10198 rm -rf conftest*
10199 eval "ac_cv_header_$ac_safe=yes"
10200else
10201 echo "$ac_err" >&5
10202 echo "configure: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10204 rm -rf conftest*
10205 eval "ac_cv_header_$ac_safe=no"
10206fi
10207rm -f conftest*
10208fi
10209if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10210 echo "$ac_t""yes" 1>&6
10211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10212 cat >> confdefs.h <<EOF
10213#define $ac_tr_hdr 1
10214EOF
10215
10216else
10217 echo "$ac_t""no" 1>&6
10218fi
10219done
10220
10221
10222case "${host}" in
10223 *-pc-os2_emx | *-pc-os2-emx )
10224 if test $ac_cv_header_langinfo_h = "yes"; then
10225 LIBS="$LIBS -lintl"
10226 fi
10227 ;;
10228esac
10229
10230if test "$wxUSE_GUI" = "yes"; then
10231 if test "$wxUSE_UNIX" = "yes"; then
10232 for ac_hdr in X11/XKBlib.h
10233do
10234ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10235echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10236echo "configure:10237: checking for $ac_hdr" >&5
10237if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239else
10240 cat > conftest.$ac_ext <<EOF
10241#line 10242 "configure"
10242#include "confdefs.h"
10243#include <$ac_hdr>
10244EOF
10245ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10246{ (eval echo configure:10247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10247ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10248if test -z "$ac_err"; then
10249 rm -rf conftest*
10250 eval "ac_cv_header_$ac_safe=yes"
10251else
10252 echo "$ac_err" >&5
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 rm -rf conftest*
10256 eval "ac_cv_header_$ac_safe=no"
10257fi
10258rm -f conftest*
10259fi
10260if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10261 echo "$ac_t""yes" 1>&6
10262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10263 cat >> confdefs.h <<EOF
10264#define $ac_tr_hdr 1
10265EOF
10266
10267else
10268 echo "$ac_t""no" 1>&6
10269fi
10270done
10271
10272 fi
10273fi
10274
10275
10276echo $ac_n "checking for working const""... $ac_c" 1>&6
10277echo "configure:10278: checking for working const" >&5
10278if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10279 echo $ac_n "(cached) $ac_c" 1>&6
10280else
10281 cat > conftest.$ac_ext <<EOF
10282#line 10283 "configure"
10283#include "confdefs.h"
10284
10285int main() {
10286
10287/* Ultrix mips cc rejects this. */
10288typedef int charset[2]; const charset x;
10289/* SunOS 4.1.1 cc rejects this. */
10290char const *const *ccp;
10291char **p;
10292/* NEC SVR4.0.2 mips cc rejects this. */
10293struct point {int x, y;};
10294static struct point const zero = {0,0};
10295/* AIX XL C 1.02.0.0 rejects this.
10296 It does not let you subtract one const X* pointer from another in an arm
10297 of an if-expression whose if-part is not a constant expression */
10298const char *g = "string";
10299ccp = &g + (g ? g-g : 0);
10300/* HPUX 7.0 cc rejects these. */
10301++ccp;
10302p = (char**) ccp;
10303ccp = (char const *const *) p;
10304{ /* SCO 3.2v4 cc rejects this. */
10305 char *t;
10306 char const *s = 0 ? (char *) 0 : (char const *) 0;
10307
10308 *t++ = 0;
10309}
10310{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10311 int x[] = {25, 17};
10312 const int *foo = &x[0];
10313 ++foo;
10314}
10315{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10316 typedef const int *iptr;
10317 iptr p = 0;
10318 ++p;
10319}
10320{ /* AIX XL C 1.02.0.0 rejects this saying
10321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10322 struct s { int j; const int *ap[3]; };
10323 struct s *b; b->j = 5;
10324}
10325{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10326 const int foo = 10;
10327}
10328
10329; return 0; }
10330EOF
10331if { (eval echo configure:10332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10332 rm -rf conftest*
10333 ac_cv_c_const=yes
10334else
10335 echo "configure: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10337 rm -rf conftest*
10338 ac_cv_c_const=no
10339fi
10340rm -f conftest*
10341fi
10342
10343echo "$ac_t""$ac_cv_c_const" 1>&6
10344if test $ac_cv_c_const = no; then
10345 cat >> confdefs.h <<\EOF
10346#define const
10347EOF
10348
10349fi
10350
10351echo $ac_n "checking for inline""... $ac_c" 1>&6
10352echo "configure:10353: checking for inline" >&5
10353if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355else
10356 ac_cv_c_inline=no
10357for ac_kw in inline __inline__ __inline; do
10358 cat > conftest.$ac_ext <<EOF
10359#line 10360 "configure"
10360#include "confdefs.h"
10361
10362int main() {
10363} $ac_kw foo() {
10364; return 0; }
10365EOF
10366if { (eval echo configure:10367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10367 rm -rf conftest*
10368 ac_cv_c_inline=$ac_kw; break
10369else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372fi
10373rm -f conftest*
10374done
10375
10376fi
10377
10378echo "$ac_t""$ac_cv_c_inline" 1>&6
10379case "$ac_cv_c_inline" in
10380 inline | yes) ;;
10381 no) cat >> confdefs.h <<\EOF
10382#define inline
10383EOF
10384 ;;
10385 *) cat >> confdefs.h <<EOF
10386#define inline $ac_cv_c_inline
10387EOF
10388 ;;
10389esac
10390
10391
10392echo $ac_n "checking size of char""... $ac_c" 1>&6
10393echo "configure:10394: checking size of char" >&5
10394if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
10396else
10397 if test "$cross_compiling" = yes; then
10398 ac_cv_sizeof_char=1
10399else
10400 cat > conftest.$ac_ext <<EOF
10401#line 10402 "configure"
10402#include "confdefs.h"
10403#include <stdio.h>
10404#include <sys/types.h>
10405main()
10406{
10407 FILE *f=fopen("conftestval", "w");
10408 if (!f) exit(1);
10409 fprintf(f, "%d\n", sizeof(char));
10410 exit(0);
10411}
10412EOF
10413if { (eval echo configure:10414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10414then
10415 ac_cv_sizeof_char=`cat conftestval`
10416else
10417 echo "configure: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 rm -fr conftest*
10420 ac_cv_sizeof_char=0
10421fi
10422rm -fr conftest*
10423fi
10424
10425fi
10426echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10427cat >> confdefs.h <<EOF
10428#define SIZEOF_CHAR $ac_cv_sizeof_char
10429EOF
10430
10431
10432echo $ac_n "checking size of short""... $ac_c" 1>&6
10433echo "configure:10434: checking size of short" >&5
10434if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10436else
10437 if test "$cross_compiling" = yes; then
10438 ac_cv_sizeof_short=2
10439else
10440 cat > conftest.$ac_ext <<EOF
10441#line 10442 "configure"
10442#include "confdefs.h"
10443#include <stdio.h>
10444#include <sys/types.h>
10445main()
10446{
10447 FILE *f=fopen("conftestval", "w");
10448 if (!f) exit(1);
10449 fprintf(f, "%d\n", sizeof(short));
10450 exit(0);
10451}
10452EOF
10453if { (eval echo configure:10454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10454then
10455 ac_cv_sizeof_short=`cat conftestval`
10456else
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 rm -fr conftest*
10460 ac_cv_sizeof_short=0
10461fi
10462rm -fr conftest*
10463fi
10464
10465fi
10466echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10467cat >> confdefs.h <<EOF
10468#define SIZEOF_SHORT $ac_cv_sizeof_short
10469EOF
10470
10471
10472echo $ac_n "checking size of void *""... $ac_c" 1>&6
10473echo "configure:10474: checking size of void *" >&5
10474if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476else
10477 if test "$cross_compiling" = yes; then
10478 ac_cv_sizeof_void_p=4
10479else
10480 cat > conftest.$ac_ext <<EOF
10481#line 10482 "configure"
10482#include "confdefs.h"
10483#include <stdio.h>
10484#include <sys/types.h>
10485main()
10486{
10487 FILE *f=fopen("conftestval", "w");
10488 if (!f) exit(1);
10489 fprintf(f, "%d\n", sizeof(void *));
10490 exit(0);
10491}
10492EOF
10493if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10494then
10495 ac_cv_sizeof_void_p=`cat conftestval`
10496else
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 rm -fr conftest*
10500 ac_cv_sizeof_void_p=0
10501fi
10502rm -fr conftest*
10503fi
10504
10505fi
10506echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10507cat >> confdefs.h <<EOF
10508#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10509EOF
10510
10511
10512echo $ac_n "checking size of int""... $ac_c" 1>&6
10513echo "configure:10514: checking size of int" >&5
10514if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10516else
10517 if test "$cross_compiling" = yes; then
10518 ac_cv_sizeof_int=4
10519else
10520 cat > conftest.$ac_ext <<EOF
10521#line 10522 "configure"
10522#include "confdefs.h"
10523#include <stdio.h>
10524#include <sys/types.h>
10525main()
10526{
10527 FILE *f=fopen("conftestval", "w");
10528 if (!f) exit(1);
10529 fprintf(f, "%d\n", sizeof(int));
10530 exit(0);
10531}
10532EOF
10533if { (eval echo configure:10534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10534then
10535 ac_cv_sizeof_int=`cat conftestval`
10536else
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 rm -fr conftest*
10540 ac_cv_sizeof_int=0
10541fi
10542rm -fr conftest*
10543fi
10544
10545fi
10546echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10547cat >> confdefs.h <<EOF
10548#define SIZEOF_INT $ac_cv_sizeof_int
10549EOF
10550
10551
10552echo $ac_n "checking size of long""... $ac_c" 1>&6
10553echo "configure:10554: checking size of long" >&5
10554if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
10556else
10557 if test "$cross_compiling" = yes; then
10558 ac_cv_sizeof_long=4
10559else
10560 cat > conftest.$ac_ext <<EOF
10561#line 10562 "configure"
10562#include "confdefs.h"
10563#include <stdio.h>
10564#include <sys/types.h>
10565main()
10566{
10567 FILE *f=fopen("conftestval", "w");
10568 if (!f) exit(1);
10569 fprintf(f, "%d\n", sizeof(long));
10570 exit(0);
10571}
10572EOF
10573if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10574then
10575 ac_cv_sizeof_long=`cat conftestval`
10576else
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 rm -fr conftest*
10580 ac_cv_sizeof_long=0
10581fi
10582rm -fr conftest*
10583fi
10584
10585fi
10586echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10587cat >> confdefs.h <<EOF
10588#define SIZEOF_LONG $ac_cv_sizeof_long
10589EOF
10590
10591
10592
10593case "${host}" in
10594 arm-*-linux* )
10595 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10596echo "configure:10597: checking size of long long" >&5
10597if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10599else
10600 if test "$cross_compiling" = yes; then
10601 ac_cv_sizeof_long_long=8
10602else
10603 cat > conftest.$ac_ext <<EOF
10604#line 10605 "configure"
10605#include "confdefs.h"
10606#include <stdio.h>
10607#include <sys/types.h>
10608main()
10609{
10610 FILE *f=fopen("conftestval", "w");
10611 if (!f) exit(1);
10612 fprintf(f, "%d\n", sizeof(long long));
10613 exit(0);
10614}
10615EOF
10616if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10617then
10618 ac_cv_sizeof_long_long=`cat conftestval`
10619else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -fr conftest*
10623 ac_cv_sizeof_long_long=0
10624fi
10625rm -fr conftest*
10626fi
10627
10628fi
10629echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10630cat >> confdefs.h <<EOF
10631#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10632EOF
10633
10634
10635 ;;
10636 *-hp-hpux* )
10637 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10638echo "configure:10639: checking size of long long" >&5
10639if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10640 echo $ac_n "(cached) $ac_c" 1>&6
10641else
10642 if test "$cross_compiling" = yes; then
10643 ac_cv_sizeof_long_long=0
10644else
10645 cat > conftest.$ac_ext <<EOF
10646#line 10647 "configure"
10647#include "confdefs.h"
10648#include <stdio.h>
10649#include <sys/types.h>
10650main()
10651{
10652 FILE *f=fopen("conftestval", "w");
10653 if (!f) exit(1);
10654 fprintf(f, "%d\n", sizeof(long long));
10655 exit(0);
10656}
10657EOF
10658if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10659then
10660 ac_cv_sizeof_long_long=`cat conftestval`
10661else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -fr conftest*
10665 ac_cv_sizeof_long_long=0
10666fi
10667rm -fr conftest*
10668fi
10669
10670fi
10671echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10672cat >> confdefs.h <<EOF
10673#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10674EOF
10675
10676
10677 if test "$ac_cv_sizeof_long_long" != "0"; then
10678 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10679 fi
10680 ;;
10681 * )
10682 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10683echo "configure:10684: checking size of long long" >&5
10684if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10685 echo $ac_n "(cached) $ac_c" 1>&6
10686else
10687 if test "$cross_compiling" = yes; then
10688 ac_cv_sizeof_long_long=0
10689else
10690 cat > conftest.$ac_ext <<EOF
10691#line 10692 "configure"
10692#include "confdefs.h"
10693#include <stdio.h>
10694#include <sys/types.h>
10695main()
10696{
10697 FILE *f=fopen("conftestval", "w");
10698 if (!f) exit(1);
10699 fprintf(f, "%d\n", sizeof(long long));
10700 exit(0);
10701}
10702EOF
10703if { (eval echo configure:10704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10704then
10705 ac_cv_sizeof_long_long=`cat conftestval`
10706else
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 rm -fr conftest*
10710 ac_cv_sizeof_long_long=0
10711fi
10712rm -fr conftest*
10713fi
10714
10715fi
10716echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10717cat >> confdefs.h <<EOF
10718#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10719EOF
10720
10721
10722esac
10723
10724echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10725echo "configure:10726: checking size of wchar_t" >&5
10726if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10728else
10729
10730 if test "$cross_compiling" = yes; then
10731
10732 case "${host}" in
10733 *-pc-msdosdjgpp )
10734 wx_cv_sizeof_wchar_t=0
10735 ;;
10736 * )
10737 wx_cv_sizeof_wchar_t=4
10738 ;;
10739 esac
10740
10741
10742else
10743 cat > conftest.$ac_ext <<EOF
10744#line 10745 "configure"
10745#include "confdefs.h"
10746
10747 /* DJGPP only has fake wchar_t: */
10748 #ifdef __DJGPP__
10749 # error "fake wchar_t"
10750 #endif
10751 #ifdef HAVE_WCHAR_H
10752 # ifdef __CYGWIN__
10753 # include <stddef.h>
10754 # endif
10755 # include <wchar.h>
10756 #endif
10757 #ifdef HAVE_STDLIB_H
10758 # include <stdlib.h>
10759 #endif
10760 #include <stdio.h>
10761 int main()
10762 {
10763 FILE *f=fopen("conftestval", "w");
10764 if (!f) exit(1);
10765 fprintf(f, "%i", sizeof(wchar_t));
10766 exit(0);
10767 }
10768
10769EOF
10770if { (eval echo configure:10771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10771then
10772 wx_cv_sizeof_wchar_t=`cat conftestval`
10773else
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 rm -fr conftest*
10777 wx_cv_sizeof_wchar_t=0
10778fi
10779rm -fr conftest*
10780fi
10781
10782
10783fi
10784
10785echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10786
10787cat >> confdefs.h <<EOF
10788#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10789EOF
10790
10791
10792# Check whether --enable-largefile or --disable-largefile was given.
10793if test "${enable_largefile+set}" = set; then
10794 enableval="$enable_largefile"
10795 :
10796fi
10797
10798if test "$enable_largefile" != no; then
10799 wx_largefile=no
10800
10801 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10802echo "configure:10803: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10803if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10805else
10806
10807 cat > conftest.$ac_ext <<EOF
10808#line 10809 "configure"
10809#include "confdefs.h"
10810#define _FILE_OFFSET_BITS 64
10811 #include <sys/types.h>
10812int main() {
10813typedef struct {
10814 unsigned int field: sizeof(off_t) == 8;
10815} wxlf;
10816
10817; return 0; }
10818EOF
10819if { (eval echo configure:10820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10820 rm -rf conftest*
10821 ac_cv_sys_file_offset_bits=64
10822else
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -rf conftest*
10826 ac_cv_sys_file_offset_bits=no
10827fi
10828rm -f conftest*
10829
10830
10831fi
10832
10833echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10834
10835 if test "$ac_cv_sys_file_offset_bits" != no; then
10836 wx_largefile=yes
10837 cat >> confdefs.h <<EOF
10838#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10839EOF
10840
10841 fi
10842
10843 if test "x$wx_largefile" != "xyes"; then
10844
10845 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10846echo "configure:10847: checking for _LARGE_FILES value needed for large files" >&5
10847if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10849else
10850
10851 cat > conftest.$ac_ext <<EOF
10852#line 10853 "configure"
10853#include "confdefs.h"
10854#define _LARGE_FILES 1
10855 #include <sys/types.h>
10856int main() {
10857typedef struct {
10858 unsigned int field: sizeof(off_t) == 8;
10859} wxlf;
10860
10861; return 0; }
10862EOF
10863if { (eval echo configure:10864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10864 rm -rf conftest*
10865 ac_cv_sys_large_files=1
10866else
10867 echo "configure: failed program was:" >&5
10868 cat conftest.$ac_ext >&5
10869 rm -rf conftest*
10870 ac_cv_sys_large_files=no
10871fi
10872rm -f conftest*
10873
10874
10875fi
10876
10877echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10878
10879 if test "$ac_cv_sys_large_files" != no; then
10880 wx_largefile=yes
10881 cat >> confdefs.h <<EOF
10882#define _LARGE_FILES $ac_cv_sys_large_files
10883EOF
10884
10885 fi
10886
10887 fi
10888
10889 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10890echo "configure:10891: checking if large file support is available" >&5
10891 if test "x$wx_largefile" = "xyes"; then
10892 cat >> confdefs.h <<\EOF
10893#define HAVE_LARGEFILE_SUPPORT 1
10894EOF
10895
10896 fi
10897 echo "$ac_t""$wx_largefile" 1>&6
10898fi
10899
10900
10901if test "x$wx_largefile" = "xyes"; then
10902 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10903 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10904 else
10905 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10906 fi
10907 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10908fi
10909
10910echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10911echo "configure:10912: checking whether byte ordering is bigendian" >&5
10912if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10913 echo $ac_n "(cached) $ac_c" 1>&6
10914else
10915 ac_cv_c_bigendian=unknown
10916# See if sys/param.h defines the BYTE_ORDER macro.
10917cat > conftest.$ac_ext <<EOF
10918#line 10919 "configure"
10919#include "confdefs.h"
10920#include <sys/types.h>
10921#include <sys/param.h>
10922int main() {
10923
10924#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10925 bogus endian macros
10926#endif
10927; return 0; }
10928EOF
10929if { (eval echo configure:10930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10930 rm -rf conftest*
10931 # It does; now see whether it defined to BIG_ENDIAN or not.
10932cat > conftest.$ac_ext <<EOF
10933#line 10934 "configure"
10934#include "confdefs.h"
10935#include <sys/types.h>
10936#include <sys/param.h>
10937int main() {
10938
10939#if BYTE_ORDER != BIG_ENDIAN
10940 not big endian
10941#endif
10942; return 0; }
10943EOF
10944if { (eval echo configure:10945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10945 rm -rf conftest*
10946 ac_cv_c_bigendian=yes
10947else
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10950 rm -rf conftest*
10951 ac_cv_c_bigendian=no
10952fi
10953rm -f conftest*
10954else
10955 echo "configure: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10957fi
10958rm -f conftest*
10959if test $ac_cv_c_bigendian = unknown; then
10960if test "$cross_compiling" = yes; then
10961 ac_cv_c_bigendian=unknown
10962else
10963 cat > conftest.$ac_ext <<EOF
10964#line 10965 "configure"
10965#include "confdefs.h"
10966main () {
10967 /* Are we little or big endian? From Harbison&Steele. */
10968 union
10969 {
10970 long l;
10971 char c[sizeof (long)];
10972 } u;
10973 u.l = 1;
10974 exit (u.c[sizeof (long) - 1] == 1);
10975}
10976EOF
10977if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10978then
10979 ac_cv_c_bigendian=no
10980else
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 rm -fr conftest*
10984 ac_cv_c_bigendian=yes
10985fi
10986rm -fr conftest*
10987fi
10988
10989fi
10990fi
10991
10992echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10993if test $ac_cv_c_bigendian = unknown; then
10994 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
10995fi
10996if test $ac_cv_c_bigendian = yes; then
10997 cat >> confdefs.h <<\EOF
10998#define WORDS_BIGENDIAN 1
10999EOF
11000
11001fi
11002
11003
11004echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11005echo "configure:11006: checking how to run the C++ preprocessor" >&5
11006if test -z "$CXXCPP"; then
11007if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11009else
11010 ac_ext=C
11011# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11012ac_cpp='$CXXCPP $CPPFLAGS'
11013ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11014ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11015cross_compiling=$ac_cv_prog_cxx_cross
11016 CXXCPP="${CXX-g++} -E"
11017 cat > conftest.$ac_ext <<EOF
11018#line 11019 "configure"
11019#include "confdefs.h"
11020#include <stdlib.h>
11021EOF
11022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11023{ (eval echo configure:11024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11024ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11025if test -z "$ac_err"; then
11026 :
11027else
11028 echo "$ac_err" >&5
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 rm -rf conftest*
11032 CXXCPP=/lib/cpp
11033fi
11034rm -f conftest*
11035 ac_cv_prog_CXXCPP="$CXXCPP"
11036ac_ext=C
11037# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11038ac_cpp='$CXXCPP $CPPFLAGS'
11039ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11040ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11041cross_compiling=$ac_cv_prog_cxx_cross
11042fi
11043fi
11044CXXCPP="$ac_cv_prog_CXXCPP"
11045echo "$ac_t""$CXXCPP" 1>&6
11046
11047
11048 if test "$cross_compiling" = "yes"; then
11049 cat >> confdefs.h <<\EOF
11050#define wxUSE_IOSTREAMH 1
11051EOF
11052
11053 else
11054
11055 ac_ext=C
11056# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11057ac_cpp='$CXXCPP $CPPFLAGS'
11058ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11059ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11060cross_compiling=$ac_cv_prog_cxx_cross
11061
11062
11063 for ac_hdr in iostream
11064do
11065ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11066echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11067echo "configure:11068: checking for $ac_hdr" >&5
11068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11070else
11071 cat > conftest.$ac_ext <<EOF
11072#line 11073 "configure"
11073#include "confdefs.h"
11074#include <$ac_hdr>
11075EOF
11076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11077{ (eval echo configure:11078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11079if test -z "$ac_err"; then
11080 rm -rf conftest*
11081 eval "ac_cv_header_$ac_safe=yes"
11082else
11083 echo "$ac_err" >&5
11084 echo "configure: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11086 rm -rf conftest*
11087 eval "ac_cv_header_$ac_safe=no"
11088fi
11089rm -f conftest*
11090fi
11091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11092 echo "$ac_t""yes" 1>&6
11093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11094 cat >> confdefs.h <<EOF
11095#define $ac_tr_hdr 1
11096EOF
11097
11098else
11099 echo "$ac_t""no" 1>&6
11100fi
11101done
11102
11103
11104 if test "$ac_cv_header_iostream" = "yes" ; then
11105 :
11106 else
11107 cat >> confdefs.h <<\EOF
11108#define wxUSE_IOSTREAMH 1
11109EOF
11110
11111 fi
11112
11113 ac_ext=c
11114# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11115ac_cpp='$CPP $CPPFLAGS'
11116ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11117ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11118cross_compiling=$ac_cv_prog_cc_cross
11119
11120 fi
11121
11122
11123
11124 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11125echo "configure:11126: checking if C++ compiler supports bool" >&5
11126if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11128else
11129
11130
11131 ac_ext=C
11132# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11133ac_cpp='$CXXCPP $CPPFLAGS'
11134ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11135ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11136cross_compiling=$ac_cv_prog_cxx_cross
11137
11138
11139 cat > conftest.$ac_ext <<EOF
11140#line 11141 "configure"
11141#include "confdefs.h"
11142
11143
11144int main() {
11145
11146 bool b = true;
11147
11148 return 0;
11149
11150; return 0; }
11151EOF
11152if { (eval echo configure:11153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11153 rm -rf conftest*
11154
11155 wx_cv_cpp_bool=yes
11156
11157else
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 rm -rf conftest*
11161
11162 wx_cv_cpp_bool=no
11163
11164
11165fi
11166rm -f conftest*
11167
11168 ac_ext=c
11169# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11170ac_cpp='$CPP $CPPFLAGS'
11171ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11172ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11173cross_compiling=$ac_cv_prog_cc_cross
11174
11175
11176fi
11177
11178echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11179
11180 if test "$wx_cv_cpp_bool" = "yes"; then
11181 cat >> confdefs.h <<\EOF
11182#define HAVE_BOOL 1
11183EOF
11184
11185 fi
11186
11187
11188
11189 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11190echo "configure:11191: checking if C++ compiler supports the explicit keyword" >&5
11191if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11192 echo $ac_n "(cached) $ac_c" 1>&6
11193else
11194
11195
11196 ac_ext=C
11197# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11198ac_cpp='$CXXCPP $CPPFLAGS'
11199ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11200ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11201cross_compiling=$ac_cv_prog_cxx_cross
11202
11203
11204 cat > conftest.$ac_ext <<EOF
11205#line 11206 "configure"
11206#include "confdefs.h"
11207
11208 class Foo { public: explicit Foo(int) {} };
11209
11210int main() {
11211
11212 return 0;
11213
11214; return 0; }
11215EOF
11216if { (eval echo configure:11217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11217 rm -rf conftest*
11218
11219 cat > conftest.$ac_ext <<EOF
11220#line 11221 "configure"
11221#include "confdefs.h"
11222
11223 class Foo { public: explicit Foo(int) {} };
11224 static void TakeFoo(const Foo& foo) { }
11225
11226int main() {
11227
11228 TakeFoo(17);
11229 return 0;
11230
11231; return 0; }
11232EOF
11233if { (eval echo configure:11234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11234 rm -rf conftest*
11235 wx_cv_explicit=no
11236else
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 rm -rf conftest*
11240 wx_cv_explicit=yes
11241
11242fi
11243rm -f conftest*
11244
11245else
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11248 rm -rf conftest*
11249 wx_cv_explicit=no
11250
11251fi
11252rm -f conftest*
11253
11254 ac_ext=c
11255# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11256ac_cpp='$CPP $CPPFLAGS'
11257ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11258ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11259cross_compiling=$ac_cv_prog_cc_cross
11260
11261
11262fi
11263
11264echo "$ac_t""$wx_cv_explicit" 1>&6
11265
11266 if test "$wx_cv_explicit" = "yes"; then
11267 cat >> confdefs.h <<\EOF
11268#define HAVE_EXPLICIT 1
11269EOF
11270
11271 fi
11272
11273
11274echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11275echo "configure:11276: checking whether the compiler supports const_cast<>" >&5
11276if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11277 echo $ac_n "(cached) $ac_c" 1>&6
11278else
11279
11280 ac_ext=C
11281# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11282ac_cpp='$CXXCPP $CPPFLAGS'
11283ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11284ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11285cross_compiling=$ac_cv_prog_cxx_cross
11286
11287 cat > conftest.$ac_ext <<EOF
11288#line 11289 "configure"
11289#include "confdefs.h"
11290
11291int main() {
11292int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11293; return 0; }
11294EOF
11295if { (eval echo configure:11296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11296 rm -rf conftest*
11297 ac_cv_cxx_const_cast=yes
11298else
11299 echo "configure: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11301 rm -rf conftest*
11302 ac_cv_cxx_const_cast=no
11303fi
11304rm -f conftest*
11305 ac_ext=c
11306# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307ac_cpp='$CPP $CPPFLAGS'
11308ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310cross_compiling=$ac_cv_prog_cc_cross
11311
11312
11313fi
11314
11315echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11316if test "$ac_cv_cxx_const_cast" = yes; then
11317 cat >> confdefs.h <<\EOF
11318#define HAVE_CONST_CAST
11319EOF
11320
11321fi
11322
11323
11324
11325SEARCH_INCLUDE="\
11326 /usr/local/include \
11327 \
11328 /usr/Motif-1.2/include \
11329 /usr/Motif-2.1/include \
11330 \
11331 /usr/include/Motif1.2 \
11332 /opt/xpm/include/X11 \
11333 /opt/GBxpm/include/ \
11334 /opt/GBxpm/X11/include/ \
11335 \
11336 /usr/Motif1.2/include \
11337 /usr/dt/include \
11338 /usr/openwin/include \
11339 \
11340 /usr/include/Xm \
11341 \
11342 /usr/X11R6/include \
11343 /usr/X11R6.4/include \
11344 /usr/X11R5/include \
11345 /usr/X11R4/include \
11346 \
11347 /usr/include/X11R6 \
11348 /usr/include/X11R5 \
11349 /usr/include/X11R4 \
11350 \
11351 /usr/local/X11R6/include \
11352 /usr/local/X11R5/include \
11353 /usr/local/X11R4/include \
11354 \
11355 /usr/local/include/X11R6 \
11356 /usr/local/include/X11R5 \
11357 /usr/local/include/X11R4 \
11358 \
11359 /usr/X11/include \
11360 /usr/include/X11 \
11361 /usr/local/X11/include \
11362 /usr/local/include/X11 \
11363 \
11364 /usr/X386/include \
11365 /usr/x386/include \
11366 /usr/XFree86/include/X11 \
11367 \
11368 X:/XFree86/include \
11369 X:/XFree86/include/X11 \
11370 \
11371 /usr/include/gtk \
11372 /usr/local/include/gtk \
11373 /usr/include/glib \
11374 /usr/local/include/glib \
11375 \
11376 /usr/include/qt \
11377 /usr/local/include/qt \
11378 \
11379 /usr/include/windows \
11380 /usr/include/wine \
11381 /usr/local/include/wine \
11382 \
11383 /usr/unsupported/include \
11384 /usr/athena/include \
11385 /usr/local/x11r5/include \
11386 /usr/lpp/Xamples/include \
11387 \
11388 /usr/openwin/share/include"
11389
11390SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11391
11392
11393cat > confcache <<\EOF
11394# This file is a shell script that caches the results of configure
11395# tests run on this system so they can be shared between configure
11396# scripts and configure runs. It is not useful on other systems.
11397# If it contains results you don't want to keep, you may remove or edit it.
11398#
11399# By default, configure uses ./config.cache as the cache file,
11400# creating it if it does not exist already. You can give configure
11401# the --cache-file=FILE option to use a different cache file; that is
11402# what configure does when it calls configure scripts in
11403# subdirectories, so they share the cache.
11404# Giving --cache-file=/dev/null disables caching, for debugging configure.
11405# config.status only pays attention to the cache file if you give it the
11406# --recheck option to rerun configure.
11407#
11408EOF
11409# The following way of writing the cache mishandles newlines in values,
11410# but we know of no workaround that is simple, portable, and efficient.
11411# So, don't put newlines in cache variables' values.
11412# Ultrix sh set writes to stderr and can't be redirected directly,
11413# and sets the high bit in the cache file unless we assign to the vars.
11414(set) 2>&1 |
11415 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11416 *ac_space=\ *)
11417 # `set' does not quote correctly, so add quotes (double-quote substitution
11418 # turns \\\\ into \\, and sed turns \\ into \).
11419 sed -n \
11420 -e "s/'/'\\\\''/g" \
11421 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11422 ;;
11423 *)
11424 # `set' quotes correctly as required by POSIX, so do not add quotes.
11425 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11426 ;;
11427 esac >> confcache
11428if cmp -s $cache_file confcache; then
11429 :
11430else
11431 if test -w $cache_file; then
11432 echo "updating cache $cache_file"
11433 cat confcache > $cache_file
11434 else
11435 echo "not updating unwritable cache $cache_file"
11436 fi
11437fi
11438rm -f confcache
11439
11440
11441if test "$USE_LINUX" = 1; then
11442 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11443echo "configure:11444: checking for glibc 2.1 or later" >&5
11444if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11445 echo $ac_n "(cached) $ac_c" 1>&6
11446else
11447
11448 cat > conftest.$ac_ext <<EOF
11449#line 11450 "configure"
11450#include "confdefs.h"
11451#include <features.h>
11452int main() {
11453
11454 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11455 #error not glibc2.1
11456 #endif
11457
11458; return 0; }
11459EOF
11460if { (eval echo configure:11461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11461 rm -rf conftest*
11462
11463 wx_cv_lib_glibc21=yes
11464
11465else
11466 echo "configure: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 rm -rf conftest*
11469
11470 wx_cv_lib_glibc21=no
11471
11472
11473fi
11474rm -f conftest*
11475
11476fi
11477
11478echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11479 if test "$wx_cv_lib_glibc21" = "yes"; then
11480 cat >> confdefs.h <<\EOF
11481#define wxHAVE_GLIBC2 1
11482EOF
11483
11484 fi
11485fi
11486
11487if test "x$wx_cv_lib_glibc21" = "xyes"; then
11488 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11489 cat >> confdefs.h <<\EOF
11490#define _GNU_SOURCE 1
11491EOF
11492
11493 fi
11494fi
11495
11496
11497
11498REGEX_INCLUDE=
11499if test "$wxUSE_REGEX" != "no"; then
11500 cat >> confdefs.h <<\EOF
11501#define wxUSE_REGEX 1
11502EOF
11503
11504
11505 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11506 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11507echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11508echo "configure:11509: checking for regex.h" >&5
11509if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11511else
11512 cat > conftest.$ac_ext <<EOF
11513#line 11514 "configure"
11514#include "confdefs.h"
11515#include <regex.h>
11516EOF
11517ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11518{ (eval echo configure:11519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11519ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11520if test -z "$ac_err"; then
11521 rm -rf conftest*
11522 eval "ac_cv_header_$ac_safe=yes"
11523else
11524 echo "$ac_err" >&5
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 eval "ac_cv_header_$ac_safe=no"
11529fi
11530rm -f conftest*
11531fi
11532if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 for ac_func in regcomp
11535do
11536echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11537echo "configure:11538: checking for $ac_func" >&5
11538if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11539 echo $ac_n "(cached) $ac_c" 1>&6
11540else
11541 cat > conftest.$ac_ext <<EOF
11542#line 11543 "configure"
11543#include "confdefs.h"
11544/* System header to define __stub macros and hopefully few prototypes,
11545 which can conflict with char $ac_func(); below. */
11546#include <assert.h>
11547/* Override any gcc2 internal prototype to avoid an error. */
11548/* We use char because int might match the return type of a gcc2
11549 builtin and then its argument prototype would still apply. */
11550char $ac_func();
11551
11552int main() {
11553
11554/* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11558choke me
11559#else
11560$ac_func();
11561#endif
11562
11563; return 0; }
11564EOF
11565if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11566 rm -rf conftest*
11567 eval "ac_cv_func_$ac_func=yes"
11568else
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11571 rm -rf conftest*
11572 eval "ac_cv_func_$ac_func=no"
11573fi
11574rm -f conftest*
11575fi
11576
11577if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11578 echo "$ac_t""yes" 1>&6
11579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11580 cat >> confdefs.h <<EOF
11581#define $ac_tr_func 1
11582EOF
11583
11584else
11585 echo "$ac_t""no" 1>&6
11586fi
11587done
11588
11589else
11590 echo "$ac_t""no" 1>&6
11591fi
11592
11593
11594 if test "x$ac_cv_func_regcomp" != "xyes"; then
11595 if test "$wxUSE_REGEX" = "sys" ; then
11596 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11597 else
11598 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11599 wxUSE_REGEX=builtin
11600 fi
11601 else
11602 wxUSE_REGEX=sys
11603 fi
11604 fi
11605
11606 if test "$wxUSE_REGEX" = "builtin" ; then
11607 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11608 fi
11609fi
11610
11611
11612ZLIB_INCLUDE=
11613ZLIB_LINK=
11614if test "$wxUSE_ZLIB" != "no" ; then
11615 cat >> confdefs.h <<\EOF
11616#define wxUSE_ZLIB 1
11617EOF
11618
11619
11620 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11621 if test "$USE_DARWIN" = 1; then
11622 system_zlib_h_ok="yes"
11623 else
11624 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11625echo "configure:11626: checking for zlib.h >= 1.1.4" >&5
11626if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11628else
11629 if test "$cross_compiling" = yes; then
11630 unset ac_cv_header_zlib_h
11631
11632else
11633 cat > conftest.$ac_ext <<EOF
11634#line 11635 "configure"
11635#include "confdefs.h"
11636
11637 #include <zlib.h>
11638 #include <stdio.h>
11639
11640 int main()
11641 {
11642 FILE *f=fopen("conftestval", "w");
11643 if (!f) exit(1);
11644 fprintf(f, "%s",
11645 ZLIB_VERSION[0] == '1' &&
11646 (ZLIB_VERSION[2] > '1' ||
11647 (ZLIB_VERSION[2] == '1' &&
11648 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11649 exit(0);
11650 }
11651
11652EOF
11653if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11654then
11655 ac_cv_header_zlib_h=`cat conftestval`
11656else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -fr conftest*
11660 ac_cv_header_zlib_h=no
11661fi
11662rm -fr conftest*
11663fi
11664
11665
11666fi
11667
11668echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11669 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11670echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11671echo "configure:11672: checking for zlib.h" >&5
11672if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11674else
11675 cat > conftest.$ac_ext <<EOF
11676#line 11677 "configure"
11677#include "confdefs.h"
11678#include <zlib.h>
11679EOF
11680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11681{ (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11682ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683if test -z "$ac_err"; then
11684 rm -rf conftest*
11685 eval "ac_cv_header_$ac_safe=yes"
11686else
11687 echo "$ac_err" >&5
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 rm -rf conftest*
11691 eval "ac_cv_header_$ac_safe=no"
11692fi
11693rm -f conftest*
11694fi
11695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11696 echo "$ac_t""yes" 1>&6
11697 :
11698else
11699 echo "$ac_t""no" 1>&6
11700fi
11701
11702
11703 system_zlib_h_ok=$ac_cv_header_zlib_h
11704 fi
11705
11706 if test "$system_zlib_h_ok" = "yes"; then
11707 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11708echo "configure:11709: checking for deflate in -lz" >&5
11709ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712else
11713 ac_save_LIBS="$LIBS"
11714LIBS="-lz $LIBS"
11715cat > conftest.$ac_ext <<EOF
11716#line 11717 "configure"
11717#include "confdefs.h"
11718/* Override any gcc2 internal prototype to avoid an error. */
11719/* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721char deflate();
11722
11723int main() {
11724deflate()
11725; return 0; }
11726EOF
11727if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11728 rm -rf conftest*
11729 eval "ac_cv_lib_$ac_lib_var=yes"
11730else
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 rm -rf conftest*
11734 eval "ac_cv_lib_$ac_lib_var=no"
11735fi
11736rm -f conftest*
11737LIBS="$ac_save_LIBS"
11738
11739fi
11740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 ZLIB_LINK=" -lz"
11743else
11744 echo "$ac_t""no" 1>&6
11745fi
11746
11747 fi
11748
11749 if test "x$ZLIB_LINK" = "x" ; then
11750 if test "$wxUSE_ZLIB" = "sys" ; then
11751 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11752 else
11753 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11754 wxUSE_ZLIB=builtin
11755 fi
11756 else
11757 wxUSE_ZLIB=sys
11758 fi
11759 fi
11760
11761 if test "$wxUSE_ZLIB" = "builtin" ; then
11762 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11763 fi
11764fi
11765
11766
11767PNG_INCLUDE=
11768PNG_LINK=
11769if test "$wxUSE_LIBPNG" != "no" ; then
11770 cat >> confdefs.h <<\EOF
11771#define wxUSE_LIBPNG 1
11772EOF
11773
11774
11775 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11776 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11777 wxUSE_LIBPNG=sys
11778 fi
11779
11780 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11781 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11782 wxUSE_LIBPNG=builtin
11783 fi
11784
11785 if test "$wxUSE_MGL" != 1 ; then
11786 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11787 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11788echo "configure:11789: checking for png.h > 0.90" >&5
11789if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791else
11792 if test "$cross_compiling" = yes; then
11793 unset ac_cv_header_png_h
11794
11795else
11796 cat > conftest.$ac_ext <<EOF
11797#line 11798 "configure"
11798#include "confdefs.h"
11799
11800 #include <png.h>
11801 #include <stdio.h>
11802
11803 int main()
11804 {
11805 FILE *f=fopen("conftestval", "w");
11806 if (!f) exit(1);
11807 fprintf(f, "%s",
11808 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11809 exit(0);
11810 }
11811
11812EOF
11813if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11814then
11815 ac_cv_header_png_h=`cat conftestval`
11816else
11817 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 rm -fr conftest*
11820 ac_cv_header_png_h=no
11821fi
11822rm -fr conftest*
11823fi
11824
11825
11826fi
11827
11828echo "$ac_t""$ac_cv_header_png_h" 1>&6
11829 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11830echo $ac_n "checking for png.h""... $ac_c" 1>&6
11831echo "configure:11832: checking for png.h" >&5
11832if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11833 echo $ac_n "(cached) $ac_c" 1>&6
11834else
11835 cat > conftest.$ac_ext <<EOF
11836#line 11837 "configure"
11837#include "confdefs.h"
11838#include <png.h>
11839EOF
11840ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11841{ (eval echo configure:11842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11842ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11843if test -z "$ac_err"; then
11844 rm -rf conftest*
11845 eval "ac_cv_header_$ac_safe=yes"
11846else
11847 echo "$ac_err" >&5
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 eval "ac_cv_header_$ac_safe=no"
11852fi
11853rm -f conftest*
11854fi
11855if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11856 echo "$ac_t""yes" 1>&6
11857 :
11858else
11859 echo "$ac_t""no" 1>&6
11860fi
11861
11862
11863 if test "$ac_cv_header_png_h" = "yes"; then
11864 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11865echo "configure:11866: checking for png_check_sig in -lpng" >&5
11866ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11869else
11870 ac_save_LIBS="$LIBS"
11871LIBS="-lpng -lz -lm $LIBS"
11872cat > conftest.$ac_ext <<EOF
11873#line 11874 "configure"
11874#include "confdefs.h"
11875/* Override any gcc2 internal prototype to avoid an error. */
11876/* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878char png_check_sig();
11879
11880int main() {
11881png_check_sig()
11882; return 0; }
11883EOF
11884if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11885 rm -rf conftest*
11886 eval "ac_cv_lib_$ac_lib_var=yes"
11887else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891 eval "ac_cv_lib_$ac_lib_var=no"
11892fi
11893rm -f conftest*
11894LIBS="$ac_save_LIBS"
11895
11896fi
11897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11898 echo "$ac_t""yes" 1>&6
11899 PNG_LINK=" -lpng"
11900else
11901 echo "$ac_t""no" 1>&6
11902fi
11903
11904 fi
11905
11906 if test "x$PNG_LINK" = "x" ; then
11907 if test "$wxUSE_LIBPNG" = "sys" ; then
11908 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11909 else
11910 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11911 wxUSE_LIBPNG=builtin
11912 fi
11913 else
11914 wxUSE_LIBPNG=sys
11915 fi
11916 fi
11917 fi
11918
11919 if test "$wxUSE_LIBPNG" = "builtin" ; then
11920 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11921 fi
11922
11923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11924fi
11925
11926
11927JPEG_INCLUDE=
11928JPEG_LINK=
11929if test "$wxUSE_LIBJPEG" != "no" ; then
11930 cat >> confdefs.h <<\EOF
11931#define wxUSE_LIBJPEG 1
11932EOF
11933
11934
11935 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11936 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11937 wxUSE_LIBJPEG=sys
11938 fi
11939
11940 if test "$wxUSE_MGL" != 1 ; then
11941 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11942 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11943echo "configure:11944: checking for jpeglib.h" >&5
11944 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
11946else
11947 cat > conftest.$ac_ext <<EOF
11948#line 11949 "configure"
11949#include "confdefs.h"
11950
11951 #undef HAVE_STDLIB_H
11952 #include <stdio.h>
11953 #include <jpeglib.h>
11954
11955int main() {
11956
11957
11958; return 0; }
11959EOF
11960if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11961 rm -rf conftest*
11962 ac_cv_header_jpeglib_h=yes
11963else
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 rm -rf conftest*
11967 ac_cv_header_jpeglib_h=no
11968
11969fi
11970rm -f conftest*
11971
11972fi
11973
11974 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11975
11976 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11977 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11978echo "configure:11979: checking for jpeg_read_header in -ljpeg" >&5
11979ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
11982else
11983 ac_save_LIBS="$LIBS"
11984LIBS="-ljpeg $LIBS"
11985cat > conftest.$ac_ext <<EOF
11986#line 11987 "configure"
11987#include "confdefs.h"
11988/* Override any gcc2 internal prototype to avoid an error. */
11989/* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991char jpeg_read_header();
11992
11993int main() {
11994jpeg_read_header()
11995; return 0; }
11996EOF
11997if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11998 rm -rf conftest*
11999 eval "ac_cv_lib_$ac_lib_var=yes"
12000else
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 rm -rf conftest*
12004 eval "ac_cv_lib_$ac_lib_var=no"
12005fi
12006rm -f conftest*
12007LIBS="$ac_save_LIBS"
12008
12009fi
12010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
12012 JPEG_LINK=" -ljpeg"
12013else
12014 echo "$ac_t""no" 1>&6
12015fi
12016
12017 fi
12018
12019 if test "x$JPEG_LINK" = "x" ; then
12020 if test "$wxUSE_LIBJPEG" = "sys" ; then
12021 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12022 else
12023 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12024 wxUSE_LIBJPEG=builtin
12025 fi
12026 else
12027 wxUSE_LIBJPEG=sys
12028 fi
12029 fi
12030 fi
12031
12032 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12033 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12034 fi
12035fi
12036
12037
12038TIFF_INCLUDE=
12039TIFF_LINK=
12040TIFF_PREREQ_LINKS=-lm
12041if test "$wxUSE_LIBTIFF" != "no" ; then
12042 cat >> confdefs.h <<\EOF
12043#define wxUSE_LIBTIFF 1
12044EOF
12045
12046
12047 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12048 if test "$wxUSE_LIBJPEG" = "sys"; then
12049 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12050 fi
12051 if test "$wxUSE_ZLIB" = "sys"; then
12052 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12053 fi
12054 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12055echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12056echo "configure:12057: checking for tiffio.h" >&5
12057if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12058 echo $ac_n "(cached) $ac_c" 1>&6
12059else
12060 cat > conftest.$ac_ext <<EOF
12061#line 12062 "configure"
12062#include "confdefs.h"
12063#include <tiffio.h>
12064EOF
12065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12066{ (eval echo configure:12067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12068if test -z "$ac_err"; then
12069 rm -rf conftest*
12070 eval "ac_cv_header_$ac_safe=yes"
12071else
12072 echo "$ac_err" >&5
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12075 rm -rf conftest*
12076 eval "ac_cv_header_$ac_safe=no"
12077fi
12078rm -f conftest*
12079fi
12080if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12081 echo "$ac_t""yes" 1>&6
12082 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12083echo "configure:12084: checking for TIFFError in -ltiff" >&5
12084ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12086 echo $ac_n "(cached) $ac_c" 1>&6
12087else
12088 ac_save_LIBS="$LIBS"
12089LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12090cat > conftest.$ac_ext <<EOF
12091#line 12092 "configure"
12092#include "confdefs.h"
12093/* Override any gcc2 internal prototype to avoid an error. */
12094/* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12096char TIFFError();
12097
12098int main() {
12099TIFFError()
12100; return 0; }
12101EOF
12102if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12103 rm -rf conftest*
12104 eval "ac_cv_lib_$ac_lib_var=yes"
12105else
12106 echo "configure: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 rm -rf conftest*
12109 eval "ac_cv_lib_$ac_lib_var=no"
12110fi
12111rm -f conftest*
12112LIBS="$ac_save_LIBS"
12113
12114fi
12115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12116 echo "$ac_t""yes" 1>&6
12117 TIFF_LINK=" -ltiff"
12118else
12119 echo "$ac_t""no" 1>&6
12120fi
12121
12122
12123else
12124 echo "$ac_t""no" 1>&6
12125fi
12126
12127
12128 if test "x$TIFF_LINK" = "x" ; then
12129 if test "$wxUSE_LIBTIFF" = "sys" ; then
12130 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12131 else
12132 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12133 wxUSE_LIBTIFF=builtin
12134 fi
12135 else
12136 wxUSE_LIBTIFF=sys
12137 fi
12138 fi
12139
12140 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12141 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12142 fi
12143fi
12144
12145
12146AFMINSTALL=
12147WIN32INSTALL=
12148
12149TOOLKIT=
12150TOOLKIT_INCLUDE=
12151WIDGET_SET=
12152
12153if test "$USE_WIN32" = 1 ; then
12154 for ac_hdr in w32api.h
12155do
12156ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12157echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12158echo "configure:12159: checking for $ac_hdr" >&5
12159if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161else
12162 cat > conftest.$ac_ext <<EOF
12163#line 12164 "configure"
12164#include "confdefs.h"
12165#include <$ac_hdr>
12166EOF
12167ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12168{ (eval echo configure:12169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12169ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12170if test -z "$ac_err"; then
12171 rm -rf conftest*
12172 eval "ac_cv_header_$ac_safe=yes"
12173else
12174 echo "$ac_err" >&5
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12177 rm -rf conftest*
12178 eval "ac_cv_header_$ac_safe=no"
12179fi
12180rm -f conftest*
12181fi
12182if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12183 echo "$ac_t""yes" 1>&6
12184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12185 cat >> confdefs.h <<EOF
12186#define $ac_tr_hdr 1
12187EOF
12188
12189else
12190 echo "$ac_t""no" 1>&6
12191fi
12192done
12193
12194 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12195echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12196echo "configure:12197: checking for windows.h" >&5
12197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12198 echo $ac_n "(cached) $ac_c" 1>&6
12199else
12200 cat > conftest.$ac_ext <<EOF
12201#line 12202 "configure"
12202#include "confdefs.h"
12203#include <windows.h>
12204EOF
12205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12206{ (eval echo configure:12207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12208if test -z "$ac_err"; then
12209 rm -rf conftest*
12210 eval "ac_cv_header_$ac_safe=yes"
12211else
12212 echo "$ac_err" >&5
12213 echo "configure: failed program was:" >&5
12214 cat conftest.$ac_ext >&5
12215 rm -rf conftest*
12216 eval "ac_cv_header_$ac_safe=no"
12217fi
12218rm -f conftest*
12219fi
12220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 :
12223else
12224 echo "$ac_t""no" 1>&6
12225
12226 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12227
12228fi
12229
12230
12231 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12232echo "configure:12233: checking if w32api has good enough MSIE support" >&5
12233if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12235else
12236
12237 cat > conftest.$ac_ext <<EOF
12238#line 12239 "configure"
12239#include "confdefs.h"
12240#include <w32api.h>
12241int main() {
12242
12243 #define wxCHECK_W32API_VERSION( major, minor ) \
12244 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12245 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12246 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12247
12248 #if !wxCHECK_W32API_VERSION(1,1)
12249 #error You need w32api 1.1 or newer
12250 #endif
12251
12252; return 0; }
12253EOF
12254if { (eval echo configure:12255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12255 rm -rf conftest*
12256
12257 wx_cv_w32api_win32_ie=yes
12258
12259else
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263
12264 wx_cv_w32api_win32_ie=no
12265
12266fi
12267rm -f conftest*
12268
12269fi
12270
12271echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12272 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12273 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12274 fi
12275
12276 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12277
12278 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12279 LIBS="$LIBS -loleacc"
12280 fi
12281
12282 case "${host}" in
12283 *-*-cygwin* )
12284 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12285 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12286 esac
12287
12288 if test "$wxUSE_ODBC" = "yes" ; then
12289 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12290 fi
12291
12292 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12293 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12294
12295 WIN32INSTALL=win32install
12296fi
12297
12298if test "$USE_DARWIN" = 1; then
12299 if test "$wxUSE_PRECOMP" = "yes"; then
12300 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12301 else
12302 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12303 fi
12304fi
12305
12306if test "$wxUSE_GUI" = "yes"; then
12307 USE_GUI=1
12308
12309 GUI_TK_LIBRARY=
12310
12311 WXGTK12=
12312 WXGTK127=
12313 WXGTK20=
12314
12315 if test "$wxUSE_MSW" = 1 ; then
12316 TOOLKIT=MSW
12317 GUIDIST=MSW_DIST
12318
12319 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12320 fi
12321
12322 if test "$wxUSE_GTK" = 1; then
12323 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12324echo "configure:12325: checking for GTK+ version" >&5
12325
12326 gtk_version_cached=1
12327 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
12329else
12330
12331 gtk_version_cached=0
12332 echo "$ac_t""" 1>&6
12333
12334 GTK_MODULES=
12335 if test "$wxUSE_THREADS" = "yes"; then
12336 GTK_MODULES=gthread
12337 fi
12338
12339 wx_cv_lib_gtk=
12340 if test "x$wxUSE_GTK2" = "xyes"; then
12341 # Check whether --enable-gtktest or --disable-gtktest was given.
12342if test "${enable_gtktest+set}" = set; then
12343 enableval="$enable_gtktest"
12344 :
12345else
12346 enable_gtktest=yes
12347fi
12348
12349
12350 pkg_config_args=gtk+-2.0
12351 for module in . $GTK_MODULES
12352 do
12353 case "$module" in
12354 gthread)
12355 pkg_config_args="$pkg_config_args gthread-2.0"
12356 ;;
12357 esac
12358 done
12359
12360 no_gtk=""
12361
12362 # Extract the first word of "pkg-config", so it can be a program name with args.
12363set dummy pkg-config; ac_word=$2
12364echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12365echo "configure:12366: checking for $ac_word" >&5
12366if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12368else
12369 case "$PKG_CONFIG" in
12370 /*)
12371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12372 ;;
12373 ?:/*)
12374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12375 ;;
12376 *)
12377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12378 ac_dummy="$PATH"
12379 for ac_dir in $ac_dummy; do
12380 test -z "$ac_dir" && ac_dir=.
12381 if test -f $ac_dir/$ac_word; then
12382 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12383 break
12384 fi
12385 done
12386 IFS="$ac_save_ifs"
12387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12388 ;;
12389esac
12390fi
12391PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12392if test -n "$PKG_CONFIG"; then
12393 echo "$ac_t""$PKG_CONFIG" 1>&6
12394else
12395 echo "$ac_t""no" 1>&6
12396fi
12397
12398
12399 if test x$PKG_CONFIG != xno ; then
12400 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12401 :
12402 else
12403 echo *** pkg-config too old; version 0.7 or better required.
12404 no_gtk=yes
12405 PKG_CONFIG=no
12406 fi
12407 else
12408 no_gtk=yes
12409 fi
12410
12411 min_gtk_version=2.0.0
12412 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12413echo "configure:12414: checking for GTK+ - version >= $min_gtk_version" >&5
12414
12415 if test x$PKG_CONFIG != xno ; then
12416 ## don't try to run the test against uninstalled libtool libs
12417 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12418 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12419 enable_gtktest=no
12420 fi
12421
12422 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12423 :
12424 else
12425 no_gtk=yes
12426 fi
12427 fi
12428
12429 if test x"$no_gtk" = x ; then
12430 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12431 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12432 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12434 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12436 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12438 if test "x$enable_gtktest" = "xyes" ; then
12439 ac_save_CFLAGS="$CFLAGS"
12440 ac_save_LIBS="$LIBS"
12441 CFLAGS="$CFLAGS $GTK_CFLAGS"
12442 LIBS="$GTK_LIBS $LIBS"
12443 rm -f conf.gtktest
12444 if test "$cross_compiling" = yes; then
12445 echo $ac_n "cross compiling; assumed OK... $ac_c"
12446else
12447 cat > conftest.$ac_ext <<EOF
12448#line 12449 "configure"
12449#include "confdefs.h"
12450
12451#include <gtk/gtk.h>
12452#include <stdio.h>
12453#include <stdlib.h>
12454
12455int
12456main ()
12457{
12458 int major, minor, micro;
12459 char *tmp_version;
12460
12461 system ("touch conf.gtktest");
12462
12463 /* HP/UX 9 (%@#!) writes to sscanf strings */
12464 tmp_version = g_strdup("$min_gtk_version");
12465 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12466 printf("%s, bad version string\n", "$min_gtk_version");
12467 exit(1);
12468 }
12469
12470 if ((gtk_major_version != $gtk_config_major_version) ||
12471 (gtk_minor_version != $gtk_config_minor_version) ||
12472 (gtk_micro_version != $gtk_config_micro_version))
12473 {
12474 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12475 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12476 gtk_major_version, gtk_minor_version, gtk_micro_version);
12477 printf ("*** was found! If pkg-config was correct, then it is best\n");
12478 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12481 printf("*** required on your system.\n");
12482 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12483 printf("*** to point to the correct configuration files\n");
12484 }
12485 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12486 (gtk_minor_version != GTK_MINOR_VERSION) ||
12487 (gtk_micro_version != GTK_MICRO_VERSION))
12488 {
12489 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12490 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12491 printf("*** library (version %d.%d.%d)\n",
12492 gtk_major_version, gtk_minor_version, gtk_micro_version);
12493 }
12494 else
12495 {
12496 if ((gtk_major_version > major) ||
12497 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12498 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12499 {
12500 return 0;
12501 }
12502 else
12503 {
12504 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12505 gtk_major_version, gtk_minor_version, gtk_micro_version);
12506 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12507 major, minor, micro);
12508 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12509 printf("***\n");
12510 printf("*** If you have already installed a sufficiently new version, this error\n");
12511 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12512 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12513 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12514 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12515 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12516 printf("*** so that the correct libraries are found at run-time))\n");
12517 }
12518 }
12519 return 1;
12520}
12521
12522EOF
12523if { (eval echo configure:12524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12524then
12525 :
12526else
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 rm -fr conftest*
12530 no_gtk=yes
12531fi
12532rm -fr conftest*
12533fi
12534
12535 CFLAGS="$ac_save_CFLAGS"
12536 LIBS="$ac_save_LIBS"
12537 fi
12538 fi
12539 if test "x$no_gtk" = x ; then
12540 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12541 wx_cv_lib_gtk=2.0
12542 else
12543 echo "$ac_t""no" 1>&6
12544 if test "$PKG_CONFIG" = "no" ; then
12545 echo "*** A new enough version of pkg-config was not found."
12546 echo "*** See http://pkgconfig.sourceforge.net"
12547 else
12548 if test -f conf.gtktest ; then
12549 :
12550 else
12551 echo "*** Could not run GTK+ test program, checking why..."
12552 ac_save_CFLAGS="$CFLAGS"
12553 ac_save_LIBS="$LIBS"
12554 CFLAGS="$CFLAGS $GTK_CFLAGS"
12555 LIBS="$LIBS $GTK_LIBS"
12556 cat > conftest.$ac_ext <<EOF
12557#line 12558 "configure"
12558#include "confdefs.h"
12559
12560#include <gtk/gtk.h>
12561#include <stdio.h>
12562
12563int main() {
12564 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12565; return 0; }
12566EOF
12567if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12568 rm -rf conftest*
12569 echo "*** The test program compiled, but did not run. This usually means"
12570 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12571 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12572 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12573 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12574 echo "*** is required on your system"
12575 echo "***"
12576 echo "*** If you have an old version installed, it is best to remove it, although"
12577 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12578else
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 rm -rf conftest*
12582 echo "*** The test program failed to compile or link. See the file config.log for the"
12583 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12584fi
12585rm -f conftest*
12586 CFLAGS="$ac_save_CFLAGS"
12587 LIBS="$ac_save_LIBS"
12588 fi
12589 fi
12590 GTK_CFLAGS=""
12591 GTK_LIBS=""
12592 :
12593 fi
12594
12595
12596 rm -f conf.gtktest
12597
12598 else
12599 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12600if test "${with_gtk_prefix+set}" = set; then
12601 withval="$with_gtk_prefix"
12602 gtk_config_prefix="$withval"
12603else
12604 gtk_config_prefix=""
12605fi
12606
12607# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12608if test "${with_gtk_exec_prefix+set}" = set; then
12609 withval="$with_gtk_exec_prefix"
12610 gtk_config_exec_prefix="$withval"
12611else
12612 gtk_config_exec_prefix=""
12613fi
12614
12615# Check whether --enable-gtktest or --disable-gtktest was given.
12616if test "${enable_gtktest+set}" = set; then
12617 enableval="$enable_gtktest"
12618 :
12619else
12620 enable_gtktest=yes
12621fi
12622
12623
12624 for module in . $GTK_MODULES
12625 do
12626 case "$module" in
12627 gthread)
12628 gtk_config_args="$gtk_config_args gthread"
12629 ;;
12630 esac
12631 done
12632
12633 if test x$gtk_config_exec_prefix != x ; then
12634 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12635 if test x${GTK_CONFIG+set} != xset ; then
12636 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12637 fi
12638 fi
12639 if test x$gtk_config_prefix != x ; then
12640 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12641 if test x${GTK_CONFIG+set} != xset ; then
12642 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12643 fi
12644 fi
12645
12646 # Extract the first word of "gtk-config", so it can be a program name with args.
12647set dummy gtk-config; ac_word=$2
12648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12649echo "configure:12650: checking for $ac_word" >&5
12650if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
12652else
12653 case "$GTK_CONFIG" in
12654 /*)
12655 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12656 ;;
12657 ?:/*)
12658 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12659 ;;
12660 *)
12661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12662 ac_dummy="$PATH"
12663 for ac_dir in $ac_dummy; do
12664 test -z "$ac_dir" && ac_dir=.
12665 if test -f $ac_dir/$ac_word; then
12666 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12667 break
12668 fi
12669 done
12670 IFS="$ac_save_ifs"
12671 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12672 ;;
12673esac
12674fi
12675GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12676if test -n "$GTK_CONFIG"; then
12677 echo "$ac_t""$GTK_CONFIG" 1>&6
12678else
12679 echo "$ac_t""no" 1>&6
12680fi
12681
12682 min_gtk_version=1.2.7
12683 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12684echo "configure:12685: checking for GTK - version >= $min_gtk_version" >&5
12685 no_gtk=""
12686 if test "$GTK_CONFIG" = "no" ; then
12687 no_gtk=yes
12688 else
12689 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12690 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12691 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12693 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12694 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12695 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12696 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12697 if test "x$enable_gtktest" = "xyes" ; then
12698 ac_save_CFLAGS="$CFLAGS"
12699 ac_save_LIBS="$LIBS"
12700 CFLAGS="$CFLAGS $GTK_CFLAGS"
12701 LIBS="$GTK_LIBS $LIBS"
12702 rm -f conf.gtktest
12703 if test "$cross_compiling" = yes; then
12704 echo $ac_n "cross compiling; assumed OK... $ac_c"
12705else
12706 cat > conftest.$ac_ext <<EOF
12707#line 12708 "configure"
12708#include "confdefs.h"
12709
12710#include <gtk/gtk.h>
12711#include <stdio.h>
12712#include <stdlib.h>
12713
12714int
12715main ()
12716{
12717 int major, minor, micro;
12718 char *tmp_version;
12719
12720 system ("touch conf.gtktest");
12721
12722 /* HP/UX 9 (%@#!) writes to sscanf strings */
12723 tmp_version = g_strdup("$min_gtk_version");
12724 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12725 printf("%s, bad version string\n", "$min_gtk_version");
12726 exit(1);
12727 }
12728
12729 if ((gtk_major_version != $gtk_config_major_version) ||
12730 (gtk_minor_version != $gtk_config_minor_version) ||
12731 (gtk_micro_version != $gtk_config_micro_version))
12732 {
12733 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12734 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12735 gtk_major_version, gtk_minor_version, gtk_micro_version);
12736 printf ("*** was found! If gtk-config was correct, then it is best\n");
12737 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12738 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12739 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12740 printf("*** required on your system.\n");
12741 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12742 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12743 printf("*** before re-running configure\n");
12744 }
12745#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12746 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12747 (gtk_minor_version != GTK_MINOR_VERSION) ||
12748 (gtk_micro_version != GTK_MICRO_VERSION))
12749 {
12750 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12751 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12752 printf("*** library (version %d.%d.%d)\n",
12753 gtk_major_version, gtk_minor_version, gtk_micro_version);
12754 }
12755#endif /* defined (GTK_MAJOR_VERSION) ... */
12756 else
12757 {
12758 if ((gtk_major_version > major) ||
12759 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12760 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12761 {
12762 return 0;
12763 }
12764 else
12765 {
12766 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12767 gtk_major_version, gtk_minor_version, gtk_micro_version);
12768 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12769 major, minor, micro);
12770 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12771 printf("***\n");
12772 printf("*** If you have already installed a sufficiently new version, this error\n");
12773 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12774 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12775 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12776 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12777 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12778 printf("*** so that the correct libraries are found at run-time))\n");
12779 }
12780 }
12781 return 1;
12782}
12783
12784EOF
12785if { (eval echo configure:12786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12786then
12787 :
12788else
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 rm -fr conftest*
12792 no_gtk=yes
12793fi
12794rm -fr conftest*
12795fi
12796
12797 CFLAGS="$ac_save_CFLAGS"
12798 LIBS="$ac_save_LIBS"
12799 fi
12800 fi
12801 if test "x$no_gtk" = x ; then
12802 echo "$ac_t""yes" 1>&6
12803 wx_cv_lib_gtk=1.2.7
12804 else
12805 echo "$ac_t""no" 1>&6
12806 if test "$GTK_CONFIG" = "no" ; then
12807 echo "*** The gtk-config script installed by GTK could not be found"
12808 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12809 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12810 echo "*** full path to gtk-config."
12811 else
12812 if test -f conf.gtktest ; then
12813 :
12814 else
12815 echo "*** Could not run GTK test program, checking why..."
12816 CFLAGS="$CFLAGS $GTK_CFLAGS"
12817 LIBS="$LIBS $GTK_LIBS"
12818 cat > conftest.$ac_ext <<EOF
12819#line 12820 "configure"
12820#include "confdefs.h"
12821
12822#include <gtk/gtk.h>
12823#include <stdio.h>
12824
12825int main() {
12826 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12827; return 0; }
12828EOF
12829if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12830 rm -rf conftest*
12831 echo "*** The test program compiled, but did not run. This usually means"
12832 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12833 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12834 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12835 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12836 echo "*** is required on your system"
12837 echo "***"
12838 echo "*** If you have an old version installed, it is best to remove it, although"
12839 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12840 echo "***"
12841 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12842 echo "*** came with the system with the command"
12843 echo "***"
12844 echo "*** rpm --erase --nodeps gtk gtk-devel"
12845else
12846 echo "configure: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 rm -rf conftest*
12849 echo "*** The test program failed to compile or link. See the file config.log for the"
12850 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12851 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12852 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12853fi
12854rm -f conftest*
12855 CFLAGS="$ac_save_CFLAGS"
12856 LIBS="$ac_save_LIBS"
12857 fi
12858 fi
12859 GTK_CFLAGS=""
12860 GTK_LIBS=""
12861 :
12862 fi
12863
12864
12865 rm -f conf.gtktest
12866
12867
12868 if test -z "$wx_cv_lib_gtk"; then
12869 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12870if test "${with_gtk_prefix+set}" = set; then
12871 withval="$with_gtk_prefix"
12872 gtk_config_prefix="$withval"
12873else
12874 gtk_config_prefix=""
12875fi
12876
12877# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12878if test "${with_gtk_exec_prefix+set}" = set; then
12879 withval="$with_gtk_exec_prefix"
12880 gtk_config_exec_prefix="$withval"
12881else
12882 gtk_config_exec_prefix=""
12883fi
12884
12885# Check whether --enable-gtktest or --disable-gtktest was given.
12886if test "${enable_gtktest+set}" = set; then
12887 enableval="$enable_gtktest"
12888 :
12889else
12890 enable_gtktest=yes
12891fi
12892
12893
12894 for module in . $GTK_MODULES
12895 do
12896 case "$module" in
12897 gthread)
12898 gtk_config_args="$gtk_config_args gthread"
12899 ;;
12900 esac
12901 done
12902
12903 if test x$gtk_config_exec_prefix != x ; then
12904 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12905 if test x${GTK_CONFIG+set} != xset ; then
12906 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12907 fi
12908 fi
12909 if test x$gtk_config_prefix != x ; then
12910 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12911 if test x${GTK_CONFIG+set} != xset ; then
12912 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12913 fi
12914 fi
12915
12916 # Extract the first word of "gtk-config", so it can be a program name with args.
12917set dummy gtk-config; ac_word=$2
12918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12919echo "configure:12920: checking for $ac_word" >&5
12920if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12921 echo $ac_n "(cached) $ac_c" 1>&6
12922else
12923 case "$GTK_CONFIG" in
12924 /*)
12925 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12926 ;;
12927 ?:/*)
12928 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12929 ;;
12930 *)
12931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12932 ac_dummy="$PATH"
12933 for ac_dir in $ac_dummy; do
12934 test -z "$ac_dir" && ac_dir=.
12935 if test -f $ac_dir/$ac_word; then
12936 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12937 break
12938 fi
12939 done
12940 IFS="$ac_save_ifs"
12941 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12942 ;;
12943esac
12944fi
12945GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12946if test -n "$GTK_CONFIG"; then
12947 echo "$ac_t""$GTK_CONFIG" 1>&6
12948else
12949 echo "$ac_t""no" 1>&6
12950fi
12951
12952 min_gtk_version=1.2.3
12953 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12954echo "configure:12955: checking for GTK - version >= $min_gtk_version" >&5
12955 no_gtk=""
12956 if test "$GTK_CONFIG" = "no" ; then
12957 no_gtk=yes
12958 else
12959 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12960 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12961 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12962 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12963 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12964 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12965 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12966 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12967 if test "x$enable_gtktest" = "xyes" ; then
12968 ac_save_CFLAGS="$CFLAGS"
12969 ac_save_LIBS="$LIBS"
12970 CFLAGS="$CFLAGS $GTK_CFLAGS"
12971 LIBS="$GTK_LIBS $LIBS"
12972 rm -f conf.gtktest
12973 if test "$cross_compiling" = yes; then
12974 echo $ac_n "cross compiling; assumed OK... $ac_c"
12975else
12976 cat > conftest.$ac_ext <<EOF
12977#line 12978 "configure"
12978#include "confdefs.h"
12979
12980#include <gtk/gtk.h>
12981#include <stdio.h>
12982#include <stdlib.h>
12983
12984int
12985main ()
12986{
12987 int major, minor, micro;
12988 char *tmp_version;
12989
12990 system ("touch conf.gtktest");
12991
12992 /* HP/UX 9 (%@#!) writes to sscanf strings */
12993 tmp_version = g_strdup("$min_gtk_version");
12994 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12995 printf("%s, bad version string\n", "$min_gtk_version");
12996 exit(1);
12997 }
12998
12999 if ((gtk_major_version != $gtk_config_major_version) ||
13000 (gtk_minor_version != $gtk_config_minor_version) ||
13001 (gtk_micro_version != $gtk_config_micro_version))
13002 {
13003 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13004 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13005 gtk_major_version, gtk_minor_version, gtk_micro_version);
13006 printf ("*** was found! If gtk-config was correct, then it is best\n");
13007 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13008 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13009 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13010 printf("*** required on your system.\n");
13011 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13012 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13013 printf("*** before re-running configure\n");
13014 }
13015#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13016 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13017 (gtk_minor_version != GTK_MINOR_VERSION) ||
13018 (gtk_micro_version != GTK_MICRO_VERSION))
13019 {
13020 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13021 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13022 printf("*** library (version %d.%d.%d)\n",
13023 gtk_major_version, gtk_minor_version, gtk_micro_version);
13024 }
13025#endif /* defined (GTK_MAJOR_VERSION) ... */
13026 else
13027 {
13028 if ((gtk_major_version > major) ||
13029 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13030 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13031 {
13032 return 0;
13033 }
13034 else
13035 {
13036 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13037 gtk_major_version, gtk_minor_version, gtk_micro_version);
13038 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13039 major, minor, micro);
13040 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13041 printf("***\n");
13042 printf("*** If you have already installed a sufficiently new version, this error\n");
13043 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13044 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13045 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13046 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13047 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13048 printf("*** so that the correct libraries are found at run-time))\n");
13049 }
13050 }
13051 return 1;
13052}
13053
13054EOF
13055if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13056then
13057 :
13058else
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 rm -fr conftest*
13062 no_gtk=yes
13063fi
13064rm -fr conftest*
13065fi
13066
13067 CFLAGS="$ac_save_CFLAGS"
13068 LIBS="$ac_save_LIBS"
13069 fi
13070 fi
13071 if test "x$no_gtk" = x ; then
13072 echo "$ac_t""yes" 1>&6
13073 wx_cv_lib_gtk=1.2.3
13074 else
13075 echo "$ac_t""no" 1>&6
13076 if test "$GTK_CONFIG" = "no" ; then
13077 echo "*** The gtk-config script installed by GTK could not be found"
13078 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13079 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13080 echo "*** full path to gtk-config."
13081 else
13082 if test -f conf.gtktest ; then
13083 :
13084 else
13085 echo "*** Could not run GTK test program, checking why..."
13086 CFLAGS="$CFLAGS $GTK_CFLAGS"
13087 LIBS="$LIBS $GTK_LIBS"
13088 cat > conftest.$ac_ext <<EOF
13089#line 13090 "configure"
13090#include "confdefs.h"
13091
13092#include <gtk/gtk.h>
13093#include <stdio.h>
13094
13095int main() {
13096 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13097; return 0; }
13098EOF
13099if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13100 rm -rf conftest*
13101 echo "*** The test program compiled, but did not run. This usually means"
13102 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13103 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13104 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13105 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13106 echo "*** is required on your system"
13107 echo "***"
13108 echo "*** If you have an old version installed, it is best to remove it, although"
13109 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13110 echo "***"
13111 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13112 echo "*** came with the system with the command"
13113 echo "***"
13114 echo "*** rpm --erase --nodeps gtk gtk-devel"
13115else
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 echo "*** The test program failed to compile or link. See the file config.log for the"
13120 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13121 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13122 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13123fi
13124rm -f conftest*
13125 CFLAGS="$ac_save_CFLAGS"
13126 LIBS="$ac_save_LIBS"
13127 fi
13128 fi
13129 GTK_CFLAGS=""
13130 GTK_LIBS=""
13131 :
13132 fi
13133
13134
13135 rm -f conf.gtktest
13136
13137 fi
13138 fi
13139
13140 if test -z "$wx_cv_lib_gtk"; then
13141 wx_cv_lib_gtk=none
13142 else
13143 wx_cv_cflags_gtk=$GTK_CFLAGS
13144 wx_cv_libs_gtk=$GTK_LIBS
13145 fi
13146
13147
13148fi
13149
13150
13151 if test "$gtk_version_cached" = 1; then
13152 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13153 fi
13154
13155 case "$wx_cv_lib_gtk" in
13156 2.0) WXGTK20=1
13157 TOOLKIT_VERSION=2
13158 ;;
13159 1.2.7) WXGTK127=1
13160 WXGTK12=1
13161 ;;
13162 1.2.3) WXGTK12=1
13163 ;;
13164 *) { echo "configure: error:
13165Please check that gtk-config is in path, the directory
13166where GTK+ libraries are installed (returned by
13167'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13168equivalent variable and GTK+ is version 1.2.3 or above.
13169 " 1>&2; exit 1; }
13170 ;;
13171 esac
13172
13173 if test "$WXGTK20" = 1; then
13174 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13175
13176 succeeded=no
13177
13178 if test -z "$PKG_CONFIG"; then
13179 # Extract the first word of "pkg-config", so it can be a program name with args.
13180set dummy pkg-config; ac_word=$2
13181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13182echo "configure:13183: checking for $ac_word" >&5
13183if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13184 echo $ac_n "(cached) $ac_c" 1>&6
13185else
13186 case "$PKG_CONFIG" in
13187 /*)
13188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13189 ;;
13190 ?:/*)
13191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13192 ;;
13193 *)
13194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13195 ac_dummy="$PATH"
13196 for ac_dir in $ac_dummy; do
13197 test -z "$ac_dir" && ac_dir=.
13198 if test -f $ac_dir/$ac_word; then
13199 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13200 break
13201 fi
13202 done
13203 IFS="$ac_save_ifs"
13204 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13205 ;;
13206esac
13207fi
13208PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13209if test -n "$PKG_CONFIG"; then
13210 echo "$ac_t""$PKG_CONFIG" 1>&6
13211else
13212 echo "$ac_t""no" 1>&6
13213fi
13214
13215 fi
13216
13217 if test "$PKG_CONFIG" = "no" ; then
13218 echo "*** The pkg-config script could not be found. Make sure it is"
13219 echo "*** in your path, or set the PKG_CONFIG environment variable"
13220 echo "*** to the full path to pkg-config."
13221 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13222 else
13223 PKG_CONFIG_MIN_VERSION=0.9.0
13224 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13225 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13226echo "configure:13227: checking for pangoft2" >&5
13227
13228 if $PKG_CONFIG --exists "pangoft2" ; then
13229 echo "$ac_t""yes" 1>&6
13230 succeeded=yes
13231
13232 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13233echo "configure:13234: checking PANGOFT2_CFLAGS" >&5
13234 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13235 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13236
13237 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13238echo "configure:13239: checking PANGOFT2_LIBS" >&5
13239 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13240 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13241 else
13242 PANGOFT2_CFLAGS=""
13243 PANGOFT2_LIBS=""
13244 ## If we have a custom action on failure, don't print errors, but
13245 ## do set a variable so people can do so.
13246 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13247
13248 fi
13249
13250
13251
13252 else
13253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13255 fi
13256 fi
13257
13258 if test $succeeded = yes; then
13259
13260 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13261 LIBS="$LIBS $PANGOFT2_LIBS"
13262
13263 else
13264
13265 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13266 wxUSE_PRINTING_ARCHITECTURE="no"
13267
13268
13269 fi
13270
13271 fi
13272 else
13273 if test "$wxUSE_UNICODE" = "yes"; then
13274 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13275 wxUSE_UNICODE=no
13276 fi
13277 fi
13278
13279 if test "$USE_DARWIN" != 1; then
13280 for ac_func in poll
13281do
13282echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13283echo "configure:13284: checking for $ac_func" >&5
13284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286else
13287 cat > conftest.$ac_ext <<EOF
13288#line 13289 "configure"
13289#include "confdefs.h"
13290/* System header to define __stub macros and hopefully few prototypes,
13291 which can conflict with char $ac_func(); below. */
13292#include <assert.h>
13293/* Override any gcc2 internal prototype to avoid an error. */
13294/* We use char because int might match the return type of a gcc2
13295 builtin and then its argument prototype would still apply. */
13296char $ac_func();
13297
13298int main() {
13299
13300/* The GNU C library defines this for functions which it implements
13301 to always fail with ENOSYS. Some functions are actually named
13302 something starting with __ and the normal name is an alias. */
13303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13304choke me
13305#else
13306$ac_func();
13307#endif
13308
13309; return 0; }
13310EOF
13311if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13312 rm -rf conftest*
13313 eval "ac_cv_func_$ac_func=yes"
13314else
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318 eval "ac_cv_func_$ac_func=no"
13319fi
13320rm -f conftest*
13321fi
13322
13323if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13326 cat >> confdefs.h <<EOF
13327#define $ac_tr_func 1
13328EOF
13329
13330else
13331 echo "$ac_t""no" 1>&6
13332fi
13333done
13334
13335 fi
13336
13337 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13338 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13339
13340 AFMINSTALL=afminstall
13341 TOOLKIT=GTK
13342 GUIDIST=GTK_DIST
13343
13344 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13345echo "configure:13346: checking for gdk_im_open in -lgdk" >&5
13346ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
13349else
13350 ac_save_LIBS="$LIBS"
13351LIBS="-lgdk $LIBS"
13352cat > conftest.$ac_ext <<EOF
13353#line 13354 "configure"
13354#include "confdefs.h"
13355/* Override any gcc2 internal prototype to avoid an error. */
13356/* We use char because int might match the return type of a gcc2
13357 builtin and then its argument prototype would still apply. */
13358char gdk_im_open();
13359
13360int main() {
13361gdk_im_open()
13362; return 0; }
13363EOF
13364if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13365 rm -rf conftest*
13366 eval "ac_cv_lib_$ac_lib_var=yes"
13367else
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13370 rm -rf conftest*
13371 eval "ac_cv_lib_$ac_lib_var=no"
13372fi
13373rm -f conftest*
13374LIBS="$ac_save_LIBS"
13375
13376fi
13377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13378 echo "$ac_t""yes" 1>&6
13379 cat >> confdefs.h <<\EOF
13380#define HAVE_XIM 1
13381EOF
13382
13383else
13384 echo "$ac_t""no" 1>&6
13385fi
13386
13387 fi
13388
13389 if test "$wxUSE_MGL" = 1; then
13390 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13391echo "configure:13392: checking for SciTech MGL library" >&5
13392 if test "x$MGL_ROOT" = x ; then
13393 echo "$ac_t""not found" 1>&6
13394 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13395 else
13396 echo "$ac_t""$MGL_ROOT" 1>&6
13397 fi
13398
13399 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13400echo "configure:13401: checking for libmgl location" >&5
13401 case "${host}" in
13402 *-*-linux* )
13403 if test "x$wxUSE_SHARED" = xyes ; then
13404 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13405 else
13406 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13407 fi
13408 ;;
13409 *-pc-msdosdjgpp )
13410 mgl_os_candidates="dos32/dj2"
13411 ;;
13412 *)
13413 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13414 esac
13415
13416 mgl_lib_type=""
13417 mgl_os=""
13418
13419 for mgl_os_i in $mgl_os_candidates ; do
13420 if test "x$mgl_os" = x ; then
13421 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13422 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13423 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13424 mgl_lib_type=debug
13425 mgl_os=$mgl_os_i
13426 fi
13427 fi
13428 if test "x$mgl_lib_type" = x ; then
13429 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13430 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13431 mgl_lib_type=release
13432 mgl_os=$mgl_os_i
13433 fi
13434 fi
13435 fi
13436 done
13437
13438 if test "x$mgl_os" = x ; then
13439 echo "$ac_t""not found" 1>&6
13440 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13441 fi
13442 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13443
13444 wxUSE_UNIVERSAL="yes"
13445
13446 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13447 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13448
13449 AFMINSTALL=afminstall
13450 TOOLKIT=MGL
13451 GUIDIST=MGL_DIST
13452 fi
13453
13454 if test "$wxUSE_MICROWIN" = 1; then
13455 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13456echo "configure:13457: checking for MicroWindows" >&5
13457 if test "x$MICROWINDOWS" = x ; then
13458 echo "$ac_t""not found" 1>&6
13459 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13460 else
13461 echo "$ac_t""$MICROWINDOWS" 1>&6
13462 fi
13463
13464 if test -f $MICROWINDOWS/lib/libmwin.a; then
13465 echo "$ac_t""MicroWindows' libraries found." 1>&6
13466 else
13467 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13468 fi
13469
13470 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13471 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13472
13473 wxUSE_UNIVERSAL="yes"
13474
13475 AFMINSTALL=afminstall
13476 TOOLKIT=MICROWIN
13477 GUIDIST=MICROWIN_DIST
13478
13479 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13480 fi
13481
13482 if test "$wxUSE_X11" = 1; then
13483 # If we find X, set shell vars x_includes and x_libraries to the
13484# paths, otherwise set no_x=yes.
13485# Uses ac_ vars as temps to allow command line to override cache and checks.
13486# --without-x overrides everything else, but does not touch the cache.
13487echo $ac_n "checking for X""... $ac_c" 1>&6
13488echo "configure:13489: checking for X" >&5
13489
13490# Check whether --with-x or --without-x was given.
13491if test "${with_x+set}" = set; then
13492 withval="$with_x"
13493 :
13494fi
13495
13496# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13497if test "x$with_x" = xno; then
13498 # The user explicitly disabled X.
13499 have_x=disabled
13500else
13501 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13502 # Both variables are already set.
13503 have_x=yes
13504 else
13505if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13506 echo $ac_n "(cached) $ac_c" 1>&6
13507else
13508 # One or both of the vars are not set, and there is no cached value.
13509ac_x_includes=NO ac_x_libraries=NO
13510rm -fr conftestdir
13511if mkdir conftestdir; then
13512 cd conftestdir
13513 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13514 cat > Imakefile <<'EOF'
13515acfindx:
13516 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13517EOF
13518 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13520 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13521 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13522 for ac_extension in a so sl; do
13523 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13524 test -f $ac_im_libdir/libX11.$ac_extension; then
13525 ac_im_usrlibdir=$ac_im_libdir; break
13526 fi
13527 done
13528 # Screen out bogus values from the imake configuration. They are
13529 # bogus both because they are the default anyway, and because
13530 # using them would break gcc on systems where it needs fixed includes.
13531 case "$ac_im_incroot" in
13532 /usr/include) ;;
13533 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13534 esac
13535 case "$ac_im_usrlibdir" in
13536 /usr/lib | /lib) ;;
13537 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13538 esac
13539 fi
13540 cd ..
13541 rm -fr conftestdir
13542fi
13543
13544if test "$ac_x_includes" = NO; then
13545 # Guess where to find include files, by looking for this one X11 .h file.
13546 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13547
13548 # First, try using that file with no special directory specified.
13549cat > conftest.$ac_ext <<EOF
13550#line 13551 "configure"
13551#include "confdefs.h"
13552#include <$x_direct_test_include>
13553EOF
13554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13555{ (eval echo configure:13556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13557if test -z "$ac_err"; then
13558 rm -rf conftest*
13559 # We can compile using X headers with no special include directory.
13560ac_x_includes=
13561else
13562 echo "$ac_err" >&5
13563 echo "configure: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 rm -rf conftest*
13566 # Look for the header file in a standard set of common directories.
13567# Check X11 before X11Rn because it is often a symlink to the current release.
13568 for ac_dir in \
13569 /usr/X11/include \
13570 /usr/X11R6/include \
13571 /usr/X11R5/include \
13572 /usr/X11R4/include \
13573 \
13574 /usr/include/X11 \
13575 /usr/include/X11R6 \
13576 /usr/include/X11R5 \
13577 /usr/include/X11R4 \
13578 \
13579 /usr/local/X11/include \
13580 /usr/local/X11R6/include \
13581 /usr/local/X11R5/include \
13582 /usr/local/X11R4/include \
13583 \
13584 /usr/local/include/X11 \
13585 /usr/local/include/X11R6 \
13586 /usr/local/include/X11R5 \
13587 /usr/local/include/X11R4 \
13588 \
13589 /usr/X386/include \
13590 /usr/x386/include \
13591 /usr/XFree86/include/X11 \
13592 \
13593 /usr/include \
13594 /usr/local/include \
13595 /usr/unsupported/include \
13596 /usr/athena/include \
13597 /usr/local/x11r5/include \
13598 /usr/lpp/Xamples/include \
13599 \
13600 /usr/openwin/include \
13601 /usr/openwin/share/include \
13602 ; \
13603 do
13604 if test -r "$ac_dir/$x_direct_test_include"; then
13605 ac_x_includes=$ac_dir
13606 break
13607 fi
13608 done
13609fi
13610rm -f conftest*
13611fi # $ac_x_includes = NO
13612
13613if test "$ac_x_libraries" = NO; then
13614 # Check for the libraries.
13615
13616 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13617 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13618
13619 # See if we find them without any special options.
13620 # Don't add to $LIBS permanently.
13621 ac_save_LIBS="$LIBS"
13622 LIBS="-l$x_direct_test_library $LIBS"
13623cat > conftest.$ac_ext <<EOF
13624#line 13625 "configure"
13625#include "confdefs.h"
13626
13627int main() {
13628${x_direct_test_function}()
13629; return 0; }
13630EOF
13631if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13632 rm -rf conftest*
13633 LIBS="$ac_save_LIBS"
13634# We can link X programs with no special library path.
13635ac_x_libraries=
13636else
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13639 rm -rf conftest*
13640 LIBS="$ac_save_LIBS"
13641# First see if replacing the include by lib works.
13642# Check X11 before X11Rn because it is often a symlink to the current release.
13643for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13644 /usr/X11/lib \
13645 /usr/X11R6/lib \
13646 /usr/X11R5/lib \
13647 /usr/X11R4/lib \
13648 \
13649 /usr/lib/X11 \
13650 /usr/lib/X11R6 \
13651 /usr/lib/X11R5 \
13652 /usr/lib/X11R4 \
13653 \
13654 /usr/local/X11/lib \
13655 /usr/local/X11R6/lib \
13656 /usr/local/X11R5/lib \
13657 /usr/local/X11R4/lib \
13658 \
13659 /usr/local/lib/X11 \
13660 /usr/local/lib/X11R6 \
13661 /usr/local/lib/X11R5 \
13662 /usr/local/lib/X11R4 \
13663 \
13664 /usr/X386/lib \
13665 /usr/x386/lib \
13666 /usr/XFree86/lib/X11 \
13667 \
13668 /usr/lib \
13669 /usr/local/lib \
13670 /usr/unsupported/lib \
13671 /usr/athena/lib \
13672 /usr/local/x11r5/lib \
13673 /usr/lpp/Xamples/lib \
13674 /lib/usr/lib/X11 \
13675 \
13676 /usr/openwin/lib \
13677 /usr/openwin/share/lib \
13678 ; \
13679do
13680 for ac_extension in a so sl; do
13681 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13682 ac_x_libraries=$ac_dir
13683 break 2
13684 fi
13685 done
13686done
13687fi
13688rm -f conftest*
13689fi # $ac_x_libraries = NO
13690
13691if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13692 # Didn't find X anywhere. Cache the known absence of X.
13693 ac_cv_have_x="have_x=no"
13694else
13695 # Record where we found X for the cache.
13696 ac_cv_have_x="have_x=yes \
13697 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13698fi
13699fi
13700 fi
13701 eval "$ac_cv_have_x"
13702fi # $with_x != no
13703
13704if test "$have_x" != yes; then
13705 echo "$ac_t""$have_x" 1>&6
13706 no_x=yes
13707else
13708 # If each of the values was on the command line, it overrides each guess.
13709 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13710 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13711 # Update the cache value to reflect the command line values.
13712 ac_cv_have_x="have_x=yes \
13713 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13714 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13715fi
13716
13717if test "$no_x" = yes; then
13718 # Not all programs may use this symbol, but it does not hurt to define it.
13719 cat >> confdefs.h <<\EOF
13720#define X_DISPLAY_MISSING 1
13721EOF
13722
13723 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13724else
13725 if test -n "$x_includes"; then
13726 X_CFLAGS="$X_CFLAGS -I$x_includes"
13727 fi
13728
13729 # It would also be nice to do this for all -L options, not just this one.
13730 if test -n "$x_libraries"; then
13731 X_LIBS="$X_LIBS -L$x_libraries"
13732 # For Solaris; some versions of Sun CC require a space after -R and
13733 # others require no space. Words are not sufficient . . . .
13734 case "`(uname -sr) 2>/dev/null`" in
13735 "SunOS 5"*)
13736 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13737echo "configure:13738: checking whether -R must be followed by a space" >&5
13738 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13739 cat > conftest.$ac_ext <<EOF
13740#line 13741 "configure"
13741#include "confdefs.h"
13742
13743int main() {
13744
13745; return 0; }
13746EOF
13747if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748 rm -rf conftest*
13749 ac_R_nospace=yes
13750else
13751 echo "configure: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13753 rm -rf conftest*
13754 ac_R_nospace=no
13755fi
13756rm -f conftest*
13757 if test $ac_R_nospace = yes; then
13758 echo "$ac_t""no" 1>&6
13759 X_LIBS="$X_LIBS -R$x_libraries"
13760 else
13761 LIBS="$ac_xsave_LIBS -R $x_libraries"
13762 cat > conftest.$ac_ext <<EOF
13763#line 13764 "configure"
13764#include "confdefs.h"
13765
13766int main() {
13767
13768; return 0; }
13769EOF
13770if { (eval echo configure:13771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13771 rm -rf conftest*
13772 ac_R_space=yes
13773else
13774 echo "configure: failed program was:" >&5
13775 cat conftest.$ac_ext >&5
13776 rm -rf conftest*
13777 ac_R_space=no
13778fi
13779rm -f conftest*
13780 if test $ac_R_space = yes; then
13781 echo "$ac_t""yes" 1>&6
13782 X_LIBS="$X_LIBS -R $x_libraries"
13783 else
13784 echo "$ac_t""neither works" 1>&6
13785 fi
13786 fi
13787 LIBS="$ac_xsave_LIBS"
13788 esac
13789 fi
13790
13791 # Check for system-dependent libraries X programs must link with.
13792 # Do this before checking for the system-independent R6 libraries
13793 # (-lICE), since we may need -lsocket or whatever for X linking.
13794
13795 if test "$ISC" = yes; then
13796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13797 else
13798 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13799 # libraries were built with DECnet support. And karl@cs.umb.edu says
13800 # the Alpha needs dnet_stub (dnet does not exist).
13801 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13802echo "configure:13803: checking for dnet_ntoa in -ldnet" >&5
13803ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13804if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
13806else
13807 ac_save_LIBS="$LIBS"
13808LIBS="-ldnet $LIBS"
13809cat > conftest.$ac_ext <<EOF
13810#line 13811 "configure"
13811#include "confdefs.h"
13812/* Override any gcc2 internal prototype to avoid an error. */
13813/* We use char because int might match the return type of a gcc2
13814 builtin and then its argument prototype would still apply. */
13815char dnet_ntoa();
13816
13817int main() {
13818dnet_ntoa()
13819; return 0; }
13820EOF
13821if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=yes"
13824else
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 rm -rf conftest*
13828 eval "ac_cv_lib_$ac_lib_var=no"
13829fi
13830rm -f conftest*
13831LIBS="$ac_save_LIBS"
13832
13833fi
13834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
13836 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13837else
13838 echo "$ac_t""no" 1>&6
13839fi
13840
13841 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13842 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13843echo "configure:13844: checking for dnet_ntoa in -ldnet_stub" >&5
13844ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13845if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13846 echo $ac_n "(cached) $ac_c" 1>&6
13847else
13848 ac_save_LIBS="$LIBS"
13849LIBS="-ldnet_stub $LIBS"
13850cat > conftest.$ac_ext <<EOF
13851#line 13852 "configure"
13852#include "confdefs.h"
13853/* Override any gcc2 internal prototype to avoid an error. */
13854/* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13856char dnet_ntoa();
13857
13858int main() {
13859dnet_ntoa()
13860; return 0; }
13861EOF
13862if { (eval echo configure:13863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13863 rm -rf conftest*
13864 eval "ac_cv_lib_$ac_lib_var=yes"
13865else
13866 echo "configure: failed program was:" >&5
13867 cat conftest.$ac_ext >&5
13868 rm -rf conftest*
13869 eval "ac_cv_lib_$ac_lib_var=no"
13870fi
13871rm -f conftest*
13872LIBS="$ac_save_LIBS"
13873
13874fi
13875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
13877 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13878else
13879 echo "$ac_t""no" 1>&6
13880fi
13881
13882 fi
13883
13884 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13885 # to get the SysV transport functions.
13886 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13887 # needs -lnsl.
13888 # The nsl library prevents programs from opening the X display
13889 # on Irix 5.2, according to dickey@clark.net.
13890 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13891echo "configure:13892: checking for gethostbyname" >&5
13892if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894else
13895 cat > conftest.$ac_ext <<EOF
13896#line 13897 "configure"
13897#include "confdefs.h"
13898/* System header to define __stub macros and hopefully few prototypes,
13899 which can conflict with char gethostbyname(); below. */
13900#include <assert.h>
13901/* Override any gcc2 internal prototype to avoid an error. */
13902/* We use char because int might match the return type of a gcc2
13903 builtin and then its argument prototype would still apply. */
13904char gethostbyname();
13905
13906int main() {
13907
13908/* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
13911#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13912choke me
13913#else
13914gethostbyname();
13915#endif
13916
13917; return 0; }
13918EOF
13919if { (eval echo configure:13920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13920 rm -rf conftest*
13921 eval "ac_cv_func_gethostbyname=yes"
13922else
13923 echo "configure: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13925 rm -rf conftest*
13926 eval "ac_cv_func_gethostbyname=no"
13927fi
13928rm -f conftest*
13929fi
13930
13931if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13932 echo "$ac_t""yes" 1>&6
13933 :
13934else
13935 echo "$ac_t""no" 1>&6
13936fi
13937
13938 if test $ac_cv_func_gethostbyname = no; then
13939 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13940echo "configure:13941: checking for gethostbyname in -lnsl" >&5
13941ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
13944else
13945 ac_save_LIBS="$LIBS"
13946LIBS="-lnsl $LIBS"
13947cat > conftest.$ac_ext <<EOF
13948#line 13949 "configure"
13949#include "confdefs.h"
13950/* Override any gcc2 internal prototype to avoid an error. */
13951/* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13953char gethostbyname();
13954
13955int main() {
13956gethostbyname()
13957; return 0; }
13958EOF
13959if { (eval echo configure:13960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13960 rm -rf conftest*
13961 eval "ac_cv_lib_$ac_lib_var=yes"
13962else
13963 echo "configure: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 rm -rf conftest*
13966 eval "ac_cv_lib_$ac_lib_var=no"
13967fi
13968rm -f conftest*
13969LIBS="$ac_save_LIBS"
13970
13971fi
13972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13973 echo "$ac_t""yes" 1>&6
13974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13975else
13976 echo "$ac_t""no" 1>&6
13977fi
13978
13979 fi
13980
13981 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13982 # socket/setsockopt and other routines are undefined under SCO ODT
13983 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13984 # on later versions), says simon@lia.di.epfl.ch: it contains
13985 # gethostby* variants that don't use the nameserver (or something).
13986 # -lsocket must be given before -lnsl if both are needed.
13987 # We assume that if connect needs -lnsl, so does gethostbyname.
13988 echo $ac_n "checking for connect""... $ac_c" 1>&6
13989echo "configure:13990: checking for connect" >&5
13990if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13991 echo $ac_n "(cached) $ac_c" 1>&6
13992else
13993 cat > conftest.$ac_ext <<EOF
13994#line 13995 "configure"
13995#include "confdefs.h"
13996/* System header to define __stub macros and hopefully few prototypes,
13997 which can conflict with char connect(); below. */
13998#include <assert.h>
13999/* Override any gcc2 internal prototype to avoid an error. */
14000/* We use char because int might match the return type of a gcc2
14001 builtin and then its argument prototype would still apply. */
14002char connect();
14003
14004int main() {
14005
14006/* The GNU C library defines this for functions which it implements
14007 to always fail with ENOSYS. Some functions are actually named
14008 something starting with __ and the normal name is an alias. */
14009#if defined (__stub_connect) || defined (__stub___connect)
14010choke me
14011#else
14012connect();
14013#endif
14014
14015; return 0; }
14016EOF
14017if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14018 rm -rf conftest*
14019 eval "ac_cv_func_connect=yes"
14020else
14021 echo "configure: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 rm -rf conftest*
14024 eval "ac_cv_func_connect=no"
14025fi
14026rm -f conftest*
14027fi
14028
14029if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14030 echo "$ac_t""yes" 1>&6
14031 :
14032else
14033 echo "$ac_t""no" 1>&6
14034fi
14035
14036 if test $ac_cv_func_connect = no; then
14037 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14038echo "configure:14039: checking for connect in -lsocket" >&5
14039ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14042else
14043 ac_save_LIBS="$LIBS"
14044LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14045cat > conftest.$ac_ext <<EOF
14046#line 14047 "configure"
14047#include "confdefs.h"
14048/* Override any gcc2 internal prototype to avoid an error. */
14049/* We use char because int might match the return type of a gcc2
14050 builtin and then its argument prototype would still apply. */
14051char connect();
14052
14053int main() {
14054connect()
14055; return 0; }
14056EOF
14057if { (eval echo configure:14058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14058 rm -rf conftest*
14059 eval "ac_cv_lib_$ac_lib_var=yes"
14060else
14061 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14063 rm -rf conftest*
14064 eval "ac_cv_lib_$ac_lib_var=no"
14065fi
14066rm -f conftest*
14067LIBS="$ac_save_LIBS"
14068
14069fi
14070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14071 echo "$ac_t""yes" 1>&6
14072 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14073else
14074 echo "$ac_t""no" 1>&6
14075fi
14076
14077 fi
14078
14079 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14080 echo $ac_n "checking for remove""... $ac_c" 1>&6
14081echo "configure:14082: checking for remove" >&5
14082if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14083 echo $ac_n "(cached) $ac_c" 1>&6
14084else
14085 cat > conftest.$ac_ext <<EOF
14086#line 14087 "configure"
14087#include "confdefs.h"
14088/* System header to define __stub macros and hopefully few prototypes,
14089 which can conflict with char remove(); below. */
14090#include <assert.h>
14091/* Override any gcc2 internal prototype to avoid an error. */
14092/* We use char because int might match the return type of a gcc2
14093 builtin and then its argument prototype would still apply. */
14094char remove();
14095
14096int main() {
14097
14098/* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101#if defined (__stub_remove) || defined (__stub___remove)
14102choke me
14103#else
14104remove();
14105#endif
14106
14107; return 0; }
14108EOF
14109if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14110 rm -rf conftest*
14111 eval "ac_cv_func_remove=yes"
14112else
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14115 rm -rf conftest*
14116 eval "ac_cv_func_remove=no"
14117fi
14118rm -f conftest*
14119fi
14120
14121if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14122 echo "$ac_t""yes" 1>&6
14123 :
14124else
14125 echo "$ac_t""no" 1>&6
14126fi
14127
14128 if test $ac_cv_func_remove = no; then
14129 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14130echo "configure:14131: checking for remove in -lposix" >&5
14131ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14133 echo $ac_n "(cached) $ac_c" 1>&6
14134else
14135 ac_save_LIBS="$LIBS"
14136LIBS="-lposix $LIBS"
14137cat > conftest.$ac_ext <<EOF
14138#line 14139 "configure"
14139#include "confdefs.h"
14140/* Override any gcc2 internal prototype to avoid an error. */
14141/* We use char because int might match the return type of a gcc2
14142 builtin and then its argument prototype would still apply. */
14143char remove();
14144
14145int main() {
14146remove()
14147; return 0; }
14148EOF
14149if { (eval echo configure:14150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14150 rm -rf conftest*
14151 eval "ac_cv_lib_$ac_lib_var=yes"
14152else
14153 echo "configure: failed program was:" >&5
14154 cat conftest.$ac_ext >&5
14155 rm -rf conftest*
14156 eval "ac_cv_lib_$ac_lib_var=no"
14157fi
14158rm -f conftest*
14159LIBS="$ac_save_LIBS"
14160
14161fi
14162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14163 echo "$ac_t""yes" 1>&6
14164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14165else
14166 echo "$ac_t""no" 1>&6
14167fi
14168
14169 fi
14170
14171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14172 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14173echo "configure:14174: checking for shmat" >&5
14174if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14176else
14177 cat > conftest.$ac_ext <<EOF
14178#line 14179 "configure"
14179#include "confdefs.h"
14180/* System header to define __stub macros and hopefully few prototypes,
14181 which can conflict with char shmat(); below. */
14182#include <assert.h>
14183/* Override any gcc2 internal prototype to avoid an error. */
14184/* We use char because int might match the return type of a gcc2
14185 builtin and then its argument prototype would still apply. */
14186char shmat();
14187
14188int main() {
14189
14190/* The GNU C library defines this for functions which it implements
14191 to always fail with ENOSYS. Some functions are actually named
14192 something starting with __ and the normal name is an alias. */
14193#if defined (__stub_shmat) || defined (__stub___shmat)
14194choke me
14195#else
14196shmat();
14197#endif
14198
14199; return 0; }
14200EOF
14201if { (eval echo configure:14202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14202 rm -rf conftest*
14203 eval "ac_cv_func_shmat=yes"
14204else
14205 echo "configure: failed program was:" >&5
14206 cat conftest.$ac_ext >&5
14207 rm -rf conftest*
14208 eval "ac_cv_func_shmat=no"
14209fi
14210rm -f conftest*
14211fi
14212
14213if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14214 echo "$ac_t""yes" 1>&6
14215 :
14216else
14217 echo "$ac_t""no" 1>&6
14218fi
14219
14220 if test $ac_cv_func_shmat = no; then
14221 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14222echo "configure:14223: checking for shmat in -lipc" >&5
14223ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14224if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14225 echo $ac_n "(cached) $ac_c" 1>&6
14226else
14227 ac_save_LIBS="$LIBS"
14228LIBS="-lipc $LIBS"
14229cat > conftest.$ac_ext <<EOF
14230#line 14231 "configure"
14231#include "confdefs.h"
14232/* Override any gcc2 internal prototype to avoid an error. */
14233/* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235char shmat();
14236
14237int main() {
14238shmat()
14239; return 0; }
14240EOF
14241if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14242 rm -rf conftest*
14243 eval "ac_cv_lib_$ac_lib_var=yes"
14244else
14245 echo "configure: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 rm -rf conftest*
14248 eval "ac_cv_lib_$ac_lib_var=no"
14249fi
14250rm -f conftest*
14251LIBS="$ac_save_LIBS"
14252
14253fi
14254if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14255 echo "$ac_t""yes" 1>&6
14256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14257else
14258 echo "$ac_t""no" 1>&6
14259fi
14260
14261 fi
14262 fi
14263
14264 # Check for libraries that X11R6 Xt/Xaw programs need.
14265 ac_save_LDFLAGS="$LDFLAGS"
14266 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14267 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14268 # check for ICE first), but we must link in the order -lSM -lICE or
14269 # we get undefined symbols. So assume we have SM if we have ICE.
14270 # These have to be linked with before -lX11, unlike the other
14271 # libraries we check for below, so use a different variable.
14272 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14273 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14274echo "configure:14275: checking for IceConnectionNumber in -lICE" >&5
14275ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14277 echo $ac_n "(cached) $ac_c" 1>&6
14278else
14279 ac_save_LIBS="$LIBS"
14280LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14281cat > conftest.$ac_ext <<EOF
14282#line 14283 "configure"
14283#include "confdefs.h"
14284/* Override any gcc2 internal prototype to avoid an error. */
14285/* We use char because int might match the return type of a gcc2
14286 builtin and then its argument prototype would still apply. */
14287char IceConnectionNumber();
14288
14289int main() {
14290IceConnectionNumber()
14291; return 0; }
14292EOF
14293if { (eval echo configure:14294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14294 rm -rf conftest*
14295 eval "ac_cv_lib_$ac_lib_var=yes"
14296else
14297 echo "configure: failed program was:" >&5
14298 cat conftest.$ac_ext >&5
14299 rm -rf conftest*
14300 eval "ac_cv_lib_$ac_lib_var=no"
14301fi
14302rm -f conftest*
14303LIBS="$ac_save_LIBS"
14304
14305fi
14306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14307 echo "$ac_t""yes" 1>&6
14308 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14309else
14310 echo "$ac_t""no" 1>&6
14311fi
14312
14313 LDFLAGS="$ac_save_LDFLAGS"
14314
14315fi
14316
14317
14318 if test "$no_x" = "yes"; then
14319 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14320 fi
14321
14322 GUI_TK_LIBRARY="$X_LIBS"
14323 TOOLKIT_INCLUDE="$X_CFLAGS"
14324 AFMINSTALL=afminstall
14325 COMPILED_X_PROGRAM=0
14326
14327 if test "$wxUSE_NANOX" = "yes"; then
14328 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14329echo "configure:14330: checking for MicroWindows/NanoX distribution" >&5
14330 if test "x$MICROWIN" = x ; then
14331 echo "$ac_t""not found" 1>&6
14332 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14333 else
14334 echo "$ac_t""$MICROWIN" 1>&6
14335 cat >> confdefs.h <<\EOF
14336#define wxUSE_NANOX 1
14337EOF
14338
14339 fi
14340 fi
14341
14342 xpm_link=
14343 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14344echo "configure:14345: checking for Xpm library" >&5
14345
14346ac_find_libraries=
14347for ac_dir in $SEARCH_LIB /usr/lib;
14348 do
14349 for ac_extension in a so sl dylib; do
14350 if test -f "$ac_dir/libXpm.$ac_extension"; then
14351 ac_find_libraries=$ac_dir
14352 break 2
14353 fi
14354 done
14355 done
14356
14357 if test "$ac_find_libraries" != "" ; then
14358
14359 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14360 result=$?
14361 if test $result = 0; then
14362 ac_path_to_link=""
14363 else
14364 ac_path_to_link=" -L$ac_find_libraries"
14365 fi
14366
14367 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14368 xpm_link=" -lXpm"
14369 cat >> confdefs.h <<\EOF
14370#define wxHAVE_LIB_XPM 1
14371EOF
14372
14373 echo "$ac_t""found at $ac_find_libraries" 1>&6
14374 else
14375 cat > conftest.$ac_ext <<EOF
14376#line 14377 "configure"
14377#include "confdefs.h"
14378
14379 #include <X11/xpm.h>
14380
14381int main() {
14382
14383 int version;
14384 version = XpmLibraryVersion();
14385
14386; return 0; }
14387EOF
14388if { (eval echo configure:14389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14389 rm -rf conftest*
14390
14391 xpm_link=" -lXpm"
14392 cat >> confdefs.h <<\EOF
14393#define wxHAVE_LIB_XPM 1
14394EOF
14395
14396 echo "$ac_t""found in default search path" 1>&6
14397 COMPILED_X_PROGRAM=0
14398
14399else
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 rm -rf conftest*
14403
14404 echo "$ac_t""no" 1>&6
14405 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14406
14407
14408fi
14409rm -f conftest*
14410 fi
14411
14412 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14413echo "configure:14414: checking for XShapeQueryExtension in -lXext" >&5
14414ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14417else
14418 ac_save_LIBS="$LIBS"
14419LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14420cat > conftest.$ac_ext <<EOF
14421#line 14422 "configure"
14422#include "confdefs.h"
14423/* Override any gcc2 internal prototype to avoid an error. */
14424/* We use char because int might match the return type of a gcc2
14425 builtin and then its argument prototype would still apply. */
14426char XShapeQueryExtension();
14427
14428int main() {
14429XShapeQueryExtension()
14430; return 0; }
14431EOF
14432if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14433 rm -rf conftest*
14434 eval "ac_cv_lib_$ac_lib_var=yes"
14435else
14436 echo "configure: failed program was:" >&5
14437 cat conftest.$ac_ext >&5
14438 rm -rf conftest*
14439 eval "ac_cv_lib_$ac_lib_var=no"
14440fi
14441rm -f conftest*
14442LIBS="$ac_save_LIBS"
14443
14444fi
14445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14446 echo "$ac_t""yes" 1>&6
14447
14448 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14449 wxHAVE_XEXT_LIB=1
14450
14451else
14452 echo "$ac_t""no" 1>&6
14453fi
14454
14455
14456 if test "$wxUSE_UNICODE" = "yes"; then
14457
14458 succeeded=no
14459
14460 if test -z "$PKG_CONFIG"; then
14461 # Extract the first word of "pkg-config", so it can be a program name with args.
14462set dummy pkg-config; ac_word=$2
14463echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14464echo "configure:14465: checking for $ac_word" >&5
14465if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14466 echo $ac_n "(cached) $ac_c" 1>&6
14467else
14468 case "$PKG_CONFIG" in
14469 /*)
14470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14471 ;;
14472 ?:/*)
14473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14474 ;;
14475 *)
14476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14477 ac_dummy="$PATH"
14478 for ac_dir in $ac_dummy; do
14479 test -z "$ac_dir" && ac_dir=.
14480 if test -f $ac_dir/$ac_word; then
14481 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14482 break
14483 fi
14484 done
14485 IFS="$ac_save_ifs"
14486 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14487 ;;
14488esac
14489fi
14490PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14491if test -n "$PKG_CONFIG"; then
14492 echo "$ac_t""$PKG_CONFIG" 1>&6
14493else
14494 echo "$ac_t""no" 1>&6
14495fi
14496
14497 fi
14498
14499 if test "$PKG_CONFIG" = "no" ; then
14500 echo "*** The pkg-config script could not be found. Make sure it is"
14501 echo "*** in your path, or set the PKG_CONFIG environment variable"
14502 echo "*** to the full path to pkg-config."
14503 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14504 else
14505 PKG_CONFIG_MIN_VERSION=0.9.0
14506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14507 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14508echo "configure:14509: checking for pangox" >&5
14509
14510 if $PKG_CONFIG --exists "pangox" ; then
14511 echo "$ac_t""yes" 1>&6
14512 succeeded=yes
14513
14514 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14515echo "configure:14516: checking PANGOX_CFLAGS" >&5
14516 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14517 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14518
14519 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14520echo "configure:14521: checking PANGOX_LIBS" >&5
14521 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14522 echo "$ac_t""$PANGOX_LIBS" 1>&6
14523 else
14524 PANGOX_CFLAGS=""
14525 PANGOX_LIBS=""
14526 ## If we have a custom action on failure, don't print errors, but
14527 ## do set a variable so people can do so.
14528 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14529
14530 fi
14531
14532
14533
14534 else
14535 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14536 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14537 fi
14538 fi
14539
14540 if test $succeeded = yes; then
14541
14542 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14543 LIBS="$LIBS $PANGOX_LIBS"
14544
14545 else
14546
14547 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14548
14549
14550 fi
14551
14552
14553 succeeded=no
14554
14555 if test -z "$PKG_CONFIG"; then
14556 # Extract the first word of "pkg-config", so it can be a program name with args.
14557set dummy pkg-config; ac_word=$2
14558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14559echo "configure:14560: checking for $ac_word" >&5
14560if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14561 echo $ac_n "(cached) $ac_c" 1>&6
14562else
14563 case "$PKG_CONFIG" in
14564 /*)
14565 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14566 ;;
14567 ?:/*)
14568 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14569 ;;
14570 *)
14571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14572 ac_dummy="$PATH"
14573 for ac_dir in $ac_dummy; do
14574 test -z "$ac_dir" && ac_dir=.
14575 if test -f $ac_dir/$ac_word; then
14576 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14577 break
14578 fi
14579 done
14580 IFS="$ac_save_ifs"
14581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14582 ;;
14583esac
14584fi
14585PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14586if test -n "$PKG_CONFIG"; then
14587 echo "$ac_t""$PKG_CONFIG" 1>&6
14588else
14589 echo "$ac_t""no" 1>&6
14590fi
14591
14592 fi
14593
14594 if test "$PKG_CONFIG" = "no" ; then
14595 echo "*** The pkg-config script could not be found. Make sure it is"
14596 echo "*** in your path, or set the PKG_CONFIG environment variable"
14597 echo "*** to the full path to pkg-config."
14598 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14599 else
14600 PKG_CONFIG_MIN_VERSION=0.9.0
14601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14602 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14603echo "configure:14604: checking for pangoft2" >&5
14604
14605 if $PKG_CONFIG --exists "pangoft2" ; then
14606 echo "$ac_t""yes" 1>&6
14607 succeeded=yes
14608
14609 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14610echo "configure:14611: checking PANGOFT2_CFLAGS" >&5
14611 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14612 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14613
14614 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14615echo "configure:14616: checking PANGOFT2_LIBS" >&5
14616 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14617 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14618 else
14619 PANGOFT2_CFLAGS=""
14620 PANGOFT2_LIBS=""
14621 ## If we have a custom action on failure, don't print errors, but
14622 ## do set a variable so people can do so.
14623 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14624
14625 fi
14626
14627
14628
14629 else
14630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14632 fi
14633 fi
14634
14635 if test $succeeded = yes; then
14636
14637 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14638 LIBS="$LIBS $PANGOFT2_LIBS"
14639
14640 else
14641
14642 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14643 wxUSE_PRINTING_ARCHITECTURE="no"
14644
14645
14646 fi
14647
14648
14649 succeeded=no
14650
14651 if test -z "$PKG_CONFIG"; then
14652 # Extract the first word of "pkg-config", so it can be a program name with args.
14653set dummy pkg-config; ac_word=$2
14654echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14655echo "configure:14656: checking for $ac_word" >&5
14656if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14657 echo $ac_n "(cached) $ac_c" 1>&6
14658else
14659 case "$PKG_CONFIG" in
14660 /*)
14661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14662 ;;
14663 ?:/*)
14664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14665 ;;
14666 *)
14667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14668 ac_dummy="$PATH"
14669 for ac_dir in $ac_dummy; do
14670 test -z "$ac_dir" && ac_dir=.
14671 if test -f $ac_dir/$ac_word; then
14672 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14673 break
14674 fi
14675 done
14676 IFS="$ac_save_ifs"
14677 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14678 ;;
14679esac
14680fi
14681PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14682if test -n "$PKG_CONFIG"; then
14683 echo "$ac_t""$PKG_CONFIG" 1>&6
14684else
14685 echo "$ac_t""no" 1>&6
14686fi
14687
14688 fi
14689
14690 if test "$PKG_CONFIG" = "no" ; then
14691 echo "*** The pkg-config script could not be found. Make sure it is"
14692 echo "*** in your path, or set the PKG_CONFIG environment variable"
14693 echo "*** to the full path to pkg-config."
14694 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14695 else
14696 PKG_CONFIG_MIN_VERSION=0.9.0
14697 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14698 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14699echo "configure:14700: checking for pangoxft" >&5
14700
14701 if $PKG_CONFIG --exists "pangoxft" ; then
14702 echo "$ac_t""yes" 1>&6
14703 succeeded=yes
14704
14705 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14706echo "configure:14707: checking PANGOXFT_CFLAGS" >&5
14707 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14708 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14709
14710 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14711echo "configure:14712: checking PANGOXFT_LIBS" >&5
14712 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14713 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14714 else
14715 PANGOXFT_CFLAGS=""
14716 PANGOXFT_LIBS=""
14717 ## If we have a custom action on failure, don't print errors, but
14718 ## do set a variable so people can do so.
14719 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14720
14721 fi
14722
14723
14724
14725 else
14726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14728 fi
14729 fi
14730
14731 if test $succeeded = yes; then
14732
14733 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14734 LIBS="$LIBS $PANGOXFT_LIBS"
14735
14736 else
14737
14738 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14739
14740
14741 fi
14742
14743 fi
14744
14745 wxUSE_UNIVERSAL="yes"
14746
14747 if test "$wxUSE_NANOX" = "yes"; then
14748 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14749 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"
14750 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14751 else
14752 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14753 fi
14754
14755 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14756 TOOLKIT=X11
14757 GUIDIST=X11_DIST
14758 fi
14759
14760 if test "$wxUSE_MOTIF" = 1; then
14761 if test "$no_x" = yes; then
14762 # Not all programs may use this symbol, but it does not hurt to define it.
14763 cat >> confdefs.h <<\EOF
14764#define X_DISPLAY_MISSING 1
14765EOF
14766
14767 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14768else
14769 if test -n "$x_includes"; then
14770 X_CFLAGS="$X_CFLAGS -I$x_includes"
14771 fi
14772
14773 # It would also be nice to do this for all -L options, not just this one.
14774 if test -n "$x_libraries"; then
14775 X_LIBS="$X_LIBS -L$x_libraries"
14776 # For Solaris; some versions of Sun CC require a space after -R and
14777 # others require no space. Words are not sufficient . . . .
14778 case "`(uname -sr) 2>/dev/null`" in
14779 "SunOS 5"*)
14780 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14781echo "configure:14782: checking whether -R must be followed by a space" >&5
14782 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14783 cat > conftest.$ac_ext <<EOF
14784#line 14785 "configure"
14785#include "confdefs.h"
14786
14787int main() {
14788
14789; return 0; }
14790EOF
14791if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14792 rm -rf conftest*
14793 ac_R_nospace=yes
14794else
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798 ac_R_nospace=no
14799fi
14800rm -f conftest*
14801 if test $ac_R_nospace = yes; then
14802 echo "$ac_t""no" 1>&6
14803 X_LIBS="$X_LIBS -R$x_libraries"
14804 else
14805 LIBS="$ac_xsave_LIBS -R $x_libraries"
14806 cat > conftest.$ac_ext <<EOF
14807#line 14808 "configure"
14808#include "confdefs.h"
14809
14810int main() {
14811
14812; return 0; }
14813EOF
14814if { (eval echo configure:14815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14815 rm -rf conftest*
14816 ac_R_space=yes
14817else
14818 echo "configure: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 rm -rf conftest*
14821 ac_R_space=no
14822fi
14823rm -f conftest*
14824 if test $ac_R_space = yes; then
14825 echo "$ac_t""yes" 1>&6
14826 X_LIBS="$X_LIBS -R $x_libraries"
14827 else
14828 echo "$ac_t""neither works" 1>&6
14829 fi
14830 fi
14831 LIBS="$ac_xsave_LIBS"
14832 esac
14833 fi
14834
14835 # Check for system-dependent libraries X programs must link with.
14836 # Do this before checking for the system-independent R6 libraries
14837 # (-lICE), since we may need -lsocket or whatever for X linking.
14838
14839 if test "$ISC" = yes; then
14840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14841 else
14842 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14843 # libraries were built with DECnet support. And karl@cs.umb.edu says
14844 # the Alpha needs dnet_stub (dnet does not exist).
14845 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14846echo "configure:14847: checking for dnet_ntoa in -ldnet" >&5
14847ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14848if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14849 echo $ac_n "(cached) $ac_c" 1>&6
14850else
14851 ac_save_LIBS="$LIBS"
14852LIBS="-ldnet $LIBS"
14853cat > conftest.$ac_ext <<EOF
14854#line 14855 "configure"
14855#include "confdefs.h"
14856/* Override any gcc2 internal prototype to avoid an error. */
14857/* We use char because int might match the return type of a gcc2
14858 builtin and then its argument prototype would still apply. */
14859char dnet_ntoa();
14860
14861int main() {
14862dnet_ntoa()
14863; return 0; }
14864EOF
14865if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14866 rm -rf conftest*
14867 eval "ac_cv_lib_$ac_lib_var=yes"
14868else
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14871 rm -rf conftest*
14872 eval "ac_cv_lib_$ac_lib_var=no"
14873fi
14874rm -f conftest*
14875LIBS="$ac_save_LIBS"
14876
14877fi
14878if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14879 echo "$ac_t""yes" 1>&6
14880 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14881else
14882 echo "$ac_t""no" 1>&6
14883fi
14884
14885 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14886 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14887echo "configure:14888: checking for dnet_ntoa in -ldnet_stub" >&5
14888ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14890 echo $ac_n "(cached) $ac_c" 1>&6
14891else
14892 ac_save_LIBS="$LIBS"
14893LIBS="-ldnet_stub $LIBS"
14894cat > conftest.$ac_ext <<EOF
14895#line 14896 "configure"
14896#include "confdefs.h"
14897/* Override any gcc2 internal prototype to avoid an error. */
14898/* We use char because int might match the return type of a gcc2
14899 builtin and then its argument prototype would still apply. */
14900char dnet_ntoa();
14901
14902int main() {
14903dnet_ntoa()
14904; return 0; }
14905EOF
14906if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14907 rm -rf conftest*
14908 eval "ac_cv_lib_$ac_lib_var=yes"
14909else
14910 echo "configure: failed program was:" >&5
14911 cat conftest.$ac_ext >&5
14912 rm -rf conftest*
14913 eval "ac_cv_lib_$ac_lib_var=no"
14914fi
14915rm -f conftest*
14916LIBS="$ac_save_LIBS"
14917
14918fi
14919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14920 echo "$ac_t""yes" 1>&6
14921 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14922else
14923 echo "$ac_t""no" 1>&6
14924fi
14925
14926 fi
14927
14928 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14929 # to get the SysV transport functions.
14930 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14931 # needs -lnsl.
14932 # The nsl library prevents programs from opening the X display
14933 # on Irix 5.2, according to dickey@clark.net.
14934 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14935echo "configure:14936: checking for gethostbyname" >&5
14936if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14937 echo $ac_n "(cached) $ac_c" 1>&6
14938else
14939 cat > conftest.$ac_ext <<EOF
14940#line 14941 "configure"
14941#include "confdefs.h"
14942/* System header to define __stub macros and hopefully few prototypes,
14943 which can conflict with char gethostbyname(); below. */
14944#include <assert.h>
14945/* Override any gcc2 internal prototype to avoid an error. */
14946/* We use char because int might match the return type of a gcc2
14947 builtin and then its argument prototype would still apply. */
14948char gethostbyname();
14949
14950int main() {
14951
14952/* The GNU C library defines this for functions which it implements
14953 to always fail with ENOSYS. Some functions are actually named
14954 something starting with __ and the normal name is an alias. */
14955#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14956choke me
14957#else
14958gethostbyname();
14959#endif
14960
14961; return 0; }
14962EOF
14963if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14964 rm -rf conftest*
14965 eval "ac_cv_func_gethostbyname=yes"
14966else
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 rm -rf conftest*
14970 eval "ac_cv_func_gethostbyname=no"
14971fi
14972rm -f conftest*
14973fi
14974
14975if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14976 echo "$ac_t""yes" 1>&6
14977 :
14978else
14979 echo "$ac_t""no" 1>&6
14980fi
14981
14982 if test $ac_cv_func_gethostbyname = no; then
14983 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14984echo "configure:14985: checking for gethostbyname in -lnsl" >&5
14985ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14986if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
14988else
14989 ac_save_LIBS="$LIBS"
14990LIBS="-lnsl $LIBS"
14991cat > conftest.$ac_ext <<EOF
14992#line 14993 "configure"
14993#include "confdefs.h"
14994/* Override any gcc2 internal prototype to avoid an error. */
14995/* We use char because int might match the return type of a gcc2
14996 builtin and then its argument prototype would still apply. */
14997char gethostbyname();
14998
14999int main() {
15000gethostbyname()
15001; return 0; }
15002EOF
15003if { (eval echo configure:15004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15004 rm -rf conftest*
15005 eval "ac_cv_lib_$ac_lib_var=yes"
15006else
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15009 rm -rf conftest*
15010 eval "ac_cv_lib_$ac_lib_var=no"
15011fi
15012rm -f conftest*
15013LIBS="$ac_save_LIBS"
15014
15015fi
15016if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15017 echo "$ac_t""yes" 1>&6
15018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15019else
15020 echo "$ac_t""no" 1>&6
15021fi
15022
15023 fi
15024
15025 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15026 # socket/setsockopt and other routines are undefined under SCO ODT
15027 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15028 # on later versions), says simon@lia.di.epfl.ch: it contains
15029 # gethostby* variants that don't use the nameserver (or something).
15030 # -lsocket must be given before -lnsl if both are needed.
15031 # We assume that if connect needs -lnsl, so does gethostbyname.
15032 echo $ac_n "checking for connect""... $ac_c" 1>&6
15033echo "configure:15034: checking for connect" >&5
15034if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15035 echo $ac_n "(cached) $ac_c" 1>&6
15036else
15037 cat > conftest.$ac_ext <<EOF
15038#line 15039 "configure"
15039#include "confdefs.h"
15040/* System header to define __stub macros and hopefully few prototypes,
15041 which can conflict with char connect(); below. */
15042#include <assert.h>
15043/* Override any gcc2 internal prototype to avoid an error. */
15044/* We use char because int might match the return type of a gcc2
15045 builtin and then its argument prototype would still apply. */
15046char connect();
15047
15048int main() {
15049
15050/* The GNU C library defines this for functions which it implements
15051 to always fail with ENOSYS. Some functions are actually named
15052 something starting with __ and the normal name is an alias. */
15053#if defined (__stub_connect) || defined (__stub___connect)
15054choke me
15055#else
15056connect();
15057#endif
15058
15059; return 0; }
15060EOF
15061if { (eval echo configure:15062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15062 rm -rf conftest*
15063 eval "ac_cv_func_connect=yes"
15064else
15065 echo "configure: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 rm -rf conftest*
15068 eval "ac_cv_func_connect=no"
15069fi
15070rm -f conftest*
15071fi
15072
15073if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15074 echo "$ac_t""yes" 1>&6
15075 :
15076else
15077 echo "$ac_t""no" 1>&6
15078fi
15079
15080 if test $ac_cv_func_connect = no; then
15081 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15082echo "configure:15083: checking for connect in -lsocket" >&5
15083ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15084if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15085 echo $ac_n "(cached) $ac_c" 1>&6
15086else
15087 ac_save_LIBS="$LIBS"
15088LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15089cat > conftest.$ac_ext <<EOF
15090#line 15091 "configure"
15091#include "confdefs.h"
15092/* Override any gcc2 internal prototype to avoid an error. */
15093/* We use char because int might match the return type of a gcc2
15094 builtin and then its argument prototype would still apply. */
15095char connect();
15096
15097int main() {
15098connect()
15099; return 0; }
15100EOF
15101if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15102 rm -rf conftest*
15103 eval "ac_cv_lib_$ac_lib_var=yes"
15104else
15105 echo "configure: failed program was:" >&5
15106 cat conftest.$ac_ext >&5
15107 rm -rf conftest*
15108 eval "ac_cv_lib_$ac_lib_var=no"
15109fi
15110rm -f conftest*
15111LIBS="$ac_save_LIBS"
15112
15113fi
15114if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15115 echo "$ac_t""yes" 1>&6
15116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15117else
15118 echo "$ac_t""no" 1>&6
15119fi
15120
15121 fi
15122
15123 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15124 echo $ac_n "checking for remove""... $ac_c" 1>&6
15125echo "configure:15126: checking for remove" >&5
15126if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15127 echo $ac_n "(cached) $ac_c" 1>&6
15128else
15129 cat > conftest.$ac_ext <<EOF
15130#line 15131 "configure"
15131#include "confdefs.h"
15132/* System header to define __stub macros and hopefully few prototypes,
15133 which can conflict with char remove(); below. */
15134#include <assert.h>
15135/* Override any gcc2 internal prototype to avoid an error. */
15136/* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138char remove();
15139
15140int main() {
15141
15142/* The GNU C library defines this for functions which it implements
15143 to always fail with ENOSYS. Some functions are actually named
15144 something starting with __ and the normal name is an alias. */
15145#if defined (__stub_remove) || defined (__stub___remove)
15146choke me
15147#else
15148remove();
15149#endif
15150
15151; return 0; }
15152EOF
15153if { (eval echo configure:15154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15154 rm -rf conftest*
15155 eval "ac_cv_func_remove=yes"
15156else
15157 echo "configure: failed program was:" >&5
15158 cat conftest.$ac_ext >&5
15159 rm -rf conftest*
15160 eval "ac_cv_func_remove=no"
15161fi
15162rm -f conftest*
15163fi
15164
15165if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15166 echo "$ac_t""yes" 1>&6
15167 :
15168else
15169 echo "$ac_t""no" 1>&6
15170fi
15171
15172 if test $ac_cv_func_remove = no; then
15173 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15174echo "configure:15175: checking for remove in -lposix" >&5
15175ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15176if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15177 echo $ac_n "(cached) $ac_c" 1>&6
15178else
15179 ac_save_LIBS="$LIBS"
15180LIBS="-lposix $LIBS"
15181cat > conftest.$ac_ext <<EOF
15182#line 15183 "configure"
15183#include "confdefs.h"
15184/* Override any gcc2 internal prototype to avoid an error. */
15185/* We use char because int might match the return type of a gcc2
15186 builtin and then its argument prototype would still apply. */
15187char remove();
15188
15189int main() {
15190remove()
15191; return 0; }
15192EOF
15193if { (eval echo configure:15194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15194 rm -rf conftest*
15195 eval "ac_cv_lib_$ac_lib_var=yes"
15196else
15197 echo "configure: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15199 rm -rf conftest*
15200 eval "ac_cv_lib_$ac_lib_var=no"
15201fi
15202rm -f conftest*
15203LIBS="$ac_save_LIBS"
15204
15205fi
15206if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15207 echo "$ac_t""yes" 1>&6
15208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15209else
15210 echo "$ac_t""no" 1>&6
15211fi
15212
15213 fi
15214
15215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15216 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15217echo "configure:15218: checking for shmat" >&5
15218if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15219 echo $ac_n "(cached) $ac_c" 1>&6
15220else
15221 cat > conftest.$ac_ext <<EOF
15222#line 15223 "configure"
15223#include "confdefs.h"
15224/* System header to define __stub macros and hopefully few prototypes,
15225 which can conflict with char shmat(); below. */
15226#include <assert.h>
15227/* Override any gcc2 internal prototype to avoid an error. */
15228/* We use char because int might match the return type of a gcc2
15229 builtin and then its argument prototype would still apply. */
15230char shmat();
15231
15232int main() {
15233
15234/* The GNU C library defines this for functions which it implements
15235 to always fail with ENOSYS. Some functions are actually named
15236 something starting with __ and the normal name is an alias. */
15237#if defined (__stub_shmat) || defined (__stub___shmat)
15238choke me
15239#else
15240shmat();
15241#endif
15242
15243; return 0; }
15244EOF
15245if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15246 rm -rf conftest*
15247 eval "ac_cv_func_shmat=yes"
15248else
15249 echo "configure: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15251 rm -rf conftest*
15252 eval "ac_cv_func_shmat=no"
15253fi
15254rm -f conftest*
15255fi
15256
15257if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15258 echo "$ac_t""yes" 1>&6
15259 :
15260else
15261 echo "$ac_t""no" 1>&6
15262fi
15263
15264 if test $ac_cv_func_shmat = no; then
15265 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15266echo "configure:15267: checking for shmat in -lipc" >&5
15267ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15269 echo $ac_n "(cached) $ac_c" 1>&6
15270else
15271 ac_save_LIBS="$LIBS"
15272LIBS="-lipc $LIBS"
15273cat > conftest.$ac_ext <<EOF
15274#line 15275 "configure"
15275#include "confdefs.h"
15276/* Override any gcc2 internal prototype to avoid an error. */
15277/* We use char because int might match the return type of a gcc2
15278 builtin and then its argument prototype would still apply. */
15279char shmat();
15280
15281int main() {
15282shmat()
15283; return 0; }
15284EOF
15285if { (eval echo configure:15286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15286 rm -rf conftest*
15287 eval "ac_cv_lib_$ac_lib_var=yes"
15288else
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 rm -rf conftest*
15292 eval "ac_cv_lib_$ac_lib_var=no"
15293fi
15294rm -f conftest*
15295LIBS="$ac_save_LIBS"
15296
15297fi
15298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15299 echo "$ac_t""yes" 1>&6
15300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15301else
15302 echo "$ac_t""no" 1>&6
15303fi
15304
15305 fi
15306 fi
15307
15308 # Check for libraries that X11R6 Xt/Xaw programs need.
15309 ac_save_LDFLAGS="$LDFLAGS"
15310 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15311 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15312 # check for ICE first), but we must link in the order -lSM -lICE or
15313 # we get undefined symbols. So assume we have SM if we have ICE.
15314 # These have to be linked with before -lX11, unlike the other
15315 # libraries we check for below, so use a different variable.
15316 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15317 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15318echo "configure:15319: checking for IceConnectionNumber in -lICE" >&5
15319ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15321 echo $ac_n "(cached) $ac_c" 1>&6
15322else
15323 ac_save_LIBS="$LIBS"
15324LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15325cat > conftest.$ac_ext <<EOF
15326#line 15327 "configure"
15327#include "confdefs.h"
15328/* Override any gcc2 internal prototype to avoid an error. */
15329/* We use char because int might match the return type of a gcc2
15330 builtin and then its argument prototype would still apply. */
15331char IceConnectionNumber();
15332
15333int main() {
15334IceConnectionNumber()
15335; return 0; }
15336EOF
15337if { (eval echo configure:15338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15338 rm -rf conftest*
15339 eval "ac_cv_lib_$ac_lib_var=yes"
15340else
15341 echo "configure: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15343 rm -rf conftest*
15344 eval "ac_cv_lib_$ac_lib_var=no"
15345fi
15346rm -f conftest*
15347LIBS="$ac_save_LIBS"
15348
15349fi
15350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15351 echo "$ac_t""yes" 1>&6
15352 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15353else
15354 echo "$ac_t""no" 1>&6
15355fi
15356
15357 LDFLAGS="$ac_save_LDFLAGS"
15358
15359fi
15360
15361
15362 if test "$no_x" = "yes"; then
15363 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15364 fi
15365
15366 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15367 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15368 AFMINSTALL=afminstall
15369 COMPILED_X_PROGRAM=0
15370
15371 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15372echo "configure:15373: checking for Motif/Lesstif headers" >&5
15373
15374ac_find_includes=
15375for ac_dir in $SEARCH_INCLUDE /usr/include;
15376 do
15377 if test -f "$ac_dir/Xm/Xm.h"; then
15378 ac_find_includes=$ac_dir
15379 break
15380 fi
15381 done
15382
15383 if test "$ac_find_includes" != "" ; then
15384 echo "$ac_t""found in $ac_find_includes" 1>&6
15385
15386 if test "x$ac_find_includes" = "x/usr/include"; then
15387 ac_path_to_include=""
15388 else
15389 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15390 result=$?
15391 if test $result = 0; then
15392 ac_path_to_include=""
15393 else
15394 ac_path_to_include=" -I$ac_find_includes"
15395 fi
15396 fi
15397
15398 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15399 else
15400 cat > conftest.$ac_ext <<EOF
15401#line 15402 "configure"
15402#include "confdefs.h"
15403
15404 #include <Xm/Xm.h>
15405
15406int main() {
15407
15408 int version;
15409 version = xmUseVersion;
15410
15411; return 0; }
15412EOF
15413if { (eval echo configure:15414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15414 rm -rf conftest*
15415
15416 echo "$ac_t""found in default search path" 1>&6
15417 COMPILED_X_PROGRAM=1
15418
15419else
15420 echo "configure: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15422 rm -rf conftest*
15423
15424 echo "$ac_t""no" 1>&6
15425 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15426
15427
15428fi
15429rm -f conftest*
15430 fi
15431
15432 if test "$COMPILED_X_PROGRAM" = 0; then
15433 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15434echo "configure:15435: checking for Motif/Lesstif library" >&5
15435
15436ac_find_libraries=
15437for ac_dir in $SEARCH_LIB /usr/lib;
15438 do
15439 for ac_extension in a so sl dylib; do
15440 if test -f "$ac_dir/libXm.$ac_extension"; then
15441 ac_find_libraries=$ac_dir
15442 break 2
15443 fi
15444 done
15445 done
15446
15447 if test "$ac_find_libraries" != "" ; then
15448 echo "$ac_t""found at $ac_find_libraries" 1>&6
15449
15450
15451 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15452 result=$?
15453 if test $result = 0; then
15454 ac_path_to_link=""
15455 else
15456 ac_path_to_link=" -L$ac_find_libraries"
15457 fi
15458
15459 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15460 else
15461 save_CFLAGS=$CFLAGS
15462 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15463
15464 cat > conftest.$ac_ext <<EOF
15465#line 15466 "configure"
15466#include "confdefs.h"
15467
15468 #include <Xm/Xm.h>
15469
15470int main() {
15471
15472 int version;
15473 version = xmUseVersion;
15474
15475; return 0; }
15476EOF
15477if { (eval echo configure:15478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15478 rm -rf conftest*
15479
15480 echo "$ac_t""found in default search path" 1>&6
15481 COMPILED_X_PROGRAM=1
15482
15483else
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 rm -rf conftest*
15487
15488 echo "$ac_t""no" 1>&6
15489 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15490
15491
15492fi
15493rm -f conftest*
15494
15495 CFLAGS=$save_CFLAGS
15496 fi
15497 fi
15498
15499 xpm_link=
15500 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15501echo "configure:15502: checking for Xpm library" >&5
15502
15503ac_find_libraries=
15504for ac_dir in $SEARCH_LIB /usr/lib;
15505 do
15506 for ac_extension in a so sl dylib; do
15507 if test -f "$ac_dir/libXpm.$ac_extension"; then
15508 ac_find_libraries=$ac_dir
15509 break 2
15510 fi
15511 done
15512 done
15513
15514 if test "$ac_find_libraries" != "" ; then
15515
15516 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15517 result=$?
15518 if test $result = 0; then
15519 ac_path_to_link=""
15520 else
15521 ac_path_to_link=" -L$ac_find_libraries"
15522 fi
15523
15524 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15525
15526 xpm_link=" -lXpm"
15527 cat >> confdefs.h <<\EOF
15528#define wxHAVE_LIB_XPM 1
15529EOF
15530
15531 echo "$ac_t""found at $ac_find_libraries" 1>&6
15532 else
15533 save_CFLAGS=$CFLAGS
15534 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15535
15536 cat > conftest.$ac_ext <<EOF
15537#line 15538 "configure"
15538#include "confdefs.h"
15539
15540 #include <X11/xpm.h>
15541
15542int main() {
15543
15544 int version;
15545 version = XpmLibraryVersion();
15546
15547; return 0; }
15548EOF
15549if { (eval echo configure:15550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15550 rm -rf conftest*
15551
15552 xpm_link=" -lXpm"
15553 cat >> confdefs.h <<\EOF
15554#define wxHAVE_LIB_XPM 1
15555EOF
15556
15557 echo "$ac_t""found in default search path" 1>&6
15558 COMPILED_X_PROGRAM=0
15559
15560else
15561 echo "configure: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15563 rm -rf conftest*
15564
15565 echo "$ac_t""no" 1>&6
15566 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15567
15568
15569fi
15570rm -f conftest*
15571
15572 CFLAGS=$save_CFLAGS
15573 fi
15574
15575 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15576echo "configure:15577: checking if we need -lXp and/or -lSM -lICE" >&5
15577 libp_link=""
15578 libsm_ice_link=""
15579 libs_found=0
15580 for libp in "" " -lXp"; do
15581 if test "$libs_found" = "0"; then
15582 for libsm_ice in " -lSM -lICE"; do
15583 if test "$libs_found" = "0"; then
15584 save_LIBS="$LIBS"
15585 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15586 save_CFLAGS=$CFLAGS
15587 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15588
15589 cat > conftest.$ac_ext <<EOF
15590#line 15591 "configure"
15591#include "confdefs.h"
15592
15593 #include <Xm/Xm.h>
15594 #include <Xm/List.h>
15595
15596int main() {
15597
15598 XmString string = NULL;
15599 Widget w = NULL;
15600 int position = 0;
15601 XmListAddItem(w, string, position);
15602
15603; return 0; }
15604EOF
15605if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15606 rm -rf conftest*
15607
15608 libp_link="$libp"
15609 libsm_ice_link="$libsm_ice"
15610 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15611 libs_found=1
15612
15613else
15614 echo "configure: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 rm -rf conftest*
15617
15618
15619fi
15620rm -f conftest*
15621
15622 LIBS="$save_LIBS"
15623 CFLAGS=$save_CFLAGS
15624 fi
15625 done
15626 fi
15627 done
15628
15629 if test "$libs_found" = "0"; then
15630 echo "$ac_t""can't find the right libraries" 1>&6
15631 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15632 fi
15633
15634 save_CFLAGS=$CFLAGS
15635 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15636 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15637echo "configure:15638: checking for Motif 2" >&5
15638 cat > conftest.$ac_ext <<EOF
15639#line 15640 "configure"
15640#include "confdefs.h"
15641
15642 #include <Xm/Xm.h>
15643
15644int main() {
15645
15646 #if XmVersion < 2000
15647 #error "Not Motif 2"
15648 #endif
15649
15650; return 0; }
15651EOF
15652if { (eval echo configure:15653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15653 rm -rf conftest*
15654
15655 cat >> confdefs.h <<\EOF
15656#define __WXMOTIF20__ 1
15657EOF
15658
15659 echo "$ac_t""found" 1>&6
15660
15661else
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 rm -rf conftest*
15665
15666 cat >> confdefs.h <<\EOF
15667#define __WXMOTIF20__ 0
15668EOF
15669
15670 echo "$ac_t""not found" 1>&6
15671
15672fi
15673rm -f conftest*
15674 CFLAGS=$save_CFLAGS
15675
15676 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15677 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15678 TOOLKIT=MOTIF
15679 GUIDIST=MOTIF_DIST
15680 wxHAVE_XEXT_LIB=1
15681 fi
15682
15683 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15684 test "$wxHAVE_XEXT_LIB" = 1; then
15685 save_CFLAGS="$CFLAGS"
15686 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15687
15688 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15689echo "configure:15690: checking for X11/extensions/shape.h" >&5
15690 cat > conftest.$ac_ext <<EOF
15691#line 15692 "configure"
15692#include "confdefs.h"
15693
15694 #include <X11/Xlib.h>
15695 #include <X11/extensions/shape.h>
15696
15697int main() {
15698
15699 int dummy1, dummy2;
15700 XShapeQueryExtension((Display*)NULL,
15701 (int*)NULL, (int*)NULL);
15702
15703; return 0; }
15704EOF
15705if { (eval echo configure:15706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15706 rm -rf conftest*
15707
15708 cat >> confdefs.h <<\EOF
15709#define HAVE_XSHAPE 1
15710EOF
15711
15712 echo "$ac_t""found" 1>&6
15713
15714else
15715 echo "configure: failed program was:" >&5
15716 cat conftest.$ac_ext >&5
15717 rm -rf conftest*
15718
15719 echo "$ac_t""not found" 1>&6
15720
15721fi
15722rm -f conftest*
15723 CFLAGS="$save_CFLAGS"
15724 fi
15725
15726 if test "$wxUSE_MAC" = 1; then
15727 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15728
15729 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15730 TOOLKIT=MAC
15731 GUIDIST=MACX_DIST
15732 fi
15733
15734 if test "$wxUSE_COCOA" = 1; then
15735 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15736 TOOLKIT=COCOA
15737 GUIDIST=COCOA_DIST
15738 fi
15739
15740 if test "$wxUSE_PM" = 1; then
15741 TOOLKIT=PM
15742 GUIDIST=GTK_DIST
15743 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15744 wxUSE_THREADS="no"
15745 fi
15746
15747 if test "$TOOLKIT" = "PM" ; then
15748 TOOLKIT_DIR="os2"
15749 else
15750 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15751 fi
15752
15753 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15754
15755 if test "$wxUSE_UNIVERSAL" = "yes"; then
15756 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15757
15758 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15759 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15760
15761 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15762 if test "$wxUSE_X11" = 1; then
15763 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15764 else
15765 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15766 fi
15767 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15768 WIDGET_SET=univ
15769 else
15770 ALL_OBJECTS="\$(GUIOBJS)"
15771 ALL_SOURCES="\$(ALL_SOURCES)"
15772 ALL_HEADERS="\$(ALL_HEADERS)"
15773 fi
15774
15775 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15776
15777 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15778 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15779 fi
15780
15781 if test "$wxUSE_HTML" = "yes"; then
15782 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15783 fi
15784
15785 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15786 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15787 fi
15788 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15789 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15790 fi
15791 if test "$wxUSE_LIBPNG" = "builtin" ; then
15792 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15793 fi
15794
15795 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15796 DISTDIR="wx\$(TOOLKIT)"
15797else
15798 USE_GUI=0
15799
15800 TOOLKIT_DIR="base"
15801
15802 if test "$USE_WIN32" = 1 ; then
15803 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15804 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15805
15806 TOOLKIT="MSW"
15807 else
15808 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15809 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15810 fi
15811
15812 ALL_SOURCES="\$(ALL_SOURCES)"
15813 ALL_HEADERS="\$(ALL_HEADERS)"
15814
15815 PORT_FILES="\${top_srcdir}/src/files.lst"
15816
15817 GUIDIST="BASE_DIST"
15818 DISTDIR="wxBase"
15819fi
15820
15821
15822if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15823 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15824fi
15825
15826if test "$wxUSE_REGEX" = "builtin" ; then
15827 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15828fi
15829if test "$wxUSE_ZLIB" = "builtin" ; then
15830 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15831fi
15832
15833
15834if test "$wxUSE_OPENGL" = "yes"; then
15835 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15836 OPENGL_LIBS="-framework OpenGL -framework AGL"
15837 elif test "$wxUSE_MSW" = 1; then
15838 OPENGL_LIBS="-lopengl32 -lglu32"
15839 else
15840 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15841echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15842echo "configure:15843: checking for GL/gl.h" >&5
15843if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15844 echo $ac_n "(cached) $ac_c" 1>&6
15845else
15846 cat > conftest.$ac_ext <<EOF
15847#line 15848 "configure"
15848#include "confdefs.h"
15849#include <GL/gl.h>
15850EOF
15851ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15852{ (eval echo configure:15853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15853ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15854if test -z "$ac_err"; then
15855 rm -rf conftest*
15856 eval "ac_cv_header_$ac_safe=yes"
15857else
15858 echo "$ac_err" >&5
15859 echo "configure: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 rm -rf conftest*
15862 eval "ac_cv_header_$ac_safe=no"
15863fi
15864rm -f conftest*
15865fi
15866if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15867 echo "$ac_t""yes" 1>&6
15868
15869 found_gl=0
15870
15871 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15872echo "configure:15873: checking for -lGL" >&5
15873
15874ac_find_libraries=
15875for ac_dir in $SEARCH_LIB /usr/lib;
15876 do
15877 for ac_extension in a so sl dylib; do
15878 if test -f "$ac_dir/libGL.$ac_extension"; then
15879 ac_find_libraries=$ac_dir
15880 break 2
15881 fi
15882 done
15883 done
15884
15885 if test "$ac_find_libraries" != "" ; then
15886
15887 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15888 result=$?
15889 if test $result = 0; then
15890 ac_path_to_link=""
15891 else
15892 ac_path_to_link=" -L$ac_find_libraries"
15893 fi
15894
15895 if test "$ac_path_to_link" != " -L/usr/lib" ; then
15896 LDFLAGS_GL="$ac_path_to_link"
15897 fi
15898
15899
15900ac_find_libraries=
15901for ac_dir in $SEARCH_LIB /usr/lib;
15902 do
15903 for ac_extension in a so sl dylib; do
15904 if test -f "$ac_dir/libGLU.$ac_extension"; then
15905 ac_find_libraries=$ac_dir
15906 break 2
15907 fi
15908 done
15909 done
15910
15911 if test "$ac_find_libraries" != "" ; then
15912
15913 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15914 result=$?
15915 if test $result = 0; then
15916 ac_path_to_link=""
15917 else
15918 ac_path_to_link=" -L$ac_find_libraries"
15919 fi
15920
15921 if test "$ac_path_to_link" != " -L/usr/lib" -a \
15922 "$ac_path_to_link" != "$LDFLAGS_GL"; then
15923 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
15924 fi
15925
15926 found_gl=1
15927 OPENGL_LIBS="-lGL -lGLU"
15928 echo "$ac_t""yes" 1>&6
15929 fi
15930 fi
15931
15932 if "$found_gl" != 1; then
15933 echo "$ac_t""no" 1>&6
15934 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15935echo "configure:15936: checking for -lMesaGL" >&5
15936
15937ac_find_libraries=
15938for ac_dir in $SEARCH_LIB /usr/lib;
15939 do
15940 for ac_extension in a so sl dylib; do
15941 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15942 ac_find_libraries=$ac_dir
15943 break 2
15944 fi
15945 done
15946 done
15947
15948 if test "$ac_find_libraries" != "" ; then
15949
15950 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15951 result=$?
15952 if test $result = 0; then
15953 ac_path_to_link=""
15954 else
15955 ac_path_to_link=" -L$ac_find_libraries"
15956 fi
15957
15958 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15959 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15960 echo "$ac_t""yes" 1>&6
15961 else
15962 echo "$ac_t""no" 1>&6
15963 fi
15964 fi
15965
15966else
15967 echo "$ac_t""no" 1>&6
15968fi
15969
15970
15971 if test "x$OPENGL_LIBS" = "x"; then
15972 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15973 fi
15974 fi
15975
15976 if test "$wxUSE_OPENGL" = "yes"; then
15977 cat >> confdefs.h <<\EOF
15978#define wxUSE_OPENGL 1
15979EOF
15980
15981 cat >> confdefs.h <<\EOF
15982#define wxUSE_GLCANVAS 1
15983EOF
15984
15985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15986 fi
15987fi
15988
15989if test -z "$TOOLKIT_VPATH" ; then
15990 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15991fi
15992
15993if test -n "$TOOLKIT" ; then
15994 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15995fi
15996
15997lib_unicode_suffix=
15998if test "$wxUSE_UNICODE" = "yes"; then
15999 lib_unicode_suffix=u
16000fi
16001
16002lib_debug_suffix=
16003if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16004 lib_debug_suffix=d
16005fi
16006
16007WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16008
16009TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16010TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16011
16012if test "$cross_compiling" = "yes"; then
16013 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16014 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16015fi
16016
16017WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16018WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16019WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16020
16021WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16022WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16023
16024WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16025WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16026WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16027WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16028
16029case "${host}" in
16030 *-*-cygwin* | *-*-mingw32* )
16031
16032
16033
16034 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16035 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16036 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16037 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16038 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16039 else
16040 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16041 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16042 fi
16043 ;;
16044
16045 *-*-darwin* )
16046
16047 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16048 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16049
16050 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16051 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16052 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16053 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16054
16055 if test "$wxUSE_MAC" = 1; then
16056 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16057 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16058 fi
16059 ;;
16060esac
16061
16062WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16063WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16064
16065WXCONFIG_LIBS="-l${WX_LIBRARY}"
16066WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16067
16068if test "$wxUSE_OPENGL" = "yes"; then
16069 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16070 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16071fi
16072
16073
16074
16075if test "$wxUSE_SHARED" = "yes"; then
16076 case "${host}" in
16077 *-pc-os2_emx | *-pc-os2-emx | \
16078 *-pc-msdosdjgpp )
16079 wxUSE_SHARED=no
16080 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16081 ;;
16082 esac
16083fi
16084
16085if test "$wxUSE_SHARED" = "yes"; then
16086
16087 if test "$wxUSE_OPENGL" = "yes"; then
16088 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16089 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16090 else
16091 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16092 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16093 fi
16094
16095 if test "$GCC" = "yes"; then
16096 PIC_FLAG="-fPIC"
16097 fi
16098
16099
16100
16101 found_versioning=no
16102
16103
16104 if test $found_versioning = no ; then
16105 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16106echo "configure:16107: checking if the linker accepts --version-script" >&5
16107if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16108 echo $ac_n "(cached) $ac_c" 1>&6
16109else
16110
16111 echo "VER_1 { *; };" >conftest.sym
16112 echo "int main() { return 0; }" >conftest.cpp
16113
16114 if { ac_try='
16115 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16116 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16117 if test -s conftest.stderr ; then
16118 wx_cv_version_script=no
16119 else
16120 wx_cv_version_script=yes
16121 fi
16122 else
16123 wx_cv_version_script=no
16124 fi
16125 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16126
16127fi
16128
16129echo "$ac_t""$wx_cv_version_script" 1>&6
16130 if test $wx_cv_version_script = yes ; then
16131 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16132 fi
16133 fi
16134
16135
16136 SHARED_LD="${CXX} -shared -o"
16137
16138 case "${host}" in
16139 *-hp-hpux* )
16140 if test "$GCC" = "yes"; then
16141 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16142 else
16143 LDFLAGS="$LDFLAGS -L/usr/lib"
16144
16145 SHARED_LD="${CXX} -b -o"
16146 PIC_FLAG="+Z"
16147 fi
16148
16149 if test "$wxUSE_OPENGL" = "yes"; then
16150 WX_ALL_INSTALLED="preinstall_gl"
16151 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16152 else
16153 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16154 fi
16155 ;;
16156
16157 *-*-linux* )
16158 if test "$GCC" != "yes"; then
16159 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16160echo "configure:16161: checking for Intel compiler" >&5
16161if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163else
16164
16165 cat > conftest.$ac_ext <<EOF
16166#line 16167 "configure"
16167#include "confdefs.h"
16168
16169int main() {
16170
16171 #ifndef __INTEL_COMPILER
16172 #error Not icc
16173 #endif
16174
16175; return 0; }
16176EOF
16177if { (eval echo configure:16178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16178 rm -rf conftest*
16179 wx_cv_prog_icc=yes
16180else
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 rm -rf conftest*
16184 wx_cv_prog_icc=no
16185
16186fi
16187rm -f conftest*
16188
16189fi
16190
16191echo "$ac_t""$wx_cv_prog_icc" 1>&6
16192 if test "$wx_cv_prog_icc" = "yes"; then
16193 PIC_FLAG="-KPIC"
16194 fi
16195 fi
16196
16197 if test "$wxUSE_SONAME" = "yes" ; then
16198 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16199 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16200 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16201 fi
16202 ;;
16203
16204 *-*-solaris2* )
16205 if test "$GCC" = yes ; then
16206 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16207 else
16208 SHARED_LD="${CXX} -G -o"
16209 PIC_FLAG="-KPIC"
16210 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16211 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16212 fi
16213 ;;
16214
16215 *-*-darwin* )
16216 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16217 CFLAGS="$CFLAGS -fno-common"
16218 CXXFLAGS="$CXXFLAGS -fno-common"
16219 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16220 PIC_FLAG="-dynamic -fPIC"
16221 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16222 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16223 ;;
16224
16225 *-*-aix* )
16226 if test "$GCC" != "yes"; then
16227 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16228set dummy makeC++SharedLib; ac_word=$2
16229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16230echo "configure:16231: checking for $ac_word" >&5
16231if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16232 echo $ac_n "(cached) $ac_c" 1>&6
16233else
16234 if test -n "$AIX_CXX_LD"; then
16235 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16236else
16237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16238 ac_dummy="$PATH"
16239 for ac_dir in $ac_dummy; do
16240 test -z "$ac_dir" && ac_dir=.
16241 if test -f $ac_dir/$ac_word; then
16242 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16243 break
16244 fi
16245 done
16246 IFS="$ac_save_ifs"
16247 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16248fi
16249fi
16250AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16251if test -n "$AIX_CXX_LD"; then
16252 echo "$ac_t""$AIX_CXX_LD" 1>&6
16253else
16254 echo "$ac_t""no" 1>&6
16255fi
16256
16257
16258 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16259 fi
16260 ;;
16261
16262 *-*-cygwin* | *-*-mingw32* )
16263 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16264
16265 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16266 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16267
16268 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16269
16270 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16271 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16272
16273 if test "$wxUSE_OPENGL" = "yes"; then
16274 LIBS="${LIBS} ${OPENGL_LIBS}"
16275 fi
16276 ;;
16277
16278 *-*-beos* )
16279 SHARED_LD="${LD} -shared -o"
16280 ;;
16281
16282 *-*-irix* )
16283 if test "$GCC" != "yes"; then
16284 PIC_FLAG="-KPIC"
16285 fi
16286 ;;
16287
16288 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16289 *-*-sunos4* | \
16290 *-*-osf* | \
16291 *-*-dgux5* | \
16292 *-*-sysv5* )
16293 ;;
16294
16295 *)
16296 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16297 esac
16298
16299 if test "x$WX_TARGET_LIBRARY" = "x"; then
16300 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16301 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16302 fi
16303
16304 WX_TARGET_LIBRARY_TYPE="so"
16305 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16306fi
16307
16308if test "$wxUSE_SHARED" = "no"; then
16309
16310 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16311 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16312 fi
16313
16314 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16315 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16316 fi
16317
16318 if test "$wxUSE_OPENGL" = "yes"; then
16319 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16320 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16321 else
16322 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16323 fi
16324
16325 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16326 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16327
16328 WX_TARGET_LIBRARY_TYPE="a"
16329 INSTALL_LIBRARY='$(INSTALL_DATA)'
16330
16331 STATIC_FLAG="yes"
16332else
16333 STATIC_FLAG="no"
16334fi
16335
16336MACRESCOMP="@#"
16337MACSETFILE="@#"
16338MACRESWXCONFIG="#"
16339if test "$wxUSE_MAC" = 1; then
16340 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16341 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16342 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16343 # Extract the first word of "Rez", so it can be a program name with args.
16344set dummy Rez; ac_word=$2
16345echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16346echo "configure:16347: checking for $ac_word" >&5
16347if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16348 echo $ac_n "(cached) $ac_c" 1>&6
16349else
16350 if test -n "$RESCOMP"; then
16351 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16352else
16353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16354 ac_dummy="$PATH"
16355 for ac_dir in $ac_dummy; do
16356 test -z "$ac_dir" && ac_dir=.
16357 if test -f $ac_dir/$ac_word; then
16358 ac_cv_prog_RESCOMP="Rez"
16359 break
16360 fi
16361 done
16362 IFS="$ac_save_ifs"
16363 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16364fi
16365fi
16366RESCOMP="$ac_cv_prog_RESCOMP"
16367if test -n "$RESCOMP"; then
16368 echo "$ac_t""$RESCOMP" 1>&6
16369else
16370 echo "$ac_t""no" 1>&6
16371fi
16372
16373 # Extract the first word of "DeRez", so it can be a program name with args.
16374set dummy DeRez; ac_word=$2
16375echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16376echo "configure:16377: checking for $ac_word" >&5
16377if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16378 echo $ac_n "(cached) $ac_c" 1>&6
16379else
16380 if test -n "$DEREZ"; then
16381 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16382else
16383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16384 ac_dummy="$PATH"
16385 for ac_dir in $ac_dummy; do
16386 test -z "$ac_dir" && ac_dir=.
16387 if test -f $ac_dir/$ac_word; then
16388 ac_cv_prog_DEREZ="DeRez"
16389 break
16390 fi
16391 done
16392 IFS="$ac_save_ifs"
16393 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16394fi
16395fi
16396DEREZ="$ac_cv_prog_DEREZ"
16397if test -n "$DEREZ"; then
16398 echo "$ac_t""$DEREZ" 1>&6
16399else
16400 echo "$ac_t""no" 1>&6
16401fi
16402
16403 # Extract the first word of "SetFile", so it can be a program name with args.
16404set dummy SetFile; ac_word=$2
16405echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16406echo "configure:16407: checking for $ac_word" >&5
16407if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
16409else
16410 if test -n "$SETFILE"; then
16411 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16412else
16413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16414 ac_dummy="$PATH"
16415 for ac_dir in $ac_dummy; do
16416 test -z "$ac_dir" && ac_dir=.
16417 if test -f $ac_dir/$ac_word; then
16418 ac_cv_prog_SETFILE="SetFile"
16419 break
16420 fi
16421 done
16422 IFS="$ac_save_ifs"
16423 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16424fi
16425fi
16426SETFILE="$ac_cv_prog_SETFILE"
16427if test -n "$SETFILE"; then
16428 echo "$ac_t""$SETFILE" 1>&6
16429else
16430 echo "$ac_t""no" 1>&6
16431fi
16432
16433 MACOSX_BUNDLE="bundle"
16434 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16435 MACSETFILE="\$(SETFILE)"
16436 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16437elif test "$wxUSE_COCOA" = 1; then
16438 # Extract the first word of "Rez", so it can be a program name with args.
16439set dummy Rez; ac_word=$2
16440echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16441echo "configure:16442: checking for $ac_word" >&5
16442if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16443 echo $ac_n "(cached) $ac_c" 1>&6
16444else
16445 if test -n "$RESCOMP"; then
16446 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16447else
16448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16449 ac_dummy="$PATH"
16450 for ac_dir in $ac_dummy; do
16451 test -z "$ac_dir" && ac_dir=.
16452 if test -f $ac_dir/$ac_word; then
16453 ac_cv_prog_RESCOMP="Rez"
16454 break
16455 fi
16456 done
16457 IFS="$ac_save_ifs"
16458 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16459fi
16460fi
16461RESCOMP="$ac_cv_prog_RESCOMP"
16462if test -n "$RESCOMP"; then
16463 echo "$ac_t""$RESCOMP" 1>&6
16464else
16465 echo "$ac_t""no" 1>&6
16466fi
16467
16468 # Extract the first word of "DeRez", so it can be a program name with args.
16469set dummy DeRez; ac_word=$2
16470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16471echo "configure:16472: checking for $ac_word" >&5
16472if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16473 echo $ac_n "(cached) $ac_c" 1>&6
16474else
16475 if test -n "$DEREZ"; then
16476 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16477else
16478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16479 ac_dummy="$PATH"
16480 for ac_dir in $ac_dummy; do
16481 test -z "$ac_dir" && ac_dir=.
16482 if test -f $ac_dir/$ac_word; then
16483 ac_cv_prog_DEREZ="DeRez"
16484 break
16485 fi
16486 done
16487 IFS="$ac_save_ifs"
16488 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16489fi
16490fi
16491DEREZ="$ac_cv_prog_DEREZ"
16492if test -n "$DEREZ"; then
16493 echo "$ac_t""$DEREZ" 1>&6
16494else
16495 echo "$ac_t""no" 1>&6
16496fi
16497
16498 # Extract the first word of "SetFile", so it can be a program name with args.
16499set dummy SetFile; ac_word=$2
16500echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16501echo "configure:16502: checking for $ac_word" >&5
16502if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16503 echo $ac_n "(cached) $ac_c" 1>&6
16504else
16505 if test -n "$SETFILE"; then
16506 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16507else
16508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16509 ac_dummy="$PATH"
16510 for ac_dir in $ac_dummy; do
16511 test -z "$ac_dir" && ac_dir=.
16512 if test -f $ac_dir/$ac_word; then
16513 ac_cv_prog_SETFILE="SetFile"
16514 break
16515 fi
16516 done
16517 IFS="$ac_save_ifs"
16518 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16519fi
16520fi
16521SETFILE="$ac_cv_prog_SETFILE"
16522if test -n "$SETFILE"; then
16523 echo "$ac_t""$SETFILE" 1>&6
16524else
16525 echo "$ac_t""no" 1>&6
16526fi
16527
16528 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16529 MACSETFILE="\$(SETFILE)"
16530 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16531else
16532 if test "$wxUSE_PM" = 1; then
16533 MACRESCOMP="emxbind -ep"
16534 fi
16535fi
16536
16537
16538echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16539echo "configure:16540: checking for ANSI C header files" >&5
16540if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
16542else
16543 cat > conftest.$ac_ext <<EOF
16544#line 16545 "configure"
16545#include "confdefs.h"
16546#include <stdlib.h>
16547#include <stdarg.h>
16548#include <string.h>
16549#include <float.h>
16550EOF
16551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16552{ (eval echo configure:16553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16554if test -z "$ac_err"; then
16555 rm -rf conftest*
16556 ac_cv_header_stdc=yes
16557else
16558 echo "$ac_err" >&5
16559 echo "configure: failed program was:" >&5
16560 cat conftest.$ac_ext >&5
16561 rm -rf conftest*
16562 ac_cv_header_stdc=no
16563fi
16564rm -f conftest*
16565
16566if test $ac_cv_header_stdc = yes; then
16567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16568cat > conftest.$ac_ext <<EOF
16569#line 16570 "configure"
16570#include "confdefs.h"
16571#include <string.h>
16572EOF
16573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16574 egrep "memchr" >/dev/null 2>&1; then
16575 :
16576else
16577 rm -rf conftest*
16578 ac_cv_header_stdc=no
16579fi
16580rm -f conftest*
16581
16582fi
16583
16584if test $ac_cv_header_stdc = yes; then
16585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16586cat > conftest.$ac_ext <<EOF
16587#line 16588 "configure"
16588#include "confdefs.h"
16589#include <stdlib.h>
16590EOF
16591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16592 egrep "free" >/dev/null 2>&1; then
16593 :
16594else
16595 rm -rf conftest*
16596 ac_cv_header_stdc=no
16597fi
16598rm -f conftest*
16599
16600fi
16601
16602if test $ac_cv_header_stdc = yes; then
16603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16604if test "$cross_compiling" = yes; then
16605 :
16606else
16607 cat > conftest.$ac_ext <<EOF
16608#line 16609 "configure"
16609#include "confdefs.h"
16610#include <ctype.h>
16611#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16612#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16613#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16614int main () { int i; for (i = 0; i < 256; i++)
16615if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16616exit (0); }
16617
16618EOF
16619if { (eval echo configure:16620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16620then
16621 :
16622else
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16625 rm -fr conftest*
16626 ac_cv_header_stdc=no
16627fi
16628rm -fr conftest*
16629fi
16630
16631fi
16632fi
16633
16634echo "$ac_t""$ac_cv_header_stdc" 1>&6
16635if test $ac_cv_header_stdc = yes; then
16636 cat >> confdefs.h <<\EOF
16637#define STDC_HEADERS 1
16638EOF
16639
16640fi
16641
16642echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16643echo "configure:16644: checking for mode_t" >&5
16644if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16645 echo $ac_n "(cached) $ac_c" 1>&6
16646else
16647 cat > conftest.$ac_ext <<EOF
16648#line 16649 "configure"
16649#include "confdefs.h"
16650#include <sys/types.h>
16651#if STDC_HEADERS
16652#include <stdlib.h>
16653#include <stddef.h>
16654#endif
16655EOF
16656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16657 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16658 rm -rf conftest*
16659 ac_cv_type_mode_t=yes
16660else
16661 rm -rf conftest*
16662 ac_cv_type_mode_t=no
16663fi
16664rm -f conftest*
16665
16666fi
16667echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16668if test $ac_cv_type_mode_t = no; then
16669 cat >> confdefs.h <<\EOF
16670#define mode_t int
16671EOF
16672
16673fi
16674
16675echo $ac_n "checking for off_t""... $ac_c" 1>&6
16676echo "configure:16677: checking for off_t" >&5
16677if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16678 echo $ac_n "(cached) $ac_c" 1>&6
16679else
16680 cat > conftest.$ac_ext <<EOF
16681#line 16682 "configure"
16682#include "confdefs.h"
16683#include <sys/types.h>
16684#if STDC_HEADERS
16685#include <stdlib.h>
16686#include <stddef.h>
16687#endif
16688EOF
16689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16690 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16691 rm -rf conftest*
16692 ac_cv_type_off_t=yes
16693else
16694 rm -rf conftest*
16695 ac_cv_type_off_t=no
16696fi
16697rm -f conftest*
16698
16699fi
16700echo "$ac_t""$ac_cv_type_off_t" 1>&6
16701if test $ac_cv_type_off_t = no; then
16702 cat >> confdefs.h <<\EOF
16703#define off_t long
16704EOF
16705
16706fi
16707
16708echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16709echo "configure:16710: checking for pid_t" >&5
16710if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
16712else
16713 cat > conftest.$ac_ext <<EOF
16714#line 16715 "configure"
16715#include "confdefs.h"
16716#include <sys/types.h>
16717#if STDC_HEADERS
16718#include <stdlib.h>
16719#include <stddef.h>
16720#endif
16721EOF
16722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16723 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16724 rm -rf conftest*
16725 ac_cv_type_pid_t=yes
16726else
16727 rm -rf conftest*
16728 ac_cv_type_pid_t=no
16729fi
16730rm -f conftest*
16731
16732fi
16733echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16734if test $ac_cv_type_pid_t = no; then
16735 cat >> confdefs.h <<\EOF
16736#define pid_t int
16737EOF
16738
16739fi
16740
16741echo $ac_n "checking for size_t""... $ac_c" 1>&6
16742echo "configure:16743: checking for size_t" >&5
16743if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16744 echo $ac_n "(cached) $ac_c" 1>&6
16745else
16746 cat > conftest.$ac_ext <<EOF
16747#line 16748 "configure"
16748#include "confdefs.h"
16749#include <sys/types.h>
16750#if STDC_HEADERS
16751#include <stdlib.h>
16752#include <stddef.h>
16753#endif
16754EOF
16755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16756 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16757 rm -rf conftest*
16758 ac_cv_type_size_t=yes
16759else
16760 rm -rf conftest*
16761 ac_cv_type_size_t=no
16762fi
16763rm -f conftest*
16764
16765fi
16766echo "$ac_t""$ac_cv_type_size_t" 1>&6
16767if test $ac_cv_type_size_t = no; then
16768 cat >> confdefs.h <<\EOF
16769#define size_t unsigned
16770EOF
16771
16772fi
16773
16774echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16775echo "configure:16776: checking for uid_t in sys/types.h" >&5
16776if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16777 echo $ac_n "(cached) $ac_c" 1>&6
16778else
16779 cat > conftest.$ac_ext <<EOF
16780#line 16781 "configure"
16781#include "confdefs.h"
16782#include <sys/types.h>
16783EOF
16784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16785 egrep "uid_t" >/dev/null 2>&1; then
16786 rm -rf conftest*
16787 ac_cv_type_uid_t=yes
16788else
16789 rm -rf conftest*
16790 ac_cv_type_uid_t=no
16791fi
16792rm -f conftest*
16793
16794fi
16795
16796echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16797if test $ac_cv_type_uid_t = no; then
16798 cat >> confdefs.h <<\EOF
16799#define uid_t int
16800EOF
16801
16802 cat >> confdefs.h <<\EOF
16803#define gid_t int
16804EOF
16805
16806fi
16807
16808
16809
16810ac_ext=C
16811# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16812ac_cpp='$CXXCPP $CPPFLAGS'
16813ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16814ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16815cross_compiling=$ac_cv_prog_cxx_cross
16816
16817echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16818echo "configure:16819: checking if size_t is unsigned int" >&5
16819if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16820 echo $ac_n "(cached) $ac_c" 1>&6
16821else
16822
16823 cat > conftest.$ac_ext <<EOF
16824#line 16825 "configure"
16825#include "confdefs.h"
16826#include <stddef.h>
16827int main() {
16828
16829 return 0; }
16830
16831 struct Foo { void foo(size_t); void foo(unsigned int); };
16832
16833 int bar() {
16834
16835; return 0; }
16836EOF
16837if { (eval echo configure:16838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16838 rm -rf conftest*
16839 wx_cv_size_t_is_uint=no
16840else
16841 echo "configure: failed program was:" >&5
16842 cat conftest.$ac_ext >&5
16843 rm -rf conftest*
16844 wx_cv_size_t_is_uint=yes
16845
16846fi
16847rm -f conftest*
16848
16849
16850fi
16851
16852echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16853
16854if test "$wx_cv_size_t_is_uint" = "yes"; then
16855 cat >> confdefs.h <<\EOF
16856#define wxSIZE_T_IS_UINT 1
16857EOF
16858
16859else
16860 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16861echo "configure:16862: checking if size_t is unsigned long" >&5
16862if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
16864else
16865 cat > conftest.$ac_ext <<EOF
16866#line 16867 "configure"
16867#include "confdefs.h"
16868#include <stddef.h>
16869int main() {
16870
16871 return 0; }
16872
16873 struct Foo { void foo(size_t); void foo(unsigned long); };
16874
16875 int bar() {
16876
16877; return 0; }
16878EOF
16879if { (eval echo configure:16880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16880 rm -rf conftest*
16881 wx_cv_size_t_is_ulong=no
16882else
16883 echo "configure: failed program was:" >&5
16884 cat conftest.$ac_ext >&5
16885 rm -rf conftest*
16886 wx_cv_size_t_is_ulong=yes
16887
16888fi
16889rm -f conftest*
16890
16891fi
16892
16893echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16894
16895 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16896 cat >> confdefs.h <<\EOF
16897#define wxSIZE_T_IS_ULONG 1
16898EOF
16899
16900 fi
16901fi
16902
16903ac_ext=c
16904# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16905ac_cpp='$CPP $CPPFLAGS'
16906ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16907ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16908cross_compiling=$ac_cv_prog_cc_cross
16909
16910
16911
16912echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16913echo "configure:16914: checking for pw_gecos in struct passwd" >&5
16914if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16915 echo $ac_n "(cached) $ac_c" 1>&6
16916else
16917
16918 cat > conftest.$ac_ext <<EOF
16919#line 16920 "configure"
16920#include "confdefs.h"
16921#include <pwd.h>
16922int main() {
16923
16924 char *p;
16925 struct passwd *pw;
16926 p = pw->pw_gecos;
16927
16928; return 0; }
16929EOF
16930if { (eval echo configure:16931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16931 rm -rf conftest*
16932
16933 wx_cv_struct_pw_gecos=yes
16934
16935else
16936 echo "configure: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16938 rm -rf conftest*
16939
16940 wx_cv_struct_pw_gecos=no
16941
16942
16943fi
16944rm -f conftest*
16945
16946
16947fi
16948
16949echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16950
16951if test "$wx_cv_struct_pw_gecos" = "yes"; then
16952 cat >> confdefs.h <<\EOF
16953#define HAVE_PW_GECOS 1
16954EOF
16955
16956fi
16957
16958
16959if test "$wx_cv_sizeof_wchar_t" != "0"; then
16960 cat >> confdefs.h <<\EOF
16961#define wxUSE_WCHAR_T 1
16962EOF
16963
16964
16965 WCSLEN_FOUND=0
16966 WCHAR_LINK=
16967 for ac_func in wcslen
16968do
16969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16970echo "configure:16971: checking for $ac_func" >&5
16971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16972 echo $ac_n "(cached) $ac_c" 1>&6
16973else
16974 cat > conftest.$ac_ext <<EOF
16975#line 16976 "configure"
16976#include "confdefs.h"
16977/* System header to define __stub macros and hopefully few prototypes,
16978 which can conflict with char $ac_func(); below. */
16979#include <assert.h>
16980/* Override any gcc2 internal prototype to avoid an error. */
16981/* We use char because int might match the return type of a gcc2
16982 builtin and then its argument prototype would still apply. */
16983char $ac_func();
16984
16985int main() {
16986
16987/* The GNU C library defines this for functions which it implements
16988 to always fail with ENOSYS. Some functions are actually named
16989 something starting with __ and the normal name is an alias. */
16990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16991choke me
16992#else
16993$ac_func();
16994#endif
16995
16996; return 0; }
16997EOF
16998if { (eval echo configure:16999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16999 rm -rf conftest*
17000 eval "ac_cv_func_$ac_func=yes"
17001else
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 eval "ac_cv_func_$ac_func=no"
17006fi
17007rm -f conftest*
17008fi
17009
17010if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17011 echo "$ac_t""yes" 1>&6
17012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17013 cat >> confdefs.h <<EOF
17014#define $ac_tr_func 1
17015EOF
17016 WCSLEN_FOUND=1
17017else
17018 echo "$ac_t""no" 1>&6
17019fi
17020done
17021
17022
17023 if test "$WCSLEN_FOUND" = 0; then
17024 if test "$TOOLKIT" = "MSW"; then
17025 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17026echo "configure:17027: checking for wcslen in -lmsvcrt" >&5
17027ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17028if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17030else
17031 ac_save_LIBS="$LIBS"
17032LIBS="-lmsvcrt $LIBS"
17033cat > conftest.$ac_ext <<EOF
17034#line 17035 "configure"
17035#include "confdefs.h"
17036/* Override any gcc2 internal prototype to avoid an error. */
17037/* We use char because int might match the return type of a gcc2
17038 builtin and then its argument prototype would still apply. */
17039char wcslen();
17040
17041int main() {
17042wcslen()
17043; return 0; }
17044EOF
17045if { (eval echo configure:17046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17046 rm -rf conftest*
17047 eval "ac_cv_lib_$ac_lib_var=yes"
17048else
17049 echo "configure: failed program was:" >&5
17050 cat conftest.$ac_ext >&5
17051 rm -rf conftest*
17052 eval "ac_cv_lib_$ac_lib_var=no"
17053fi
17054rm -f conftest*
17055LIBS="$ac_save_LIBS"
17056
17057fi
17058if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17059 echo "$ac_t""yes" 1>&6
17060 WCHAR_OK=1
17061else
17062 echo "$ac_t""no" 1>&6
17063fi
17064
17065 else
17066 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17067echo "configure:17068: checking for wcslen in -lw" >&5
17068ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17069if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17070 echo $ac_n "(cached) $ac_c" 1>&6
17071else
17072 ac_save_LIBS="$LIBS"
17073LIBS="-lw $LIBS"
17074cat > conftest.$ac_ext <<EOF
17075#line 17076 "configure"
17076#include "confdefs.h"
17077/* Override any gcc2 internal prototype to avoid an error. */
17078/* We use char because int might match the return type of a gcc2
17079 builtin and then its argument prototype would still apply. */
17080char wcslen();
17081
17082int main() {
17083wcslen()
17084; return 0; }
17085EOF
17086if { (eval echo configure:17087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17087 rm -rf conftest*
17088 eval "ac_cv_lib_$ac_lib_var=yes"
17089else
17090 echo "configure: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 rm -rf conftest*
17093 eval "ac_cv_lib_$ac_lib_var=no"
17094fi
17095rm -f conftest*
17096LIBS="$ac_save_LIBS"
17097
17098fi
17099if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17100 echo "$ac_t""yes" 1>&6
17101
17102 WCHAR_LINK=" -lw"
17103 WCSLEN_FOUND=1
17104
17105else
17106 echo "$ac_t""no" 1>&6
17107fi
17108
17109 fi
17110 fi
17111
17112 if test "$WCSLEN_FOUND" = 1; then
17113 cat >> confdefs.h <<\EOF
17114#define HAVE_WCSLEN 1
17115EOF
17116
17117 fi
17118
17119 for ac_func in wcsrtombs
17120do
17121echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17122echo "configure:17123: checking for $ac_func" >&5
17123if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17124 echo $ac_n "(cached) $ac_c" 1>&6
17125else
17126 cat > conftest.$ac_ext <<EOF
17127#line 17128 "configure"
17128#include "confdefs.h"
17129/* System header to define __stub macros and hopefully few prototypes,
17130 which can conflict with char $ac_func(); below. */
17131#include <assert.h>
17132/* Override any gcc2 internal prototype to avoid an error. */
17133/* We use char because int might match the return type of a gcc2
17134 builtin and then its argument prototype would still apply. */
17135char $ac_func();
17136
17137int main() {
17138
17139/* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
17142#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17143choke me
17144#else
17145$ac_func();
17146#endif
17147
17148; return 0; }
17149EOF
17150if { (eval echo configure:17151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17151 rm -rf conftest*
17152 eval "ac_cv_func_$ac_func=yes"
17153else
17154 echo "configure: failed program was:" >&5
17155 cat conftest.$ac_ext >&5
17156 rm -rf conftest*
17157 eval "ac_cv_func_$ac_func=no"
17158fi
17159rm -f conftest*
17160fi
17161
17162if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17163 echo "$ac_t""yes" 1>&6
17164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17165 cat >> confdefs.h <<EOF
17166#define $ac_tr_func 1
17167EOF
17168
17169else
17170 echo "$ac_t""no" 1>&6
17171fi
17172done
17173
17174else
17175 echo "configure: warning: Wide character support is unavailable" 1>&2
17176fi
17177
17178
17179ac_ext=C
17180# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17181ac_cpp='$CXXCPP $CPPFLAGS'
17182ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17183ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17184cross_compiling=$ac_cv_prog_cxx_cross
17185
17186
17187for ac_func in vsnprintf
17188do
17189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17190echo "configure:17191: checking for $ac_func" >&5
17191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17192 echo $ac_n "(cached) $ac_c" 1>&6
17193else
17194 cat > conftest.$ac_ext <<EOF
17195#line 17196 "configure"
17196#include "confdefs.h"
17197/* System header to define __stub macros and hopefully few prototypes,
17198 which can conflict with char $ac_func(); below. */
17199#include <assert.h>
17200/* Override any gcc2 internal prototype to avoid an error. */
17201#ifdef __cplusplus
17202extern "C"
17203#endif
17204/* We use char because int might match the return type of a gcc2
17205 builtin and then its argument prototype would still apply. */
17206char $ac_func();
17207
17208int main() {
17209
17210/* The GNU C library defines this for functions which it implements
17211 to always fail with ENOSYS. Some functions are actually named
17212 something starting with __ and the normal name is an alias. */
17213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17214choke me
17215#else
17216$ac_func();
17217#endif
17218
17219; return 0; }
17220EOF
17221if { (eval echo configure:17222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17222 rm -rf conftest*
17223 eval "ac_cv_func_$ac_func=yes"
17224else
17225 echo "configure: failed program was:" >&5
17226 cat conftest.$ac_ext >&5
17227 rm -rf conftest*
17228 eval "ac_cv_func_$ac_func=no"
17229fi
17230rm -f conftest*
17231fi
17232
17233if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17234 echo "$ac_t""yes" 1>&6
17235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17236 cat >> confdefs.h <<EOF
17237#define $ac_tr_func 1
17238EOF
17239
17240else
17241 echo "$ac_t""no" 1>&6
17242fi
17243done
17244
17245
17246if test "$ac_cv_func_vsnprintf" = "yes"; then
17247 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17248echo "configure:17249: checking for vsnprintf declaration" >&5
17249if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17250 echo $ac_n "(cached) $ac_c" 1>&6
17251else
17252
17253 cat > conftest.$ac_ext <<EOF
17254#line 17255 "configure"
17255#include "confdefs.h"
17256
17257 #include <stdio.h>
17258 #include <stdarg.h>
17259
17260int main() {
17261
17262 char *buf;
17263 va_list ap;
17264 vsnprintf(buf, 10u, "%s", ap);
17265
17266; return 0; }
17267EOF
17268if { (eval echo configure:17269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17269 rm -rf conftest*
17270 wx_cv_func_vsnprintf_decl=yes
17271else
17272 echo "configure: failed program was:" >&5
17273 cat conftest.$ac_ext >&5
17274 rm -rf conftest*
17275 wx_cv_func_vsnprintf_decl=no
17276
17277fi
17278rm -f conftest*
17279
17280
17281fi
17282
17283echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17284
17285 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17286 cat >> confdefs.h <<\EOF
17287#define HAVE_VSNPRINTF_DECL 1
17288EOF
17289
17290 fi
17291fi
17292
17293if test "$wxUSE_UNICODE" = yes; then
17294 for ac_func in fputwc wprintf vswprintf
17295do
17296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17297echo "configure:17298: checking for $ac_func" >&5
17298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17299 echo $ac_n "(cached) $ac_c" 1>&6
17300else
17301 cat > conftest.$ac_ext <<EOF
17302#line 17303 "configure"
17303#include "confdefs.h"
17304/* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char $ac_func(); below. */
17306#include <assert.h>
17307/* Override any gcc2 internal prototype to avoid an error. */
17308#ifdef __cplusplus
17309extern "C"
17310#endif
17311/* We use char because int might match the return type of a gcc2
17312 builtin and then its argument prototype would still apply. */
17313char $ac_func();
17314
17315int main() {
17316
17317/* The GNU C library defines this for functions which it implements
17318 to always fail with ENOSYS. Some functions are actually named
17319 something starting with __ and the normal name is an alias. */
17320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17321choke me
17322#else
17323$ac_func();
17324#endif
17325
17326; return 0; }
17327EOF
17328if { (eval echo configure:17329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17329 rm -rf conftest*
17330 eval "ac_cv_func_$ac_func=yes"
17331else
17332 echo "configure: failed program was:" >&5
17333 cat conftest.$ac_ext >&5
17334 rm -rf conftest*
17335 eval "ac_cv_func_$ac_func=no"
17336fi
17337rm -f conftest*
17338fi
17339
17340if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17341 echo "$ac_t""yes" 1>&6
17342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17343 cat >> confdefs.h <<EOF
17344#define $ac_tr_func 1
17345EOF
17346
17347else
17348 echo "$ac_t""no" 1>&6
17349fi
17350done
17351
17352
17353 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17354echo "configure:17355: checking for _vsnwprintf" >&5
17355 cat > conftest.$ac_ext <<EOF
17356#line 17357 "configure"
17357#include "confdefs.h"
17358#include <wchar.h>
17359int main() {
17360&_vsnwprintf;
17361; return 0; }
17362EOF
17363if { (eval echo configure:17364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17364 rm -rf conftest*
17365 echo "$ac_t""yes" 1>&6
17366 cat >> confdefs.h <<\EOF
17367#define HAVE__VSNWPRINTF 1
17368EOF
17369
17370else
17371 echo "configure: failed program was:" >&5
17372 cat conftest.$ac_ext >&5
17373 rm -rf conftest*
17374 echo "$ac_t""no" 1>&6
17375fi
17376rm -f conftest*;
17377fi
17378
17379ac_ext=c
17380# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17381ac_cpp='$CPP $CPPFLAGS'
17382ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17383ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17384cross_compiling=$ac_cv_prog_cc_cross
17385
17386
17387
17388
17389if test "$TOOLKIT" != "MSW"; then
17390
17391
17392
17393ac_ext=C
17394# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17395ac_cpp='$CXXCPP $CPPFLAGS'
17396ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17397ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17398cross_compiling=$ac_cv_prog_cxx_cross
17399
17400
17401
17402 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17403if test "${with_libiconv_prefix+set}" = set; then
17404 withval="$with_libiconv_prefix"
17405
17406 for dir in `echo "$withval" | tr : ' '`; do
17407 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17408 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17409 done
17410
17411fi
17412
17413
17414 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17415echo "configure:17416: checking for iconv" >&5
17416if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17417 echo $ac_n "(cached) $ac_c" 1>&6
17418else
17419
17420 am_cv_func_iconv="no, consider installing GNU libiconv"
17421 am_cv_lib_iconv=no
17422 cat > conftest.$ac_ext <<EOF
17423#line 17424 "configure"
17424#include "confdefs.h"
17425#include <stdlib.h>
17426#include <iconv.h>
17427int main() {
17428iconv_t cd = iconv_open("","");
17429 iconv(cd,NULL,NULL,NULL,NULL);
17430 iconv_close(cd);
17431; return 0; }
17432EOF
17433if { (eval echo configure:17434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17434 rm -rf conftest*
17435 am_cv_func_iconv=yes
17436else
17437 echo "configure: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439fi
17440rm -f conftest*
17441 if test "$am_cv_func_iconv" != yes; then
17442 am_save_LIBS="$LIBS"
17443 LIBS="$LIBS -liconv"
17444 cat > conftest.$ac_ext <<EOF
17445#line 17446 "configure"
17446#include "confdefs.h"
17447#include <stdlib.h>
17448#include <iconv.h>
17449int main() {
17450iconv_t cd = iconv_open("","");
17451 iconv(cd,NULL,NULL,NULL,NULL);
17452 iconv_close(cd);
17453; return 0; }
17454EOF
17455if { (eval echo configure:17456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17456 rm -rf conftest*
17457 am_cv_lib_iconv=yes
17458 am_cv_func_iconv=yes
17459else
17460 echo "configure: failed program was:" >&5
17461 cat conftest.$ac_ext >&5
17462fi
17463rm -f conftest*
17464 LIBS="$am_save_LIBS"
17465 fi
17466
17467fi
17468
17469echo "$ac_t""$am_cv_func_iconv" 1>&6
17470 if test "$am_cv_func_iconv" = yes; then
17471 cat >> confdefs.h <<\EOF
17472#define HAVE_ICONV 1
17473EOF
17474
17475 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17476echo "configure:17477: checking if iconv needs const" >&5
17477if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17478 echo $ac_n "(cached) $ac_c" 1>&6
17479else
17480 cat > conftest.$ac_ext <<EOF
17481#line 17482 "configure"
17482#include "confdefs.h"
17483
17484#include <stdlib.h>
17485#include <iconv.h>
17486extern
17487#ifdef __cplusplus
17488"C"
17489#endif
17490#if defined(__STDC__) || defined(__cplusplus)
17491size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17492#else
17493size_t iconv();
17494#endif
17495
17496int main() {
17497
17498; return 0; }
17499EOF
17500if { (eval echo configure:17501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17501 rm -rf conftest*
17502 wx_cv_func_iconv_const="no"
17503else
17504 echo "configure: failed program was:" >&5
17505 cat conftest.$ac_ext >&5
17506 rm -rf conftest*
17507 wx_cv_func_iconv_const="yes"
17508
17509fi
17510rm -f conftest*
17511
17512fi
17513
17514echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17515
17516 iconv_const=
17517 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17518 iconv_const="const"
17519 fi
17520
17521 cat >> confdefs.h <<EOF
17522#define ICONV_CONST $iconv_const
17523EOF
17524
17525 fi
17526 LIBICONV=
17527 if test "$am_cv_lib_iconv" = yes; then
17528 LIBICONV="-liconv"
17529 fi
17530
17531
17532LIBS="$LIBICONV $LIBS"
17533ac_ext=c
17534# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17535ac_cpp='$CPP $CPPFLAGS'
17536ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17537ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17538cross_compiling=$ac_cv_prog_cc_cross
17539
17540
17541if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17542 for ac_func in sigaction
17543do
17544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17545echo "configure:17546: checking for $ac_func" >&5
17546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17547 echo $ac_n "(cached) $ac_c" 1>&6
17548else
17549 cat > conftest.$ac_ext <<EOF
17550#line 17551 "configure"
17551#include "confdefs.h"
17552/* System header to define __stub macros and hopefully few prototypes,
17553 which can conflict with char $ac_func(); below. */
17554#include <assert.h>
17555/* Override any gcc2 internal prototype to avoid an error. */
17556/* We use char because int might match the return type of a gcc2
17557 builtin and then its argument prototype would still apply. */
17558char $ac_func();
17559
17560int main() {
17561
17562/* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17566choke me
17567#else
17568$ac_func();
17569#endif
17570
17571; return 0; }
17572EOF
17573if { (eval echo configure:17574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17574 rm -rf conftest*
17575 eval "ac_cv_func_$ac_func=yes"
17576else
17577 echo "configure: failed program was:" >&5
17578 cat conftest.$ac_ext >&5
17579 rm -rf conftest*
17580 eval "ac_cv_func_$ac_func=no"
17581fi
17582rm -f conftest*
17583fi
17584
17585if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17586 echo "$ac_t""yes" 1>&6
17587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17588 cat >> confdefs.h <<EOF
17589#define $ac_tr_func 1
17590EOF
17591
17592else
17593 echo "$ac_t""no" 1>&6
17594fi
17595done
17596
17597
17598 if test "$ac_cv_func_sigaction" = "no"; then
17599 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17600 wxUSE_ON_FATAL_EXCEPTION=no
17601 fi
17602
17603 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17604
17605 ac_ext=C
17606# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17607ac_cpp='$CXXCPP $CPPFLAGS'
17608ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17609ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17610cross_compiling=$ac_cv_prog_cxx_cross
17611
17612
17613 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17614echo "configure:17615: checking for sa_handler type" >&5
17615if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17616 echo $ac_n "(cached) $ac_c" 1>&6
17617else
17618
17619 cat > conftest.$ac_ext <<EOF
17620#line 17621 "configure"
17621#include "confdefs.h"
17622#include <signal.h>
17623int main() {
17624
17625 extern void testSigHandler(int);
17626
17627 struct sigaction sa;
17628 sa.sa_handler = testSigHandler;
17629
17630; return 0; }
17631EOF
17632if { (eval echo configure:17633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17633 rm -rf conftest*
17634
17635 wx_cv_type_sa_handler=int
17636
17637else
17638 echo "configure: failed program was:" >&5
17639 cat conftest.$ac_ext >&5
17640 rm -rf conftest*
17641
17642 wx_cv_type_sa_handler=void
17643
17644fi
17645rm -f conftest*
17646
17647fi
17648
17649echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17650
17651 ac_ext=c
17652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17653ac_cpp='$CPP $CPPFLAGS'
17654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17656cross_compiling=$ac_cv_prog_cc_cross
17657
17658
17659 cat >> confdefs.h <<EOF
17660#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17661EOF
17662
17663 fi
17664fi
17665
17666for ac_func in mkstemp mktemp
17667do
17668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17669echo "configure:17670: checking for $ac_func" >&5
17670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17671 echo $ac_n "(cached) $ac_c" 1>&6
17672else
17673 cat > conftest.$ac_ext <<EOF
17674#line 17675 "configure"
17675#include "confdefs.h"
17676/* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char $ac_func(); below. */
17678#include <assert.h>
17679/* Override any gcc2 internal prototype to avoid an error. */
17680/* We use char because int might match the return type of a gcc2
17681 builtin and then its argument prototype would still apply. */
17682char $ac_func();
17683
17684int main() {
17685
17686/* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17690choke me
17691#else
17692$ac_func();
17693#endif
17694
17695; return 0; }
17696EOF
17697if { (eval echo configure:17698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17698 rm -rf conftest*
17699 eval "ac_cv_func_$ac_func=yes"
17700else
17701 echo "configure: failed program was:" >&5
17702 cat conftest.$ac_ext >&5
17703 rm -rf conftest*
17704 eval "ac_cv_func_$ac_func=no"
17705fi
17706rm -f conftest*
17707fi
17708
17709if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17710 echo "$ac_t""yes" 1>&6
17711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17712 cat >> confdefs.h <<EOF
17713#define $ac_tr_func 1
17714EOF
17715 break
17716else
17717 echo "$ac_t""no" 1>&6
17718fi
17719done
17720
17721
17722echo $ac_n "checking for statfs""... $ac_c" 1>&6
17723echo "configure:17724: checking for statfs" >&5
17724if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17725 echo $ac_n "(cached) $ac_c" 1>&6
17726else
17727 cat > conftest.$ac_ext <<EOF
17728#line 17729 "configure"
17729#include "confdefs.h"
17730
17731 #if defined(__BSD__)
17732 #include <sys/param.h>
17733 #include <sys/mount.h>
17734 #else
17735 #include <sys/vfs.h>
17736 #endif
17737
17738int main() {
17739
17740 long l;
17741 struct statfs fs;
17742 statfs("/", &fs);
17743 l = fs.f_bsize;
17744 l += fs.f_blocks;
17745 l += fs.f_bavail;
17746
17747; return 0; }
17748EOF
17749if { (eval echo configure:17750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17750 rm -rf conftest*
17751
17752 wx_cv_func_statfs=yes
17753
17754else
17755 echo "configure: failed program was:" >&5
17756 cat conftest.$ac_ext >&5
17757 rm -rf conftest*
17758
17759 wx_cv_func_statfs=no
17760
17761
17762fi
17763rm -f conftest*
17764
17765fi
17766
17767echo "$ac_t""$wx_cv_func_statfs" 1>&6
17768
17769if test "$wx_cv_func_statfs" = "yes"; then
17770 wx_cv_type_statvfs_t="struct statfs"
17771 cat >> confdefs.h <<\EOF
17772#define HAVE_STATFS 1
17773EOF
17774
17775else
17776 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17777echo "configure:17778: checking for statvfs" >&5
17778if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17779 echo $ac_n "(cached) $ac_c" 1>&6
17780else
17781 cat > conftest.$ac_ext <<EOF
17782#line 17783 "configure"
17783#include "confdefs.h"
17784
17785 #include <stddef.h>
17786 #include <sys/statvfs.h>
17787
17788int main() {
17789
17790 statvfs("/", NULL);
17791
17792; return 0; }
17793EOF
17794if { (eval echo configure:17795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17795 rm -rf conftest*
17796 wx_cv_func_statvfs=yes
17797else
17798 echo "configure: failed program was:" >&5
17799 cat conftest.$ac_ext >&5
17800 rm -rf conftest*
17801 wx_cv_func_statvfs=no
17802
17803fi
17804rm -f conftest*
17805
17806fi
17807
17808echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17809
17810 if test "$wx_cv_func_statvfs" = "yes"; then
17811
17812 ac_ext=C
17813# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17814ac_cpp='$CXXCPP $CPPFLAGS'
17815ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17816ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17817cross_compiling=$ac_cv_prog_cxx_cross
17818
17819
17820 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17821echo "configure:17822: checking for statvfs argument type" >&5
17822if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17823 echo $ac_n "(cached) $ac_c" 1>&6
17824else
17825 cat > conftest.$ac_ext <<EOF
17826#line 17827 "configure"
17827#include "confdefs.h"
17828
17829 #include <sys/statvfs.h>
17830
17831int main() {
17832
17833 long l;
17834 statvfs_t fs;
17835 statvfs("/", &fs);
17836 l = fs.f_bsize;
17837 l += fs.f_blocks;
17838 l += fs.f_bavail;
17839
17840; return 0; }
17841EOF
17842if { (eval echo configure:17843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17843 rm -rf conftest*
17844 wx_cv_type_statvfs_t=statvfs_t
17845else
17846 echo "configure: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 rm -rf conftest*
17849
17850 cat > conftest.$ac_ext <<EOF
17851#line 17852 "configure"
17852#include "confdefs.h"
17853
17854 #include <sys/statvfs.h>
17855
17856int main() {
17857
17858 long l;
17859 struct statvfs fs;
17860 statvfs("/", &fs);
17861 l = fs.f_bsize;
17862 l += fs.f_blocks;
17863 l += fs.f_bavail;
17864
17865; return 0; }
17866EOF
17867if { (eval echo configure:17868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17868 rm -rf conftest*
17869 wx_cv_type_statvfs_t="struct statvfs"
17870else
17871 echo "configure: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 rm -rf conftest*
17874 wx_cv_type_statvfs_t="unknown"
17875
17876fi
17877rm -f conftest*
17878
17879
17880fi
17881rm -f conftest*
17882
17883fi
17884
17885echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17886
17887 ac_ext=c
17888# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17889ac_cpp='$CPP $CPPFLAGS'
17890ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17891ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17892cross_compiling=$ac_cv_prog_cc_cross
17893
17894
17895 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17896 cat >> confdefs.h <<\EOF
17897#define HAVE_STATVFS 1
17898EOF
17899
17900 fi
17901 else
17902 wx_cv_type_statvfs_t="unknown"
17903 fi
17904fi
17905
17906if test "$wx_cv_type_statvfs_t" != "unknown"; then
17907 cat >> confdefs.h <<EOF
17908#define WX_STATFS_T $wx_cv_type_statvfs_t
17909EOF
17910
17911else
17912 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17913fi
17914
17915if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17916 for ac_func in fcntl flock
17917do
17918echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17919echo "configure:17920: checking for $ac_func" >&5
17920if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17921 echo $ac_n "(cached) $ac_c" 1>&6
17922else
17923 cat > conftest.$ac_ext <<EOF
17924#line 17925 "configure"
17925#include "confdefs.h"
17926/* System header to define __stub macros and hopefully few prototypes,
17927 which can conflict with char $ac_func(); below. */
17928#include <assert.h>
17929/* Override any gcc2 internal prototype to avoid an error. */
17930/* We use char because int might match the return type of a gcc2
17931 builtin and then its argument prototype would still apply. */
17932char $ac_func();
17933
17934int main() {
17935
17936/* The GNU C library defines this for functions which it implements
17937 to always fail with ENOSYS. Some functions are actually named
17938 something starting with __ and the normal name is an alias. */
17939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17940choke me
17941#else
17942$ac_func();
17943#endif
17944
17945; return 0; }
17946EOF
17947if { (eval echo configure:17948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17948 rm -rf conftest*
17949 eval "ac_cv_func_$ac_func=yes"
17950else
17951 echo "configure: failed program was:" >&5
17952 cat conftest.$ac_ext >&5
17953 rm -rf conftest*
17954 eval "ac_cv_func_$ac_func=no"
17955fi
17956rm -f conftest*
17957fi
17958
17959if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17960 echo "$ac_t""yes" 1>&6
17961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17962 cat >> confdefs.h <<EOF
17963#define $ac_tr_func 1
17964EOF
17965 break
17966else
17967 echo "$ac_t""no" 1>&6
17968fi
17969done
17970
17971
17972 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17973 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17974 wxUSE_SNGLINST_CHECKER=no
17975 fi
17976fi
17977
17978for ac_func in timegm
17979do
17980echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17981echo "configure:17982: checking for $ac_func" >&5
17982if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17983 echo $ac_n "(cached) $ac_c" 1>&6
17984else
17985 cat > conftest.$ac_ext <<EOF
17986#line 17987 "configure"
17987#include "confdefs.h"
17988/* System header to define __stub macros and hopefully few prototypes,
17989 which can conflict with char $ac_func(); below. */
17990#include <assert.h>
17991/* Override any gcc2 internal prototype to avoid an error. */
17992/* We use char because int might match the return type of a gcc2
17993 builtin and then its argument prototype would still apply. */
17994char $ac_func();
17995
17996int main() {
17997
17998/* The GNU C library defines this for functions which it implements
17999 to always fail with ENOSYS. Some functions are actually named
18000 something starting with __ and the normal name is an alias. */
18001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18002choke me
18003#else
18004$ac_func();
18005#endif
18006
18007; return 0; }
18008EOF
18009if { (eval echo configure:18010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18010 rm -rf conftest*
18011 eval "ac_cv_func_$ac_func=yes"
18012else
18013 echo "configure: failed program was:" >&5
18014 cat conftest.$ac_ext >&5
18015 rm -rf conftest*
18016 eval "ac_cv_func_$ac_func=no"
18017fi
18018rm -f conftest*
18019fi
18020
18021if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18022 echo "$ac_t""yes" 1>&6
18023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18024 cat >> confdefs.h <<EOF
18025#define $ac_tr_func 1
18026EOF
18027
18028else
18029 echo "$ac_t""no" 1>&6
18030fi
18031done
18032
18033
18034for ac_func in putenv setenv
18035do
18036echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18037echo "configure:18038: checking for $ac_func" >&5
18038if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18039 echo $ac_n "(cached) $ac_c" 1>&6
18040else
18041 cat > conftest.$ac_ext <<EOF
18042#line 18043 "configure"
18043#include "confdefs.h"
18044/* System header to define __stub macros and hopefully few prototypes,
18045 which can conflict with char $ac_func(); below. */
18046#include <assert.h>
18047/* Override any gcc2 internal prototype to avoid an error. */
18048/* We use char because int might match the return type of a gcc2
18049 builtin and then its argument prototype would still apply. */
18050char $ac_func();
18051
18052int main() {
18053
18054/* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18058choke me
18059#else
18060$ac_func();
18061#endif
18062
18063; return 0; }
18064EOF
18065if { (eval echo configure:18066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18066 rm -rf conftest*
18067 eval "ac_cv_func_$ac_func=yes"
18068else
18069 echo "configure: failed program was:" >&5
18070 cat conftest.$ac_ext >&5
18071 rm -rf conftest*
18072 eval "ac_cv_func_$ac_func=no"
18073fi
18074rm -f conftest*
18075fi
18076
18077if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18078 echo "$ac_t""yes" 1>&6
18079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18080 cat >> confdefs.h <<EOF
18081#define $ac_tr_func 1
18082EOF
18083 break
18084else
18085 echo "$ac_t""no" 1>&6
18086fi
18087done
18088
18089
18090HAVE_SOME_SLEEP_FUNC=0
18091if test "$USE_BEOS" = 1; then
18092 cat >> confdefs.h <<\EOF
18093#define HAVE_SLEEP 1
18094EOF
18095
18096 HAVE_SOME_SLEEP_FUNC=1
18097fi
18098
18099if test "$USE_DARWIN" = 1; then
18100 cat >> confdefs.h <<\EOF
18101#define HAVE_USLEEP 1
18102EOF
18103
18104 HAVE_SOME_SLEEP_FUNC=1
18105fi
18106
18107if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18108 POSIX4_LINK=
18109 for ac_func in nanosleep
18110do
18111echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18112echo "configure:18113: checking for $ac_func" >&5
18113if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18114 echo $ac_n "(cached) $ac_c" 1>&6
18115else
18116 cat > conftest.$ac_ext <<EOF
18117#line 18118 "configure"
18118#include "confdefs.h"
18119/* System header to define __stub macros and hopefully few prototypes,
18120 which can conflict with char $ac_func(); below. */
18121#include <assert.h>
18122/* Override any gcc2 internal prototype to avoid an error. */
18123/* We use char because int might match the return type of a gcc2
18124 builtin and then its argument prototype would still apply. */
18125char $ac_func();
18126
18127int main() {
18128
18129/* The GNU C library defines this for functions which it implements
18130 to always fail with ENOSYS. Some functions are actually named
18131 something starting with __ and the normal name is an alias. */
18132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18133choke me
18134#else
18135$ac_func();
18136#endif
18137
18138; return 0; }
18139EOF
18140if { (eval echo configure:18141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18141 rm -rf conftest*
18142 eval "ac_cv_func_$ac_func=yes"
18143else
18144 echo "configure: failed program was:" >&5
18145 cat conftest.$ac_ext >&5
18146 rm -rf conftest*
18147 eval "ac_cv_func_$ac_func=no"
18148fi
18149rm -f conftest*
18150fi
18151
18152if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18153 echo "$ac_t""yes" 1>&6
18154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18155 cat >> confdefs.h <<EOF
18156#define $ac_tr_func 1
18157EOF
18158 cat >> confdefs.h <<\EOF
18159#define HAVE_NANOSLEEP 1
18160EOF
18161
18162else
18163 echo "$ac_t""no" 1>&6
18164echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18165echo "configure:18166: checking for nanosleep in -lposix4" >&5
18166ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18167if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18168 echo $ac_n "(cached) $ac_c" 1>&6
18169else
18170 ac_save_LIBS="$LIBS"
18171LIBS="-lposix4 $LIBS"
18172cat > conftest.$ac_ext <<EOF
18173#line 18174 "configure"
18174#include "confdefs.h"
18175/* Override any gcc2 internal prototype to avoid an error. */
18176/* We use char because int might match the return type of a gcc2
18177 builtin and then its argument prototype would still apply. */
18178char nanosleep();
18179
18180int main() {
18181nanosleep()
18182; return 0; }
18183EOF
18184if { (eval echo configure:18185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18185 rm -rf conftest*
18186 eval "ac_cv_lib_$ac_lib_var=yes"
18187else
18188 echo "configure: failed program was:" >&5
18189 cat conftest.$ac_ext >&5
18190 rm -rf conftest*
18191 eval "ac_cv_lib_$ac_lib_var=no"
18192fi
18193rm -f conftest*
18194LIBS="$ac_save_LIBS"
18195
18196fi
18197if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18198 echo "$ac_t""yes" 1>&6
18199
18200 cat >> confdefs.h <<\EOF
18201#define HAVE_NANOSLEEP 1
18202EOF
18203
18204 POSIX4_LINK=" -lposix4"
18205
18206else
18207 echo "$ac_t""no" 1>&6
18208
18209 for ac_func in usleep
18210do
18211echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18212echo "configure:18213: checking for $ac_func" >&5
18213if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18214 echo $ac_n "(cached) $ac_c" 1>&6
18215else
18216 cat > conftest.$ac_ext <<EOF
18217#line 18218 "configure"
18218#include "confdefs.h"
18219/* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char $ac_func(); below. */
18221#include <assert.h>
18222/* Override any gcc2 internal prototype to avoid an error. */
18223/* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18225char $ac_func();
18226
18227int main() {
18228
18229/* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18233choke me
18234#else
18235$ac_func();
18236#endif
18237
18238; return 0; }
18239EOF
18240if { (eval echo configure:18241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18241 rm -rf conftest*
18242 eval "ac_cv_func_$ac_func=yes"
18243else
18244 echo "configure: failed program was:" >&5
18245 cat conftest.$ac_ext >&5
18246 rm -rf conftest*
18247 eval "ac_cv_func_$ac_func=no"
18248fi
18249rm -f conftest*
18250fi
18251
18252if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18253 echo "$ac_t""yes" 1>&6
18254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18255 cat >> confdefs.h <<EOF
18256#define $ac_tr_func 1
18257EOF
18258 cat >> confdefs.h <<\EOF
18259#define HAVE_USLEEP 1
18260EOF
18261
18262else
18263 echo "$ac_t""no" 1>&6
18264echo "configure: warning: wxSleep() function will not work" 1>&2
18265
18266fi
18267done
18268
18269
18270
18271fi
18272
18273
18274
18275fi
18276done
18277
18278fi
18279
18280for ac_func in uname gethostname
18281do
18282echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18283echo "configure:18284: checking for $ac_func" >&5
18284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18285 echo $ac_n "(cached) $ac_c" 1>&6
18286else
18287 cat > conftest.$ac_ext <<EOF
18288#line 18289 "configure"
18289#include "confdefs.h"
18290/* System header to define __stub macros and hopefully few prototypes,
18291 which can conflict with char $ac_func(); below. */
18292#include <assert.h>
18293/* Override any gcc2 internal prototype to avoid an error. */
18294/* We use char because int might match the return type of a gcc2
18295 builtin and then its argument prototype would still apply. */
18296char $ac_func();
18297
18298int main() {
18299
18300/* The GNU C library defines this for functions which it implements
18301 to always fail with ENOSYS. Some functions are actually named
18302 something starting with __ and the normal name is an alias. */
18303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18304choke me
18305#else
18306$ac_func();
18307#endif
18308
18309; return 0; }
18310EOF
18311if { (eval echo configure:18312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18312 rm -rf conftest*
18313 eval "ac_cv_func_$ac_func=yes"
18314else
18315 echo "configure: failed program was:" >&5
18316 cat conftest.$ac_ext >&5
18317 rm -rf conftest*
18318 eval "ac_cv_func_$ac_func=no"
18319fi
18320rm -f conftest*
18321fi
18322
18323if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18324 echo "$ac_t""yes" 1>&6
18325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18326 cat >> confdefs.h <<EOF
18327#define $ac_tr_func 1
18328EOF
18329 break
18330else
18331 echo "$ac_t""no" 1>&6
18332fi
18333done
18334
18335
18336
18337ac_ext=C
18338# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18339ac_cpp='$CXXCPP $CPPFLAGS'
18340ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18341ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18342cross_compiling=$ac_cv_prog_cxx_cross
18343
18344
18345for ac_func in strtok_r
18346do
18347echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18348echo "configure:18349: checking for $ac_func" >&5
18349if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18350 echo $ac_n "(cached) $ac_c" 1>&6
18351else
18352 cat > conftest.$ac_ext <<EOF
18353#line 18354 "configure"
18354#include "confdefs.h"
18355/* System header to define __stub macros and hopefully few prototypes,
18356 which can conflict with char $ac_func(); below. */
18357#include <assert.h>
18358/* Override any gcc2 internal prototype to avoid an error. */
18359#ifdef __cplusplus
18360extern "C"
18361#endif
18362/* We use char because int might match the return type of a gcc2
18363 builtin and then its argument prototype would still apply. */
18364char $ac_func();
18365
18366int main() {
18367
18368/* The GNU C library defines this for functions which it implements
18369 to always fail with ENOSYS. Some functions are actually named
18370 something starting with __ and the normal name is an alias. */
18371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18372choke me
18373#else
18374$ac_func();
18375#endif
18376
18377; return 0; }
18378EOF
18379if { (eval echo configure:18380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18380 rm -rf conftest*
18381 eval "ac_cv_func_$ac_func=yes"
18382else
18383 echo "configure: failed program was:" >&5
18384 cat conftest.$ac_ext >&5
18385 rm -rf conftest*
18386 eval "ac_cv_func_$ac_func=no"
18387fi
18388rm -f conftest*
18389fi
18390
18391if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18392 echo "$ac_t""yes" 1>&6
18393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18394 cat >> confdefs.h <<EOF
18395#define $ac_tr_func 1
18396EOF
18397
18398else
18399 echo "$ac_t""no" 1>&6
18400fi
18401done
18402
18403
18404ac_ext=c
18405# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18406ac_cpp='$CPP $CPPFLAGS'
18407ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18408ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18409cross_compiling=$ac_cv_prog_cc_cross
18410
18411
18412INET_LINK=
18413for ac_func in inet_addr
18414do
18415echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18416echo "configure:18417: checking for $ac_func" >&5
18417if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18418 echo $ac_n "(cached) $ac_c" 1>&6
18419else
18420 cat > conftest.$ac_ext <<EOF
18421#line 18422 "configure"
18422#include "confdefs.h"
18423/* System header to define __stub macros and hopefully few prototypes,
18424 which can conflict with char $ac_func(); below. */
18425#include <assert.h>
18426/* Override any gcc2 internal prototype to avoid an error. */
18427/* We use char because int might match the return type of a gcc2
18428 builtin and then its argument prototype would still apply. */
18429char $ac_func();
18430
18431int main() {
18432
18433/* The GNU C library defines this for functions which it implements
18434 to always fail with ENOSYS. Some functions are actually named
18435 something starting with __ and the normal name is an alias. */
18436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18437choke me
18438#else
18439$ac_func();
18440#endif
18441
18442; return 0; }
18443EOF
18444if { (eval echo configure:18445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18445 rm -rf conftest*
18446 eval "ac_cv_func_$ac_func=yes"
18447else
18448 echo "configure: failed program was:" >&5
18449 cat conftest.$ac_ext >&5
18450 rm -rf conftest*
18451 eval "ac_cv_func_$ac_func=no"
18452fi
18453rm -f conftest*
18454fi
18455
18456if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18457 echo "$ac_t""yes" 1>&6
18458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18459 cat >> confdefs.h <<EOF
18460#define $ac_tr_func 1
18461EOF
18462 cat >> confdefs.h <<\EOF
18463#define HAVE_INET_ADDR 1
18464EOF
18465
18466else
18467 echo "$ac_t""no" 1>&6
18468echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18469echo "configure:18470: checking for inet_addr in -lnsl" >&5
18470ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18472 echo $ac_n "(cached) $ac_c" 1>&6
18473else
18474 ac_save_LIBS="$LIBS"
18475LIBS="-lnsl $LIBS"
18476cat > conftest.$ac_ext <<EOF
18477#line 18478 "configure"
18478#include "confdefs.h"
18479/* Override any gcc2 internal prototype to avoid an error. */
18480/* We use char because int might match the return type of a gcc2
18481 builtin and then its argument prototype would still apply. */
18482char inet_addr();
18483
18484int main() {
18485inet_addr()
18486; return 0; }
18487EOF
18488if { (eval echo configure:18489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18489 rm -rf conftest*
18490 eval "ac_cv_lib_$ac_lib_var=yes"
18491else
18492 echo "configure: failed program was:" >&5
18493 cat conftest.$ac_ext >&5
18494 rm -rf conftest*
18495 eval "ac_cv_lib_$ac_lib_var=no"
18496fi
18497rm -f conftest*
18498LIBS="$ac_save_LIBS"
18499
18500fi
18501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18502 echo "$ac_t""yes" 1>&6
18503 INET_LINK="nsl"
18504else
18505 echo "$ac_t""no" 1>&6
18506echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18507echo "configure:18508: checking for inet_addr in -lresolv" >&5
18508ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18510 echo $ac_n "(cached) $ac_c" 1>&6
18511else
18512 ac_save_LIBS="$LIBS"
18513LIBS="-lresolv $LIBS"
18514cat > conftest.$ac_ext <<EOF
18515#line 18516 "configure"
18516#include "confdefs.h"
18517/* Override any gcc2 internal prototype to avoid an error. */
18518/* We use char because int might match the return type of a gcc2
18519 builtin and then its argument prototype would still apply. */
18520char inet_addr();
18521
18522int main() {
18523inet_addr()
18524; return 0; }
18525EOF
18526if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18527 rm -rf conftest*
18528 eval "ac_cv_lib_$ac_lib_var=yes"
18529else
18530 echo "configure: failed program was:" >&5
18531 cat conftest.$ac_ext >&5
18532 rm -rf conftest*
18533 eval "ac_cv_lib_$ac_lib_var=no"
18534fi
18535rm -f conftest*
18536LIBS="$ac_save_LIBS"
18537
18538fi
18539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18540 echo "$ac_t""yes" 1>&6
18541 INET_LINK="resolv"
18542else
18543 echo "$ac_t""no" 1>&6
18544echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18545echo "configure:18546: checking for inet_addr in -lsocket" >&5
18546ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18548 echo $ac_n "(cached) $ac_c" 1>&6
18549else
18550 ac_save_LIBS="$LIBS"
18551LIBS="-lsocket $LIBS"
18552cat > conftest.$ac_ext <<EOF
18553#line 18554 "configure"
18554#include "confdefs.h"
18555/* Override any gcc2 internal prototype to avoid an error. */
18556/* We use char because int might match the return type of a gcc2
18557 builtin and then its argument prototype would still apply. */
18558char inet_addr();
18559
18560int main() {
18561inet_addr()
18562; return 0; }
18563EOF
18564if { (eval echo configure:18565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18565 rm -rf conftest*
18566 eval "ac_cv_lib_$ac_lib_var=yes"
18567else
18568 echo "configure: failed program was:" >&5
18569 cat conftest.$ac_ext >&5
18570 rm -rf conftest*
18571 eval "ac_cv_lib_$ac_lib_var=no"
18572fi
18573rm -f conftest*
18574LIBS="$ac_save_LIBS"
18575
18576fi
18577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18578 echo "$ac_t""yes" 1>&6
18579 INET_LINK="socket"
18580
18581else
18582 echo "$ac_t""no" 1>&6
18583fi
18584
18585
18586fi
18587
18588
18589fi
18590
18591
18592
18593fi
18594done
18595
18596
18597for ac_func in inet_aton
18598do
18599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18600echo "configure:18601: checking for $ac_func" >&5
18601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18602 echo $ac_n "(cached) $ac_c" 1>&6
18603else
18604 cat > conftest.$ac_ext <<EOF
18605#line 18606 "configure"
18606#include "confdefs.h"
18607/* System header to define __stub macros and hopefully few prototypes,
18608 which can conflict with char $ac_func(); below. */
18609#include <assert.h>
18610/* Override any gcc2 internal prototype to avoid an error. */
18611/* We use char because int might match the return type of a gcc2
18612 builtin and then its argument prototype would still apply. */
18613char $ac_func();
18614
18615int main() {
18616
18617/* The GNU C library defines this for functions which it implements
18618 to always fail with ENOSYS. Some functions are actually named
18619 something starting with __ and the normal name is an alias. */
18620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18621choke me
18622#else
18623$ac_func();
18624#endif
18625
18626; return 0; }
18627EOF
18628if { (eval echo configure:18629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18629 rm -rf conftest*
18630 eval "ac_cv_func_$ac_func=yes"
18631else
18632 echo "configure: failed program was:" >&5
18633 cat conftest.$ac_ext >&5
18634 rm -rf conftest*
18635 eval "ac_cv_func_$ac_func=no"
18636fi
18637rm -f conftest*
18638fi
18639
18640if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18641 echo "$ac_t""yes" 1>&6
18642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18643 cat >> confdefs.h <<EOF
18644#define $ac_tr_func 1
18645EOF
18646 cat >> confdefs.h <<\EOF
18647#define HAVE_INET_ATON 1
18648EOF
18649
18650else
18651 echo "$ac_t""no" 1>&6
18652 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18653echo "configure:18654: checking for inet_aton in -l$INET_LINK" >&5
18654ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18656 echo $ac_n "(cached) $ac_c" 1>&6
18657else
18658 ac_save_LIBS="$LIBS"
18659LIBS="-l$INET_LINK $LIBS"
18660cat > conftest.$ac_ext <<EOF
18661#line 18662 "configure"
18662#include "confdefs.h"
18663/* Override any gcc2 internal prototype to avoid an error. */
18664/* We use char because int might match the return type of a gcc2
18665 builtin and then its argument prototype would still apply. */
18666char inet_aton();
18667
18668int main() {
18669inet_aton()
18670; return 0; }
18671EOF
18672if { (eval echo configure:18673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18673 rm -rf conftest*
18674 eval "ac_cv_lib_$ac_lib_var=yes"
18675else
18676 echo "configure: failed program was:" >&5
18677 cat conftest.$ac_ext >&5
18678 rm -rf conftest*
18679 eval "ac_cv_lib_$ac_lib_var=no"
18680fi
18681rm -f conftest*
18682LIBS="$ac_save_LIBS"
18683
18684fi
18685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18686 echo "$ac_t""yes" 1>&6
18687 cat >> confdefs.h <<\EOF
18688#define HAVE_INET_ATON 1
18689EOF
18690
18691else
18692 echo "$ac_t""no" 1>&6
18693fi
18694
18695
18696fi
18697done
18698
18699
18700if test "x$INET_LINK" != "x"; then
18701 cat >> confdefs.h <<\EOF
18702#define HAVE_INET_ADDR 1
18703EOF
18704
18705 INET_LINK=" -l$INET_LINK"
18706fi
18707
18708fi
18709
18710
18711cat > confcache <<\EOF
18712# This file is a shell script that caches the results of configure
18713# tests run on this system so they can be shared between configure
18714# scripts and configure runs. It is not useful on other systems.
18715# If it contains results you don't want to keep, you may remove or edit it.
18716#
18717# By default, configure uses ./config.cache as the cache file,
18718# creating it if it does not exist already. You can give configure
18719# the --cache-file=FILE option to use a different cache file; that is
18720# what configure does when it calls configure scripts in
18721# subdirectories, so they share the cache.
18722# Giving --cache-file=/dev/null disables caching, for debugging configure.
18723# config.status only pays attention to the cache file if you give it the
18724# --recheck option to rerun configure.
18725#
18726EOF
18727# The following way of writing the cache mishandles newlines in values,
18728# but we know of no workaround that is simple, portable, and efficient.
18729# So, don't put newlines in cache variables' values.
18730# Ultrix sh set writes to stderr and can't be redirected directly,
18731# and sets the high bit in the cache file unless we assign to the vars.
18732(set) 2>&1 |
18733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18734 *ac_space=\ *)
18735 # `set' does not quote correctly, so add quotes (double-quote substitution
18736 # turns \\\\ into \\, and sed turns \\ into \).
18737 sed -n \
18738 -e "s/'/'\\\\''/g" \
18739 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18740 ;;
18741 *)
18742 # `set' quotes correctly as required by POSIX, so do not add quotes.
18743 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18744 ;;
18745 esac >> confcache
18746if cmp -s $cache_file confcache; then
18747 :
18748else
18749 if test -w $cache_file; then
18750 echo "updating cache $cache_file"
18751 cat confcache > $cache_file
18752 else
18753 echo "not updating unwritable cache $cache_file"
18754 fi
18755fi
18756rm -f confcache
18757
18758
18759
18760CPP_MT_FLAG=
18761if test "$TOOLKIT" != "MSW"; then
18762
18763
18764 THREADS_LINK=
18765 THREADS_CFLAGS=
18766
18767 if test "$wxUSE_THREADS" = "yes" ; then
18768 if test "$USE_BEOS" = 1; then
18769 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18770 wxUSE_THREADS="no"
18771 fi
18772 fi
18773
18774 if test "$wxUSE_THREADS" = "yes" ; then
18775
18776
18777 THREAD_OPTS="-pthread"
18778 case "${host}" in
18779 *-*-solaris2* | *-*-sunos4* )
18780 if test "x$GCC" = "xyes"; then
18781 THREAD_OPTS="-pthreads $THREAD_OPTS"
18782 else
18783 THREAD_OPTS="-mt $THREAD_OPTS"
18784 fi
18785 ;;
18786 *-*-freebsd*)
18787 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18788 ;;
18789 *-*-darwin* | *-*-cygwin* )
18790 THREAD_OPTS=""
18791 ;;
18792 *-*-aix*)
18793 THREAD_OPTS="pthreads"
18794 ;;
18795 *-hp-hpux* )
18796 if test "x$GCC" != "xyes"; then
18797 THREAD_OPTS=""
18798 fi
18799 ;;
18800
18801 *-*-irix* )
18802 if test "x$GCC" = "xyes"; then
18803 THREAD_OPTS=""
18804 fi
18805 ;;
18806
18807 *-*-*UnixWare*)
18808 if test "x$GCC" != "xyes"; then
18809 THREAD_OPTS="-Ethread"
18810 fi
18811 ;;
18812 esac
18813
18814 THREAD_OPTS="$THREAD_OPTS pthread none"
18815
18816 THREADS_OK=no
18817 for flag in $THREAD_OPTS; do
18818 case $flag in
18819 none)
18820 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18821echo "configure:18822: checking whether pthreads work without any flags" >&5
18822 ;;
18823
18824 -*)
18825 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18826echo "configure:18827: checking whether pthreads work with $flag" >&5
18827 THREADS_CFLAGS="$flag"
18828 ;;
18829
18830 *)
18831 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18832echo "configure:18833: checking for the pthreads library -l$flag" >&5
18833 THREADS_LINK="-l$flag"
18834 ;;
18835 esac
18836
18837 save_LIBS="$LIBS"
18838 save_CFLAGS="$CFLAGS"
18839 LIBS="$THREADS_LINK $LIBS"
18840 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18841
18842 cat > conftest.$ac_ext <<EOF
18843#line 18844 "configure"
18844#include "confdefs.h"
18845#include <pthread.h>
18846int main() {
18847pthread_create(0,0,0,0);
18848; return 0; }
18849EOF
18850if { (eval echo configure:18851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18851 rm -rf conftest*
18852 THREADS_OK=yes
18853else
18854 echo "configure: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
18856fi
18857rm -f conftest*
18858
18859 LIBS="$save_LIBS"
18860 CFLAGS="$save_CFLAGS"
18861
18862 echo "$ac_t""$THREADS_OK" 1>&6
18863 if test "x$THREADS_OK" = "xyes"; then
18864 break;
18865 fi
18866
18867 THREADS_LINK=""
18868 THREADS_CFLAGS=""
18869 done
18870
18871 if test "x$THREADS_OK" != "xyes"; then
18872 wxUSE_THREADS=no
18873 echo "configure: warning: No thread support on this system... disabled" 1>&2
18874 else
18875 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18876 LIBS="$THREADS_LINK $LIBS"
18877
18878 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18879echo "configure:18880: checking if more special flags are required for pthreads" >&5
18880 flag=no
18881 case "${host}" in
18882 *-aix*)
18883 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18884 flag="-D_THREAD_SAFE"
18885 ;;
18886 *-freebsd*)
18887 flag="-D_THREAD_SAFE"
18888 ;;
18889 *-hp-hpux* )
18890 flag="-D_REENTRANT"
18891 if test "x$GCC" != "xyes"; then
18892 flag="$flag -D_RWSTD_MULTI_THREAD"
18893 fi
18894 ;;
18895 *solaris* | alpha*-osf*)
18896 flag="-D_REENTRANT"
18897 ;;
18898 esac
18899 echo "$ac_t""${flag}" 1>&6
18900 if test "x$flag" != xno; then
18901 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18902 fi
18903
18904 if test "x$THREADS_CFLAGS" != "x"; then
18905 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18906 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18907 fi
18908 fi
18909 fi
18910
18911 if test "$wxUSE_THREADS" = "yes" ; then
18912 for ac_func in thr_setconcurrency
18913do
18914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18915echo "configure:18916: checking for $ac_func" >&5
18916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18917 echo $ac_n "(cached) $ac_c" 1>&6
18918else
18919 cat > conftest.$ac_ext <<EOF
18920#line 18921 "configure"
18921#include "confdefs.h"
18922/* System header to define __stub macros and hopefully few prototypes,
18923 which can conflict with char $ac_func(); below. */
18924#include <assert.h>
18925/* Override any gcc2 internal prototype to avoid an error. */
18926/* We use char because int might match the return type of a gcc2
18927 builtin and then its argument prototype would still apply. */
18928char $ac_func();
18929
18930int main() {
18931
18932/* The GNU C library defines this for functions which it implements
18933 to always fail with ENOSYS. Some functions are actually named
18934 something starting with __ and the normal name is an alias. */
18935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18936choke me
18937#else
18938$ac_func();
18939#endif
18940
18941; return 0; }
18942EOF
18943if { (eval echo configure:18944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18944 rm -rf conftest*
18945 eval "ac_cv_func_$ac_func=yes"
18946else
18947 echo "configure: failed program was:" >&5
18948 cat conftest.$ac_ext >&5
18949 rm -rf conftest*
18950 eval "ac_cv_func_$ac_func=no"
18951fi
18952rm -f conftest*
18953fi
18954
18955if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18956 echo "$ac_t""yes" 1>&6
18957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18958 cat >> confdefs.h <<EOF
18959#define $ac_tr_func 1
18960EOF
18961
18962else
18963 echo "$ac_t""no" 1>&6
18964fi
18965done
18966
18967
18968 for ac_hdr in sched.h
18969do
18970ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18971echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18972echo "configure:18973: checking for $ac_hdr" >&5
18973if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18974 echo $ac_n "(cached) $ac_c" 1>&6
18975else
18976 cat > conftest.$ac_ext <<EOF
18977#line 18978 "configure"
18978#include "confdefs.h"
18979#include <$ac_hdr>
18980EOF
18981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18982{ (eval echo configure:18983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18984if test -z "$ac_err"; then
18985 rm -rf conftest*
18986 eval "ac_cv_header_$ac_safe=yes"
18987else
18988 echo "$ac_err" >&5
18989 echo "configure: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
18991 rm -rf conftest*
18992 eval "ac_cv_header_$ac_safe=no"
18993fi
18994rm -f conftest*
18995fi
18996if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18997 echo "$ac_t""yes" 1>&6
18998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18999 cat >> confdefs.h <<EOF
19000#define $ac_tr_hdr 1
19001EOF
19002
19003else
19004 echo "$ac_t""no" 1>&6
19005fi
19006done
19007
19008 if test "$ac_cv_header_sched_h" = "yes"; then
19009 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
19010echo "configure:19011: checking for sched_yield" >&5
19011if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19012 echo $ac_n "(cached) $ac_c" 1>&6
19013else
19014 cat > conftest.$ac_ext <<EOF
19015#line 19016 "configure"
19016#include "confdefs.h"
19017/* System header to define __stub macros and hopefully few prototypes,
19018 which can conflict with char sched_yield(); below. */
19019#include <assert.h>
19020/* Override any gcc2 internal prototype to avoid an error. */
19021/* We use char because int might match the return type of a gcc2
19022 builtin and then its argument prototype would still apply. */
19023char sched_yield();
19024
19025int main() {
19026
19027/* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19031choke me
19032#else
19033sched_yield();
19034#endif
19035
19036; return 0; }
19037EOF
19038if { (eval echo configure:19039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19039 rm -rf conftest*
19040 eval "ac_cv_func_sched_yield=yes"
19041else
19042 echo "configure: failed program was:" >&5
19043 cat conftest.$ac_ext >&5
19044 rm -rf conftest*
19045 eval "ac_cv_func_sched_yield=no"
19046fi
19047rm -f conftest*
19048fi
19049
19050if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19051 echo "$ac_t""yes" 1>&6
19052 cat >> confdefs.h <<\EOF
19053#define HAVE_SCHED_YIELD 1
19054EOF
19055
19056else
19057 echo "$ac_t""no" 1>&6
19058
19059 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19060echo "configure:19061: checking for sched_yield in -lposix4" >&5
19061ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19062if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19063 echo $ac_n "(cached) $ac_c" 1>&6
19064else
19065 ac_save_LIBS="$LIBS"
19066LIBS="-lposix4 $LIBS"
19067cat > conftest.$ac_ext <<EOF
19068#line 19069 "configure"
19069#include "confdefs.h"
19070/* Override any gcc2 internal prototype to avoid an error. */
19071/* We use char because int might match the return type of a gcc2
19072 builtin and then its argument prototype would still apply. */
19073char sched_yield();
19074
19075int main() {
19076sched_yield()
19077; return 0; }
19078EOF
19079if { (eval echo configure:19080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19080 rm -rf conftest*
19081 eval "ac_cv_lib_$ac_lib_var=yes"
19082else
19083 echo "configure: failed program was:" >&5
19084 cat conftest.$ac_ext >&5
19085 rm -rf conftest*
19086 eval "ac_cv_lib_$ac_lib_var=no"
19087fi
19088rm -f conftest*
19089LIBS="$ac_save_LIBS"
19090
19091fi
19092if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19093 echo "$ac_t""yes" 1>&6
19094 cat >> confdefs.h <<\EOF
19095#define HAVE_SCHED_YIELD 1
19096EOF
19097 POSIX4_LINK=" -lposix4"
19098else
19099 echo "$ac_t""no" 1>&6
19100echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19101
19102fi
19103
19104
19105
19106fi
19107
19108 fi
19109
19110 HAVE_PRIOR_FUNCS=0
19111 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19112echo "configure:19113: checking for pthread_attr_getschedpolicy" >&5
19113if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19114 echo $ac_n "(cached) $ac_c" 1>&6
19115else
19116 cat > conftest.$ac_ext <<EOF
19117#line 19118 "configure"
19118#include "confdefs.h"
19119/* System header to define __stub macros and hopefully few prototypes,
19120 which can conflict with char pthread_attr_getschedpolicy(); below. */
19121#include <assert.h>
19122/* Override any gcc2 internal prototype to avoid an error. */
19123/* We use char because int might match the return type of a gcc2
19124 builtin and then its argument prototype would still apply. */
19125char pthread_attr_getschedpolicy();
19126
19127int main() {
19128
19129/* The GNU C library defines this for functions which it implements
19130 to always fail with ENOSYS. Some functions are actually named
19131 something starting with __ and the normal name is an alias. */
19132#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19133choke me
19134#else
19135pthread_attr_getschedpolicy();
19136#endif
19137
19138; return 0; }
19139EOF
19140if { (eval echo configure:19141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19141 rm -rf conftest*
19142 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19143else
19144 echo "configure: failed program was:" >&5
19145 cat conftest.$ac_ext >&5
19146 rm -rf conftest*
19147 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19148fi
19149rm -f conftest*
19150fi
19151
19152if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19153 echo "$ac_t""yes" 1>&6
19154 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19155echo "configure:19156: checking for pthread_attr_setschedparam" >&5
19156if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19157 echo $ac_n "(cached) $ac_c" 1>&6
19158else
19159 cat > conftest.$ac_ext <<EOF
19160#line 19161 "configure"
19161#include "confdefs.h"
19162/* System header to define __stub macros and hopefully few prototypes,
19163 which can conflict with char pthread_attr_setschedparam(); below. */
19164#include <assert.h>
19165/* Override any gcc2 internal prototype to avoid an error. */
19166/* We use char because int might match the return type of a gcc2
19167 builtin and then its argument prototype would still apply. */
19168char pthread_attr_setschedparam();
19169
19170int main() {
19171
19172/* The GNU C library defines this for functions which it implements
19173 to always fail with ENOSYS. Some functions are actually named
19174 something starting with __ and the normal name is an alias. */
19175#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19176choke me
19177#else
19178pthread_attr_setschedparam();
19179#endif
19180
19181; return 0; }
19182EOF
19183if { (eval echo configure:19184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19184 rm -rf conftest*
19185 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19186else
19187 echo "configure: failed program was:" >&5
19188 cat conftest.$ac_ext >&5
19189 rm -rf conftest*
19190 eval "ac_cv_func_pthread_attr_setschedparam=no"
19191fi
19192rm -f conftest*
19193fi
19194
19195if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19196 echo "$ac_t""yes" 1>&6
19197 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19198echo "configure:19199: checking for sched_get_priority_max" >&5
19199if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19200 echo $ac_n "(cached) $ac_c" 1>&6
19201else
19202 cat > conftest.$ac_ext <<EOF
19203#line 19204 "configure"
19204#include "confdefs.h"
19205/* System header to define __stub macros and hopefully few prototypes,
19206 which can conflict with char sched_get_priority_max(); below. */
19207#include <assert.h>
19208/* Override any gcc2 internal prototype to avoid an error. */
19209/* We use char because int might match the return type of a gcc2
19210 builtin and then its argument prototype would still apply. */
19211char sched_get_priority_max();
19212
19213int main() {
19214
19215/* The GNU C library defines this for functions which it implements
19216 to always fail with ENOSYS. Some functions are actually named
19217 something starting with __ and the normal name is an alias. */
19218#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19219choke me
19220#else
19221sched_get_priority_max();
19222#endif
19223
19224; return 0; }
19225EOF
19226if { (eval echo configure:19227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19227 rm -rf conftest*
19228 eval "ac_cv_func_sched_get_priority_max=yes"
19229else
19230 echo "configure: failed program was:" >&5
19231 cat conftest.$ac_ext >&5
19232 rm -rf conftest*
19233 eval "ac_cv_func_sched_get_priority_max=no"
19234fi
19235rm -f conftest*
19236fi
19237
19238if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19239 echo "$ac_t""yes" 1>&6
19240 HAVE_PRIOR_FUNCS=1
19241else
19242 echo "$ac_t""no" 1>&6
19243echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19244echo "configure:19245: checking for sched_get_priority_max in -lposix4" >&5
19245ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19246if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19247 echo $ac_n "(cached) $ac_c" 1>&6
19248else
19249 ac_save_LIBS="$LIBS"
19250LIBS="-lposix4 $LIBS"
19251cat > conftest.$ac_ext <<EOF
19252#line 19253 "configure"
19253#include "confdefs.h"
19254/* Override any gcc2 internal prototype to avoid an error. */
19255/* We use char because int might match the return type of a gcc2
19256 builtin and then its argument prototype would still apply. */
19257char sched_get_priority_max();
19258
19259int main() {
19260sched_get_priority_max()
19261; return 0; }
19262EOF
19263if { (eval echo configure:19264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19264 rm -rf conftest*
19265 eval "ac_cv_lib_$ac_lib_var=yes"
19266else
19267 echo "configure: failed program was:" >&5
19268 cat conftest.$ac_ext >&5
19269 rm -rf conftest*
19270 eval "ac_cv_lib_$ac_lib_var=no"
19271fi
19272rm -f conftest*
19273LIBS="$ac_save_LIBS"
19274
19275fi
19276if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19277 echo "$ac_t""yes" 1>&6
19278
19279 HAVE_PRIOR_FUNCS=1
19280 POSIX4_LINK=" -lposix4"
19281
19282else
19283 echo "$ac_t""no" 1>&6
19284fi
19285
19286
19287fi
19288
19289
19290else
19291 echo "$ac_t""no" 1>&6
19292fi
19293
19294
19295else
19296 echo "$ac_t""no" 1>&6
19297fi
19298
19299
19300 if test "$HAVE_PRIOR_FUNCS" = 1; then
19301 cat >> confdefs.h <<\EOF
19302#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19303EOF
19304
19305 else
19306 echo "configure: warning: Setting thread priority will not work" 1>&2
19307 fi
19308
19309 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19310echo "configure:19311: checking for pthread_cancel" >&5
19311if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19312 echo $ac_n "(cached) $ac_c" 1>&6
19313else
19314 cat > conftest.$ac_ext <<EOF
19315#line 19316 "configure"
19316#include "confdefs.h"
19317/* System header to define __stub macros and hopefully few prototypes,
19318 which can conflict with char pthread_cancel(); below. */
19319#include <assert.h>
19320/* Override any gcc2 internal prototype to avoid an error. */
19321/* We use char because int might match the return type of a gcc2
19322 builtin and then its argument prototype would still apply. */
19323char pthread_cancel();
19324
19325int main() {
19326
19327/* The GNU C library defines this for functions which it implements
19328 to always fail with ENOSYS. Some functions are actually named
19329 something starting with __ and the normal name is an alias. */
19330#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19331choke me
19332#else
19333pthread_cancel();
19334#endif
19335
19336; return 0; }
19337EOF
19338if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19339 rm -rf conftest*
19340 eval "ac_cv_func_pthread_cancel=yes"
19341else
19342 echo "configure: failed program was:" >&5
19343 cat conftest.$ac_ext >&5
19344 rm -rf conftest*
19345 eval "ac_cv_func_pthread_cancel=no"
19346fi
19347rm -f conftest*
19348fi
19349
19350if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19351 echo "$ac_t""yes" 1>&6
19352 cat >> confdefs.h <<\EOF
19353#define HAVE_PTHREAD_CANCEL 1
19354EOF
19355
19356else
19357 echo "$ac_t""no" 1>&6
19358echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19359fi
19360
19361
19362 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19363echo "configure:19364: checking for pthread_cleanup_push/pop" >&5
19364if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19365 echo $ac_n "(cached) $ac_c" 1>&6
19366else
19367
19368 cat > conftest.$ac_ext <<EOF
19369#line 19370 "configure"
19370#include "confdefs.h"
19371#include <pthread.h>
19372int main() {
19373
19374 pthread_cleanup_push(NULL, NULL);
19375 pthread_cleanup_pop(0);
19376
19377; return 0; }
19378EOF
19379if { (eval echo configure:19380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19380 rm -rf conftest*
19381
19382 wx_cv_func_pthread_cleanup_push=yes
19383
19384else
19385 echo "configure: failed program was:" >&5
19386 cat conftest.$ac_ext >&5
19387 rm -rf conftest*
19388
19389 wx_cv_func_pthread_cleanup_push=no
19390
19391fi
19392rm -f conftest*
19393
19394fi
19395
19396echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19397
19398 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19399 cat >> confdefs.h <<\EOF
19400#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19401EOF
19402
19403 fi
19404
19405
19406 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19407echo "configure:19408: checking for pthread_mutexattr_t" >&5
19408if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19409 echo $ac_n "(cached) $ac_c" 1>&6
19410else
19411
19412 cat > conftest.$ac_ext <<EOF
19413#line 19414 "configure"
19414#include "confdefs.h"
19415#include <pthread.h>
19416int main() {
19417
19418 pthread_mutexattr_t attr;
19419 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19420
19421; return 0; }
19422EOF
19423if { (eval echo configure:19424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19424 rm -rf conftest*
19425
19426 wx_cv_type_pthread_mutexattr_t=yes
19427
19428else
19429 echo "configure: failed program was:" >&5
19430 cat conftest.$ac_ext >&5
19431 rm -rf conftest*
19432
19433 wx_cv_type_pthread_mutexattr_t=no
19434
19435
19436fi
19437rm -f conftest*
19438
19439fi
19440
19441echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19442
19443 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19444 cat >> confdefs.h <<\EOF
19445#define HAVE_PTHREAD_MUTEXATTR_T 1
19446EOF
19447
19448 else
19449 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19450echo "configure:19451: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19451if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19452 echo $ac_n "(cached) $ac_c" 1>&6
19453else
19454
19455 cat > conftest.$ac_ext <<EOF
19456#line 19457 "configure"
19457#include "confdefs.h"
19458#include <pthread.h>
19459int main() {
19460
19461 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19462
19463; return 0; }
19464EOF
19465if { (eval echo configure:19466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19466 rm -rf conftest*
19467
19468 wx_cv_type_pthread_rec_mutex_init=yes
19469
19470else
19471 echo "configure: failed program was:" >&5
19472 cat conftest.$ac_ext >&5
19473 rm -rf conftest*
19474
19475 wx_cv_type_pthread_rec_mutex_init=no
19476
19477
19478fi
19479rm -f conftest*
19480
19481fi
19482
19483echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19484 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19485 cat >> confdefs.h <<\EOF
19486#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19487EOF
19488
19489 else
19490 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19491 fi
19492 fi
19493 fi
19494
19495else
19496 if test "$wxUSE_THREADS" = "yes" ; then
19497 case "${host}" in
19498 *-*-mingw32* )
19499 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19500echo "configure:19501: checking if compiler supports -mthreads" >&5
19501if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19502 echo $ac_n "(cached) $ac_c" 1>&6
19503else
19504
19505 CFLAGS_OLD="$CFLAGS"
19506 CFLAGS="$CFLAGS -mthreads"
19507 cat > conftest.$ac_ext <<EOF
19508#line 19509 "configure"
19509#include "confdefs.h"
19510
19511int main() {
19512
19513; return 0; }
19514EOF
19515if { (eval echo configure:19516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19516 rm -rf conftest*
19517 wx_cv_cflags_mthread=yes
19518else
19519 echo "configure: failed program was:" >&5
19520 cat conftest.$ac_ext >&5
19521 rm -rf conftest*
19522 wx_cv_cflags_mthread=no
19523
19524fi
19525rm -f conftest*
19526
19527
19528fi
19529
19530echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19531
19532 if test "$wx_cv_cflags_mthread" = "yes"; then
19533 CXXFLAGS="$CXXFLAGS -mthreads"
19534 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19535 LDFLAGS="$LDFLAGS -mthreads"
19536 else
19537 CFLAGS="$CFLAGS_OLD"
19538 fi
19539 ;;
19540 esac
19541 fi
19542fi
19543
19544if test "$wxUSE_THREADS" = "yes"; then
19545 cat >> confdefs.h <<\EOF
19546#define wxUSE_THREADS 1
19547EOF
19548
19549
19550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19551else
19552 if test "$ac_cv_func_strtok_r" = "yes"; then
19553 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19554echo "configure:19555: checking if -D_REENTRANT is needed" >&5
19555 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19556 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19557 echo "$ac_t""yes" 1>&6
19558 else
19559 echo "$ac_t""no" 1>&6
19560 fi
19561 fi
19562fi
19563
19564if test "$WXGTK20" = 1 ; then
19565 cat >> confdefs.h <<EOF
19566#define __WXGTK20__ $WXGTK20
19567EOF
19568
19569 WXGTK12=1
19570fi
19571
19572if test "$WXGTK12" = 1 ; then
19573 cat >> confdefs.h <<EOF
19574#define __WXGTK12__ $WXGTK12
19575EOF
19576
19577fi
19578
19579if test "$WXGTK127" = 1 ; then
19580 cat >> confdefs.h <<EOF
19581#define __WXGTK127__ $WXGTK127
19582EOF
19583
19584fi
19585
19586WXDEBUG=
19587
19588if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19589 WXDEBUG="-g"
19590 wxUSE_OPTIMISE=no
19591fi
19592
19593if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19594 wxUSE_DEBUG_INFO=yes
19595 WXDEBUG="-ggdb"
19596fi
19597
19598if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19599 cat >> confdefs.h <<\EOF
19600#define WXDEBUG 1
19601EOF
19602
19603 WXDEBUG_DEFINE="-D__WXDEBUG__"
19604else
19605 if test "$wxUSE_GTK" = 1 ; then
19606 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19607 fi
19608fi
19609
19610if test "$wxUSE_MEM_TRACING" = "yes" ; then
19611 cat >> confdefs.h <<\EOF
19612#define wxUSE_MEMORY_TRACING 1
19613EOF
19614
19615 cat >> confdefs.h <<\EOF
19616#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19617EOF
19618
19619 cat >> confdefs.h <<\EOF
19620#define wxUSE_DEBUG_NEW_ALWAYS 1
19621EOF
19622
19623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19624fi
19625
19626if test "$wxUSE_DMALLOC" = "yes" ; then
19627 DMALLOC_LIBS="-ldmalloc"
19628fi
19629
19630PROFILE=
19631if test "$wxUSE_PROFILE" = "yes" ; then
19632 PROFILE=" -pg"
19633fi
19634
19635CODE_GEN_FLAGS=
19636CODE_GEN_FLAGS_CXX=
19637if test "$GCC" = "yes" ; then
19638 if test "$wxUSE_NO_RTTI" = "yes" ; then
19639 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19640 fi
19641 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19642 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19643 fi
19644 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19645 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19646 fi
19647 if test "$USE_WIN32" = 1 ; then
19648 # I'm not even really sure what this was ever added to solve,
19649 # but someone added it for mingw native builds, so I guess
19650 # they had a reason, right??
19651 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19652 fi
19653
19654 case "${host}" in
19655 powerpc*-*-aix* )
19656 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19657 ;;
19658 *-hppa* )
19659 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19660 ;;
19661 esac
19662fi
19663
19664OPTIMISE=
19665if test "$wxUSE_OPTIMISE" = "no" ; then
19666 if test "$GCC" = yes ; then
19667 OPTIMISE="-O0"
19668 fi
19669else
19670 if test "$GCC" = yes ; then
19671 OPTIMISE="-O2"
19672
19673 case "${host}" in
19674 i586-*-*|i686-*-* )
19675 OPTIMISE="${OPTIMISE} "
19676 ;;
19677 esac
19678 else
19679 OPTIMISE="-O"
19680 fi
19681fi
19682
19683
19684if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19685 cat >> confdefs.h <<\EOF
19686#define WXWIN_COMPATIBILITY_2 1
19687EOF
19688
19689
19690 WXWIN_COMPATIBILITY_2_2="yes"
19691fi
19692
19693if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19694 cat >> confdefs.h <<\EOF
19695#define WXWIN_COMPATIBILITY_2_2 1
19696EOF
19697
19698
19699 WXWIN_COMPATIBILITY_2_4="yes"
19700fi
19701
19702if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19703 cat >> confdefs.h <<\EOF
19704#define WXWIN_COMPATIBILITY_2_4 1
19705EOF
19706
19707fi
19708
19709
19710if test "$wxUSE_GUI" = "yes"; then
19711 cat >> confdefs.h <<\EOF
19712#define wxUSE_GUI 1
19713EOF
19714
19715
19716 else
19717 cat >> confdefs.h <<\EOF
19718#define wxUSE_NOGUI 1
19719EOF
19720
19721fi
19722
19723
19724if test "$wxUSE_UNIX" = "yes"; then
19725 cat >> confdefs.h <<\EOF
19726#define wxUSE_UNIX 1
19727EOF
19728
19729fi
19730
19731
19732if test "$wxUSE_APPLE_IEEE" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734#define wxUSE_APPLE_IEEE 1
19735EOF
19736
19737fi
19738
19739if test "$wxUSE_TIMER" = "yes"; then
19740 cat >> confdefs.h <<\EOF
19741#define wxUSE_TIMER 1
19742EOF
19743
19744fi
19745
19746if test "$wxUSE_WAVE" = "yes"; then
19747 cat >> confdefs.h <<\EOF
19748#define wxUSE_WAVE 1
19749EOF
19750
19751fi
19752
19753if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19754 cat >> confdefs.h <<\EOF
19755#define wxUSE_CMDLINE_PARSER 1
19756EOF
19757
19758fi
19759
19760if test "$wxUSE_STOPWATCH" = "yes"; then
19761 cat >> confdefs.h <<\EOF
19762#define wxUSE_STOPWATCH 1
19763EOF
19764
19765fi
19766
19767if test "$wxUSE_DATETIME" = "yes"; then
19768 cat >> confdefs.h <<\EOF
19769#define wxUSE_DATETIME 1
19770EOF
19771
19772fi
19773
19774if test "$wxUSE_FILE" = "yes"; then
19775 cat >> confdefs.h <<\EOF
19776#define wxUSE_FILE 1
19777EOF
19778
19779fi
19780
19781if test "$wxUSE_FFILE" = "yes"; then
19782 cat >> confdefs.h <<\EOF
19783#define wxUSE_FFILE 1
19784EOF
19785
19786fi
19787
19788if test "$wxUSE_FILESYSTEM" = "yes"; then
19789 cat >> confdefs.h <<\EOF
19790#define wxUSE_FILESYSTEM 1
19791EOF
19792
19793fi
19794
19795if test "$wxUSE_FS_INET" = "yes"; then
19796 cat >> confdefs.h <<\EOF
19797#define wxUSE_FS_INET 1
19798EOF
19799
19800fi
19801
19802if test "$wxUSE_FS_ZIP" = "yes"; then
19803 cat >> confdefs.h <<\EOF
19804#define wxUSE_FS_ZIP 1
19805EOF
19806
19807fi
19808
19809if test "$wxUSE_ZIPSTREAM" = "yes"; then
19810 cat >> confdefs.h <<\EOF
19811#define wxUSE_ZIPSTREAM 1
19812EOF
19813
19814fi
19815
19816if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19817 cat >> confdefs.h <<\EOF
19818#define wxUSE_ON_FATAL_EXCEPTION 1
19819EOF
19820
19821fi
19822
19823if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19824 cat >> confdefs.h <<\EOF
19825#define wxUSE_SNGLINST_CHECKER 1
19826EOF
19827
19828fi
19829
19830if test "$wxUSE_BUSYINFO" = "yes"; then
19831 cat >> confdefs.h <<\EOF
19832#define wxUSE_BUSYINFO 1
19833EOF
19834
19835fi
19836
19837if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19838 cat >> confdefs.h <<\EOF
19839#define wxUSE_STD_IOSTREAM 1
19840EOF
19841
19842fi
19843
19844if test "$wxUSE_TEXTBUFFER" = "yes"; then
19845 cat >> confdefs.h <<\EOF
19846#define wxUSE_TEXTBUFFER 1
19847EOF
19848
19849fi
19850
19851if test "$wxUSE_TEXTFILE" = "yes"; then
19852 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19853 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19854 else
19855 cat >> confdefs.h <<\EOF
19856#define wxUSE_TEXTFILE 1
19857EOF
19858
19859 fi
19860fi
19861
19862if test "$wxUSE_CONFIG" = "yes" ; then
19863 if test "$wxUSE_TEXTFILE" != "yes"; then
19864 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19865 else
19866 cat >> confdefs.h <<\EOF
19867#define wxUSE_CONFIG 1
19868EOF
19869
19870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19871 fi
19872fi
19873
19874if test "$wxUSE_INTL" = "yes" ; then
19875 if test "$wxUSE_FILE" != "yes"; then
19876 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19877 else
19878 cat >> confdefs.h <<\EOF
19879#define wxUSE_INTL 1
19880EOF
19881
19882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19883 GUIDIST="$GUIDIST INTL_DIST"
19884 fi
19885fi
19886
19887if test "$wxUSE_LOG" = "yes"; then
19888 cat >> confdefs.h <<\EOF
19889#define wxUSE_LOG 1
19890EOF
19891
19892
19893 if test "$wxUSE_LOGGUI" = "yes"; then
19894 cat >> confdefs.h <<\EOF
19895#define wxUSE_LOGGUI 1
19896EOF
19897
19898 fi
19899
19900 if test "$wxUSE_LOGWINDOW" = "yes"; then
19901 cat >> confdefs.h <<\EOF
19902#define wxUSE_LOGWINDOW 1
19903EOF
19904
19905 fi
19906
19907 if test "$wxUSE_LOGDIALOG" = "yes"; then
19908 cat >> confdefs.h <<\EOF
19909#define wxUSE_LOG_DIALOG 1
19910EOF
19911
19912 fi
19913fi
19914
19915if test "$wxUSE_LONGLONG" = "yes"; then
19916 cat >> confdefs.h <<\EOF
19917#define wxUSE_LONGLONG 1
19918EOF
19919
19920fi
19921
19922if test "$wxUSE_GEOMETRY" = "yes"; then
19923 cat >> confdefs.h <<\EOF
19924#define wxUSE_GEOMETRY 1
19925EOF
19926
19927fi
19928
19929if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19930 cat >> confdefs.h <<\EOF
19931#define wxUSE_DIALUP_MANAGER 1
19932EOF
19933
19934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19935fi
19936
19937if test "$wxUSE_STREAMS" = "yes" ; then
19938 cat >> confdefs.h <<\EOF
19939#define wxUSE_STREAMS 1
19940EOF
19941
19942fi
19943
19944
19945if test "$wxUSE_DATETIME" = "yes"; then
19946 for ac_func in strptime
19947do
19948echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19949echo "configure:19950: checking for $ac_func" >&5
19950if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19951 echo $ac_n "(cached) $ac_c" 1>&6
19952else
19953 cat > conftest.$ac_ext <<EOF
19954#line 19955 "configure"
19955#include "confdefs.h"
19956/* System header to define __stub macros and hopefully few prototypes,
19957 which can conflict with char $ac_func(); below. */
19958#include <assert.h>
19959/* Override any gcc2 internal prototype to avoid an error. */
19960/* We use char because int might match the return type of a gcc2
19961 builtin and then its argument prototype would still apply. */
19962char $ac_func();
19963
19964int main() {
19965
19966/* The GNU C library defines this for functions which it implements
19967 to always fail with ENOSYS. Some functions are actually named
19968 something starting with __ and the normal name is an alias. */
19969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19970choke me
19971#else
19972$ac_func();
19973#endif
19974
19975; return 0; }
19976EOF
19977if { (eval echo configure:19978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19978 rm -rf conftest*
19979 eval "ac_cv_func_$ac_func=yes"
19980else
19981 echo "configure: failed program was:" >&5
19982 cat conftest.$ac_ext >&5
19983 rm -rf conftest*
19984 eval "ac_cv_func_$ac_func=no"
19985fi
19986rm -f conftest*
19987fi
19988
19989if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19990 echo "$ac_t""yes" 1>&6
19991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19992 cat >> confdefs.h <<EOF
19993#define $ac_tr_func 1
19994EOF
19995
19996else
19997 echo "$ac_t""no" 1>&6
19998fi
19999done
20000
20001
20002 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
20003echo "configure:20004: checking for timezone variable in <time.h>" >&5
20004if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20005 echo $ac_n "(cached) $ac_c" 1>&6
20006else
20007
20008 cat > conftest.$ac_ext <<EOF
20009#line 20010 "configure"
20010#include "confdefs.h"
20011
20012 #include <time.h>
20013
20014int main() {
20015
20016 int tz;
20017 tz = timezone;
20018
20019; return 0; }
20020EOF
20021if { (eval echo configure:20022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20022 rm -rf conftest*
20023
20024 wx_cv_var_timezone=timezone
20025
20026else
20027 echo "configure: failed program was:" >&5
20028 cat conftest.$ac_ext >&5
20029 rm -rf conftest*
20030
20031 cat > conftest.$ac_ext <<EOF
20032#line 20033 "configure"
20033#include "confdefs.h"
20034
20035 #include <time.h>
20036
20037int main() {
20038
20039 int tz;
20040 tz = _timezone;
20041
20042; return 0; }
20043EOF
20044if { (eval echo configure:20045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20045 rm -rf conftest*
20046
20047 wx_cv_var_timezone=_timezone
20048
20049else
20050 echo "configure: failed program was:" >&5
20051 cat conftest.$ac_ext >&5
20052 rm -rf conftest*
20053
20054 cat > conftest.$ac_ext <<EOF
20055#line 20056 "configure"
20056#include "confdefs.h"
20057
20058 #include <time.h>
20059
20060int main() {
20061
20062 int tz;
20063 tz = __timezone;
20064
20065; return 0; }
20066EOF
20067if { (eval echo configure:20068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20068 rm -rf conftest*
20069
20070 wx_cv_var_timezone=__timezone
20071
20072else
20073 echo "configure: failed program was:" >&5
20074 cat conftest.$ac_ext >&5
20075 rm -rf conftest*
20076
20077 if test "$USE_DOS" = 0 ; then
20078 echo "configure: warning: no timezone variable" 1>&2
20079 fi
20080
20081
20082fi
20083rm -f conftest*
20084
20085
20086fi
20087rm -f conftest*
20088
20089
20090fi
20091rm -f conftest*
20092
20093
20094fi
20095
20096echo "$ac_t""$wx_cv_var_timezone" 1>&6
20097
20098 if test "x$wx_cv_var_timezone" != x ; then
20099 cat >> confdefs.h <<EOF
20100#define WX_TIMEZONE $wx_cv_var_timezone
20101EOF
20102
20103 fi
20104
20105 for ac_func in localtime
20106do
20107echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20108echo "configure:20109: checking for $ac_func" >&5
20109if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20111else
20112 cat > conftest.$ac_ext <<EOF
20113#line 20114 "configure"
20114#include "confdefs.h"
20115/* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char $ac_func(); below. */
20117#include <assert.h>
20118/* Override any gcc2 internal prototype to avoid an error. */
20119/* We use char because int might match the return type of a gcc2
20120 builtin and then its argument prototype would still apply. */
20121char $ac_func();
20122
20123int main() {
20124
20125/* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20129choke me
20130#else
20131$ac_func();
20132#endif
20133
20134; return 0; }
20135EOF
20136if { (eval echo configure:20137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20137 rm -rf conftest*
20138 eval "ac_cv_func_$ac_func=yes"
20139else
20140 echo "configure: failed program was:" >&5
20141 cat conftest.$ac_ext >&5
20142 rm -rf conftest*
20143 eval "ac_cv_func_$ac_func=no"
20144fi
20145rm -f conftest*
20146fi
20147
20148if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20149 echo "$ac_t""yes" 1>&6
20150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20151 cat >> confdefs.h <<EOF
20152#define $ac_tr_func 1
20153EOF
20154
20155else
20156 echo "$ac_t""no" 1>&6
20157fi
20158done
20159
20160
20161 if test "$ac_cv_func_localtime" = "yes"; then
20162 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20163echo "configure:20164: checking for tm_gmtoff in struct tm" >&5
20164if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20165 echo $ac_n "(cached) $ac_c" 1>&6
20166else
20167
20168 cat > conftest.$ac_ext <<EOF
20169#line 20170 "configure"
20170#include "confdefs.h"
20171
20172 #include <time.h>
20173
20174int main() {
20175
20176 struct tm tm;
20177 tm.tm_gmtoff++;
20178
20179; return 0; }
20180EOF
20181if { (eval echo configure:20182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20182 rm -rf conftest*
20183
20184 wx_cv_struct_tm_has_gmtoff=yes
20185
20186else
20187 echo "configure: failed program was:" >&5
20188 cat conftest.$ac_ext >&5
20189 rm -rf conftest*
20190 wx_cv_struct_tm_has_gmtoff=no
20191
20192fi
20193rm -f conftest*
20194
20195fi
20196
20197echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20198 fi
20199
20200 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20201 cat >> confdefs.h <<\EOF
20202#define WX_GMTOFF_IN_TM 1
20203EOF
20204
20205 fi
20206
20207 for ac_func in gettimeofday ftime
20208do
20209echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20210echo "configure:20211: checking for $ac_func" >&5
20211if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20212 echo $ac_n "(cached) $ac_c" 1>&6
20213else
20214 cat > conftest.$ac_ext <<EOF
20215#line 20216 "configure"
20216#include "confdefs.h"
20217/* System header to define __stub macros and hopefully few prototypes,
20218 which can conflict with char $ac_func(); below. */
20219#include <assert.h>
20220/* Override any gcc2 internal prototype to avoid an error. */
20221/* We use char because int might match the return type of a gcc2
20222 builtin and then its argument prototype would still apply. */
20223char $ac_func();
20224
20225int main() {
20226
20227/* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20231choke me
20232#else
20233$ac_func();
20234#endif
20235
20236; return 0; }
20237EOF
20238if { (eval echo configure:20239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20239 rm -rf conftest*
20240 eval "ac_cv_func_$ac_func=yes"
20241else
20242 echo "configure: failed program was:" >&5
20243 cat conftest.$ac_ext >&5
20244 rm -rf conftest*
20245 eval "ac_cv_func_$ac_func=no"
20246fi
20247rm -f conftest*
20248fi
20249
20250if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20251 echo "$ac_t""yes" 1>&6
20252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20253 cat >> confdefs.h <<EOF
20254#define $ac_tr_func 1
20255EOF
20256 break
20257else
20258 echo "$ac_t""no" 1>&6
20259fi
20260done
20261
20262
20263 if test "$ac_cv_func_gettimeofday" = "yes"; then
20264 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20265echo "configure:20266: checking whether gettimeofday takes two arguments" >&5
20266if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20267 echo $ac_n "(cached) $ac_c" 1>&6
20268else
20269
20270
20271 ac_ext=C
20272# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20273ac_cpp='$CXXCPP $CPPFLAGS'
20274ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20275ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20276cross_compiling=$ac_cv_prog_cxx_cross
20277
20278
20279 cat > conftest.$ac_ext <<EOF
20280#line 20281 "configure"
20281#include "confdefs.h"
20282
20283 #include <sys/time.h>
20284 #include <unistd.h>
20285
20286int main() {
20287
20288 struct timeval tv;
20289 gettimeofday(&tv, NULL);
20290
20291; return 0; }
20292EOF
20293if { (eval echo configure:20294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20294 rm -rf conftest*
20295 wx_cv_func_gettimeofday_has_2_args=yes
20296else
20297 echo "configure: failed program was:" >&5
20298 cat conftest.$ac_ext >&5
20299 rm -rf conftest*
20300 cat > conftest.$ac_ext <<EOF
20301#line 20302 "configure"
20302#include "confdefs.h"
20303
20304 #include <sys/time.h>
20305 #include <unistd.h>
20306
20307int main() {
20308
20309 struct timeval tv;
20310 gettimeofday(&tv);
20311
20312; return 0; }
20313EOF
20314if { (eval echo configure:20315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20315 rm -rf conftest*
20316 wx_cv_func_gettimeofday_has_2_args=no
20317else
20318 echo "configure: failed program was:" >&5
20319 cat conftest.$ac_ext >&5
20320 rm -rf conftest*
20321
20322 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20323 wx_cv_func_gettimeofday_has_2_args=unknown
20324
20325
20326fi
20327rm -f conftest*
20328
20329fi
20330rm -f conftest*
20331 ac_ext=c
20332# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20333ac_cpp='$CPP $CPPFLAGS'
20334ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20335ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20336cross_compiling=$ac_cv_prog_cc_cross
20337
20338
20339fi
20340
20341echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20342
20343 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20344 cat >> confdefs.h <<\EOF
20345#define WX_GETTIMEOFDAY_NO_TZ 1
20346EOF
20347
20348 fi
20349 fi
20350
20351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20352fi
20353
20354
20355if test "$wxUSE_SOCKETS" = "yes"; then
20356 if test "$wxUSE_MGL" = "1"; then
20357 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20358 wxUSE_SOCKETS="no"
20359 fi
20360fi
20361
20362if test "$wxUSE_SOCKETS" = "yes"; then
20363 if test "$TOOLKIT" != "MSW"; then
20364 echo $ac_n "checking for socket""... $ac_c" 1>&6
20365echo "configure:20366: checking for socket" >&5
20366if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20367 echo $ac_n "(cached) $ac_c" 1>&6
20368else
20369 cat > conftest.$ac_ext <<EOF
20370#line 20371 "configure"
20371#include "confdefs.h"
20372/* System header to define __stub macros and hopefully few prototypes,
20373 which can conflict with char socket(); below. */
20374#include <assert.h>
20375/* Override any gcc2 internal prototype to avoid an error. */
20376/* We use char because int might match the return type of a gcc2
20377 builtin and then its argument prototype would still apply. */
20378char socket();
20379
20380int main() {
20381
20382/* The GNU C library defines this for functions which it implements
20383 to always fail with ENOSYS. Some functions are actually named
20384 something starting with __ and the normal name is an alias. */
20385#if defined (__stub_socket) || defined (__stub___socket)
20386choke me
20387#else
20388socket();
20389#endif
20390
20391; return 0; }
20392EOF
20393if { (eval echo configure:20394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20394 rm -rf conftest*
20395 eval "ac_cv_func_socket=yes"
20396else
20397 echo "configure: failed program was:" >&5
20398 cat conftest.$ac_ext >&5
20399 rm -rf conftest*
20400 eval "ac_cv_func_socket=no"
20401fi
20402rm -f conftest*
20403fi
20404
20405if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20406 echo "$ac_t""yes" 1>&6
20407 :
20408else
20409 echo "$ac_t""no" 1>&6
20410echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20411echo "configure:20412: checking for socket in -lsocket" >&5
20412ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20414 echo $ac_n "(cached) $ac_c" 1>&6
20415else
20416 ac_save_LIBS="$LIBS"
20417LIBS="-lsocket $LIBS"
20418cat > conftest.$ac_ext <<EOF
20419#line 20420 "configure"
20420#include "confdefs.h"
20421/* Override any gcc2 internal prototype to avoid an error. */
20422/* We use char because int might match the return type of a gcc2
20423 builtin and then its argument prototype would still apply. */
20424char socket();
20425
20426int main() {
20427socket()
20428; return 0; }
20429EOF
20430if { (eval echo configure:20431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20431 rm -rf conftest*
20432 eval "ac_cv_lib_$ac_lib_var=yes"
20433else
20434 echo "configure: failed program was:" >&5
20435 cat conftest.$ac_ext >&5
20436 rm -rf conftest*
20437 eval "ac_cv_lib_$ac_lib_var=no"
20438fi
20439rm -f conftest*
20440LIBS="$ac_save_LIBS"
20441
20442fi
20443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20444 echo "$ac_t""yes" 1>&6
20445 if test "$INET_LINK" != " -lsocket"; then
20446 INET_LINK="$INET_LINK -lsocket"
20447 fi
20448else
20449 echo "$ac_t""no" 1>&6
20450
20451 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20452 wxUSE_SOCKETS=no
20453
20454
20455fi
20456
20457
20458fi
20459
20460 fi
20461fi
20462
20463if test "$wxUSE_SOCKETS" = "yes" ; then
20464 if test "$TOOLKIT" != "MSW"; then
20465 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20466echo "configure:20467: checking what is the type of the third argument of getsockname" >&5
20467if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20468 echo $ac_n "(cached) $ac_c" 1>&6
20469else
20470
20471
20472 ac_ext=C
20473# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20474ac_cpp='$CXXCPP $CPPFLAGS'
20475ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20476ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20477cross_compiling=$ac_cv_prog_cxx_cross
20478
20479
20480 cat > conftest.$ac_ext <<EOF
20481#line 20482 "configure"
20482#include "confdefs.h"
20483
20484 #include <sys/types.h>
20485 #include <sys/socket.h>
20486
20487int main() {
20488
20489 socklen_t len;
20490 getsockname(0, 0, &len);
20491
20492; return 0; }
20493EOF
20494if { (eval echo configure:20495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20495 rm -rf conftest*
20496 wx_cv_type_getsockname3=socklen_t
20497else
20498 echo "configure: failed program was:" >&5
20499 cat conftest.$ac_ext >&5
20500 rm -rf conftest*
20501 cat > conftest.$ac_ext <<EOF
20502#line 20503 "configure"
20503#include "confdefs.h"
20504
20505 #include <sys/types.h>
20506 #include <sys/socket.h>
20507
20508int main() {
20509
20510 size_t len;
20511 getsockname(0, 0, &len);
20512
20513; return 0; }
20514EOF
20515if { (eval echo configure:20516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20516 rm -rf conftest*
20517 wx_cv_type_getsockname3=size_t
20518else
20519 echo "configure: failed program was:" >&5
20520 cat conftest.$ac_ext >&5
20521 rm -rf conftest*
20522 cat > conftest.$ac_ext <<EOF
20523#line 20524 "configure"
20524#include "confdefs.h"
20525
20526 #include <sys/types.h>
20527 #include <sys/socket.h>
20528
20529int main() {
20530
20531 int len;
20532 getsockname(0, 0, &len);
20533
20534; return 0; }
20535EOF
20536if { (eval echo configure:20537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20537 rm -rf conftest*
20538 wx_cv_type_getsockname3=int
20539else
20540 echo "configure: failed program was:" >&5
20541 cat conftest.$ac_ext >&5
20542 rm -rf conftest*
20543 wx_cv_type_getsockname3=unknown
20544
20545fi
20546rm -f conftest*
20547
20548fi
20549rm -f conftest*
20550
20551fi
20552rm -f conftest*
20553
20554 ac_ext=c
20555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20556ac_cpp='$CPP $CPPFLAGS'
20557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20558ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20559cross_compiling=$ac_cv_prog_cc_cross
20560
20561
20562fi
20563
20564echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20565
20566 if test "$wx_cv_type_getsockname3" = "unknown"; then
20567 wxUSE_SOCKETS=no
20568 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20569 else
20570 cat >> confdefs.h <<EOF
20571#define SOCKLEN_T $wx_cv_type_getsockname3
20572EOF
20573
20574 fi
20575 fi
20576fi
20577
20578if test "$wxUSE_SOCKETS" = "yes" ; then
20579 cat >> confdefs.h <<\EOF
20580#define wxUSE_SOCKETS 1
20581EOF
20582
20583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20584fi
20585
20586
20587if test "$wxUSE_GUI" = "yes"; then
20588
20589 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20590 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20591 wxUSE_JOYSTICK=no
20592 fi
20593 if test "$TOOLKIT" = "MOTIF"; then
20594 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20595 wxUSE_JOYSTICK=no
20596 fi
20597 if test "$TOOLKIT" = "X11"; then
20598 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20599 wxUSE_JOYSTICK=no
20600 fi
20601
20602 if test "$TOOLKIT" != "MSW"; then
20603 if test "$wxUSE_JOYSTICK" = "yes"; then
20604 for ac_hdr in linux/joystick.h
20605do
20606ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20607echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20608echo "configure:20609: checking for $ac_hdr" >&5
20609if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20610 echo $ac_n "(cached) $ac_c" 1>&6
20611else
20612 cat > conftest.$ac_ext <<EOF
20613#line 20614 "configure"
20614#include "confdefs.h"
20615#include <$ac_hdr>
20616EOF
20617ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20618{ (eval echo configure:20619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20619ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20620if test -z "$ac_err"; then
20621 rm -rf conftest*
20622 eval "ac_cv_header_$ac_safe=yes"
20623else
20624 echo "$ac_err" >&5
20625 echo "configure: failed program was:" >&5
20626 cat conftest.$ac_ext >&5
20627 rm -rf conftest*
20628 eval "ac_cv_header_$ac_safe=no"
20629fi
20630rm -f conftest*
20631fi
20632if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20633 echo "$ac_t""yes" 1>&6
20634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20635 cat >> confdefs.h <<EOF
20636#define $ac_tr_hdr 1
20637EOF
20638
20639else
20640 echo "$ac_t""no" 1>&6
20641fi
20642done
20643
20644 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20645 wxUSE_JOYSTICK=no
20646 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20647 fi
20648 fi
20649 fi
20650
20651 if test "$wxUSE_JOYSTICK" = "yes"; then
20652 cat >> confdefs.h <<\EOF
20653#define wxUSE_JOYSTICK 1
20654EOF
20655
20656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20657 fi
20658fi
20659
20660
20661if test "$TOOLKIT" != "MSW"; then
20662
20663 HAVE_DL_FUNCS=0
20664 HAVE_SHL_FUNCS=0
20665 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20666 if test "$USE_DARWIN" = 1; then
20667 HAVE_DL_FUNCS=1
20668 else
20669 for ac_func in dlopen
20670do
20671echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20672echo "configure:20673: checking for $ac_func" >&5
20673if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20674 echo $ac_n "(cached) $ac_c" 1>&6
20675else
20676 cat > conftest.$ac_ext <<EOF
20677#line 20678 "configure"
20678#include "confdefs.h"
20679/* System header to define __stub macros and hopefully few prototypes,
20680 which can conflict with char $ac_func(); below. */
20681#include <assert.h>
20682/* Override any gcc2 internal prototype to avoid an error. */
20683/* We use char because int might match the return type of a gcc2
20684 builtin and then its argument prototype would still apply. */
20685char $ac_func();
20686
20687int main() {
20688
20689/* The GNU C library defines this for functions which it implements
20690 to always fail with ENOSYS. Some functions are actually named
20691 something starting with __ and the normal name is an alias. */
20692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20693choke me
20694#else
20695$ac_func();
20696#endif
20697
20698; return 0; }
20699EOF
20700if { (eval echo configure:20701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20701 rm -rf conftest*
20702 eval "ac_cv_func_$ac_func=yes"
20703else
20704 echo "configure: failed program was:" >&5
20705 cat conftest.$ac_ext >&5
20706 rm -rf conftest*
20707 eval "ac_cv_func_$ac_func=no"
20708fi
20709rm -f conftest*
20710fi
20711
20712if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20713 echo "$ac_t""yes" 1>&6
20714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20715 cat >> confdefs.h <<EOF
20716#define $ac_tr_func 1
20717EOF
20718
20719 cat >> confdefs.h <<\EOF
20720#define HAVE_DLOPEN 1
20721EOF
20722
20723 HAVE_DL_FUNCS=1
20724
20725else
20726 echo "$ac_t""no" 1>&6
20727echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20728echo "configure:20729: checking for dlopen in -ldl" >&5
20729ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20731 echo $ac_n "(cached) $ac_c" 1>&6
20732else
20733 ac_save_LIBS="$LIBS"
20734LIBS="-ldl $LIBS"
20735cat > conftest.$ac_ext <<EOF
20736#line 20737 "configure"
20737#include "confdefs.h"
20738/* Override any gcc2 internal prototype to avoid an error. */
20739/* We use char because int might match the return type of a gcc2
20740 builtin and then its argument prototype would still apply. */
20741char dlopen();
20742
20743int main() {
20744dlopen()
20745; return 0; }
20746EOF
20747if { (eval echo configure:20748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20748 rm -rf conftest*
20749 eval "ac_cv_lib_$ac_lib_var=yes"
20750else
20751 echo "configure: failed program was:" >&5
20752 cat conftest.$ac_ext >&5
20753 rm -rf conftest*
20754 eval "ac_cv_lib_$ac_lib_var=no"
20755fi
20756rm -f conftest*
20757LIBS="$ac_save_LIBS"
20758
20759fi
20760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20761 echo "$ac_t""yes" 1>&6
20762
20763 cat >> confdefs.h <<\EOF
20764#define HAVE_DLOPEN 1
20765EOF
20766
20767 HAVE_DL_FUNCS=1
20768 DL_LINK=" -ldl$DL_LINK"
20769
20770else
20771 echo "$ac_t""no" 1>&6
20772
20773 for ac_func in shl_load
20774do
20775echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20776echo "configure:20777: checking for $ac_func" >&5
20777if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20778 echo $ac_n "(cached) $ac_c" 1>&6
20779else
20780 cat > conftest.$ac_ext <<EOF
20781#line 20782 "configure"
20782#include "confdefs.h"
20783/* System header to define __stub macros and hopefully few prototypes,
20784 which can conflict with char $ac_func(); below. */
20785#include <assert.h>
20786/* Override any gcc2 internal prototype to avoid an error. */
20787/* We use char because int might match the return type of a gcc2
20788 builtin and then its argument prototype would still apply. */
20789char $ac_func();
20790
20791int main() {
20792
20793/* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20797choke me
20798#else
20799$ac_func();
20800#endif
20801
20802; return 0; }
20803EOF
20804if { (eval echo configure:20805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20805 rm -rf conftest*
20806 eval "ac_cv_func_$ac_func=yes"
20807else
20808 echo "configure: failed program was:" >&5
20809 cat conftest.$ac_ext >&5
20810 rm -rf conftest*
20811 eval "ac_cv_func_$ac_func=no"
20812fi
20813rm -f conftest*
20814fi
20815
20816if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20817 echo "$ac_t""yes" 1>&6
20818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20819 cat >> confdefs.h <<EOF
20820#define $ac_tr_func 1
20821EOF
20822
20823 cat >> confdefs.h <<\EOF
20824#define HAVE_SHL_LOAD 1
20825EOF
20826
20827 HAVE_SHL_FUNCS=1
20828
20829else
20830 echo "$ac_t""no" 1>&6
20831echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20832echo "configure:20833: checking for dld in -lshl_load" >&5
20833ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20835 echo $ac_n "(cached) $ac_c" 1>&6
20836else
20837 ac_save_LIBS="$LIBS"
20838LIBS="-lshl_load $LIBS"
20839cat > conftest.$ac_ext <<EOF
20840#line 20841 "configure"
20841#include "confdefs.h"
20842/* Override any gcc2 internal prototype to avoid an error. */
20843/* We use char because int might match the return type of a gcc2
20844 builtin and then its argument prototype would still apply. */
20845char dld();
20846
20847int main() {
20848dld()
20849; return 0; }
20850EOF
20851if { (eval echo configure:20852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20852 rm -rf conftest*
20853 eval "ac_cv_lib_$ac_lib_var=yes"
20854else
20855 echo "configure: failed program was:" >&5
20856 cat conftest.$ac_ext >&5
20857 rm -rf conftest*
20858 eval "ac_cv_lib_$ac_lib_var=no"
20859fi
20860rm -f conftest*
20861LIBS="$ac_save_LIBS"
20862
20863fi
20864if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20865 echo "$ac_t""yes" 1>&6
20866
20867 HAVE_SHL_FUNCS=1
20868 DL_LINK=" -ldld$DL_LINK"
20869
20870else
20871 echo "$ac_t""no" 1>&6
20872fi
20873
20874
20875fi
20876done
20877
20878
20879fi
20880
20881
20882fi
20883done
20884
20885
20886 if test "$HAVE_DL_FUNCS" = 1; then
20887 for ac_func in dlerror
20888do
20889echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20890echo "configure:20891: checking for $ac_func" >&5
20891if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20892 echo $ac_n "(cached) $ac_c" 1>&6
20893else
20894 cat > conftest.$ac_ext <<EOF
20895#line 20896 "configure"
20896#include "confdefs.h"
20897/* System header to define __stub macros and hopefully few prototypes,
20898 which can conflict with char $ac_func(); below. */
20899#include <assert.h>
20900/* Override any gcc2 internal prototype to avoid an error. */
20901/* We use char because int might match the return type of a gcc2
20902 builtin and then its argument prototype would still apply. */
20903char $ac_func();
20904
20905int main() {
20906
20907/* The GNU C library defines this for functions which it implements
20908 to always fail with ENOSYS. Some functions are actually named
20909 something starting with __ and the normal name is an alias. */
20910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20911choke me
20912#else
20913$ac_func();
20914#endif
20915
20916; return 0; }
20917EOF
20918if { (eval echo configure:20919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20919 rm -rf conftest*
20920 eval "ac_cv_func_$ac_func=yes"
20921else
20922 echo "configure: failed program was:" >&5
20923 cat conftest.$ac_ext >&5
20924 rm -rf conftest*
20925 eval "ac_cv_func_$ac_func=no"
20926fi
20927rm -f conftest*
20928fi
20929
20930if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20931 echo "$ac_t""yes" 1>&6
20932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20933 cat >> confdefs.h <<EOF
20934#define $ac_tr_func 1
20935EOF
20936 cat >> confdefs.h <<\EOF
20937#define HAVE_DLERROR 1
20938EOF
20939
20940else
20941 echo "$ac_t""no" 1>&6
20942echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20943echo "configure:20944: checking for dlerror in -ldl" >&5
20944ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20945if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20946 echo $ac_n "(cached) $ac_c" 1>&6
20947else
20948 ac_save_LIBS="$LIBS"
20949LIBS="-ldl $LIBS"
20950cat > conftest.$ac_ext <<EOF
20951#line 20952 "configure"
20952#include "confdefs.h"
20953/* Override any gcc2 internal prototype to avoid an error. */
20954/* We use char because int might match the return type of a gcc2
20955 builtin and then its argument prototype would still apply. */
20956char dlerror();
20957
20958int main() {
20959dlerror()
20960; return 0; }
20961EOF
20962if { (eval echo configure:20963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20963 rm -rf conftest*
20964 eval "ac_cv_lib_$ac_lib_var=yes"
20965else
20966 echo "configure: failed program was:" >&5
20967 cat conftest.$ac_ext >&5
20968 rm -rf conftest*
20969 eval "ac_cv_lib_$ac_lib_var=no"
20970fi
20971rm -f conftest*
20972LIBS="$ac_save_LIBS"
20973
20974fi
20975if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20976 echo "$ac_t""yes" 1>&6
20977 cat >> confdefs.h <<\EOF
20978#define HAVE_DLERROR 1
20979EOF
20980
20981else
20982 echo "$ac_t""no" 1>&6
20983fi
20984
20985fi
20986done
20987
20988 fi
20989 fi
20990
20991 if test "$HAVE_DL_FUNCS" = 0; then
20992 if test "$HAVE_SHL_FUNCS" = 0; then
20993 if test "$USE_UNIX" = 1; then
20994 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20995 wxUSE_DYNAMIC_LOADER=no
20996 wxUSE_DYNLIB_CLASS=no
20997 else
20998 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20999 fi
21000 fi
21001 fi
21002 fi
21003fi
21004
21005if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
21006 cat >> confdefs.h <<\EOF
21007#define wxUSE_DYNAMIC_LOADER 1
21008EOF
21009
21010elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
21011 cat >> confdefs.h <<\EOF
21012#define wxUSE_DYNLIB_CLASS 1
21013EOF
21014
21015fi
21016
21017
21018if test "$wxUSE_FONTMAP" = "yes" ; then
21019 cat >> confdefs.h <<\EOF
21020#define wxUSE_FONTMAP 1
21021EOF
21022
21023fi
21024
21025if test "$wxUSE_UNICODE" = "yes" ; then
21026 cat >> confdefs.h <<\EOF
21027#define wxUSE_UNICODE 1
21028EOF
21029
21030
21031 if test "$wxUSE_MSW" != 1; then
21032 wxUSE_UNICODE_MSLU=no
21033 fi
21034
21035 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
21036 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21037echo "configure:21038: checking for main in -lunicows" >&5
21038ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21039if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21040 echo $ac_n "(cached) $ac_c" 1>&6
21041else
21042 ac_save_LIBS="$LIBS"
21043LIBS="-lunicows $LIBS"
21044cat > conftest.$ac_ext <<EOF
21045#line 21046 "configure"
21046#include "confdefs.h"
21047
21048int main() {
21049main()
21050; return 0; }
21051EOF
21052if { (eval echo configure:21053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21053 rm -rf conftest*
21054 eval "ac_cv_lib_$ac_lib_var=yes"
21055else
21056 echo "configure: failed program was:" >&5
21057 cat conftest.$ac_ext >&5
21058 rm -rf conftest*
21059 eval "ac_cv_lib_$ac_lib_var=no"
21060fi
21061rm -f conftest*
21062LIBS="$ac_save_LIBS"
21063
21064fi
21065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21066 echo "$ac_t""yes" 1>&6
21067
21068 cat >> confdefs.h <<\EOF
21069#define wxUSE_UNICODE_MSLU 1
21070EOF
21071
21072
21073else
21074 echo "$ac_t""no" 1>&6
21075
21076 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21077 Applications will only run on Windows NT/2000/XP!" 1>&2
21078 wxUSE_UNICODE_MSLU=no
21079
21080fi
21081
21082 fi
21083fi
21084
21085if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21086 cat >> confdefs.h <<\EOF
21087#define wxUSE_EXPERIMENTAL_PRINTF 1
21088EOF
21089
21090fi
21091
21092
21093
21094IODBC_C_SRC=""
21095if test "$wxUSE_ODBC" = "yes" ; then
21096 cat >> confdefs.h <<\EOF
21097#define wxUSE_ODBC 1
21098EOF
21099
21100 WXODBCFLAG="-D_IODBC_"
21101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
21102fi
21103
21104
21105if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21106 cat >> confdefs.h <<\EOF
21107#define wxUSE_POSTSCRIPT 1
21108EOF
21109
21110fi
21111
21112cat >> confdefs.h <<\EOF
21113#define wxUSE_AFM_FOR_POSTSCRIPT 1
21114EOF
21115
21116
21117cat >> confdefs.h <<\EOF
21118#define wxUSE_NORMALIZED_PS_FONTS 1
21119EOF
21120
21121
21122
21123if test "$wxUSE_CONSTRAINTS" = "yes"; then
21124 cat >> confdefs.h <<\EOF
21125#define wxUSE_CONSTRAINTS 1
21126EOF
21127
21128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21129fi
21130
21131if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21132
21133
21134 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21135 cat >> confdefs.h <<\EOF
21136#define wxUSE_MDI_ARCHITECTURE 1
21137EOF
21138
21139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21140 fi
21141fi
21142
21143if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21144 cat >> confdefs.h <<\EOF
21145#define wxUSE_DOC_VIEW_ARCHITECTURE 1
21146EOF
21147
21148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21149 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21151 fi
21152fi
21153
21154if test "$wxUSE_HELP" = "yes"; then
21155 cat >> confdefs.h <<\EOF
21156#define wxUSE_HELP 1
21157EOF
21158
21159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21160
21161 if test "$wxUSE_MSW" = 1; then
21162 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21163 cat >> confdefs.h <<\EOF
21164#define wxUSE_MS_HTML_HELP 1
21165EOF
21166
21167 fi
21168 fi
21169
21170 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21171 if test "$wxUSE_HTML" = "yes"; then
21172 cat >> confdefs.h <<\EOF
21173#define wxUSE_WXHTML_HELP 1
21174EOF
21175
21176 else
21177 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21178 wxUSE_WXHTML_HELP=no
21179 fi
21180 fi
21181fi
21182
21183if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21184 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21185 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21186 else
21187 cat >> confdefs.h <<\EOF
21188#define wxUSE_PRINTING_ARCHITECTURE 1
21189EOF
21190
21191 fi
21192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21193fi
21194
21195
21196
21197if test "$wxUSE_X_RESOURCES" = "yes"; then
21198 cat >> confdefs.h <<\EOF
21199#define wxUSE_X_RESOURCES 1
21200EOF
21201
21202fi
21203
21204
21205if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21206 -o "$wxUSE_CLIPBOARD" = "yes" \
21207 -o "$wxUSE_OLE" = "yes" \
21208 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21209 for ac_hdr in ole2.h
21210do
21211ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21212echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21213echo "configure:21214: checking for $ac_hdr" >&5
21214if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21215 echo $ac_n "(cached) $ac_c" 1>&6
21216else
21217 cat > conftest.$ac_ext <<EOF
21218#line 21219 "configure"
21219#include "confdefs.h"
21220#include <$ac_hdr>
21221EOF
21222ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21223{ (eval echo configure:21224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21224ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21225if test -z "$ac_err"; then
21226 rm -rf conftest*
21227 eval "ac_cv_header_$ac_safe=yes"
21228else
21229 echo "$ac_err" >&5
21230 echo "configure: failed program was:" >&5
21231 cat conftest.$ac_ext >&5
21232 rm -rf conftest*
21233 eval "ac_cv_header_$ac_safe=no"
21234fi
21235rm -f conftest*
21236fi
21237if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21238 echo "$ac_t""yes" 1>&6
21239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21240 cat >> confdefs.h <<EOF
21241#define $ac_tr_hdr 1
21242EOF
21243
21244else
21245 echo "$ac_t""no" 1>&6
21246fi
21247done
21248
21249
21250 if test "$ac_cv_header_ole2_h" = "yes" ; then
21251 if test "$GCC" = yes ; then
21252
21253 ac_ext=C
21254# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21255ac_cpp='$CXXCPP $CPPFLAGS'
21256ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21257ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21258cross_compiling=$ac_cv_prog_cxx_cross
21259
21260
21261 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21262echo "configure:21263: checking if g++ requires -fvtable-thunks" >&5
21263 cat > conftest.$ac_ext <<EOF
21264#line 21265 "configure"
21265#include "confdefs.h"
21266#include <windows.h>
21267 #include <ole2.h>
21268int main() {
21269
21270; return 0; }
21271EOF
21272if { (eval echo configure:21273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21273 rm -rf conftest*
21274 echo "$ac_t""no" 1>&6
21275else
21276 echo "configure: failed program was:" >&5
21277 cat conftest.$ac_ext >&5
21278 rm -rf conftest*
21279 echo "$ac_t""yes" 1>&6
21280 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21281fi
21282rm -f conftest*
21283 ac_ext=c
21284# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21285ac_cpp='$CPP $CPPFLAGS'
21286ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21287ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21288cross_compiling=$ac_cv_prog_cc_cross
21289
21290 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21291 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21292 cat >> confdefs.h <<\EOF
21293#define wxUSE_OLE 1
21294EOF
21295
21296
21297 fi
21298
21299 cat >> confdefs.h <<\EOF
21300#define wxUSE_DATAOBJ 1
21301EOF
21302
21303 else
21304 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21305
21306 wxUSE_CLIPBOARD=no
21307 wxUSE_DRAG_AND_DROP=no
21308 wxUSE_DATAOBJ=no
21309 wxUSE_OLE=no
21310 fi
21311
21312 if test "$wxUSE_METAFILE" = "yes"; then
21313 cat >> confdefs.h <<\EOF
21314#define wxUSE_METAFILE 1
21315EOF
21316
21317
21318 cat >> confdefs.h <<\EOF
21319#define wxUSE_ENH_METAFILE 1
21320EOF
21321
21322 fi
21323fi
21324
21325if test "$wxUSE_IPC" = "yes"; then
21326 if test "$wxUSE_SOCKETS" != "yes"; then
21327 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21328 fi
21329
21330 cat >> confdefs.h <<\EOF
21331#define wxUSE_IPC 1
21332EOF
21333
21334fi
21335
21336if test "$wxUSE_CLIPBOARD" = "yes"; then
21337 if test "$wxUSE_MGL" = 1; then
21338 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21339 wxUSE_CLIPBOARD=no
21340 fi
21341
21342 if test "$wxUSE_CLIPBOARD" = "yes"; then
21343 cat >> confdefs.h <<\EOF
21344#define wxUSE_CLIPBOARD 1
21345EOF
21346
21347
21348 cat >> confdefs.h <<\EOF
21349#define wxUSE_DATAOBJ 1
21350EOF
21351
21352 fi
21353fi
21354
21355if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21356 if test "$wxUSE_GTK" = 1; then
21357 if test "$WXGTK12" != 1; then
21358 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21359 wxUSE_DRAG_AND_DROP=no
21360 fi
21361 fi
21362
21363 if test "$wxUSE_MOTIF" = 1; then
21364 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21365 wxUSE_DRAG_AND_DROP=no
21366 fi
21367
21368 if test "$wxUSE_X11" = 1; then
21369 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21370 wxUSE_DRAG_AND_DROP=no
21371 fi
21372
21373 if test "$wxUSE_MGL" = 1; then
21374 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21375 wxUSE_DRAG_AND_DROP=no
21376 fi
21377
21378 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21379 cat >> confdefs.h <<\EOF
21380#define wxUSE_DRAG_AND_DROP 1
21381EOF
21382
21383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21384 fi
21385
21386fi
21387
21388if test "$wxUSE_SPLINES" = "yes" ; then
21389 cat >> confdefs.h <<\EOF
21390#define wxUSE_SPLINES 1
21391EOF
21392
21393fi
21394
21395
21396USES_CONTROLS=0
21397if test "$wxUSE_CONTROLS" = "yes"; then
21398 USES_CONTROLS=1
21399fi
21400
21401if test "$wxUSE_ACCEL" = "yes"; then
21402 cat >> confdefs.h <<\EOF
21403#define wxUSE_ACCEL 1
21404EOF
21405
21406 USES_CONTROLS=1
21407fi
21408
21409if test "$wxUSE_BUTTON" = "yes"; then
21410 cat >> confdefs.h <<\EOF
21411#define wxUSE_BUTTON 1
21412EOF
21413
21414 USES_CONTROLS=1
21415fi
21416
21417if test "$wxUSE_BMPBUTTON" = "yes"; then
21418 cat >> confdefs.h <<\EOF
21419#define wxUSE_BMPBUTTON 1
21420EOF
21421
21422 USES_CONTROLS=1
21423fi
21424
21425if test "$wxUSE_CALCTRL" = "yes"; then
21426 cat >> confdefs.h <<\EOF
21427#define wxUSE_CALENDARCTRL 1
21428EOF
21429
21430 USES_CONTROLS=1
21431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21432fi
21433
21434if test "$wxUSE_CARET" = "yes"; then
21435 cat >> confdefs.h <<\EOF
21436#define wxUSE_CARET 1
21437EOF
21438
21439 USES_CONTROLS=1
21440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21441fi
21442
21443if test "$wxUSE_COMBOBOX" = "yes"; then
21444 cat >> confdefs.h <<\EOF
21445#define wxUSE_COMBOBOX 1
21446EOF
21447
21448 USES_CONTROLS=1
21449fi
21450
21451if test "$wxUSE_CHOICE" = "yes"; then
21452 cat >> confdefs.h <<\EOF
21453#define wxUSE_CHOICE 1
21454EOF
21455
21456 USES_CONTROLS=1
21457fi
21458
21459if test "$wxUSE_CHECKBOX" = "yes"; then
21460 cat >> confdefs.h <<\EOF
21461#define wxUSE_CHECKBOX 1
21462EOF
21463
21464 USES_CONTROLS=1
21465fi
21466
21467if test "$wxUSE_CHECKLST" = "yes"; then
21468 cat >> confdefs.h <<\EOF
21469#define wxUSE_CHECKLISTBOX 1
21470EOF
21471
21472 USES_CONTROLS=1
21473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21474fi
21475
21476if test "$wxUSE_DISPLAY" = "yes"; then
21477 cat >> confdefs.h <<\EOF
21478#define wxUSE_DISPLAY 1
21479EOF
21480
21481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21482fi
21483
21484if test "$wxUSE_GAUGE" = "yes"; then
21485 cat >> confdefs.h <<\EOF
21486#define wxUSE_GAUGE 1
21487EOF
21488
21489 USES_CONTROLS=1
21490fi
21491
21492if test "$wxUSE_GRID" = "yes"; then
21493 cat >> confdefs.h <<\EOF
21494#define wxUSE_GRID 1
21495EOF
21496
21497 USES_CONTROLS=1
21498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21499fi
21500
21501if test "$wxUSE_IMAGLIST" = "yes"; then
21502 cat >> confdefs.h <<\EOF
21503#define wxUSE_IMAGLIST 1
21504EOF
21505
21506fi
21507
21508if test "$wxUSE_LISTBOX" = "yes"; then
21509 cat >> confdefs.h <<\EOF
21510#define wxUSE_LISTBOX 1
21511EOF
21512
21513 USES_CONTROLS=1
21514fi
21515
21516if test "$wxUSE_LISTCTRL" = "yes"; then
21517 if test "$wxUSE_IMAGLIST" = "yes"; then
21518 cat >> confdefs.h <<\EOF
21519#define wxUSE_LISTCTRL 1
21520EOF
21521
21522 USES_CONTROLS=1
21523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21524 else
21525 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21526 fi
21527fi
21528
21529if test "$wxUSE_NOTEBOOK" = "yes"; then
21530 cat >> confdefs.h <<\EOF
21531#define wxUSE_NOTEBOOK 1
21532EOF
21533
21534 USES_CONTROLS=1
21535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21536fi
21537
21538
21539if test "$wxUSE_RADIOBOX" = "yes"; then
21540 cat >> confdefs.h <<\EOF
21541#define wxUSE_RADIOBOX 1
21542EOF
21543
21544 USES_CONTROLS=1
21545fi
21546
21547if test "$wxUSE_RADIOBTN" = "yes"; then
21548 cat >> confdefs.h <<\EOF
21549#define wxUSE_RADIOBTN 1
21550EOF
21551
21552 USES_CONTROLS=1
21553fi
21554
21555if test "$wxUSE_SASH" = "yes"; then
21556 cat >> confdefs.h <<\EOF
21557#define wxUSE_SASH 1
21558EOF
21559
21560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21561fi
21562
21563if test "$wxUSE_SCROLLBAR" = "yes"; then
21564 cat >> confdefs.h <<\EOF
21565#define wxUSE_SCROLLBAR 1
21566EOF
21567
21568 USES_CONTROLS=1
21569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21570fi
21571
21572if test "$wxUSE_SLIDER" = "yes"; then
21573 cat >> confdefs.h <<\EOF
21574#define wxUSE_SLIDER 1
21575EOF
21576
21577 USES_CONTROLS=1
21578fi
21579
21580if test "$wxUSE_SPINBTN" = "yes"; then
21581 cat >> confdefs.h <<\EOF
21582#define wxUSE_SPINBTN 1
21583EOF
21584
21585 USES_CONTROLS=1
21586fi
21587
21588if test "$wxUSE_SPINCTRL" = "yes"; then
21589 cat >> confdefs.h <<\EOF
21590#define wxUSE_SPINCTRL 1
21591EOF
21592
21593 USES_CONTROLS=1
21594fi
21595
21596if test "$wxUSE_SPLITTER" = "yes"; then
21597 cat >> confdefs.h <<\EOF
21598#define wxUSE_SPLITTER 1
21599EOF
21600
21601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21602fi
21603
21604if test "$wxUSE_STATBMP" = "yes"; then
21605 cat >> confdefs.h <<\EOF
21606#define wxUSE_STATBMP 1
21607EOF
21608
21609 USES_CONTROLS=1
21610fi
21611
21612if test "$wxUSE_STATBOX" = "yes"; then
21613 cat >> confdefs.h <<\EOF
21614#define wxUSE_STATBOX 1
21615EOF
21616
21617 USES_CONTROLS=1
21618fi
21619
21620if test "$wxUSE_STATTEXT" = "yes"; then
21621 cat >> confdefs.h <<\EOF
21622#define wxUSE_STATTEXT 1
21623EOF
21624
21625 USES_CONTROLS=1
21626fi
21627
21628if test "$wxUSE_STATLINE" = "yes"; then
21629 cat >> confdefs.h <<\EOF
21630#define wxUSE_STATLINE 1
21631EOF
21632
21633 USES_CONTROLS=1
21634fi
21635
21636if test "$wxUSE_STATUSBAR" = "yes"; then
21637 cat >> confdefs.h <<\EOF
21638#define wxUSE_STATUSBAR 1
21639EOF
21640
21641 USES_CONTROLS=1
21642
21643 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21644fi
21645
21646if test "$wxUSE_TABDIALOG" = "yes"; then
21647 cat >> confdefs.h <<\EOF
21648#define wxUSE_TAB_DIALOG 1
21649EOF
21650
21651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21652fi
21653
21654if test "$wxUSE_TEXTCTRL" = "yes"; then
21655 cat >> confdefs.h <<\EOF
21656#define wxUSE_TEXTCTRL 1
21657EOF
21658
21659 USES_CONTROLS=1
21660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21661fi
21662
21663if test "$wxUSE_TOGGLEBTN" = "yes"; then
21664 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21665 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21666 wxUSE_TOGGLEBTN=no
21667 fi
21668 if test "$wxUSE_UNIVERSAL" = "yes"; then
21669 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21670 wxUSE_TOGGLEBTN=no
21671 fi
21672
21673 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21674 cat >> confdefs.h <<\EOF
21675#define wxUSE_TOGGLEBTN 1
21676EOF
21677
21678 USES_CONTROLS=1
21679 fi
21680fi
21681
21682if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21683 cat >> confdefs.h <<\EOF
21684#define wxUSE_TOOLBAR_SIMPLE 1
21685EOF
21686
21687 wxUSE_TOOLBAR="yes"
21688 USES_CONTROLS=1
21689fi
21690
21691if test "$wxUSE_TOOLBAR" = "yes"; then
21692 cat >> confdefs.h <<\EOF
21693#define wxUSE_TOOLBAR 1
21694EOF
21695
21696 USES_CONTROLS=1
21697
21698 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21699 wxUSE_TOOLBAR_NATIVE="yes"
21700 fi
21701
21702 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21703 cat >> confdefs.h <<\EOF
21704#define wxUSE_TOOLBAR_NATIVE 1
21705EOF
21706
21707 USES_CONTROLS=1
21708 fi
21709
21710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21711fi
21712
21713if test "$wxUSE_TOOLTIPS" = "yes"; then
21714 if test "$wxUSE_MOTIF" = 1; then
21715 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21716 else
21717 if test "$wxUSE_UNIVERSAL" = "yes"; then
21718 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21719 else
21720 cat >> confdefs.h <<\EOF
21721#define wxUSE_TOOLTIPS 1
21722EOF
21723
21724 fi
21725 fi
21726fi
21727
21728if test "$wxUSE_TREECTRL" = "yes"; then
21729 if test "$wxUSE_IMAGLIST" = "yes"; then
21730 cat >> confdefs.h <<\EOF
21731#define wxUSE_TREECTRL 1
21732EOF
21733
21734 USES_CONTROLS=1
21735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21736 else
21737 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21738 fi
21739fi
21740
21741if test "$wxUSE_POPUPWIN" = "yes"; then
21742 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21743 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21744 else
21745 if test "$wxUSE_MOTIF" = 1; then
21746 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21747 else
21748 if test "$wxUSE_PM" = 1; then
21749 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21750 else
21751 cat >> confdefs.h <<\EOF
21752#define wxUSE_POPUPWIN 1
21753EOF
21754
21755
21756 USES_CONTROLS=1
21757 fi
21758 fi
21759 fi
21760fi
21761
21762if test "$wxUSE_TIPWINDOW" = "yes"; then
21763 if test "$wxUSE_PM" = 1; then
21764 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21765 else
21766 cat >> confdefs.h <<\EOF
21767#define wxUSE_TIPWINDOW 1
21768EOF
21769
21770 fi
21771fi
21772
21773if test "$USES_CONTROLS" = 1; then
21774 cat >> confdefs.h <<\EOF
21775#define wxUSE_CONTROLS 1
21776EOF
21777
21778fi
21779
21780
21781
21782if test "$wxUSE_DRAGIMAGE" = "yes"; then
21783 cat >> confdefs.h <<\EOF
21784#define wxUSE_DRAGIMAGE 1
21785EOF
21786
21787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21788fi
21789
21790if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21791 cat >> confdefs.h <<\EOF
21792#define wxUSE_ACCESSIBILITY 1
21793EOF
21794
21795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21796fi
21797
21798if test "$wxUSE_MENUS" = "yes"; then
21799 cat >> confdefs.h <<\EOF
21800#define wxUSE_MENUS 1
21801EOF
21802
21803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21804fi
21805
21806if test "$wxUSE_METAFILE" = "yes"; then
21807 cat >> confdefs.h <<\EOF
21808#define wxUSE_METAFILE 1
21809EOF
21810
21811fi
21812
21813if test "$wxUSE_MIMETYPE" = "yes"; then
21814 cat >> confdefs.h <<\EOF
21815#define wxUSE_MIMETYPE 1
21816EOF
21817
21818fi
21819
21820if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21821 cat >> confdefs.h <<\EOF
21822#define wxUSE_SYSTEM_OPTIONS 1
21823EOF
21824
21825if test "$TOOLKIT" = "MSW"; then
21826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21827fi
21828
21829fi
21830
21831if test "$wxUSE_PROTOCOL" = "yes"; then
21832 if test "$wxUSE_SOCKETS" != "yes"; then
21833 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21834 wxUSE_PROTOCOL=no
21835 fi
21836
21837 if test "$wxUSE_PROTOCOL" = "yes"; then
21838 cat >> confdefs.h <<\EOF
21839#define wxUSE_PROTOCOL 1
21840EOF
21841
21842
21843 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21844 cat >> confdefs.h <<\EOF
21845#define wxUSE_PROTOCOL_HTTP 1
21846EOF
21847
21848 fi
21849 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21850 cat >> confdefs.h <<\EOF
21851#define wxUSE_PROTOCOL_FTP 1
21852EOF
21853
21854 fi
21855 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21856 cat >> confdefs.h <<\EOF
21857#define wxUSE_PROTOCOL_FILE 1
21858EOF
21859
21860 fi
21861 fi
21862fi
21863
21864if test "$wxUSE_URL" = "yes"; then
21865 if test "$wxUSE_PROTOCOL" != "yes"; then
21866 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21867 wxUSE_URL=no
21868 fi
21869 if test "$wxUSE_URL" = "yes"; then
21870 cat >> confdefs.h <<\EOF
21871#define wxUSE_URL 1
21872EOF
21873
21874 fi
21875fi
21876
21877if test "$wxUSE_MINIFRAME" = "yes"; then
21878 cat >> confdefs.h <<\EOF
21879#define wxUSE_MINIFRAME 1
21880EOF
21881
21882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21883fi
21884
21885if test "$wxUSE_HTML" = "yes"; then
21886 cat >> confdefs.h <<\EOF
21887#define wxUSE_HTML 1
21888EOF
21889
21890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21891fi
21892
21893if test "$wxUSE_VALIDATORS" = "yes"; then
21894 cat >> confdefs.h <<\EOF
21895#define wxUSE_VALIDATORS 1
21896EOF
21897
21898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21899fi
21900
21901if test "$wxUSE_PALETTE" = "yes" ; then
21902 cat >> confdefs.h <<\EOF
21903#define wxUSE_PALETTE 1
21904EOF
21905
21906fi
21907
21908if test "$wxUSE_IMAGE" = "yes" ; then
21909 cat >> confdefs.h <<\EOF
21910#define wxUSE_IMAGE 1
21911EOF
21912
21913fi
21914
21915if test "$wxUSE_GIF" = "yes" ; then
21916 cat >> confdefs.h <<\EOF
21917#define wxUSE_GIF 1
21918EOF
21919
21920fi
21921
21922if test "$wxUSE_PCX" = "yes" ; then
21923 cat >> confdefs.h <<\EOF
21924#define wxUSE_PCX 1
21925EOF
21926
21927fi
21928
21929if test "$wxUSE_IFF" = "yes" ; then
21930 cat >> confdefs.h <<\EOF
21931#define wxUSE_IFF 1
21932EOF
21933
21934fi
21935
21936if test "$wxUSE_PNM" = "yes" ; then
21937 cat >> confdefs.h <<\EOF
21938#define wxUSE_PNM 1
21939EOF
21940
21941fi
21942
21943if test "$wxUSE_XPM" = "yes" ; then
21944 cat >> confdefs.h <<\EOF
21945#define wxUSE_XPM 1
21946EOF
21947
21948fi
21949
21950if test "$wxUSE_ICO_CUR" = "yes" ; then
21951 cat >> confdefs.h <<\EOF
21952#define wxUSE_ICO_CUR 1
21953EOF
21954
21955fi
21956
21957if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21958 LIBS=" -lunicows $LIBS"
21959fi
21960
21961
21962if test "$wxUSE_CHOICEDLG" = "yes"; then
21963 cat >> confdefs.h <<\EOF
21964#define wxUSE_CHOICEDLG 1
21965EOF
21966
21967fi
21968
21969if test "$wxUSE_COLOURDLG" = "yes"; then
21970 cat >> confdefs.h <<\EOF
21971#define wxUSE_COLOURDLG 1
21972EOF
21973
21974fi
21975
21976if test "$wxUSE_FILEDLG" = "yes"; then
21977 cat >> confdefs.h <<\EOF
21978#define wxUSE_FILEDLG 1
21979EOF
21980
21981fi
21982
21983if test "$wxUSE_FINDREPLDLG" = "yes"; then
21984 cat >> confdefs.h <<\EOF
21985#define wxUSE_FINDREPLDLG 1
21986EOF
21987
21988fi
21989
21990if test "$wxUSE_FONTDLG" = "yes"; then
21991 cat >> confdefs.h <<\EOF
21992#define wxUSE_FONTDLG 1
21993EOF
21994
21995fi
21996
21997if test "$wxUSE_DIRDLG" = "yes"; then
21998 if test "$wxUSE_TREECTRL" != "yes"; then
21999 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
22000 else
22001 cat >> confdefs.h <<\EOF
22002#define wxUSE_DIRDLG 1
22003EOF
22004
22005 fi
22006fi
22007
22008if test "$wxUSE_MSGDLG" = "yes"; then
22009 cat >> confdefs.h <<\EOF
22010#define wxUSE_MSGDLG 1
22011EOF
22012
22013fi
22014
22015if test "$wxUSE_NUMBERDLG" = "yes"; then
22016 cat >> confdefs.h <<\EOF
22017#define wxUSE_NUMBERDLG 1
22018EOF
22019
22020fi
22021
22022if test "$wxUSE_PROGRESSDLG" = "yes"; then
22023 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22024 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22025 else
22026 cat >> confdefs.h <<\EOF
22027#define wxUSE_PROGRESSDLG 1
22028EOF
22029
22030 fi
22031fi
22032
22033if test "$wxUSE_SPLASH" = "yes"; then
22034 cat >> confdefs.h <<\EOF
22035#define wxUSE_SPLASH 1
22036EOF
22037
22038fi
22039
22040if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22041 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22042 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22043 else
22044 cat >> confdefs.h <<\EOF
22045#define wxUSE_STARTUP_TIPS 1
22046EOF
22047
22048 fi
22049fi
22050
22051if test "$wxUSE_TEXTDLG" = "yes"; then
22052 cat >> confdefs.h <<\EOF
22053#define wxUSE_TEXTDLG 1
22054EOF
22055
22056fi
22057
22058if test "$wxUSE_WIZARDDLG" = "yes"; then
22059 cat >> confdefs.h <<\EOF
22060#define wxUSE_WIZARDDLG 1
22061EOF
22062
22063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22064fi
22065
22066
22067if test "$cross_compiling" = "yes"; then
22068 OSINFO="\"$host\""
22069else
22070 OSINFO=`uname -s -r -m`
22071 OSINFO="\"$OSINFO\""
22072fi
22073
22074cat >> confdefs.h <<EOF
22075#define WXWIN_OS_DESCRIPTION $OSINFO
22076EOF
22077
22078
22079
22080if test "x$prefix" != "xNONE"; then
22081 wxPREFIX=$prefix
22082else
22083 wxPREFIX=$ac_default_prefix
22084fi
22085
22086cat >> confdefs.h <<EOF
22087#define wxINSTALL_PREFIX "$wxPREFIX"
22088EOF
22089
22090
22091top_builddir=`pwd`
22092
22093
22094
22095
22096if test "$wxUSE_MAC" = 1 ; then
22097 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22098fi
22099if test "$wxUSE_COCOA" = 1 ; then
22100 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22101fi
22102
22103
22104LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22105
22106have_cos=0
22107have_floor=0
22108for ac_func in cos
22109do
22110echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22111echo "configure:22112: checking for $ac_func" >&5
22112if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22113 echo $ac_n "(cached) $ac_c" 1>&6
22114else
22115 cat > conftest.$ac_ext <<EOF
22116#line 22117 "configure"
22117#include "confdefs.h"
22118/* System header to define __stub macros and hopefully few prototypes,
22119 which can conflict with char $ac_func(); below. */
22120#include <assert.h>
22121/* Override any gcc2 internal prototype to avoid an error. */
22122/* We use char because int might match the return type of a gcc2
22123 builtin and then its argument prototype would still apply. */
22124char $ac_func();
22125
22126int main() {
22127
22128/* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22132choke me
22133#else
22134$ac_func();
22135#endif
22136
22137; return 0; }
22138EOF
22139if { (eval echo configure:22140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22140 rm -rf conftest*
22141 eval "ac_cv_func_$ac_func=yes"
22142else
22143 echo "configure: failed program was:" >&5
22144 cat conftest.$ac_ext >&5
22145 rm -rf conftest*
22146 eval "ac_cv_func_$ac_func=no"
22147fi
22148rm -f conftest*
22149fi
22150
22151if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22152 echo "$ac_t""yes" 1>&6
22153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22154 cat >> confdefs.h <<EOF
22155#define $ac_tr_func 1
22156EOF
22157 have_cos=1
22158else
22159 echo "$ac_t""no" 1>&6
22160fi
22161done
22162
22163for ac_func in floor
22164do
22165echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22166echo "configure:22167: checking for $ac_func" >&5
22167if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22168 echo $ac_n "(cached) $ac_c" 1>&6
22169else
22170 cat > conftest.$ac_ext <<EOF
22171#line 22172 "configure"
22172#include "confdefs.h"
22173/* System header to define __stub macros and hopefully few prototypes,
22174 which can conflict with char $ac_func(); below. */
22175#include <assert.h>
22176/* Override any gcc2 internal prototype to avoid an error. */
22177/* We use char because int might match the return type of a gcc2
22178 builtin and then its argument prototype would still apply. */
22179char $ac_func();
22180
22181int main() {
22182
22183/* The GNU C library defines this for functions which it implements
22184 to always fail with ENOSYS. Some functions are actually named
22185 something starting with __ and the normal name is an alias. */
22186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22187choke me
22188#else
22189$ac_func();
22190#endif
22191
22192; return 0; }
22193EOF
22194if { (eval echo configure:22195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22195 rm -rf conftest*
22196 eval "ac_cv_func_$ac_func=yes"
22197else
22198 echo "configure: failed program was:" >&5
22199 cat conftest.$ac_ext >&5
22200 rm -rf conftest*
22201 eval "ac_cv_func_$ac_func=no"
22202fi
22203rm -f conftest*
22204fi
22205
22206if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22207 echo "$ac_t""yes" 1>&6
22208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22209 cat >> confdefs.h <<EOF
22210#define $ac_tr_func 1
22211EOF
22212 have_floor=1
22213else
22214 echo "$ac_t""no" 1>&6
22215fi
22216done
22217
22218echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22219echo "configure:22220: checking if floating point functions link without -lm" >&5
22220if test "$have_cos" = 1 -a "$have_floor" = 1; then
22221 echo "$ac_t""yes" 1>&6
22222else
22223 echo "$ac_t""no" 1>&6
22224 LIBS="$LIBS -lm"
22225 # use different functions to avoid configure caching
22226 have_sin=0
22227 have_ceil=0
22228 for ac_func in sin
22229do
22230echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22231echo "configure:22232: checking for $ac_func" >&5
22232if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22233 echo $ac_n "(cached) $ac_c" 1>&6
22234else
22235 cat > conftest.$ac_ext <<EOF
22236#line 22237 "configure"
22237#include "confdefs.h"
22238/* System header to define __stub macros and hopefully few prototypes,
22239 which can conflict with char $ac_func(); below. */
22240#include <assert.h>
22241/* Override any gcc2 internal prototype to avoid an error. */
22242/* We use char because int might match the return type of a gcc2
22243 builtin and then its argument prototype would still apply. */
22244char $ac_func();
22245
22246int main() {
22247
22248/* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22252choke me
22253#else
22254$ac_func();
22255#endif
22256
22257; return 0; }
22258EOF
22259if { (eval echo configure:22260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22260 rm -rf conftest*
22261 eval "ac_cv_func_$ac_func=yes"
22262else
22263 echo "configure: failed program was:" >&5
22264 cat conftest.$ac_ext >&5
22265 rm -rf conftest*
22266 eval "ac_cv_func_$ac_func=no"
22267fi
22268rm -f conftest*
22269fi
22270
22271if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22272 echo "$ac_t""yes" 1>&6
22273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22274 cat >> confdefs.h <<EOF
22275#define $ac_tr_func 1
22276EOF
22277 have_sin=1
22278else
22279 echo "$ac_t""no" 1>&6
22280fi
22281done
22282
22283 for ac_func in ceil
22284do
22285echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22286echo "configure:22287: checking for $ac_func" >&5
22287if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22288 echo $ac_n "(cached) $ac_c" 1>&6
22289else
22290 cat > conftest.$ac_ext <<EOF
22291#line 22292 "configure"
22292#include "confdefs.h"
22293/* System header to define __stub macros and hopefully few prototypes,
22294 which can conflict with char $ac_func(); below. */
22295#include <assert.h>
22296/* Override any gcc2 internal prototype to avoid an error. */
22297/* We use char because int might match the return type of a gcc2
22298 builtin and then its argument prototype would still apply. */
22299char $ac_func();
22300
22301int main() {
22302
22303/* The GNU C library defines this for functions which it implements
22304 to always fail with ENOSYS. Some functions are actually named
22305 something starting with __ and the normal name is an alias. */
22306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22307choke me
22308#else
22309$ac_func();
22310#endif
22311
22312; return 0; }
22313EOF
22314if { (eval echo configure:22315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22315 rm -rf conftest*
22316 eval "ac_cv_func_$ac_func=yes"
22317else
22318 echo "configure: failed program was:" >&5
22319 cat conftest.$ac_ext >&5
22320 rm -rf conftest*
22321 eval "ac_cv_func_$ac_func=no"
22322fi
22323rm -f conftest*
22324fi
22325
22326if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22327 echo "$ac_t""yes" 1>&6
22328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22329 cat >> confdefs.h <<EOF
22330#define $ac_tr_func 1
22331EOF
22332 have_ceil=1
22333else
22334 echo "$ac_t""no" 1>&6
22335fi
22336done
22337
22338 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22339echo "configure:22340: checking if floating point functions link with -lm" >&5
22340 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22341 echo "$ac_t""yes" 1>&6
22342 else
22343 echo "$ac_t""no" 1>&6
22344 # not sure we should warn the user, crash, etc.
22345 fi
22346fi
22347
22348if test "$wxUSE_GUI" = "yes"; then
22349
22350 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22351
22352
22353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22354 drawing dynamic erase event exec font image \
22355 minimal propsize rotate shaped widgets"
22356
22357 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22358else
22359 SAMPLES_SUBDIRS="console"
22360fi
22361
22362
22363INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22364-I\${top_srcdir}/include \
22365$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22366$TOOLKIT_INCLUDE"
22367
22368if test "$wxUSE_GTK" = 1; then
22369 WXCONFIG_INCLUDE=
22370else
22371 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22372fi
22373
22374if test "$GXX" = yes ; then
22375 CXXWARNINGS="-Wall"
22376
22377 if test "$wxUSE_NO_DEPS" = "no" ; then
22378 CFLAGS="-MMD $CFLAGS"
22379 CXXFLAGS="-MMD $CXXFLAGS"
22380 fi
22381fi
22382
22383EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22384
22385CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22386CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22387CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22388LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22389
22390LDFLAGS="$LDFLAGS $PROFILE"
22391
22392SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22495echo "configure:22496: checking whether ${MAKE-make} sets \${MAKE}" >&5
22496set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22497if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22498 echo $ac_n "(cached) $ac_c" 1>&6
22499else
22500 cat > conftestmake <<\EOF
22501all:
22502 @echo 'ac_maketemp="${MAKE}"'
22503EOF
22504# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22505eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22506if test -n "$ac_maketemp"; then
22507 eval ac_cv_prog_make_${ac_make}_set=yes
22508else
22509 eval ac_cv_prog_make_${ac_make}_set=no
22510fi
22511rm -f conftestmake
22512fi
22513if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22514 echo "$ac_t""yes" 1>&6
22515 SET_MAKE=
22516else
22517 echo "$ac_t""no" 1>&6
22518 SET_MAKE="MAKE=${MAKE-make}"
22519fi
22520
22521
22522if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22523 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22524fi
22525
22526
22527
22528wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22529wx_cv_if_gnu_make=$IF_GNU_MAKE
22530wx_cv_path_ifs=$PATH_IFS
22531wx_cv_program_ext=$PROGRAM_EXT
22532wx_cv_target_library=$WX_TARGET_LIBRARY
22533wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22534wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22535wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22536wx_cv_release=${WX_RELEASE}
22537wx_cv_current=${WX_CURRENT}
22538wx_cv_revision=${WX_REVISION}
22539wx_cv_age=${WX_AGE}
22540wx_cv_use_gui=${USE_GUI}
22541wx_cv_use_resources=${wxUSE_RESOURCES}
22542export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22543 wx_cv_path_ifs wx_cv_program_ext \
22544 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22545 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22546 wx_cv_use_gui wx_cv_use_resources
22547
22548subdirs="demos samples utils contrib"
22549
22550
22551trap '' 1 2 15
22552cat > confcache <<\EOF
22553# This file is a shell script that caches the results of configure
22554# tests run on this system so they can be shared between configure
22555# scripts and configure runs. It is not useful on other systems.
22556# If it contains results you don't want to keep, you may remove or edit it.
22557#
22558# By default, configure uses ./config.cache as the cache file,
22559# creating it if it does not exist already. You can give configure
22560# the --cache-file=FILE option to use a different cache file; that is
22561# what configure does when it calls configure scripts in
22562# subdirectories, so they share the cache.
22563# Giving --cache-file=/dev/null disables caching, for debugging configure.
22564# config.status only pays attention to the cache file if you give it the
22565# --recheck option to rerun configure.
22566#
22567EOF
22568# The following way of writing the cache mishandles newlines in values,
22569# but we know of no workaround that is simple, portable, and efficient.
22570# So, don't put newlines in cache variables' values.
22571# Ultrix sh set writes to stderr and can't be redirected directly,
22572# and sets the high bit in the cache file unless we assign to the vars.
22573(set) 2>&1 |
22574 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22575 *ac_space=\ *)
22576 # `set' does not quote correctly, so add quotes (double-quote substitution
22577 # turns \\\\ into \\, and sed turns \\ into \).
22578 sed -n \
22579 -e "s/'/'\\\\''/g" \
22580 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22581 ;;
22582 *)
22583 # `set' quotes correctly as required by POSIX, so do not add quotes.
22584 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22585 ;;
22586 esac >> confcache
22587if cmp -s $cache_file confcache; then
22588 :
22589else
22590 if test -w $cache_file; then
22591 echo "updating cache $cache_file"
22592 cat confcache > $cache_file
22593 else
22594 echo "not updating unwritable cache $cache_file"
22595 fi
22596fi
22597rm -f confcache
22598
22599trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22600
22601test "x$prefix" = xNONE && prefix=$ac_default_prefix
22602# Let make expand exec_prefix.
22603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22604
22605# Any assignment to VPATH causes Sun make to only execute
22606# the first set of double-colon rules, so remove it if not needed.
22607# If there is a colon in the path, we need to keep it.
22608if test "x$srcdir" = x.; then
22609 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22610fi
22611
22612trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22613
22614DEFS=-DHAVE_CONFIG_H
22615
22616# Without the "./", some shells look in PATH for config.status.
22617: ${CONFIG_STATUS=./config.status}
22618
22619echo creating $CONFIG_STATUS
22620rm -f $CONFIG_STATUS
22621cat > $CONFIG_STATUS <<EOF
22622#! /bin/sh
22623# Generated automatically by configure.
22624# Run this file to recreate the current configuration.
22625# This directory was configured as follows,
22626# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22627#
22628# $0 $ac_configure_args
22629#
22630# Compiler output produced by configure, useful for debugging
22631# configure, is in ./config.log if it exists.
22632
22633ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22634for ac_option
22635do
22636 case "\$ac_option" in
22637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22638 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22639 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22640 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22641 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22642 exit 0 ;;
22643 -help | --help | --hel | --he | --h)
22644 echo "\$ac_cs_usage"; exit 0 ;;
22645 *) echo "\$ac_cs_usage"; exit 1 ;;
22646 esac
22647done
22648
22649ac_given_srcdir=$srcdir
22650ac_given_INSTALL="$INSTALL"
22651
22652trap 'rm -fr `echo "
22653 wx-config
22654 version-script
22655 src/make.env
22656 src/makeprog.env
22657 src/makelib.env
22658 Makefile
22659 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22660EOF
22661cat >> $CONFIG_STATUS <<EOF
22662
22663# Protect against being on the right side of a sed subst in config.status.
22664sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22665 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22666$ac_vpsub
22667$extrasub
22668s%@SHELL@%$SHELL%g
22669s%@CFLAGS@%$CFLAGS%g
22670s%@CPPFLAGS@%$CPPFLAGS%g
22671s%@CXXFLAGS@%$CXXFLAGS%g
22672s%@FFLAGS@%$FFLAGS%g
22673s%@DEFS@%$DEFS%g
22674s%@LDFLAGS@%$LDFLAGS%g
22675s%@LIBS@%$LIBS%g
22676s%@exec_prefix@%$exec_prefix%g
22677s%@prefix@%$prefix%g
22678s%@program_transform_name@%$program_transform_name%g
22679s%@bindir@%$bindir%g
22680s%@sbindir@%$sbindir%g
22681s%@libexecdir@%$libexecdir%g
22682s%@datadir@%$datadir%g
22683s%@sysconfdir@%$sysconfdir%g
22684s%@sharedstatedir@%$sharedstatedir%g
22685s%@localstatedir@%$localstatedir%g
22686s%@libdir@%$libdir%g
22687s%@includedir@%$includedir%g
22688s%@oldincludedir@%$oldincludedir%g
22689s%@infodir@%$infodir%g
22690s%@mandir@%$mandir%g
22691s%@host@%$host%g
22692s%@host_alias@%$host_alias%g
22693s%@host_cpu@%$host_cpu%g
22694s%@host_vendor@%$host_vendor%g
22695s%@host_os@%$host_os%g
22696s%@target@%$target%g
22697s%@target_alias@%$target_alias%g
22698s%@target_cpu@%$target_cpu%g
22699s%@target_vendor@%$target_vendor%g
22700s%@target_os@%$target_os%g
22701s%@build@%$build%g
22702s%@build_alias@%$build_alias%g
22703s%@build_cpu@%$build_cpu%g
22704s%@build_vendor@%$build_vendor%g
22705s%@build_os@%$build_os%g
22706s%@CC@%$CC%g
22707s%@CPP@%$CPP%g
22708s%@CXX@%$CXX%g
22709s%@RANLIB@%$RANLIB%g
22710s%@AR@%$AR%g
22711s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22712s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22713s%@INSTALL_DATA@%$INSTALL_DATA%g
22714s%@STRIP@%$STRIP%g
22715s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22716s%@YACC@%$YACC%g
22717s%@LEX@%$LEX%g
22718s%@LEXLIB@%$LEXLIB%g
22719s%@LN_S@%$LN_S%g
22720s%@CXXCPP@%$CXXCPP%g
22721s%@PKG_CONFIG@%$PKG_CONFIG%g
22722s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22723s%@GTK_LIBS@%$GTK_LIBS%g
22724s%@GTK_CONFIG@%$GTK_CONFIG%g
22725s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22726s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22727s%@X_CFLAGS@%$X_CFLAGS%g
22728s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22729s%@X_LIBS@%$X_LIBS%g
22730s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22731s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22732s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22733s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22734s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22735s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22736s%@RESCOMP@%$RESCOMP%g
22737s%@DEREZ@%$DEREZ%g
22738s%@SETFILE@%$SETFILE%g
22739s%@LIBICONV@%$LIBICONV%g
22740s%@LEX_STEM@%$LEX_STEM%g
22741s%@PATH_IFS@%$PATH_IFS%g
22742s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22743s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22744s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22745s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22746s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22747s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22748s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22749s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22750s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22751s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22752s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22753s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22754s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22755s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22756s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22757s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22758s%@WX_ALL@%$WX_ALL%g
22759s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22760s%@SHARED_LD@%$SHARED_LD%g
22761s%@PIC_FLAG@%$PIC_FLAG%g
22762s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22763s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22764s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22765s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22766s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22767s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22768s%@STATIC_FLAG@%$STATIC_FLAG%g
22769s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22770s%@USE_GUI@%$USE_GUI%g
22771s%@AFMINSTALL@%$AFMINSTALL%g
22772s%@WIN32INSTALL@%$WIN32INSTALL%g
22773s%@TOOLKIT@%$TOOLKIT%g
22774s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22775s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22776s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22777s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22778s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22779s%@top_builddir@%$top_builddir%g
22780s%@cross_compiling@%$cross_compiling%g
22781s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22782s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22783s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22784s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22785s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22786s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22787s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22788s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22789s%@ALL_HEADERS@%$ALL_HEADERS%g
22790s%@ALL_SOURCES@%$ALL_SOURCES%g
22791s%@GUIDIST@%$GUIDIST%g
22792s%@PORT_FILES@%$PORT_FILES%g
22793s%@DISTDIR@%$DISTDIR%g
22794s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22795s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22796s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22797s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22798s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22799s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22800s%@EXTRADEFS@%$EXTRADEFS%g
22801s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22802s%@RESFLAGS@%$RESFLAGS%g
22803s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22804s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22805s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22806s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22807s%@LIBWXMACRES@%$LIBWXMACRES%g
22808s%@MACRESCOMP@%$MACRESCOMP%g
22809s%@MACSETFILE@%$MACSETFILE%g
22810s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22811s%@GCC@%$GCC%g
22812s%@DLLTOOL@%$DLLTOOL%g
22813s%@AS@%$AS%g
22814s%@NM@%$NM%g
22815s%@LD@%$LD%g
22816s%@MAKEINFO@%$MAKEINFO%g
22817s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22818s%@INSTALL_DIR@%$INSTALL_DIR%g
22819s%@SET_MAKE@%$SET_MAKE%g
22820s%@subdirs@%$subdirs%g
22821
22822CEOF
22823EOF
22824
22825cat >> $CONFIG_STATUS <<\EOF
22826
22827# Split the substitutions into bite-sized pieces for seds with
22828# small command number limits, like on Digital OSF/1 and HP-UX.
22829ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22830ac_file=1 # Number of current file.
22831ac_beg=1 # First line for current file.
22832ac_end=$ac_max_sed_cmds # Line after last line for current file.
22833ac_more_lines=:
22834ac_sed_cmds=""
22835while $ac_more_lines; do
22836 if test $ac_beg -gt 1; then
22837 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22838 else
22839 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22840 fi
22841 if test ! -s conftest.s$ac_file; then
22842 ac_more_lines=false
22843 rm -f conftest.s$ac_file
22844 else
22845 if test -z "$ac_sed_cmds"; then
22846 ac_sed_cmds="sed -f conftest.s$ac_file"
22847 else
22848 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22849 fi
22850 ac_file=`expr $ac_file + 1`
22851 ac_beg=$ac_end
22852 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22853 fi
22854done
22855if test -z "$ac_sed_cmds"; then
22856 ac_sed_cmds=cat
22857fi
22858EOF
22859
22860cat >> $CONFIG_STATUS <<EOF
22861
22862CONFIG_FILES=\${CONFIG_FILES-"wx-config
22863 version-script
22864 src/make.env
22865 src/makeprog.env
22866 src/makelib.env
22867 Makefile
22868 "}
22869EOF
22870cat >> $CONFIG_STATUS <<\EOF
22871for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22873 case "$ac_file" in
22874 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22875 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22876 *) ac_file_in="${ac_file}.in" ;;
22877 esac
22878
22879 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22880
22881 # Remove last slash and all that follows it. Not all systems have dirname.
22882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22884 # The file is in a subdirectory.
22885 test ! -d "$ac_dir" && mkdir "$ac_dir"
22886 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22887 # A "../" for each directory in $ac_dir_suffix.
22888 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22889 else
22890 ac_dir_suffix= ac_dots=
22891 fi
22892
22893 case "$ac_given_srcdir" in
22894 .) srcdir=.
22895 if test -z "$ac_dots"; then top_srcdir=.
22896 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22897 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22898 *) # Relative path.
22899 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22900 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22901 esac
22902
22903 case "$ac_given_INSTALL" in
22904 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22905 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22906 esac
22907
22908 echo creating "$ac_file"
22909 rm -f "$ac_file"
22910 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22911 case "$ac_file" in
22912 *Makefile*) ac_comsub="1i\\
22913# $configure_input" ;;
22914 *) ac_comsub= ;;
22915 esac
22916
22917 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22918 sed -e "$ac_comsub
22919s%@configure_input@%$configure_input%g
22920s%@srcdir@%$srcdir%g
22921s%@top_srcdir@%$top_srcdir%g
22922s%@INSTALL@%$INSTALL%g
22923" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22924fi; done
22925rm -f conftest.s*
22926
22927# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22928# NAME is the cpp macro being defined and VALUE is the value it is being given.
22929#
22930# ac_d sets the value in "#define NAME VALUE" lines.
22931ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22932ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22933ac_dC='\3'
22934ac_dD='%g'
22935# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22936ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22937ac_uB='\([ ]\)%\1#\2define\3'
22938ac_uC=' '
22939ac_uD='\4%g'
22940# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22941ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22942ac_eB='$%\1#\2define\3'
22943ac_eC=' '
22944ac_eD='%g'
22945
22946if test "${CONFIG_HEADERS+set}" != set; then
22947EOF
22948cat >> $CONFIG_STATUS <<EOF
22949 CONFIG_HEADERS="setup.h:setup.h.in"
22950EOF
22951cat >> $CONFIG_STATUS <<\EOF
22952fi
22953for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22955 case "$ac_file" in
22956 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22957 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22958 *) ac_file_in="${ac_file}.in" ;;
22959 esac
22960
22961 echo creating $ac_file
22962
22963 rm -f conftest.frag conftest.in conftest.out
22964 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22965 cat $ac_file_inputs > conftest.in
22966
22967EOF
22968
22969# Transform confdefs.h into a sed script conftest.vals that substitutes
22970# the proper values into config.h.in to produce config.h. And first:
22971# Protect against being on the right side of a sed subst in config.status.
22972# Protect against being in an unquoted here document in config.status.
22973rm -f conftest.vals
22974cat > conftest.hdr <<\EOF
22975s/[\\&%]/\\&/g
22976s%[\\$`]%\\&%g
22977s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22978s%ac_d%ac_u%gp
22979s%ac_u%ac_e%gp
22980EOF
22981sed -n -f conftest.hdr confdefs.h > conftest.vals
22982rm -f conftest.hdr
22983
22984# This sed command replaces #undef with comments. This is necessary, for
22985# example, in the case of _POSIX_SOURCE, which is predefined and required
22986# on some systems where configure will not decide to define it.
22987cat >> conftest.vals <<\EOF
22988s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22989EOF
22990
22991# Break up conftest.vals because some shells have a limit on
22992# the size of here documents, and old seds have small limits too.
22993
22994rm -f conftest.tail
22995while :
22996do
22997 ac_lines=`grep -c . conftest.vals`
22998 # grep -c gives empty output for an empty file on some AIX systems.
22999 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23000 # Write a limited-size here document to conftest.frag.
23001 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23002 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23003 echo 'CEOF
23004 sed -f conftest.frag conftest.in > conftest.out
23005 rm -f conftest.in
23006 mv conftest.out conftest.in
23007' >> $CONFIG_STATUS
23008 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23009 rm -f conftest.vals
23010 mv conftest.tail conftest.vals
23011done
23012rm -f conftest.vals
23013
23014cat >> $CONFIG_STATUS <<\EOF
23015 rm -f conftest.frag conftest.h
23016 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23017 cat conftest.in >> conftest.h
23018 rm -f conftest.in
23019 if cmp -s $ac_file conftest.h 2>/dev/null; then
23020 echo "$ac_file is unchanged"
23021 rm -f conftest.h
23022 else
23023 # Remove last slash and all that follows it. Not all systems have dirname.
23024 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23025 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23026 # The file is in a subdirectory.
23027 test ! -d "$ac_dir" && mkdir "$ac_dir"
23028 fi
23029 rm -f $ac_file
23030 mv conftest.h $ac_file
23031 fi
23032fi; done
23033
23034EOF
23035cat >> $CONFIG_STATUS <<EOF
23036
23037 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23038 LN_S="${LN_S}"
23039
23040
23041EOF
23042cat >> $CONFIG_STATUS <<\EOF
23043
23044 if test ! -h wx-config; then
23045 chmod +x wx-config
23046 mv wx-config wx${TOOLCHAIN_NAME}-config
23047 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23048 fi
23049
23050 if test ! -d lib; then
23051 mkdir lib
23052 fi
23053 if test ! -d lib/wx; then
23054 mkdir lib/wx
23055 fi
23056 if test ! -d lib/wx/include; then
23057 mkdir lib/wx/include
23058 fi
23059 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23060 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23061 fi
23062 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23063 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23064 fi
23065 if test -f setup.h; then
23066 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23067 fi
23068
23069exit 0
23070EOF
23071chmod +x $CONFIG_STATUS
23072rm -fr confdefs* $ac_clean_files
23073test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23074
23075if test "$no_recursion" != yes; then
23076
23077 # Remove --cache-file and --srcdir arguments so they do not pile up.
23078 ac_sub_configure_args=
23079 ac_prev=
23080 for ac_arg in $ac_configure_args; do
23081 if test -n "$ac_prev"; then
23082 ac_prev=
23083 continue
23084 fi
23085 case "$ac_arg" in
23086 -cache-file | --cache-file | --cache-fil | --cache-fi \
23087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23088 ac_prev=cache_file ;;
23089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23091 ;;
23092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23093 ac_prev=srcdir ;;
23094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23095 ;;
23096 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23097 esac
23098 done
23099
23100 for ac_config_dir in demos samples utils contrib; do
23101
23102 # Do not complain, so a configure script can configure whichever
23103 # parts of a large source tree are present.
23104 if test ! -d $srcdir/$ac_config_dir; then
23105 continue
23106 fi
23107
23108 echo configuring in $ac_config_dir
23109
23110 case "$srcdir" in
23111 .) ;;
23112 *)
23113 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23114 else
23115 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23116 fi
23117 ;;
23118 esac
23119
23120 ac_popdir=`pwd`
23121 cd $ac_config_dir
23122
23123 # A "../" for each directory in /$ac_config_dir.
23124 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23125
23126 case "$srcdir" in
23127 .) # No --srcdir option. We are building in place.
23128 ac_sub_srcdir=$srcdir ;;
23129 /*) # Absolute path.
23130 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23131 *) # Relative path.
23132 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23133 esac
23134
23135 # Check for guested configure; otherwise get Cygnus style configure.
23136 if test -f $ac_sub_srcdir/configure; then
23137 ac_sub_configure=$ac_sub_srcdir/configure
23138 elif test -f $ac_sub_srcdir/configure.in; then
23139 ac_sub_configure=$ac_configure
23140 else
23141 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23142 ac_sub_configure=
23143 fi
23144
23145 # The recursion is here.
23146 if test -n "$ac_sub_configure"; then
23147
23148 # Make the cache file name correct relative to the subdirectory.
23149 case "$cache_file" in
23150 /*) ac_sub_cache_file=$cache_file ;;
23151 *) # Relative path.
23152 ac_sub_cache_file="$ac_dots$cache_file" ;;
23153 esac
23154 case "$ac_given_INSTALL" in
23155 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23156 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23157 esac
23158
23159 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23160 # The eval makes quoting arguments work.
23161 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23162 then :
23163 else
23164 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23165 fi
23166 fi
23167
23168 cd $ac_popdir
23169 done
23170fi
23171
23172
23173echo
23174echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23175echo ""
23176echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23177
23178echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23179echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23180echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23181
23182echo " What level of wxWindows compatibility should be enabled?"
23183echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23184echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23185echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23186
23187echo " Which libraries should wxWindows use?"
23188echo " jpeg ${wxUSE_LIBJPEG-none}"
23189echo " png ${wxUSE_LIBPNG-none}"
23190echo " regex ${wxUSE_REGEX}"
23191echo " tiff ${wxUSE_LIBTIFF-none}"
23192echo " zlib ${wxUSE_ZLIB}"
23193
23194echo ""
23195