wxSelectionStore fix
[wxWidgets.git] / configure
0 / 23303 (  0%)
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-prologio not available; see contrib"
293ac_help="$ac_help
294 --enable-resources not available; see contrib"
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_CLIPBOARD=no
1484 DEFAULT_wxUSE_TOOLTIPS=no
1485 DEFAULT_wxUSE_DRAG_AND_DROP=no
1486 DEFAULT_wxUSE_DRAGIMAGE=no
1487 DEFAULT_wxUSE_SPLINES=no
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
1493 DEFAULT_wxUSE_RESOURCES=no
1494 DEFAULT_wxUSE_CONSTRAINTS=no
1495 DEFAULT_wxUSE_IPC=no
1496 DEFAULT_wxUSE_HELP=no
1497 DEFAULT_wxUSE_MS_HTML_HELP=no
1498 DEFAULT_wxUSE_WXHTML_HELP=no
1499 DEFAULT_wxUSE_TREELAYOUT=no
1500 DEFAULT_wxUSE_METAFILE=no
1501 DEFAULT_wxUSE_MIMETYPE=no
1502 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1503 DEFAULT_wxUSE_PROTOCOL=no
1504 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FILE=no
1507 DEFAULT_wxUSE_URL=no
1508
1509 DEFAULT_wxUSE_COMMONDLGS=no
1510 DEFAULT_wxUSE_CHOICEDLG=no
1511 DEFAULT_wxUSE_COLOURDLG=no
1512 DEFAULT_wxUSE_DIRDLG=no
1513 DEFAULT_wxUSE_FILEDLG=no
1514 DEFAULT_wxUSE_FINDREPLDLG=no
1515 DEFAULT_wxUSE_FONTDLG=no
1516 DEFAULT_wxUSE_MSGDLG=no
1517 DEFAULT_wxUSE_NUMBERDLG=no
1518 DEFAULT_wxUSE_TEXTDLG=no
1519 DEFAULT_wxUSE_SPLASH=no
1520 DEFAULT_wxUSE_STARTUP_TIPS=no
1521 DEFAULT_wxUSE_PROGRESSDLG=no
1522 DEFAULT_wxUSE_WIZARDDLG=no
1523
1524 DEFAULT_wxUSE_MENUS=no
1525 DEFAULT_wxUSE_MINIFRAME=no
1526 DEFAULT_wxUSE_HTML=no
1527 DEFAULT_wxUSE_FILESYSTEM=no
1528 DEFAULT_wxUSE_FS_INET=no
1529 DEFAULT_wxUSE_FS_ZIP=no
1530 DEFAULT_wxUSE_BUSYINFO=no
1531 DEFAULT_wxUSE_ZIPSTREAM=no
1532 DEFAULT_wxUSE_VALIDATORS=no
1533
1534 DEFAULT_wxUSE_ACCEL=no
1535 DEFAULT_wxUSE_BUTTON=no
1536 DEFAULT_wxUSE_BMPBUTTON=no
1537 DEFAULT_wxUSE_CALCTRL=no
1538 DEFAULT_wxUSE_CARET=no
1539 DEFAULT_wxUSE_CHECKBOX=no
1540 DEFAULT_wxUSE_CHECKLST=no
1541 DEFAULT_wxUSE_CHOICE=no
1542 DEFAULT_wxUSE_COMBOBOX=no
1543 DEFAULT_wxUSE_DISPLAY=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_IMAGLIST=no
1547 DEFAULT_wxUSE_LISTBOX=no
1548 DEFAULT_wxUSE_LISTCTRL=no
1549 DEFAULT_wxUSE_NOTEBOOK=no
1550 DEFAULT_wxUSE_RADIOBOX=no
1551 DEFAULT_wxUSE_RADIOBTN=no
1552 DEFAULT_wxUSE_SASH=no
1553 DEFAULT_wxUSE_SCROLLBAR=no
1554 DEFAULT_wxUSE_SLIDER=no
1555 DEFAULT_wxUSE_SPINBTN=no
1556 DEFAULT_wxUSE_SPINCTRL=no
1557 DEFAULT_wxUSE_SPLITTER=no
1558 DEFAULT_wxUSE_STATBMP=no
1559 DEFAULT_wxUSE_STATBOX=no
1560 DEFAULT_wxUSE_STATLINE=no
1561 DEFAULT_wxUSE_STATTEXT=no
1562 DEFAULT_wxUSE_STATUSBAR=yes
1563 DEFAULT_wxUSE_TABDIALOG=no
1564 DEFAULT_wxUSE_TEXTCTRL=no
1565 DEFAULT_wxUSE_TOGGLEBTN=no
1566 DEFAULT_wxUSE_TOOLBAR=no
1567 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1568 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1569 DEFAULT_wxUSE_TREECTRL=no
1570 DEFAULT_wxUSE_POPUPWIN=no
1571 DEFAULT_wxUSE_TIPWINDOW=no
1572
1573 DEFAULT_wxUSE_UNICODE=no
1574 DEFAULT_wxUSE_UNICODE_MSLU=no
1575 DEFAULT_wxUSE_WCSRTOMBS=no
1576
1577 DEFAULT_wxUSE_PALETTE=no
1578 DEFAULT_wxUSE_IMAGE=no
1579 DEFAULT_wxUSE_GIF=no
1580 DEFAULT_wxUSE_PCX=no
1581 DEFAULT_wxUSE_PNM=no
1582 DEFAULT_wxUSE_IFF=no
1583 DEFAULT_wxUSE_XPM=no
1584 DEFAULT_wxUSE_ICO_CUR=no
1585 DEFAULT_wxUSE_ACCESSIBILITY=no
1586else
1587 DEFAULT_wxUSE_UNIVERSAL=no
1588
1589 DEFAULT_wxUSE_NANOX=no
1590
1591 DEFAULT_wxUSE_THREADS=yes
1592
1593 DEFAULT_wxUSE_SHARED=yes
1594 DEFAULT_wxUSE_SONAME=no
1595 DEFAULT_wxUSE_OPTIMISE=yes
1596 DEFAULT_wxUSE_PROFILE=no
1597 DEFAULT_wxUSE_NO_DEPS=no
1598 DEFAULT_wxUSE_NO_RTTI=no
1599 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1600 DEFAULT_wxUSE_PERMISSIVE=no
1601 DEFAULT_wxUSE_DEBUG_FLAG=no
1602 DEFAULT_wxUSE_DEBUG_INFO=no
1603 DEFAULT_wxUSE_DEBUG_GDB=no
1604 DEFAULT_wxUSE_MEM_TRACING=no
1605 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1606 DEFAULT_wxUSE_DMALLOC=no
1607 DEFAULT_wxUSE_PRECOMP=no
1608 DEFAULT_wxUSE_APPLE_IEEE=yes
1609
1610 DEFAULT_wxUSE_LOG=yes
1611 DEFAULT_wxUSE_LOGWINDOW=yes
1612 DEFAULT_wxUSE_LOGGUI=yes
1613 DEFAULT_wxUSE_LOGDIALOG=yes
1614
1615 DEFAULT_wxUSE_GUI=yes
1616
1617 DEFAULT_wxUSE_REGEX=yes
1618 DEFAULT_wxUSE_ZLIB=yes
1619 DEFAULT_wxUSE_LIBPNG=yes
1620 DEFAULT_wxUSE_LIBJPEG=yes
1621 DEFAULT_wxUSE_LIBTIFF=yes
1622 DEFAULT_wxUSE_ODBC=no
1623 DEFAULT_wxUSE_OPENGL=no
1624
1625 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1626 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1627 DEFAULT_wxUSE_STD_IOSTREAM=no
1628 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1629 DEFAULT_wxUSE_DATETIME=yes
1630 DEFAULT_wxUSE_TIMER=yes
1631 DEFAULT_wxUSE_STOPWATCH=yes
1632 DEFAULT_wxUSE_FILE=yes
1633 DEFAULT_wxUSE_FFILE=yes
1634 DEFAULT_wxUSE_TEXTBUFFER=yes
1635 DEFAULT_wxUSE_TEXTFILE=yes
1636 DEFAULT_wxUSE_WAVE=no
1637 DEFAULT_wxUSE_INTL=yes
1638 DEFAULT_wxUSE_CONFIG=yes
1639 DEFAULT_wxUSE_FONTMAP=yes
1640 DEFAULT_wxUSE_STREAMS=yes
1641 DEFAULT_wxUSE_SOCKETS=yes
1642 DEFAULT_wxUSE_OLE=yes
1643 DEFAULT_wxUSE_DATAOBJ=yes
1644 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1645 DEFAULT_wxUSE_JOYSTICK=yes
1646 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1647 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1648 DEFAULT_wxUSE_LONGLONG=yes
1649 DEFAULT_wxUSE_GEOMETRY=yes
1650
1651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653 DEFAULT_wxUSE_POSTSCRIPT=yes
1654
1655 DEFAULT_wxUSE_CLIPBOARD=yes
1656 DEFAULT_wxUSE_TOOLTIPS=yes
1657 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1658 DEFAULT_wxUSE_DRAGIMAGE=yes
1659 DEFAULT_wxUSE_SPLINES=yes
1660
1661 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1663 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1664
1665 DEFAULT_wxUSE_RESOURCES=no
1666 DEFAULT_wxUSE_CONSTRAINTS=yes
1667 DEFAULT_wxUSE_IPC=yes
1668 DEFAULT_wxUSE_HELP=yes
1669 DEFAULT_wxUSE_MS_HTML_HELP=yes
1670 DEFAULT_wxUSE_WXHTML_HELP=yes
1671 DEFAULT_wxUSE_TREELAYOUT=yes
1672 DEFAULT_wxUSE_METAFILE=yes
1673 DEFAULT_wxUSE_MIMETYPE=yes
1674 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1675 DEFAULT_wxUSE_PROTOCOL=yes
1676 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1678 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1679 DEFAULT_wxUSE_URL=yes
1680
1681 DEFAULT_wxUSE_COMMONDLGS=yes
1682 DEFAULT_wxUSE_CHOICEDLG=yes
1683 DEFAULT_wxUSE_COLOURDLG=yes
1684 DEFAULT_wxUSE_DIRDLG=yes
1685 DEFAULT_wxUSE_FILEDLG=yes
1686 DEFAULT_wxUSE_FINDREPLDLG=yes
1687 DEFAULT_wxUSE_FONTDLG=yes
1688 DEFAULT_wxUSE_MSGDLG=yes
1689 DEFAULT_wxUSE_NUMBERDLG=yes
1690 DEFAULT_wxUSE_TEXTDLG=yes
1691 DEFAULT_wxUSE_SPLASH=yes
1692 DEFAULT_wxUSE_STARTUP_TIPS=yes
1693 DEFAULT_wxUSE_PROGRESSDLG=yes
1694 DEFAULT_wxUSE_WIZARDDLG=yes
1695
1696 DEFAULT_wxUSE_MENUS=yes
1697 DEFAULT_wxUSE_MINIFRAME=yes
1698 DEFAULT_wxUSE_HTML=yes
1699 DEFAULT_wxUSE_FILESYSTEM=yes
1700 DEFAULT_wxUSE_FS_INET=yes
1701 DEFAULT_wxUSE_FS_ZIP=yes
1702 DEFAULT_wxUSE_BUSYINFO=yes
1703 DEFAULT_wxUSE_ZIPSTREAM=yes
1704 DEFAULT_wxUSE_VALIDATORS=yes
1705
1706 DEFAULT_wxUSE_ACCEL=yes
1707 DEFAULT_wxUSE_BUTTON=yes
1708 DEFAULT_wxUSE_BMPBUTTON=yes
1709 DEFAULT_wxUSE_CALCTRL=yes
1710 DEFAULT_wxUSE_CARET=yes
1711 DEFAULT_wxUSE_CHECKBOX=yes
1712 DEFAULT_wxUSE_CHECKLST=yes
1713 DEFAULT_wxUSE_CHOICE=yes
1714 DEFAULT_wxUSE_COMBOBOX=yes
1715 DEFAULT_wxUSE_DISPLAY=no
1716 DEFAULT_wxUSE_GAUGE=yes
1717 DEFAULT_wxUSE_GRID=yes
1718 DEFAULT_wxUSE_IMAGLIST=yes
1719 DEFAULT_wxUSE_LISTBOX=yes
1720 DEFAULT_wxUSE_LISTCTRL=yes
1721 DEFAULT_wxUSE_NOTEBOOK=yes
1722 DEFAULT_wxUSE_RADIOBOX=yes
1723 DEFAULT_wxUSE_RADIOBTN=yes
1724 DEFAULT_wxUSE_SASH=yes
1725 DEFAULT_wxUSE_SCROLLBAR=yes
1726 DEFAULT_wxUSE_SLIDER=yes
1727 DEFAULT_wxUSE_SPINBTN=yes
1728 DEFAULT_wxUSE_SPINCTRL=yes
1729 DEFAULT_wxUSE_SPLITTER=yes
1730 DEFAULT_wxUSE_STATBMP=yes
1731 DEFAULT_wxUSE_STATBOX=yes
1732 DEFAULT_wxUSE_STATLINE=yes
1733 DEFAULT_wxUSE_STATTEXT=yes
1734 DEFAULT_wxUSE_STATUSBAR=yes
1735 DEFAULT_wxUSE_TABDIALOG=no
1736 DEFAULT_wxUSE_TEXTCTRL=yes
1737 DEFAULT_wxUSE_TOGGLEBTN=yes
1738 DEFAULT_wxUSE_TOOLBAR=yes
1739 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1740 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1741 DEFAULT_wxUSE_TREECTRL=yes
1742 DEFAULT_wxUSE_POPUPWIN=yes
1743 DEFAULT_wxUSE_TIPWINDOW=yes
1744
1745 DEFAULT_wxUSE_UNICODE=no
1746 DEFAULT_wxUSE_UNICODE_MSLU=yes
1747 DEFAULT_wxUSE_WCSRTOMBS=no
1748
1749 DEFAULT_wxUSE_PALETTE=yes
1750 DEFAULT_wxUSE_IMAGE=yes
1751 DEFAULT_wxUSE_GIF=yes
1752 DEFAULT_wxUSE_PCX=yes
1753 DEFAULT_wxUSE_IFF=no
1754 DEFAULT_wxUSE_PNM=yes
1755 DEFAULT_wxUSE_XPM=yes
1756 DEFAULT_wxUSE_ICO_CUR=yes
1757 DEFAULT_wxUSE_ACCESSIBILITY=no
1758fi
1759
1760
1761
1762for toolkit in `echo $ALL_TOOLKITS`; do
1763 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1764 if test "x$LINE" != "x" ; then
1765 has_toolkit_in_cache=1
1766 eval "DEFAULT_$LINE"
1767 eval "CACHE_$toolkit=1"
1768 fi
1769done
1770
1771
1772
1773 enablestring=
1774 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1775echo "configure:1776: checking for --${enablestring:-enable}-gui" >&5
1776 no_cache=0
1777 # Check whether --enable-gui or --disable-gui was given.
1778if test "${enable_gui+set}" = set; then
1779 enableval="$enable_gui"
1780
1781 if test "$enableval" = yes; then
1782 ac_cv_use_gui='wxUSE_GUI=yes'
1783 else
1784 ac_cv_use_gui='wxUSE_GUI=no'
1785 fi
1786
1787else
1788
1789 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1790 if test "x$LINE" != x ; then
1791 eval "DEFAULT_$LINE"
1792 else
1793 no_cache=1
1794 fi
1795
1796 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1797
1798fi
1799
1800
1801 eval "$ac_cv_use_gui"
1802 if test "$no_cache" != 1; then
1803 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1804 fi
1805
1806 if test "$wxUSE_GUI" = yes; then
1807 echo "$ac_t""yes" 1>&6
1808 else
1809 echo "$ac_t""no" 1>&6
1810 fi
1811
1812
1813if test "$wxUSE_GUI" = "yes"; then
1814
1815
1816 enablestring=
1817 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1818echo "configure:1819: checking for --${enablestring:-enable}-universal" >&5
1819 no_cache=0
1820 # Check whether --enable-universal or --disable-universal was given.
1821if test "${enable_universal+set}" = set; then
1822 enableval="$enable_universal"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826 else
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828 fi
1829
1830else
1831
1832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1840
1841fi
1842
1843
1844 eval "$ac_cv_use_universal"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_UNIVERSAL" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
1855# Check whether --with-gtk or --without-gtk was given.
1856if test "${with_gtk+set}" = set; then
1857 withval="$with_gtk"
1858 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1859fi
1860
1861# Check whether --with-motif or --without-motif was given.
1862if test "${with_motif+set}" = set; then
1863 withval="$with_motif"
1864 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1865fi
1866
1867# Check whether --with-mac or --without-mac was given.
1868if test "${with_mac+set}" = set; then
1869 withval="$with_mac"
1870 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1871fi
1872
1873# Check whether --with-cocoa or --without-cocoa was given.
1874if test "${with_cocoa+set}" = set; then
1875 withval="$with_cocoa"
1876 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1877fi
1878
1879# Check whether --with-wine or --without-wine was given.
1880if test "${with_wine+set}" = set; then
1881 withval="$with_wine"
1882 wxUSE_WINE="$withval" CACHE_WINE=1
1883fi
1884
1885# Check whether --with-msw or --without-msw was given.
1886if test "${with_msw+set}" = set; then
1887 withval="$with_msw"
1888 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1889fi
1890
1891# Check whether --with-pm or --without-pm was given.
1892if test "${with_pm+set}" = set; then
1893 withval="$with_pm"
1894 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1895fi
1896
1897# Check whether --with-mgl or --without-mgl was given.
1898if test "${with_mgl+set}" = set; then
1899 withval="$with_mgl"
1900 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1901fi
1902
1903# Check whether --with-microwin or --without-microwin was given.
1904if test "${with_microwin+set}" = set; then
1905 withval="$with_microwin"
1906 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1907fi
1908
1909# Check whether --with-x11 or --without-x11 was given.
1910if test "${with_x11+set}" = set; then
1911 withval="$with_x11"
1912 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1913fi
1914
1915
1916 enablestring=
1917 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1918echo "configure:1919: checking for --${enablestring:-enable}-nanox" >&5
1919 no_cache=0
1920 # Check whether --enable-nanox or --disable-nanox was given.
1921if test "${enable_nanox+set}" = set; then
1922 enableval="$enable_nanox"
1923
1924 if test "$enableval" = yes; then
1925 ac_cv_use_nanox='wxUSE_NANOX=yes'
1926 else
1927 ac_cv_use_nanox='wxUSE_NANOX=no'
1928 fi
1929
1930else
1931
1932 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1933 if test "x$LINE" != x ; then
1934 eval "DEFAULT_$LINE"
1935 else
1936 no_cache=1
1937 fi
1938
1939 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1940
1941fi
1942
1943
1944 eval "$ac_cv_use_nanox"
1945 if test "$no_cache" != 1; then
1946 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1947 fi
1948
1949 if test "$wxUSE_NANOX" = yes; then
1950 echo "$ac_t""yes" 1>&6
1951 else
1952 echo "$ac_t""no" 1>&6
1953 fi
1954
1955
1956
1957 enablestring=
1958 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1959echo "configure:1960: checking for --${enablestring:-enable}-gtk2" >&5
1960 no_cache=0
1961 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1962if test "${enable_gtk2+set}" = set; then
1963 enableval="$enable_gtk2"
1964
1965 if test "$enableval" = yes; then
1966 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1967 else
1968 ac_cv_use_gtk2='wxUSE_GTK2=no'
1969 fi
1970
1971else
1972
1973 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1974 if test "x$LINE" != x ; then
1975 eval "DEFAULT_$LINE"
1976 else
1977 no_cache=1
1978 fi
1979
1980 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1981
1982fi
1983
1984
1985 eval "$ac_cv_use_gtk2"
1986 if test "$no_cache" != 1; then
1987 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1988 fi
1989
1990 if test "$wxUSE_GTK2" = yes; then
1991 echo "$ac_t""yes" 1>&6
1992 else
1993 echo "$ac_t""no" 1>&6
1994 fi
1995
1996
1997
1998 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1999echo "configure:2000: checking for --with-libpng" >&5
2000 no_cache=0
2001 # Check whether --with-libpng or --without-libpng was given.
2002if test "${with_libpng+set}" = set; then
2003 withval="$with_libpng"
2004
2005 if test "$withval" = yes; then
2006 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2007 elif test "$withval" = no; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2009 elif test "$withval" = sys; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2011 elif test "$withval" = builtin; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2013 else
2014 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2015 fi
2016
2017else
2018
2019 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2020 if test "x$LINE" != x ; then
2021 eval "DEFAULT_$LINE"
2022 else
2023 no_cache=1
2024 fi
2025
2026 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2027
2028fi
2029
2030
2031 eval "$ac_cv_use_libpng"
2032 if test "$no_cache" != 1; then
2033 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2034 fi
2035
2036 if test "$wxUSE_LIBPNG" = yes; then
2037 echo "$ac_t""yes" 1>&6
2038 elif test "$wxUSE_LIBPNG" = no; then
2039 echo "$ac_t""no" 1>&6
2040 elif test "$wxUSE_LIBPNG" = sys; then
2041 echo "$ac_t""system version" 1>&6
2042 elif test "$wxUSE_LIBPNG" = builtin; then
2043 echo "$ac_t""builtin version" 1>&6
2044 else
2045 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2046 fi
2047
2048
2049 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2050echo "configure:2051: checking for --with-libjpeg" >&5
2051 no_cache=0
2052 # Check whether --with-libjpeg or --without-libjpeg was given.
2053if test "${with_libjpeg+set}" = set; then
2054 withval="$with_libjpeg"
2055
2056 if test "$withval" = yes; then
2057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2058 elif test "$withval" = no; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2060 elif test "$withval" = sys; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2062 elif test "$withval" = builtin; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2064 else
2065 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2066 fi
2067
2068else
2069
2070 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2078
2079fi
2080
2081
2082 eval "$ac_cv_use_libjpeg"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_LIBJPEG" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 elif test "$wxUSE_LIBJPEG" = no; then
2090 echo "$ac_t""no" 1>&6
2091 elif test "$wxUSE_LIBJPEG" = sys; then
2092 echo "$ac_t""system version" 1>&6
2093 elif test "$wxUSE_LIBJPEG" = builtin; then
2094 echo "$ac_t""builtin version" 1>&6
2095 else
2096 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2097 fi
2098
2099
2100 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2101echo "configure:2102: checking for --with-libtiff" >&5
2102 no_cache=0
2103 # Check whether --with-libtiff or --without-libtiff was given.
2104if test "${with_libtiff+set}" = set; then
2105 withval="$with_libtiff"
2106
2107 if test "$withval" = yes; then
2108 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2109 elif test "$withval" = no; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2111 elif test "$withval" = sys; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2113 elif test "$withval" = builtin; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2115 else
2116 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2117 fi
2118
2119else
2120
2121 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2122 if test "x$LINE" != x ; then
2123 eval "DEFAULT_$LINE"
2124 else
2125 no_cache=1
2126 fi
2127
2128 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2129
2130fi
2131
2132
2133 eval "$ac_cv_use_libtiff"
2134 if test "$no_cache" != 1; then
2135 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2136 fi
2137
2138 if test "$wxUSE_LIBTIFF" = yes; then
2139 echo "$ac_t""yes" 1>&6
2140 elif test "$wxUSE_LIBTIFF" = no; then
2141 echo "$ac_t""no" 1>&6
2142 elif test "$wxUSE_LIBTIFF" = sys; then
2143 echo "$ac_t""system version" 1>&6
2144 elif test "$wxUSE_LIBTIFF" = builtin; then
2145 echo "$ac_t""builtin version" 1>&6
2146 else
2147 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2148 fi
2149
2150
2151 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2152echo "configure:2153: checking for --with-opengl" >&5
2153 no_cache=0
2154 # Check whether --with-opengl or --without-opengl was given.
2155if test "${with_opengl+set}" = set; then
2156 withval="$with_opengl"
2157
2158 if test "$withval" = yes; then
2159 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2160 else
2161 ac_cv_use_opengl='wxUSE_OPENGL=no'
2162 fi
2163
2164else
2165
2166 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2167 if test "x$LINE" != x ; then
2168 eval "DEFAULT_$LINE"
2169 else
2170 no_cache=1
2171 fi
2172
2173 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2174
2175fi
2176
2177
2178 eval "$ac_cv_use_opengl"
2179 if test "$no_cache" != 1; then
2180 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2181 fi
2182
2183 if test "$wxUSE_OPENGL" = yes; then
2184 echo "$ac_t""yes" 1>&6
2185 else
2186 echo "$ac_t""no" 1>&6
2187 fi
2188
2189
2190fi
2191
2192
2193 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2194echo "configure:2195: checking for --with-dmalloc" >&5
2195 no_cache=0
2196 # Check whether --with-dmalloc or --without-dmalloc was given.
2197if test "${with_dmalloc+set}" = set; then
2198 withval="$with_dmalloc"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2202 else
2203 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2204 fi
2205
2206else
2207
2208 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2209 if test "x$LINE" != x ; then
2210 eval "DEFAULT_$LINE"
2211 else
2212 no_cache=1
2213 fi
2214
2215 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2216
2217fi
2218
2219
2220 eval "$ac_cv_use_dmalloc"
2221 if test "$no_cache" != 1; then
2222 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2223 fi
2224
2225 if test "$wxUSE_DMALLOC" = yes; then
2226 echo "$ac_t""yes" 1>&6
2227 else
2228 echo "$ac_t""no" 1>&6
2229 fi
2230
2231
2232 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2233echo "configure:2234: checking for --with-regex" >&5
2234 no_cache=0
2235 # Check whether --with-regex or --without-regex was given.
2236if test "${with_regex+set}" = set; then
2237 withval="$with_regex"
2238
2239 if test "$withval" = yes; then
2240 ac_cv_use_regex='wxUSE_REGEX=yes'
2241 elif test "$withval" = no; then
2242 ac_cv_use_regex='wxUSE_REGEX=no'
2243 elif test "$withval" = sys; then
2244 ac_cv_use_regex='wxUSE_REGEX=sys'
2245 elif test "$withval" = builtin; then
2246 ac_cv_use_regex='wxUSE_REGEX=builtin'
2247 else
2248 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2249 fi
2250
2251else
2252
2253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2254 if test "x$LINE" != x ; then
2255 eval "DEFAULT_$LINE"
2256 else
2257 no_cache=1
2258 fi
2259
2260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2261
2262fi
2263
2264
2265 eval "$ac_cv_use_regex"
2266 if test "$no_cache" != 1; then
2267 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2268 fi
2269
2270 if test "$wxUSE_REGEX" = yes; then
2271 echo "$ac_t""yes" 1>&6
2272 elif test "$wxUSE_REGEX" = no; then
2273 echo "$ac_t""no" 1>&6
2274 elif test "$wxUSE_REGEX" = sys; then
2275 echo "$ac_t""system version" 1>&6
2276 elif test "$wxUSE_REGEX" = builtin; then
2277 echo "$ac_t""builtin version" 1>&6
2278 else
2279 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2280 fi
2281
2282
2283 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2284echo "configure:2285: checking for --with-zlib" >&5
2285 no_cache=0
2286 # Check whether --with-zlib or --without-zlib was given.
2287if test "${with_zlib+set}" = set; then
2288 withval="$with_zlib"
2289
2290 if test "$withval" = yes; then
2291 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2292 elif test "$withval" = no; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=no'
2294 elif test "$withval" = sys; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2296 elif test "$withval" = builtin; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2298 else
2299 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2300 fi
2301
2302else
2303
2304 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2305 if test "x$LINE" != x ; then
2306 eval "DEFAULT_$LINE"
2307 else
2308 no_cache=1
2309 fi
2310
2311 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2312
2313fi
2314
2315
2316 eval "$ac_cv_use_zlib"
2317 if test "$no_cache" != 1; then
2318 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2319 fi
2320
2321 if test "$wxUSE_ZLIB" = yes; then
2322 echo "$ac_t""yes" 1>&6
2323 elif test "$wxUSE_ZLIB" = no; then
2324 echo "$ac_t""no" 1>&6
2325 elif test "$wxUSE_ZLIB" = sys; then
2326 echo "$ac_t""system version" 1>&6
2327 elif test "$wxUSE_ZLIB" = builtin; then
2328 echo "$ac_t""builtin version" 1>&6
2329 else
2330 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2331 fi
2332
2333
2334 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2335echo "configure:2336: checking for --with-odbc" >&5
2336 no_cache=0
2337 # Check whether --with-odbc or --without-odbc was given.
2338if test "${with_odbc+set}" = set; then
2339 withval="$with_odbc"
2340
2341 if test "$withval" = yes; then
2342 ac_cv_use_odbc='wxUSE_ODBC=yes'
2343 elif test "$withval" = no; then
2344 ac_cv_use_odbc='wxUSE_ODBC=no'
2345 elif test "$withval" = sys; then
2346 ac_cv_use_odbc='wxUSE_ODBC=sys'
2347 elif test "$withval" = builtin; then
2348 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2349 else
2350 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2351 fi
2352
2353else
2354
2355 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2363
2364fi
2365
2366
2367 eval "$ac_cv_use_odbc"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_ODBC" = yes; then
2373 echo "$ac_t""yes" 1>&6
2374 elif test "$wxUSE_ODBC" = no; then
2375 echo "$ac_t""no" 1>&6
2376 elif test "$wxUSE_ODBC" = sys; then
2377 echo "$ac_t""system version" 1>&6
2378 elif test "$wxUSE_ODBC" = builtin; then
2379 echo "$ac_t""builtin version" 1>&6
2380 else
2381 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2382 fi
2383
2384
2385
2386
2387 enablestring=
2388 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2389echo "configure:2390: checking for --${enablestring:-enable}-shared" >&5
2390 no_cache=0
2391 # Check whether --enable-shared or --disable-shared was given.
2392if test "${enable_shared+set}" = set; then
2393 enableval="$enable_shared"
2394
2395 if test "$enableval" = yes; then
2396 ac_cv_use_shared='wxUSE_SHARED=yes'
2397 else
2398 ac_cv_use_shared='wxUSE_SHARED=no'
2399 fi
2400
2401else
2402
2403 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2404 if test "x$LINE" != x ; then
2405 eval "DEFAULT_$LINE"
2406 else
2407 no_cache=1
2408 fi
2409
2410 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2411
2412fi
2413
2414
2415 eval "$ac_cv_use_shared"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_SHARED" = yes; then
2421 echo "$ac_t""yes" 1>&6
2422 else
2423 echo "$ac_t""no" 1>&6
2424 fi
2425
2426
2427 enablestring=
2428 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2429echo "configure:2430: checking for --${enablestring:-enable}-soname" >&5
2430 no_cache=0
2431 # Check whether --enable-soname or --disable-soname was given.
2432if test "${enable_soname+set}" = set; then
2433 enableval="$enable_soname"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_soname='wxUSE_SONAME=yes'
2437 else
2438 ac_cv_use_soname='wxUSE_SONAME=no'
2439 fi
2440
2441else
2442
2443 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2451
2452fi
2453
2454
2455 eval "$ac_cv_use_soname"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_SONAME" = yes; then
2461 echo "$ac_t""yes" 1>&6
2462 else
2463 echo "$ac_t""no" 1>&6
2464 fi
2465
2466
2467 enablestring=
2468 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2469echo "configure:2470: checking for --${enablestring:-enable}-optimise" >&5
2470 no_cache=0
2471 # Check whether --enable-optimise or --disable-optimise was given.
2472if test "${enable_optimise+set}" = set; then
2473 enableval="$enable_optimise"
2474
2475 if test "$enableval" = yes; then
2476 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2477 else
2478 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2479 fi
2480
2481else
2482
2483 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2484 if test "x$LINE" != x ; then
2485 eval "DEFAULT_$LINE"
2486 else
2487 no_cache=1
2488 fi
2489
2490 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2491
2492fi
2493
2494
2495 eval "$ac_cv_use_optimise"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_OPTIMISE" = yes; then
2501 echo "$ac_t""yes" 1>&6
2502 else
2503 echo "$ac_t""no" 1>&6
2504 fi
2505
2506
2507 enablestring=
2508 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2509echo "configure:2510: checking for --${enablestring:-enable}-debug" >&5
2510 no_cache=0
2511 # Check whether --enable-debug or --disable-debug was given.
2512if test "${enable_debug+set}" = set; then
2513 enableval="$enable_debug"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_debug='wxUSE_DEBUG=yes'
2517 else
2518 ac_cv_use_debug='wxUSE_DEBUG=no'
2519 fi
2520
2521else
2522
2523 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2531
2532fi
2533
2534
2535 eval "$ac_cv_use_debug"
2536 if test "$no_cache" != 1; then
2537 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2538 fi
2539
2540 if test "$wxUSE_DEBUG" = yes; then
2541 echo "$ac_t""yes" 1>&6
2542 else
2543 echo "$ac_t""no" 1>&6
2544 fi
2545
2546
2547
2548 enablestring=
2549 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2550echo "configure:2551: checking for --${enablestring:-enable}-precomp" >&5
2551 no_cache=0
2552 # Check whether --enable-precomp or --disable-precomp was given.
2553if test "${enable_precomp+set}" = set; then
2554 enableval="$enable_precomp"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2558 else
2559 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2572
2573fi
2574
2575
2576 eval "$ac_cv_use_precomp"
2577 if test "$no_cache" != 1; then
2578 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2579 fi
2580
2581 if test "$wxUSE_PRECOMP" = yes; then
2582 echo "$ac_t""yes" 1>&6
2583 else
2584 echo "$ac_t""no" 1>&6
2585 fi
2586
2587
2588if test "$wxUSE_DEBUG" = "yes"; then
2589 DEFAULT_wxUSE_DEBUG_FLAG=yes
2590 DEFAULT_wxUSE_DEBUG_INFO=yes
2591elif test "$wxUSE_DEBUG" = "no"; then
2592 DEFAULT_wxUSE_DEBUG_FLAG=no
2593 DEFAULT_wxUSE_DEBUG_INFO=no
2594fi
2595
2596
2597 enablestring=
2598 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2599echo "configure:2600: checking for --${enablestring:-enable}-debug_flag" >&5
2600 no_cache=0
2601 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2602if test "${enable_debug_flag+set}" = set; then
2603 enableval="$enable_debug_flag"
2604
2605 if test "$enableval" = yes; then
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2607 else
2608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2609 fi
2610
2611else
2612
2613 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2614 if test "x$LINE" != x ; then
2615 eval "DEFAULT_$LINE"
2616 else
2617 no_cache=1
2618 fi
2619
2620 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2621
2622fi
2623
2624
2625 eval "$ac_cv_use_debug_flag"
2626 if test "$no_cache" != 1; then
2627 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2628 fi
2629
2630 if test "$wxUSE_DEBUG_FLAG" = yes; then
2631 echo "$ac_t""yes" 1>&6
2632 else
2633 echo "$ac_t""no" 1>&6
2634 fi
2635
2636
2637 enablestring=
2638 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2639echo "configure:2640: checking for --${enablestring:-enable}-debug_info" >&5
2640 no_cache=0
2641 # Check whether --enable-debug_info or --disable-debug_info was given.
2642if test "${enable_debug_info+set}" = set; then
2643 enableval="$enable_debug_info"
2644
2645 if test "$enableval" = yes; then
2646 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2647 else
2648 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2649 fi
2650
2651else
2652
2653 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
2660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2661
2662fi
2663
2664
2665 eval "$ac_cv_use_debug_info"
2666 if test "$no_cache" != 1; then
2667 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2668 fi
2669
2670 if test "$wxUSE_DEBUG_INFO" = yes; then
2671 echo "$ac_t""yes" 1>&6
2672 else
2673 echo "$ac_t""no" 1>&6
2674 fi
2675
2676
2677 enablestring=
2678 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2679echo "configure:2680: checking for --${enablestring:-enable}-debug_gdb" >&5
2680 no_cache=0
2681 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2682if test "${enable_debug_gdb+set}" = set; then
2683 enableval="$enable_debug_gdb"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2687 else
2688 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2689 fi
2690
2691else
2692
2693 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2701
2702fi
2703
2704
2705 eval "$ac_cv_use_debug_gdb"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_DEBUG_GDB" = yes; then
2711 echo "$ac_t""yes" 1>&6
2712 else
2713 echo "$ac_t""no" 1>&6
2714 fi
2715
2716
2717 enablestring=
2718 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2719echo "configure:2720: checking for --${enablestring:-enable}-debug_cntxt" >&5
2720 no_cache=0
2721 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2722if test "${enable_debug_cntxt+set}" = set; then
2723 enableval="$enable_debug_cntxt"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2727 else
2728 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2729 fi
2730
2731else
2732
2733 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2741
2742fi
2743
2744
2745 eval "$ac_cv_use_debug_cntxt"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2751 echo "$ac_t""yes" 1>&6
2752 else
2753 echo "$ac_t""no" 1>&6
2754 fi
2755
2756
2757 enablestring=
2758 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2759echo "configure:2760: checking for --${enablestring:-enable}-mem_tracing" >&5
2760 no_cache=0
2761 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2762if test "${enable_mem_tracing+set}" = set; then
2763 enableval="$enable_mem_tracing"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2767 else
2768 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2781
2782fi
2783
2784
2785 eval "$ac_cv_use_mem_tracing"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_MEM_TRACING" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797 enablestring=
2798 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2799echo "configure:2800: checking for --${enablestring:-enable}-profile" >&5
2800 no_cache=0
2801 # Check whether --enable-profile or --disable-profile was given.
2802if test "${enable_profile+set}" = set; then
2803 enableval="$enable_profile"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_profile='wxUSE_PROFILE=yes'
2807 else
2808 ac_cv_use_profile='wxUSE_PROFILE=no'
2809 fi
2810
2811else
2812
2813 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2821
2822fi
2823
2824
2825 eval "$ac_cv_use_profile"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_PROFILE" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837 enablestring=
2838 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2839echo "configure:2840: checking for --${enablestring:-enable}-no_rtti" >&5
2840 no_cache=0
2841 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2842if test "${enable_no_rtti+set}" = set; then
2843 enableval="$enable_no_rtti"
2844
2845 if test "$enableval" = yes; then
2846 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2847 else
2848 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2849 fi
2850
2851else
2852
2853 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2861
2862fi
2863
2864
2865 eval "$ac_cv_use_no_rtti"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_NO_RTTI" = yes; then
2871 echo "$ac_t""yes" 1>&6
2872 else
2873 echo "$ac_t""no" 1>&6
2874 fi
2875
2876
2877 enablestring=
2878 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2879echo "configure:2880: checking for --${enablestring:-enable}-no_exceptions" >&5
2880 no_cache=0
2881 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2882if test "${enable_no_exceptions+set}" = set; then
2883 enableval="$enable_no_exceptions"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2887 else
2888 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2889 fi
2890
2891else
2892
2893 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2901
2902fi
2903
2904
2905 eval "$ac_cv_use_no_exceptions"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 enablestring=
2918 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2919echo "configure:2920: checking for --${enablestring:-enable}-permissive" >&5
2920 no_cache=0
2921 # Check whether --enable-permissive or --disable-permissive was given.
2922if test "${enable_permissive+set}" = set; then
2923 enableval="$enable_permissive"
2924
2925 if test "$enableval" = yes; then
2926 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2927 else
2928 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2929 fi
2930
2931else
2932
2933 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2941
2942fi
2943
2944
2945 eval "$ac_cv_use_permissive"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$wxUSE_PERMISSIVE" = yes; then
2951 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2954 fi
2955
2956
2957 enablestring=
2958 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2959echo "configure:2960: checking for --${enablestring:-enable}-no_deps" >&5
2960 no_cache=0
2961 # Check whether --enable-no_deps or --disable-no_deps was given.
2962if test "${enable_no_deps+set}" = set; then
2963 enableval="$enable_no_deps"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2967 else
2968 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2969 fi
2970
2971else
2972
2973 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2981
2982fi
2983
2984
2985 eval "$ac_cv_use_no_deps"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_NO_DEPS" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997
2998 enablestring=
2999 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
3000echo "configure:3001: checking for --${enablestring:-enable}-compat20" >&5
3001 no_cache=0
3002 # Check whether --enable-compat20 or --disable-compat20 was given.
3003if test "${enable_compat20+set}" = set; then
3004 enableval="$enable_compat20"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3008 else
3009 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3022
3023fi
3024
3025
3026 eval "$ac_cv_use_compat20"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
3038 enablestring=
3039 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3040echo "configure:3041: checking for --${enablestring:-enable}-compat22" >&5
3041 no_cache=0
3042 # Check whether --enable-compat22 or --disable-compat22 was given.
3043if test "${enable_compat22+set}" = set; then
3044 enableval="$enable_compat22"
3045
3046 if test "$enableval" = yes; then
3047 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3048 else
3049 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3062
3063fi
3064
3065
3066 eval "$ac_cv_use_compat22"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3072 echo "$ac_t""yes" 1>&6
3073 else
3074 echo "$ac_t""no" 1>&6
3075 fi
3076
3077
3078 enablestring=disable
3079 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3080echo "configure:3081: checking for --${enablestring:-enable}-compat24" >&5
3081 no_cache=0
3082 # Check whether --enable-compat24 or --disable-compat24 was given.
3083if test "${enable_compat24+set}" = set; then
3084 enableval="$enable_compat24"
3085
3086 if test "$enableval" = yes; then
3087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3088 else
3089 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3090 fi
3091
3092else
3093
3094 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3102
3103fi
3104
3105
3106 eval "$ac_cv_use_compat24"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3112 echo "$ac_t""yes" 1>&6
3113 else
3114 echo "$ac_t""no" 1>&6
3115 fi
3116
3117
3118# Check whether --enable-rpath or --disable-rpath was given.
3119if test "${enable_rpath+set}" = set; then
3120 enableval="$enable_rpath"
3121 wxRPATH_DIR="$enableval"
3122fi
3123
3124
3125if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3126 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3127fi
3128
3129
3130
3131
3132 enablestring=
3133 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3134echo "configure:3135: checking for --${enablestring:-enable}-intl" >&5
3135 no_cache=0
3136 # Check whether --enable-intl or --disable-intl was given.
3137if test "${enable_intl+set}" = set; then
3138 enableval="$enable_intl"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_intl='wxUSE_INTL=yes'
3142 else
3143 ac_cv_use_intl='wxUSE_INTL=no'
3144 fi
3145
3146else
3147
3148 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3156
3157fi
3158
3159
3160 eval "$ac_cv_use_intl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_INTL" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 enablestring=
3173 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3174echo "configure:3175: checking for --${enablestring:-enable}-config" >&5
3175 no_cache=0
3176 # Check whether --enable-config or --disable-config was given.
3177if test "${enable_config+set}" = set; then
3178 enableval="$enable_config"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_config='wxUSE_CONFIG=yes'
3182 else
3183 ac_cv_use_config='wxUSE_CONFIG=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3196
3197fi
3198
3199
3200 eval "$ac_cv_use_config"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_CONFIG" = yes; then
3206 echo "$ac_t""yes" 1>&6
3207 else
3208 echo "$ac_t""no" 1>&6
3209 fi
3210
3211
3212
3213 enablestring=
3214 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3215echo "configure:3216: checking for --${enablestring:-enable}-protocols" >&5
3216 no_cache=0
3217 # Check whether --enable-protocols or --disable-protocols was given.
3218if test "${enable_protocols+set}" = set; then
3219 enableval="$enable_protocols"
3220
3221 if test "$enableval" = yes; then
3222 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3223 else
3224 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3237
3238fi
3239
3240
3241 eval "$ac_cv_use_protocols"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_PROTOCOL" = yes; then
3247 echo "$ac_t""yes" 1>&6
3248 else
3249 echo "$ac_t""no" 1>&6
3250 fi
3251
3252
3253 enablestring=
3254 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3255echo "configure:3256: checking for --${enablestring:-enable}-ftp" >&5
3256 no_cache=0
3257 # Check whether --enable-ftp or --disable-ftp was given.
3258if test "${enable_ftp+set}" = set; then
3259 enableval="$enable_ftp"
3260
3261 if test "$enableval" = yes; then
3262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3263 else
3264 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3265 fi
3266
3267else
3268
3269 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3277
3278fi
3279
3280
3281 eval "$ac_cv_use_ftp"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3287 echo "$ac_t""yes" 1>&6
3288 else
3289 echo "$ac_t""no" 1>&6
3290 fi
3291
3292
3293 enablestring=
3294 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3295echo "configure:3296: checking for --${enablestring:-enable}-http" >&5
3296 no_cache=0
3297 # Check whether --enable-http or --disable-http was given.
3298if test "${enable_http+set}" = set; then
3299 enableval="$enable_http"
3300
3301 if test "$enableval" = yes; then
3302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3303 else
3304 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3305 fi
3306
3307else
3308
3309 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3310 if test "x$LINE" != x ; then
3311 eval "DEFAULT_$LINE"
3312 else
3313 no_cache=1
3314 fi
3315
3316 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3317
3318fi
3319
3320
3321 eval "$ac_cv_use_http"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3327 echo "$ac_t""yes" 1>&6
3328 else
3329 echo "$ac_t""no" 1>&6
3330 fi
3331
3332
3333 enablestring=
3334 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3335echo "configure:3336: checking for --${enablestring:-enable}-fileproto" >&5
3336 no_cache=0
3337 # Check whether --enable-fileproto or --disable-fileproto was given.
3338if test "${enable_fileproto+set}" = set; then
3339 enableval="$enable_fileproto"
3340
3341 if test "$enableval" = yes; then
3342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3343 else
3344 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3345 fi
3346
3347else
3348
3349 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3350 if test "x$LINE" != x ; then
3351 eval "DEFAULT_$LINE"
3352 else
3353 no_cache=1
3354 fi
3355
3356 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3357
3358fi
3359
3360
3361 eval "$ac_cv_use_fileproto"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3367 echo "$ac_t""yes" 1>&6
3368 else
3369 echo "$ac_t""no" 1>&6
3370 fi
3371
3372
3373 enablestring=
3374 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3375echo "configure:3376: checking for --${enablestring:-enable}-sockets" >&5
3376 no_cache=0
3377 # Check whether --enable-sockets or --disable-sockets was given.
3378if test "${enable_sockets+set}" = set; then
3379 enableval="$enable_sockets"
3380
3381 if test "$enableval" = yes; then
3382 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3383 else
3384 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3385 fi
3386
3387else
3388
3389 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3390 if test "x$LINE" != x ; then
3391 eval "DEFAULT_$LINE"
3392 else
3393 no_cache=1
3394 fi
3395
3396 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3397
3398fi
3399
3400
3401 eval "$ac_cv_use_sockets"
3402 if test "$no_cache" != 1; then
3403 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3404 fi
3405
3406 if test "$wxUSE_SOCKETS" = yes; then
3407 echo "$ac_t""yes" 1>&6
3408 else
3409 echo "$ac_t""no" 1>&6
3410 fi
3411
3412
3413 enablestring=
3414 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3415echo "configure:3416: checking for --${enablestring:-enable}-ole" >&5
3416 no_cache=0
3417 # Check whether --enable-ole or --disable-ole was given.
3418if test "${enable_ole+set}" = set; then
3419 enableval="$enable_ole"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_ole='wxUSE_OLE=yes'
3423 else
3424 ac_cv_use_ole='wxUSE_OLE=no'
3425 fi
3426
3427else
3428
3429 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3437
3438fi
3439
3440
3441 eval "$ac_cv_use_ole"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_OLE" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
3453 enablestring=
3454 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3455echo "configure:3456: checking for --${enablestring:-enable}-dataobj" >&5
3456 no_cache=0
3457 # Check whether --enable-dataobj or --disable-dataobj was given.
3458if test "${enable_dataobj+set}" = set; then
3459 enableval="$enable_dataobj"
3460
3461 if test "$enableval" = yes; then
3462 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3463 else
3464 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3465 fi
3466
3467else
3468
3469 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3470 if test "x$LINE" != x ; then
3471 eval "DEFAULT_$LINE"
3472 else
3473 no_cache=1
3474 fi
3475
3476 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3477
3478fi
3479
3480
3481 eval "$ac_cv_use_dataobj"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_DATAOBJ" = yes; then
3487 echo "$ac_t""yes" 1>&6
3488 else
3489 echo "$ac_t""no" 1>&6
3490 fi
3491
3492
3493
3494 enablestring=
3495 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3496echo "configure:3497: checking for --${enablestring:-enable}-ipc" >&5
3497 no_cache=0
3498 # Check whether --enable-ipc or --disable-ipc was given.
3499if test "${enable_ipc+set}" = set; then
3500 enableval="$enable_ipc"
3501
3502 if test "$enableval" = yes; then
3503 ac_cv_use_ipc='wxUSE_IPC=yes'
3504 else
3505 ac_cv_use_ipc='wxUSE_IPC=no'
3506 fi
3507
3508else
3509
3510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3511 if test "x$LINE" != x ; then
3512 eval "DEFAULT_$LINE"
3513 else
3514 no_cache=1
3515 fi
3516
3517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3518
3519fi
3520
3521
3522 eval "$ac_cv_use_ipc"
3523 if test "$no_cache" != 1; then
3524 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3525 fi
3526
3527 if test "$wxUSE_IPC" = yes; then
3528 echo "$ac_t""yes" 1>&6
3529 else
3530 echo "$ac_t""no" 1>&6
3531 fi
3532
3533
3534
3535 enablestring=
3536 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3537echo "configure:3538: checking for --${enablestring:-enable}-cmdline" >&5
3538 no_cache=0
3539 # Check whether --enable-cmdline or --disable-cmdline was given.
3540if test "${enable_cmdline+set}" = set; then
3541 enableval="$enable_cmdline"
3542
3543 if test "$enableval" = yes; then
3544 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3545 else
3546 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3547 fi
3548
3549else
3550
3551 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3559
3560fi
3561
3562
3563 eval "$ac_cv_use_cmdline"
3564 if test "$no_cache" != 1; then
3565 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3566 fi
3567
3568 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3569 echo "$ac_t""yes" 1>&6
3570 else
3571 echo "$ac_t""no" 1>&6
3572 fi
3573
3574
3575 enablestring=
3576 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3577echo "configure:3578: checking for --${enablestring:-enable}-datetime" >&5
3578 no_cache=0
3579 # Check whether --enable-datetime or --disable-datetime was given.
3580if test "${enable_datetime+set}" = set; then
3581 enableval="$enable_datetime"
3582
3583 if test "$enableval" = yes; then
3584 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3585 else
3586 ac_cv_use_datetime='wxUSE_DATETIME=no'
3587 fi
3588
3589else
3590
3591 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3599
3600fi
3601
3602
3603 eval "$ac_cv_use_datetime"
3604 if test "$no_cache" != 1; then
3605 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3606 fi
3607
3608 if test "$wxUSE_DATETIME" = yes; then
3609 echo "$ac_t""yes" 1>&6
3610 else
3611 echo "$ac_t""no" 1>&6
3612 fi
3613
3614
3615 enablestring=
3616 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3617echo "configure:3618: checking for --${enablestring:-enable}-stopwatch" >&5
3618 no_cache=0
3619 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3620if test "${enable_stopwatch+set}" = set; then
3621 enableval="$enable_stopwatch"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3625 else
3626 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3627 fi
3628
3629else
3630
3631 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3639
3640fi
3641
3642
3643 eval "$ac_cv_use_stopwatch"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_STOPWATCH" = yes; then
3649 echo "$ac_t""yes" 1>&6
3650 else
3651 echo "$ac_t""no" 1>&6
3652 fi
3653
3654
3655 enablestring=
3656 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3657echo "configure:3658: checking for --${enablestring:-enable}-dialupman" >&5
3658 no_cache=0
3659 # Check whether --enable-dialupman or --disable-dialupman was given.
3660if test "${enable_dialupman+set}" = set; then
3661 enableval="$enable_dialupman"
3662
3663 if test "$enableval" = yes; then
3664 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3665 else
3666 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3667 fi
3668
3669else
3670
3671 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3672 if test "x$LINE" != x ; then
3673 eval "DEFAULT_$LINE"
3674 else
3675 no_cache=1
3676 fi
3677
3678 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3679
3680fi
3681
3682
3683 eval "$ac_cv_use_dialupman"
3684 if test "$no_cache" != 1; then
3685 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3686 fi
3687
3688 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3689 echo "$ac_t""yes" 1>&6
3690 else
3691 echo "$ac_t""no" 1>&6
3692 fi
3693
3694
3695 enablestring=
3696 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3697echo "configure:3698: checking for --${enablestring:-enable}-apple_ieee" >&5
3698 no_cache=0
3699 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3700if test "${enable_apple_ieee+set}" = set; then
3701 enableval="$enable_apple_ieee"
3702
3703 if test "$enableval" = yes; then
3704 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3705 else
3706 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3707 fi
3708
3709else
3710
3711 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3712 if test "x$LINE" != x ; then
3713 eval "DEFAULT_$LINE"
3714 else
3715 no_cache=1
3716 fi
3717
3718 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3719
3720fi
3721
3722
3723 eval "$ac_cv_use_apple_ieee"
3724 if test "$no_cache" != 1; then
3725 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3726 fi
3727
3728 if test "$wxUSE_APPLE_IEEE" = yes; then
3729 echo "$ac_t""yes" 1>&6
3730 else
3731 echo "$ac_t""no" 1>&6
3732 fi
3733
3734
3735 enablestring=
3736 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3737echo "configure:3738: checking for --${enablestring:-enable}-timer" >&5
3738 no_cache=0
3739 # Check whether --enable-timer or --disable-timer was given.
3740if test "${enable_timer+set}" = set; then
3741 enableval="$enable_timer"
3742
3743 if test "$enableval" = yes; then
3744 ac_cv_use_timer='wxUSE_TIMER=yes'
3745 else
3746 ac_cv_use_timer='wxUSE_TIMER=no'
3747 fi
3748
3749else
3750
3751 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
3758 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3759
3760fi
3761
3762
3763 eval "$ac_cv_use_timer"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_TIMER" = yes; then
3769 echo "$ac_t""yes" 1>&6
3770 else
3771 echo "$ac_t""no" 1>&6
3772 fi
3773
3774
3775 enablestring=
3776 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3777echo "configure:3778: checking for --${enablestring:-enable}-wave" >&5
3778 no_cache=0
3779 # Check whether --enable-wave or --disable-wave was given.
3780if test "${enable_wave+set}" = set; then
3781 enableval="$enable_wave"
3782
3783 if test "$enableval" = yes; then
3784 ac_cv_use_wave='wxUSE_WAVE=yes'
3785 else
3786 ac_cv_use_wave='wxUSE_WAVE=no'
3787 fi
3788
3789else
3790
3791 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
3798 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3799
3800fi
3801
3802
3803 eval "$ac_cv_use_wave"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_WAVE" = yes; then
3809 echo "$ac_t""yes" 1>&6
3810 else
3811 echo "$ac_t""no" 1>&6
3812 fi
3813
3814
3815 enablestring=
3816 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3817echo "configure:3818: checking for --${enablestring:-enable}-fraction" >&5
3818 no_cache=0
3819 # Check whether --enable-fraction or --disable-fraction was given.
3820if test "${enable_fraction+set}" = set; then
3821 enableval="$enable_fraction"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3825 else
3826 ac_cv_use_fraction='wxUSE_FRACTION=no'
3827 fi
3828
3829else
3830
3831 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3839
3840fi
3841
3842
3843 eval "$ac_cv_use_fraction"
3844 if test "$no_cache" != 1; then
3845 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3846 fi
3847
3848 if test "$wxUSE_FRACTION" = yes; then
3849 echo "$ac_t""yes" 1>&6
3850 else
3851 echo "$ac_t""no" 1>&6
3852 fi
3853
3854
3855 enablestring=
3856 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3857echo "configure:3858: checking for --${enablestring:-enable}-dynlib" >&5
3858 no_cache=0
3859 # Check whether --enable-dynlib or --disable-dynlib was given.
3860if test "${enable_dynlib+set}" = set; then
3861 enableval="$enable_dynlib"
3862
3863 if test "$enableval" = yes; then
3864 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3865 else
3866 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3867 fi
3868
3869else
3870
3871 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3872 if test "x$LINE" != x ; then
3873 eval "DEFAULT_$LINE"
3874 else
3875 no_cache=1
3876 fi
3877
3878 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3879
3880fi
3881
3882
3883 eval "$ac_cv_use_dynlib"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3889 echo "$ac_t""yes" 1>&6
3890 else
3891 echo "$ac_t""no" 1>&6
3892 fi
3893
3894
3895 enablestring=
3896 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3897echo "configure:3898: checking for --${enablestring:-enable}-dynamicloader" >&5
3898 no_cache=0
3899 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3900if test "${enable_dynamicloader+set}" = set; then
3901 enableval="$enable_dynamicloader"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3905 else
3906 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3907 fi
3908
3909else
3910
3911 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3919
3920fi
3921
3922
3923 eval "$ac_cv_use_dynamicloader"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3929 echo "$ac_t""yes" 1>&6
3930 else
3931 echo "$ac_t""no" 1>&6
3932 fi
3933
3934
3935 enablestring=
3936 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3937echo "configure:3938: checking for --${enablestring:-enable}-longlong" >&5
3938 no_cache=0
3939 # Check whether --enable-longlong or --disable-longlong was given.
3940if test "${enable_longlong+set}" = set; then
3941 enableval="$enable_longlong"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3945 else
3946 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3947 fi
3948
3949else
3950
3951 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3959
3960fi
3961
3962
3963 eval "$ac_cv_use_longlong"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_LONGLONG" = yes; then
3969 echo "$ac_t""yes" 1>&6
3970 else
3971 echo "$ac_t""no" 1>&6
3972 fi
3973
3974
3975 enablestring=
3976 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3977echo "configure:3978: checking for --${enablestring:-enable}-geometry" >&5
3978 no_cache=0
3979 # Check whether --enable-geometry or --disable-geometry was given.
3980if test "${enable_geometry+set}" = set; then
3981 enableval="$enable_geometry"
3982
3983 if test "$enableval" = yes; then
3984 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3985 else
3986 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3987 fi
3988
3989else
3990
3991 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3999
4000fi
4001
4002
4003 eval "$ac_cv_use_geometry"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_GEOMETRY" = yes; then
4009 echo "$ac_t""yes" 1>&6
4010 else
4011 echo "$ac_t""no" 1>&6
4012 fi
4013
4014
4015 enablestring=
4016 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4017echo "configure:4018: checking for --${enablestring:-enable}-log" >&5
4018 no_cache=0
4019 # Check whether --enable-log or --disable-log was given.
4020if test "${enable_log+set}" = set; then
4021 enableval="$enable_log"
4022
4023 if test "$enableval" = yes; then
4024 ac_cv_use_log='wxUSE_LOG=yes'
4025 else
4026 ac_cv_use_log='wxUSE_LOG=no'
4027 fi
4028
4029else
4030
4031 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4039
4040fi
4041
4042
4043 eval "$ac_cv_use_log"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_LOG" = yes; then
4049 echo "$ac_t""yes" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054
4055 enablestring=
4056 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4057echo "configure:4058: checking for --${enablestring:-enable}-streams" >&5
4058 no_cache=0
4059 # Check whether --enable-streams or --disable-streams was given.
4060if test "${enable_streams+set}" = set; then
4061 enableval="$enable_streams"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_streams='wxUSE_STREAMS=yes'
4065 else
4066 ac_cv_use_streams='wxUSE_STREAMS=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4079
4080fi
4081
4082
4083 eval "$ac_cv_use_streams"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_STREAMS" = yes; then
4089 echo "$ac_t""yes" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4092 fi
4093
4094
4095 enablestring=
4096 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4097echo "configure:4098: checking for --${enablestring:-enable}-file" >&5
4098 no_cache=0
4099 # Check whether --enable-file or --disable-file was given.
4100if test "${enable_file+set}" = set; then
4101 enableval="$enable_file"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_file='wxUSE_FILE=yes'
4105 else
4106 ac_cv_use_file='wxUSE_FILE=no'
4107 fi
4108
4109else
4110
4111 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4119
4120fi
4121
4122
4123 eval "$ac_cv_use_file"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_FILE" = yes; then
4129 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 fi
4133
4134
4135 enablestring=
4136 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4137echo "configure:4138: checking for --${enablestring:-enable}-ffile" >&5
4138 no_cache=0
4139 # Check whether --enable-ffile or --disable-ffile was given.
4140if test "${enable_ffile+set}" = set; then
4141 enableval="$enable_ffile"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_ffile='wxUSE_FFILE=yes'
4145 else
4146 ac_cv_use_ffile='wxUSE_FFILE=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4159
4160fi
4161
4162
4163 eval "$ac_cv_use_ffile"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_FFILE" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175 enablestring=
4176 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4177echo "configure:4178: checking for --${enablestring:-enable}-textbuf" >&5
4178 no_cache=0
4179 # Check whether --enable-textbuf or --disable-textbuf was given.
4180if test "${enable_textbuf+set}" = set; then
4181 enableval="$enable_textbuf"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4185 else
4186 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4187 fi
4188
4189else
4190
4191 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4199
4200fi
4201
4202
4203 eval "$ac_cv_use_textbuf"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_TEXTBUFFER" = yes; then
4209 echo "$ac_t""yes" 1>&6
4210 else
4211 echo "$ac_t""no" 1>&6
4212 fi
4213
4214
4215 enablestring=
4216 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4217echo "configure:4218: checking for --${enablestring:-enable}-textfile" >&5
4218 no_cache=0
4219 # Check whether --enable-textfile or --disable-textfile was given.
4220if test "${enable_textfile+set}" = set; then
4221 enableval="$enable_textfile"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4225 else
4226 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4239
4240fi
4241
4242
4243 eval "$ac_cv_use_textfile"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_TEXTFILE" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 enablestring=
4256 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4257echo "configure:4258: checking for --${enablestring:-enable}-fontmap" >&5
4258 no_cache=0
4259 # Check whether --enable-fontmap or --disable-fontmap was given.
4260if test "${enable_fontmap+set}" = set; then
4261 enableval="$enable_fontmap"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4265 else
4266 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4267 fi
4268
4269else
4270
4271 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4279
4280fi
4281
4282
4283 eval "$ac_cv_use_fontmap"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_FONTMAP" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 enablestring=
4296 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4297echo "configure:4298: checking for --${enablestring:-enable}-unicode" >&5
4298 no_cache=0
4299 # Check whether --enable-unicode or --disable-unicode was given.
4300if test "${enable_unicode+set}" = set; then
4301 enableval="$enable_unicode"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4305 else
4306 ac_cv_use_unicode='wxUSE_UNICODE=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4319
4320fi
4321
4322
4323 eval "$ac_cv_use_unicode"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_UNICODE" = yes; then
4329 echo "$ac_t""yes" 1>&6
4330 else
4331 echo "$ac_t""no" 1>&6
4332 fi
4333
4334
4335 enablestring=
4336 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4337echo "configure:4338: checking for --${enablestring:-enable}-mslu" >&5
4338 no_cache=0
4339 # Check whether --enable-mslu or --disable-mslu was given.
4340if test "${enable_mslu+set}" = set; then
4341 enableval="$enable_mslu"
4342
4343 if test "$enableval" = yes; then
4344 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4345 else
4346 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4347 fi
4348
4349else
4350
4351 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4359
4360fi
4361
4362
4363 eval "$ac_cv_use_mslu"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_UNICODE_MSLU" = yes; then
4369 echo "$ac_t""yes" 1>&6
4370 else
4371 echo "$ac_t""no" 1>&6
4372 fi
4373
4374
4375 enablestring=
4376 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4377echo "configure:4378: checking for --${enablestring:-enable}-wxprintfv" >&5
4378 no_cache=0
4379 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4380if test "${enable_wxprintfv+set}" = set; then
4381 enableval="$enable_wxprintfv"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4385 else
4386 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4399
4400fi
4401
4402
4403 eval "$ac_cv_use_wxprintfv"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 enablestring=
4416 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4417echo "configure:4418: checking for --${enablestring:-enable}-std_iostreams" >&5
4418 no_cache=0
4419 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4420if test "${enable_std_iostreams+set}" = set; then
4421 enableval="$enable_std_iostreams"
4422
4423 if test "$enableval" = yes; then
4424 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4425 else
4426 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4427 fi
4428
4429else
4430
4431 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4432 if test "x$LINE" != x ; then
4433 eval "DEFAULT_$LINE"
4434 else
4435 no_cache=1
4436 fi
4437
4438 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4439
4440fi
4441
4442
4443 eval "$ac_cv_use_std_iostreams"
4444 if test "$no_cache" != 1; then
4445 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4446 fi
4447
4448 if test "$wxUSE_STD_IOSTREAM" = yes; then
4449 echo "$ac_t""yes" 1>&6
4450 else
4451 echo "$ac_t""no" 1>&6
4452 fi
4453
4454
4455 enablestring=
4456 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4457echo "configure:4458: checking for --${enablestring:-enable}-filesystem" >&5
4458 no_cache=0
4459 # Check whether --enable-filesystem or --disable-filesystem was given.
4460if test "${enable_filesystem+set}" = set; then
4461 enableval="$enable_filesystem"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4465 else
4466 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4467 fi
4468
4469else
4470
4471 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4479
4480fi
4481
4482
4483 eval "$ac_cv_use_filesystem"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_FILESYSTEM" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495 enablestring=
4496 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4497echo "configure:4498: checking for --${enablestring:-enable}-fs_inet" >&5
4498 no_cache=0
4499 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4500if test "${enable_fs_inet+set}" = set; then
4501 enableval="$enable_fs_inet"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4505 else
4506 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4507 fi
4508
4509else
4510
4511 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4519
4520fi
4521
4522
4523 eval "$ac_cv_use_fs_inet"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_FS_INET" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 enablestring=
4536 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4537echo "configure:4538: checking for --${enablestring:-enable}-fs_zip" >&5
4538 no_cache=0
4539 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4540if test "${enable_fs_zip+set}" = set; then
4541 enableval="$enable_fs_zip"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4545 else
4546 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4559
4560fi
4561
4562
4563 eval "$ac_cv_use_fs_zip"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_FS_ZIP" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575 enablestring=
4576 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4577echo "configure:4578: checking for --${enablestring:-enable}-zipstream" >&5
4578 no_cache=0
4579 # Check whether --enable-zipstream or --disable-zipstream was given.
4580if test "${enable_zipstream+set}" = set; then
4581 enableval="$enable_zipstream"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4585 else
4586 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4599
4600fi
4601
4602
4603 eval "$ac_cv_use_zipstream"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_ZIPSTREAM" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615
4616 enablestring=
4617 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4618echo "configure:4619: checking for --${enablestring:-enable}-catch_segvs" >&5
4619 no_cache=0
4620 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4621if test "${enable_catch_segvs+set}" = set; then
4622 enableval="$enable_catch_segvs"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4626 else
4627 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4640
4641fi
4642
4643
4644 eval "$ac_cv_use_catch_segvs"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 enablestring=
4657 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4658echo "configure:4659: checking for --${enablestring:-enable}-snglinst" >&5
4659 no_cache=0
4660 # Check whether --enable-snglinst or --disable-snglinst was given.
4661if test "${enable_snglinst+set}" = set; then
4662 enableval="$enable_snglinst"
4663
4664 if test "$enableval" = yes; then
4665 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4666 else
4667 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4668 fi
4669
4670else
4671
4672 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4673 if test "x$LINE" != x ; then
4674 eval "DEFAULT_$LINE"
4675 else
4676 no_cache=1
4677 fi
4678
4679 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4680
4681fi
4682
4683
4684 eval "$ac_cv_use_snglinst"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4687 fi
4688
4689 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4690 echo "$ac_t""yes" 1>&6
4691 else
4692 echo "$ac_t""no" 1>&6
4693 fi
4694
4695
4696
4697 enablestring=
4698 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4699echo "configure:4700: checking for --${enablestring:-enable}-mimetype" >&5
4700 no_cache=0
4701 # Check whether --enable-mimetype or --disable-mimetype was given.
4702if test "${enable_mimetype+set}" = set; then
4703 enableval="$enable_mimetype"
4704
4705 if test "$enableval" = yes; then
4706 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4707 else
4708 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4709 fi
4710
4711else
4712
4713 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4714 if test "x$LINE" != x ; then
4715 eval "DEFAULT_$LINE"
4716 else
4717 no_cache=1
4718 fi
4719
4720 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4721
4722fi
4723
4724
4725 eval "$ac_cv_use_mimetype"
4726 if test "$no_cache" != 1; then
4727 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4728 fi
4729
4730 if test "$wxUSE_MIMETYPE" = yes; then
4731 echo "$ac_t""yes" 1>&6
4732 else
4733 echo "$ac_t""no" 1>&6
4734 fi
4735
4736
4737 enablestring=
4738 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4739echo "configure:4740: checking for --${enablestring:-enable}-system_options" >&5
4740 no_cache=0
4741 # Check whether --enable-system_options or --disable-system_options was given.
4742if test "${enable_system_options+set}" = set; then
4743 enableval="$enable_system_options"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4747 else
4748 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4749 fi
4750
4751else
4752
4753 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4761
4762fi
4763
4764
4765 eval "$ac_cv_use_system_options"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777
4778 enablestring=
4779 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4780echo "configure:4781: checking for --${enablestring:-enable}-url" >&5
4781 no_cache=0
4782 # Check whether --enable-url or --disable-url was given.
4783if test "${enable_url+set}" = set; then
4784 enableval="$enable_url"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_url='wxUSE_URL=yes'
4788 else
4789 ac_cv_use_url='wxUSE_URL=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4802
4803fi
4804
4805
4806 eval "$ac_cv_use_url"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_URL" = yes; then
4812 echo "$ac_t""yes" 1>&6
4813 else
4814 echo "$ac_t""no" 1>&6
4815 fi
4816
4817
4818 enablestring=
4819 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4820echo "configure:4821: checking for --${enablestring:-enable}-protocol" >&5
4821 no_cache=0
4822 # Check whether --enable-protocol or --disable-protocol was given.
4823if test "${enable_protocol+set}" = set; then
4824 enableval="$enable_protocol"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4828 else
4829 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4842
4843fi
4844
4845
4846 eval "$ac_cv_use_protocol"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_PROTOCOL" = yes; then
4852 echo "$ac_t""yes" 1>&6
4853 else
4854 echo "$ac_t""no" 1>&6
4855 fi
4856
4857
4858 enablestring=
4859 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4860echo "configure:4861: checking for --${enablestring:-enable}-protocol_http" >&5
4861 no_cache=0
4862 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4863if test "${enable_protocol_http+set}" = set; then
4864 enableval="$enable_protocol_http"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4868 else
4869 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4870 fi
4871
4872else
4873
4874 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4882
4883fi
4884
4885
4886 eval "$ac_cv_use_protocol_http"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4892 echo "$ac_t""yes" 1>&6
4893 else
4894 echo "$ac_t""no" 1>&6
4895 fi
4896
4897
4898 enablestring=
4899 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4900echo "configure:4901: checking for --${enablestring:-enable}-protocol_ftp" >&5
4901 no_cache=0
4902 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4903if test "${enable_protocol_ftp+set}" = set; then
4904 enableval="$enable_protocol_ftp"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4908 else
4909 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4910 fi
4911
4912else
4913
4914 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4922
4923fi
4924
4925
4926 eval "$ac_cv_use_protocol_ftp"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4932 echo "$ac_t""yes" 1>&6
4933 else
4934 echo "$ac_t""no" 1>&6
4935 fi
4936
4937
4938 enablestring=
4939 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4940echo "configure:4941: checking for --${enablestring:-enable}-protocol_file" >&5
4941 no_cache=0
4942 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4943if test "${enable_protocol_file+set}" = set; then
4944 enableval="$enable_protocol_file"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4948 else
4949 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4950 fi
4951
4952else
4953
4954 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4962
4963fi
4964
4965
4966 eval "$ac_cv_use_protocol_file"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978
4979
4980
4981 enablestring=
4982 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4983echo "configure:4984: checking for --${enablestring:-enable}-threads" >&5
4984 no_cache=0
4985 # Check whether --enable-threads or --disable-threads was given.
4986if test "${enable_threads+set}" = set; then
4987 enableval="$enable_threads"
4988
4989 if test "$enableval" = yes; then
4990 ac_cv_use_threads='wxUSE_THREADS=yes'
4991 else
4992 ac_cv_use_threads='wxUSE_THREADS=no'
4993 fi
4994
4995else
4996
4997 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5005
5006fi
5007
5008
5009 eval "$ac_cv_use_threads"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_THREADS" = yes; then
5015 echo "$ac_t""yes" 1>&6
5016 else
5017 echo "$ac_t""no" 1>&6
5018 fi
5019
5020
5021if test "$wxUSE_GUI" = "yes"; then
5022
5023
5024
5025 enablestring=
5026 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5027echo "configure:5028: checking for --${enablestring:-enable}-docview" >&5
5028 no_cache=0
5029 # Check whether --enable-docview or --disable-docview was given.
5030if test "${enable_docview+set}" = set; then
5031 enableval="$enable_docview"
5032
5033 if test "$enableval" = yes; then
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5035 else
5036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5037 fi
5038
5039else
5040
5041 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5049
5050fi
5051
5052
5053 eval "$ac_cv_use_docview"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5059 echo "$ac_t""yes" 1>&6
5060 else
5061 echo "$ac_t""no" 1>&6
5062 fi
5063
5064
5065 enablestring=
5066 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5067echo "configure:5068: checking for --${enablestring:-enable}-help" >&5
5068 no_cache=0
5069 # Check whether --enable-help or --disable-help was given.
5070if test "${enable_help+set}" = set; then
5071 enableval="$enable_help"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_help='wxUSE_HELP=yes'
5075 else
5076 ac_cv_use_help='wxUSE_HELP=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5089
5090fi
5091
5092
5093 eval "$ac_cv_use_help"
5094 if test "$no_cache" != 1; then
5095 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5096 fi
5097
5098 if test "$wxUSE_HELP" = yes; then
5099 echo "$ac_t""yes" 1>&6
5100 else
5101 echo "$ac_t""no" 1>&6
5102 fi
5103
5104
5105 enablestring=
5106 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5107echo "configure:5108: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5108 no_cache=0
5109 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5110if test "${enable_mshtmlhelp+set}" = set; then
5111 enableval="$enable_mshtmlhelp"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5115 else
5116 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5129
5130fi
5131
5132
5133 eval "$ac_cv_use_mshtmlhelp"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_MS_HTML_HELP" = yes; then
5139 echo "$ac_t""yes" 1>&6
5140 else
5141 echo "$ac_t""no" 1>&6
5142 fi
5143
5144
5145 enablestring=
5146 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5147echo "configure:5148: checking for --${enablestring:-enable}-html" >&5
5148 no_cache=0
5149 # Check whether --enable-html or --disable-html was given.
5150if test "${enable_html+set}" = set; then
5151 enableval="$enable_html"
5152
5153 if test "$enableval" = yes; then
5154 ac_cv_use_html='wxUSE_HTML=yes'
5155 else
5156 ac_cv_use_html='wxUSE_HTML=no'
5157 fi
5158
5159else
5160
5161 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5162 if test "x$LINE" != x ; then
5163 eval "DEFAULT_$LINE"
5164 else
5165 no_cache=1
5166 fi
5167
5168 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5169
5170fi
5171
5172
5173 eval "$ac_cv_use_html"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_HTML" = yes; then
5179 echo "$ac_t""yes" 1>&6
5180 else
5181 echo "$ac_t""no" 1>&6
5182 fi
5183
5184
5185 enablestring=
5186 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5187echo "configure:5188: checking for --${enablestring:-enable}-htmlhelp" >&5
5188 no_cache=0
5189 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5190if test "${enable_htmlhelp+set}" = set; then
5191 enableval="$enable_htmlhelp"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5195 else
5196 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5209
5210fi
5211
5212
5213 eval "$ac_cv_use_htmlhelp"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_WXHTML_HELP" = yes; then
5219 echo "$ac_t""yes" 1>&6
5220 else
5221 echo "$ac_t""no" 1>&6
5222 fi
5223
5224
5225 enablestring=
5226 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5227echo "configure:5228: checking for --${enablestring:-enable}-constraints" >&5
5228 no_cache=0
5229 # Check whether --enable-constraints or --disable-constraints was given.
5230if test "${enable_constraints+set}" = set; then
5231 enableval="$enable_constraints"
5232
5233 if test "$enableval" = yes; then
5234 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5235 else
5236 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5237 fi
5238
5239else
5240
5241 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5249
5250fi
5251
5252
5253 eval "$ac_cv_use_constraints"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_CONSTRAINTS" = yes; then
5259 echo "$ac_t""yes" 1>&6
5260 else
5261 echo "$ac_t""no" 1>&6
5262 fi
5263
5264
5265 enablestring=
5266 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5267echo "configure:5268: checking for --${enablestring:-enable}-printarch" >&5
5268 no_cache=0
5269 # Check whether --enable-printarch or --disable-printarch was given.
5270if test "${enable_printarch+set}" = set; then
5271 enableval="$enable_printarch"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5275 else
5276 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5289
5290fi
5291
5292
5293 eval "$ac_cv_use_printarch"
5294 if test "$no_cache" != 1; then
5295 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5296 fi
5297
5298 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5299 echo "$ac_t""yes" 1>&6
5300 else
5301 echo "$ac_t""no" 1>&6
5302 fi
5303
5304
5305 enablestring=
5306 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5307echo "configure:5308: checking for --${enablestring:-enable}-mdi" >&5
5308 no_cache=0
5309 # Check whether --enable-mdi or --disable-mdi was given.
5310if test "${enable_mdi+set}" = set; then
5311 enableval="$enable_mdi"
5312
5313 if test "$enableval" = yes; then
5314 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5315 else
5316 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5317 fi
5318
5319else
5320
5321 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5329
5330fi
5331
5332
5333 eval "$ac_cv_use_mdi"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5339 echo "$ac_t""yes" 1>&6
5340 else
5341 echo "$ac_t""no" 1>&6
5342 fi
5343
5344
5345 enablestring=
5346 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5347echo "configure:5348: checking for --${enablestring:-enable}-loggui" >&5
5348 no_cache=0
5349 # Check whether --enable-loggui or --disable-loggui was given.
5350if test "${enable_loggui+set}" = set; then
5351 enableval="$enable_loggui"
5352
5353 if test "$enableval" = yes; then
5354 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5355 else
5356 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5357 fi
5358
5359else
5360
5361 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5362 if test "x$LINE" != x ; then
5363 eval "DEFAULT_$LINE"
5364 else
5365 no_cache=1
5366 fi
5367
5368 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5369
5370fi
5371
5372
5373 eval "$ac_cv_use_loggui"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_LOGGUI" = yes; then
5379 echo "$ac_t""yes" 1>&6
5380 else
5381 echo "$ac_t""no" 1>&6
5382 fi
5383
5384
5385 enablestring=
5386 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5387echo "configure:5388: checking for --${enablestring:-enable}-logwin" >&5
5388 no_cache=0
5389 # Check whether --enable-logwin or --disable-logwin was given.
5390if test "${enable_logwin+set}" = set; then
5391 enableval="$enable_logwin"
5392
5393 if test "$enableval" = yes; then
5394 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5395 else
5396 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5397 fi
5398
5399else
5400
5401 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5402 if test "x$LINE" != x ; then
5403 eval "DEFAULT_$LINE"
5404 else
5405 no_cache=1
5406 fi
5407
5408 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5409
5410fi
5411
5412
5413 eval "$ac_cv_use_logwin"
5414 if test "$no_cache" != 1; then
5415 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5416 fi
5417
5418 if test "$wxUSE_LOGWINDOW" = yes; then
5419 echo "$ac_t""yes" 1>&6
5420 else
5421 echo "$ac_t""no" 1>&6
5422 fi
5423
5424
5425 enablestring=
5426 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5427echo "configure:5428: checking for --${enablestring:-enable}-logdialog" >&5
5428 no_cache=0
5429 # Check whether --enable-logdialog or --disable-logdialog was given.
5430if test "${enable_logdialog+set}" = set; then
5431 enableval="$enable_logdialog"
5432
5433 if test "$enableval" = yes; then
5434 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5435 else
5436 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5437 fi
5438
5439else
5440
5441 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5442 if test "x$LINE" != x ; then
5443 eval "DEFAULT_$LINE"
5444 else
5445 no_cache=1
5446 fi
5447
5448 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5449
5450fi
5451
5452
5453 eval "$ac_cv_use_logdialog"
5454 if test "$no_cache" != 1; then
5455 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5456 fi
5457
5458 if test "$wxUSE_LOGDIALOG" = yes; then
5459 echo "$ac_t""yes" 1>&6
5460 else
5461 echo "$ac_t""no" 1>&6
5462 fi
5463
5464
5465
5466 enablestring=
5467 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5468echo "configure:5469: checking for --${enablestring:-enable}-postscript" >&5
5469 no_cache=0
5470 # Check whether --enable-postscript or --disable-postscript was given.
5471if test "${enable_postscript+set}" = set; then
5472 enableval="$enable_postscript"
5473
5474 if test "$enableval" = yes; then
5475 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5476 else
5477 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5478 fi
5479
5480else
5481
5482 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5490
5491fi
5492
5493
5494 eval "$ac_cv_use_postscript"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_POSTSCRIPT" = yes; then
5500 echo "$ac_t""yes" 1>&6
5501 else
5502 echo "$ac_t""no" 1>&6
5503 fi
5504
5505
5506
5507
5508
5509 enablestring=
5510 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5511echo "configure:5512: checking for --${enablestring:-enable}-prologio" >&5
5512 no_cache=0
5513 # Check whether --enable-prologio or --disable-prologio was given.
5514if test "${enable_prologio+set}" = set; then
5515 enableval="$enable_prologio"
5516
5517 if test "$enableval" = yes; then
5518 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5519 else
5520 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5521 fi
5522
5523else
5524
5525 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5526 if test "x$LINE" != x ; then
5527 eval "DEFAULT_$LINE"
5528 else
5529 no_cache=1
5530 fi
5531
5532 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5533
5534fi
5535
5536
5537 eval "$ac_cv_use_prologio"
5538 if test "$no_cache" != 1; then
5539 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5540 fi
5541
5542 if test "$wxUSE_PROLOGIO" = yes; then
5543 echo "$ac_t""yes" 1>&6
5544 else
5545 echo "$ac_t""no" 1>&6
5546 fi
5547
5548
5549 enablestring=
5550 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5551echo "configure:5552: checking for --${enablestring:-enable}-resources" >&5
5552 no_cache=0
5553 # Check whether --enable-resources or --disable-resources was given.
5554if test "${enable_resources+set}" = set; then
5555 enableval="$enable_resources"
5556
5557 if test "$enableval" = yes; then
5558 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5559 else
5560 ac_cv_use_resources='wxUSE_RESOURCES=no'
5561 fi
5562
5563else
5564
5565 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
5572 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5573
5574fi
5575
5576
5577 eval "$ac_cv_use_resources"
5578 if test "$no_cache" != 1; then
5579 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5580 fi
5581
5582 if test "$wxUSE_RESOURCES" = yes; then
5583 echo "$ac_t""yes" 1>&6
5584 else
5585 echo "$ac_t""no" 1>&6
5586 fi
5587
5588
5589
5590
5591 enablestring=
5592 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5593echo "configure:5594: checking for --${enablestring:-enable}-clipboard" >&5
5594 no_cache=0
5595 # Check whether --enable-clipboard or --disable-clipboard was given.
5596if test "${enable_clipboard+set}" = set; then
5597 enableval="$enable_clipboard"
5598
5599 if test "$enableval" = yes; then
5600 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5601 else
5602 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5603 fi
5604
5605else
5606
5607 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5615
5616fi
5617
5618
5619 eval "$ac_cv_use_clipboard"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_CLIPBOARD" = yes; then
5625 echo "$ac_t""yes" 1>&6
5626 else
5627 echo "$ac_t""no" 1>&6
5628 fi
5629
5630
5631 enablestring=
5632 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5633echo "configure:5634: checking for --${enablestring:-enable}-dnd" >&5
5634 no_cache=0
5635 # Check whether --enable-dnd or --disable-dnd was given.
5636if test "${enable_dnd+set}" = set; then
5637 enableval="$enable_dnd"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5641 else
5642 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5643 fi
5644
5645else
5646
5647 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5655
5656fi
5657
5658
5659 eval "$ac_cv_use_dnd"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5665 echo "$ac_t""yes" 1>&6
5666 else
5667 echo "$ac_t""no" 1>&6
5668 fi
5669
5670
5671 enablestring=
5672 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5673echo "configure:5674: checking for --${enablestring:-enable}-metafile" >&5
5674 no_cache=0
5675 # Check whether --enable-metafile or --disable-metafile was given.
5676if test "${enable_metafile+set}" = set; then
5677 enableval="$enable_metafile"
5678
5679 if test "$enableval" = yes; then
5680 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5681 else
5682 ac_cv_use_metafile='wxUSE_METAFILE=no'
5683 fi
5684
5685else
5686
5687 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5695
5696fi
5697
5698
5699 eval "$ac_cv_use_metafile"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_METAFILE" = yes; then
5705 echo "$ac_t""yes" 1>&6
5706 else
5707 echo "$ac_t""no" 1>&6
5708 fi
5709
5710
5711
5712
5713
5714 enablestring=
5715 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5716echo "configure:5717: checking for --${enablestring:-enable}-controls" >&5
5717 no_cache=0
5718 # Check whether --enable-controls or --disable-controls was given.
5719if test "${enable_controls+set}" = set; then
5720 enableval="$enable_controls"
5721
5722 if test "$enableval" = yes; then
5723 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5724 else
5725 ac_cv_use_controls='wxUSE_CONTROLS=no'
5726 fi
5727
5728else
5729
5730 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5738
5739fi
5740
5741
5742 eval "$ac_cv_use_controls"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_CONTROLS" = yes; then
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752
5753
5754if test "$wxUSE_CONTROLS" = "yes"; then
5755 DEFAULT_wxUSE_ACCEL=yes
5756 DEFAULT_wxUSE_BMPBUTTON=yes
5757 DEFAULT_wxUSE_BUTTON=yes
5758 DEFAULT_wxUSE_CALCTRL=no
5759 DEFAULT_wxUSE_CARET=yes
5760 DEFAULT_wxUSE_COMBOBOX=yes
5761 DEFAULT_wxUSE_CHECKBOX=yes
5762 DEFAULT_wxUSE_CHECKLISTBOX=yes
5763 DEFAULT_wxUSE_CHOICE=yes
5764 DEFAULT_wxUSE_GAUGE=yes
5765 DEFAULT_wxUSE_GRID=yes
5766 DEFAULT_wxUSE_IMAGLIST=yes
5767 DEFAULT_wxUSE_LISTBOX=yes
5768 DEFAULT_wxUSE_LISTCTRL=yes
5769 DEFAULT_wxUSE_NOTEBOOK=yes
5770 DEFAULT_wxUSE_RADIOBOX=yes
5771 DEFAULT_wxUSE_RADIOBTN=yes
5772 DEFAULT_wxUSE_SASH=yes
5773 DEFAULT_wxUSE_SCROLLBAR=yes
5774 DEFAULT_wxUSE_SLIDER=yes
5775 DEFAULT_wxUSE_SPINBTN=yes
5776 DEFAULT_wxUSE_SPINCTRL=yes
5777 DEFAULT_wxUSE_SPLITTER=yes
5778 DEFAULT_wxUSE_STATBMP=yes
5779 DEFAULT_wxUSE_STATBOX=yes
5780 DEFAULT_wxUSE_STATLINE=yes
5781 DEFAULT_wxUSE_STATUSBAR=yes
5782 DEFAULT_wxUSE_TAB_DIALOG=yes
5783 DEFAULT_wxUSE_TOGGLEBTN=yes
5784 DEFAULT_wxUSE_TOOLBAR=yes
5785 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5786 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5787 DEFAULT_wxUSE_TOOLTIPS=yes
5788 DEFAULT_wxUSE_TREECTRL=yes
5789 DEFAULT_wxUSE_POPUPWIN=yes
5790 DEFAULT_wxUSE_TIPWINDOW=yes
5791elif test "$wxUSE_CONTROLS" = "no"; then
5792 DEFAULT_wxUSE_ACCEL=no
5793 DEFAULT_wxUSE_BMPBUTTON=no
5794 DEFAULT_wxUSE_BUTTON=no
5795 DEFAULT_wxUSE_CALCTRL=no
5796 DEFAULT_wxUSE_CARET=no
5797 DEFAULT_wxUSE_COMBOBOX=no
5798 DEFAULT_wxUSE_CHECKBOX=no
5799 DEFAULT_wxUSE_CHECKLISTBOX=no
5800 DEFAULT_wxUSE_CHOICE=no
5801 DEFAULT_wxUSE_GAUGE=no
5802 DEFAULT_wxUSE_GRID=no
5803 DEFAULT_wxUSE_IMAGLIST=no
5804 DEFAULT_wxUSE_LISTBOX=no
5805 DEFAULT_wxUSE_LISTCTRL=no
5806 DEFAULT_wxUSE_NOTEBOOK=no
5807 DEFAULT_wxUSE_RADIOBOX=no
5808 DEFAULT_wxUSE_RADIOBTN=no
5809 DEFAULT_wxUSE_SASH=no
5810 DEFAULT_wxUSE_SCROLLBAR=no
5811 DEFAULT_wxUSE_SLIDER=no
5812 DEFAULT_wxUSE_SPINBTN=no
5813 DEFAULT_wxUSE_SPINCTRL=no
5814 DEFAULT_wxUSE_SPLITTER=no
5815 DEFAULT_wxUSE_STATBMP=no
5816 DEFAULT_wxUSE_STATBOX=no
5817 DEFAULT_wxUSE_STATLINE=no
5818 DEFAULT_wxUSE_STATUSBAR=no
5819 DEFAULT_wxUSE_TAB_DIALOG=no
5820 DEFAULT_wxUSE_TOGGLEBTN=no
5821 DEFAULT_wxUSE_TOOLBAR=no
5822 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5823 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5824 DEFAULT_wxUSE_TOOLTIPS=no
5825 DEFAULT_wxUSE_TREECTRL=no
5826 DEFAULT_wxUSE_POPUPWIN=no
5827 DEFAULT_wxUSE_TIPWINDOW=no
5828fi
5829
5830## FIXME: This is a blatant hack
5831if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5832 wxUSE_PRINTING_ARCHITECTURE=no
5833 wxUSE_HELP=no
5834 wxUSE_CLIPBOARD=no
5835 wxUSE_DRAG_AND_DROP=no
5836 wxUSE_DATAOBJ=no
5837 # Generic notebook requires tab dialog
5838 DEFAULT_wxUSE_TABDIALOG=yes
5839 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5840 DEFAULT_wxUSE_GAUGE=no
5841 DEFAULT_wxUSE_SCROLLBAR=no
5842 DEFAULT_wxUSE_SLIDER=no
5843 DEFAULT_wxUSE_COMBOBOX=no
5844 DEFAULT_wxUSE_CALCTRL=no
5845 DEFAULT_wxUSE_SPINBTN=no
5846 DEFAULT_wxUSE_SPINCTRL=no
5847 DEFAULT_wxUSE_TOOLTIPS=no
5848 DEFAULT_wxUSE_COLOURDLG=no
5849 DEFAULT_wxUSE_DRAGIMAGE=no
5850 DEFAULT_wxUSE_FINDREPLDLG=no
5851 DEFAULT_wxUSE_FONTDLG=no
5852 DEFAULT_wxUSE_GRID=no
5853 DEFAULT_wxUSE_NUMBERDLG=no
5854 DEFAULT_wxUSE_PROGRESSDLG=no
5855 DEFAULT_wxUSE_SASH=no
5856 DEFAULT_wxUSE_SPLITTER=no
5857 DEFAULT_wxUSE_WIZARDDLG=no
5858 DEFAULT_wxUSE_SPLITTER=no
5859 DEFAULT_wxUSE_STARTUP_TIPS=no
5860fi
5861
5862
5863 enablestring=
5864 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5865echo "configure:5866: checking for --${enablestring:-enable}-accel" >&5
5866 no_cache=0
5867 # Check whether --enable-accel or --disable-accel was given.
5868if test "${enable_accel+set}" = set; then
5869 enableval="$enable_accel"
5870
5871 if test "$enableval" = yes; then
5872 ac_cv_use_accel='wxUSE_ACCEL=yes'
5873 else
5874 ac_cv_use_accel='wxUSE_ACCEL=no'
5875 fi
5876
5877else
5878
5879 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5887
5888fi
5889
5890
5891 eval "$ac_cv_use_accel"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_ACCEL" = yes; then
5897 echo "$ac_t""yes" 1>&6
5898 else
5899 echo "$ac_t""no" 1>&6
5900 fi
5901
5902
5903 enablestring=
5904 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5905echo "configure:5906: checking for --${enablestring:-enable}-button" >&5
5906 no_cache=0
5907 # Check whether --enable-button or --disable-button was given.
5908if test "${enable_button+set}" = set; then
5909 enableval="$enable_button"
5910
5911 if test "$enableval" = yes; then
5912 ac_cv_use_button='wxUSE_BUTTON=yes'
5913 else
5914 ac_cv_use_button='wxUSE_BUTTON=no'
5915 fi
5916
5917else
5918
5919 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5920 if test "x$LINE" != x ; then
5921 eval "DEFAULT_$LINE"
5922 else
5923 no_cache=1
5924 fi
5925
5926 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5927
5928fi
5929
5930
5931 eval "$ac_cv_use_button"
5932 if test "$no_cache" != 1; then
5933 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5934 fi
5935
5936 if test "$wxUSE_BUTTON" = yes; then
5937 echo "$ac_t""yes" 1>&6
5938 else
5939 echo "$ac_t""no" 1>&6
5940 fi
5941
5942
5943 enablestring=
5944 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5945echo "configure:5946: checking for --${enablestring:-enable}-bmpbutton" >&5
5946 no_cache=0
5947 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5948if test "${enable_bmpbutton+set}" = set; then
5949 enableval="$enable_bmpbutton"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5953 else
5954 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5967
5968fi
5969
5970
5971 eval "$ac_cv_use_bmpbutton"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_BMPBUTTON" = yes; then
5977 echo "$ac_t""yes" 1>&6
5978 else
5979 echo "$ac_t""no" 1>&6
5980 fi
5981
5982
5983 enablestring=
5984 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5985echo "configure:5986: checking for --${enablestring:-enable}-calendar" >&5
5986 no_cache=0
5987 # Check whether --enable-calendar or --disable-calendar was given.
5988if test "${enable_calendar+set}" = set; then
5989 enableval="$enable_calendar"
5990
5991 if test "$enableval" = yes; then
5992 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5993 else
5994 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5995 fi
5996
5997else
5998
5999 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6007
6008fi
6009
6010
6011 eval "$ac_cv_use_calendar"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_CALCTRL" = yes; then
6017 echo "$ac_t""yes" 1>&6
6018 else
6019 echo "$ac_t""no" 1>&6
6020 fi
6021
6022
6023 enablestring=
6024 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6025echo "configure:6026: checking for --${enablestring:-enable}-caret" >&5
6026 no_cache=0
6027 # Check whether --enable-caret or --disable-caret was given.
6028if test "${enable_caret+set}" = set; then
6029 enableval="$enable_caret"
6030
6031 if test "$enableval" = yes; then
6032 ac_cv_use_caret='wxUSE_CARET=yes'
6033 else
6034 ac_cv_use_caret='wxUSE_CARET=no'
6035 fi
6036
6037else
6038
6039 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6047
6048fi
6049
6050
6051 eval "$ac_cv_use_caret"
6052 if test "$no_cache" != 1; then
6053 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6054 fi
6055
6056 if test "$wxUSE_CARET" = yes; then
6057 echo "$ac_t""yes" 1>&6
6058 else
6059 echo "$ac_t""no" 1>&6
6060 fi
6061
6062
6063 enablestring=
6064 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6065echo "configure:6066: checking for --${enablestring:-enable}-checkbox" >&5
6066 no_cache=0
6067 # Check whether --enable-checkbox or --disable-checkbox was given.
6068if test "${enable_checkbox+set}" = set; then
6069 enableval="$enable_checkbox"
6070
6071 if test "$enableval" = yes; then
6072 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6073 else
6074 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6075 fi
6076
6077else
6078
6079 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6087
6088fi
6089
6090
6091 eval "$ac_cv_use_checkbox"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_CHECKBOX" = yes; then
6097 echo "$ac_t""yes" 1>&6
6098 else
6099 echo "$ac_t""no" 1>&6
6100 fi
6101
6102
6103 enablestring=
6104 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6105echo "configure:6106: checking for --${enablestring:-enable}-checklst" >&5
6106 no_cache=0
6107 # Check whether --enable-checklst or --disable-checklst was given.
6108if test "${enable_checklst+set}" = set; then
6109 enableval="$enable_checklst"
6110
6111 if test "$enableval" = yes; then
6112 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6113 else
6114 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6115 fi
6116
6117else
6118
6119 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6127
6128fi
6129
6130
6131 eval "$ac_cv_use_checklst"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_CHECKLST" = yes; then
6137 echo "$ac_t""yes" 1>&6
6138 else
6139 echo "$ac_t""no" 1>&6
6140 fi
6141
6142
6143 enablestring=
6144 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6145echo "configure:6146: checking for --${enablestring:-enable}-choice" >&5
6146 no_cache=0
6147 # Check whether --enable-choice or --disable-choice was given.
6148if test "${enable_choice+set}" = set; then
6149 enableval="$enable_choice"
6150
6151 if test "$enableval" = yes; then
6152 ac_cv_use_choice='wxUSE_CHOICE=yes'
6153 else
6154 ac_cv_use_choice='wxUSE_CHOICE=no'
6155 fi
6156
6157else
6158
6159 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6167
6168fi
6169
6170
6171 eval "$ac_cv_use_choice"
6172 if test "$no_cache" != 1; then
6173 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6174 fi
6175
6176 if test "$wxUSE_CHOICE" = yes; then
6177 echo "$ac_t""yes" 1>&6
6178 else
6179 echo "$ac_t""no" 1>&6
6180 fi
6181
6182
6183 enablestring=
6184 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6185echo "configure:6186: checking for --${enablestring:-enable}-combobox" >&5
6186 no_cache=0
6187 # Check whether --enable-combobox or --disable-combobox was given.
6188if test "${enable_combobox+set}" = set; then
6189 enableval="$enable_combobox"
6190
6191 if test "$enableval" = yes; then
6192 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6193 else
6194 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6195 fi
6196
6197else
6198
6199 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6207
6208fi
6209
6210
6211 eval "$ac_cv_use_combobox"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_COMBOBOX" = yes; then
6217 echo "$ac_t""yes" 1>&6
6218 else
6219 echo "$ac_t""no" 1>&6
6220 fi
6221
6222
6223 enablestring=
6224 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6225echo "configure:6226: checking for --${enablestring:-enable}-display" >&5
6226 no_cache=0
6227 # Check whether --enable-display or --disable-display was given.
6228if test "${enable_display+set}" = set; then
6229 enableval="$enable_display"
6230
6231 if test "$enableval" = yes; then
6232 ac_cv_use_display='wxUSE_DISPLAY=yes'
6233 else
6234 ac_cv_use_display='wxUSE_DISPLAY=no'
6235 fi
6236
6237else
6238
6239 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6240 if test "x$LINE" != x ; then
6241 eval "DEFAULT_$LINE"
6242 else
6243 no_cache=1
6244 fi
6245
6246 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6247
6248fi
6249
6250
6251 eval "$ac_cv_use_display"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_DISPLAY" = yes; then
6257 echo "$ac_t""yes" 1>&6
6258 else
6259 echo "$ac_t""no" 1>&6
6260 fi
6261
6262
6263 enablestring=
6264 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6265echo "configure:6266: checking for --${enablestring:-enable}-gauge" >&5
6266 no_cache=0
6267 # Check whether --enable-gauge or --disable-gauge was given.
6268if test "${enable_gauge+set}" = set; then
6269 enableval="$enable_gauge"
6270
6271 if test "$enableval" = yes; then
6272 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6273 else
6274 ac_cv_use_gauge='wxUSE_GAUGE=no'
6275 fi
6276
6277else
6278
6279 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6287
6288fi
6289
6290
6291 eval "$ac_cv_use_gauge"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_GAUGE" = yes; then
6297 echo "$ac_t""yes" 1>&6
6298 else
6299 echo "$ac_t""no" 1>&6
6300 fi
6301
6302
6303 enablestring=
6304 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6305echo "configure:6306: checking for --${enablestring:-enable}-grid" >&5
6306 no_cache=0
6307 # Check whether --enable-grid or --disable-grid was given.
6308if test "${enable_grid+set}" = set; then
6309 enableval="$enable_grid"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_grid='wxUSE_GRID=yes'
6313 else
6314 ac_cv_use_grid='wxUSE_GRID=no'
6315 fi
6316
6317else
6318
6319 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6327
6328fi
6329
6330
6331 eval "$ac_cv_use_grid"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_GRID" = yes; then
6337 echo "$ac_t""yes" 1>&6
6338 else
6339 echo "$ac_t""no" 1>&6
6340 fi
6341
6342
6343 enablestring=
6344 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6345echo "configure:6346: checking for --${enablestring:-enable}-imaglist" >&5
6346 no_cache=0
6347 # Check whether --enable-imaglist or --disable-imaglist was given.
6348if test "${enable_imaglist+set}" = set; then
6349 enableval="$enable_imaglist"
6350
6351 if test "$enableval" = yes; then
6352 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6353 else
6354 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6355 fi
6356
6357else
6358
6359 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6367
6368fi
6369
6370
6371 eval "$ac_cv_use_imaglist"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_IMAGLIST" = yes; then
6377 echo "$ac_t""yes" 1>&6
6378 else
6379 echo "$ac_t""no" 1>&6
6380 fi
6381
6382
6383 enablestring=
6384 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6385echo "configure:6386: checking for --${enablestring:-enable}-listbox" >&5
6386 no_cache=0
6387 # Check whether --enable-listbox or --disable-listbox was given.
6388if test "${enable_listbox+set}" = set; then
6389 enableval="$enable_listbox"
6390
6391 if test "$enableval" = yes; then
6392 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6393 else
6394 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6395 fi
6396
6397else
6398
6399 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6400 if test "x$LINE" != x ; then
6401 eval "DEFAULT_$LINE"
6402 else
6403 no_cache=1
6404 fi
6405
6406 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6407
6408fi
6409
6410
6411 eval "$ac_cv_use_listbox"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_LISTBOX" = yes; then
6417 echo "$ac_t""yes" 1>&6
6418 else
6419 echo "$ac_t""no" 1>&6
6420 fi
6421
6422
6423 enablestring=
6424 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6425echo "configure:6426: checking for --${enablestring:-enable}-listctrl" >&5
6426 no_cache=0
6427 # Check whether --enable-listctrl or --disable-listctrl was given.
6428if test "${enable_listctrl+set}" = set; then
6429 enableval="$enable_listctrl"
6430
6431 if test "$enableval" = yes; then
6432 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6433 else
6434 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6435 fi
6436
6437else
6438
6439 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6447
6448fi
6449
6450
6451 eval "$ac_cv_use_listctrl"
6452 if test "$no_cache" != 1; then
6453 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6454 fi
6455
6456 if test "$wxUSE_LISTCTRL" = yes; then
6457 echo "$ac_t""yes" 1>&6
6458 else
6459 echo "$ac_t""no" 1>&6
6460 fi
6461
6462
6463 enablestring=
6464 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6465echo "configure:6466: checking for --${enablestring:-enable}-notebook" >&5
6466 no_cache=0
6467 # Check whether --enable-notebook or --disable-notebook was given.
6468if test "${enable_notebook+set}" = set; then
6469 enableval="$enable_notebook"
6470
6471 if test "$enableval" = yes; then
6472 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6473 else
6474 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6475 fi
6476
6477else
6478
6479 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6480 if test "x$LINE" != x ; then
6481 eval "DEFAULT_$LINE"
6482 else
6483 no_cache=1
6484 fi
6485
6486 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6487
6488fi
6489
6490
6491 eval "$ac_cv_use_notebook"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6494 fi
6495
6496 if test "$wxUSE_NOTEBOOK" = yes; then
6497 echo "$ac_t""yes" 1>&6
6498 else
6499 echo "$ac_t""no" 1>&6
6500 fi
6501
6502
6503 enablestring=
6504 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6505echo "configure:6506: checking for --${enablestring:-enable}-radiobox" >&5
6506 no_cache=0
6507 # Check whether --enable-radiobox or --disable-radiobox was given.
6508if test "${enable_radiobox+set}" = set; then
6509 enableval="$enable_radiobox"
6510
6511 if test "$enableval" = yes; then
6512 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6513 else
6514 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6515 fi
6516
6517else
6518
6519 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6527
6528fi
6529
6530
6531 eval "$ac_cv_use_radiobox"
6532 if test "$no_cache" != 1; then
6533 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6534 fi
6535
6536 if test "$wxUSE_RADIOBOX" = yes; then
6537 echo "$ac_t""yes" 1>&6
6538 else
6539 echo "$ac_t""no" 1>&6
6540 fi
6541
6542
6543 enablestring=
6544 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6545echo "configure:6546: checking for --${enablestring:-enable}-radiobtn" >&5
6546 no_cache=0
6547 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6548if test "${enable_radiobtn+set}" = set; then
6549 enableval="$enable_radiobtn"
6550
6551 if test "$enableval" = yes; then
6552 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6553 else
6554 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6555 fi
6556
6557else
6558
6559 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6560 if test "x$LINE" != x ; then
6561 eval "DEFAULT_$LINE"
6562 else
6563 no_cache=1
6564 fi
6565
6566 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6567
6568fi
6569
6570
6571 eval "$ac_cv_use_radiobtn"
6572 if test "$no_cache" != 1; then
6573 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6574 fi
6575
6576 if test "$wxUSE_RADIOBTN" = yes; then
6577 echo "$ac_t""yes" 1>&6
6578 else
6579 echo "$ac_t""no" 1>&6
6580 fi
6581
6582
6583 enablestring=
6584 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6585echo "configure:6586: checking for --${enablestring:-enable}-sash" >&5
6586 no_cache=0
6587 # Check whether --enable-sash or --disable-sash was given.
6588if test "${enable_sash+set}" = set; then
6589 enableval="$enable_sash"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_sash='wxUSE_SASH=yes'
6593 else
6594 ac_cv_use_sash='wxUSE_SASH=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6607
6608fi
6609
6610
6611 eval "$ac_cv_use_sash"
6612 if test "$no_cache" != 1; then
6613 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6614 fi
6615
6616 if test "$wxUSE_SASH" = yes; then
6617 echo "$ac_t""yes" 1>&6
6618 else
6619 echo "$ac_t""no" 1>&6
6620 fi
6621
6622
6623 enablestring=
6624 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6625echo "configure:6626: checking for --${enablestring:-enable}-scrollbar" >&5
6626 no_cache=0
6627 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6628if test "${enable_scrollbar+set}" = set; then
6629 enableval="$enable_scrollbar"
6630
6631 if test "$enableval" = yes; then
6632 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6633 else
6634 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6635 fi
6636
6637else
6638
6639 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6647
6648fi
6649
6650
6651 eval "$ac_cv_use_scrollbar"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_SCROLLBAR" = yes; then
6657 echo "$ac_t""yes" 1>&6
6658 else
6659 echo "$ac_t""no" 1>&6
6660 fi
6661
6662
6663 enablestring=
6664 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6665echo "configure:6666: checking for --${enablestring:-enable}-slider" >&5
6666 no_cache=0
6667 # Check whether --enable-slider or --disable-slider was given.
6668if test "${enable_slider+set}" = set; then
6669 enableval="$enable_slider"
6670
6671 if test "$enableval" = yes; then
6672 ac_cv_use_slider='wxUSE_SLIDER=yes'
6673 else
6674 ac_cv_use_slider='wxUSE_SLIDER=no'
6675 fi
6676
6677else
6678
6679 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6680 if test "x$LINE" != x ; then
6681 eval "DEFAULT_$LINE"
6682 else
6683 no_cache=1
6684 fi
6685
6686 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6687
6688fi
6689
6690
6691 eval "$ac_cv_use_slider"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_SLIDER" = yes; then
6697 echo "$ac_t""yes" 1>&6
6698 else
6699 echo "$ac_t""no" 1>&6
6700 fi
6701
6702
6703 enablestring=
6704 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6705echo "configure:6706: checking for --${enablestring:-enable}-spinbtn" >&5
6706 no_cache=0
6707 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6708if test "${enable_spinbtn+set}" = set; then
6709 enableval="$enable_spinbtn"
6710
6711 if test "$enableval" = yes; then
6712 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6713 else
6714 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6715 fi
6716
6717else
6718
6719 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6720 if test "x$LINE" != x ; then
6721 eval "DEFAULT_$LINE"
6722 else
6723 no_cache=1
6724 fi
6725
6726 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6727
6728fi
6729
6730
6731 eval "$ac_cv_use_spinbtn"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_SPINBTN" = yes; then
6737 echo "$ac_t""yes" 1>&6
6738 else
6739 echo "$ac_t""no" 1>&6
6740 fi
6741
6742
6743 enablestring=
6744 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6745echo "configure:6746: checking for --${enablestring:-enable}-spinctrl" >&5
6746 no_cache=0
6747 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6748if test "${enable_spinctrl+set}" = set; then
6749 enableval="$enable_spinctrl"
6750
6751 if test "$enableval" = yes; then
6752 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6753 else
6754 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6755 fi
6756
6757else
6758
6759 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6760 if test "x$LINE" != x ; then
6761 eval "DEFAULT_$LINE"
6762 else
6763 no_cache=1
6764 fi
6765
6766 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6767
6768fi
6769
6770
6771 eval "$ac_cv_use_spinctrl"
6772 if test "$no_cache" != 1; then
6773 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6774 fi
6775
6776 if test "$wxUSE_SPINCTRL" = yes; then
6777 echo "$ac_t""yes" 1>&6
6778 else
6779 echo "$ac_t""no" 1>&6
6780 fi
6781
6782
6783 enablestring=
6784 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6785echo "configure:6786: checking for --${enablestring:-enable}-splitter" >&5
6786 no_cache=0
6787 # Check whether --enable-splitter or --disable-splitter was given.
6788if test "${enable_splitter+set}" = set; then
6789 enableval="$enable_splitter"
6790
6791 if test "$enableval" = yes; then
6792 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6793 else
6794 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6795 fi
6796
6797else
6798
6799 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6800 if test "x$LINE" != x ; then
6801 eval "DEFAULT_$LINE"
6802 else
6803 no_cache=1
6804 fi
6805
6806 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6807
6808fi
6809
6810
6811 eval "$ac_cv_use_splitter"
6812 if test "$no_cache" != 1; then
6813 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6814 fi
6815
6816 if test "$wxUSE_SPLITTER" = yes; then
6817 echo "$ac_t""yes" 1>&6
6818 else
6819 echo "$ac_t""no" 1>&6
6820 fi
6821
6822
6823 enablestring=
6824 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6825echo "configure:6826: checking for --${enablestring:-enable}-statbmp" >&5
6826 no_cache=0
6827 # Check whether --enable-statbmp or --disable-statbmp was given.
6828if test "${enable_statbmp+set}" = set; then
6829 enableval="$enable_statbmp"
6830
6831 if test "$enableval" = yes; then
6832 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6833 else
6834 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6835 fi
6836
6837else
6838
6839 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6840 if test "x$LINE" != x ; then
6841 eval "DEFAULT_$LINE"
6842 else
6843 no_cache=1
6844 fi
6845
6846 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6847
6848fi
6849
6850
6851 eval "$ac_cv_use_statbmp"
6852 if test "$no_cache" != 1; then
6853 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6854 fi
6855
6856 if test "$wxUSE_STATBMP" = yes; then
6857 echo "$ac_t""yes" 1>&6
6858 else
6859 echo "$ac_t""no" 1>&6
6860 fi
6861
6862
6863 enablestring=
6864 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6865echo "configure:6866: checking for --${enablestring:-enable}-statbox" >&5
6866 no_cache=0
6867 # Check whether --enable-statbox or --disable-statbox was given.
6868if test "${enable_statbox+set}" = set; then
6869 enableval="$enable_statbox"
6870
6871 if test "$enableval" = yes; then
6872 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6873 else
6874 ac_cv_use_statbox='wxUSE_STATBOX=no'
6875 fi
6876
6877else
6878
6879 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6880 if test "x$LINE" != x ; then
6881 eval "DEFAULT_$LINE"
6882 else
6883 no_cache=1
6884 fi
6885
6886 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6887
6888fi
6889
6890
6891 eval "$ac_cv_use_statbox"
6892 if test "$no_cache" != 1; then
6893 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6894 fi
6895
6896 if test "$wxUSE_STATBOX" = yes; then
6897 echo "$ac_t""yes" 1>&6
6898 else
6899 echo "$ac_t""no" 1>&6
6900 fi
6901
6902
6903 enablestring=
6904 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6905echo "configure:6906: checking for --${enablestring:-enable}-statline" >&5
6906 no_cache=0
6907 # Check whether --enable-statline or --disable-statline was given.
6908if test "${enable_statline+set}" = set; then
6909 enableval="$enable_statline"
6910
6911 if test "$enableval" = yes; then
6912 ac_cv_use_statline='wxUSE_STATLINE=yes'
6913 else
6914 ac_cv_use_statline='wxUSE_STATLINE=no'
6915 fi
6916
6917else
6918
6919 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6920 if test "x$LINE" != x ; then
6921 eval "DEFAULT_$LINE"
6922 else
6923 no_cache=1
6924 fi
6925
6926 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6927
6928fi
6929
6930
6931 eval "$ac_cv_use_statline"
6932 if test "$no_cache" != 1; then
6933 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6934 fi
6935
6936 if test "$wxUSE_STATLINE" = yes; then
6937 echo "$ac_t""yes" 1>&6
6938 else
6939 echo "$ac_t""no" 1>&6
6940 fi
6941
6942
6943 enablestring=
6944 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6945echo "configure:6946: checking for --${enablestring:-enable}-stattext" >&5
6946 no_cache=0
6947 # Check whether --enable-stattext or --disable-stattext was given.
6948if test "${enable_stattext+set}" = set; then
6949 enableval="$enable_stattext"
6950
6951 if test "$enableval" = yes; then
6952 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6953 else
6954 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6955 fi
6956
6957else
6958
6959 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6967
6968fi
6969
6970
6971 eval "$ac_cv_use_stattext"
6972 if test "$no_cache" != 1; then
6973 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6974 fi
6975
6976 if test "$wxUSE_STATTEXT" = yes; then
6977 echo "$ac_t""yes" 1>&6
6978 else
6979 echo "$ac_t""no" 1>&6
6980 fi
6981
6982
6983 enablestring=
6984 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6985echo "configure:6986: checking for --${enablestring:-enable}-statusbar" >&5
6986 no_cache=0
6987 # Check whether --enable-statusbar or --disable-statusbar was given.
6988if test "${enable_statusbar+set}" = set; then
6989 enableval="$enable_statusbar"
6990
6991 if test "$enableval" = yes; then
6992 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6993 else
6994 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6995 fi
6996
6997else
6998
6999 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7000 if test "x$LINE" != x ; then
7001 eval "DEFAULT_$LINE"
7002 else
7003 no_cache=1
7004 fi
7005
7006 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7007
7008fi
7009
7010
7011 eval "$ac_cv_use_statusbar"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_STATUSBAR" = yes; then
7017 echo "$ac_t""yes" 1>&6
7018 else
7019 echo "$ac_t""no" 1>&6
7020 fi
7021
7022
7023 enablestring=
7024 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7025echo "configure:7026: checking for --${enablestring:-enable}-tabdialog" >&5
7026 no_cache=0
7027 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7028if test "${enable_tabdialog+set}" = set; then
7029 enableval="$enable_tabdialog"
7030
7031 if test "$enableval" = yes; then
7032 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7033 else
7034 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7035 fi
7036
7037else
7038
7039 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7040 if test "x$LINE" != x ; then
7041 eval "DEFAULT_$LINE"
7042 else
7043 no_cache=1
7044 fi
7045
7046 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7047
7048fi
7049
7050
7051 eval "$ac_cv_use_tabdialog"
7052 if test "$no_cache" != 1; then
7053 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7054 fi
7055
7056 if test "$wxUSE_TABDIALOG" = yes; then
7057 echo "$ac_t""yes" 1>&6
7058 else
7059 echo "$ac_t""no" 1>&6
7060 fi
7061
7062
7063 enablestring=
7064 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7065echo "configure:7066: checking for --${enablestring:-enable}-textctrl" >&5
7066 no_cache=0
7067 # Check whether --enable-textctrl or --disable-textctrl was given.
7068if test "${enable_textctrl+set}" = set; then
7069 enableval="$enable_textctrl"
7070
7071 if test "$enableval" = yes; then
7072 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7073 else
7074 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7075 fi
7076
7077else
7078
7079 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7087
7088fi
7089
7090
7091 eval "$ac_cv_use_textctrl"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_TEXTCTRL" = yes; then
7097 echo "$ac_t""yes" 1>&6
7098 else
7099 echo "$ac_t""no" 1>&6
7100 fi
7101
7102
7103 enablestring=
7104 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7105echo "configure:7106: checking for --${enablestring:-enable}-togglebtn" >&5
7106 no_cache=0
7107 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7108if test "${enable_togglebtn+set}" = set; then
7109 enableval="$enable_togglebtn"
7110
7111 if test "$enableval" = yes; then
7112 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7113 else
7114 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7115 fi
7116
7117else
7118
7119 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7120 if test "x$LINE" != x ; then
7121 eval "DEFAULT_$LINE"
7122 else
7123 no_cache=1
7124 fi
7125
7126 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7127
7128fi
7129
7130
7131 eval "$ac_cv_use_togglebtn"
7132 if test "$no_cache" != 1; then
7133 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7134 fi
7135
7136 if test "$wxUSE_TOGGLEBTN" = yes; then
7137 echo "$ac_t""yes" 1>&6
7138 else
7139 echo "$ac_t""no" 1>&6
7140 fi
7141
7142
7143 enablestring=
7144 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7145echo "configure:7146: checking for --${enablestring:-enable}-toolbar" >&5
7146 no_cache=0
7147 # Check whether --enable-toolbar or --disable-toolbar was given.
7148if test "${enable_toolbar+set}" = set; then
7149 enableval="$enable_toolbar"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7153 else
7154 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7167
7168fi
7169
7170
7171 eval "$ac_cv_use_toolbar"
7172 if test "$no_cache" != 1; then
7173 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7174 fi
7175
7176 if test "$wxUSE_TOOLBAR" = yes; then
7177 echo "$ac_t""yes" 1>&6
7178 else
7179 echo "$ac_t""no" 1>&6
7180 fi
7181
7182
7183 enablestring=
7184 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7185echo "configure:7186: checking for --${enablestring:-enable}-tbarnative" >&5
7186 no_cache=0
7187 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7188if test "${enable_tbarnative+set}" = set; then
7189 enableval="$enable_tbarnative"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7193 else
7194 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7195 fi
7196
7197else
7198
7199 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7207
7208fi
7209
7210
7211 eval "$ac_cv_use_tbarnative"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7217 echo "$ac_t""yes" 1>&6
7218 else
7219 echo "$ac_t""no" 1>&6
7220 fi
7221
7222
7223 enablestring=
7224 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7225echo "configure:7226: checking for --${enablestring:-enable}-tbarsmpl" >&5
7226 no_cache=0
7227 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7228if test "${enable_tbarsmpl+set}" = set; then
7229 enableval="$enable_tbarsmpl"
7230
7231 if test "$enableval" = yes; then
7232 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7233 else
7234 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7235 fi
7236
7237else
7238
7239 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7240 if test "x$LINE" != x ; then
7241 eval "DEFAULT_$LINE"
7242 else
7243 no_cache=1
7244 fi
7245
7246 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7247
7248fi
7249
7250
7251 eval "$ac_cv_use_tbarsmpl"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7257 echo "$ac_t""yes" 1>&6
7258 else
7259 echo "$ac_t""no" 1>&6
7260 fi
7261
7262
7263 enablestring=
7264 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7265echo "configure:7266: checking for --${enablestring:-enable}-treectrl" >&5
7266 no_cache=0
7267 # Check whether --enable-treectrl or --disable-treectrl was given.
7268if test "${enable_treectrl+set}" = set; then
7269 enableval="$enable_treectrl"
7270
7271 if test "$enableval" = yes; then
7272 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7273 else
7274 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7275 fi
7276
7277else
7278
7279 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7280 if test "x$LINE" != x ; then
7281 eval "DEFAULT_$LINE"
7282 else
7283 no_cache=1
7284 fi
7285
7286 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7287
7288fi
7289
7290
7291 eval "$ac_cv_use_treectrl"
7292 if test "$no_cache" != 1; then
7293 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7294 fi
7295
7296 if test "$wxUSE_TREECTRL" = yes; then
7297 echo "$ac_t""yes" 1>&6
7298 else
7299 echo "$ac_t""no" 1>&6
7300 fi
7301
7302
7303 enablestring=
7304 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7305echo "configure:7306: checking for --${enablestring:-enable}-tipwindow" >&5
7306 no_cache=0
7307 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7308if test "${enable_tipwindow+set}" = set; then
7309 enableval="$enable_tipwindow"
7310
7311 if test "$enableval" = yes; then
7312 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7313 else
7314 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7315 fi
7316
7317else
7318
7319 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7320 if test "x$LINE" != x ; then
7321 eval "DEFAULT_$LINE"
7322 else
7323 no_cache=1
7324 fi
7325
7326 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7327
7328fi
7329
7330
7331 eval "$ac_cv_use_tipwindow"
7332 if test "$no_cache" != 1; then
7333 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7334 fi
7335
7336 if test "$wxUSE_TIPWINDOW" = yes; then
7337 echo "$ac_t""yes" 1>&6
7338 else
7339 echo "$ac_t""no" 1>&6
7340 fi
7341
7342
7343 enablestring=
7344 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7345echo "configure:7346: checking for --${enablestring:-enable}-popupwin" >&5
7346 no_cache=0
7347 # Check whether --enable-popupwin or --disable-popupwin was given.
7348if test "${enable_popupwin+set}" = set; then
7349 enableval="$enable_popupwin"
7350
7351 if test "$enableval" = yes; then
7352 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7353 else
7354 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7355 fi
7356
7357else
7358
7359 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7360 if test "x$LINE" != x ; then
7361 eval "DEFAULT_$LINE"
7362 else
7363 no_cache=1
7364 fi
7365
7366 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7367
7368fi
7369
7370
7371 eval "$ac_cv_use_popupwin"
7372 if test "$no_cache" != 1; then
7373 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7374 fi
7375
7376 if test "$wxUSE_POPUPWIN" = yes; then
7377 echo "$ac_t""yes" 1>&6
7378 else
7379 echo "$ac_t""no" 1>&6
7380 fi
7381
7382
7383
7384
7385 enablestring=
7386 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7387echo "configure:7388: checking for --${enablestring:-enable}-commondlg" >&5
7388 no_cache=0
7389 # Check whether --enable-commondlg or --disable-commondlg was given.
7390if test "${enable_commondlg+set}" = set; then
7391 enableval="$enable_commondlg"
7392
7393 if test "$enableval" = yes; then
7394 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7395 else
7396 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7397 fi
7398
7399else
7400
7401 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7402 if test "x$LINE" != x ; then
7403 eval "DEFAULT_$LINE"
7404 else
7405 no_cache=1
7406 fi
7407
7408 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7409
7410fi
7411
7412
7413 eval "$ac_cv_use_commondlg"
7414 if test "$no_cache" != 1; then
7415 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7416 fi
7417
7418 if test "$wxUSE_COMMONDLGS" = yes; then
7419 echo "$ac_t""yes" 1>&6
7420 else
7421 echo "$ac_t""no" 1>&6
7422 fi
7423
7424
7425 enablestring=
7426 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7427echo "configure:7428: checking for --${enablestring:-enable}-choicedlg" >&5
7428 no_cache=0
7429 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7430if test "${enable_choicedlg+set}" = set; then
7431 enableval="$enable_choicedlg"
7432
7433 if test "$enableval" = yes; then
7434 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7435 else
7436 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7437 fi
7438
7439else
7440
7441 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7442 if test "x$LINE" != x ; then
7443 eval "DEFAULT_$LINE"
7444 else
7445 no_cache=1
7446 fi
7447
7448 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7449
7450fi
7451
7452
7453 eval "$ac_cv_use_choicedlg"
7454 if test "$no_cache" != 1; then
7455 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7456 fi
7457
7458 if test "$wxUSE_CHOICEDLG" = yes; then
7459 echo "$ac_t""yes" 1>&6
7460 else
7461 echo "$ac_t""no" 1>&6
7462 fi
7463
7464
7465 enablestring=
7466 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7467echo "configure:7468: checking for --${enablestring:-enable}-coldlg" >&5
7468 no_cache=0
7469 # Check whether --enable-coldlg or --disable-coldlg was given.
7470if test "${enable_coldlg+set}" = set; then
7471 enableval="$enable_coldlg"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7475 else
7476 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7489
7490fi
7491
7492
7493 eval "$ac_cv_use_coldlg"
7494 if test "$no_cache" != 1; then
7495 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7496 fi
7497
7498 if test "$wxUSE_COLOURDLG" = yes; then
7499 echo "$ac_t""yes" 1>&6
7500 else
7501 echo "$ac_t""no" 1>&6
7502 fi
7503
7504
7505 enablestring=
7506 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7507echo "configure:7508: checking for --${enablestring:-enable}-filedlg" >&5
7508 no_cache=0
7509 # Check whether --enable-filedlg or --disable-filedlg was given.
7510if test "${enable_filedlg+set}" = set; then
7511 enableval="$enable_filedlg"
7512
7513 if test "$enableval" = yes; then
7514 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7515 else
7516 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7517 fi
7518
7519else
7520
7521 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
7528 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7529
7530fi
7531
7532
7533 eval "$ac_cv_use_filedlg"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_FILEDLG" = yes; then
7539 echo "$ac_t""yes" 1>&6
7540 else
7541 echo "$ac_t""no" 1>&6
7542 fi
7543
7544
7545 enablestring=
7546 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7547echo "configure:7548: checking for --${enablestring:-enable}-finddlg" >&5
7548 no_cache=0
7549 # Check whether --enable-finddlg or --disable-finddlg was given.
7550if test "${enable_finddlg+set}" = set; then
7551 enableval="$enable_finddlg"
7552
7553 if test "$enableval" = yes; then
7554 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7555 else
7556 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7557 fi
7558
7559else
7560
7561 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7562 if test "x$LINE" != x ; then
7563 eval "DEFAULT_$LINE"
7564 else
7565 no_cache=1
7566 fi
7567
7568 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7569
7570fi
7571
7572
7573 eval "$ac_cv_use_finddlg"
7574 if test "$no_cache" != 1; then
7575 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7576 fi
7577
7578 if test "$wxUSE_FINDREPLDLG" = yes; then
7579 echo "$ac_t""yes" 1>&6
7580 else
7581 echo "$ac_t""no" 1>&6
7582 fi
7583
7584
7585 enablestring=
7586 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7587echo "configure:7588: checking for --${enablestring:-enable}-fontdlg" >&5
7588 no_cache=0
7589 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7590if test "${enable_fontdlg+set}" = set; then
7591 enableval="$enable_fontdlg"
7592
7593 if test "$enableval" = yes; then
7594 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7595 else
7596 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7597 fi
7598
7599else
7600
7601 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7609
7610fi
7611
7612
7613 eval "$ac_cv_use_fontdlg"
7614 if test "$no_cache" != 1; then
7615 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7616 fi
7617
7618 if test "$wxUSE_FONTDLG" = yes; then
7619 echo "$ac_t""yes" 1>&6
7620 else
7621 echo "$ac_t""no" 1>&6
7622 fi
7623
7624
7625 enablestring=
7626 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7627echo "configure:7628: checking for --${enablestring:-enable}-dirdlg" >&5
7628 no_cache=0
7629 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7630if test "${enable_dirdlg+set}" = set; then
7631 enableval="$enable_dirdlg"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7635 else
7636 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7649
7650fi
7651
7652
7653 eval "$ac_cv_use_dirdlg"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_DIRDLG" = yes; then
7659 echo "$ac_t""yes" 1>&6
7660 else
7661 echo "$ac_t""no" 1>&6
7662 fi
7663
7664
7665 enablestring=
7666 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7667echo "configure:7668: checking for --${enablestring:-enable}-msgdlg" >&5
7668 no_cache=0
7669 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7670if test "${enable_msgdlg+set}" = set; then
7671 enableval="$enable_msgdlg"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7675 else
7676 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7689
7690fi
7691
7692
7693 eval "$ac_cv_use_msgdlg"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_MSGDLG" = yes; then
7699 echo "$ac_t""yes" 1>&6
7700 else
7701 echo "$ac_t""no" 1>&6
7702 fi
7703
7704
7705 enablestring=
7706 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7707echo "configure:7708: checking for --${enablestring:-enable}-numberdlg" >&5
7708 no_cache=0
7709 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7710if test "${enable_numberdlg+set}" = set; then
7711 enableval="$enable_numberdlg"
7712
7713 if test "$enableval" = yes; then
7714 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7715 else
7716 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7717 fi
7718
7719else
7720
7721 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7722 if test "x$LINE" != x ; then
7723 eval "DEFAULT_$LINE"
7724 else
7725 no_cache=1
7726 fi
7727
7728 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7729
7730fi
7731
7732
7733 eval "$ac_cv_use_numberdlg"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_NUMBERDLG" = yes; then
7739 echo "$ac_t""yes" 1>&6
7740 else
7741 echo "$ac_t""no" 1>&6
7742 fi
7743
7744
7745 enablestring=
7746 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7747echo "configure:7748: checking for --${enablestring:-enable}-splash" >&5
7748 no_cache=0
7749 # Check whether --enable-splash or --disable-splash was given.
7750if test "${enable_splash+set}" = set; then
7751 enableval="$enable_splash"
7752
7753 if test "$enableval" = yes; then
7754 ac_cv_use_splash='wxUSE_SPLASH=yes'
7755 else
7756 ac_cv_use_splash='wxUSE_SPLASH=no'
7757 fi
7758
7759else
7760
7761 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7762 if test "x$LINE" != x ; then
7763 eval "DEFAULT_$LINE"
7764 else
7765 no_cache=1
7766 fi
7767
7768 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7769
7770fi
7771
7772
7773 eval "$ac_cv_use_splash"
7774 if test "$no_cache" != 1; then
7775 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7776 fi
7777
7778 if test "$wxUSE_SPLASH" = yes; then
7779 echo "$ac_t""yes" 1>&6
7780 else
7781 echo "$ac_t""no" 1>&6
7782 fi
7783
7784
7785 enablestring=
7786 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7787echo "configure:7788: checking for --${enablestring:-enable}-textdlg" >&5
7788 no_cache=0
7789 # Check whether --enable-textdlg or --disable-textdlg was given.
7790if test "${enable_textdlg+set}" = set; then
7791 enableval="$enable_textdlg"
7792
7793 if test "$enableval" = yes; then
7794 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7795 else
7796 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7797 fi
7798
7799else
7800
7801 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7809
7810fi
7811
7812
7813 eval "$ac_cv_use_textdlg"
7814 if test "$no_cache" != 1; then
7815 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7816 fi
7817
7818 if test "$wxUSE_TEXTDLG" = yes; then
7819 echo "$ac_t""yes" 1>&6
7820 else
7821 echo "$ac_t""no" 1>&6
7822 fi
7823
7824
7825 enablestring=
7826 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7827echo "configure:7828: checking for --${enablestring:-enable}-tipdlg" >&5
7828 no_cache=0
7829 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7830if test "${enable_tipdlg+set}" = set; then
7831 enableval="$enable_tipdlg"
7832
7833 if test "$enableval" = yes; then
7834 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7835 else
7836 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7837 fi
7838
7839else
7840
7841 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7849
7850fi
7851
7852
7853 eval "$ac_cv_use_tipdlg"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_STARTUP_TIPS" = yes; then
7859 echo "$ac_t""yes" 1>&6
7860 else
7861 echo "$ac_t""no" 1>&6
7862 fi
7863
7864
7865 enablestring=
7866 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7867echo "configure:7868: checking for --${enablestring:-enable}-progressdlg" >&5
7868 no_cache=0
7869 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7870if test "${enable_progressdlg+set}" = set; then
7871 enableval="$enable_progressdlg"
7872
7873 if test "$enableval" = yes; then
7874 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7875 else
7876 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7877 fi
7878
7879else
7880
7881 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7882 if test "x$LINE" != x ; then
7883 eval "DEFAULT_$LINE"
7884 else
7885 no_cache=1
7886 fi
7887
7888 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7889
7890fi
7891
7892
7893 eval "$ac_cv_use_progressdlg"
7894 if test "$no_cache" != 1; then
7895 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7896 fi
7897
7898 if test "$wxUSE_PROGRESSDLG" = yes; then
7899 echo "$ac_t""yes" 1>&6
7900 else
7901 echo "$ac_t""no" 1>&6
7902 fi
7903
7904
7905 enablestring=
7906 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7907echo "configure:7908: checking for --${enablestring:-enable}-wizarddlg" >&5
7908 no_cache=0
7909 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7910if test "${enable_wizarddlg+set}" = set; then
7911 enableval="$enable_wizarddlg"
7912
7913 if test "$enableval" = yes; then
7914 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7915 else
7916 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7917 fi
7918
7919else
7920
7921 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7929
7930fi
7931
7932
7933 eval "$ac_cv_use_wizarddlg"
7934 if test "$no_cache" != 1; then
7935 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7936 fi
7937
7938 if test "$wxUSE_WIZARDDLG" = yes; then
7939 echo "$ac_t""yes" 1>&6
7940 else
7941 echo "$ac_t""no" 1>&6
7942 fi
7943
7944
7945
7946
7947 enablestring=
7948 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7949echo "configure:7950: checking for --${enablestring:-enable}-menus" >&5
7950 no_cache=0
7951 # Check whether --enable-menus or --disable-menus was given.
7952if test "${enable_menus+set}" = set; then
7953 enableval="$enable_menus"
7954
7955 if test "$enableval" = yes; then
7956 ac_cv_use_menus='wxUSE_MENUS=yes'
7957 else
7958 ac_cv_use_menus='wxUSE_MENUS=no'
7959 fi
7960
7961else
7962
7963 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7964 if test "x$LINE" != x ; then
7965 eval "DEFAULT_$LINE"
7966 else
7967 no_cache=1
7968 fi
7969
7970 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7971
7972fi
7973
7974
7975 eval "$ac_cv_use_menus"
7976 if test "$no_cache" != 1; then
7977 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7978 fi
7979
7980 if test "$wxUSE_MENUS" = yes; then
7981 echo "$ac_t""yes" 1>&6
7982 else
7983 echo "$ac_t""no" 1>&6
7984 fi
7985
7986
7987 enablestring=
7988 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7989echo "configure:7990: checking for --${enablestring:-enable}-miniframe" >&5
7990 no_cache=0
7991 # Check whether --enable-miniframe or --disable-miniframe was given.
7992if test "${enable_miniframe+set}" = set; then
7993 enableval="$enable_miniframe"
7994
7995 if test "$enableval" = yes; then
7996 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7997 else
7998 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7999 fi
8000
8001else
8002
8003 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8011
8012fi
8013
8014
8015 eval "$ac_cv_use_miniframe"
8016 if test "$no_cache" != 1; then
8017 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8018 fi
8019
8020 if test "$wxUSE_MINIFRAME" = yes; then
8021 echo "$ac_t""yes" 1>&6
8022 else
8023 echo "$ac_t""no" 1>&6
8024 fi
8025
8026
8027 enablestring=
8028 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8029echo "configure:8030: checking for --${enablestring:-enable}-tooltips" >&5
8030 no_cache=0
8031 # Check whether --enable-tooltips or --disable-tooltips was given.
8032if test "${enable_tooltips+set}" = set; then
8033 enableval="$enable_tooltips"
8034
8035 if test "$enableval" = yes; then
8036 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8037 else
8038 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8039 fi
8040
8041else
8042
8043 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8044 if test "x$LINE" != x ; then
8045 eval "DEFAULT_$LINE"
8046 else
8047 no_cache=1
8048 fi
8049
8050 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8051
8052fi
8053
8054
8055 eval "$ac_cv_use_tooltips"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_TOOLTIPS" = yes; then
8061 echo "$ac_t""yes" 1>&6
8062 else
8063 echo "$ac_t""no" 1>&6
8064 fi
8065
8066
8067 enablestring=
8068 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8069echo "configure:8070: checking for --${enablestring:-enable}-splines" >&5
8070 no_cache=0
8071 # Check whether --enable-splines or --disable-splines was given.
8072if test "${enable_splines+set}" = set; then
8073 enableval="$enable_splines"
8074
8075 if test "$enableval" = yes; then
8076 ac_cv_use_splines='wxUSE_SPLINES=yes'
8077 else
8078 ac_cv_use_splines='wxUSE_SPLINES=no'
8079 fi
8080
8081else
8082
8083 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8084 if test "x$LINE" != x ; then
8085 eval "DEFAULT_$LINE"
8086 else
8087 no_cache=1
8088 fi
8089
8090 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8091
8092fi
8093
8094
8095 eval "$ac_cv_use_splines"
8096 if test "$no_cache" != 1; then
8097 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8098 fi
8099
8100 if test "$wxUSE_SPLINES" = yes; then
8101 echo "$ac_t""yes" 1>&6
8102 else
8103 echo "$ac_t""no" 1>&6
8104 fi
8105
8106
8107 enablestring=
8108 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8109echo "configure:8110: checking for --${enablestring:-enable}-validators" >&5
8110 no_cache=0
8111 # Check whether --enable-validators or --disable-validators was given.
8112if test "${enable_validators+set}" = set; then
8113 enableval="$enable_validators"
8114
8115 if test "$enableval" = yes; then
8116 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8117 else
8118 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8119 fi
8120
8121else
8122
8123 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8124 if test "x$LINE" != x ; then
8125 eval "DEFAULT_$LINE"
8126 else
8127 no_cache=1
8128 fi
8129
8130 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8131
8132fi
8133
8134
8135 eval "$ac_cv_use_validators"
8136 if test "$no_cache" != 1; then
8137 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8138 fi
8139
8140 if test "$wxUSE_VALIDATORS" = yes; then
8141 echo "$ac_t""yes" 1>&6
8142 else
8143 echo "$ac_t""no" 1>&6
8144 fi
8145
8146
8147 enablestring=
8148 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8149echo "configure:8150: checking for --${enablestring:-enable}-busyinfo" >&5
8150 no_cache=0
8151 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8152if test "${enable_busyinfo+set}" = set; then
8153 enableval="$enable_busyinfo"
8154
8155 if test "$enableval" = yes; then
8156 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8157 else
8158 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8159 fi
8160
8161else
8162
8163 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8164 if test "x$LINE" != x ; then
8165 eval "DEFAULT_$LINE"
8166 else
8167 no_cache=1
8168 fi
8169
8170 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8171
8172fi
8173
8174
8175 eval "$ac_cv_use_busyinfo"
8176 if test "$no_cache" != 1; then
8177 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8178 fi
8179
8180 if test "$wxUSE_BUSYINFO" = yes; then
8181 echo "$ac_t""yes" 1>&6
8182 else
8183 echo "$ac_t""no" 1>&6
8184 fi
8185
8186
8187 enablestring=
8188 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8189echo "configure:8190: checking for --${enablestring:-enable}-joystick" >&5
8190 no_cache=0
8191 # Check whether --enable-joystick or --disable-joystick was given.
8192if test "${enable_joystick+set}" = set; then
8193 enableval="$enable_joystick"
8194
8195 if test "$enableval" = yes; then
8196 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8197 else
8198 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8199 fi
8200
8201else
8202
8203 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8204 if test "x$LINE" != x ; then
8205 eval "DEFAULT_$LINE"
8206 else
8207 no_cache=1
8208 fi
8209
8210 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8211
8212fi
8213
8214
8215 eval "$ac_cv_use_joystick"
8216 if test "$no_cache" != 1; then
8217 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8218 fi
8219
8220 if test "$wxUSE_JOYSTICK" = yes; then
8221 echo "$ac_t""yes" 1>&6
8222 else
8223 echo "$ac_t""no" 1>&6
8224 fi
8225
8226
8227 enablestring=
8228 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8229echo "configure:8230: checking for --${enablestring:-enable}-metafile" >&5
8230 no_cache=0
8231 # Check whether --enable-metafile or --disable-metafile was given.
8232if test "${enable_metafile+set}" = set; then
8233 enableval="$enable_metafile"
8234
8235 if test "$enableval" = yes; then
8236 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8237 else
8238 ac_cv_use_metafile='wxUSE_METAFILE=no'
8239 fi
8240
8241else
8242
8243 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8244 if test "x$LINE" != x ; then
8245 eval "DEFAULT_$LINE"
8246 else
8247 no_cache=1
8248 fi
8249
8250 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8251
8252fi
8253
8254
8255 eval "$ac_cv_use_metafile"
8256 if test "$no_cache" != 1; then
8257 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8258 fi
8259
8260 if test "$wxUSE_METAFILE" = yes; then
8261 echo "$ac_t""yes" 1>&6
8262 else
8263 echo "$ac_t""no" 1>&6
8264 fi
8265
8266
8267 enablestring=
8268 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8269echo "configure:8270: checking for --${enablestring:-enable}-dragimage" >&5
8270 no_cache=0
8271 # Check whether --enable-dragimage or --disable-dragimage was given.
8272if test "${enable_dragimage+set}" = set; then
8273 enableval="$enable_dragimage"
8274
8275 if test "$enableval" = yes; then
8276 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8277 else
8278 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8279 fi
8280
8281else
8282
8283 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8284 if test "x$LINE" != x ; then
8285 eval "DEFAULT_$LINE"
8286 else
8287 no_cache=1
8288 fi
8289
8290 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8291
8292fi
8293
8294
8295 eval "$ac_cv_use_dragimage"
8296 if test "$no_cache" != 1; then
8297 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8298 fi
8299
8300 if test "$wxUSE_DRAGIMAGE" = yes; then
8301 echo "$ac_t""yes" 1>&6
8302 else
8303 echo "$ac_t""no" 1>&6
8304 fi
8305
8306
8307 enablestring=
8308 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8309echo "configure:8310: checking for --${enablestring:-enable}-accessibility" >&5
8310 no_cache=0
8311 # Check whether --enable-accessibility or --disable-accessibility was given.
8312if test "${enable_accessibility+set}" = set; then
8313 enableval="$enable_accessibility"
8314
8315 if test "$enableval" = yes; then
8316 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8317 else
8318 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8319 fi
8320
8321else
8322
8323 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8324 if test "x$LINE" != x ; then
8325 eval "DEFAULT_$LINE"
8326 else
8327 no_cache=1
8328 fi
8329
8330 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8331
8332fi
8333
8334
8335 eval "$ac_cv_use_accessibility"
8336 if test "$no_cache" != 1; then
8337 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8338 fi
8339
8340 if test "$wxUSE_ACCESSIBILITY" = yes; then
8341 echo "$ac_t""yes" 1>&6
8342 else
8343 echo "$ac_t""no" 1>&6
8344 fi
8345
8346
8347
8348
8349 enablestring=
8350 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8351echo "configure:8352: checking for --${enablestring:-enable}-palette" >&5
8352 no_cache=0
8353 # Check whether --enable-palette or --disable-palette was given.
8354if test "${enable_palette+set}" = set; then
8355 enableval="$enable_palette"
8356
8357 if test "$enableval" = yes; then
8358 ac_cv_use_palette='wxUSE_PALETTE=yes'
8359 else
8360 ac_cv_use_palette='wxUSE_PALETTE=no'
8361 fi
8362
8363else
8364
8365 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8366 if test "x$LINE" != x ; then
8367 eval "DEFAULT_$LINE"
8368 else
8369 no_cache=1
8370 fi
8371
8372 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8373
8374fi
8375
8376
8377 eval "$ac_cv_use_palette"
8378 if test "$no_cache" != 1; then
8379 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8380 fi
8381
8382 if test "$wxUSE_PALETTE" = yes; then
8383 echo "$ac_t""yes" 1>&6
8384 else
8385 echo "$ac_t""no" 1>&6
8386 fi
8387
8388
8389 enablestring=
8390 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8391echo "configure:8392: checking for --${enablestring:-enable}-image" >&5
8392 no_cache=0
8393 # Check whether --enable-image or --disable-image was given.
8394if test "${enable_image+set}" = set; then
8395 enableval="$enable_image"
8396
8397 if test "$enableval" = yes; then
8398 ac_cv_use_image='wxUSE_IMAGE=yes'
8399 else
8400 ac_cv_use_image='wxUSE_IMAGE=no'
8401 fi
8402
8403else
8404
8405 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8413
8414fi
8415
8416
8417 eval "$ac_cv_use_image"
8418 if test "$no_cache" != 1; then
8419 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8420 fi
8421
8422 if test "$wxUSE_IMAGE" = yes; then
8423 echo "$ac_t""yes" 1>&6
8424 else
8425 echo "$ac_t""no" 1>&6
8426 fi
8427
8428
8429 enablestring=
8430 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8431echo "configure:8432: checking for --${enablestring:-enable}-gif" >&5
8432 no_cache=0
8433 # Check whether --enable-gif or --disable-gif was given.
8434if test "${enable_gif+set}" = set; then
8435 enableval="$enable_gif"
8436
8437 if test "$enableval" = yes; then
8438 ac_cv_use_gif='wxUSE_GIF=yes'
8439 else
8440 ac_cv_use_gif='wxUSE_GIF=no'
8441 fi
8442
8443else
8444
8445 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8446 if test "x$LINE" != x ; then
8447 eval "DEFAULT_$LINE"
8448 else
8449 no_cache=1
8450 fi
8451
8452 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8453
8454fi
8455
8456
8457 eval "$ac_cv_use_gif"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_GIF" = yes; then
8463 echo "$ac_t""yes" 1>&6
8464 else
8465 echo "$ac_t""no" 1>&6
8466 fi
8467
8468
8469 enablestring=
8470 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8471echo "configure:8472: checking for --${enablestring:-enable}-pcx" >&5
8472 no_cache=0
8473 # Check whether --enable-pcx or --disable-pcx was given.
8474if test "${enable_pcx+set}" = set; then
8475 enableval="$enable_pcx"
8476
8477 if test "$enableval" = yes; then
8478 ac_cv_use_pcx='wxUSE_PCX=yes'
8479 else
8480 ac_cv_use_pcx='wxUSE_PCX=no'
8481 fi
8482
8483else
8484
8485 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8486 if test "x$LINE" != x ; then
8487 eval "DEFAULT_$LINE"
8488 else
8489 no_cache=1
8490 fi
8491
8492 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8493
8494fi
8495
8496
8497 eval "$ac_cv_use_pcx"
8498 if test "$no_cache" != 1; then
8499 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8500 fi
8501
8502 if test "$wxUSE_PCX" = yes; then
8503 echo "$ac_t""yes" 1>&6
8504 else
8505 echo "$ac_t""no" 1>&6
8506 fi
8507
8508
8509 enablestring=
8510 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8511echo "configure:8512: checking for --${enablestring:-enable}-iff" >&5
8512 no_cache=0
8513 # Check whether --enable-iff or --disable-iff was given.
8514if test "${enable_iff+set}" = set; then
8515 enableval="$enable_iff"
8516
8517 if test "$enableval" = yes; then
8518 ac_cv_use_iff='wxUSE_IFF=yes'
8519 else
8520 ac_cv_use_iff='wxUSE_IFF=no'
8521 fi
8522
8523else
8524
8525 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8526 if test "x$LINE" != x ; then
8527 eval "DEFAULT_$LINE"
8528 else
8529 no_cache=1
8530 fi
8531
8532 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8533
8534fi
8535
8536
8537 eval "$ac_cv_use_iff"
8538 if test "$no_cache" != 1; then
8539 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8540 fi
8541
8542 if test "$wxUSE_IFF" = yes; then
8543 echo "$ac_t""yes" 1>&6
8544 else
8545 echo "$ac_t""no" 1>&6
8546 fi
8547
8548
8549 enablestring=
8550 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8551echo "configure:8552: checking for --${enablestring:-enable}-pnm" >&5
8552 no_cache=0
8553 # Check whether --enable-pnm or --disable-pnm was given.
8554if test "${enable_pnm+set}" = set; then
8555 enableval="$enable_pnm"
8556
8557 if test "$enableval" = yes; then
8558 ac_cv_use_pnm='wxUSE_PNM=yes'
8559 else
8560 ac_cv_use_pnm='wxUSE_PNM=no'
8561 fi
8562
8563else
8564
8565 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8573
8574fi
8575
8576
8577 eval "$ac_cv_use_pnm"
8578 if test "$no_cache" != 1; then
8579 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8580 fi
8581
8582 if test "$wxUSE_PNM" = yes; then
8583 echo "$ac_t""yes" 1>&6
8584 else
8585 echo "$ac_t""no" 1>&6
8586 fi
8587
8588
8589 enablestring=
8590 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8591echo "configure:8592: checking for --${enablestring:-enable}-xpm" >&5
8592 no_cache=0
8593 # Check whether --enable-xpm or --disable-xpm was given.
8594if test "${enable_xpm+set}" = set; then
8595 enableval="$enable_xpm"
8596
8597 if test "$enableval" = yes; then
8598 ac_cv_use_xpm='wxUSE_XPM=yes'
8599 else
8600 ac_cv_use_xpm='wxUSE_XPM=no'
8601 fi
8602
8603else
8604
8605 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8606 if test "x$LINE" != x ; then
8607 eval "DEFAULT_$LINE"
8608 else
8609 no_cache=1
8610 fi
8611
8612 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8613
8614fi
8615
8616
8617 eval "$ac_cv_use_xpm"
8618 if test "$no_cache" != 1; then
8619 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8620 fi
8621
8622 if test "$wxUSE_XPM" = yes; then
8623 echo "$ac_t""yes" 1>&6
8624 else
8625 echo "$ac_t""no" 1>&6
8626 fi
8627
8628
8629 enablestring=
8630 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8631echo "configure:8632: checking for --${enablestring:-enable}-ico_cur" >&5
8632 no_cache=0
8633 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8634if test "${enable_ico_cur+set}" = set; then
8635 enableval="$enable_ico_cur"
8636
8637 if test "$enableval" = yes; then
8638 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8639 else
8640 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8641 fi
8642
8643else
8644
8645 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8646 if test "x$LINE" != x ; then
8647 eval "DEFAULT_$LINE"
8648 else
8649 no_cache=1
8650 fi
8651
8652 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8653
8654fi
8655
8656
8657 eval "$ac_cv_use_ico_cur"
8658 if test "$no_cache" != 1; then
8659 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8660 fi
8661
8662 if test "$wxUSE_ICO_CUR" = yes; then
8663 echo "$ac_t""yes" 1>&6
8664 else
8665 echo "$ac_t""no" 1>&6
8666 fi
8667
8668
8669fi
8670
8671case "${host}" in
8672 *-pc-os2_emx | *-pc-os2-emx )
8673 PATH_IFS=';'
8674 LEX_STEM="lexyy"
8675 ;;
8676 *)
8677 PATH_IFS=':'
8678 LEX_STEM="lex.yy"
8679 ;;
8680esac
8681
8682
8683
8684 echo "saving argument cache $wx_arg_cache_file"
8685 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8686
8687
8688
8689echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8690echo "configure:8691: checking for toolkit" >&5
8691
8692# In Wine, we need to default to MSW, not GTK or MOTIF
8693if test "$wxUSE_WINE" = "yes"; then
8694 DEFAULT_DEFAULT_wxUSE_GTK=0
8695 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8696 DEFAULT_DEFAULT_wxUSE_MSW=1
8697fi
8698
8699if test "$wxUSE_GUI" = "yes"; then
8700
8701 if test "$USE_BEOS" = 1; then
8702 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8703 fi
8704
8705 if test "$TOOLKIT_GIVEN" = 1; then
8706 for toolkit in `echo $ALL_TOOLKITS`; do
8707 var=wxUSE_$toolkit
8708 eval "value=\$${var}"
8709 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8710 done
8711 else
8712 for toolkit in `echo $ALL_TOOLKITS`; do
8713 if test "$has_toolkit_in_cache" != 1; then
8714 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8715 else
8716 var=DEFAULT_wxUSE_$toolkit
8717 fi
8718 eval "wxUSE_$toolkit=\$${var}"
8719 done
8720 fi
8721
8722 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8723 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8724 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8725
8726 case "${host}" in
8727 *-pc-os2_emx | *-pc-os2-emx )
8728 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8729 esac
8730
8731 case "$NUM_TOOLKITS" in
8732 1)
8733 ;;
8734 0)
8735 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8736 ;;
8737 *)
8738 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8739 esac
8740
8741 for toolkit in `echo $ALL_TOOLKITS`; do
8742 var=wxUSE_$toolkit
8743 eval "value=\$${var}"
8744 if test "x$value" != x; then
8745 cache_var=CACHE_$toolkit
8746 eval "cache=\$${cache_var}"
8747 if test "$cache" = 1; then
8748 echo "$var=$value" >> ${wx_arg_cache_file}
8749 fi
8750 if test "$value" = 1; then
8751 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8752 echo "$ac_t""$toolkit_echo" 1>&6
8753 fi
8754 fi
8755 done
8756else
8757 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8758fi
8759
8760wants_win32=0
8761doesnt_want_win32=0
8762case "${host}" in
8763 *-*-cygwin*)
8764 if test "$wxUSE_MSW" = 1 ; then
8765 wants_win32=1
8766 else
8767 doesnt_want_win32=1
8768 fi
8769 ;;
8770 *-*-mingw*)
8771 wants_win32=1
8772 ;;
8773esac
8774
8775if test "$wxUSE_WINE" = "yes"; then
8776 wants_win32=1
8777 CC=winegcc
8778 CXX=wineg++
8779 RESCOMP=wrc
8780fi
8781
8782if test "$wants_win32" = 1 ; then
8783 USE_UNIX=0
8784 USE_WIN32=1
8785 cat >> confdefs.h <<\EOF
8786#define __WIN32__ 1
8787EOF
8788
8789 cat >> confdefs.h <<\EOF
8790#define __WIN95__ 1
8791EOF
8792
8793 cat >> confdefs.h <<\EOF
8794#define __WINDOWS__ 1
8795EOF
8796
8797 cat >> confdefs.h <<\EOF
8798#define __GNUWIN32__ 1
8799EOF
8800
8801 cat >> confdefs.h <<\EOF
8802#define STRICT 1
8803EOF
8804
8805 cat >> confdefs.h <<\EOF
8806#define WINVER 0x0400
8807EOF
8808
8809fi
8810if test "$doesnt_want_win32" = 1 ; then
8811 USE_UNIX=1
8812 USE_WIN32=0
8813fi
8814
8815if test "$USE_UNIX" = 1 ; then
8816 wxUSE_UNIX=yes
8817 cat >> confdefs.h <<\EOF
8818#define __UNIX__ 1
8819EOF
8820
8821fi
8822
8823
8824cat > confcache <<\EOF
8825# This file is a shell script that caches the results of configure
8826# tests run on this system so they can be shared between configure
8827# scripts and configure runs. It is not useful on other systems.
8828# If it contains results you don't want to keep, you may remove or edit it.
8829#
8830# By default, configure uses ./config.cache as the cache file,
8831# creating it if it does not exist already. You can give configure
8832# the --cache-file=FILE option to use a different cache file; that is
8833# what configure does when it calls configure scripts in
8834# subdirectories, so they share the cache.
8835# Giving --cache-file=/dev/null disables caching, for debugging configure.
8836# config.status only pays attention to the cache file if you give it the
8837# --recheck option to rerun configure.
8838#
8839EOF
8840# The following way of writing the cache mishandles newlines in values,
8841# but we know of no workaround that is simple, portable, and efficient.
8842# So, don't put newlines in cache variables' values.
8843# Ultrix sh set writes to stderr and can't be redirected directly,
8844# and sets the high bit in the cache file unless we assign to the vars.
8845(set) 2>&1 |
8846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8847 *ac_space=\ *)
8848 # `set' does not quote correctly, so add quotes (double-quote substitution
8849 # turns \\\\ into \\, and sed turns \\ into \).
8850 sed -n \
8851 -e "s/'/'\\\\''/g" \
8852 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8853 ;;
8854 *)
8855 # `set' quotes correctly as required by POSIX, so do not add quotes.
8856 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8857 ;;
8858 esac >> confcache
8859if cmp -s $cache_file confcache; then
8860 :
8861else
8862 if test -w $cache_file; then
8863 echo "updating cache $cache_file"
8864 cat confcache > $cache_file
8865 else
8866 echo "not updating unwritable cache $cache_file"
8867 fi
8868fi
8869rm -f confcache
8870
8871
8872if test "$build" != "$host" ; then
8873 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8874 CC=$host_alias-gcc
8875 CXX=$host_alias-c++
8876 AR=$host_alias-ar
8877 RANLIB=$host_alias-ranlib
8878 DLLTOOL=$host_alias-dlltool
8879 RESCOMP=$host_alias-windres
8880 LD=$host_alias-ld
8881 NM=$host_alias-nm
8882 STRIP=$host_alias-strip
8883 else
8884 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8885 fi
8886fi
8887
8888CFLAGS=${CFLAGS:=}
8889# Extract the first word of "gcc", so it can be a program name with args.
8890set dummy gcc; ac_word=$2
8891echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8892echo "configure:8893: checking for $ac_word" >&5
8893if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895else
8896 if test -n "$CC"; then
8897 ac_cv_prog_CC="$CC" # Let the user override the test.
8898else
8899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8900 ac_dummy="$PATH"
8901 for ac_dir in $ac_dummy; do
8902 test -z "$ac_dir" && ac_dir=.
8903 if test -f $ac_dir/$ac_word; then
8904 ac_cv_prog_CC="gcc"
8905 break
8906 fi
8907 done
8908 IFS="$ac_save_ifs"
8909fi
8910fi
8911CC="$ac_cv_prog_CC"
8912if test -n "$CC"; then
8913 echo "$ac_t""$CC" 1>&6
8914else
8915 echo "$ac_t""no" 1>&6
8916fi
8917
8918if test -z "$CC"; then
8919 # Extract the first word of "cc", so it can be a program name with args.
8920set dummy cc; ac_word=$2
8921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8922echo "configure:8923: checking for $ac_word" >&5
8923if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8925else
8926 if test -n "$CC"; then
8927 ac_cv_prog_CC="$CC" # Let the user override the test.
8928else
8929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8930 ac_prog_rejected=no
8931 ac_dummy="$PATH"
8932 for ac_dir in $ac_dummy; do
8933 test -z "$ac_dir" && ac_dir=.
8934 if test -f $ac_dir/$ac_word; then
8935 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8936 ac_prog_rejected=yes
8937 continue
8938 fi
8939 ac_cv_prog_CC="cc"
8940 break
8941 fi
8942 done
8943 IFS="$ac_save_ifs"
8944if test $ac_prog_rejected = yes; then
8945 # We found a bogon in the path, so make sure we never use it.
8946 set dummy $ac_cv_prog_CC
8947 shift
8948 if test $# -gt 0; then
8949 # We chose a different compiler from the bogus one.
8950 # However, it has the same basename, so the bogon will be chosen
8951 # first if we set CC to just the basename; use the full file name.
8952 shift
8953 set dummy "$ac_dir/$ac_word" "$@"
8954 shift
8955 ac_cv_prog_CC="$@"
8956 fi
8957fi
8958fi
8959fi
8960CC="$ac_cv_prog_CC"
8961if test -n "$CC"; then
8962 echo "$ac_t""$CC" 1>&6
8963else
8964 echo "$ac_t""no" 1>&6
8965fi
8966
8967 if test -z "$CC"; then
8968 case "`uname -s`" in
8969 *win32* | *WIN32*)
8970 # Extract the first word of "cl", so it can be a program name with args.
8971set dummy cl; ac_word=$2
8972echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8973echo "configure:8974: checking for $ac_word" >&5
8974if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8975 echo $ac_n "(cached) $ac_c" 1>&6
8976else
8977 if test -n "$CC"; then
8978 ac_cv_prog_CC="$CC" # Let the user override the test.
8979else
8980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8981 ac_dummy="$PATH"
8982 for ac_dir in $ac_dummy; do
8983 test -z "$ac_dir" && ac_dir=.
8984 if test -f $ac_dir/$ac_word; then
8985 ac_cv_prog_CC="cl"
8986 break
8987 fi
8988 done
8989 IFS="$ac_save_ifs"
8990fi
8991fi
8992CC="$ac_cv_prog_CC"
8993if test -n "$CC"; then
8994 echo "$ac_t""$CC" 1>&6
8995else
8996 echo "$ac_t""no" 1>&6
8997fi
8998 ;;
8999 esac
9000 fi
9001 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9002fi
9003
9004echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9005echo "configure:9006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9006
9007ac_ext=c
9008# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9009ac_cpp='$CPP $CPPFLAGS'
9010ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9011ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9012cross_compiling=$ac_cv_prog_cc_cross
9013
9014cat > conftest.$ac_ext << EOF
9015
9016#line 9017 "configure"
9017#include "confdefs.h"
9018
9019main(){return(0);}
9020EOF
9021if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022 ac_cv_prog_cc_works=yes
9023 # If we can't run a trivial program, we are probably using a cross compiler.
9024 if (./conftest; exit) 2>/dev/null; then
9025 ac_cv_prog_cc_cross=no
9026 else
9027 ac_cv_prog_cc_cross=yes
9028 fi
9029else
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 ac_cv_prog_cc_works=no
9033fi
9034rm -fr conftest*
9035ac_ext=c
9036# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9037ac_cpp='$CPP $CPPFLAGS'
9038ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9039ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9040cross_compiling=$ac_cv_prog_cc_cross
9041
9042echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9043if test $ac_cv_prog_cc_works = no; then
9044 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9045fi
9046echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9047echo "configure:9048: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9048echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9049cross_compiling=$ac_cv_prog_cc_cross
9050
9051echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9052echo "configure:9053: checking whether we are using GNU C" >&5
9053if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9055else
9056 cat > conftest.c <<EOF
9057#ifdef __GNUC__
9058 yes;
9059#endif
9060EOF
9061if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9062 ac_cv_prog_gcc=yes
9063else
9064 ac_cv_prog_gcc=no
9065fi
9066fi
9067
9068echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9069
9070if test $ac_cv_prog_gcc = yes; then
9071 GCC=yes
9072else
9073 GCC=
9074fi
9075
9076ac_test_CFLAGS="${CFLAGS+set}"
9077ac_save_CFLAGS="$CFLAGS"
9078CFLAGS=
9079echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9080echo "configure:9081: checking whether ${CC-cc} accepts -g" >&5
9081if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9083else
9084 echo 'void f(){}' > conftest.c
9085if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9086 ac_cv_prog_cc_g=yes
9087else
9088 ac_cv_prog_cc_g=no
9089fi
9090rm -f conftest*
9091
9092fi
9093
9094echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9095if test "$ac_test_CFLAGS" = set; then
9096 CFLAGS="$ac_save_CFLAGS"
9097elif test $ac_cv_prog_cc_g = yes; then
9098 if test "$GCC" = yes; then
9099 CFLAGS="-g -O2"
9100 else
9101 CFLAGS="-g"
9102 fi
9103else
9104 if test "$GCC" = yes; then
9105 CFLAGS="-O2"
9106 else
9107 CFLAGS=
9108 fi
9109fi
9110
9111
9112echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9113echo "configure:9114: checking how to run the C preprocessor" >&5
9114# On Suns, sometimes $CPP names a directory.
9115if test -n "$CPP" && test -d "$CPP"; then
9116 CPP=
9117fi
9118if test -z "$CPP"; then
9119if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9121else
9122 # This must be in double quotes, not single quotes, because CPP may get
9123 # substituted into the Makefile and "${CC-cc}" will confuse make.
9124 CPP="${CC-cc} -E"
9125 # On the NeXT, cc -E runs the code through the compiler's parser,
9126 # not just through cpp.
9127 cat > conftest.$ac_ext <<EOF
9128#line 9129 "configure"
9129#include "confdefs.h"
9130#include <assert.h>
9131Syntax Error
9132EOF
9133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9134{ (eval echo configure:9135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9136if test -z "$ac_err"; then
9137 :
9138else
9139 echo "$ac_err" >&5
9140 echo "configure: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9142 rm -rf conftest*
9143 CPP="${CC-cc} -E -traditional-cpp"
9144 cat > conftest.$ac_ext <<EOF
9145#line 9146 "configure"
9146#include "confdefs.h"
9147#include <assert.h>
9148Syntax Error
9149EOF
9150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9151{ (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9153if test -z "$ac_err"; then
9154 :
9155else
9156 echo "$ac_err" >&5
9157 echo "configure: failed program was:" >&5
9158 cat conftest.$ac_ext >&5
9159 rm -rf conftest*
9160 CPP="${CC-cc} -nologo -E"
9161 cat > conftest.$ac_ext <<EOF
9162#line 9163 "configure"
9163#include "confdefs.h"
9164#include <assert.h>
9165Syntax Error
9166EOF
9167ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9168{ (eval echo configure:9169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9169ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9170if test -z "$ac_err"; then
9171 :
9172else
9173 echo "$ac_err" >&5
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 rm -rf conftest*
9177 CPP=/lib/cpp
9178fi
9179rm -f conftest*
9180fi
9181rm -f conftest*
9182fi
9183rm -f conftest*
9184 ac_cv_prog_CPP="$CPP"
9185fi
9186 CPP="$ac_cv_prog_CPP"
9187else
9188 ac_cv_prog_CPP="$CPP"
9189fi
9190echo "$ac_t""$CPP" 1>&6
9191
9192if test $ac_cv_prog_gcc = yes; then
9193 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9194echo "configure:9195: checking whether ${CC-cc} needs -traditional" >&5
9195if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9196 echo $ac_n "(cached) $ac_c" 1>&6
9197else
9198 ac_pattern="Autoconf.*'x'"
9199 cat > conftest.$ac_ext <<EOF
9200#line 9201 "configure"
9201#include "confdefs.h"
9202#include <sgtty.h>
9203Autoconf TIOCGETP
9204EOF
9205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9206 egrep "$ac_pattern" >/dev/null 2>&1; then
9207 rm -rf conftest*
9208 ac_cv_prog_gcc_traditional=yes
9209else
9210 rm -rf conftest*
9211 ac_cv_prog_gcc_traditional=no
9212fi
9213rm -f conftest*
9214
9215
9216 if test $ac_cv_prog_gcc_traditional = no; then
9217 cat > conftest.$ac_ext <<EOF
9218#line 9219 "configure"
9219#include "confdefs.h"
9220#include <termio.h>
9221Autoconf TCGETA
9222EOF
9223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9224 egrep "$ac_pattern" >/dev/null 2>&1; then
9225 rm -rf conftest*
9226 ac_cv_prog_gcc_traditional=yes
9227fi
9228rm -f conftest*
9229
9230 fi
9231fi
9232
9233echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9234 if test $ac_cv_prog_gcc_traditional = yes; then
9235 CC="$CC -traditional"
9236 fi
9237fi
9238
9239
9240
9241ac_ext=C
9242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9243ac_cpp='$CXXCPP $CPPFLAGS'
9244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9246cross_compiling=$ac_cv_prog_cxx_cross
9247
9248
9249CXXFLAGS=${CXXFLAGS:=}
9250for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9251do
9252# Extract the first word of "$ac_prog", so it can be a program name with args.
9253set dummy $ac_prog; ac_word=$2
9254echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9255echo "configure:9256: checking for $ac_word" >&5
9256if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9258else
9259 if test -n "$CXX"; then
9260 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9261else
9262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9263 ac_dummy="$PATH"
9264 for ac_dir in $ac_dummy; do
9265 test -z "$ac_dir" && ac_dir=.
9266 if test -f $ac_dir/$ac_word; then
9267 ac_cv_prog_CXX="$ac_prog"
9268 break
9269 fi
9270 done
9271 IFS="$ac_save_ifs"
9272fi
9273fi
9274CXX="$ac_cv_prog_CXX"
9275if test -n "$CXX"; then
9276 echo "$ac_t""$CXX" 1>&6
9277else
9278 echo "$ac_t""no" 1>&6
9279fi
9280
9281test -n "$CXX" && break
9282done
9283test -n "$CXX" || CXX="gcc"
9284
9285
9286echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9287echo "configure:9288: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9288
9289ac_ext=C
9290# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9291ac_cpp='$CXXCPP $CPPFLAGS'
9292ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9293ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9294cross_compiling=$ac_cv_prog_cxx_cross
9295
9296cat > conftest.$ac_ext << EOF
9297
9298#line 9299 "configure"
9299#include "confdefs.h"
9300
9301int main(){return(0);}
9302EOF
9303if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9304 ac_cv_prog_cxx_works=yes
9305 # If we can't run a trivial program, we are probably using a cross compiler.
9306 if (./conftest; exit) 2>/dev/null; then
9307 ac_cv_prog_cxx_cross=no
9308 else
9309 ac_cv_prog_cxx_cross=yes
9310 fi
9311else
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 ac_cv_prog_cxx_works=no
9315fi
9316rm -fr conftest*
9317ac_ext=C
9318# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9319ac_cpp='$CXXCPP $CPPFLAGS'
9320ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9321ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9322cross_compiling=$ac_cv_prog_cxx_cross
9323
9324echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9325if test $ac_cv_prog_cxx_works = no; then
9326 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9327fi
9328echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9329echo "configure:9330: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9330echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9331cross_compiling=$ac_cv_prog_cxx_cross
9332
9333echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9334echo "configure:9335: checking whether we are using GNU C++" >&5
9335if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
9337else
9338 cat > conftest.C <<EOF
9339#ifdef __GNUC__
9340 yes;
9341#endif
9342EOF
9343if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9344 ac_cv_prog_gxx=yes
9345else
9346 ac_cv_prog_gxx=no
9347fi
9348fi
9349
9350echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9351
9352if test $ac_cv_prog_gxx = yes; then
9353 GXX=yes
9354else
9355 GXX=
9356fi
9357
9358ac_test_CXXFLAGS="${CXXFLAGS+set}"
9359ac_save_CXXFLAGS="$CXXFLAGS"
9360CXXFLAGS=
9361echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9362echo "configure:9363: checking whether ${CXX-g++} accepts -g" >&5
9363if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9365else
9366 echo 'void f(){}' > conftest.cc
9367if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9368 ac_cv_prog_cxx_g=yes
9369else
9370 ac_cv_prog_cxx_g=no
9371fi
9372rm -f conftest*
9373
9374fi
9375
9376echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9377if test "$ac_test_CXXFLAGS" = set; then
9378 CXXFLAGS="$ac_save_CXXFLAGS"
9379elif test $ac_cv_prog_cxx_g = yes; then
9380 if test "$GXX" = yes; then
9381 CXXFLAGS="-g -O2"
9382 else
9383 CXXFLAGS="-g"
9384 fi
9385else
9386 if test "$GXX" = yes; then
9387 CXXFLAGS="-O2"
9388 else
9389 CXXFLAGS=
9390 fi
9391fi
9392
9393
9394ac_ext=c
9395# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9396ac_cpp='$CPP $CPPFLAGS'
9397ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9398ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9399cross_compiling=$ac_cv_prog_cc_cross
9400
9401
9402# Extract the first word of "ranlib", so it can be a program name with args.
9403set dummy ranlib; ac_word=$2
9404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9405echo "configure:9406: checking for $ac_word" >&5
9406if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9408else
9409 if test -n "$RANLIB"; then
9410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9411else
9412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9413 ac_dummy="$PATH"
9414 for ac_dir in $ac_dummy; do
9415 test -z "$ac_dir" && ac_dir=.
9416 if test -f $ac_dir/$ac_word; then
9417 ac_cv_prog_RANLIB="ranlib"
9418 break
9419 fi
9420 done
9421 IFS="$ac_save_ifs"
9422 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9423fi
9424fi
9425RANLIB="$ac_cv_prog_RANLIB"
9426if test -n "$RANLIB"; then
9427 echo "$ac_t""$RANLIB" 1>&6
9428else
9429 echo "$ac_t""no" 1>&6
9430fi
9431
9432
9433# Extract the first word of "ar", so it can be a program name with args.
9434set dummy ar; ac_word=$2
9435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9436echo "configure:9437: checking for $ac_word" >&5
9437if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9439else
9440 if test -n "$AR"; then
9441 ac_cv_prog_AR="$AR" # Let the user override the test.
9442else
9443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9444 ac_dummy="$PATH"
9445 for ac_dir in $ac_dummy; do
9446 test -z "$ac_dir" && ac_dir=.
9447 if test -f $ac_dir/$ac_word; then
9448 ac_cv_prog_AR="ar"
9449 break
9450 fi
9451 done
9452 IFS="$ac_save_ifs"
9453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9454fi
9455fi
9456AR="$ac_cv_prog_AR"
9457if test -n "$AR"; then
9458 echo "$ac_t""$AR" 1>&6
9459else
9460 echo "$ac_t""no" 1>&6
9461fi
9462
9463
9464# Find a good install program. We prefer a C program (faster),
9465# so one script is as good as another. But avoid the broken or
9466# incompatible versions:
9467# SysV /etc/install, /usr/sbin/install
9468# SunOS /usr/etc/install
9469# IRIX /sbin/install
9470# AIX /bin/install
9471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9474# ./install, which can be erroneously created by make from ./install.sh.
9475echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9476echo "configure:9477: checking for a BSD compatible install" >&5
9477if test -z "$INSTALL"; then
9478if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
9480else
9481 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9482 for ac_dir in $PATH; do
9483 # Account for people who put trailing slashes in PATH elements.
9484 case "$ac_dir/" in
9485 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9486 *)
9487 # OSF1 and SCO ODT 3.0 have their own names for install.
9488 # Don't use installbsd from OSF since it installs stuff as root
9489 # by default.
9490 for ac_prog in ginstall scoinst install; do
9491 if test -f $ac_dir/$ac_prog; then
9492 if test $ac_prog = install &&
9493 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9494 # AIX install. It has an incompatible calling convention.
9495 :
9496 else
9497 ac_cv_path_install="$ac_dir/$ac_prog -c"
9498 break 2
9499 fi
9500 fi
9501 done
9502 ;;
9503 esac
9504 done
9505 IFS="$ac_save_IFS"
9506
9507fi
9508 if test "${ac_cv_path_install+set}" = set; then
9509 INSTALL="$ac_cv_path_install"
9510 else
9511 # As a last resort, use the slow shell script. We don't cache a
9512 # path for INSTALL within a source directory, because that will
9513 # break other packages using the cache if that directory is
9514 # removed, or if the path is relative.
9515 INSTALL="$ac_install_sh"
9516 fi
9517fi
9518echo "$ac_t""$INSTALL" 1>&6
9519
9520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9521# It thinks the first close brace ends the variable substitution.
9522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9523
9524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9525
9526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9527
9528
9529case ${INSTALL} in
9530 /* ) # Absolute
9531 ;;
9532 ?:* ) # Drive letter, considered as absolute.
9533 ;;
9534 *)
9535 INSTALL=`pwd`/${INSTALL} ;;
9536esac
9537
9538case ${host} in
9539 *-hp-hpux* )
9540 INSTALL_DIR="mkdir"
9541 ;;
9542
9543 *) INSTALL_DIR="$INSTALL -d"
9544 ;;
9545esac
9546
9547
9548case "${host}" in
9549
9550 powerpc-*-darwin* )
9551 INSTALL_PROGRAM="cp -fp"
9552 INSTALL_DATA="cp -fp"
9553 ;;
9554 *)
9555 ;;
9556esac
9557
9558# Extract the first word of "strip", so it can be a program name with args.
9559set dummy strip; ac_word=$2
9560echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9561echo "configure:9562: checking for $ac_word" >&5
9562if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9564else
9565 if test -n "$STRIP"; then
9566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9567else
9568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9569 ac_dummy="$PATH"
9570 for ac_dir in $ac_dummy; do
9571 test -z "$ac_dir" && ac_dir=.
9572 if test -f $ac_dir/$ac_word; then
9573 ac_cv_prog_STRIP="strip"
9574 break
9575 fi
9576 done
9577 IFS="$ac_save_ifs"
9578 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9579fi
9580fi
9581STRIP="$ac_cv_prog_STRIP"
9582if test -n "$STRIP"; then
9583 echo "$ac_t""$STRIP" 1>&6
9584else
9585 echo "$ac_t""no" 1>&6
9586fi
9587
9588
9589echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9590echo "configure:9591: checking if make is GNU make" >&5
9591if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593else
9594
9595 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9596 egrep -s GNU > /dev/null); then
9597 wx_cv_prog_makeisgnu="yes"
9598 else
9599 wx_cv_prog_makeisgnu="no"
9600 fi
9601
9602fi
9603
9604echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9605
9606if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9607 IF_GNU_MAKE=""
9608else
9609 IF_GNU_MAKE="#"
9610fi
9611
9612
9613
9614if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9615echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9616echo "configure:9617: checking if make supports VPATH" >&5
9617if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9619else
9620
9621cat - << EOF > confMake
9622check : file
9623 cp \$? \$@
9624 cp \$? final_file
9625EOF
9626
9627if test ! -d sub ; then
9628 mkdir sub
9629fi
9630echo dummy > sub/file
9631${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9632RESULT=$?
9633rm -f sub/file check final_file confMake
9634rmdir sub
9635if test "$RESULT" = 0; then
9636 wx_cv_prog_makevpath="yes"
9637else
9638 wx_cv_prog_makevpath="no"
9639fi
9640
9641fi
9642
9643echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9644
9645if test "x$wx_cv_prog_makevpath" != "xyes"; then
9646{ echo "configure: error:
9647You need a make-utility that is able to use the variable
9648VPATH correctly.
9649If your version of make does not support VPATH correctly,
9650please install GNU-make (possibly as gmake), and start
9651configure with the following command:
9652export MAKE=gmake; ./configure for sh-type shells
9653setenv MAKE gmake; ./configure for csh-type shells
9654Also please do remember to use gmake in this case every time
9655you are trying to compile.
9656" 1>&2; exit 1; }
9657fi fi
9658for ac_prog in 'bison -y' byacc
9659do
9660# Extract the first word of "$ac_prog", so it can be a program name with args.
9661set dummy $ac_prog; ac_word=$2
9662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9663echo "configure:9664: checking for $ac_word" >&5
9664if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666else
9667 if test -n "$YACC"; then
9668 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9669else
9670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9671 ac_dummy="$PATH"
9672 for ac_dir in $ac_dummy; do
9673 test -z "$ac_dir" && ac_dir=.
9674 if test -f $ac_dir/$ac_word; then
9675 ac_cv_prog_YACC="$ac_prog"
9676 break
9677 fi
9678 done
9679 IFS="$ac_save_ifs"
9680fi
9681fi
9682YACC="$ac_cv_prog_YACC"
9683if test -n "$YACC"; then
9684 echo "$ac_t""$YACC" 1>&6
9685else
9686 echo "$ac_t""no" 1>&6
9687fi
9688
9689test -n "$YACC" && break
9690done
9691test -n "$YACC" || YACC="yacc"
9692
9693
9694# Extract the first word of "flex", so it can be a program name with args.
9695set dummy flex; ac_word=$2
9696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9697echo "configure:9698: checking for $ac_word" >&5
9698if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9700else
9701 if test -n "$LEX"; then
9702 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9703else
9704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9705 ac_dummy="$PATH"
9706 for ac_dir in $ac_dummy; do
9707 test -z "$ac_dir" && ac_dir=.
9708 if test -f $ac_dir/$ac_word; then
9709 ac_cv_prog_LEX="flex"
9710 break
9711 fi
9712 done
9713 IFS="$ac_save_ifs"
9714 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9715fi
9716fi
9717LEX="$ac_cv_prog_LEX"
9718if test -n "$LEX"; then
9719 echo "$ac_t""$LEX" 1>&6
9720else
9721 echo "$ac_t""no" 1>&6
9722fi
9723
9724if test -z "$LEXLIB"
9725then
9726 case "$LEX" in
9727 flex*) ac_lib=fl ;;
9728 *) ac_lib=l ;;
9729 esac
9730 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9731echo "configure:9732: checking for yywrap in -l$ac_lib" >&5
9732ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9734 echo $ac_n "(cached) $ac_c" 1>&6
9735else
9736 ac_save_LIBS="$LIBS"
9737LIBS="-l$ac_lib $LIBS"
9738cat > conftest.$ac_ext <<EOF
9739#line 9740 "configure"
9740#include "confdefs.h"
9741/* Override any gcc2 internal prototype to avoid an error. */
9742/* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
9744char yywrap();
9745
9746int main() {
9747yywrap()
9748; return 0; }
9749EOF
9750if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9751 rm -rf conftest*
9752 eval "ac_cv_lib_$ac_lib_var=yes"
9753else
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 rm -rf conftest*
9757 eval "ac_cv_lib_$ac_lib_var=no"
9758fi
9759rm -f conftest*
9760LIBS="$ac_save_LIBS"
9761
9762fi
9763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9764 echo "$ac_t""yes" 1>&6
9765 LEXLIB="-l$ac_lib"
9766else
9767 echo "$ac_t""no" 1>&6
9768fi
9769
9770fi
9771
9772
9773echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9774echo "configure:9775: checking whether ln -s works" >&5
9775if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777else
9778 rm -f conftestdata
9779if ln -s X conftestdata 2>/dev/null
9780then
9781 rm -f conftestdata
9782 ac_cv_prog_LN_S="ln -s"
9783else
9784 ac_cv_prog_LN_S=ln
9785fi
9786fi
9787LN_S="$ac_cv_prog_LN_S"
9788if test "$ac_cv_prog_LN_S" = "ln -s"; then
9789 echo "$ac_t""yes" 1>&6
9790else
9791 echo "$ac_t""no" 1>&6
9792fi
9793
9794
9795case "${host}" in
9796 *-pc-os2_emx | *-pc-os2-emx )
9797 LIBS="$LIBS -lstdcpp"
9798 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9799 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9800echo "configure:9801: checking for drand48 in -lcExt" >&5
9801ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9802if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9804else
9805 ac_save_LIBS="$LIBS"
9806LIBS="-lcExt $LIBS"
9807cat > conftest.$ac_ext <<EOF
9808#line 9809 "configure"
9809#include "confdefs.h"
9810/* Override any gcc2 internal prototype to avoid an error. */
9811/* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9813char drand48();
9814
9815int main() {
9816drand48()
9817; return 0; }
9818EOF
9819if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9820 rm -rf conftest*
9821 eval "ac_cv_lib_$ac_lib_var=yes"
9822else
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 rm -rf conftest*
9826 eval "ac_cv_lib_$ac_lib_var=no"
9827fi
9828rm -f conftest*
9829LIBS="$ac_save_LIBS"
9830
9831fi
9832if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9833 echo "$ac_t""yes" 1>&6
9834 LIBS="$LIBS -lcExt"
9835else
9836 echo "$ac_t""no" 1>&6
9837fi
9838
9839 else
9840 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9841 fi
9842 ;;
9843esac
9844
9845
9846if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9847 for ac_hdr in strings.h
9848do
9849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9851echo "configure:9852: checking for $ac_hdr" >&5
9852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9854else
9855 cat > conftest.$ac_ext <<EOF
9856#line 9857 "configure"
9857#include "confdefs.h"
9858#include <$ac_hdr>
9859EOF
9860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9861{ (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9863if test -z "$ac_err"; then
9864 rm -rf conftest*
9865 eval "ac_cv_header_$ac_safe=yes"
9866else
9867 echo "$ac_err" >&5
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9870 rm -rf conftest*
9871 eval "ac_cv_header_$ac_safe=no"
9872fi
9873rm -f conftest*
9874fi
9875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9876 echo "$ac_t""yes" 1>&6
9877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9878 cat >> confdefs.h <<EOF
9879#define $ac_tr_hdr 1
9880EOF
9881
9882else
9883 echo "$ac_t""no" 1>&6
9884fi
9885done
9886
9887fi
9888
9889for ac_hdr in stdlib.h
9890do
9891ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9892echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9893echo "configure:9894: checking for $ac_hdr" >&5
9894if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9896else
9897 cat > conftest.$ac_ext <<EOF
9898#line 9899 "configure"
9899#include "confdefs.h"
9900#include <$ac_hdr>
9901EOF
9902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9903{ (eval echo configure:9904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9905if test -z "$ac_err"; then
9906 rm -rf conftest*
9907 eval "ac_cv_header_$ac_safe=yes"
9908else
9909 echo "$ac_err" >&5
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9912 rm -rf conftest*
9913 eval "ac_cv_header_$ac_safe=no"
9914fi
9915rm -f conftest*
9916fi
9917if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9918 echo "$ac_t""yes" 1>&6
9919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9920 cat >> confdefs.h <<EOF
9921#define $ac_tr_hdr 1
9922EOF
9923
9924else
9925 echo "$ac_t""no" 1>&6
9926fi
9927done
9928
9929for ac_hdr in malloc.h
9930do
9931ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9932echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9933echo "configure:9934: checking for $ac_hdr" >&5
9934if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9936else
9937 cat > conftest.$ac_ext <<EOF
9938#line 9939 "configure"
9939#include "confdefs.h"
9940#include <$ac_hdr>
9941EOF
9942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9943{ (eval echo configure:9944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9945if test -z "$ac_err"; then
9946 rm -rf conftest*
9947 eval "ac_cv_header_$ac_safe=yes"
9948else
9949 echo "$ac_err" >&5
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 eval "ac_cv_header_$ac_safe=no"
9954fi
9955rm -f conftest*
9956fi
9957if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9958 echo "$ac_t""yes" 1>&6
9959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9960 cat >> confdefs.h <<EOF
9961#define $ac_tr_hdr 1
9962EOF
9963
9964else
9965 echo "$ac_t""no" 1>&6
9966fi
9967done
9968
9969for ac_hdr in unistd.h
9970do
9971ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9972echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9973echo "configure:9974: checking for $ac_hdr" >&5
9974if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9975 echo $ac_n "(cached) $ac_c" 1>&6
9976else
9977 cat > conftest.$ac_ext <<EOF
9978#line 9979 "configure"
9979#include "confdefs.h"
9980#include <$ac_hdr>
9981EOF
9982ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9983{ (eval echo configure:9984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9984ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9985if test -z "$ac_err"; then
9986 rm -rf conftest*
9987 eval "ac_cv_header_$ac_safe=yes"
9988else
9989 echo "$ac_err" >&5
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 rm -rf conftest*
9993 eval "ac_cv_header_$ac_safe=no"
9994fi
9995rm -f conftest*
9996fi
9997if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9998 echo "$ac_t""yes" 1>&6
9999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10000 cat >> confdefs.h <<EOF
10001#define $ac_tr_hdr 1
10002EOF
10003
10004else
10005 echo "$ac_t""no" 1>&6
10006fi
10007done
10008
10009for ac_hdr in wchar.h
10010do
10011ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10012echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10013echo "configure:10014: checking for $ac_hdr" >&5
10014if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10016else
10017 cat > conftest.$ac_ext <<EOF
10018#line 10019 "configure"
10019#include "confdefs.h"
10020#include <$ac_hdr>
10021EOF
10022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10023{ (eval echo configure:10024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10024ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10025if test -z "$ac_err"; then
10026 rm -rf conftest*
10027 eval "ac_cv_header_$ac_safe=yes"
10028else
10029 echo "$ac_err" >&5
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10032 rm -rf conftest*
10033 eval "ac_cv_header_$ac_safe=no"
10034fi
10035rm -f conftest*
10036fi
10037if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10038 echo "$ac_t""yes" 1>&6
10039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10040 cat >> confdefs.h <<EOF
10041#define $ac_tr_hdr 1
10042EOF
10043
10044else
10045 echo "$ac_t""no" 1>&6
10046fi
10047done
10048
10049
10050if test "$ac_cv_header_wchar_h" != "yes"; then
10051 for ac_hdr in wcstr.h
10052do
10053ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10054echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10055echo "configure:10056: checking for $ac_hdr" >&5
10056if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058else
10059 cat > conftest.$ac_ext <<EOF
10060#line 10061 "configure"
10061#include "confdefs.h"
10062#include <$ac_hdr>
10063EOF
10064ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10065{ (eval echo configure:10066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10066ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10067if test -z "$ac_err"; then
10068 rm -rf conftest*
10069 eval "ac_cv_header_$ac_safe=yes"
10070else
10071 echo "$ac_err" >&5
10072 echo "configure: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10074 rm -rf conftest*
10075 eval "ac_cv_header_$ac_safe=no"
10076fi
10077rm -f conftest*
10078fi
10079if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10080 echo "$ac_t""yes" 1>&6
10081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10082 cat >> confdefs.h <<EOF
10083#define $ac_tr_hdr 1
10084EOF
10085
10086else
10087 echo "$ac_t""no" 1>&6
10088fi
10089done
10090
10091fi
10092
10093for ac_hdr in fnmatch.h
10094do
10095ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10096echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10097echo "configure:10098: checking for $ac_hdr" >&5
10098if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10100else
10101 cat > conftest.$ac_ext <<EOF
10102#line 10103 "configure"
10103#include "confdefs.h"
10104#include <$ac_hdr>
10105EOF
10106ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10107{ (eval echo configure:10108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10108ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10109if test -z "$ac_err"; then
10110 rm -rf conftest*
10111 eval "ac_cv_header_$ac_safe=yes"
10112else
10113 echo "$ac_err" >&5
10114 echo "configure: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10116 rm -rf conftest*
10117 eval "ac_cv_header_$ac_safe=no"
10118fi
10119rm -f conftest*
10120fi
10121if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10124 cat >> confdefs.h <<EOF
10125#define $ac_tr_hdr 1
10126EOF
10127
10128else
10129 echo "$ac_t""no" 1>&6
10130fi
10131done
10132
10133
10134if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10135 for ac_func in fnmatch
10136do
10137echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10138echo "configure:10139: checking for $ac_func" >&5
10139if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10141else
10142 cat > conftest.$ac_ext <<EOF
10143#line 10144 "configure"
10144#include "confdefs.h"
10145/* System header to define __stub macros and hopefully few prototypes,
10146 which can conflict with char $ac_func(); below. */
10147#include <assert.h>
10148/* Override any gcc2 internal prototype to avoid an error. */
10149/* We use char because int might match the return type of a gcc2
10150 builtin and then its argument prototype would still apply. */
10151char $ac_func();
10152
10153int main() {
10154
10155/* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159choke me
10160#else
10161$ac_func();
10162#endif
10163
10164; return 0; }
10165EOF
10166if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10167 rm -rf conftest*
10168 eval "ac_cv_func_$ac_func=yes"
10169else
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172 rm -rf conftest*
10173 eval "ac_cv_func_$ac_func=no"
10174fi
10175rm -f conftest*
10176fi
10177
10178if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10179 echo "$ac_t""yes" 1>&6
10180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10181 cat >> confdefs.h <<EOF
10182#define $ac_tr_func 1
10183EOF
10184
10185else
10186 echo "$ac_t""no" 1>&6
10187fi
10188done
10189
10190fi
10191
10192for ac_hdr in langinfo.h
10193do
10194ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10195echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10196echo "configure:10197: checking for $ac_hdr" >&5
10197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10198 echo $ac_n "(cached) $ac_c" 1>&6
10199else
10200 cat > conftest.$ac_ext <<EOF
10201#line 10202 "configure"
10202#include "confdefs.h"
10203#include <$ac_hdr>
10204EOF
10205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10206{ (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10208if test -z "$ac_err"; then
10209 rm -rf conftest*
10210 eval "ac_cv_header_$ac_safe=yes"
10211else
10212 echo "$ac_err" >&5
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 eval "ac_cv_header_$ac_safe=no"
10217fi
10218rm -f conftest*
10219fi
10220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10221 echo "$ac_t""yes" 1>&6
10222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10223 cat >> confdefs.h <<EOF
10224#define $ac_tr_hdr 1
10225EOF
10226
10227else
10228 echo "$ac_t""no" 1>&6
10229fi
10230done
10231
10232
10233case "${host}" in
10234 *-pc-os2_emx | *-pc-os2-emx )
10235 if test $ac_cv_header_langinfo_h = "yes"; then
10236 LIBS="$LIBS -lintl"
10237 fi
10238 ;;
10239esac
10240
10241if test "$wxUSE_GUI" = "yes"; then
10242 if test "$wxUSE_UNIX" = "yes"; then
10243 for ac_hdr in X11/XKBlib.h
10244do
10245ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10246echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10247echo "configure:10248: checking for $ac_hdr" >&5
10248if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10250else
10251 cat > conftest.$ac_ext <<EOF
10252#line 10253 "configure"
10253#include "confdefs.h"
10254#include <$ac_hdr>
10255EOF
10256ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10257{ (eval echo configure:10258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10258ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10259if test -z "$ac_err"; then
10260 rm -rf conftest*
10261 eval "ac_cv_header_$ac_safe=yes"
10262else
10263 echo "$ac_err" >&5
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10266 rm -rf conftest*
10267 eval "ac_cv_header_$ac_safe=no"
10268fi
10269rm -f conftest*
10270fi
10271if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10274 cat >> confdefs.h <<EOF
10275#define $ac_tr_hdr 1
10276EOF
10277
10278else
10279 echo "$ac_t""no" 1>&6
10280fi
10281done
10282
10283 fi
10284fi
10285
10286
10287echo $ac_n "checking for working const""... $ac_c" 1>&6
10288echo "configure:10289: checking for working const" >&5
10289if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10291else
10292 cat > conftest.$ac_ext <<EOF
10293#line 10294 "configure"
10294#include "confdefs.h"
10295
10296int main() {
10297
10298/* Ultrix mips cc rejects this. */
10299typedef int charset[2]; const charset x;
10300/* SunOS 4.1.1 cc rejects this. */
10301char const *const *ccp;
10302char **p;
10303/* NEC SVR4.0.2 mips cc rejects this. */
10304struct point {int x, y;};
10305static struct point const zero = {0,0};
10306/* AIX XL C 1.02.0.0 rejects this.
10307 It does not let you subtract one const X* pointer from another in an arm
10308 of an if-expression whose if-part is not a constant expression */
10309const char *g = "string";
10310ccp = &g + (g ? g-g : 0);
10311/* HPUX 7.0 cc rejects these. */
10312++ccp;
10313p = (char**) ccp;
10314ccp = (char const *const *) p;
10315{ /* SCO 3.2v4 cc rejects this. */
10316 char *t;
10317 char const *s = 0 ? (char *) 0 : (char const *) 0;
10318
10319 *t++ = 0;
10320}
10321{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10322 int x[] = {25, 17};
10323 const int *foo = &x[0];
10324 ++foo;
10325}
10326{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10327 typedef const int *iptr;
10328 iptr p = 0;
10329 ++p;
10330}
10331{ /* AIX XL C 1.02.0.0 rejects this saying
10332 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10333 struct s { int j; const int *ap[3]; };
10334 struct s *b; b->j = 5;
10335}
10336{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10337 const int foo = 10;
10338}
10339
10340; return 0; }
10341EOF
10342if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10343 rm -rf conftest*
10344 ac_cv_c_const=yes
10345else
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 rm -rf conftest*
10349 ac_cv_c_const=no
10350fi
10351rm -f conftest*
10352fi
10353
10354echo "$ac_t""$ac_cv_c_const" 1>&6
10355if test $ac_cv_c_const = no; then
10356 cat >> confdefs.h <<\EOF
10357#define const
10358EOF
10359
10360fi
10361
10362echo $ac_n "checking for inline""... $ac_c" 1>&6
10363echo "configure:10364: checking for inline" >&5
10364if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10366else
10367 ac_cv_c_inline=no
10368for ac_kw in inline __inline__ __inline; do
10369 cat > conftest.$ac_ext <<EOF
10370#line 10371 "configure"
10371#include "confdefs.h"
10372
10373int main() {
10374} $ac_kw foo() {
10375; return 0; }
10376EOF
10377if { (eval echo configure:10378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10378 rm -rf conftest*
10379 ac_cv_c_inline=$ac_kw; break
10380else
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383fi
10384rm -f conftest*
10385done
10386
10387fi
10388
10389echo "$ac_t""$ac_cv_c_inline" 1>&6
10390case "$ac_cv_c_inline" in
10391 inline | yes) ;;
10392 no) cat >> confdefs.h <<\EOF
10393#define inline
10394EOF
10395 ;;
10396 *) cat >> confdefs.h <<EOF
10397#define inline $ac_cv_c_inline
10398EOF
10399 ;;
10400esac
10401
10402
10403echo $ac_n "checking size of char""... $ac_c" 1>&6
10404echo "configure:10405: checking size of char" >&5
10405if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10407else
10408 if test "$cross_compiling" = yes; then
10409 ac_cv_sizeof_char=1
10410else
10411 cat > conftest.$ac_ext <<EOF
10412#line 10413 "configure"
10413#include "confdefs.h"
10414#include <stdio.h>
10415main()
10416{
10417 FILE *f=fopen("conftestval", "w");
10418 if (!f) exit(1);
10419 fprintf(f, "%d\n", sizeof(char));
10420 exit(0);
10421}
10422EOF
10423if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10424then
10425 ac_cv_sizeof_char=`cat conftestval`
10426else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -fr conftest*
10430 ac_cv_sizeof_char=0
10431fi
10432rm -fr conftest*
10433fi
10434
10435fi
10436echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10437cat >> confdefs.h <<EOF
10438#define SIZEOF_CHAR $ac_cv_sizeof_char
10439EOF
10440
10441
10442echo $ac_n "checking size of short""... $ac_c" 1>&6
10443echo "configure:10444: checking size of short" >&5
10444if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446else
10447 if test "$cross_compiling" = yes; then
10448 ac_cv_sizeof_short=2
10449else
10450 cat > conftest.$ac_ext <<EOF
10451#line 10452 "configure"
10452#include "confdefs.h"
10453#include <stdio.h>
10454main()
10455{
10456 FILE *f=fopen("conftestval", "w");
10457 if (!f) exit(1);
10458 fprintf(f, "%d\n", sizeof(short));
10459 exit(0);
10460}
10461EOF
10462if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10463then
10464 ac_cv_sizeof_short=`cat conftestval`
10465else
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10468 rm -fr conftest*
10469 ac_cv_sizeof_short=0
10470fi
10471rm -fr conftest*
10472fi
10473
10474fi
10475echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10476cat >> confdefs.h <<EOF
10477#define SIZEOF_SHORT $ac_cv_sizeof_short
10478EOF
10479
10480
10481echo $ac_n "checking size of void *""... $ac_c" 1>&6
10482echo "configure:10483: checking size of void *" >&5
10483if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10485else
10486 if test "$cross_compiling" = yes; then
10487 ac_cv_sizeof_void_p=4
10488else
10489 cat > conftest.$ac_ext <<EOF
10490#line 10491 "configure"
10491#include "confdefs.h"
10492#include <stdio.h>
10493main()
10494{
10495 FILE *f=fopen("conftestval", "w");
10496 if (!f) exit(1);
10497 fprintf(f, "%d\n", sizeof(void *));
10498 exit(0);
10499}
10500EOF
10501if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10502then
10503 ac_cv_sizeof_void_p=`cat conftestval`
10504else
10505 echo "configure: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10507 rm -fr conftest*
10508 ac_cv_sizeof_void_p=0
10509fi
10510rm -fr conftest*
10511fi
10512
10513fi
10514echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10515cat >> confdefs.h <<EOF
10516#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10517EOF
10518
10519
10520echo $ac_n "checking size of int""... $ac_c" 1>&6
10521echo "configure:10522: checking size of int" >&5
10522if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10523 echo $ac_n "(cached) $ac_c" 1>&6
10524else
10525 if test "$cross_compiling" = yes; then
10526 ac_cv_sizeof_int=4
10527else
10528 cat > conftest.$ac_ext <<EOF
10529#line 10530 "configure"
10530#include "confdefs.h"
10531#include <stdio.h>
10532main()
10533{
10534 FILE *f=fopen("conftestval", "w");
10535 if (!f) exit(1);
10536 fprintf(f, "%d\n", sizeof(int));
10537 exit(0);
10538}
10539EOF
10540if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10541then
10542 ac_cv_sizeof_int=`cat conftestval`
10543else
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10546 rm -fr conftest*
10547 ac_cv_sizeof_int=0
10548fi
10549rm -fr conftest*
10550fi
10551
10552fi
10553echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10554cat >> confdefs.h <<EOF
10555#define SIZEOF_INT $ac_cv_sizeof_int
10556EOF
10557
10558
10559echo $ac_n "checking size of long""... $ac_c" 1>&6
10560echo "configure:10561: checking size of long" >&5
10561if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10562 echo $ac_n "(cached) $ac_c" 1>&6
10563else
10564 if test "$cross_compiling" = yes; then
10565 ac_cv_sizeof_long=4
10566else
10567 cat > conftest.$ac_ext <<EOF
10568#line 10569 "configure"
10569#include "confdefs.h"
10570#include <stdio.h>
10571main()
10572{
10573 FILE *f=fopen("conftestval", "w");
10574 if (!f) exit(1);
10575 fprintf(f, "%d\n", sizeof(long));
10576 exit(0);
10577}
10578EOF
10579if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580then
10581 ac_cv_sizeof_long=`cat conftestval`
10582else
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 rm -fr conftest*
10586 ac_cv_sizeof_long=0
10587fi
10588rm -fr conftest*
10589fi
10590
10591fi
10592echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10593cat >> confdefs.h <<EOF
10594#define SIZEOF_LONG $ac_cv_sizeof_long
10595EOF
10596
10597
10598
10599case "${host}" in
10600 arm-*-linux* )
10601 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10602echo "configure:10603: checking size of long long" >&5
10603if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605else
10606 if test "$cross_compiling" = yes; then
10607 ac_cv_sizeof_long_long=8
10608else
10609 cat > conftest.$ac_ext <<EOF
10610#line 10611 "configure"
10611#include "confdefs.h"
10612#include <stdio.h>
10613main()
10614{
10615 FILE *f=fopen("conftestval", "w");
10616 if (!f) exit(1);
10617 fprintf(f, "%d\n", sizeof(long long));
10618 exit(0);
10619}
10620EOF
10621if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10622then
10623 ac_cv_sizeof_long_long=`cat conftestval`
10624else
10625 echo "configure: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 rm -fr conftest*
10628 ac_cv_sizeof_long_long=0
10629fi
10630rm -fr conftest*
10631fi
10632
10633fi
10634echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10635cat >> confdefs.h <<EOF
10636#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10637EOF
10638
10639
10640 ;;
10641 *-hp-hpux* )
10642 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10643echo "configure:10644: checking size of long long" >&5
10644if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10646else
10647 if test "$cross_compiling" = yes; then
10648 ac_cv_sizeof_long_long=0
10649else
10650 cat > conftest.$ac_ext <<EOF
10651#line 10652 "configure"
10652#include "confdefs.h"
10653#include <stdio.h>
10654main()
10655{
10656 FILE *f=fopen("conftestval", "w");
10657 if (!f) exit(1);
10658 fprintf(f, "%d\n", sizeof(long long));
10659 exit(0);
10660}
10661EOF
10662if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10663then
10664 ac_cv_sizeof_long_long=`cat conftestval`
10665else
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 rm -fr conftest*
10669 ac_cv_sizeof_long_long=0
10670fi
10671rm -fr conftest*
10672fi
10673
10674fi
10675echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10676cat >> confdefs.h <<EOF
10677#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10678EOF
10679
10680
10681 if test "$ac_cv_sizeof_long_long" != "0"; then
10682 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10683 fi
10684 ;;
10685 * )
10686 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10687echo "configure:10688: checking size of long long" >&5
10688if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10690else
10691 if test "$cross_compiling" = yes; then
10692 ac_cv_sizeof_long_long=0
10693else
10694 cat > conftest.$ac_ext <<EOF
10695#line 10696 "configure"
10696#include "confdefs.h"
10697#include <stdio.h>
10698main()
10699{
10700 FILE *f=fopen("conftestval", "w");
10701 if (!f) exit(1);
10702 fprintf(f, "%d\n", sizeof(long long));
10703 exit(0);
10704}
10705EOF
10706if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10707then
10708 ac_cv_sizeof_long_long=`cat conftestval`
10709else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -fr conftest*
10713 ac_cv_sizeof_long_long=0
10714fi
10715rm -fr conftest*
10716fi
10717
10718fi
10719echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10720cat >> confdefs.h <<EOF
10721#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10722EOF
10723
10724
10725esac
10726
10727echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10728echo "configure:10729: checking size of wchar_t" >&5
10729if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10730 echo $ac_n "(cached) $ac_c" 1>&6
10731else
10732
10733 if test "$cross_compiling" = yes; then
10734
10735 case "${host}" in
10736 *-pc-msdosdjgpp )
10737 wx_cv_sizeof_wchar_t=0
10738 ;;
10739 * )
10740 wx_cv_sizeof_wchar_t=4
10741 ;;
10742 esac
10743
10744
10745else
10746 cat > conftest.$ac_ext <<EOF
10747#line 10748 "configure"
10748#include "confdefs.h"
10749
10750 /* DJGPP only has fake wchar_t: */
10751 #ifdef __DJGPP__
10752 # error "fake wchar_t"
10753 #endif
10754 #ifdef HAVE_WCHAR_H
10755 # ifdef __CYGWIN__
10756 # include <stddef.h>
10757 # endif
10758 # include <wchar.h>
10759 #endif
10760 #ifdef HAVE_STDLIB_H
10761 # include <stdlib.h>
10762 #endif
10763 #include <stdio.h>
10764 int main()
10765 {
10766 FILE *f=fopen("conftestval", "w");
10767 if (!f) exit(1);
10768 fprintf(f, "%i", sizeof(wchar_t));
10769 exit(0);
10770 }
10771
10772EOF
10773if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10774then
10775 wx_cv_sizeof_wchar_t=`cat conftestval`
10776else
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 rm -fr conftest*
10780 wx_cv_sizeof_wchar_t=0
10781fi
10782rm -fr conftest*
10783fi
10784
10785
10786fi
10787
10788echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10789
10790cat >> confdefs.h <<EOF
10791#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10792EOF
10793
10794
10795# Check whether --enable-largefile or --disable-largefile was given.
10796if test "${enable_largefile+set}" = set; then
10797 enableval="$enable_largefile"
10798 :
10799fi
10800
10801if test "$enable_largefile" != no; then
10802 wx_largefile=no
10803
10804 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10805echo "configure:10806: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10806if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10807 echo $ac_n "(cached) $ac_c" 1>&6
10808else
10809
10810 cat > conftest.$ac_ext <<EOF
10811#line 10812 "configure"
10812#include "confdefs.h"
10813#define _FILE_OFFSET_BITS 64
10814 #include <sys/types.h>
10815int main() {
10816typedef struct {
10817 unsigned int field: sizeof(off_t) == 8;
10818} wxlf;
10819
10820; return 0; }
10821EOF
10822if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10823 rm -rf conftest*
10824 ac_cv_sys_file_offset_bits=64
10825else
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 rm -rf conftest*
10829 ac_cv_sys_file_offset_bits=no
10830fi
10831rm -f conftest*
10832
10833
10834fi
10835
10836echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10837
10838 if test "$ac_cv_sys_file_offset_bits" != no; then
10839 wx_largefile=yes
10840 cat >> confdefs.h <<EOF
10841#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10842EOF
10843
10844 fi
10845
10846 if test "x$wx_largefile" != "xyes"; then
10847
10848 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10849echo "configure:10850: checking for _LARGE_FILES value needed for large files" >&5
10850if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10852else
10853
10854 cat > conftest.$ac_ext <<EOF
10855#line 10856 "configure"
10856#include "confdefs.h"
10857#define _LARGE_FILES 1
10858 #include <sys/types.h>
10859int main() {
10860typedef struct {
10861 unsigned int field: sizeof(off_t) == 8;
10862} wxlf;
10863
10864; return 0; }
10865EOF
10866if { (eval echo configure:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10867 rm -rf conftest*
10868 ac_cv_sys_large_files=1
10869else
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10872 rm -rf conftest*
10873 ac_cv_sys_large_files=no
10874fi
10875rm -f conftest*
10876
10877
10878fi
10879
10880echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10881
10882 if test "$ac_cv_sys_large_files" != no; then
10883 wx_largefile=yes
10884 cat >> confdefs.h <<EOF
10885#define _LARGE_FILES $ac_cv_sys_large_files
10886EOF
10887
10888 fi
10889
10890 fi
10891
10892 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10893echo "configure:10894: checking if large file support is available" >&5
10894 if test "x$wx_largefile" = "xyes"; then
10895 cat >> confdefs.h <<\EOF
10896#define HAVE_LARGEFILE_SUPPORT 1
10897EOF
10898
10899 fi
10900 echo "$ac_t""$wx_largefile" 1>&6
10901fi
10902
10903
10904if test "x$wx_largefile" = "xyes"; then
10905 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10906 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10907 else
10908 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10909 fi
10910 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10911fi
10912
10913echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10914echo "configure:10915: checking whether byte ordering is bigendian" >&5
10915if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
10917else
10918 ac_cv_c_bigendian=unknown
10919# See if sys/param.h defines the BYTE_ORDER macro.
10920cat > conftest.$ac_ext <<EOF
10921#line 10922 "configure"
10922#include "confdefs.h"
10923#include <sys/types.h>
10924#include <sys/param.h>
10925int main() {
10926
10927#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10928 bogus endian macros
10929#endif
10930; return 0; }
10931EOF
10932if { (eval echo configure:10933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10933 rm -rf conftest*
10934 # It does; now see whether it defined to BIG_ENDIAN or not.
10935cat > conftest.$ac_ext <<EOF
10936#line 10937 "configure"
10937#include "confdefs.h"
10938#include <sys/types.h>
10939#include <sys/param.h>
10940int main() {
10941
10942#if BYTE_ORDER != BIG_ENDIAN
10943 not big endian
10944#endif
10945; return 0; }
10946EOF
10947if { (eval echo configure:10948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10948 rm -rf conftest*
10949 ac_cv_c_bigendian=yes
10950else
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 rm -rf conftest*
10954 ac_cv_c_bigendian=no
10955fi
10956rm -f conftest*
10957else
10958 echo "configure: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
10960fi
10961rm -f conftest*
10962if test $ac_cv_c_bigendian = unknown; then
10963if test "$cross_compiling" = yes; then
10964 ac_cv_c_bigendian=unknown
10965else
10966 cat > conftest.$ac_ext <<EOF
10967#line 10968 "configure"
10968#include "confdefs.h"
10969main () {
10970 /* Are we little or big endian? From Harbison&Steele. */
10971 union
10972 {
10973 long l;
10974 char c[sizeof (long)];
10975 } u;
10976 u.l = 1;
10977 exit (u.c[sizeof (long) - 1] == 1);
10978}
10979EOF
10980if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10981then
10982 ac_cv_c_bigendian=no
10983else
10984 echo "configure: failed program was:" >&5
10985 cat conftest.$ac_ext >&5
10986 rm -fr conftest*
10987 ac_cv_c_bigendian=yes
10988fi
10989rm -fr conftest*
10990fi
10991
10992fi
10993fi
10994
10995echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10996if test $ac_cv_c_bigendian = unknown; then
10997 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
10998fi
10999if test $ac_cv_c_bigendian = yes; then
11000 cat >> confdefs.h <<\EOF
11001#define WORDS_BIGENDIAN 1
11002EOF
11003
11004fi
11005
11006
11007echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11008echo "configure:11009: checking how to run the C++ preprocessor" >&5
11009if test -z "$CXXCPP"; then
11010if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11011 echo $ac_n "(cached) $ac_c" 1>&6
11012else
11013 ac_ext=C
11014# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11015ac_cpp='$CXXCPP $CPPFLAGS'
11016ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11017ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11018cross_compiling=$ac_cv_prog_cxx_cross
11019 CXXCPP="${CXX-g++} -E"
11020 cat > conftest.$ac_ext <<EOF
11021#line 11022 "configure"
11022#include "confdefs.h"
11023#include <stdlib.h>
11024EOF
11025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11026{ (eval echo configure:11027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11027ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11028if test -z "$ac_err"; then
11029 :
11030else
11031 echo "$ac_err" >&5
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -rf conftest*
11035 CXXCPP=/lib/cpp
11036fi
11037rm -f conftest*
11038 ac_cv_prog_CXXCPP="$CXXCPP"
11039ac_ext=C
11040# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11041ac_cpp='$CXXCPP $CPPFLAGS'
11042ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11043ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11044cross_compiling=$ac_cv_prog_cxx_cross
11045fi
11046fi
11047CXXCPP="$ac_cv_prog_CXXCPP"
11048echo "$ac_t""$CXXCPP" 1>&6
11049
11050
11051 if test "$cross_compiling" = "yes"; then
11052 cat >> confdefs.h <<\EOF
11053#define wxUSE_IOSTREAMH 1
11054EOF
11055
11056 else
11057
11058 ac_ext=C
11059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060ac_cpp='$CXXCPP $CPPFLAGS'
11061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063cross_compiling=$ac_cv_prog_cxx_cross
11064
11065
11066 for ac_hdr in iostream
11067do
11068ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11069echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11070echo "configure:11071: checking for $ac_hdr" >&5
11071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11073else
11074 cat > conftest.$ac_ext <<EOF
11075#line 11076 "configure"
11076#include "confdefs.h"
11077#include <$ac_hdr>
11078EOF
11079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11080{ (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11082if test -z "$ac_err"; then
11083 rm -rf conftest*
11084 eval "ac_cv_header_$ac_safe=yes"
11085else
11086 echo "$ac_err" >&5
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 rm -rf conftest*
11090 eval "ac_cv_header_$ac_safe=no"
11091fi
11092rm -f conftest*
11093fi
11094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11097 cat >> confdefs.h <<EOF
11098#define $ac_tr_hdr 1
11099EOF
11100
11101else
11102 echo "$ac_t""no" 1>&6
11103fi
11104done
11105
11106
11107 if test "$ac_cv_header_iostream" = "yes" ; then
11108 :
11109 else
11110 cat >> confdefs.h <<\EOF
11111#define wxUSE_IOSTREAMH 1
11112EOF
11113
11114 fi
11115
11116 ac_ext=c
11117# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11118ac_cpp='$CPP $CPPFLAGS'
11119ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11120ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11121cross_compiling=$ac_cv_prog_cc_cross
11122
11123 fi
11124
11125
11126
11127 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11128echo "configure:11129: checking if C++ compiler supports bool" >&5
11129if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
11131else
11132
11133
11134 ac_ext=C
11135# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11136ac_cpp='$CXXCPP $CPPFLAGS'
11137ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11138ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11139cross_compiling=$ac_cv_prog_cxx_cross
11140
11141
11142 cat > conftest.$ac_ext <<EOF
11143#line 11144 "configure"
11144#include "confdefs.h"
11145
11146
11147int main() {
11148
11149 bool b = true;
11150
11151 return 0;
11152
11153; return 0; }
11154EOF
11155if { (eval echo configure:11156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11156 rm -rf conftest*
11157
11158 wx_cv_cpp_bool=yes
11159
11160else
11161 echo "configure: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11163 rm -rf conftest*
11164
11165 wx_cv_cpp_bool=no
11166
11167
11168fi
11169rm -f conftest*
11170
11171 ac_ext=c
11172# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11173ac_cpp='$CPP $CPPFLAGS'
11174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11175ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11176cross_compiling=$ac_cv_prog_cc_cross
11177
11178
11179fi
11180
11181echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11182
11183 if test "$wx_cv_cpp_bool" = "yes"; then
11184 cat >> confdefs.h <<\EOF
11185#define HAVE_BOOL 1
11186EOF
11187
11188 fi
11189
11190
11191
11192 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11193echo "configure:11194: checking if C++ compiler supports the explicit keyword" >&5
11194if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11196else
11197
11198
11199 ac_ext=C
11200# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11201ac_cpp='$CXXCPP $CPPFLAGS'
11202ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11203ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11204cross_compiling=$ac_cv_prog_cxx_cross
11205
11206
11207 cat > conftest.$ac_ext <<EOF
11208#line 11209 "configure"
11209#include "confdefs.h"
11210
11211 class Foo { public: explicit Foo(int) {} };
11212
11213int main() {
11214
11215 return 0;
11216
11217; return 0; }
11218EOF
11219if { (eval echo configure:11220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11220 rm -rf conftest*
11221
11222 cat > conftest.$ac_ext <<EOF
11223#line 11224 "configure"
11224#include "confdefs.h"
11225
11226 class Foo { public: explicit Foo(int) {} };
11227 static void TakeFoo(const Foo& foo) { }
11228
11229int main() {
11230
11231 TakeFoo(17);
11232 return 0;
11233
11234; return 0; }
11235EOF
11236if { (eval echo configure:11237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11237 rm -rf conftest*
11238 wx_cv_explicit=no
11239else
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11242 rm -rf conftest*
11243 wx_cv_explicit=yes
11244
11245fi
11246rm -f conftest*
11247
11248else
11249 echo "configure: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11251 rm -rf conftest*
11252 wx_cv_explicit=no
11253
11254fi
11255rm -f conftest*
11256
11257 ac_ext=c
11258# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11259ac_cpp='$CPP $CPPFLAGS'
11260ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11261ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11262cross_compiling=$ac_cv_prog_cc_cross
11263
11264
11265fi
11266
11267echo "$ac_t""$wx_cv_explicit" 1>&6
11268
11269 if test "$wx_cv_explicit" = "yes"; then
11270 cat >> confdefs.h <<\EOF
11271#define HAVE_EXPLICIT 1
11272EOF
11273
11274 fi
11275
11276
11277echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11278echo "configure:11279: checking whether the compiler supports const_cast<>" >&5
11279if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11280 echo $ac_n "(cached) $ac_c" 1>&6
11281else
11282
11283 ac_ext=C
11284# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11285ac_cpp='$CXXCPP $CPPFLAGS'
11286ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11287ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11288cross_compiling=$ac_cv_prog_cxx_cross
11289
11290 cat > conftest.$ac_ext <<EOF
11291#line 11292 "configure"
11292#include "confdefs.h"
11293
11294int main() {
11295int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11296; return 0; }
11297EOF
11298if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11299 rm -rf conftest*
11300 ac_cv_cxx_const_cast=yes
11301else
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 rm -rf conftest*
11305 ac_cv_cxx_const_cast=no
11306fi
11307rm -f conftest*
11308 ac_ext=c
11309# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11310ac_cpp='$CPP $CPPFLAGS'
11311ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11312ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11313cross_compiling=$ac_cv_prog_cc_cross
11314
11315
11316fi
11317
11318echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11319if test "$ac_cv_cxx_const_cast" = yes; then
11320 cat >> confdefs.h <<\EOF
11321#define HAVE_CONST_CAST
11322EOF
11323
11324fi
11325
11326
11327
11328SEARCH_INCLUDE="\
11329 /usr/local/include \
11330 \
11331 /usr/Motif-1.2/include \
11332 /usr/Motif-2.1/include \
11333 \
11334 /usr/include/Motif1.2 \
11335 /opt/xpm/include/X11 \
11336 /opt/GBxpm/include/ \
11337 /opt/GBxpm/X11/include/ \
11338 \
11339 /usr/Motif1.2/include \
11340 /usr/dt/include \
11341 /usr/openwin/include \
11342 \
11343 /usr/include/Xm \
11344 \
11345 /usr/X11R6/include \
11346 /usr/X11R6.4/include \
11347 /usr/X11R5/include \
11348 /usr/X11R4/include \
11349 \
11350 /usr/include/X11R6 \
11351 /usr/include/X11R5 \
11352 /usr/include/X11R4 \
11353 \
11354 /usr/local/X11R6/include \
11355 /usr/local/X11R5/include \
11356 /usr/local/X11R4/include \
11357 \
11358 /usr/local/include/X11R6 \
11359 /usr/local/include/X11R5 \
11360 /usr/local/include/X11R4 \
11361 \
11362 /usr/X11/include \
11363 /usr/include/X11 \
11364 /usr/local/X11/include \
11365 /usr/local/include/X11 \
11366 \
11367 /usr/X386/include \
11368 /usr/x386/include \
11369 /usr/XFree86/include/X11 \
11370 \
11371 X:/XFree86/include \
11372 X:/XFree86/include/X11 \
11373 \
11374 /usr/include/gtk \
11375 /usr/local/include/gtk \
11376 /usr/include/glib \
11377 /usr/local/include/glib \
11378 \
11379 /usr/include/qt \
11380 /usr/local/include/qt \
11381 \
11382 /usr/include/windows \
11383 /usr/include/wine \
11384 /usr/local/include/wine \
11385 \
11386 /usr/unsupported/include \
11387 /usr/athena/include \
11388 /usr/local/x11r5/include \
11389 /usr/lpp/Xamples/include \
11390 \
11391 /usr/openwin/share/include"
11392
11393SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11394
11395
11396cat > confcache <<\EOF
11397# This file is a shell script that caches the results of configure
11398# tests run on this system so they can be shared between configure
11399# scripts and configure runs. It is not useful on other systems.
11400# If it contains results you don't want to keep, you may remove or edit it.
11401#
11402# By default, configure uses ./config.cache as the cache file,
11403# creating it if it does not exist already. You can give configure
11404# the --cache-file=FILE option to use a different cache file; that is
11405# what configure does when it calls configure scripts in
11406# subdirectories, so they share the cache.
11407# Giving --cache-file=/dev/null disables caching, for debugging configure.
11408# config.status only pays attention to the cache file if you give it the
11409# --recheck option to rerun configure.
11410#
11411EOF
11412# The following way of writing the cache mishandles newlines in values,
11413# but we know of no workaround that is simple, portable, and efficient.
11414# So, don't put newlines in cache variables' values.
11415# Ultrix sh set writes to stderr and can't be redirected directly,
11416# and sets the high bit in the cache file unless we assign to the vars.
11417(set) 2>&1 |
11418 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11419 *ac_space=\ *)
11420 # `set' does not quote correctly, so add quotes (double-quote substitution
11421 # turns \\\\ into \\, and sed turns \\ into \).
11422 sed -n \
11423 -e "s/'/'\\\\''/g" \
11424 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11425 ;;
11426 *)
11427 # `set' quotes correctly as required by POSIX, so do not add quotes.
11428 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11429 ;;
11430 esac >> confcache
11431if cmp -s $cache_file confcache; then
11432 :
11433else
11434 if test -w $cache_file; then
11435 echo "updating cache $cache_file"
11436 cat confcache > $cache_file
11437 else
11438 echo "not updating unwritable cache $cache_file"
11439 fi
11440fi
11441rm -f confcache
11442
11443
11444if test "$USE_LINUX" = 1; then
11445 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11446echo "configure:11447: checking for glibc 2.1 or later" >&5
11447if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11449else
11450
11451 cat > conftest.$ac_ext <<EOF
11452#line 11453 "configure"
11453#include "confdefs.h"
11454#include <features.h>
11455int main() {
11456
11457 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11458 #error not glibc2.1
11459 #endif
11460
11461; return 0; }
11462EOF
11463if { (eval echo configure:11464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11464 rm -rf conftest*
11465
11466 wx_cv_lib_glibc21=yes
11467
11468else
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -rf conftest*
11472
11473 wx_cv_lib_glibc21=no
11474
11475
11476fi
11477rm -f conftest*
11478
11479fi
11480
11481echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11482 if test "$wx_cv_lib_glibc21" = "yes"; then
11483 cat >> confdefs.h <<\EOF
11484#define wxHAVE_GLIBC2 1
11485EOF
11486
11487 fi
11488fi
11489
11490if test "x$wx_cv_lib_glibc21" = "xyes"; then
11491 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11492 cat >> confdefs.h <<\EOF
11493#define _GNU_SOURCE 1
11494EOF
11495
11496 fi
11497fi
11498
11499
11500
11501REGEX_INCLUDE=
11502if test "$wxUSE_REGEX" != "no"; then
11503 cat >> confdefs.h <<\EOF
11504#define wxUSE_REGEX 1
11505EOF
11506
11507
11508 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11509 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11510echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11511echo "configure:11512: checking for regex.h" >&5
11512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11513 echo $ac_n "(cached) $ac_c" 1>&6
11514else
11515 cat > conftest.$ac_ext <<EOF
11516#line 11517 "configure"
11517#include "confdefs.h"
11518#include <regex.h>
11519EOF
11520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11521{ (eval echo configure:11522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11523if test -z "$ac_err"; then
11524 rm -rf conftest*
11525 eval "ac_cv_header_$ac_safe=yes"
11526else
11527 echo "$ac_err" >&5
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11530 rm -rf conftest*
11531 eval "ac_cv_header_$ac_safe=no"
11532fi
11533rm -f conftest*
11534fi
11535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11536 echo "$ac_t""yes" 1>&6
11537 for ac_func in regcomp
11538do
11539echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11540echo "configure:11541: checking for $ac_func" >&5
11541if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11542 echo $ac_n "(cached) $ac_c" 1>&6
11543else
11544 cat > conftest.$ac_ext <<EOF
11545#line 11546 "configure"
11546#include "confdefs.h"
11547/* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char $ac_func(); below. */
11549#include <assert.h>
11550/* Override any gcc2 internal prototype to avoid an error. */
11551/* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11553char $ac_func();
11554
11555int main() {
11556
11557/* The GNU C library defines this for functions which it implements
11558 to always fail with ENOSYS. Some functions are actually named
11559 something starting with __ and the normal name is an alias. */
11560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11561choke me
11562#else
11563$ac_func();
11564#endif
11565
11566; return 0; }
11567EOF
11568if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11569 rm -rf conftest*
11570 eval "ac_cv_func_$ac_func=yes"
11571else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575 eval "ac_cv_func_$ac_func=no"
11576fi
11577rm -f conftest*
11578fi
11579
11580if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11581 echo "$ac_t""yes" 1>&6
11582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11583 cat >> confdefs.h <<EOF
11584#define $ac_tr_func 1
11585EOF
11586
11587else
11588 echo "$ac_t""no" 1>&6
11589fi
11590done
11591
11592else
11593 echo "$ac_t""no" 1>&6
11594fi
11595
11596
11597 if test "x$ac_cv_func_regcomp" != "xyes"; then
11598 if test "$wxUSE_REGEX" = "sys" ; then
11599 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11600 else
11601 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11602 wxUSE_REGEX=builtin
11603 fi
11604 else
11605 wxUSE_REGEX=sys
11606 fi
11607 fi
11608
11609 if test "$wxUSE_REGEX" = "builtin" ; then
11610 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11611 fi
11612fi
11613
11614
11615ZLIB_INCLUDE=
11616ZLIB_LINK=
11617if test "$wxUSE_ZLIB" != "no" ; then
11618 cat >> confdefs.h <<\EOF
11619#define wxUSE_ZLIB 1
11620EOF
11621
11622
11623 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11624 if test "$USE_DARWIN" = 1; then
11625 system_zlib_h_ok="yes"
11626 else
11627 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11628echo "configure:11629: checking for zlib.h >= 1.1.4" >&5
11629if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11630 echo $ac_n "(cached) $ac_c" 1>&6
11631else
11632 if test "$cross_compiling" = yes; then
11633 unset ac_cv_header_zlib_h
11634
11635else
11636 cat > conftest.$ac_ext <<EOF
11637#line 11638 "configure"
11638#include "confdefs.h"
11639
11640 #include <zlib.h>
11641 #include <stdio.h>
11642
11643 int main()
11644 {
11645 FILE *f=fopen("conftestval", "w");
11646 if (!f) exit(1);
11647 fprintf(f, "%s",
11648 ZLIB_VERSION[0] == '1' &&
11649 (ZLIB_VERSION[2] > '1' ||
11650 (ZLIB_VERSION[2] == '1' &&
11651 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11652 exit(0);
11653 }
11654
11655EOF
11656if { (eval echo configure:11657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11657then
11658 ac_cv_header_zlib_h=`cat conftestval`
11659else
11660 echo "configure: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 rm -fr conftest*
11663 ac_cv_header_zlib_h=no
11664fi
11665rm -fr conftest*
11666fi
11667
11668
11669fi
11670
11671echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11672 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11673echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11674echo "configure:11675: checking for zlib.h" >&5
11675if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11676 echo $ac_n "(cached) $ac_c" 1>&6
11677else
11678 cat > conftest.$ac_ext <<EOF
11679#line 11680 "configure"
11680#include "confdefs.h"
11681#include <zlib.h>
11682EOF
11683ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11684{ (eval echo configure:11685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11686if test -z "$ac_err"; then
11687 rm -rf conftest*
11688 eval "ac_cv_header_$ac_safe=yes"
11689else
11690 echo "$ac_err" >&5
11691 echo "configure: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 rm -rf conftest*
11694 eval "ac_cv_header_$ac_safe=no"
11695fi
11696rm -f conftest*
11697fi
11698if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11699 echo "$ac_t""yes" 1>&6
11700 :
11701else
11702 echo "$ac_t""no" 1>&6
11703fi
11704
11705
11706 system_zlib_h_ok=$ac_cv_header_zlib_h
11707 fi
11708
11709 if test "$system_zlib_h_ok" = "yes"; then
11710 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11711echo "configure:11712: checking for deflate in -lz" >&5
11712ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11714 echo $ac_n "(cached) $ac_c" 1>&6
11715else
11716 ac_save_LIBS="$LIBS"
11717LIBS="-lz $LIBS"
11718cat > conftest.$ac_ext <<EOF
11719#line 11720 "configure"
11720#include "confdefs.h"
11721/* Override any gcc2 internal prototype to avoid an error. */
11722/* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11724char deflate();
11725
11726int main() {
11727deflate()
11728; return 0; }
11729EOF
11730if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731 rm -rf conftest*
11732 eval "ac_cv_lib_$ac_lib_var=yes"
11733else
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 rm -rf conftest*
11737 eval "ac_cv_lib_$ac_lib_var=no"
11738fi
11739rm -f conftest*
11740LIBS="$ac_save_LIBS"
11741
11742fi
11743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11744 echo "$ac_t""yes" 1>&6
11745 ZLIB_LINK=" -lz"
11746else
11747 echo "$ac_t""no" 1>&6
11748fi
11749
11750 fi
11751
11752 if test "x$ZLIB_LINK" = "x" ; then
11753 if test "$wxUSE_ZLIB" = "sys" ; then
11754 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11755 else
11756 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11757 wxUSE_ZLIB=builtin
11758 fi
11759 else
11760 wxUSE_ZLIB=sys
11761 fi
11762 fi
11763
11764 if test "$wxUSE_ZLIB" = "builtin" ; then
11765 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11766 fi
11767fi
11768
11769
11770PNG_INCLUDE=
11771PNG_LINK=
11772if test "$wxUSE_LIBPNG" != "no" ; then
11773 cat >> confdefs.h <<\EOF
11774#define wxUSE_LIBPNG 1
11775EOF
11776
11777
11778 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11779 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11780 wxUSE_LIBPNG=sys
11781 fi
11782
11783 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11784 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11785 wxUSE_LIBPNG=builtin
11786 fi
11787
11788 if test "$wxUSE_MGL" != 1 ; then
11789 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11790 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11791echo "configure:11792: checking for png.h > 0.90" >&5
11792if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11794else
11795 if test "$cross_compiling" = yes; then
11796 unset ac_cv_header_png_h
11797
11798else
11799 cat > conftest.$ac_ext <<EOF
11800#line 11801 "configure"
11801#include "confdefs.h"
11802
11803 #include <png.h>
11804 #include <stdio.h>
11805
11806 int main()
11807 {
11808 FILE *f=fopen("conftestval", "w");
11809 if (!f) exit(1);
11810 fprintf(f, "%s",
11811 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11812 exit(0);
11813 }
11814
11815EOF
11816if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11817then
11818 ac_cv_header_png_h=`cat conftestval`
11819else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -fr conftest*
11823 ac_cv_header_png_h=no
11824fi
11825rm -fr conftest*
11826fi
11827
11828
11829fi
11830
11831echo "$ac_t""$ac_cv_header_png_h" 1>&6
11832 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11833echo $ac_n "checking for png.h""... $ac_c" 1>&6
11834echo "configure:11835: checking for png.h" >&5
11835if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
11837else
11838 cat > conftest.$ac_ext <<EOF
11839#line 11840 "configure"
11840#include "confdefs.h"
11841#include <png.h>
11842EOF
11843ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11844{ (eval echo configure:11845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11845ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11846if test -z "$ac_err"; then
11847 rm -rf conftest*
11848 eval "ac_cv_header_$ac_safe=yes"
11849else
11850 echo "$ac_err" >&5
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 rm -rf conftest*
11854 eval "ac_cv_header_$ac_safe=no"
11855fi
11856rm -f conftest*
11857fi
11858if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
11860 :
11861else
11862 echo "$ac_t""no" 1>&6
11863fi
11864
11865
11866 if test "$ac_cv_header_png_h" = "yes"; then
11867 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11868echo "configure:11869: checking for png_check_sig in -lpng" >&5
11869ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11870if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11872else
11873 ac_save_LIBS="$LIBS"
11874LIBS="-lpng -lz -lm $LIBS"
11875cat > conftest.$ac_ext <<EOF
11876#line 11877 "configure"
11877#include "confdefs.h"
11878/* Override any gcc2 internal prototype to avoid an error. */
11879/* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11881char png_check_sig();
11882
11883int main() {
11884png_check_sig()
11885; return 0; }
11886EOF
11887if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11888 rm -rf conftest*
11889 eval "ac_cv_lib_$ac_lib_var=yes"
11890else
11891 echo "configure: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11893 rm -rf conftest*
11894 eval "ac_cv_lib_$ac_lib_var=no"
11895fi
11896rm -f conftest*
11897LIBS="$ac_save_LIBS"
11898
11899fi
11900if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11901 echo "$ac_t""yes" 1>&6
11902 PNG_LINK=" -lpng"
11903else
11904 echo "$ac_t""no" 1>&6
11905fi
11906
11907 fi
11908
11909 if test "x$PNG_LINK" = "x" ; then
11910 if test "$wxUSE_LIBPNG" = "sys" ; then
11911 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11912 else
11913 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11914 wxUSE_LIBPNG=builtin
11915 fi
11916 else
11917 wxUSE_LIBPNG=sys
11918 fi
11919 fi
11920 fi
11921
11922 if test "$wxUSE_LIBPNG" = "builtin" ; then
11923 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11924 fi
11925
11926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11927fi
11928
11929
11930JPEG_INCLUDE=
11931JPEG_LINK=
11932if test "$wxUSE_LIBJPEG" != "no" ; then
11933 cat >> confdefs.h <<\EOF
11934#define wxUSE_LIBJPEG 1
11935EOF
11936
11937
11938 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11939 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11940 wxUSE_LIBJPEG=sys
11941 fi
11942
11943 if test "$wxUSE_MGL" != 1 ; then
11944 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11945 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11946echo "configure:11947: checking for jpeglib.h" >&5
11947 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11948 echo $ac_n "(cached) $ac_c" 1>&6
11949else
11950 cat > conftest.$ac_ext <<EOF
11951#line 11952 "configure"
11952#include "confdefs.h"
11953
11954 #undef HAVE_STDLIB_H
11955 #include <stdio.h>
11956 #include <jpeglib.h>
11957
11958int main() {
11959
11960
11961; return 0; }
11962EOF
11963if { (eval echo configure:11964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11964 rm -rf conftest*
11965 ac_cv_header_jpeglib_h=yes
11966else
11967 echo "configure: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 rm -rf conftest*
11970 ac_cv_header_jpeglib_h=no
11971
11972fi
11973rm -f conftest*
11974
11975fi
11976
11977 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11978
11979 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11980 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11981echo "configure:11982: checking for jpeg_read_header in -ljpeg" >&5
11982ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11983if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
11985else
11986 ac_save_LIBS="$LIBS"
11987LIBS="-ljpeg $LIBS"
11988cat > conftest.$ac_ext <<EOF
11989#line 11990 "configure"
11990#include "confdefs.h"
11991/* Override any gcc2 internal prototype to avoid an error. */
11992/* We use char because int might match the return type of a gcc2
11993 builtin and then its argument prototype would still apply. */
11994char jpeg_read_header();
11995
11996int main() {
11997jpeg_read_header()
11998; return 0; }
11999EOF
12000if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12001 rm -rf conftest*
12002 eval "ac_cv_lib_$ac_lib_var=yes"
12003else
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12006 rm -rf conftest*
12007 eval "ac_cv_lib_$ac_lib_var=no"
12008fi
12009rm -f conftest*
12010LIBS="$ac_save_LIBS"
12011
12012fi
12013if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12014 echo "$ac_t""yes" 1>&6
12015 JPEG_LINK=" -ljpeg"
12016else
12017 echo "$ac_t""no" 1>&6
12018fi
12019
12020 fi
12021
12022 if test "x$JPEG_LINK" = "x" ; then
12023 if test "$wxUSE_LIBJPEG" = "sys" ; then
12024 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12025 else
12026 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12027 wxUSE_LIBJPEG=builtin
12028 fi
12029 else
12030 wxUSE_LIBJPEG=sys
12031 fi
12032 fi
12033 fi
12034
12035 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12036 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12037 fi
12038fi
12039
12040
12041TIFF_INCLUDE=
12042TIFF_LINK=
12043TIFF_PREREQ_LINKS=-lm
12044if test "$wxUSE_LIBTIFF" != "no" ; then
12045 cat >> confdefs.h <<\EOF
12046#define wxUSE_LIBTIFF 1
12047EOF
12048
12049
12050 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12051 if test "$wxUSE_LIBJPEG" = "sys"; then
12052 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12053 fi
12054 if test "$wxUSE_ZLIB" = "sys"; then
12055 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12056 fi
12057 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12058echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12059echo "configure:12060: checking for tiffio.h" >&5
12060if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12061 echo $ac_n "(cached) $ac_c" 1>&6
12062else
12063 cat > conftest.$ac_ext <<EOF
12064#line 12065 "configure"
12065#include "confdefs.h"
12066#include <tiffio.h>
12067EOF
12068ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12069{ (eval echo configure:12070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12070ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12071if test -z "$ac_err"; then
12072 rm -rf conftest*
12073 eval "ac_cv_header_$ac_safe=yes"
12074else
12075 echo "$ac_err" >&5
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 eval "ac_cv_header_$ac_safe=no"
12080fi
12081rm -f conftest*
12082fi
12083if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12084 echo "$ac_t""yes" 1>&6
12085 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12086echo "configure:12087: checking for TIFFError in -ltiff" >&5
12087ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12088if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
12090else
12091 ac_save_LIBS="$LIBS"
12092LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12093cat > conftest.$ac_ext <<EOF
12094#line 12095 "configure"
12095#include "confdefs.h"
12096/* Override any gcc2 internal prototype to avoid an error. */
12097/* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12099char TIFFError();
12100
12101int main() {
12102TIFFError()
12103; return 0; }
12104EOF
12105if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12106 rm -rf conftest*
12107 eval "ac_cv_lib_$ac_lib_var=yes"
12108else
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 rm -rf conftest*
12112 eval "ac_cv_lib_$ac_lib_var=no"
12113fi
12114rm -f conftest*
12115LIBS="$ac_save_LIBS"
12116
12117fi
12118if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12119 echo "$ac_t""yes" 1>&6
12120 TIFF_LINK=" -ltiff"
12121else
12122 echo "$ac_t""no" 1>&6
12123fi
12124
12125
12126else
12127 echo "$ac_t""no" 1>&6
12128fi
12129
12130
12131 if test "x$TIFF_LINK" = "x" ; then
12132 if test "$wxUSE_LIBTIFF" = "sys" ; then
12133 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12134 else
12135 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12136 wxUSE_LIBTIFF=builtin
12137 fi
12138 else
12139 wxUSE_LIBTIFF=sys
12140 fi
12141 fi
12142
12143 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12144 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12145 fi
12146fi
12147
12148
12149AFMINSTALL=
12150WIN32INSTALL=
12151
12152TOOLKIT=
12153TOOLKIT_INCLUDE=
12154WIDGET_SET=
12155
12156if test "$USE_WIN32" = 1 ; then
12157 for ac_hdr in w32api.h
12158do
12159ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12160echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12161echo "configure:12162: checking for $ac_hdr" >&5
12162if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12163 echo $ac_n "(cached) $ac_c" 1>&6
12164else
12165 cat > conftest.$ac_ext <<EOF
12166#line 12167 "configure"
12167#include "confdefs.h"
12168#include <$ac_hdr>
12169EOF
12170ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12171{ (eval echo configure:12172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12172ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12173if test -z "$ac_err"; then
12174 rm -rf conftest*
12175 eval "ac_cv_header_$ac_safe=yes"
12176else
12177 echo "$ac_err" >&5
12178 echo "configure: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12180 rm -rf conftest*
12181 eval "ac_cv_header_$ac_safe=no"
12182fi
12183rm -f conftest*
12184fi
12185if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12186 echo "$ac_t""yes" 1>&6
12187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12188 cat >> confdefs.h <<EOF
12189#define $ac_tr_hdr 1
12190EOF
12191
12192else
12193 echo "$ac_t""no" 1>&6
12194fi
12195done
12196
12197 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12198echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12199echo "configure:12200: checking for windows.h" >&5
12200if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12201 echo $ac_n "(cached) $ac_c" 1>&6
12202else
12203 cat > conftest.$ac_ext <<EOF
12204#line 12205 "configure"
12205#include "confdefs.h"
12206#include <windows.h>
12207EOF
12208ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12209{ (eval echo configure:12210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12210ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12211if test -z "$ac_err"; then
12212 rm -rf conftest*
12213 eval "ac_cv_header_$ac_safe=yes"
12214else
12215 echo "$ac_err" >&5
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12218 rm -rf conftest*
12219 eval "ac_cv_header_$ac_safe=no"
12220fi
12221rm -f conftest*
12222fi
12223if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 :
12226else
12227 echo "$ac_t""no" 1>&6
12228
12229 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12230
12231fi
12232
12233
12234 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12235echo "configure:12236: checking if w32api has good enough MSIE support" >&5
12236if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12237 echo $ac_n "(cached) $ac_c" 1>&6
12238else
12239
12240 cat > conftest.$ac_ext <<EOF
12241#line 12242 "configure"
12242#include "confdefs.h"
12243#include <w32api.h>
12244int main() {
12245
12246 #define wxCHECK_W32API_VERSION( major, minor ) \
12247 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12248 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12249 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12250
12251 #if !wxCHECK_W32API_VERSION(1,1)
12252 #error You need w32api 1.1 or newer
12253 #endif
12254
12255; return 0; }
12256EOF
12257if { (eval echo configure:12258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12258 rm -rf conftest*
12259
12260 wx_cv_w32api_win32_ie=yes
12261
12262else
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266
12267 wx_cv_w32api_win32_ie=no
12268
12269fi
12270rm -f conftest*
12271
12272fi
12273
12274echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12275 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12276 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12277 fi
12278
12279 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12280
12281 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12282 LIBS="$LIBS -loleacc"
12283 fi
12284
12285 case "${host}" in
12286 *-*-cygwin* )
12287 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12288 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12289 esac
12290
12291 if test "$wxUSE_ODBC" = "sys" ; then
12292 wxUSE_ODBC = "yes"
12293 fi
12294 if test "$wxUSE_ODBC" = "yes" ; then
12295 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12296 cat >> confdefs.h <<\EOF
12297#define wxUSE_ODBC 1
12298EOF
12299
12300 fi
12301
12302 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12303 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12304
12305 WIN32INSTALL=win32install
12306fi
12307
12308if test "$USE_DARWIN" = 1; then
12309 if test "$wxUSE_PRECOMP" = "yes"; then
12310 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12311 else
12312 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12313 fi
12314fi
12315
12316if test "$wxUSE_GUI" = "yes"; then
12317 USE_GUI=1
12318
12319 GUI_TK_LIBRARY=
12320
12321 WXGTK12=
12322 WXGTK127=
12323 WXGTK20=
12324
12325 if test "$wxUSE_MSW" = 1 ; then
12326 TOOLKIT=MSW
12327 GUIDIST=MSW_DIST
12328
12329 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12330 fi
12331
12332 if test "$wxUSE_GTK" = 1; then
12333 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12334echo "configure:12335: checking for GTK+ version" >&5
12335
12336 gtk_version_cached=1
12337 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12338 echo $ac_n "(cached) $ac_c" 1>&6
12339else
12340
12341 gtk_version_cached=0
12342 echo "$ac_t""" 1>&6
12343
12344 GTK_MODULES=
12345 if test "$wxUSE_THREADS" = "yes"; then
12346 GTK_MODULES=gthread
12347 fi
12348
12349 wx_cv_lib_gtk=
12350 if test "x$wxUSE_GTK2" = "xyes"; then
12351 # Check whether --enable-gtktest or --disable-gtktest was given.
12352if test "${enable_gtktest+set}" = set; then
12353 enableval="$enable_gtktest"
12354 :
12355else
12356 enable_gtktest=yes
12357fi
12358
12359
12360 pkg_config_args=gtk+-2.0
12361 for module in . $GTK_MODULES
12362 do
12363 case "$module" in
12364 gthread)
12365 pkg_config_args="$pkg_config_args gthread-2.0"
12366 ;;
12367 esac
12368 done
12369
12370 no_gtk=""
12371
12372 # Extract the first word of "pkg-config", so it can be a program name with args.
12373set dummy pkg-config; ac_word=$2
12374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12375echo "configure:12376: checking for $ac_word" >&5
12376if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12377 echo $ac_n "(cached) $ac_c" 1>&6
12378else
12379 case "$PKG_CONFIG" in
12380 /*)
12381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12382 ;;
12383 ?:/*)
12384 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12385 ;;
12386 *)
12387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12388 ac_dummy="$PATH"
12389 for ac_dir in $ac_dummy; do
12390 test -z "$ac_dir" && ac_dir=.
12391 if test -f $ac_dir/$ac_word; then
12392 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12393 break
12394 fi
12395 done
12396 IFS="$ac_save_ifs"
12397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12398 ;;
12399esac
12400fi
12401PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12402if test -n "$PKG_CONFIG"; then
12403 echo "$ac_t""$PKG_CONFIG" 1>&6
12404else
12405 echo "$ac_t""no" 1>&6
12406fi
12407
12408
12409 if test x$PKG_CONFIG != xno ; then
12410 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12411 :
12412 else
12413 echo *** pkg-config too old; version 0.7 or better required.
12414 no_gtk=yes
12415 PKG_CONFIG=no
12416 fi
12417 else
12418 no_gtk=yes
12419 fi
12420
12421 min_gtk_version=2.0.0
12422 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12423echo "configure:12424: checking for GTK+ - version >= $min_gtk_version" >&5
12424
12425 if test x$PKG_CONFIG != xno ; then
12426 ## don't try to run the test against uninstalled libtool libs
12427 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12428 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12429 enable_gtktest=no
12430 fi
12431
12432 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12433 :
12434 else
12435 no_gtk=yes
12436 fi
12437 fi
12438
12439 if test x"$no_gtk" = x ; then
12440 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12441 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12442 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12444 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12446 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12448 if test "x$enable_gtktest" = "xyes" ; then
12449 ac_save_CFLAGS="$CFLAGS"
12450 ac_save_LIBS="$LIBS"
12451 CFLAGS="$CFLAGS $GTK_CFLAGS"
12452 LIBS="$GTK_LIBS $LIBS"
12453 rm -f conf.gtktest
12454 if test "$cross_compiling" = yes; then
12455 echo $ac_n "cross compiling; assumed OK... $ac_c"
12456else
12457 cat > conftest.$ac_ext <<EOF
12458#line 12459 "configure"
12459#include "confdefs.h"
12460
12461#include <gtk/gtk.h>
12462#include <stdio.h>
12463#include <stdlib.h>
12464
12465int
12466main ()
12467{
12468 int major, minor, micro;
12469 char *tmp_version;
12470
12471 system ("touch conf.gtktest");
12472
12473 /* HP/UX 9 (%@#!) writes to sscanf strings */
12474 tmp_version = g_strdup("$min_gtk_version");
12475 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12476 printf("%s, bad version string\n", "$min_gtk_version");
12477 exit(1);
12478 }
12479
12480 if ((gtk_major_version != $gtk_config_major_version) ||
12481 (gtk_minor_version != $gtk_config_minor_version) ||
12482 (gtk_micro_version != $gtk_config_micro_version))
12483 {
12484 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12485 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12486 gtk_major_version, gtk_minor_version, gtk_micro_version);
12487 printf ("*** was found! If pkg-config was correct, then it is best\n");
12488 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12489 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12490 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12491 printf("*** required on your system.\n");
12492 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12493 printf("*** to point to the correct configuration files\n");
12494 }
12495 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12496 (gtk_minor_version != GTK_MINOR_VERSION) ||
12497 (gtk_micro_version != GTK_MICRO_VERSION))
12498 {
12499 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12500 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12501 printf("*** library (version %d.%d.%d)\n",
12502 gtk_major_version, gtk_minor_version, gtk_micro_version);
12503 }
12504 else
12505 {
12506 if ((gtk_major_version > major) ||
12507 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12508 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12509 {
12510 return 0;
12511 }
12512 else
12513 {
12514 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12515 gtk_major_version, gtk_minor_version, gtk_micro_version);
12516 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12517 major, minor, micro);
12518 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12519 printf("***\n");
12520 printf("*** If you have already installed a sufficiently new version, this error\n");
12521 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12522 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12523 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12524 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12525 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12526 printf("*** so that the correct libraries are found at run-time))\n");
12527 }
12528 }
12529 return 1;
12530}
12531
12532EOF
12533if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12534then
12535 :
12536else
12537 echo "configure: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12539 rm -fr conftest*
12540 no_gtk=yes
12541fi
12542rm -fr conftest*
12543fi
12544
12545 CFLAGS="$ac_save_CFLAGS"
12546 LIBS="$ac_save_LIBS"
12547 fi
12548 fi
12549 if test "x$no_gtk" = x ; then
12550 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12551 wx_cv_lib_gtk=2.0
12552 else
12553 echo "$ac_t""no" 1>&6
12554 if test "$PKG_CONFIG" = "no" ; then
12555 echo "*** A new enough version of pkg-config was not found."
12556 echo "*** See http://pkgconfig.sourceforge.net"
12557 else
12558 if test -f conf.gtktest ; then
12559 :
12560 else
12561 echo "*** Could not run GTK+ test program, checking why..."
12562 ac_save_CFLAGS="$CFLAGS"
12563 ac_save_LIBS="$LIBS"
12564 CFLAGS="$CFLAGS $GTK_CFLAGS"
12565 LIBS="$LIBS $GTK_LIBS"
12566 cat > conftest.$ac_ext <<EOF
12567#line 12568 "configure"
12568#include "confdefs.h"
12569
12570#include <gtk/gtk.h>
12571#include <stdio.h>
12572
12573int main() {
12574 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12575; return 0; }
12576EOF
12577if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12578 rm -rf conftest*
12579 echo "*** The test program compiled, but did not run. This usually means"
12580 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12581 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12582 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12583 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12584 echo "*** is required on your system"
12585 echo "***"
12586 echo "*** If you have an old version installed, it is best to remove it, although"
12587 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12588else
12589 echo "configure: failed program was:" >&5
12590 cat conftest.$ac_ext >&5
12591 rm -rf conftest*
12592 echo "*** The test program failed to compile or link. See the file config.log for the"
12593 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12594fi
12595rm -f conftest*
12596 CFLAGS="$ac_save_CFLAGS"
12597 LIBS="$ac_save_LIBS"
12598 fi
12599 fi
12600 GTK_CFLAGS=""
12601 GTK_LIBS=""
12602 :
12603 fi
12604
12605
12606 rm -f conf.gtktest
12607
12608 else
12609 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12610if test "${with_gtk_prefix+set}" = set; then
12611 withval="$with_gtk_prefix"
12612 gtk_config_prefix="$withval"
12613else
12614 gtk_config_prefix=""
12615fi
12616
12617# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12618if test "${with_gtk_exec_prefix+set}" = set; then
12619 withval="$with_gtk_exec_prefix"
12620 gtk_config_exec_prefix="$withval"
12621else
12622 gtk_config_exec_prefix=""
12623fi
12624
12625# Check whether --enable-gtktest or --disable-gtktest was given.
12626if test "${enable_gtktest+set}" = set; then
12627 enableval="$enable_gtktest"
12628 :
12629else
12630 enable_gtktest=yes
12631fi
12632
12633
12634 for module in . $GTK_MODULES
12635 do
12636 case "$module" in
12637 gthread)
12638 gtk_config_args="$gtk_config_args gthread"
12639 ;;
12640 esac
12641 done
12642
12643 if test x$gtk_config_exec_prefix != x ; then
12644 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12645 if test x${GTK_CONFIG+set} != xset ; then
12646 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12647 fi
12648 fi
12649 if test x$gtk_config_prefix != x ; then
12650 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12651 if test x${GTK_CONFIG+set} != xset ; then
12652 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12653 fi
12654 fi
12655
12656 # Extract the first word of "gtk-config", so it can be a program name with args.
12657set dummy gtk-config; ac_word=$2
12658echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12659echo "configure:12660: checking for $ac_word" >&5
12660if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12661 echo $ac_n "(cached) $ac_c" 1>&6
12662else
12663 case "$GTK_CONFIG" in
12664 /*)
12665 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12666 ;;
12667 ?:/*)
12668 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12669 ;;
12670 *)
12671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12672 ac_dummy="$PATH"
12673 for ac_dir in $ac_dummy; do
12674 test -z "$ac_dir" && ac_dir=.
12675 if test -f $ac_dir/$ac_word; then
12676 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12677 break
12678 fi
12679 done
12680 IFS="$ac_save_ifs"
12681 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12682 ;;
12683esac
12684fi
12685GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12686if test -n "$GTK_CONFIG"; then
12687 echo "$ac_t""$GTK_CONFIG" 1>&6
12688else
12689 echo "$ac_t""no" 1>&6
12690fi
12691
12692 min_gtk_version=1.2.7
12693 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12694echo "configure:12695: checking for GTK - version >= $min_gtk_version" >&5
12695 no_gtk=""
12696 if test "$GTK_CONFIG" = "no" ; then
12697 no_gtk=yes
12698 else
12699 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12700 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12701 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12703 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12705 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12707 if test "x$enable_gtktest" = "xyes" ; then
12708 ac_save_CFLAGS="$CFLAGS"
12709 ac_save_LIBS="$LIBS"
12710 CFLAGS="$CFLAGS $GTK_CFLAGS"
12711 LIBS="$GTK_LIBS $LIBS"
12712 rm -f conf.gtktest
12713 if test "$cross_compiling" = yes; then
12714 echo $ac_n "cross compiling; assumed OK... $ac_c"
12715else
12716 cat > conftest.$ac_ext <<EOF
12717#line 12718 "configure"
12718#include "confdefs.h"
12719
12720#include <gtk/gtk.h>
12721#include <stdio.h>
12722#include <stdlib.h>
12723
12724int
12725main ()
12726{
12727 int major, minor, micro;
12728 char *tmp_version;
12729
12730 system ("touch conf.gtktest");
12731
12732 /* HP/UX 9 (%@#!) writes to sscanf strings */
12733 tmp_version = g_strdup("$min_gtk_version");
12734 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12735 printf("%s, bad version string\n", "$min_gtk_version");
12736 exit(1);
12737 }
12738
12739 if ((gtk_major_version != $gtk_config_major_version) ||
12740 (gtk_minor_version != $gtk_config_minor_version) ||
12741 (gtk_micro_version != $gtk_config_micro_version))
12742 {
12743 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12744 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12745 gtk_major_version, gtk_minor_version, gtk_micro_version);
12746 printf ("*** was found! If gtk-config was correct, then it is best\n");
12747 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12748 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12749 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12750 printf("*** required on your system.\n");
12751 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12752 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12753 printf("*** before re-running configure\n");
12754 }
12755#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12756 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12757 (gtk_minor_version != GTK_MINOR_VERSION) ||
12758 (gtk_micro_version != GTK_MICRO_VERSION))
12759 {
12760 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12761 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12762 printf("*** library (version %d.%d.%d)\n",
12763 gtk_major_version, gtk_minor_version, gtk_micro_version);
12764 }
12765#endif /* defined (GTK_MAJOR_VERSION) ... */
12766 else
12767 {
12768 if ((gtk_major_version > major) ||
12769 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12770 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12771 {
12772 return 0;
12773 }
12774 else
12775 {
12776 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12777 gtk_major_version, gtk_minor_version, gtk_micro_version);
12778 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12779 major, minor, micro);
12780 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12781 printf("***\n");
12782 printf("*** If you have already installed a sufficiently new version, this error\n");
12783 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12784 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12785 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12786 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12787 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12788 printf("*** so that the correct libraries are found at run-time))\n");
12789 }
12790 }
12791 return 1;
12792}
12793
12794EOF
12795if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12796then
12797 :
12798else
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 rm -fr conftest*
12802 no_gtk=yes
12803fi
12804rm -fr conftest*
12805fi
12806
12807 CFLAGS="$ac_save_CFLAGS"
12808 LIBS="$ac_save_LIBS"
12809 fi
12810 fi
12811 if test "x$no_gtk" = x ; then
12812 echo "$ac_t""yes" 1>&6
12813 wx_cv_lib_gtk=1.2.7
12814 else
12815 echo "$ac_t""no" 1>&6
12816 if test "$GTK_CONFIG" = "no" ; then
12817 echo "*** The gtk-config script installed by GTK could not be found"
12818 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12819 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12820 echo "*** full path to gtk-config."
12821 else
12822 if test -f conf.gtktest ; then
12823 :
12824 else
12825 echo "*** Could not run GTK test program, checking why..."
12826 CFLAGS="$CFLAGS $GTK_CFLAGS"
12827 LIBS="$LIBS $GTK_LIBS"
12828 cat > conftest.$ac_ext <<EOF
12829#line 12830 "configure"
12830#include "confdefs.h"
12831
12832#include <gtk/gtk.h>
12833#include <stdio.h>
12834
12835int main() {
12836 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12837; return 0; }
12838EOF
12839if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12840 rm -rf conftest*
12841 echo "*** The test program compiled, but did not run. This usually means"
12842 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12843 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12844 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12845 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12846 echo "*** is required on your system"
12847 echo "***"
12848 echo "*** If you have an old version installed, it is best to remove it, although"
12849 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12850 echo "***"
12851 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12852 echo "*** came with the system with the command"
12853 echo "***"
12854 echo "*** rpm --erase --nodeps gtk gtk-devel"
12855else
12856 echo "configure: failed program was:" >&5
12857 cat conftest.$ac_ext >&5
12858 rm -rf conftest*
12859 echo "*** The test program failed to compile or link. See the file config.log for the"
12860 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12861 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12862 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12863fi
12864rm -f conftest*
12865 CFLAGS="$ac_save_CFLAGS"
12866 LIBS="$ac_save_LIBS"
12867 fi
12868 fi
12869 GTK_CFLAGS=""
12870 GTK_LIBS=""
12871 :
12872 fi
12873
12874
12875 rm -f conf.gtktest
12876
12877
12878 if test -z "$wx_cv_lib_gtk"; then
12879 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12880if test "${with_gtk_prefix+set}" = set; then
12881 withval="$with_gtk_prefix"
12882 gtk_config_prefix="$withval"
12883else
12884 gtk_config_prefix=""
12885fi
12886
12887# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12888if test "${with_gtk_exec_prefix+set}" = set; then
12889 withval="$with_gtk_exec_prefix"
12890 gtk_config_exec_prefix="$withval"
12891else
12892 gtk_config_exec_prefix=""
12893fi
12894
12895# Check whether --enable-gtktest or --disable-gtktest was given.
12896if test "${enable_gtktest+set}" = set; then
12897 enableval="$enable_gtktest"
12898 :
12899else
12900 enable_gtktest=yes
12901fi
12902
12903
12904 for module in . $GTK_MODULES
12905 do
12906 case "$module" in
12907 gthread)
12908 gtk_config_args="$gtk_config_args gthread"
12909 ;;
12910 esac
12911 done
12912
12913 if test x$gtk_config_exec_prefix != x ; then
12914 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12915 if test x${GTK_CONFIG+set} != xset ; then
12916 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12917 fi
12918 fi
12919 if test x$gtk_config_prefix != x ; then
12920 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12921 if test x${GTK_CONFIG+set} != xset ; then
12922 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12923 fi
12924 fi
12925
12926 # Extract the first word of "gtk-config", so it can be a program name with args.
12927set dummy gtk-config; ac_word=$2
12928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12929echo "configure:12930: checking for $ac_word" >&5
12930if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12931 echo $ac_n "(cached) $ac_c" 1>&6
12932else
12933 case "$GTK_CONFIG" in
12934 /*)
12935 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12936 ;;
12937 ?:/*)
12938 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12939 ;;
12940 *)
12941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12942 ac_dummy="$PATH"
12943 for ac_dir in $ac_dummy; do
12944 test -z "$ac_dir" && ac_dir=.
12945 if test -f $ac_dir/$ac_word; then
12946 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12947 break
12948 fi
12949 done
12950 IFS="$ac_save_ifs"
12951 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12952 ;;
12953esac
12954fi
12955GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12956if test -n "$GTK_CONFIG"; then
12957 echo "$ac_t""$GTK_CONFIG" 1>&6
12958else
12959 echo "$ac_t""no" 1>&6
12960fi
12961
12962 min_gtk_version=1.2.3
12963 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12964echo "configure:12965: checking for GTK - version >= $min_gtk_version" >&5
12965 no_gtk=""
12966 if test "$GTK_CONFIG" = "no" ; then
12967 no_gtk=yes
12968 else
12969 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12970 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12971 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12973 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12974 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12975 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12976 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12977 if test "x$enable_gtktest" = "xyes" ; then
12978 ac_save_CFLAGS="$CFLAGS"
12979 ac_save_LIBS="$LIBS"
12980 CFLAGS="$CFLAGS $GTK_CFLAGS"
12981 LIBS="$GTK_LIBS $LIBS"
12982 rm -f conf.gtktest
12983 if test "$cross_compiling" = yes; then
12984 echo $ac_n "cross compiling; assumed OK... $ac_c"
12985else
12986 cat > conftest.$ac_ext <<EOF
12987#line 12988 "configure"
12988#include "confdefs.h"
12989
12990#include <gtk/gtk.h>
12991#include <stdio.h>
12992#include <stdlib.h>
12993
12994int
12995main ()
12996{
12997 int major, minor, micro;
12998 char *tmp_version;
12999
13000 system ("touch conf.gtktest");
13001
13002 /* HP/UX 9 (%@#!) writes to sscanf strings */
13003 tmp_version = g_strdup("$min_gtk_version");
13004 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13005 printf("%s, bad version string\n", "$min_gtk_version");
13006 exit(1);
13007 }
13008
13009 if ((gtk_major_version != $gtk_config_major_version) ||
13010 (gtk_minor_version != $gtk_config_minor_version) ||
13011 (gtk_micro_version != $gtk_config_micro_version))
13012 {
13013 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13014 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13015 gtk_major_version, gtk_minor_version, gtk_micro_version);
13016 printf ("*** was found! If gtk-config was correct, then it is best\n");
13017 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13018 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13019 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13020 printf("*** required on your system.\n");
13021 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13022 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13023 printf("*** before re-running configure\n");
13024 }
13025#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13026 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13027 (gtk_minor_version != GTK_MINOR_VERSION) ||
13028 (gtk_micro_version != GTK_MICRO_VERSION))
13029 {
13030 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13031 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13032 printf("*** library (version %d.%d.%d)\n",
13033 gtk_major_version, gtk_minor_version, gtk_micro_version);
13034 }
13035#endif /* defined (GTK_MAJOR_VERSION) ... */
13036 else
13037 {
13038 if ((gtk_major_version > major) ||
13039 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13040 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13041 {
13042 return 0;
13043 }
13044 else
13045 {
13046 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13047 gtk_major_version, gtk_minor_version, gtk_micro_version);
13048 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13049 major, minor, micro);
13050 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13051 printf("***\n");
13052 printf("*** If you have already installed a sufficiently new version, this error\n");
13053 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13054 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13055 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13056 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13057 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13058 printf("*** so that the correct libraries are found at run-time))\n");
13059 }
13060 }
13061 return 1;
13062}
13063
13064EOF
13065if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13066then
13067 :
13068else
13069 echo "configure: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13071 rm -fr conftest*
13072 no_gtk=yes
13073fi
13074rm -fr conftest*
13075fi
13076
13077 CFLAGS="$ac_save_CFLAGS"
13078 LIBS="$ac_save_LIBS"
13079 fi
13080 fi
13081 if test "x$no_gtk" = x ; then
13082 echo "$ac_t""yes" 1>&6
13083 wx_cv_lib_gtk=1.2.3
13084 else
13085 echo "$ac_t""no" 1>&6
13086 if test "$GTK_CONFIG" = "no" ; then
13087 echo "*** The gtk-config script installed by GTK could not be found"
13088 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13089 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13090 echo "*** full path to gtk-config."
13091 else
13092 if test -f conf.gtktest ; then
13093 :
13094 else
13095 echo "*** Could not run GTK test program, checking why..."
13096 CFLAGS="$CFLAGS $GTK_CFLAGS"
13097 LIBS="$LIBS $GTK_LIBS"
13098 cat > conftest.$ac_ext <<EOF
13099#line 13100 "configure"
13100#include "confdefs.h"
13101
13102#include <gtk/gtk.h>
13103#include <stdio.h>
13104
13105int main() {
13106 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13107; return 0; }
13108EOF
13109if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13110 rm -rf conftest*
13111 echo "*** The test program compiled, but did not run. This usually means"
13112 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13113 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13114 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13115 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13116 echo "*** is required on your system"
13117 echo "***"
13118 echo "*** If you have an old version installed, it is best to remove it, although"
13119 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13120 echo "***"
13121 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13122 echo "*** came with the system with the command"
13123 echo "***"
13124 echo "*** rpm --erase --nodeps gtk gtk-devel"
13125else
13126 echo "configure: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 rm -rf conftest*
13129 echo "*** The test program failed to compile or link. See the file config.log for the"
13130 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13131 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13132 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13133fi
13134rm -f conftest*
13135 CFLAGS="$ac_save_CFLAGS"
13136 LIBS="$ac_save_LIBS"
13137 fi
13138 fi
13139 GTK_CFLAGS=""
13140 GTK_LIBS=""
13141 :
13142 fi
13143
13144
13145 rm -f conf.gtktest
13146
13147 fi
13148 fi
13149
13150 if test -z "$wx_cv_lib_gtk"; then
13151 wx_cv_lib_gtk=none
13152 else
13153 wx_cv_cflags_gtk=$GTK_CFLAGS
13154 wx_cv_libs_gtk=$GTK_LIBS
13155 fi
13156
13157
13158fi
13159
13160
13161 if test "$gtk_version_cached" = 1; then
13162 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13163 fi
13164
13165 case "$wx_cv_lib_gtk" in
13166 2.0) WXGTK20=1
13167 TOOLKIT_VERSION=2
13168 ;;
13169 1.2.7) WXGTK127=1
13170 WXGTK12=1
13171 ;;
13172 1.2.3) WXGTK12=1
13173 ;;
13174 *) { echo "configure: error:
13175Please check that gtk-config is in path, the directory
13176where GTK+ libraries are installed (returned by
13177'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13178equivalent variable and GTK+ is version 1.2.3 or above.
13179 " 1>&2; exit 1; }
13180 ;;
13181 esac
13182
13183 if test "$WXGTK20" = 1; then
13184 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13185
13186 succeeded=no
13187
13188 if test -z "$PKG_CONFIG"; then
13189 # Extract the first word of "pkg-config", so it can be a program name with args.
13190set dummy pkg-config; ac_word=$2
13191echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13192echo "configure:13193: checking for $ac_word" >&5
13193if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
13195else
13196 case "$PKG_CONFIG" in
13197 /*)
13198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13199 ;;
13200 ?:/*)
13201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13202 ;;
13203 *)
13204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13205 ac_dummy="$PATH"
13206 for ac_dir in $ac_dummy; do
13207 test -z "$ac_dir" && ac_dir=.
13208 if test -f $ac_dir/$ac_word; then
13209 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13210 break
13211 fi
13212 done
13213 IFS="$ac_save_ifs"
13214 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13215 ;;
13216esac
13217fi
13218PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13219if test -n "$PKG_CONFIG"; then
13220 echo "$ac_t""$PKG_CONFIG" 1>&6
13221else
13222 echo "$ac_t""no" 1>&6
13223fi
13224
13225 fi
13226
13227 if test "$PKG_CONFIG" = "no" ; then
13228 echo "*** The pkg-config script could not be found. Make sure it is"
13229 echo "*** in your path, or set the PKG_CONFIG environment variable"
13230 echo "*** to the full path to pkg-config."
13231 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13232 else
13233 PKG_CONFIG_MIN_VERSION=0.9.0
13234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13235 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13236echo "configure:13237: checking for pangoft2" >&5
13237
13238 if $PKG_CONFIG --exists "pangoft2" ; then
13239 echo "$ac_t""yes" 1>&6
13240 succeeded=yes
13241
13242 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13243echo "configure:13244: checking PANGOFT2_CFLAGS" >&5
13244 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13245 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13246
13247 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13248echo "configure:13249: checking PANGOFT2_LIBS" >&5
13249 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13250 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13251 else
13252 PANGOFT2_CFLAGS=""
13253 PANGOFT2_LIBS=""
13254 ## If we have a custom action on failure, don't print errors, but
13255 ## do set a variable so people can do so.
13256 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13257
13258 fi
13259
13260
13261
13262 else
13263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13265 fi
13266 fi
13267
13268 if test $succeeded = yes; then
13269
13270 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13271 LIBS="$LIBS $PANGOFT2_LIBS"
13272
13273 else
13274
13275 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13276 wxUSE_PRINTING_ARCHITECTURE="no"
13277
13278
13279 fi
13280
13281 fi
13282 else
13283 if test "$wxUSE_UNICODE" = "yes"; then
13284 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13285 wxUSE_UNICODE=no
13286 fi
13287 fi
13288
13289 if test "$USE_DARWIN" != 1; then
13290 for ac_func in poll
13291do
13292echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13293echo "configure:13294: checking for $ac_func" >&5
13294if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13295 echo $ac_n "(cached) $ac_c" 1>&6
13296else
13297 cat > conftest.$ac_ext <<EOF
13298#line 13299 "configure"
13299#include "confdefs.h"
13300/* System header to define __stub macros and hopefully few prototypes,
13301 which can conflict with char $ac_func(); below. */
13302#include <assert.h>
13303/* Override any gcc2 internal prototype to avoid an error. */
13304/* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13306char $ac_func();
13307
13308int main() {
13309
13310/* The GNU C library defines this for functions which it implements
13311 to always fail with ENOSYS. Some functions are actually named
13312 something starting with __ and the normal name is an alias. */
13313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13314choke me
13315#else
13316$ac_func();
13317#endif
13318
13319; return 0; }
13320EOF
13321if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13322 rm -rf conftest*
13323 eval "ac_cv_func_$ac_func=yes"
13324else
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 rm -rf conftest*
13328 eval "ac_cv_func_$ac_func=no"
13329fi
13330rm -f conftest*
13331fi
13332
13333if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13334 echo "$ac_t""yes" 1>&6
13335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13336 cat >> confdefs.h <<EOF
13337#define $ac_tr_func 1
13338EOF
13339
13340else
13341 echo "$ac_t""no" 1>&6
13342fi
13343done
13344
13345 fi
13346
13347 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13348 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13349
13350 AFMINSTALL=afminstall
13351 TOOLKIT=GTK
13352 GUIDIST=GTK_DIST
13353
13354 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13355echo "configure:13356: checking for gdk_im_open in -lgdk" >&5
13356ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13359else
13360 ac_save_LIBS="$LIBS"
13361LIBS="-lgdk $LIBS"
13362cat > conftest.$ac_ext <<EOF
13363#line 13364 "configure"
13364#include "confdefs.h"
13365/* Override any gcc2 internal prototype to avoid an error. */
13366/* We use char because int might match the return type of a gcc2
13367 builtin and then its argument prototype would still apply. */
13368char gdk_im_open();
13369
13370int main() {
13371gdk_im_open()
13372; return 0; }
13373EOF
13374if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13375 rm -rf conftest*
13376 eval "ac_cv_lib_$ac_lib_var=yes"
13377else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 eval "ac_cv_lib_$ac_lib_var=no"
13382fi
13383rm -f conftest*
13384LIBS="$ac_save_LIBS"
13385
13386fi
13387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389 cat >> confdefs.h <<\EOF
13390#define HAVE_XIM 1
13391EOF
13392
13393else
13394 echo "$ac_t""no" 1>&6
13395fi
13396
13397 fi
13398
13399 if test "$wxUSE_MGL" = 1; then
13400 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13401echo "configure:13402: checking for SciTech MGL library" >&5
13402 if test "x$MGL_ROOT" = x ; then
13403 echo "$ac_t""not found" 1>&6
13404 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13405 else
13406 echo "$ac_t""$MGL_ROOT" 1>&6
13407 fi
13408
13409 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13410echo "configure:13411: checking for libmgl location" >&5
13411 case "${host}" in
13412 *-*-linux* )
13413 if test "x$wxUSE_SHARED" = xyes ; then
13414 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13415 else
13416 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13417 fi
13418 ;;
13419 *-pc-msdosdjgpp )
13420 mgl_os_candidates="dos32/dj2"
13421 ;;
13422 *)
13423 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13424 esac
13425
13426 mgl_lib_type=""
13427 mgl_os=""
13428
13429 for mgl_os_i in $mgl_os_candidates ; do
13430 if test "x$mgl_os" = x ; then
13431 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13432 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13433 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13434 mgl_lib_type=debug
13435 mgl_os=$mgl_os_i
13436 fi
13437 fi
13438 if test "x$mgl_lib_type" = x ; then
13439 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13440 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13441 mgl_lib_type=release
13442 mgl_os=$mgl_os_i
13443 fi
13444 fi
13445 fi
13446 done
13447
13448 if test "x$mgl_os" = x ; then
13449 echo "$ac_t""not found" 1>&6
13450 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13451 fi
13452 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13453
13454 wxUSE_UNIVERSAL="yes"
13455
13456 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13457 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13458
13459 AFMINSTALL=afminstall
13460 TOOLKIT=MGL
13461 GUIDIST=MGL_DIST
13462 fi
13463
13464 if test "$wxUSE_MICROWIN" = 1; then
13465 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13466echo "configure:13467: checking for MicroWindows" >&5
13467 if test "x$MICROWINDOWS" = x ; then
13468 echo "$ac_t""not found" 1>&6
13469 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13470 else
13471 echo "$ac_t""$MICROWINDOWS" 1>&6
13472 fi
13473
13474 if test -f $MICROWINDOWS/lib/libmwin.a; then
13475 echo "$ac_t""MicroWindows' libraries found." 1>&6
13476 else
13477 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13478 fi
13479
13480 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13481 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13482
13483 wxUSE_UNIVERSAL="yes"
13484
13485 AFMINSTALL=afminstall
13486 TOOLKIT=MICROWIN
13487 GUIDIST=MICROWIN_DIST
13488
13489 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13490 fi
13491
13492 if test "$wxUSE_X11" = 1; then
13493 # If we find X, set shell vars x_includes and x_libraries to the
13494# paths, otherwise set no_x=yes.
13495# Uses ac_ vars as temps to allow command line to override cache and checks.
13496# --without-x overrides everything else, but does not touch the cache.
13497echo $ac_n "checking for X""... $ac_c" 1>&6
13498echo "configure:13499: checking for X" >&5
13499
13500# Check whether --with-x or --without-x was given.
13501if test "${with_x+set}" = set; then
13502 withval="$with_x"
13503 :
13504fi
13505
13506# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13507if test "x$with_x" = xno; then
13508 # The user explicitly disabled X.
13509 have_x=disabled
13510else
13511 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13512 # Both variables are already set.
13513 have_x=yes
13514 else
13515if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13516 echo $ac_n "(cached) $ac_c" 1>&6
13517else
13518 # One or both of the vars are not set, and there is no cached value.
13519ac_x_includes=NO ac_x_libraries=NO
13520rm -fr conftestdir
13521if mkdir conftestdir; then
13522 cd conftestdir
13523 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13524 cat > Imakefile <<'EOF'
13525acfindx:
13526 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13527EOF
13528 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13530 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13531 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13532 for ac_extension in a so sl; do
13533 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13534 test -f $ac_im_libdir/libX11.$ac_extension; then
13535 ac_im_usrlibdir=$ac_im_libdir; break
13536 fi
13537 done
13538 # Screen out bogus values from the imake configuration. They are
13539 # bogus both because they are the default anyway, and because
13540 # using them would break gcc on systems where it needs fixed includes.
13541 case "$ac_im_incroot" in
13542 /usr/include) ;;
13543 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13544 esac
13545 case "$ac_im_usrlibdir" in
13546 /usr/lib | /lib) ;;
13547 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13548 esac
13549 fi
13550 cd ..
13551 rm -fr conftestdir
13552fi
13553
13554if test "$ac_x_includes" = NO; then
13555 # Guess where to find include files, by looking for this one X11 .h file.
13556 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13557
13558 # First, try using that file with no special directory specified.
13559cat > conftest.$ac_ext <<EOF
13560#line 13561 "configure"
13561#include "confdefs.h"
13562#include <$x_direct_test_include>
13563EOF
13564ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13565{ (eval echo configure:13566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13566ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13567if test -z "$ac_err"; then
13568 rm -rf conftest*
13569 # We can compile using X headers with no special include directory.
13570ac_x_includes=
13571else
13572 echo "$ac_err" >&5
13573 echo "configure: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 rm -rf conftest*
13576 # Look for the header file in a standard set of common directories.
13577# Check X11 before X11Rn because it is often a symlink to the current release.
13578 for ac_dir in \
13579 /usr/X11/include \
13580 /usr/X11R6/include \
13581 /usr/X11R5/include \
13582 /usr/X11R4/include \
13583 \
13584 /usr/include/X11 \
13585 /usr/include/X11R6 \
13586 /usr/include/X11R5 \
13587 /usr/include/X11R4 \
13588 \
13589 /usr/local/X11/include \
13590 /usr/local/X11R6/include \
13591 /usr/local/X11R5/include \
13592 /usr/local/X11R4/include \
13593 \
13594 /usr/local/include/X11 \
13595 /usr/local/include/X11R6 \
13596 /usr/local/include/X11R5 \
13597 /usr/local/include/X11R4 \
13598 \
13599 /usr/X386/include \
13600 /usr/x386/include \
13601 /usr/XFree86/include/X11 \
13602 \
13603 /usr/include \
13604 /usr/local/include \
13605 /usr/unsupported/include \
13606 /usr/athena/include \
13607 /usr/local/x11r5/include \
13608 /usr/lpp/Xamples/include \
13609 \
13610 /usr/openwin/include \
13611 /usr/openwin/share/include \
13612 ; \
13613 do
13614 if test -r "$ac_dir/$x_direct_test_include"; then
13615 ac_x_includes=$ac_dir
13616 break
13617 fi
13618 done
13619fi
13620rm -f conftest*
13621fi # $ac_x_includes = NO
13622
13623if test "$ac_x_libraries" = NO; then
13624 # Check for the libraries.
13625
13626 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13627 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13628
13629 # See if we find them without any special options.
13630 # Don't add to $LIBS permanently.
13631 ac_save_LIBS="$LIBS"
13632 LIBS="-l$x_direct_test_library $LIBS"
13633cat > conftest.$ac_ext <<EOF
13634#line 13635 "configure"
13635#include "confdefs.h"
13636
13637int main() {
13638${x_direct_test_function}()
13639; return 0; }
13640EOF
13641if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13642 rm -rf conftest*
13643 LIBS="$ac_save_LIBS"
13644# We can link X programs with no special library path.
13645ac_x_libraries=
13646else
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 rm -rf conftest*
13650 LIBS="$ac_save_LIBS"
13651# First see if replacing the include by lib works.
13652# Check X11 before X11Rn because it is often a symlink to the current release.
13653for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13654 /usr/X11/lib \
13655 /usr/X11R6/lib \
13656 /usr/X11R5/lib \
13657 /usr/X11R4/lib \
13658 \
13659 /usr/lib/X11 \
13660 /usr/lib/X11R6 \
13661 /usr/lib/X11R5 \
13662 /usr/lib/X11R4 \
13663 \
13664 /usr/local/X11/lib \
13665 /usr/local/X11R6/lib \
13666 /usr/local/X11R5/lib \
13667 /usr/local/X11R4/lib \
13668 \
13669 /usr/local/lib/X11 \
13670 /usr/local/lib/X11R6 \
13671 /usr/local/lib/X11R5 \
13672 /usr/local/lib/X11R4 \
13673 \
13674 /usr/X386/lib \
13675 /usr/x386/lib \
13676 /usr/XFree86/lib/X11 \
13677 \
13678 /usr/lib \
13679 /usr/local/lib \
13680 /usr/unsupported/lib \
13681 /usr/athena/lib \
13682 /usr/local/x11r5/lib \
13683 /usr/lpp/Xamples/lib \
13684 /lib/usr/lib/X11 \
13685 \
13686 /usr/openwin/lib \
13687 /usr/openwin/share/lib \
13688 ; \
13689do
13690 for ac_extension in a so sl; do
13691 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13692 ac_x_libraries=$ac_dir
13693 break 2
13694 fi
13695 done
13696done
13697fi
13698rm -f conftest*
13699fi # $ac_x_libraries = NO
13700
13701if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13702 # Didn't find X anywhere. Cache the known absence of X.
13703 ac_cv_have_x="have_x=no"
13704else
13705 # Record where we found X for the cache.
13706 ac_cv_have_x="have_x=yes \
13707 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13708fi
13709fi
13710 fi
13711 eval "$ac_cv_have_x"
13712fi # $with_x != no
13713
13714if test "$have_x" != yes; then
13715 echo "$ac_t""$have_x" 1>&6
13716 no_x=yes
13717else
13718 # If each of the values was on the command line, it overrides each guess.
13719 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13720 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13721 # Update the cache value to reflect the command line values.
13722 ac_cv_have_x="have_x=yes \
13723 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13724 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13725fi
13726
13727if test "$no_x" = yes; then
13728 # Not all programs may use this symbol, but it does not hurt to define it.
13729 cat >> confdefs.h <<\EOF
13730#define X_DISPLAY_MISSING 1
13731EOF
13732
13733 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13734else
13735 if test -n "$x_includes"; then
13736 X_CFLAGS="$X_CFLAGS -I$x_includes"
13737 fi
13738
13739 # It would also be nice to do this for all -L options, not just this one.
13740 if test -n "$x_libraries"; then
13741 X_LIBS="$X_LIBS -L$x_libraries"
13742 # For Solaris; some versions of Sun CC require a space after -R and
13743 # others require no space. Words are not sufficient . . . .
13744 case "`(uname -sr) 2>/dev/null`" in
13745 "SunOS 5"*)
13746 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13747echo "configure:13748: checking whether -R must be followed by a space" >&5
13748 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13749 cat > conftest.$ac_ext <<EOF
13750#line 13751 "configure"
13751#include "confdefs.h"
13752
13753int main() {
13754
13755; return 0; }
13756EOF
13757if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13758 rm -rf conftest*
13759 ac_R_nospace=yes
13760else
13761 echo "configure: failed program was:" >&5
13762 cat conftest.$ac_ext >&5
13763 rm -rf conftest*
13764 ac_R_nospace=no
13765fi
13766rm -f conftest*
13767 if test $ac_R_nospace = yes; then
13768 echo "$ac_t""no" 1>&6
13769 X_LIBS="$X_LIBS -R$x_libraries"
13770 else
13771 LIBS="$ac_xsave_LIBS -R $x_libraries"
13772 cat > conftest.$ac_ext <<EOF
13773#line 13774 "configure"
13774#include "confdefs.h"
13775
13776int main() {
13777
13778; return 0; }
13779EOF
13780if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13781 rm -rf conftest*
13782 ac_R_space=yes
13783else
13784 echo "configure: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13786 rm -rf conftest*
13787 ac_R_space=no
13788fi
13789rm -f conftest*
13790 if test $ac_R_space = yes; then
13791 echo "$ac_t""yes" 1>&6
13792 X_LIBS="$X_LIBS -R $x_libraries"
13793 else
13794 echo "$ac_t""neither works" 1>&6
13795 fi
13796 fi
13797 LIBS="$ac_xsave_LIBS"
13798 esac
13799 fi
13800
13801 # Check for system-dependent libraries X programs must link with.
13802 # Do this before checking for the system-independent R6 libraries
13803 # (-lICE), since we may need -lsocket or whatever for X linking.
13804
13805 if test "$ISC" = yes; then
13806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13807 else
13808 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13809 # libraries were built with DECnet support. And karl@cs.umb.edu says
13810 # the Alpha needs dnet_stub (dnet does not exist).
13811 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13812echo "configure:13813: checking for dnet_ntoa in -ldnet" >&5
13813ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13816else
13817 ac_save_LIBS="$LIBS"
13818LIBS="-ldnet $LIBS"
13819cat > conftest.$ac_ext <<EOF
13820#line 13821 "configure"
13821#include "confdefs.h"
13822/* Override any gcc2 internal prototype to avoid an error. */
13823/* We use char because int might match the return type of a gcc2
13824 builtin and then its argument prototype would still apply. */
13825char dnet_ntoa();
13826
13827int main() {
13828dnet_ntoa()
13829; return 0; }
13830EOF
13831if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13832 rm -rf conftest*
13833 eval "ac_cv_lib_$ac_lib_var=yes"
13834else
13835 echo "configure: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 rm -rf conftest*
13838 eval "ac_cv_lib_$ac_lib_var=no"
13839fi
13840rm -f conftest*
13841LIBS="$ac_save_LIBS"
13842
13843fi
13844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13845 echo "$ac_t""yes" 1>&6
13846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13847else
13848 echo "$ac_t""no" 1>&6
13849fi
13850
13851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13852 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13853echo "configure:13854: checking for dnet_ntoa in -ldnet_stub" >&5
13854ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13856 echo $ac_n "(cached) $ac_c" 1>&6
13857else
13858 ac_save_LIBS="$LIBS"
13859LIBS="-ldnet_stub $LIBS"
13860cat > conftest.$ac_ext <<EOF
13861#line 13862 "configure"
13862#include "confdefs.h"
13863/* Override any gcc2 internal prototype to avoid an error. */
13864/* We use char because int might match the return type of a gcc2
13865 builtin and then its argument prototype would still apply. */
13866char dnet_ntoa();
13867
13868int main() {
13869dnet_ntoa()
13870; return 0; }
13871EOF
13872if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13873 rm -rf conftest*
13874 eval "ac_cv_lib_$ac_lib_var=yes"
13875else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 eval "ac_cv_lib_$ac_lib_var=no"
13880fi
13881rm -f conftest*
13882LIBS="$ac_save_LIBS"
13883
13884fi
13885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13886 echo "$ac_t""yes" 1>&6
13887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13888else
13889 echo "$ac_t""no" 1>&6
13890fi
13891
13892 fi
13893
13894 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13895 # to get the SysV transport functions.
13896 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13897 # needs -lnsl.
13898 # The nsl library prevents programs from opening the X display
13899 # on Irix 5.2, according to dickey@clark.net.
13900 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13901echo "configure:13902: checking for gethostbyname" >&5
13902if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13903 echo $ac_n "(cached) $ac_c" 1>&6
13904else
13905 cat > conftest.$ac_ext <<EOF
13906#line 13907 "configure"
13907#include "confdefs.h"
13908/* System header to define __stub macros and hopefully few prototypes,
13909 which can conflict with char gethostbyname(); below. */
13910#include <assert.h>
13911/* Override any gcc2 internal prototype to avoid an error. */
13912/* We use char because int might match the return type of a gcc2
13913 builtin and then its argument prototype would still apply. */
13914char gethostbyname();
13915
13916int main() {
13917
13918/* The GNU C library defines this for functions which it implements
13919 to always fail with ENOSYS. Some functions are actually named
13920 something starting with __ and the normal name is an alias. */
13921#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13922choke me
13923#else
13924gethostbyname();
13925#endif
13926
13927; return 0; }
13928EOF
13929if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13930 rm -rf conftest*
13931 eval "ac_cv_func_gethostbyname=yes"
13932else
13933 echo "configure: failed program was:" >&5
13934 cat conftest.$ac_ext >&5
13935 rm -rf conftest*
13936 eval "ac_cv_func_gethostbyname=no"
13937fi
13938rm -f conftest*
13939fi
13940
13941if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13942 echo "$ac_t""yes" 1>&6
13943 :
13944else
13945 echo "$ac_t""no" 1>&6
13946fi
13947
13948 if test $ac_cv_func_gethostbyname = no; then
13949 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13950echo "configure:13951: checking for gethostbyname in -lnsl" >&5
13951ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13953 echo $ac_n "(cached) $ac_c" 1>&6
13954else
13955 ac_save_LIBS="$LIBS"
13956LIBS="-lnsl $LIBS"
13957cat > conftest.$ac_ext <<EOF
13958#line 13959 "configure"
13959#include "confdefs.h"
13960/* Override any gcc2 internal prototype to avoid an error. */
13961/* We use char because int might match the return type of a gcc2
13962 builtin and then its argument prototype would still apply. */
13963char gethostbyname();
13964
13965int main() {
13966gethostbyname()
13967; return 0; }
13968EOF
13969if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13970 rm -rf conftest*
13971 eval "ac_cv_lib_$ac_lib_var=yes"
13972else
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13975 rm -rf conftest*
13976 eval "ac_cv_lib_$ac_lib_var=no"
13977fi
13978rm -f conftest*
13979LIBS="$ac_save_LIBS"
13980
13981fi
13982if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13983 echo "$ac_t""yes" 1>&6
13984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13985else
13986 echo "$ac_t""no" 1>&6
13987fi
13988
13989 fi
13990
13991 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13992 # socket/setsockopt and other routines are undefined under SCO ODT
13993 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13994 # on later versions), says simon@lia.di.epfl.ch: it contains
13995 # gethostby* variants that don't use the nameserver (or something).
13996 # -lsocket must be given before -lnsl if both are needed.
13997 # We assume that if connect needs -lnsl, so does gethostbyname.
13998 echo $ac_n "checking for connect""... $ac_c" 1>&6
13999echo "configure:14000: checking for connect" >&5
14000if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14001 echo $ac_n "(cached) $ac_c" 1>&6
14002else
14003 cat > conftest.$ac_ext <<EOF
14004#line 14005 "configure"
14005#include "confdefs.h"
14006/* System header to define __stub macros and hopefully few prototypes,
14007 which can conflict with char connect(); below. */
14008#include <assert.h>
14009/* Override any gcc2 internal prototype to avoid an error. */
14010/* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14012char connect();
14013
14014int main() {
14015
14016/* The GNU C library defines this for functions which it implements
14017 to always fail with ENOSYS. Some functions are actually named
14018 something starting with __ and the normal name is an alias. */
14019#if defined (__stub_connect) || defined (__stub___connect)
14020choke me
14021#else
14022connect();
14023#endif
14024
14025; return 0; }
14026EOF
14027if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14028 rm -rf conftest*
14029 eval "ac_cv_func_connect=yes"
14030else
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 rm -rf conftest*
14034 eval "ac_cv_func_connect=no"
14035fi
14036rm -f conftest*
14037fi
14038
14039if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14040 echo "$ac_t""yes" 1>&6
14041 :
14042else
14043 echo "$ac_t""no" 1>&6
14044fi
14045
14046 if test $ac_cv_func_connect = no; then
14047 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14048echo "configure:14049: checking for connect in -lsocket" >&5
14049ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14050if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14051 echo $ac_n "(cached) $ac_c" 1>&6
14052else
14053 ac_save_LIBS="$LIBS"
14054LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14055cat > conftest.$ac_ext <<EOF
14056#line 14057 "configure"
14057#include "confdefs.h"
14058/* Override any gcc2 internal prototype to avoid an error. */
14059/* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14061char connect();
14062
14063int main() {
14064connect()
14065; return 0; }
14066EOF
14067if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14068 rm -rf conftest*
14069 eval "ac_cv_lib_$ac_lib_var=yes"
14070else
14071 echo "configure: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14073 rm -rf conftest*
14074 eval "ac_cv_lib_$ac_lib_var=no"
14075fi
14076rm -f conftest*
14077LIBS="$ac_save_LIBS"
14078
14079fi
14080if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14081 echo "$ac_t""yes" 1>&6
14082 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14083else
14084 echo "$ac_t""no" 1>&6
14085fi
14086
14087 fi
14088
14089 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14090 echo $ac_n "checking for remove""... $ac_c" 1>&6
14091echo "configure:14092: checking for remove" >&5
14092if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14093 echo $ac_n "(cached) $ac_c" 1>&6
14094else
14095 cat > conftest.$ac_ext <<EOF
14096#line 14097 "configure"
14097#include "confdefs.h"
14098/* System header to define __stub macros and hopefully few prototypes,
14099 which can conflict with char remove(); below. */
14100#include <assert.h>
14101/* Override any gcc2 internal prototype to avoid an error. */
14102/* We use char because int might match the return type of a gcc2
14103 builtin and then its argument prototype would still apply. */
14104char remove();
14105
14106int main() {
14107
14108/* The GNU C library defines this for functions which it implements
14109 to always fail with ENOSYS. Some functions are actually named
14110 something starting with __ and the normal name is an alias. */
14111#if defined (__stub_remove) || defined (__stub___remove)
14112choke me
14113#else
14114remove();
14115#endif
14116
14117; return 0; }
14118EOF
14119if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14120 rm -rf conftest*
14121 eval "ac_cv_func_remove=yes"
14122else
14123 echo "configure: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 rm -rf conftest*
14126 eval "ac_cv_func_remove=no"
14127fi
14128rm -f conftest*
14129fi
14130
14131if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14132 echo "$ac_t""yes" 1>&6
14133 :
14134else
14135 echo "$ac_t""no" 1>&6
14136fi
14137
14138 if test $ac_cv_func_remove = no; then
14139 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14140echo "configure:14141: checking for remove in -lposix" >&5
14141ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
14144else
14145 ac_save_LIBS="$LIBS"
14146LIBS="-lposix $LIBS"
14147cat > conftest.$ac_ext <<EOF
14148#line 14149 "configure"
14149#include "confdefs.h"
14150/* Override any gcc2 internal prototype to avoid an error. */
14151/* We use char because int might match the return type of a gcc2
14152 builtin and then its argument prototype would still apply. */
14153char remove();
14154
14155int main() {
14156remove()
14157; return 0; }
14158EOF
14159if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14160 rm -rf conftest*
14161 eval "ac_cv_lib_$ac_lib_var=yes"
14162else
14163 echo "configure: failed program was:" >&5
14164 cat conftest.$ac_ext >&5
14165 rm -rf conftest*
14166 eval "ac_cv_lib_$ac_lib_var=no"
14167fi
14168rm -f conftest*
14169LIBS="$ac_save_LIBS"
14170
14171fi
14172if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14173 echo "$ac_t""yes" 1>&6
14174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14175else
14176 echo "$ac_t""no" 1>&6
14177fi
14178
14179 fi
14180
14181 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14182 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14183echo "configure:14184: checking for shmat" >&5
14184if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14185 echo $ac_n "(cached) $ac_c" 1>&6
14186else
14187 cat > conftest.$ac_ext <<EOF
14188#line 14189 "configure"
14189#include "confdefs.h"
14190/* System header to define __stub macros and hopefully few prototypes,
14191 which can conflict with char shmat(); below. */
14192#include <assert.h>
14193/* Override any gcc2 internal prototype to avoid an error. */
14194/* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196char shmat();
14197
14198int main() {
14199
14200/* The GNU C library defines this for functions which it implements
14201 to always fail with ENOSYS. Some functions are actually named
14202 something starting with __ and the normal name is an alias. */
14203#if defined (__stub_shmat) || defined (__stub___shmat)
14204choke me
14205#else
14206shmat();
14207#endif
14208
14209; return 0; }
14210EOF
14211if { (eval echo configure:14212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14212 rm -rf conftest*
14213 eval "ac_cv_func_shmat=yes"
14214else
14215 echo "configure: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 rm -rf conftest*
14218 eval "ac_cv_func_shmat=no"
14219fi
14220rm -f conftest*
14221fi
14222
14223if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14224 echo "$ac_t""yes" 1>&6
14225 :
14226else
14227 echo "$ac_t""no" 1>&6
14228fi
14229
14230 if test $ac_cv_func_shmat = no; then
14231 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14232echo "configure:14233: checking for shmat in -lipc" >&5
14233ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14236else
14237 ac_save_LIBS="$LIBS"
14238LIBS="-lipc $LIBS"
14239cat > conftest.$ac_ext <<EOF
14240#line 14241 "configure"
14241#include "confdefs.h"
14242/* Override any gcc2 internal prototype to avoid an error. */
14243/* We use char because int might match the return type of a gcc2
14244 builtin and then its argument prototype would still apply. */
14245char shmat();
14246
14247int main() {
14248shmat()
14249; return 0; }
14250EOF
14251if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14252 rm -rf conftest*
14253 eval "ac_cv_lib_$ac_lib_var=yes"
14254else
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 rm -rf conftest*
14258 eval "ac_cv_lib_$ac_lib_var=no"
14259fi
14260rm -f conftest*
14261LIBS="$ac_save_LIBS"
14262
14263fi
14264if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14265 echo "$ac_t""yes" 1>&6
14266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14267else
14268 echo "$ac_t""no" 1>&6
14269fi
14270
14271 fi
14272 fi
14273
14274 # Check for libraries that X11R6 Xt/Xaw programs need.
14275 ac_save_LDFLAGS="$LDFLAGS"
14276 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14277 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14278 # check for ICE first), but we must link in the order -lSM -lICE or
14279 # we get undefined symbols. So assume we have SM if we have ICE.
14280 # These have to be linked with before -lX11, unlike the other
14281 # libraries we check for below, so use a different variable.
14282 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14283 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14284echo "configure:14285: checking for IceConnectionNumber in -lICE" >&5
14285ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14286if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14288else
14289 ac_save_LIBS="$LIBS"
14290LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14291cat > conftest.$ac_ext <<EOF
14292#line 14293 "configure"
14293#include "confdefs.h"
14294/* Override any gcc2 internal prototype to avoid an error. */
14295/* We use char because int might match the return type of a gcc2
14296 builtin and then its argument prototype would still apply. */
14297char IceConnectionNumber();
14298
14299int main() {
14300IceConnectionNumber()
14301; return 0; }
14302EOF
14303if { (eval echo configure:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14304 rm -rf conftest*
14305 eval "ac_cv_lib_$ac_lib_var=yes"
14306else
14307 echo "configure: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14309 rm -rf conftest*
14310 eval "ac_cv_lib_$ac_lib_var=no"
14311fi
14312rm -f conftest*
14313LIBS="$ac_save_LIBS"
14314
14315fi
14316if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14317 echo "$ac_t""yes" 1>&6
14318 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14319else
14320 echo "$ac_t""no" 1>&6
14321fi
14322
14323 LDFLAGS="$ac_save_LDFLAGS"
14324
14325fi
14326
14327
14328 if test "$no_x" = "yes"; then
14329 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14330 fi
14331
14332 GUI_TK_LIBRARY="$X_LIBS"
14333 TOOLKIT_INCLUDE="$X_CFLAGS"
14334 AFMINSTALL=afminstall
14335 COMPILED_X_PROGRAM=0
14336
14337 if test "$wxUSE_NANOX" = "yes"; then
14338 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14339echo "configure:14340: checking for MicroWindows/NanoX distribution" >&5
14340 if test "x$MICROWIN" = x ; then
14341 echo "$ac_t""not found" 1>&6
14342 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14343 else
14344 echo "$ac_t""$MICROWIN" 1>&6
14345 cat >> confdefs.h <<\EOF
14346#define wxUSE_NANOX 1
14347EOF
14348
14349 fi
14350 fi
14351
14352 xpm_link=
14353 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14354echo "configure:14355: checking for Xpm library" >&5
14355
14356ac_find_libraries=
14357for ac_dir in $SEARCH_LIB /usr/lib;
14358 do
14359 for ac_extension in a so sl dylib; do
14360 if test -f "$ac_dir/libXpm.$ac_extension"; then
14361 ac_find_libraries=$ac_dir
14362 break 2
14363 fi
14364 done
14365 done
14366
14367 if test "$ac_find_libraries" != "" ; then
14368
14369 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14370 result=$?
14371 if test $result = 0; then
14372 ac_path_to_link=""
14373 else
14374 ac_path_to_link=" -L$ac_find_libraries"
14375 fi
14376
14377 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14378 xpm_link=" -lXpm"
14379 cat >> confdefs.h <<\EOF
14380#define wxHAVE_LIB_XPM 1
14381EOF
14382
14383 echo "$ac_t""found at $ac_find_libraries" 1>&6
14384 else
14385 cat > conftest.$ac_ext <<EOF
14386#line 14387 "configure"
14387#include "confdefs.h"
14388
14389 #include <X11/xpm.h>
14390
14391int main() {
14392
14393 int version;
14394 version = XpmLibraryVersion();
14395
14396; return 0; }
14397EOF
14398if { (eval echo configure:14399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14399 rm -rf conftest*
14400
14401 xpm_link=" -lXpm"
14402 cat >> confdefs.h <<\EOF
14403#define wxHAVE_LIB_XPM 1
14404EOF
14405
14406 echo "$ac_t""found in default search path" 1>&6
14407 COMPILED_X_PROGRAM=0
14408
14409else
14410 echo "configure: failed program was:" >&5
14411 cat conftest.$ac_ext >&5
14412 rm -rf conftest*
14413
14414 echo "$ac_t""no" 1>&6
14415 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14416
14417
14418fi
14419rm -f conftest*
14420 fi
14421
14422 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14423echo "configure:14424: checking for XShapeQueryExtension in -lXext" >&5
14424ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14426 echo $ac_n "(cached) $ac_c" 1>&6
14427else
14428 ac_save_LIBS="$LIBS"
14429LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14430cat > conftest.$ac_ext <<EOF
14431#line 14432 "configure"
14432#include "confdefs.h"
14433/* Override any gcc2 internal prototype to avoid an error. */
14434/* We use char because int might match the return type of a gcc2
14435 builtin and then its argument prototype would still apply. */
14436char XShapeQueryExtension();
14437
14438int main() {
14439XShapeQueryExtension()
14440; return 0; }
14441EOF
14442if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14443 rm -rf conftest*
14444 eval "ac_cv_lib_$ac_lib_var=yes"
14445else
14446 echo "configure: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 rm -rf conftest*
14449 eval "ac_cv_lib_$ac_lib_var=no"
14450fi
14451rm -f conftest*
14452LIBS="$ac_save_LIBS"
14453
14454fi
14455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14456 echo "$ac_t""yes" 1>&6
14457
14458 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14459 wxHAVE_XEXT_LIB=1
14460
14461else
14462 echo "$ac_t""no" 1>&6
14463fi
14464
14465
14466 if test "$wxUSE_UNICODE" = "yes"; then
14467
14468 succeeded=no
14469
14470 if test -z "$PKG_CONFIG"; then
14471 # Extract the first word of "pkg-config", so it can be a program name with args.
14472set dummy pkg-config; ac_word=$2
14473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14474echo "configure:14475: checking for $ac_word" >&5
14475if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14476 echo $ac_n "(cached) $ac_c" 1>&6
14477else
14478 case "$PKG_CONFIG" in
14479 /*)
14480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14481 ;;
14482 ?:/*)
14483 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14484 ;;
14485 *)
14486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14487 ac_dummy="$PATH"
14488 for ac_dir in $ac_dummy; do
14489 test -z "$ac_dir" && ac_dir=.
14490 if test -f $ac_dir/$ac_word; then
14491 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14492 break
14493 fi
14494 done
14495 IFS="$ac_save_ifs"
14496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14497 ;;
14498esac
14499fi
14500PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14501if test -n "$PKG_CONFIG"; then
14502 echo "$ac_t""$PKG_CONFIG" 1>&6
14503else
14504 echo "$ac_t""no" 1>&6
14505fi
14506
14507 fi
14508
14509 if test "$PKG_CONFIG" = "no" ; then
14510 echo "*** The pkg-config script could not be found. Make sure it is"
14511 echo "*** in your path, or set the PKG_CONFIG environment variable"
14512 echo "*** to the full path to pkg-config."
14513 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14514 else
14515 PKG_CONFIG_MIN_VERSION=0.9.0
14516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14517 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14518echo "configure:14519: checking for pangox" >&5
14519
14520 if $PKG_CONFIG --exists "pangox" ; then
14521 echo "$ac_t""yes" 1>&6
14522 succeeded=yes
14523
14524 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14525echo "configure:14526: checking PANGOX_CFLAGS" >&5
14526 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14527 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14528
14529 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14530echo "configure:14531: checking PANGOX_LIBS" >&5
14531 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14532 echo "$ac_t""$PANGOX_LIBS" 1>&6
14533 else
14534 PANGOX_CFLAGS=""
14535 PANGOX_LIBS=""
14536 ## If we have a custom action on failure, don't print errors, but
14537 ## do set a variable so people can do so.
14538 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14539
14540 fi
14541
14542
14543
14544 else
14545 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14546 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14547 fi
14548 fi
14549
14550 if test $succeeded = yes; then
14551
14552 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14553 LIBS="$LIBS $PANGOX_LIBS"
14554
14555 else
14556
14557 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14558
14559
14560 fi
14561
14562
14563 succeeded=no
14564
14565 if test -z "$PKG_CONFIG"; then
14566 # Extract the first word of "pkg-config", so it can be a program name with args.
14567set dummy pkg-config; ac_word=$2
14568echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14569echo "configure:14570: checking for $ac_word" >&5
14570if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14571 echo $ac_n "(cached) $ac_c" 1>&6
14572else
14573 case "$PKG_CONFIG" in
14574 /*)
14575 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14576 ;;
14577 ?:/*)
14578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14579 ;;
14580 *)
14581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14582 ac_dummy="$PATH"
14583 for ac_dir in $ac_dummy; do
14584 test -z "$ac_dir" && ac_dir=.
14585 if test -f $ac_dir/$ac_word; then
14586 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14587 break
14588 fi
14589 done
14590 IFS="$ac_save_ifs"
14591 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14592 ;;
14593esac
14594fi
14595PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14596if test -n "$PKG_CONFIG"; then
14597 echo "$ac_t""$PKG_CONFIG" 1>&6
14598else
14599 echo "$ac_t""no" 1>&6
14600fi
14601
14602 fi
14603
14604 if test "$PKG_CONFIG" = "no" ; then
14605 echo "*** The pkg-config script could not be found. Make sure it is"
14606 echo "*** in your path, or set the PKG_CONFIG environment variable"
14607 echo "*** to the full path to pkg-config."
14608 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14609 else
14610 PKG_CONFIG_MIN_VERSION=0.9.0
14611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14612 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14613echo "configure:14614: checking for pangoft2" >&5
14614
14615 if $PKG_CONFIG --exists "pangoft2" ; then
14616 echo "$ac_t""yes" 1>&6
14617 succeeded=yes
14618
14619 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14620echo "configure:14621: checking PANGOFT2_CFLAGS" >&5
14621 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14622 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14623
14624 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14625echo "configure:14626: checking PANGOFT2_LIBS" >&5
14626 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14627 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14628 else
14629 PANGOFT2_CFLAGS=""
14630 PANGOFT2_LIBS=""
14631 ## If we have a custom action on failure, don't print errors, but
14632 ## do set a variable so people can do so.
14633 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14634
14635 fi
14636
14637
14638
14639 else
14640 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14641 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14642 fi
14643 fi
14644
14645 if test $succeeded = yes; then
14646
14647 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14648 LIBS="$LIBS $PANGOFT2_LIBS"
14649
14650 else
14651
14652 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14653 wxUSE_PRINTING_ARCHITECTURE="no"
14654
14655
14656 fi
14657
14658
14659 succeeded=no
14660
14661 if test -z "$PKG_CONFIG"; then
14662 # Extract the first word of "pkg-config", so it can be a program name with args.
14663set dummy pkg-config; ac_word=$2
14664echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14665echo "configure:14666: checking for $ac_word" >&5
14666if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14667 echo $ac_n "(cached) $ac_c" 1>&6
14668else
14669 case "$PKG_CONFIG" in
14670 /*)
14671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14672 ;;
14673 ?:/*)
14674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14675 ;;
14676 *)
14677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14678 ac_dummy="$PATH"
14679 for ac_dir in $ac_dummy; do
14680 test -z "$ac_dir" && ac_dir=.
14681 if test -f $ac_dir/$ac_word; then
14682 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14683 break
14684 fi
14685 done
14686 IFS="$ac_save_ifs"
14687 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14688 ;;
14689esac
14690fi
14691PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14692if test -n "$PKG_CONFIG"; then
14693 echo "$ac_t""$PKG_CONFIG" 1>&6
14694else
14695 echo "$ac_t""no" 1>&6
14696fi
14697
14698 fi
14699
14700 if test "$PKG_CONFIG" = "no" ; then
14701 echo "*** The pkg-config script could not be found. Make sure it is"
14702 echo "*** in your path, or set the PKG_CONFIG environment variable"
14703 echo "*** to the full path to pkg-config."
14704 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14705 else
14706 PKG_CONFIG_MIN_VERSION=0.9.0
14707 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14708 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14709echo "configure:14710: checking for pangoxft" >&5
14710
14711 if $PKG_CONFIG --exists "pangoxft" ; then
14712 echo "$ac_t""yes" 1>&6
14713 succeeded=yes
14714
14715 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14716echo "configure:14717: checking PANGOXFT_CFLAGS" >&5
14717 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14718 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14719
14720 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14721echo "configure:14722: checking PANGOXFT_LIBS" >&5
14722 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14723 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14724 else
14725 PANGOXFT_CFLAGS=""
14726 PANGOXFT_LIBS=""
14727 ## If we have a custom action on failure, don't print errors, but
14728 ## do set a variable so people can do so.
14729 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14730
14731 fi
14732
14733
14734
14735 else
14736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14738 fi
14739 fi
14740
14741 if test $succeeded = yes; then
14742
14743 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14744 LIBS="$LIBS $PANGOXFT_LIBS"
14745
14746 else
14747
14748 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14749
14750
14751 fi
14752
14753 fi
14754
14755 wxUSE_UNIVERSAL="yes"
14756
14757 if test "$wxUSE_NANOX" = "yes"; then
14758 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14759 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"
14760 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14761 else
14762 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14763 fi
14764
14765 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14766 TOOLKIT=X11
14767 GUIDIST=X11_DIST
14768 fi
14769
14770 if test "$wxUSE_MOTIF" = 1; then
14771 if test "$no_x" = yes; then
14772 # Not all programs may use this symbol, but it does not hurt to define it.
14773 cat >> confdefs.h <<\EOF
14774#define X_DISPLAY_MISSING 1
14775EOF
14776
14777 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14778else
14779 if test -n "$x_includes"; then
14780 X_CFLAGS="$X_CFLAGS -I$x_includes"
14781 fi
14782
14783 # It would also be nice to do this for all -L options, not just this one.
14784 if test -n "$x_libraries"; then
14785 X_LIBS="$X_LIBS -L$x_libraries"
14786 # For Solaris; some versions of Sun CC require a space after -R and
14787 # others require no space. Words are not sufficient . . . .
14788 case "`(uname -sr) 2>/dev/null`" in
14789 "SunOS 5"*)
14790 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14791echo "configure:14792: checking whether -R must be followed by a space" >&5
14792 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14793 cat > conftest.$ac_ext <<EOF
14794#line 14795 "configure"
14795#include "confdefs.h"
14796
14797int main() {
14798
14799; return 0; }
14800EOF
14801if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14802 rm -rf conftest*
14803 ac_R_nospace=yes
14804else
14805 echo "configure: failed program was:" >&5
14806 cat conftest.$ac_ext >&5
14807 rm -rf conftest*
14808 ac_R_nospace=no
14809fi
14810rm -f conftest*
14811 if test $ac_R_nospace = yes; then
14812 echo "$ac_t""no" 1>&6
14813 X_LIBS="$X_LIBS -R$x_libraries"
14814 else
14815 LIBS="$ac_xsave_LIBS -R $x_libraries"
14816 cat > conftest.$ac_ext <<EOF
14817#line 14818 "configure"
14818#include "confdefs.h"
14819
14820int main() {
14821
14822; return 0; }
14823EOF
14824if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14825 rm -rf conftest*
14826 ac_R_space=yes
14827else
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831 ac_R_space=no
14832fi
14833rm -f conftest*
14834 if test $ac_R_space = yes; then
14835 echo "$ac_t""yes" 1>&6
14836 X_LIBS="$X_LIBS -R $x_libraries"
14837 else
14838 echo "$ac_t""neither works" 1>&6
14839 fi
14840 fi
14841 LIBS="$ac_xsave_LIBS"
14842 esac
14843 fi
14844
14845 # Check for system-dependent libraries X programs must link with.
14846 # Do this before checking for the system-independent R6 libraries
14847 # (-lICE), since we may need -lsocket or whatever for X linking.
14848
14849 if test "$ISC" = yes; then
14850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14851 else
14852 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14853 # libraries were built with DECnet support. And karl@cs.umb.edu says
14854 # the Alpha needs dnet_stub (dnet does not exist).
14855 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14856echo "configure:14857: checking for dnet_ntoa in -ldnet" >&5
14857ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14858if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14859 echo $ac_n "(cached) $ac_c" 1>&6
14860else
14861 ac_save_LIBS="$LIBS"
14862LIBS="-ldnet $LIBS"
14863cat > conftest.$ac_ext <<EOF
14864#line 14865 "configure"
14865#include "confdefs.h"
14866/* Override any gcc2 internal prototype to avoid an error. */
14867/* We use char because int might match the return type of a gcc2
14868 builtin and then its argument prototype would still apply. */
14869char dnet_ntoa();
14870
14871int main() {
14872dnet_ntoa()
14873; return 0; }
14874EOF
14875if { (eval echo configure:14876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876 rm -rf conftest*
14877 eval "ac_cv_lib_$ac_lib_var=yes"
14878else
14879 echo "configure: failed program was:" >&5
14880 cat conftest.$ac_ext >&5
14881 rm -rf conftest*
14882 eval "ac_cv_lib_$ac_lib_var=no"
14883fi
14884rm -f conftest*
14885LIBS="$ac_save_LIBS"
14886
14887fi
14888if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14889 echo "$ac_t""yes" 1>&6
14890 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14891else
14892 echo "$ac_t""no" 1>&6
14893fi
14894
14895 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14896 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14897echo "configure:14898: checking for dnet_ntoa in -ldnet_stub" >&5
14898ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14899if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14900 echo $ac_n "(cached) $ac_c" 1>&6
14901else
14902 ac_save_LIBS="$LIBS"
14903LIBS="-ldnet_stub $LIBS"
14904cat > conftest.$ac_ext <<EOF
14905#line 14906 "configure"
14906#include "confdefs.h"
14907/* Override any gcc2 internal prototype to avoid an error. */
14908/* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14910char dnet_ntoa();
14911
14912int main() {
14913dnet_ntoa()
14914; return 0; }
14915EOF
14916if { (eval echo configure:14917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14917 rm -rf conftest*
14918 eval "ac_cv_lib_$ac_lib_var=yes"
14919else
14920 echo "configure: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 rm -rf conftest*
14923 eval "ac_cv_lib_$ac_lib_var=no"
14924fi
14925rm -f conftest*
14926LIBS="$ac_save_LIBS"
14927
14928fi
14929if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14930 echo "$ac_t""yes" 1>&6
14931 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14932else
14933 echo "$ac_t""no" 1>&6
14934fi
14935
14936 fi
14937
14938 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14939 # to get the SysV transport functions.
14940 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14941 # needs -lnsl.
14942 # The nsl library prevents programs from opening the X display
14943 # on Irix 5.2, according to dickey@clark.net.
14944 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14945echo "configure:14946: checking for gethostbyname" >&5
14946if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14947 echo $ac_n "(cached) $ac_c" 1>&6
14948else
14949 cat > conftest.$ac_ext <<EOF
14950#line 14951 "configure"
14951#include "confdefs.h"
14952/* System header to define __stub macros and hopefully few prototypes,
14953 which can conflict with char gethostbyname(); below. */
14954#include <assert.h>
14955/* Override any gcc2 internal prototype to avoid an error. */
14956/* We use char because int might match the return type of a gcc2
14957 builtin and then its argument prototype would still apply. */
14958char gethostbyname();
14959
14960int main() {
14961
14962/* The GNU C library defines this for functions which it implements
14963 to always fail with ENOSYS. Some functions are actually named
14964 something starting with __ and the normal name is an alias. */
14965#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14966choke me
14967#else
14968gethostbyname();
14969#endif
14970
14971; return 0; }
14972EOF
14973if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14974 rm -rf conftest*
14975 eval "ac_cv_func_gethostbyname=yes"
14976else
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14979 rm -rf conftest*
14980 eval "ac_cv_func_gethostbyname=no"
14981fi
14982rm -f conftest*
14983fi
14984
14985if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14986 echo "$ac_t""yes" 1>&6
14987 :
14988else
14989 echo "$ac_t""no" 1>&6
14990fi
14991
14992 if test $ac_cv_func_gethostbyname = no; then
14993 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14994echo "configure:14995: checking for gethostbyname in -lnsl" >&5
14995ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14996if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14997 echo $ac_n "(cached) $ac_c" 1>&6
14998else
14999 ac_save_LIBS="$LIBS"
15000LIBS="-lnsl $LIBS"
15001cat > conftest.$ac_ext <<EOF
15002#line 15003 "configure"
15003#include "confdefs.h"
15004/* Override any gcc2 internal prototype to avoid an error. */
15005/* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15007char gethostbyname();
15008
15009int main() {
15010gethostbyname()
15011; return 0; }
15012EOF
15013if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15014 rm -rf conftest*
15015 eval "ac_cv_lib_$ac_lib_var=yes"
15016else
15017 echo "configure: failed program was:" >&5
15018 cat conftest.$ac_ext >&5
15019 rm -rf conftest*
15020 eval "ac_cv_lib_$ac_lib_var=no"
15021fi
15022rm -f conftest*
15023LIBS="$ac_save_LIBS"
15024
15025fi
15026if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15027 echo "$ac_t""yes" 1>&6
15028 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15029else
15030 echo "$ac_t""no" 1>&6
15031fi
15032
15033 fi
15034
15035 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15036 # socket/setsockopt and other routines are undefined under SCO ODT
15037 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15038 # on later versions), says simon@lia.di.epfl.ch: it contains
15039 # gethostby* variants that don't use the nameserver (or something).
15040 # -lsocket must be given before -lnsl if both are needed.
15041 # We assume that if connect needs -lnsl, so does gethostbyname.
15042 echo $ac_n "checking for connect""... $ac_c" 1>&6
15043echo "configure:15044: checking for connect" >&5
15044if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15045 echo $ac_n "(cached) $ac_c" 1>&6
15046else
15047 cat > conftest.$ac_ext <<EOF
15048#line 15049 "configure"
15049#include "confdefs.h"
15050/* System header to define __stub macros and hopefully few prototypes,
15051 which can conflict with char connect(); below. */
15052#include <assert.h>
15053/* Override any gcc2 internal prototype to avoid an error. */
15054/* We use char because int might match the return type of a gcc2
15055 builtin and then its argument prototype would still apply. */
15056char connect();
15057
15058int main() {
15059
15060/* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063#if defined (__stub_connect) || defined (__stub___connect)
15064choke me
15065#else
15066connect();
15067#endif
15068
15069; return 0; }
15070EOF
15071if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15072 rm -rf conftest*
15073 eval "ac_cv_func_connect=yes"
15074else
15075 echo "configure: failed program was:" >&5
15076 cat conftest.$ac_ext >&5
15077 rm -rf conftest*
15078 eval "ac_cv_func_connect=no"
15079fi
15080rm -f conftest*
15081fi
15082
15083if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15084 echo "$ac_t""yes" 1>&6
15085 :
15086else
15087 echo "$ac_t""no" 1>&6
15088fi
15089
15090 if test $ac_cv_func_connect = no; then
15091 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15092echo "configure:15093: checking for connect in -lsocket" >&5
15093ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15094if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15095 echo $ac_n "(cached) $ac_c" 1>&6
15096else
15097 ac_save_LIBS="$LIBS"
15098LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15099cat > conftest.$ac_ext <<EOF
15100#line 15101 "configure"
15101#include "confdefs.h"
15102/* Override any gcc2 internal prototype to avoid an error. */
15103/* We use char because int might match the return type of a gcc2
15104 builtin and then its argument prototype would still apply. */
15105char connect();
15106
15107int main() {
15108connect()
15109; return 0; }
15110EOF
15111if { (eval echo configure:15112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15112 rm -rf conftest*
15113 eval "ac_cv_lib_$ac_lib_var=yes"
15114else
15115 echo "configure: failed program was:" >&5
15116 cat conftest.$ac_ext >&5
15117 rm -rf conftest*
15118 eval "ac_cv_lib_$ac_lib_var=no"
15119fi
15120rm -f conftest*
15121LIBS="$ac_save_LIBS"
15122
15123fi
15124if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15125 echo "$ac_t""yes" 1>&6
15126 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15127else
15128 echo "$ac_t""no" 1>&6
15129fi
15130
15131 fi
15132
15133 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15134 echo $ac_n "checking for remove""... $ac_c" 1>&6
15135echo "configure:15136: checking for remove" >&5
15136if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15137 echo $ac_n "(cached) $ac_c" 1>&6
15138else
15139 cat > conftest.$ac_ext <<EOF
15140#line 15141 "configure"
15141#include "confdefs.h"
15142/* System header to define __stub macros and hopefully few prototypes,
15143 which can conflict with char remove(); below. */
15144#include <assert.h>
15145/* Override any gcc2 internal prototype to avoid an error. */
15146/* We use char because int might match the return type of a gcc2
15147 builtin and then its argument prototype would still apply. */
15148char remove();
15149
15150int main() {
15151
15152/* The GNU C library defines this for functions which it implements
15153 to always fail with ENOSYS. Some functions are actually named
15154 something starting with __ and the normal name is an alias. */
15155#if defined (__stub_remove) || defined (__stub___remove)
15156choke me
15157#else
15158remove();
15159#endif
15160
15161; return 0; }
15162EOF
15163if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15164 rm -rf conftest*
15165 eval "ac_cv_func_remove=yes"
15166else
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15169 rm -rf conftest*
15170 eval "ac_cv_func_remove=no"
15171fi
15172rm -f conftest*
15173fi
15174
15175if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15176 echo "$ac_t""yes" 1>&6
15177 :
15178else
15179 echo "$ac_t""no" 1>&6
15180fi
15181
15182 if test $ac_cv_func_remove = no; then
15183 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15184echo "configure:15185: checking for remove in -lposix" >&5
15185ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15186if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
15188else
15189 ac_save_LIBS="$LIBS"
15190LIBS="-lposix $LIBS"
15191cat > conftest.$ac_ext <<EOF
15192#line 15193 "configure"
15193#include "confdefs.h"
15194/* Override any gcc2 internal prototype to avoid an error. */
15195/* We use char because int might match the return type of a gcc2
15196 builtin and then its argument prototype would still apply. */
15197char remove();
15198
15199int main() {
15200remove()
15201; return 0; }
15202EOF
15203if { (eval echo configure:15204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15204 rm -rf conftest*
15205 eval "ac_cv_lib_$ac_lib_var=yes"
15206else
15207 echo "configure: failed program was:" >&5
15208 cat conftest.$ac_ext >&5
15209 rm -rf conftest*
15210 eval "ac_cv_lib_$ac_lib_var=no"
15211fi
15212rm -f conftest*
15213LIBS="$ac_save_LIBS"
15214
15215fi
15216if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15217 echo "$ac_t""yes" 1>&6
15218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15219else
15220 echo "$ac_t""no" 1>&6
15221fi
15222
15223 fi
15224
15225 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15226 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15227echo "configure:15228: checking for shmat" >&5
15228if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
15230else
15231 cat > conftest.$ac_ext <<EOF
15232#line 15233 "configure"
15233#include "confdefs.h"
15234/* System header to define __stub macros and hopefully few prototypes,
15235 which can conflict with char shmat(); below. */
15236#include <assert.h>
15237/* Override any gcc2 internal prototype to avoid an error. */
15238/* We use char because int might match the return type of a gcc2
15239 builtin and then its argument prototype would still apply. */
15240char shmat();
15241
15242int main() {
15243
15244/* The GNU C library defines this for functions which it implements
15245 to always fail with ENOSYS. Some functions are actually named
15246 something starting with __ and the normal name is an alias. */
15247#if defined (__stub_shmat) || defined (__stub___shmat)
15248choke me
15249#else
15250shmat();
15251#endif
15252
15253; return 0; }
15254EOF
15255if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15256 rm -rf conftest*
15257 eval "ac_cv_func_shmat=yes"
15258else
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15261 rm -rf conftest*
15262 eval "ac_cv_func_shmat=no"
15263fi
15264rm -f conftest*
15265fi
15266
15267if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15268 echo "$ac_t""yes" 1>&6
15269 :
15270else
15271 echo "$ac_t""no" 1>&6
15272fi
15273
15274 if test $ac_cv_func_shmat = no; then
15275 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15276echo "configure:15277: checking for shmat in -lipc" >&5
15277ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15278if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15279 echo $ac_n "(cached) $ac_c" 1>&6
15280else
15281 ac_save_LIBS="$LIBS"
15282LIBS="-lipc $LIBS"
15283cat > conftest.$ac_ext <<EOF
15284#line 15285 "configure"
15285#include "confdefs.h"
15286/* Override any gcc2 internal prototype to avoid an error. */
15287/* We use char because int might match the return type of a gcc2
15288 builtin and then its argument prototype would still apply. */
15289char shmat();
15290
15291int main() {
15292shmat()
15293; return 0; }
15294EOF
15295if { (eval echo configure:15296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15296 rm -rf conftest*
15297 eval "ac_cv_lib_$ac_lib_var=yes"
15298else
15299 echo "configure: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15301 rm -rf conftest*
15302 eval "ac_cv_lib_$ac_lib_var=no"
15303fi
15304rm -f conftest*
15305LIBS="$ac_save_LIBS"
15306
15307fi
15308if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15309 echo "$ac_t""yes" 1>&6
15310 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15311else
15312 echo "$ac_t""no" 1>&6
15313fi
15314
15315 fi
15316 fi
15317
15318 # Check for libraries that X11R6 Xt/Xaw programs need.
15319 ac_save_LDFLAGS="$LDFLAGS"
15320 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15321 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15322 # check for ICE first), but we must link in the order -lSM -lICE or
15323 # we get undefined symbols. So assume we have SM if we have ICE.
15324 # These have to be linked with before -lX11, unlike the other
15325 # libraries we check for below, so use a different variable.
15326 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15327 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15328echo "configure:15329: checking for IceConnectionNumber in -lICE" >&5
15329ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15331 echo $ac_n "(cached) $ac_c" 1>&6
15332else
15333 ac_save_LIBS="$LIBS"
15334LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15335cat > conftest.$ac_ext <<EOF
15336#line 15337 "configure"
15337#include "confdefs.h"
15338/* Override any gcc2 internal prototype to avoid an error. */
15339/* We use char because int might match the return type of a gcc2
15340 builtin and then its argument prototype would still apply. */
15341char IceConnectionNumber();
15342
15343int main() {
15344IceConnectionNumber()
15345; return 0; }
15346EOF
15347if { (eval echo configure:15348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15348 rm -rf conftest*
15349 eval "ac_cv_lib_$ac_lib_var=yes"
15350else
15351 echo "configure: failed program was:" >&5
15352 cat conftest.$ac_ext >&5
15353 rm -rf conftest*
15354 eval "ac_cv_lib_$ac_lib_var=no"
15355fi
15356rm -f conftest*
15357LIBS="$ac_save_LIBS"
15358
15359fi
15360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
15362 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15363else
15364 echo "$ac_t""no" 1>&6
15365fi
15366
15367 LDFLAGS="$ac_save_LDFLAGS"
15368
15369fi
15370
15371
15372 if test "$no_x" = "yes"; then
15373 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15374 fi
15375
15376 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15377 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15378 AFMINSTALL=afminstall
15379 COMPILED_X_PROGRAM=0
15380
15381 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15382echo "configure:15383: checking for Motif/Lesstif headers" >&5
15383
15384ac_find_includes=
15385for ac_dir in $SEARCH_INCLUDE /usr/include;
15386 do
15387 if test -f "$ac_dir/Xm/Xm.h"; then
15388 ac_find_includes=$ac_dir
15389 break
15390 fi
15391 done
15392
15393 if test "$ac_find_includes" != "" ; then
15394 echo "$ac_t""found in $ac_find_includes" 1>&6
15395
15396 if test "x$ac_find_includes" = "x/usr/include"; then
15397 ac_path_to_include=""
15398 else
15399 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15400 result=$?
15401 if test $result = 0; then
15402 ac_path_to_include=""
15403 else
15404 ac_path_to_include=" -I$ac_find_includes"
15405 fi
15406 fi
15407
15408 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15409 else
15410 cat > conftest.$ac_ext <<EOF
15411#line 15412 "configure"
15412#include "confdefs.h"
15413
15414 #include <Xm/Xm.h>
15415
15416int main() {
15417
15418 int version;
15419 version = xmUseVersion;
15420
15421; return 0; }
15422EOF
15423if { (eval echo configure:15424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15424 rm -rf conftest*
15425
15426 echo "$ac_t""found in default search path" 1>&6
15427 COMPILED_X_PROGRAM=1
15428
15429else
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433
15434 echo "$ac_t""no" 1>&6
15435 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15436
15437
15438fi
15439rm -f conftest*
15440 fi
15441
15442 if test "$COMPILED_X_PROGRAM" = 0; then
15443 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15444echo "configure:15445: checking for Motif/Lesstif library" >&5
15445
15446ac_find_libraries=
15447for ac_dir in $SEARCH_LIB /usr/lib;
15448 do
15449 for ac_extension in a so sl dylib; do
15450 if test -f "$ac_dir/libXm.$ac_extension"; then
15451 ac_find_libraries=$ac_dir
15452 break 2
15453 fi
15454 done
15455 done
15456
15457 if test "$ac_find_libraries" != "" ; then
15458 echo "$ac_t""found at $ac_find_libraries" 1>&6
15459
15460
15461 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15462 result=$?
15463 if test $result = 0; then
15464 ac_path_to_link=""
15465 else
15466 ac_path_to_link=" -L$ac_find_libraries"
15467 fi
15468
15469 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15470 else
15471 save_CFLAGS=$CFLAGS
15472 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15473
15474 cat > conftest.$ac_ext <<EOF
15475#line 15476 "configure"
15476#include "confdefs.h"
15477
15478 #include <Xm/Xm.h>
15479
15480int main() {
15481
15482 int version;
15483 version = xmUseVersion;
15484
15485; return 0; }
15486EOF
15487if { (eval echo configure:15488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15488 rm -rf conftest*
15489
15490 echo "$ac_t""found in default search path" 1>&6
15491 COMPILED_X_PROGRAM=1
15492
15493else
15494 echo "configure: failed program was:" >&5
15495 cat conftest.$ac_ext >&5
15496 rm -rf conftest*
15497
15498 echo "$ac_t""no" 1>&6
15499 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15500
15501
15502fi
15503rm -f conftest*
15504
15505 CFLAGS=$save_CFLAGS
15506 fi
15507 fi
15508
15509 xpm_link=
15510 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15511echo "configure:15512: checking for Xpm library" >&5
15512
15513ac_find_libraries=
15514for ac_dir in $SEARCH_LIB /usr/lib;
15515 do
15516 for ac_extension in a so sl dylib; do
15517 if test -f "$ac_dir/libXpm.$ac_extension"; then
15518 ac_find_libraries=$ac_dir
15519 break 2
15520 fi
15521 done
15522 done
15523
15524 if test "$ac_find_libraries" != "" ; then
15525
15526 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15527 result=$?
15528 if test $result = 0; then
15529 ac_path_to_link=""
15530 else
15531 ac_path_to_link=" -L$ac_find_libraries"
15532 fi
15533
15534 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15535
15536 xpm_link=" -lXpm"
15537 cat >> confdefs.h <<\EOF
15538#define wxHAVE_LIB_XPM 1
15539EOF
15540
15541 echo "$ac_t""found at $ac_find_libraries" 1>&6
15542 else
15543 save_CFLAGS=$CFLAGS
15544 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15545
15546 cat > conftest.$ac_ext <<EOF
15547#line 15548 "configure"
15548#include "confdefs.h"
15549
15550 #include <X11/xpm.h>
15551
15552int main() {
15553
15554 int version;
15555 version = XpmLibraryVersion();
15556
15557; return 0; }
15558EOF
15559if { (eval echo configure:15560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15560 rm -rf conftest*
15561
15562 xpm_link=" -lXpm"
15563 cat >> confdefs.h <<\EOF
15564#define wxHAVE_LIB_XPM 1
15565EOF
15566
15567 echo "$ac_t""found in default search path" 1>&6
15568 COMPILED_X_PROGRAM=0
15569
15570else
15571 echo "configure: failed program was:" >&5
15572 cat conftest.$ac_ext >&5
15573 rm -rf conftest*
15574
15575 echo "$ac_t""no" 1>&6
15576 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15577
15578
15579fi
15580rm -f conftest*
15581
15582 CFLAGS=$save_CFLAGS
15583 fi
15584
15585 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15586echo "configure:15587: checking if we need -lXp and/or -lSM -lICE" >&5
15587 libp_link=""
15588 libsm_ice_link=""
15589 libs_found=0
15590 for libp in "" " -lXp"; do
15591 if test "$libs_found" = "0"; then
15592 for libsm_ice in " -lSM -lICE"; do
15593 if test "$libs_found" = "0"; then
15594 save_LIBS="$LIBS"
15595 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15596 save_CFLAGS=$CFLAGS
15597 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15598
15599 cat > conftest.$ac_ext <<EOF
15600#line 15601 "configure"
15601#include "confdefs.h"
15602
15603 #include <Xm/Xm.h>
15604 #include <Xm/List.h>
15605
15606int main() {
15607
15608 XmString string = NULL;
15609 Widget w = NULL;
15610 int position = 0;
15611 XmListAddItem(w, string, position);
15612
15613; return 0; }
15614EOF
15615if { (eval echo configure:15616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15616 rm -rf conftest*
15617
15618 libp_link="$libp"
15619 libsm_ice_link="$libsm_ice"
15620 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15621 libs_found=1
15622
15623else
15624 echo "configure: failed program was:" >&5
15625 cat conftest.$ac_ext >&5
15626 rm -rf conftest*
15627
15628
15629fi
15630rm -f conftest*
15631
15632 LIBS="$save_LIBS"
15633 CFLAGS=$save_CFLAGS
15634 fi
15635 done
15636 fi
15637 done
15638
15639 if test "$libs_found" = "0"; then
15640 echo "$ac_t""can't find the right libraries" 1>&6
15641 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15642 fi
15643
15644 save_CFLAGS=$CFLAGS
15645 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15646 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15647echo "configure:15648: checking for Motif 2" >&5
15648 cat > conftest.$ac_ext <<EOF
15649#line 15650 "configure"
15650#include "confdefs.h"
15651
15652 #include <Xm/Xm.h>
15653
15654int main() {
15655
15656 #if XmVersion < 2000
15657 #error "Not Motif 2"
15658 #endif
15659
15660; return 0; }
15661EOF
15662if { (eval echo configure:15663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15663 rm -rf conftest*
15664
15665 cat >> confdefs.h <<\EOF
15666#define __WXMOTIF20__ 1
15667EOF
15668
15669 echo "$ac_t""found" 1>&6
15670
15671else
15672 echo "configure: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15674 rm -rf conftest*
15675
15676 cat >> confdefs.h <<\EOF
15677#define __WXMOTIF20__ 0
15678EOF
15679
15680 echo "$ac_t""not found" 1>&6
15681
15682fi
15683rm -f conftest*
15684 CFLAGS=$save_CFLAGS
15685
15686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15687 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15688 TOOLKIT=MOTIF
15689 GUIDIST=MOTIF_DIST
15690 wxHAVE_XEXT_LIB=1
15691 fi
15692
15693 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15694 test "$wxHAVE_XEXT_LIB" = 1; then
15695 save_CFLAGS="$CFLAGS"
15696 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15697
15698 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15699echo "configure:15700: checking for X11/extensions/shape.h" >&5
15700 cat > conftest.$ac_ext <<EOF
15701#line 15702 "configure"
15702#include "confdefs.h"
15703
15704 #include <X11/Xlib.h>
15705 #include <X11/extensions/shape.h>
15706
15707int main() {
15708
15709 int dummy1, dummy2;
15710 XShapeQueryExtension((Display*)NULL,
15711 (int*)NULL, (int*)NULL);
15712
15713; return 0; }
15714EOF
15715if { (eval echo configure:15716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15716 rm -rf conftest*
15717
15718 cat >> confdefs.h <<\EOF
15719#define HAVE_XSHAPE 1
15720EOF
15721
15722 echo "$ac_t""found" 1>&6
15723
15724else
15725 echo "configure: failed program was:" >&5
15726 cat conftest.$ac_ext >&5
15727 rm -rf conftest*
15728
15729 echo "$ac_t""not found" 1>&6
15730
15731fi
15732rm -f conftest*
15733 CFLAGS="$save_CFLAGS"
15734 fi
15735
15736 if test "$wxUSE_MAC" = 1; then
15737 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15738
15739 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15740 TOOLKIT=MAC
15741 GUIDIST=MACX_DIST
15742 fi
15743
15744 if test "$wxUSE_COCOA" = 1; then
15745 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15746 TOOLKIT=COCOA
15747 GUIDIST=COCOA_DIST
15748 fi
15749
15750 if test "$wxUSE_PM" = 1; then
15751 TOOLKIT=PM
15752 GUIDIST=GTK_DIST
15753 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15754 wxUSE_THREADS="no"
15755 fi
15756
15757 if test "$TOOLKIT" = "PM" ; then
15758 TOOLKIT_DIR="os2"
15759 else
15760 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15761 fi
15762
15763 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15764
15765 if test "$wxUSE_UNIVERSAL" = "yes"; then
15766 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15767
15768 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15769 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15770
15771 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15772 if test "$wxUSE_X11" = 1; then
15773 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15774 else
15775 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15776 fi
15777 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15778 WIDGET_SET=univ
15779 else
15780 ALL_OBJECTS="\$(GUIOBJS)"
15781 ALL_SOURCES="\$(ALL_SOURCES)"
15782 ALL_HEADERS="\$(ALL_HEADERS)"
15783 fi
15784
15785 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15786
15787 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15788 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15789 fi
15790
15791 if test "$wxUSE_HTML" = "yes"; then
15792 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15793 fi
15794
15795 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15796 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15797 fi
15798 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15799 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15800 fi
15801 if test "$wxUSE_LIBPNG" = "builtin" ; then
15802 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15803 fi
15804
15805 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15806 DISTDIR="wx\$(TOOLKIT)"
15807else
15808 USE_GUI=0
15809
15810 TOOLKIT_DIR="base"
15811
15812 if test "$USE_WIN32" = 1 ; then
15813 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15814 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15815
15816 TOOLKIT="MSW"
15817 else
15818 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15819 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15820 fi
15821
15822 ALL_SOURCES="\$(ALL_SOURCES)"
15823 ALL_HEADERS="\$(ALL_HEADERS)"
15824
15825 PORT_FILES="\${top_srcdir}/src/files.lst"
15826
15827 GUIDIST="BASE_DIST"
15828 DISTDIR="wxBase"
15829fi
15830
15831
15832
15833
15834IODBC_C_SRC=""
15835
15836
15837if test "$TOOLKIT" != "MSW" ; then
15838
15839 if test "$wxUSE_ODBC" != "no" ; then
15840 cat >> confdefs.h <<\EOF
15841#define wxUSE_ODBC 1
15842EOF
15843
15844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15845
15846 WXODBCFLAG="-D_IODBC_"
15847
15848
15849 if test "$wxUSE_ODBC" = "sys" ; then
15850
15851 ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15852echo $ac_n "checking for sql.h""... $ac_c" 1>&6
15853echo "configure:15854: checking for sql.h" >&5
15854if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15855 echo $ac_n "(cached) $ac_c" 1>&6
15856else
15857 cat > conftest.$ac_ext <<EOF
15858#line 15859 "configure"
15859#include "confdefs.h"
15860#include <sql.h>
15861EOF
15862ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15863{ (eval echo configure:15864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15864ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15865if test -z "$ac_err"; then
15866 rm -rf conftest*
15867 eval "ac_cv_header_$ac_safe=yes"
15868else
15869 echo "$ac_err" >&5
15870 echo "configure: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 rm -rf conftest*
15873 eval "ac_cv_header_$ac_safe=no"
15874fi
15875rm -f conftest*
15876fi
15877if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15878 echo "$ac_t""yes" 1>&6
15879 :
15880else
15881 echo "$ac_t""no" 1>&6
15882fi
15883
15884
15885echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
15886echo "configure:15887: checking for library containing SQLAllocEnv" >&5
15887if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15888 echo $ac_n "(cached) $ac_c" 1>&6
15889else
15890 ac_func_search_save_LIBS="$LIBS"
15891ac_cv_search_SQLAllocEnv="no"
15892cat > conftest.$ac_ext <<EOF
15893#line 15894 "configure"
15894#include "confdefs.h"
15895/* Override any gcc2 internal prototype to avoid an error. */
15896/* We use char because int might match the return type of a gcc2
15897 builtin and then its argument prototype would still apply. */
15898char SQLAllocEnv();
15899
15900int main() {
15901SQLAllocEnv()
15902; return 0; }
15903EOF
15904if { (eval echo configure:15905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15905 rm -rf conftest*
15906 ac_cv_search_SQLAllocEnv="none required"
15907else
15908 echo "configure: failed program was:" >&5
15909 cat conftest.$ac_ext >&5
15910fi
15911rm -f conftest*
15912test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15913LIBS="-l$i $ac_func_search_save_LIBS"
15914cat > conftest.$ac_ext <<EOF
15915#line 15916 "configure"
15916#include "confdefs.h"
15917/* Override any gcc2 internal prototype to avoid an error. */
15918/* We use char because int might match the return type of a gcc2
15919 builtin and then its argument prototype would still apply. */
15920char SQLAllocEnv();
15921
15922int main() {
15923SQLAllocEnv()
15924; return 0; }
15925EOF
15926if { (eval echo configure:15927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15927 rm -rf conftest*
15928 ac_cv_search_SQLAllocEnv="-l$i"
15929break
15930else
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15933fi
15934rm -f conftest*
15935done
15936LIBS="$ac_func_search_save_LIBS"
15937fi
15938
15939echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15940if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15941 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15942
15943else :
15944
15945 wxUSE_ODBC=builtin;
15946 echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2
15947
15948fi
15949 fi
15950 if test "$wxUSE_ODBC" != "sys" ; then
15951 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15952 fi
15953
15954 fi
15955
15956fi
15957
15958if test "$wxUSE_REGEX" = "builtin" ; then
15959 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15960fi
15961if test "$wxUSE_ZLIB" = "builtin" ; then
15962 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15963fi
15964
15965
15966if test "$wxUSE_OPENGL" = "yes"; then
15967 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15968 OPENGL_LIBS="-framework OpenGL -framework AGL"
15969 elif test "$wxUSE_MSW" = 1; then
15970 OPENGL_LIBS="-lopengl32 -lglu32"
15971 else
15972 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15973echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15974echo "configure:15975: checking for GL/gl.h" >&5
15975if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15977else
15978 cat > conftest.$ac_ext <<EOF
15979#line 15980 "configure"
15980#include "confdefs.h"
15981#include <GL/gl.h>
15982EOF
15983ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15984{ (eval echo configure:15985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15985ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15986if test -z "$ac_err"; then
15987 rm -rf conftest*
15988 eval "ac_cv_header_$ac_safe=yes"
15989else
15990 echo "$ac_err" >&5
15991 echo "configure: failed program was:" >&5
15992 cat conftest.$ac_ext >&5
15993 rm -rf conftest*
15994 eval "ac_cv_header_$ac_safe=no"
15995fi
15996rm -f conftest*
15997fi
15998if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15999 echo "$ac_t""yes" 1>&6
16000
16001 found_gl=0
16002
16003 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
16004echo "configure:16005: checking for -lGL" >&5
16005
16006ac_find_libraries=
16007for ac_dir in $SEARCH_LIB /usr/lib;
16008 do
16009 for ac_extension in a so sl dylib; do
16010 if test -f "$ac_dir/libGL.$ac_extension"; then
16011 ac_find_libraries=$ac_dir
16012 break 2
16013 fi
16014 done
16015 done
16016
16017 if test "$ac_find_libraries" != "" ; then
16018
16019 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16020 result=$?
16021 if test $result = 0; then
16022 ac_path_to_link=""
16023 else
16024 ac_path_to_link=" -L$ac_find_libraries"
16025 fi
16026
16027 if test "$ac_path_to_link" != " -L/usr/lib" ; then
16028 LDFLAGS_GL="$ac_path_to_link"
16029 fi
16030
16031
16032ac_find_libraries=
16033for ac_dir in $SEARCH_LIB /usr/lib;
16034 do
16035 for ac_extension in a so sl dylib; do
16036 if test -f "$ac_dir/libGLU.$ac_extension"; then
16037 ac_find_libraries=$ac_dir
16038 break 2
16039 fi
16040 done
16041 done
16042
16043 if test "$ac_find_libraries" != "" ; then
16044
16045 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16046 result=$?
16047 if test $result = 0; then
16048 ac_path_to_link=""
16049 else
16050 ac_path_to_link=" -L$ac_find_libraries"
16051 fi
16052
16053 if test "$ac_path_to_link" != " -L/usr/lib" -a \
16054 "$ac_path_to_link" != "$LDFLAGS_GL"; then
16055 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16056 fi
16057
16058 found_gl=1
16059 OPENGL_LIBS="-lGL -lGLU"
16060 echo "$ac_t""yes" 1>&6
16061 fi
16062 fi
16063
16064 if "$found_gl" != 1; then
16065 echo "$ac_t""no" 1>&6
16066 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
16067echo "configure:16068: checking for -lMesaGL" >&5
16068
16069ac_find_libraries=
16070for ac_dir in $SEARCH_LIB /usr/lib;
16071 do
16072 for ac_extension in a so sl dylib; do
16073 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16074 ac_find_libraries=$ac_dir
16075 break 2
16076 fi
16077 done
16078 done
16079
16080 if test "$ac_find_libraries" != "" ; then
16081
16082 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16083 result=$?
16084 if test $result = 0; then
16085 ac_path_to_link=""
16086 else
16087 ac_path_to_link=" -L$ac_find_libraries"
16088 fi
16089
16090 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16091 OPENGL_LIBS="-lMesaGL -lMesaGLU"
16092 echo "$ac_t""yes" 1>&6
16093 else
16094 echo "$ac_t""no" 1>&6
16095 fi
16096 fi
16097
16098else
16099 echo "$ac_t""no" 1>&6
16100fi
16101
16102
16103 if test "x$OPENGL_LIBS" = "x"; then
16104 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16105 fi
16106 fi
16107
16108 if test "$wxUSE_OPENGL" = "yes"; then
16109 cat >> confdefs.h <<\EOF
16110#define wxUSE_OPENGL 1
16111EOF
16112
16113 cat >> confdefs.h <<\EOF
16114#define wxUSE_GLCANVAS 1
16115EOF
16116
16117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16118 fi
16119fi
16120
16121if test -z "$TOOLKIT_VPATH" ; then
16122 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16123fi
16124
16125if test -n "$TOOLKIT" ; then
16126 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16127fi
16128
16129lib_unicode_suffix=
16130if test "$wxUSE_UNICODE" = "yes"; then
16131 lib_unicode_suffix=u
16132fi
16133
16134lib_debug_suffix=
16135if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16136 lib_debug_suffix=d
16137fi
16138
16139WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16140
16141TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16142TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16143
16144if test "$cross_compiling" = "yes"; then
16145 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16146 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16147fi
16148
16149WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16150WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16151WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16152
16153WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16154WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16155
16156WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16157WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16158WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16159WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16160
16161case "${host}" in
16162 *-*-cygwin* | *-*-mingw32* )
16163
16164
16165
16166 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16167 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16168 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16169 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16170 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16171 else
16172 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16173 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16174 fi
16175 ;;
16176
16177 *-*-darwin* )
16178
16179 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16180 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16181
16182 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16183 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16184 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16185 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16186
16187 if test "$wxUSE_MAC" = 1; then
16188 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16189 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16190 fi
16191 ;;
16192esac
16193
16194WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16195WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16196
16197WXCONFIG_LIBS="-l${WX_LIBRARY}"
16198WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16199
16200if test "$wxUSE_OPENGL" = "yes"; then
16201 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16202 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16203fi
16204
16205
16206
16207if test "$wxUSE_SHARED" = "yes"; then
16208 case "${host}" in
16209 *-pc-os2_emx | *-pc-os2-emx | \
16210 *-pc-msdosdjgpp )
16211 wxUSE_SHARED=no
16212 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16213 ;;
16214 esac
16215fi
16216
16217if test "$wxUSE_SHARED" = "yes"; then
16218
16219 if test "$wxUSE_OPENGL" = "yes"; then
16220 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16221 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16222 else
16223 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16224 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16225 fi
16226
16227 if test "$GCC" = "yes"; then
16228 PIC_FLAG="-fPIC"
16229 fi
16230
16231
16232
16233 found_versioning=no
16234
16235
16236 if test $found_versioning = no ; then
16237 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16238echo "configure:16239: checking if the linker accepts --version-script" >&5
16239if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16240 echo $ac_n "(cached) $ac_c" 1>&6
16241else
16242
16243 echo "VER_1 { *; };" >conftest.sym
16244 echo "int main() { return 0; }" >conftest.cpp
16245
16246 if { ac_try='
16247 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16248 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16249 if test -s conftest.stderr ; then
16250 wx_cv_version_script=no
16251 else
16252 wx_cv_version_script=yes
16253 fi
16254 else
16255 wx_cv_version_script=no
16256 fi
16257 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16258
16259fi
16260
16261echo "$ac_t""$wx_cv_version_script" 1>&6
16262 if test $wx_cv_version_script = yes ; then
16263 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16264 fi
16265 fi
16266
16267
16268 SHARED_LD="${CXX} -shared -o"
16269
16270 case "${host}" in
16271 *-hp-hpux* )
16272 if test "$GCC" = "yes"; then
16273 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16274 else
16275 LDFLAGS="$LDFLAGS -L/usr/lib"
16276
16277 SHARED_LD="${CXX} -b -o"
16278 PIC_FLAG="+Z"
16279 fi
16280
16281 if test "$wxUSE_OPENGL" = "yes"; then
16282 WX_ALL_INSTALLED="preinstall_gl"
16283 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16284 else
16285 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16286 fi
16287 ;;
16288
16289 *-*-linux* )
16290 if test "$GCC" != "yes"; then
16291 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16292echo "configure:16293: checking for Intel compiler" >&5
16293if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16294 echo $ac_n "(cached) $ac_c" 1>&6
16295else
16296
16297 cat > conftest.$ac_ext <<EOF
16298#line 16299 "configure"
16299#include "confdefs.h"
16300
16301int main() {
16302
16303 #ifndef __INTEL_COMPILER
16304 #error Not icc
16305 #endif
16306
16307; return 0; }
16308EOF
16309if { (eval echo configure:16310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16310 rm -rf conftest*
16311 wx_cv_prog_icc=yes
16312else
16313 echo "configure: failed program was:" >&5
16314 cat conftest.$ac_ext >&5
16315 rm -rf conftest*
16316 wx_cv_prog_icc=no
16317
16318fi
16319rm -f conftest*
16320
16321fi
16322
16323echo "$ac_t""$wx_cv_prog_icc" 1>&6
16324 if test "$wx_cv_prog_icc" = "yes"; then
16325 PIC_FLAG="-KPIC"
16326 fi
16327 fi
16328
16329 if test "$wxUSE_SONAME" = "yes" ; then
16330 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16331 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16332 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16333 fi
16334 ;;
16335
16336 *-*-solaris2* )
16337 if test "$GCC" = yes ; then
16338 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16339 else
16340 SHARED_LD="${CXX} -G -o"
16341 PIC_FLAG="-KPIC"
16342 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16343 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16344 fi
16345 ;;
16346
16347 *-*-darwin* )
16348 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16349 CFLAGS="$CFLAGS -fno-common"
16350 CXXFLAGS="$CXXFLAGS -fno-common"
16351 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16352 PIC_FLAG="-dynamic -fPIC"
16353 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16354 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16355 ;;
16356
16357 *-*-aix* )
16358 if test "$GCC" != "yes"; then
16359 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16360set dummy makeC++SharedLib; ac_word=$2
16361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16362echo "configure:16363: checking for $ac_word" >&5
16363if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16364 echo $ac_n "(cached) $ac_c" 1>&6
16365else
16366 if test -n "$AIX_CXX_LD"; then
16367 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16368else
16369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16370 ac_dummy="$PATH"
16371 for ac_dir in $ac_dummy; do
16372 test -z "$ac_dir" && ac_dir=.
16373 if test -f $ac_dir/$ac_word; then
16374 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16375 break
16376 fi
16377 done
16378 IFS="$ac_save_ifs"
16379 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16380fi
16381fi
16382AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16383if test -n "$AIX_CXX_LD"; then
16384 echo "$ac_t""$AIX_CXX_LD" 1>&6
16385else
16386 echo "$ac_t""no" 1>&6
16387fi
16388
16389
16390 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16391 fi
16392 ;;
16393
16394 *-*-cygwin* | *-*-mingw32* )
16395 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16396
16397 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16398 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16399
16400 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16401
16402 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16403 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16404
16405 if test "$wxUSE_OPENGL" = "yes"; then
16406 LIBS="${LIBS} ${OPENGL_LIBS}"
16407 fi
16408 ;;
16409
16410 *-*-beos* )
16411 SHARED_LD="${LD} -shared -o"
16412 ;;
16413
16414 *-*-irix* )
16415 if test "$GCC" != "yes"; then
16416 PIC_FLAG="-KPIC"
16417 fi
16418 ;;
16419
16420 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16421 *-*-sunos4* | \
16422 *-*-osf* | \
16423 *-*-dgux5* | \
16424 *-*-sysv5* )
16425 ;;
16426
16427 *)
16428 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16429 esac
16430
16431 if test "x$WX_TARGET_LIBRARY" = "x"; then
16432 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16433 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16434 fi
16435
16436 WX_TARGET_LIBRARY_TYPE="so"
16437 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16438fi
16439
16440if test "$wxUSE_SHARED" = "no"; then
16441
16442 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16443 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16444 fi
16445
16446 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16447 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16448 fi
16449
16450 if test "$wxUSE_OPENGL" = "yes"; then
16451 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16452 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16453 else
16454 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16455 fi
16456
16457 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16458 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16459
16460 WX_TARGET_LIBRARY_TYPE="a"
16461 INSTALL_LIBRARY='$(INSTALL_DATA)'
16462
16463 STATIC_FLAG="yes"
16464else
16465 STATIC_FLAG="no"
16466fi
16467
16468MACRESCOMP="@#"
16469MACSETFILE="@#"
16470MACRESWXCONFIG="#"
16471if test "$wxUSE_MAC" = 1; then
16472 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16473 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16474 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16475 # Extract the first word of "Rez", so it can be a program name with args.
16476set dummy Rez; ac_word=$2
16477echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16478echo "configure:16479: checking for $ac_word" >&5
16479if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16480 echo $ac_n "(cached) $ac_c" 1>&6
16481else
16482 if test -n "$RESCOMP"; then
16483 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16484else
16485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16486 ac_dummy="$PATH"
16487 for ac_dir in $ac_dummy; do
16488 test -z "$ac_dir" && ac_dir=.
16489 if test -f $ac_dir/$ac_word; then
16490 ac_cv_prog_RESCOMP="Rez"
16491 break
16492 fi
16493 done
16494 IFS="$ac_save_ifs"
16495 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16496fi
16497fi
16498RESCOMP="$ac_cv_prog_RESCOMP"
16499if test -n "$RESCOMP"; then
16500 echo "$ac_t""$RESCOMP" 1>&6
16501else
16502 echo "$ac_t""no" 1>&6
16503fi
16504
16505 # Extract the first word of "DeRez", so it can be a program name with args.
16506set dummy DeRez; ac_word=$2
16507echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16508echo "configure:16509: checking for $ac_word" >&5
16509if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16510 echo $ac_n "(cached) $ac_c" 1>&6
16511else
16512 if test -n "$DEREZ"; then
16513 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16514else
16515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16516 ac_dummy="$PATH"
16517 for ac_dir in $ac_dummy; do
16518 test -z "$ac_dir" && ac_dir=.
16519 if test -f $ac_dir/$ac_word; then
16520 ac_cv_prog_DEREZ="DeRez"
16521 break
16522 fi
16523 done
16524 IFS="$ac_save_ifs"
16525 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16526fi
16527fi
16528DEREZ="$ac_cv_prog_DEREZ"
16529if test -n "$DEREZ"; then
16530 echo "$ac_t""$DEREZ" 1>&6
16531else
16532 echo "$ac_t""no" 1>&6
16533fi
16534
16535 # Extract the first word of "SetFile", so it can be a program name with args.
16536set dummy SetFile; ac_word=$2
16537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16538echo "configure:16539: checking for $ac_word" >&5
16539if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16540 echo $ac_n "(cached) $ac_c" 1>&6
16541else
16542 if test -n "$SETFILE"; then
16543 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16544else
16545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16546 ac_dummy="$PATH"
16547 for ac_dir in $ac_dummy; do
16548 test -z "$ac_dir" && ac_dir=.
16549 if test -f $ac_dir/$ac_word; then
16550 ac_cv_prog_SETFILE="SetFile"
16551 break
16552 fi
16553 done
16554 IFS="$ac_save_ifs"
16555 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16556fi
16557fi
16558SETFILE="$ac_cv_prog_SETFILE"
16559if test -n "$SETFILE"; then
16560 echo "$ac_t""$SETFILE" 1>&6
16561else
16562 echo "$ac_t""no" 1>&6
16563fi
16564
16565 MACOSX_BUNDLE="bundle"
16566 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16567 MACSETFILE="\$(SETFILE)"
16568 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16569elif test "$wxUSE_COCOA" = 1; then
16570 # Extract the first word of "Rez", so it can be a program name with args.
16571set dummy Rez; ac_word=$2
16572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16573echo "configure:16574: checking for $ac_word" >&5
16574if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16575 echo $ac_n "(cached) $ac_c" 1>&6
16576else
16577 if test -n "$RESCOMP"; then
16578 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16579else
16580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16581 ac_dummy="$PATH"
16582 for ac_dir in $ac_dummy; do
16583 test -z "$ac_dir" && ac_dir=.
16584 if test -f $ac_dir/$ac_word; then
16585 ac_cv_prog_RESCOMP="Rez"
16586 break
16587 fi
16588 done
16589 IFS="$ac_save_ifs"
16590 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16591fi
16592fi
16593RESCOMP="$ac_cv_prog_RESCOMP"
16594if test -n "$RESCOMP"; then
16595 echo "$ac_t""$RESCOMP" 1>&6
16596else
16597 echo "$ac_t""no" 1>&6
16598fi
16599
16600 # Extract the first word of "DeRez", so it can be a program name with args.
16601set dummy DeRez; ac_word=$2
16602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16603echo "configure:16604: checking for $ac_word" >&5
16604if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16605 echo $ac_n "(cached) $ac_c" 1>&6
16606else
16607 if test -n "$DEREZ"; then
16608 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16609else
16610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16611 ac_dummy="$PATH"
16612 for ac_dir in $ac_dummy; do
16613 test -z "$ac_dir" && ac_dir=.
16614 if test -f $ac_dir/$ac_word; then
16615 ac_cv_prog_DEREZ="DeRez"
16616 break
16617 fi
16618 done
16619 IFS="$ac_save_ifs"
16620 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16621fi
16622fi
16623DEREZ="$ac_cv_prog_DEREZ"
16624if test -n "$DEREZ"; then
16625 echo "$ac_t""$DEREZ" 1>&6
16626else
16627 echo "$ac_t""no" 1>&6
16628fi
16629
16630 # Extract the first word of "SetFile", so it can be a program name with args.
16631set dummy SetFile; ac_word=$2
16632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16633echo "configure:16634: checking for $ac_word" >&5
16634if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16635 echo $ac_n "(cached) $ac_c" 1>&6
16636else
16637 if test -n "$SETFILE"; then
16638 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16639else
16640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16641 ac_dummy="$PATH"
16642 for ac_dir in $ac_dummy; do
16643 test -z "$ac_dir" && ac_dir=.
16644 if test -f $ac_dir/$ac_word; then
16645 ac_cv_prog_SETFILE="SetFile"
16646 break
16647 fi
16648 done
16649 IFS="$ac_save_ifs"
16650 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16651fi
16652fi
16653SETFILE="$ac_cv_prog_SETFILE"
16654if test -n "$SETFILE"; then
16655 echo "$ac_t""$SETFILE" 1>&6
16656else
16657 echo "$ac_t""no" 1>&6
16658fi
16659
16660 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16661 MACSETFILE="\$(SETFILE)"
16662 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16663else
16664 if test "$wxUSE_PM" = 1; then
16665 MACRESCOMP="emxbind -ep"
16666 fi
16667fi
16668
16669
16670echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16671echo "configure:16672: checking for ANSI C header files" >&5
16672if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16673 echo $ac_n "(cached) $ac_c" 1>&6
16674else
16675 cat > conftest.$ac_ext <<EOF
16676#line 16677 "configure"
16677#include "confdefs.h"
16678#include <stdlib.h>
16679#include <stdarg.h>
16680#include <string.h>
16681#include <float.h>
16682EOF
16683ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16684{ (eval echo configure:16685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16686if test -z "$ac_err"; then
16687 rm -rf conftest*
16688 ac_cv_header_stdc=yes
16689else
16690 echo "$ac_err" >&5
16691 echo "configure: failed program was:" >&5
16692 cat conftest.$ac_ext >&5
16693 rm -rf conftest*
16694 ac_cv_header_stdc=no
16695fi
16696rm -f conftest*
16697
16698if test $ac_cv_header_stdc = yes; then
16699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16700cat > conftest.$ac_ext <<EOF
16701#line 16702 "configure"
16702#include "confdefs.h"
16703#include <string.h>
16704EOF
16705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16706 egrep "memchr" >/dev/null 2>&1; then
16707 :
16708else
16709 rm -rf conftest*
16710 ac_cv_header_stdc=no
16711fi
16712rm -f conftest*
16713
16714fi
16715
16716if test $ac_cv_header_stdc = yes; then
16717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16718cat > conftest.$ac_ext <<EOF
16719#line 16720 "configure"
16720#include "confdefs.h"
16721#include <stdlib.h>
16722EOF
16723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16724 egrep "free" >/dev/null 2>&1; then
16725 :
16726else
16727 rm -rf conftest*
16728 ac_cv_header_stdc=no
16729fi
16730rm -f conftest*
16731
16732fi
16733
16734if test $ac_cv_header_stdc = yes; then
16735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16736if test "$cross_compiling" = yes; then
16737 :
16738else
16739 cat > conftest.$ac_ext <<EOF
16740#line 16741 "configure"
16741#include "confdefs.h"
16742#include <ctype.h>
16743#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16744#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16745#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16746int main () { int i; for (i = 0; i < 256; i++)
16747if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16748exit (0); }
16749
16750EOF
16751if { (eval echo configure:16752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16752then
16753 :
16754else
16755 echo "configure: failed program was:" >&5
16756 cat conftest.$ac_ext >&5
16757 rm -fr conftest*
16758 ac_cv_header_stdc=no
16759fi
16760rm -fr conftest*
16761fi
16762
16763fi
16764fi
16765
16766echo "$ac_t""$ac_cv_header_stdc" 1>&6
16767if test $ac_cv_header_stdc = yes; then
16768 cat >> confdefs.h <<\EOF
16769#define STDC_HEADERS 1
16770EOF
16771
16772fi
16773
16774echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16775echo "configure:16776: checking for mode_t" >&5
16776if eval "test \"`echo '$''{'ac_cv_type_mode_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>
16783#if STDC_HEADERS
16784#include <stdlib.h>
16785#include <stddef.h>
16786#endif
16787EOF
16788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16789 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16790 rm -rf conftest*
16791 ac_cv_type_mode_t=yes
16792else
16793 rm -rf conftest*
16794 ac_cv_type_mode_t=no
16795fi
16796rm -f conftest*
16797
16798fi
16799echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16800if test $ac_cv_type_mode_t = no; then
16801 cat >> confdefs.h <<\EOF
16802#define mode_t int
16803EOF
16804
16805fi
16806
16807echo $ac_n "checking for off_t""... $ac_c" 1>&6
16808echo "configure:16809: checking for off_t" >&5
16809if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16810 echo $ac_n "(cached) $ac_c" 1>&6
16811else
16812 cat > conftest.$ac_ext <<EOF
16813#line 16814 "configure"
16814#include "confdefs.h"
16815#include <sys/types.h>
16816#if STDC_HEADERS
16817#include <stdlib.h>
16818#include <stddef.h>
16819#endif
16820EOF
16821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16822 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16823 rm -rf conftest*
16824 ac_cv_type_off_t=yes
16825else
16826 rm -rf conftest*
16827 ac_cv_type_off_t=no
16828fi
16829rm -f conftest*
16830
16831fi
16832echo "$ac_t""$ac_cv_type_off_t" 1>&6
16833if test $ac_cv_type_off_t = no; then
16834 cat >> confdefs.h <<\EOF
16835#define off_t long
16836EOF
16837
16838fi
16839
16840echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16841echo "configure:16842: checking for pid_t" >&5
16842if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16843 echo $ac_n "(cached) $ac_c" 1>&6
16844else
16845 cat > conftest.$ac_ext <<EOF
16846#line 16847 "configure"
16847#include "confdefs.h"
16848#include <sys/types.h>
16849#if STDC_HEADERS
16850#include <stdlib.h>
16851#include <stddef.h>
16852#endif
16853EOF
16854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16855 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16856 rm -rf conftest*
16857 ac_cv_type_pid_t=yes
16858else
16859 rm -rf conftest*
16860 ac_cv_type_pid_t=no
16861fi
16862rm -f conftest*
16863
16864fi
16865echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16866if test $ac_cv_type_pid_t = no; then
16867 cat >> confdefs.h <<\EOF
16868#define pid_t int
16869EOF
16870
16871fi
16872
16873echo $ac_n "checking for size_t""... $ac_c" 1>&6
16874echo "configure:16875: checking for size_t" >&5
16875if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16876 echo $ac_n "(cached) $ac_c" 1>&6
16877else
16878 cat > conftest.$ac_ext <<EOF
16879#line 16880 "configure"
16880#include "confdefs.h"
16881#include <sys/types.h>
16882#if STDC_HEADERS
16883#include <stdlib.h>
16884#include <stddef.h>
16885#endif
16886EOF
16887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16888 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16889 rm -rf conftest*
16890 ac_cv_type_size_t=yes
16891else
16892 rm -rf conftest*
16893 ac_cv_type_size_t=no
16894fi
16895rm -f conftest*
16896
16897fi
16898echo "$ac_t""$ac_cv_type_size_t" 1>&6
16899if test $ac_cv_type_size_t = no; then
16900 cat >> confdefs.h <<\EOF
16901#define size_t unsigned
16902EOF
16903
16904fi
16905
16906echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16907echo "configure:16908: checking for uid_t in sys/types.h" >&5
16908if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16909 echo $ac_n "(cached) $ac_c" 1>&6
16910else
16911 cat > conftest.$ac_ext <<EOF
16912#line 16913 "configure"
16913#include "confdefs.h"
16914#include <sys/types.h>
16915EOF
16916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16917 egrep "uid_t" >/dev/null 2>&1; then
16918 rm -rf conftest*
16919 ac_cv_type_uid_t=yes
16920else
16921 rm -rf conftest*
16922 ac_cv_type_uid_t=no
16923fi
16924rm -f conftest*
16925
16926fi
16927
16928echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16929if test $ac_cv_type_uid_t = no; then
16930 cat >> confdefs.h <<\EOF
16931#define uid_t int
16932EOF
16933
16934 cat >> confdefs.h <<\EOF
16935#define gid_t int
16936EOF
16937
16938fi
16939
16940
16941
16942ac_ext=C
16943# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16944ac_cpp='$CXXCPP $CPPFLAGS'
16945ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16946ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16947cross_compiling=$ac_cv_prog_cxx_cross
16948
16949echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16950echo "configure:16951: checking if size_t is unsigned int" >&5
16951if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16952 echo $ac_n "(cached) $ac_c" 1>&6
16953else
16954
16955 cat > conftest.$ac_ext <<EOF
16956#line 16957 "configure"
16957#include "confdefs.h"
16958#include <stddef.h>
16959int main() {
16960
16961 return 0; }
16962
16963 struct Foo { void foo(size_t); void foo(unsigned int); };
16964
16965 int bar() {
16966
16967; return 0; }
16968EOF
16969if { (eval echo configure:16970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16970 rm -rf conftest*
16971 wx_cv_size_t_is_uint=no
16972else
16973 echo "configure: failed program was:" >&5
16974 cat conftest.$ac_ext >&5
16975 rm -rf conftest*
16976 wx_cv_size_t_is_uint=yes
16977
16978fi
16979rm -f conftest*
16980
16981
16982fi
16983
16984echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16985
16986if test "$wx_cv_size_t_is_uint" = "yes"; then
16987 cat >> confdefs.h <<\EOF
16988#define wxSIZE_T_IS_UINT 1
16989EOF
16990
16991else
16992 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16993echo "configure:16994: checking if size_t is unsigned long" >&5
16994if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16995 echo $ac_n "(cached) $ac_c" 1>&6
16996else
16997 cat > conftest.$ac_ext <<EOF
16998#line 16999 "configure"
16999#include "confdefs.h"
17000#include <stddef.h>
17001int main() {
17002
17003 return 0; }
17004
17005 struct Foo { void foo(size_t); void foo(unsigned long); };
17006
17007 int bar() {
17008
17009; return 0; }
17010EOF
17011if { (eval echo configure:17012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17012 rm -rf conftest*
17013 wx_cv_size_t_is_ulong=no
17014else
17015 echo "configure: failed program was:" >&5
17016 cat conftest.$ac_ext >&5
17017 rm -rf conftest*
17018 wx_cv_size_t_is_ulong=yes
17019
17020fi
17021rm -f conftest*
17022
17023fi
17024
17025echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
17026
17027 if test "$wx_cv_size_t_is_ulong" = "yes"; then
17028 cat >> confdefs.h <<\EOF
17029#define wxSIZE_T_IS_ULONG 1
17030EOF
17031
17032 fi
17033fi
17034
17035ac_ext=c
17036# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17037ac_cpp='$CPP $CPPFLAGS'
17038ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17039ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17040cross_compiling=$ac_cv_prog_cc_cross
17041
17042
17043
17044echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
17045echo "configure:17046: checking for pw_gecos in struct passwd" >&5
17046if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17047 echo $ac_n "(cached) $ac_c" 1>&6
17048else
17049
17050 cat > conftest.$ac_ext <<EOF
17051#line 17052 "configure"
17052#include "confdefs.h"
17053#include <pwd.h>
17054int main() {
17055
17056 char *p;
17057 struct passwd *pw;
17058 p = pw->pw_gecos;
17059
17060; return 0; }
17061EOF
17062if { (eval echo configure:17063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17063 rm -rf conftest*
17064
17065 wx_cv_struct_pw_gecos=yes
17066
17067else
17068 echo "configure: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17070 rm -rf conftest*
17071
17072 wx_cv_struct_pw_gecos=no
17073
17074
17075fi
17076rm -f conftest*
17077
17078
17079fi
17080
17081echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
17082
17083if test "$wx_cv_struct_pw_gecos" = "yes"; then
17084 cat >> confdefs.h <<\EOF
17085#define HAVE_PW_GECOS 1
17086EOF
17087
17088fi
17089
17090
17091if test "$wx_cv_sizeof_wchar_t" != "0"; then
17092 cat >> confdefs.h <<\EOF
17093#define wxUSE_WCHAR_T 1
17094EOF
17095
17096
17097 WCSLEN_FOUND=0
17098 WCHAR_LINK=
17099 for ac_func in wcslen
17100do
17101echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17102echo "configure:17103: checking for $ac_func" >&5
17103if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17104 echo $ac_n "(cached) $ac_c" 1>&6
17105else
17106 cat > conftest.$ac_ext <<EOF
17107#line 17108 "configure"
17108#include "confdefs.h"
17109/* System header to define __stub macros and hopefully few prototypes,
17110 which can conflict with char $ac_func(); below. */
17111#include <assert.h>
17112/* Override any gcc2 internal prototype to avoid an error. */
17113/* We use char because int might match the return type of a gcc2
17114 builtin and then its argument prototype would still apply. */
17115char $ac_func();
17116
17117int main() {
17118
17119/* The GNU C library defines this for functions which it implements
17120 to always fail with ENOSYS. Some functions are actually named
17121 something starting with __ and the normal name is an alias. */
17122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17123choke me
17124#else
17125$ac_func();
17126#endif
17127
17128; return 0; }
17129EOF
17130if { (eval echo configure:17131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17131 rm -rf conftest*
17132 eval "ac_cv_func_$ac_func=yes"
17133else
17134 echo "configure: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 rm -rf conftest*
17137 eval "ac_cv_func_$ac_func=no"
17138fi
17139rm -f conftest*
17140fi
17141
17142if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17143 echo "$ac_t""yes" 1>&6
17144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17145 cat >> confdefs.h <<EOF
17146#define $ac_tr_func 1
17147EOF
17148 WCSLEN_FOUND=1
17149else
17150 echo "$ac_t""no" 1>&6
17151fi
17152done
17153
17154
17155 if test "$WCSLEN_FOUND" = 0; then
17156 if test "$TOOLKIT" = "MSW"; then
17157 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17158echo "configure:17159: checking for wcslen in -lmsvcrt" >&5
17159ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17161 echo $ac_n "(cached) $ac_c" 1>&6
17162else
17163 ac_save_LIBS="$LIBS"
17164LIBS="-lmsvcrt $LIBS"
17165cat > conftest.$ac_ext <<EOF
17166#line 17167 "configure"
17167#include "confdefs.h"
17168/* Override any gcc2 internal prototype to avoid an error. */
17169/* We use char because int might match the return type of a gcc2
17170 builtin and then its argument prototype would still apply. */
17171char wcslen();
17172
17173int main() {
17174wcslen()
17175; return 0; }
17176EOF
17177if { (eval echo configure:17178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17178 rm -rf conftest*
17179 eval "ac_cv_lib_$ac_lib_var=yes"
17180else
17181 echo "configure: failed program was:" >&5
17182 cat conftest.$ac_ext >&5
17183 rm -rf conftest*
17184 eval "ac_cv_lib_$ac_lib_var=no"
17185fi
17186rm -f conftest*
17187LIBS="$ac_save_LIBS"
17188
17189fi
17190if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17191 echo "$ac_t""yes" 1>&6
17192 WCHAR_OK=1
17193else
17194 echo "$ac_t""no" 1>&6
17195fi
17196
17197 else
17198 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17199echo "configure:17200: checking for wcslen in -lw" >&5
17200ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17202 echo $ac_n "(cached) $ac_c" 1>&6
17203else
17204 ac_save_LIBS="$LIBS"
17205LIBS="-lw $LIBS"
17206cat > conftest.$ac_ext <<EOF
17207#line 17208 "configure"
17208#include "confdefs.h"
17209/* Override any gcc2 internal prototype to avoid an error. */
17210/* We use char because int might match the return type of a gcc2
17211 builtin and then its argument prototype would still apply. */
17212char wcslen();
17213
17214int main() {
17215wcslen()
17216; return 0; }
17217EOF
17218if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17219 rm -rf conftest*
17220 eval "ac_cv_lib_$ac_lib_var=yes"
17221else
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17224 rm -rf conftest*
17225 eval "ac_cv_lib_$ac_lib_var=no"
17226fi
17227rm -f conftest*
17228LIBS="$ac_save_LIBS"
17229
17230fi
17231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17232 echo "$ac_t""yes" 1>&6
17233
17234 WCHAR_LINK=" -lw"
17235 WCSLEN_FOUND=1
17236
17237else
17238 echo "$ac_t""no" 1>&6
17239fi
17240
17241 fi
17242 fi
17243
17244 if test "$WCSLEN_FOUND" = 1; then
17245 cat >> confdefs.h <<\EOF
17246#define HAVE_WCSLEN 1
17247EOF
17248
17249 fi
17250
17251 for ac_func in wcsrtombs
17252do
17253echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17254echo "configure:17255: checking for $ac_func" >&5
17255if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17256 echo $ac_n "(cached) $ac_c" 1>&6
17257else
17258 cat > conftest.$ac_ext <<EOF
17259#line 17260 "configure"
17260#include "confdefs.h"
17261/* System header to define __stub macros and hopefully few prototypes,
17262 which can conflict with char $ac_func(); below. */
17263#include <assert.h>
17264/* Override any gcc2 internal prototype to avoid an error. */
17265/* We use char because int might match the return type of a gcc2
17266 builtin and then its argument prototype would still apply. */
17267char $ac_func();
17268
17269int main() {
17270
17271/* The GNU C library defines this for functions which it implements
17272 to always fail with ENOSYS. Some functions are actually named
17273 something starting with __ and the normal name is an alias. */
17274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17275choke me
17276#else
17277$ac_func();
17278#endif
17279
17280; return 0; }
17281EOF
17282if { (eval echo configure:17283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17283 rm -rf conftest*
17284 eval "ac_cv_func_$ac_func=yes"
17285else
17286 echo "configure: failed program was:" >&5
17287 cat conftest.$ac_ext >&5
17288 rm -rf conftest*
17289 eval "ac_cv_func_$ac_func=no"
17290fi
17291rm -f conftest*
17292fi
17293
17294if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17295 echo "$ac_t""yes" 1>&6
17296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17297 cat >> confdefs.h <<EOF
17298#define $ac_tr_func 1
17299EOF
17300
17301else
17302 echo "$ac_t""no" 1>&6
17303fi
17304done
17305
17306else
17307 echo "configure: warning: Wide character support is unavailable" 1>&2
17308fi
17309
17310
17311ac_ext=C
17312# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17313ac_cpp='$CXXCPP $CPPFLAGS'
17314ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17315ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17316cross_compiling=$ac_cv_prog_cxx_cross
17317
17318
17319for ac_func in vsnprintf
17320do
17321echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17322echo "configure:17323: checking for $ac_func" >&5
17323if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17324 echo $ac_n "(cached) $ac_c" 1>&6
17325else
17326 cat > conftest.$ac_ext <<EOF
17327#line 17328 "configure"
17328#include "confdefs.h"
17329/* System header to define __stub macros and hopefully few prototypes,
17330 which can conflict with char $ac_func(); below. */
17331#include <assert.h>
17332/* Override any gcc2 internal prototype to avoid an error. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336/* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17338char $ac_func();
17339
17340int main() {
17341
17342/* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17346choke me
17347#else
17348$ac_func();
17349#endif
17350
17351; return 0; }
17352EOF
17353if { (eval echo configure:17354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17354 rm -rf conftest*
17355 eval "ac_cv_func_$ac_func=yes"
17356else
17357 echo "configure: failed program was:" >&5
17358 cat conftest.$ac_ext >&5
17359 rm -rf conftest*
17360 eval "ac_cv_func_$ac_func=no"
17361fi
17362rm -f conftest*
17363fi
17364
17365if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17366 echo "$ac_t""yes" 1>&6
17367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17368 cat >> confdefs.h <<EOF
17369#define $ac_tr_func 1
17370EOF
17371
17372else
17373 echo "$ac_t""no" 1>&6
17374fi
17375done
17376
17377
17378if test "$ac_cv_func_vsnprintf" = "yes"; then
17379 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17380echo "configure:17381: checking for vsnprintf declaration" >&5
17381if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17382 echo $ac_n "(cached) $ac_c" 1>&6
17383else
17384
17385 cat > conftest.$ac_ext <<EOF
17386#line 17387 "configure"
17387#include "confdefs.h"
17388
17389 #include <stdio.h>
17390 #include <stdarg.h>
17391
17392int main() {
17393
17394 char *buf;
17395 va_list ap;
17396 vsnprintf(buf, 10u, "%s", ap);
17397
17398; return 0; }
17399EOF
17400if { (eval echo configure:17401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17401 rm -rf conftest*
17402 wx_cv_func_vsnprintf_decl=yes
17403else
17404 echo "configure: failed program was:" >&5
17405 cat conftest.$ac_ext >&5
17406 rm -rf conftest*
17407 wx_cv_func_vsnprintf_decl=no
17408
17409fi
17410rm -f conftest*
17411
17412
17413fi
17414
17415echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17416
17417 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17418 cat >> confdefs.h <<\EOF
17419#define HAVE_VSNPRINTF_DECL 1
17420EOF
17421
17422 fi
17423fi
17424
17425if test "$wxUSE_UNICODE" = yes; then
17426 for ac_func in fputwc wprintf vswprintf
17427do
17428echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17429echo "configure:17430: checking for $ac_func" >&5
17430if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17431 echo $ac_n "(cached) $ac_c" 1>&6
17432else
17433 cat > conftest.$ac_ext <<EOF
17434#line 17435 "configure"
17435#include "confdefs.h"
17436/* System header to define __stub macros and hopefully few prototypes,
17437 which can conflict with char $ac_func(); below. */
17438#include <assert.h>
17439/* Override any gcc2 internal prototype to avoid an error. */
17440#ifdef __cplusplus
17441extern "C"
17442#endif
17443/* We use char because int might match the return type of a gcc2
17444 builtin and then its argument prototype would still apply. */
17445char $ac_func();
17446
17447int main() {
17448
17449/* The GNU C library defines this for functions which it implements
17450 to always fail with ENOSYS. Some functions are actually named
17451 something starting with __ and the normal name is an alias. */
17452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17453choke me
17454#else
17455$ac_func();
17456#endif
17457
17458; return 0; }
17459EOF
17460if { (eval echo configure:17461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17461 rm -rf conftest*
17462 eval "ac_cv_func_$ac_func=yes"
17463else
17464 echo "configure: failed program was:" >&5
17465 cat conftest.$ac_ext >&5
17466 rm -rf conftest*
17467 eval "ac_cv_func_$ac_func=no"
17468fi
17469rm -f conftest*
17470fi
17471
17472if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17473 echo "$ac_t""yes" 1>&6
17474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17475 cat >> confdefs.h <<EOF
17476#define $ac_tr_func 1
17477EOF
17478
17479else
17480 echo "$ac_t""no" 1>&6
17481fi
17482done
17483
17484
17485 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17486echo "configure:17487: checking for _vsnwprintf" >&5
17487 cat > conftest.$ac_ext <<EOF
17488#line 17489 "configure"
17489#include "confdefs.h"
17490#include <wchar.h>
17491int main() {
17492&_vsnwprintf;
17493; return 0; }
17494EOF
17495if { (eval echo configure:17496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17496 rm -rf conftest*
17497 echo "$ac_t""yes" 1>&6
17498 cat >> confdefs.h <<\EOF
17499#define HAVE__VSNWPRINTF 1
17500EOF
17501
17502else
17503 echo "configure: failed program was:" >&5
17504 cat conftest.$ac_ext >&5
17505 rm -rf conftest*
17506 echo "$ac_t""no" 1>&6
17507fi
17508rm -f conftest*;
17509fi
17510
17511ac_ext=c
17512# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17513ac_cpp='$CPP $CPPFLAGS'
17514ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17515ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17516cross_compiling=$ac_cv_prog_cc_cross
17517
17518
17519
17520
17521if test "$TOOLKIT" != "MSW"; then
17522
17523
17524
17525ac_ext=C
17526# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17527ac_cpp='$CXXCPP $CPPFLAGS'
17528ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17529ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17530cross_compiling=$ac_cv_prog_cxx_cross
17531
17532
17533
17534 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17535if test "${with_libiconv_prefix+set}" = set; then
17536 withval="$with_libiconv_prefix"
17537
17538 for dir in `echo "$withval" | tr : ' '`; do
17539 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17540 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17541 done
17542
17543fi
17544
17545
17546 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17547echo "configure:17548: checking for iconv" >&5
17548if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17549 echo $ac_n "(cached) $ac_c" 1>&6
17550else
17551
17552 am_cv_func_iconv="no, consider installing GNU libiconv"
17553 am_cv_lib_iconv=no
17554 cat > conftest.$ac_ext <<EOF
17555#line 17556 "configure"
17556#include "confdefs.h"
17557#include <stdlib.h>
17558#include <iconv.h>
17559int main() {
17560iconv_t cd = iconv_open("","");
17561 iconv(cd,NULL,NULL,NULL,NULL);
17562 iconv_close(cd);
17563; return 0; }
17564EOF
17565if { (eval echo configure:17566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17566 rm -rf conftest*
17567 am_cv_func_iconv=yes
17568else
17569 echo "configure: failed program was:" >&5
17570 cat conftest.$ac_ext >&5
17571fi
17572rm -f conftest*
17573 if test "$am_cv_func_iconv" != yes; then
17574 am_save_LIBS="$LIBS"
17575 LIBS="$LIBS -liconv"
17576 cat > conftest.$ac_ext <<EOF
17577#line 17578 "configure"
17578#include "confdefs.h"
17579#include <stdlib.h>
17580#include <iconv.h>
17581int main() {
17582iconv_t cd = iconv_open("","");
17583 iconv(cd,NULL,NULL,NULL,NULL);
17584 iconv_close(cd);
17585; return 0; }
17586EOF
17587if { (eval echo configure:17588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17588 rm -rf conftest*
17589 am_cv_lib_iconv=yes
17590 am_cv_func_iconv=yes
17591else
17592 echo "configure: failed program was:" >&5
17593 cat conftest.$ac_ext >&5
17594fi
17595rm -f conftest*
17596 LIBS="$am_save_LIBS"
17597 fi
17598
17599fi
17600
17601echo "$ac_t""$am_cv_func_iconv" 1>&6
17602 if test "$am_cv_func_iconv" = yes; then
17603 cat >> confdefs.h <<\EOF
17604#define HAVE_ICONV 1
17605EOF
17606
17607 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17608echo "configure:17609: checking if iconv needs const" >&5
17609if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17610 echo $ac_n "(cached) $ac_c" 1>&6
17611else
17612 cat > conftest.$ac_ext <<EOF
17613#line 17614 "configure"
17614#include "confdefs.h"
17615
17616#include <stdlib.h>
17617#include <iconv.h>
17618extern
17619#ifdef __cplusplus
17620"C"
17621#endif
17622#if defined(__STDC__) || defined(__cplusplus)
17623size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17624#else
17625size_t iconv();
17626#endif
17627
17628int main() {
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 wx_cv_func_iconv_const="no"
17635else
17636 echo "configure: failed program was:" >&5
17637 cat conftest.$ac_ext >&5
17638 rm -rf conftest*
17639 wx_cv_func_iconv_const="yes"
17640
17641fi
17642rm -f conftest*
17643
17644fi
17645
17646echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17647
17648 iconv_const=
17649 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17650 iconv_const="const"
17651 fi
17652
17653 cat >> confdefs.h <<EOF
17654#define ICONV_CONST $iconv_const
17655EOF
17656
17657 fi
17658 LIBICONV=
17659 if test "$am_cv_lib_iconv" = yes; then
17660 LIBICONV="-liconv"
17661 fi
17662
17663
17664LIBS="$LIBICONV $LIBS"
17665ac_ext=c
17666# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17667ac_cpp='$CPP $CPPFLAGS'
17668ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17669ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17670cross_compiling=$ac_cv_prog_cc_cross
17671
17672
17673if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17674 for ac_func in sigaction
17675do
17676echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17677echo "configure:17678: checking for $ac_func" >&5
17678if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17679 echo $ac_n "(cached) $ac_c" 1>&6
17680else
17681 cat > conftest.$ac_ext <<EOF
17682#line 17683 "configure"
17683#include "confdefs.h"
17684/* System header to define __stub macros and hopefully few prototypes,
17685 which can conflict with char $ac_func(); below. */
17686#include <assert.h>
17687/* Override any gcc2 internal prototype to avoid an error. */
17688/* We use char because int might match the return type of a gcc2
17689 builtin and then its argument prototype would still apply. */
17690char $ac_func();
17691
17692int main() {
17693
17694/* The GNU C library defines this for functions which it implements
17695 to always fail with ENOSYS. Some functions are actually named
17696 something starting with __ and the normal name is an alias. */
17697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17698choke me
17699#else
17700$ac_func();
17701#endif
17702
17703; return 0; }
17704EOF
17705if { (eval echo configure:17706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17706 rm -rf conftest*
17707 eval "ac_cv_func_$ac_func=yes"
17708else
17709 echo "configure: failed program was:" >&5
17710 cat conftest.$ac_ext >&5
17711 rm -rf conftest*
17712 eval "ac_cv_func_$ac_func=no"
17713fi
17714rm -f conftest*
17715fi
17716
17717if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17718 echo "$ac_t""yes" 1>&6
17719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17720 cat >> confdefs.h <<EOF
17721#define $ac_tr_func 1
17722EOF
17723
17724else
17725 echo "$ac_t""no" 1>&6
17726fi
17727done
17728
17729
17730 if test "$ac_cv_func_sigaction" = "no"; then
17731 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17732 wxUSE_ON_FATAL_EXCEPTION=no
17733 fi
17734
17735 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17736
17737 ac_ext=C
17738# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17739ac_cpp='$CXXCPP $CPPFLAGS'
17740ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17741ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17742cross_compiling=$ac_cv_prog_cxx_cross
17743
17744
17745 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17746echo "configure:17747: checking for sa_handler type" >&5
17747if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17748 echo $ac_n "(cached) $ac_c" 1>&6
17749else
17750
17751 cat > conftest.$ac_ext <<EOF
17752#line 17753 "configure"
17753#include "confdefs.h"
17754#include <signal.h>
17755int main() {
17756
17757 extern void testSigHandler(int);
17758
17759 struct sigaction sa;
17760 sa.sa_handler = testSigHandler;
17761
17762; return 0; }
17763EOF
17764if { (eval echo configure:17765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17765 rm -rf conftest*
17766
17767 wx_cv_type_sa_handler=int
17768
17769else
17770 echo "configure: failed program was:" >&5
17771 cat conftest.$ac_ext >&5
17772 rm -rf conftest*
17773
17774 wx_cv_type_sa_handler=void
17775
17776fi
17777rm -f conftest*
17778
17779fi
17780
17781echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17782
17783 ac_ext=c
17784# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17785ac_cpp='$CPP $CPPFLAGS'
17786ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17787ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17788cross_compiling=$ac_cv_prog_cc_cross
17789
17790
17791 cat >> confdefs.h <<EOF
17792#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17793EOF
17794
17795 fi
17796fi
17797
17798for ac_func in mkstemp mktemp
17799do
17800echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17801echo "configure:17802: checking for $ac_func" >&5
17802if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17803 echo $ac_n "(cached) $ac_c" 1>&6
17804else
17805 cat > conftest.$ac_ext <<EOF
17806#line 17807 "configure"
17807#include "confdefs.h"
17808/* System header to define __stub macros and hopefully few prototypes,
17809 which can conflict with char $ac_func(); below. */
17810#include <assert.h>
17811/* Override any gcc2 internal prototype to avoid an error. */
17812/* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17814char $ac_func();
17815
17816int main() {
17817
17818/* The GNU C library defines this for functions which it implements
17819 to always fail with ENOSYS. Some functions are actually named
17820 something starting with __ and the normal name is an alias. */
17821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17822choke me
17823#else
17824$ac_func();
17825#endif
17826
17827; return 0; }
17828EOF
17829if { (eval echo configure:17830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17830 rm -rf conftest*
17831 eval "ac_cv_func_$ac_func=yes"
17832else
17833 echo "configure: failed program was:" >&5
17834 cat conftest.$ac_ext >&5
17835 rm -rf conftest*
17836 eval "ac_cv_func_$ac_func=no"
17837fi
17838rm -f conftest*
17839fi
17840
17841if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17842 echo "$ac_t""yes" 1>&6
17843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17844 cat >> confdefs.h <<EOF
17845#define $ac_tr_func 1
17846EOF
17847 break
17848else
17849 echo "$ac_t""no" 1>&6
17850fi
17851done
17852
17853
17854echo $ac_n "checking for statfs""... $ac_c" 1>&6
17855echo "configure:17856: checking for statfs" >&5
17856if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17857 echo $ac_n "(cached) $ac_c" 1>&6
17858else
17859 cat > conftest.$ac_ext <<EOF
17860#line 17861 "configure"
17861#include "confdefs.h"
17862
17863 #if defined(__BSD__)
17864 #include <sys/param.h>
17865 #include <sys/mount.h>
17866 #else
17867 #include <sys/vfs.h>
17868 #endif
17869
17870int main() {
17871
17872 long l;
17873 struct statfs fs;
17874 statfs("/", &fs);
17875 l = fs.f_bsize;
17876 l += fs.f_blocks;
17877 l += fs.f_bavail;
17878
17879; return 0; }
17880EOF
17881if { (eval echo configure:17882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17882 rm -rf conftest*
17883
17884 wx_cv_func_statfs=yes
17885
17886else
17887 echo "configure: failed program was:" >&5
17888 cat conftest.$ac_ext >&5
17889 rm -rf conftest*
17890
17891 wx_cv_func_statfs=no
17892
17893
17894fi
17895rm -f conftest*
17896
17897fi
17898
17899echo "$ac_t""$wx_cv_func_statfs" 1>&6
17900
17901if test "$wx_cv_func_statfs" = "yes"; then
17902 wx_cv_type_statvfs_t="struct statfs"
17903 cat >> confdefs.h <<\EOF
17904#define HAVE_STATFS 1
17905EOF
17906
17907else
17908 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17909echo "configure:17910: checking for statvfs" >&5
17910if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17911 echo $ac_n "(cached) $ac_c" 1>&6
17912else
17913 cat > conftest.$ac_ext <<EOF
17914#line 17915 "configure"
17915#include "confdefs.h"
17916
17917 #include <stddef.h>
17918 #include <sys/statvfs.h>
17919
17920int main() {
17921
17922 statvfs("/", NULL);
17923
17924; return 0; }
17925EOF
17926if { (eval echo configure:17927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17927 rm -rf conftest*
17928 wx_cv_func_statvfs=yes
17929else
17930 echo "configure: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 rm -rf conftest*
17933 wx_cv_func_statvfs=no
17934
17935fi
17936rm -f conftest*
17937
17938fi
17939
17940echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17941
17942 if test "$wx_cv_func_statvfs" = "yes"; then
17943
17944 ac_ext=C
17945# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17946ac_cpp='$CXXCPP $CPPFLAGS'
17947ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17948ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17949cross_compiling=$ac_cv_prog_cxx_cross
17950
17951
17952 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17953echo "configure:17954: checking for statvfs argument type" >&5
17954if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17955 echo $ac_n "(cached) $ac_c" 1>&6
17956else
17957 cat > conftest.$ac_ext <<EOF
17958#line 17959 "configure"
17959#include "confdefs.h"
17960
17961 #include <sys/statvfs.h>
17962
17963int main() {
17964
17965 long l;
17966 statvfs_t fs;
17967 statvfs("/", &fs);
17968 l = fs.f_bsize;
17969 l += fs.f_blocks;
17970 l += fs.f_bavail;
17971
17972; return 0; }
17973EOF
17974if { (eval echo configure:17975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17975 rm -rf conftest*
17976 wx_cv_type_statvfs_t=statvfs_t
17977else
17978 echo "configure: failed program was:" >&5
17979 cat conftest.$ac_ext >&5
17980 rm -rf conftest*
17981
17982 cat > conftest.$ac_ext <<EOF
17983#line 17984 "configure"
17984#include "confdefs.h"
17985
17986 #include <sys/statvfs.h>
17987
17988int main() {
17989
17990 long l;
17991 struct statvfs fs;
17992 statvfs("/", &fs);
17993 l = fs.f_bsize;
17994 l += fs.f_blocks;
17995 l += fs.f_bavail;
17996
17997; return 0; }
17998EOF
17999if { (eval echo configure:18000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18000 rm -rf conftest*
18001 wx_cv_type_statvfs_t="struct statvfs"
18002else
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18005 rm -rf conftest*
18006 wx_cv_type_statvfs_t="unknown"
18007
18008fi
18009rm -f conftest*
18010
18011
18012fi
18013rm -f conftest*
18014
18015fi
18016
18017echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18018
18019 ac_ext=c
18020# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18021ac_cpp='$CPP $CPPFLAGS'
18022ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18023ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18024cross_compiling=$ac_cv_prog_cc_cross
18025
18026
18027 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18028 cat >> confdefs.h <<\EOF
18029#define HAVE_STATVFS 1
18030EOF
18031
18032 fi
18033 else
18034 wx_cv_type_statvfs_t="unknown"
18035 fi
18036fi
18037
18038if test "$wx_cv_type_statvfs_t" != "unknown"; then
18039 cat >> confdefs.h <<EOF
18040#define WX_STATFS_T $wx_cv_type_statvfs_t
18041EOF
18042
18043else
18044 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18045fi
18046
18047if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18048 for ac_func in fcntl flock
18049do
18050echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18051echo "configure:18052: checking for $ac_func" >&5
18052if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18053 echo $ac_n "(cached) $ac_c" 1>&6
18054else
18055 cat > conftest.$ac_ext <<EOF
18056#line 18057 "configure"
18057#include "confdefs.h"
18058/* System header to define __stub macros and hopefully few prototypes,
18059 which can conflict with char $ac_func(); below. */
18060#include <assert.h>
18061/* Override any gcc2 internal prototype to avoid an error. */
18062/* We use char because int might match the return type of a gcc2
18063 builtin and then its argument prototype would still apply. */
18064char $ac_func();
18065
18066int main() {
18067
18068/* The GNU C library defines this for functions which it implements
18069 to always fail with ENOSYS. Some functions are actually named
18070 something starting with __ and the normal name is an alias. */
18071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18072choke me
18073#else
18074$ac_func();
18075#endif
18076
18077; return 0; }
18078EOF
18079if { (eval echo configure:18080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18080 rm -rf conftest*
18081 eval "ac_cv_func_$ac_func=yes"
18082else
18083 echo "configure: failed program was:" >&5
18084 cat conftest.$ac_ext >&5
18085 rm -rf conftest*
18086 eval "ac_cv_func_$ac_func=no"
18087fi
18088rm -f conftest*
18089fi
18090
18091if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18092 echo "$ac_t""yes" 1>&6
18093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18094 cat >> confdefs.h <<EOF
18095#define $ac_tr_func 1
18096EOF
18097 break
18098else
18099 echo "$ac_t""no" 1>&6
18100fi
18101done
18102
18103
18104 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
18105 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
18106 wxUSE_SNGLINST_CHECKER=no
18107 fi
18108fi
18109
18110for ac_func in timegm
18111do
18112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18113echo "configure:18114: checking for $ac_func" >&5
18114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18115 echo $ac_n "(cached) $ac_c" 1>&6
18116else
18117 cat > conftest.$ac_ext <<EOF
18118#line 18119 "configure"
18119#include "confdefs.h"
18120/* System header to define __stub macros and hopefully few prototypes,
18121 which can conflict with char $ac_func(); below. */
18122#include <assert.h>
18123/* Override any gcc2 internal prototype to avoid an error. */
18124/* We use char because int might match the return type of a gcc2
18125 builtin and then its argument prototype would still apply. */
18126char $ac_func();
18127
18128int main() {
18129
18130/* The GNU C library defines this for functions which it implements
18131 to always fail with ENOSYS. Some functions are actually named
18132 something starting with __ and the normal name is an alias. */
18133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18134choke me
18135#else
18136$ac_func();
18137#endif
18138
18139; return 0; }
18140EOF
18141if { (eval echo configure:18142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18142 rm -rf conftest*
18143 eval "ac_cv_func_$ac_func=yes"
18144else
18145 echo "configure: failed program was:" >&5
18146 cat conftest.$ac_ext >&5
18147 rm -rf conftest*
18148 eval "ac_cv_func_$ac_func=no"
18149fi
18150rm -f conftest*
18151fi
18152
18153if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18154 echo "$ac_t""yes" 1>&6
18155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18156 cat >> confdefs.h <<EOF
18157#define $ac_tr_func 1
18158EOF
18159
18160else
18161 echo "$ac_t""no" 1>&6
18162fi
18163done
18164
18165
18166for ac_func in putenv setenv
18167do
18168echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18169echo "configure:18170: checking for $ac_func" >&5
18170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18171 echo $ac_n "(cached) $ac_c" 1>&6
18172else
18173 cat > conftest.$ac_ext <<EOF
18174#line 18175 "configure"
18175#include "confdefs.h"
18176/* System header to define __stub macros and hopefully few prototypes,
18177 which can conflict with char $ac_func(); below. */
18178#include <assert.h>
18179/* Override any gcc2 internal prototype to avoid an error. */
18180/* We use char because int might match the return type of a gcc2
18181 builtin and then its argument prototype would still apply. */
18182char $ac_func();
18183
18184int main() {
18185
18186/* The GNU C library defines this for functions which it implements
18187 to always fail with ENOSYS. Some functions are actually named
18188 something starting with __ and the normal name is an alias. */
18189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18190choke me
18191#else
18192$ac_func();
18193#endif
18194
18195; return 0; }
18196EOF
18197if { (eval echo configure:18198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18198 rm -rf conftest*
18199 eval "ac_cv_func_$ac_func=yes"
18200else
18201 echo "configure: failed program was:" >&5
18202 cat conftest.$ac_ext >&5
18203 rm -rf conftest*
18204 eval "ac_cv_func_$ac_func=no"
18205fi
18206rm -f conftest*
18207fi
18208
18209if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18210 echo "$ac_t""yes" 1>&6
18211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18212 cat >> confdefs.h <<EOF
18213#define $ac_tr_func 1
18214EOF
18215 break
18216else
18217 echo "$ac_t""no" 1>&6
18218fi
18219done
18220
18221
18222HAVE_SOME_SLEEP_FUNC=0
18223if test "$USE_BEOS" = 1; then
18224 cat >> confdefs.h <<\EOF
18225#define HAVE_SLEEP 1
18226EOF
18227
18228 HAVE_SOME_SLEEP_FUNC=1
18229fi
18230
18231if test "$USE_DARWIN" = 1; then
18232 cat >> confdefs.h <<\EOF
18233#define HAVE_USLEEP 1
18234EOF
18235
18236 HAVE_SOME_SLEEP_FUNC=1
18237fi
18238
18239if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18240 POSIX4_LINK=
18241 for ac_func in nanosleep
18242do
18243echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18244echo "configure:18245: checking for $ac_func" >&5
18245if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18246 echo $ac_n "(cached) $ac_c" 1>&6
18247else
18248 cat > conftest.$ac_ext <<EOF
18249#line 18250 "configure"
18250#include "confdefs.h"
18251/* System header to define __stub macros and hopefully few prototypes,
18252 which can conflict with char $ac_func(); below. */
18253#include <assert.h>
18254/* Override any gcc2 internal prototype to avoid an error. */
18255/* We use char because int might match the return type of a gcc2
18256 builtin and then its argument prototype would still apply. */
18257char $ac_func();
18258
18259int main() {
18260
18261/* The GNU C library defines this for functions which it implements
18262 to always fail with ENOSYS. Some functions are actually named
18263 something starting with __ and the normal name is an alias. */
18264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18265choke me
18266#else
18267$ac_func();
18268#endif
18269
18270; return 0; }
18271EOF
18272if { (eval echo configure:18273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18273 rm -rf conftest*
18274 eval "ac_cv_func_$ac_func=yes"
18275else
18276 echo "configure: failed program was:" >&5
18277 cat conftest.$ac_ext >&5
18278 rm -rf conftest*
18279 eval "ac_cv_func_$ac_func=no"
18280fi
18281rm -f conftest*
18282fi
18283
18284if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18285 echo "$ac_t""yes" 1>&6
18286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18287 cat >> confdefs.h <<EOF
18288#define $ac_tr_func 1
18289EOF
18290 cat >> confdefs.h <<\EOF
18291#define HAVE_NANOSLEEP 1
18292EOF
18293
18294else
18295 echo "$ac_t""no" 1>&6
18296echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18297echo "configure:18298: checking for nanosleep in -lposix4" >&5
18298ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18299if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18300 echo $ac_n "(cached) $ac_c" 1>&6
18301else
18302 ac_save_LIBS="$LIBS"
18303LIBS="-lposix4 $LIBS"
18304cat > conftest.$ac_ext <<EOF
18305#line 18306 "configure"
18306#include "confdefs.h"
18307/* Override any gcc2 internal prototype to avoid an error. */
18308/* We use char because int might match the return type of a gcc2
18309 builtin and then its argument prototype would still apply. */
18310char nanosleep();
18311
18312int main() {
18313nanosleep()
18314; return 0; }
18315EOF
18316if { (eval echo configure:18317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18317 rm -rf conftest*
18318 eval "ac_cv_lib_$ac_lib_var=yes"
18319else
18320 echo "configure: failed program was:" >&5
18321 cat conftest.$ac_ext >&5
18322 rm -rf conftest*
18323 eval "ac_cv_lib_$ac_lib_var=no"
18324fi
18325rm -f conftest*
18326LIBS="$ac_save_LIBS"
18327
18328fi
18329if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18330 echo "$ac_t""yes" 1>&6
18331
18332 cat >> confdefs.h <<\EOF
18333#define HAVE_NANOSLEEP 1
18334EOF
18335
18336 POSIX4_LINK=" -lposix4"
18337
18338else
18339 echo "$ac_t""no" 1>&6
18340
18341 for ac_func in usleep
18342do
18343echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18344echo "configure:18345: checking for $ac_func" >&5
18345if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18346 echo $ac_n "(cached) $ac_c" 1>&6
18347else
18348 cat > conftest.$ac_ext <<EOF
18349#line 18350 "configure"
18350#include "confdefs.h"
18351/* System header to define __stub macros and hopefully few prototypes,
18352 which can conflict with char $ac_func(); below. */
18353#include <assert.h>
18354/* Override any gcc2 internal prototype to avoid an error. */
18355/* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18357char $ac_func();
18358
18359int main() {
18360
18361/* The GNU C library defines this for functions which it implements
18362 to always fail with ENOSYS. Some functions are actually named
18363 something starting with __ and the normal name is an alias. */
18364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18365choke me
18366#else
18367$ac_func();
18368#endif
18369
18370; return 0; }
18371EOF
18372if { (eval echo configure:18373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18373 rm -rf conftest*
18374 eval "ac_cv_func_$ac_func=yes"
18375else
18376 echo "configure: failed program was:" >&5
18377 cat conftest.$ac_ext >&5
18378 rm -rf conftest*
18379 eval "ac_cv_func_$ac_func=no"
18380fi
18381rm -f conftest*
18382fi
18383
18384if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18385 echo "$ac_t""yes" 1>&6
18386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18387 cat >> confdefs.h <<EOF
18388#define $ac_tr_func 1
18389EOF
18390 cat >> confdefs.h <<\EOF
18391#define HAVE_USLEEP 1
18392EOF
18393
18394else
18395 echo "$ac_t""no" 1>&6
18396echo "configure: warning: wxSleep() function will not work" 1>&2
18397
18398fi
18399done
18400
18401
18402
18403fi
18404
18405
18406
18407fi
18408done
18409
18410fi
18411
18412for ac_func in uname gethostname
18413do
18414echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18415echo "configure:18416: checking for $ac_func" >&5
18416if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18417 echo $ac_n "(cached) $ac_c" 1>&6
18418else
18419 cat > conftest.$ac_ext <<EOF
18420#line 18421 "configure"
18421#include "confdefs.h"
18422/* System header to define __stub macros and hopefully few prototypes,
18423 which can conflict with char $ac_func(); below. */
18424#include <assert.h>
18425/* Override any gcc2 internal prototype to avoid an error. */
18426/* We use char because int might match the return type of a gcc2
18427 builtin and then its argument prototype would still apply. */
18428char $ac_func();
18429
18430int main() {
18431
18432/* The GNU C library defines this for functions which it implements
18433 to always fail with ENOSYS. Some functions are actually named
18434 something starting with __ and the normal name is an alias. */
18435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18436choke me
18437#else
18438$ac_func();
18439#endif
18440
18441; return 0; }
18442EOF
18443if { (eval echo configure:18444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18444 rm -rf conftest*
18445 eval "ac_cv_func_$ac_func=yes"
18446else
18447 echo "configure: failed program was:" >&5
18448 cat conftest.$ac_ext >&5
18449 rm -rf conftest*
18450 eval "ac_cv_func_$ac_func=no"
18451fi
18452rm -f conftest*
18453fi
18454
18455if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18456 echo "$ac_t""yes" 1>&6
18457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18458 cat >> confdefs.h <<EOF
18459#define $ac_tr_func 1
18460EOF
18461 break
18462else
18463 echo "$ac_t""no" 1>&6
18464fi
18465done
18466
18467
18468
18469ac_ext=C
18470# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18471ac_cpp='$CXXCPP $CPPFLAGS'
18472ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18473ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18474cross_compiling=$ac_cv_prog_cxx_cross
18475
18476
18477for ac_func in strtok_r
18478do
18479echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18480echo "configure:18481: checking for $ac_func" >&5
18481if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18482 echo $ac_n "(cached) $ac_c" 1>&6
18483else
18484 cat > conftest.$ac_ext <<EOF
18485#line 18486 "configure"
18486#include "confdefs.h"
18487/* System header to define __stub macros and hopefully few prototypes,
18488 which can conflict with char $ac_func(); below. */
18489#include <assert.h>
18490/* Override any gcc2 internal prototype to avoid an error. */
18491#ifdef __cplusplus
18492extern "C"
18493#endif
18494/* We use char because int might match the return type of a gcc2
18495 builtin and then its argument prototype would still apply. */
18496char $ac_func();
18497
18498int main() {
18499
18500/* The GNU C library defines this for functions which it implements
18501 to always fail with ENOSYS. Some functions are actually named
18502 something starting with __ and the normal name is an alias. */
18503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18504choke me
18505#else
18506$ac_func();
18507#endif
18508
18509; return 0; }
18510EOF
18511if { (eval echo configure:18512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18512 rm -rf conftest*
18513 eval "ac_cv_func_$ac_func=yes"
18514else
18515 echo "configure: failed program was:" >&5
18516 cat conftest.$ac_ext >&5
18517 rm -rf conftest*
18518 eval "ac_cv_func_$ac_func=no"
18519fi
18520rm -f conftest*
18521fi
18522
18523if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18524 echo "$ac_t""yes" 1>&6
18525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18526 cat >> confdefs.h <<EOF
18527#define $ac_tr_func 1
18528EOF
18529
18530else
18531 echo "$ac_t""no" 1>&6
18532fi
18533done
18534
18535
18536ac_ext=c
18537# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18538ac_cpp='$CPP $CPPFLAGS'
18539ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18540ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18541cross_compiling=$ac_cv_prog_cc_cross
18542
18543
18544INET_LINK=
18545for ac_func in inet_addr
18546do
18547echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18548echo "configure:18549: checking for $ac_func" >&5
18549if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18550 echo $ac_n "(cached) $ac_c" 1>&6
18551else
18552 cat > conftest.$ac_ext <<EOF
18553#line 18554 "configure"
18554#include "confdefs.h"
18555/* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char $ac_func(); below. */
18557#include <assert.h>
18558/* Override any gcc2 internal prototype to avoid an error. */
18559/* We use char because int might match the return type of a gcc2
18560 builtin and then its argument prototype would still apply. */
18561char $ac_func();
18562
18563int main() {
18564
18565/* The GNU C library defines this for functions which it implements
18566 to always fail with ENOSYS. Some functions are actually named
18567 something starting with __ and the normal name is an alias. */
18568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18569choke me
18570#else
18571$ac_func();
18572#endif
18573
18574; return 0; }
18575EOF
18576if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18577 rm -rf conftest*
18578 eval "ac_cv_func_$ac_func=yes"
18579else
18580 echo "configure: failed program was:" >&5
18581 cat conftest.$ac_ext >&5
18582 rm -rf conftest*
18583 eval "ac_cv_func_$ac_func=no"
18584fi
18585rm -f conftest*
18586fi
18587
18588if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18589 echo "$ac_t""yes" 1>&6
18590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18591 cat >> confdefs.h <<EOF
18592#define $ac_tr_func 1
18593EOF
18594 cat >> confdefs.h <<\EOF
18595#define HAVE_INET_ADDR 1
18596EOF
18597
18598else
18599 echo "$ac_t""no" 1>&6
18600echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18601echo "configure:18602: checking for inet_addr in -lnsl" >&5
18602ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18604 echo $ac_n "(cached) $ac_c" 1>&6
18605else
18606 ac_save_LIBS="$LIBS"
18607LIBS="-lnsl $LIBS"
18608cat > conftest.$ac_ext <<EOF
18609#line 18610 "configure"
18610#include "confdefs.h"
18611/* Override any gcc2 internal prototype to avoid an error. */
18612/* We use char because int might match the return type of a gcc2
18613 builtin and then its argument prototype would still apply. */
18614char inet_addr();
18615
18616int main() {
18617inet_addr()
18618; return 0; }
18619EOF
18620if { (eval echo configure:18621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18621 rm -rf conftest*
18622 eval "ac_cv_lib_$ac_lib_var=yes"
18623else
18624 echo "configure: failed program was:" >&5
18625 cat conftest.$ac_ext >&5
18626 rm -rf conftest*
18627 eval "ac_cv_lib_$ac_lib_var=no"
18628fi
18629rm -f conftest*
18630LIBS="$ac_save_LIBS"
18631
18632fi
18633if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18634 echo "$ac_t""yes" 1>&6
18635 INET_LINK="nsl"
18636else
18637 echo "$ac_t""no" 1>&6
18638echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18639echo "configure:18640: checking for inet_addr in -lresolv" >&5
18640ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18642 echo $ac_n "(cached) $ac_c" 1>&6
18643else
18644 ac_save_LIBS="$LIBS"
18645LIBS="-lresolv $LIBS"
18646cat > conftest.$ac_ext <<EOF
18647#line 18648 "configure"
18648#include "confdefs.h"
18649/* Override any gcc2 internal prototype to avoid an error. */
18650/* We use char because int might match the return type of a gcc2
18651 builtin and then its argument prototype would still apply. */
18652char inet_addr();
18653
18654int main() {
18655inet_addr()
18656; return 0; }
18657EOF
18658if { (eval echo configure:18659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18659 rm -rf conftest*
18660 eval "ac_cv_lib_$ac_lib_var=yes"
18661else
18662 echo "configure: failed program was:" >&5
18663 cat conftest.$ac_ext >&5
18664 rm -rf conftest*
18665 eval "ac_cv_lib_$ac_lib_var=no"
18666fi
18667rm -f conftest*
18668LIBS="$ac_save_LIBS"
18669
18670fi
18671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18672 echo "$ac_t""yes" 1>&6
18673 INET_LINK="resolv"
18674else
18675 echo "$ac_t""no" 1>&6
18676echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18677echo "configure:18678: checking for inet_addr in -lsocket" >&5
18678ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18680 echo $ac_n "(cached) $ac_c" 1>&6
18681else
18682 ac_save_LIBS="$LIBS"
18683LIBS="-lsocket $LIBS"
18684cat > conftest.$ac_ext <<EOF
18685#line 18686 "configure"
18686#include "confdefs.h"
18687/* Override any gcc2 internal prototype to avoid an error. */
18688/* We use char because int might match the return type of a gcc2
18689 builtin and then its argument prototype would still apply. */
18690char inet_addr();
18691
18692int main() {
18693inet_addr()
18694; return 0; }
18695EOF
18696if { (eval echo configure:18697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18697 rm -rf conftest*
18698 eval "ac_cv_lib_$ac_lib_var=yes"
18699else
18700 echo "configure: failed program was:" >&5
18701 cat conftest.$ac_ext >&5
18702 rm -rf conftest*
18703 eval "ac_cv_lib_$ac_lib_var=no"
18704fi
18705rm -f conftest*
18706LIBS="$ac_save_LIBS"
18707
18708fi
18709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18710 echo "$ac_t""yes" 1>&6
18711 INET_LINK="socket"
18712
18713else
18714 echo "$ac_t""no" 1>&6
18715fi
18716
18717
18718fi
18719
18720
18721fi
18722
18723
18724
18725fi
18726done
18727
18728
18729for ac_func in inet_aton
18730do
18731echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18732echo "configure:18733: checking for $ac_func" >&5
18733if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18734 echo $ac_n "(cached) $ac_c" 1>&6
18735else
18736 cat > conftest.$ac_ext <<EOF
18737#line 18738 "configure"
18738#include "confdefs.h"
18739/* System header to define __stub macros and hopefully few prototypes,
18740 which can conflict with char $ac_func(); below. */
18741#include <assert.h>
18742/* Override any gcc2 internal prototype to avoid an error. */
18743/* We use char because int might match the return type of a gcc2
18744 builtin and then its argument prototype would still apply. */
18745char $ac_func();
18746
18747int main() {
18748
18749/* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18753choke me
18754#else
18755$ac_func();
18756#endif
18757
18758; return 0; }
18759EOF
18760if { (eval echo configure:18761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18761 rm -rf conftest*
18762 eval "ac_cv_func_$ac_func=yes"
18763else
18764 echo "configure: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18766 rm -rf conftest*
18767 eval "ac_cv_func_$ac_func=no"
18768fi
18769rm -f conftest*
18770fi
18771
18772if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18773 echo "$ac_t""yes" 1>&6
18774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18775 cat >> confdefs.h <<EOF
18776#define $ac_tr_func 1
18777EOF
18778 cat >> confdefs.h <<\EOF
18779#define HAVE_INET_ATON 1
18780EOF
18781
18782else
18783 echo "$ac_t""no" 1>&6
18784 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18785echo "configure:18786: checking for inet_aton in -l$INET_LINK" >&5
18786ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18788 echo $ac_n "(cached) $ac_c" 1>&6
18789else
18790 ac_save_LIBS="$LIBS"
18791LIBS="-l$INET_LINK $LIBS"
18792cat > conftest.$ac_ext <<EOF
18793#line 18794 "configure"
18794#include "confdefs.h"
18795/* Override any gcc2 internal prototype to avoid an error. */
18796/* We use char because int might match the return type of a gcc2
18797 builtin and then its argument prototype would still apply. */
18798char inet_aton();
18799
18800int main() {
18801inet_aton()
18802; return 0; }
18803EOF
18804if { (eval echo configure:18805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18805 rm -rf conftest*
18806 eval "ac_cv_lib_$ac_lib_var=yes"
18807else
18808 echo "configure: failed program was:" >&5
18809 cat conftest.$ac_ext >&5
18810 rm -rf conftest*
18811 eval "ac_cv_lib_$ac_lib_var=no"
18812fi
18813rm -f conftest*
18814LIBS="$ac_save_LIBS"
18815
18816fi
18817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18818 echo "$ac_t""yes" 1>&6
18819 cat >> confdefs.h <<\EOF
18820#define HAVE_INET_ATON 1
18821EOF
18822
18823else
18824 echo "$ac_t""no" 1>&6
18825fi
18826
18827
18828fi
18829done
18830
18831
18832if test "x$INET_LINK" != "x"; then
18833 cat >> confdefs.h <<\EOF
18834#define HAVE_INET_ADDR 1
18835EOF
18836
18837 INET_LINK=" -l$INET_LINK"
18838fi
18839
18840fi
18841
18842
18843cat > confcache <<\EOF
18844# This file is a shell script that caches the results of configure
18845# tests run on this system so they can be shared between configure
18846# scripts and configure runs. It is not useful on other systems.
18847# If it contains results you don't want to keep, you may remove or edit it.
18848#
18849# By default, configure uses ./config.cache as the cache file,
18850# creating it if it does not exist already. You can give configure
18851# the --cache-file=FILE option to use a different cache file; that is
18852# what configure does when it calls configure scripts in
18853# subdirectories, so they share the cache.
18854# Giving --cache-file=/dev/null disables caching, for debugging configure.
18855# config.status only pays attention to the cache file if you give it the
18856# --recheck option to rerun configure.
18857#
18858EOF
18859# The following way of writing the cache mishandles newlines in values,
18860# but we know of no workaround that is simple, portable, and efficient.
18861# So, don't put newlines in cache variables' values.
18862# Ultrix sh set writes to stderr and can't be redirected directly,
18863# and sets the high bit in the cache file unless we assign to the vars.
18864(set) 2>&1 |
18865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18866 *ac_space=\ *)
18867 # `set' does not quote correctly, so add quotes (double-quote substitution
18868 # turns \\\\ into \\, and sed turns \\ into \).
18869 sed -n \
18870 -e "s/'/'\\\\''/g" \
18871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18872 ;;
18873 *)
18874 # `set' quotes correctly as required by POSIX, so do not add quotes.
18875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18876 ;;
18877 esac >> confcache
18878if cmp -s $cache_file confcache; then
18879 :
18880else
18881 if test -w $cache_file; then
18882 echo "updating cache $cache_file"
18883 cat confcache > $cache_file
18884 else
18885 echo "not updating unwritable cache $cache_file"
18886 fi
18887fi
18888rm -f confcache
18889
18890
18891
18892CPP_MT_FLAG=
18893if test "$TOOLKIT" != "MSW"; then
18894
18895
18896 THREADS_LINK=
18897 THREADS_CFLAGS=
18898
18899 if test "$wxUSE_THREADS" = "yes" ; then
18900 if test "$USE_BEOS" = 1; then
18901 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18902 wxUSE_THREADS="no"
18903 fi
18904 fi
18905
18906 if test "$wxUSE_THREADS" = "yes" ; then
18907
18908
18909 THREAD_OPTS="-pthread"
18910 case "${host}" in
18911 *-*-solaris2* | *-*-sunos4* )
18912 if test "x$GCC" = "xyes"; then
18913 THREAD_OPTS="-pthreads $THREAD_OPTS"
18914 else
18915 THREAD_OPTS="-mt $THREAD_OPTS"
18916 fi
18917 ;;
18918 *-*-freebsd*)
18919 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18920 ;;
18921 *-*-darwin* | *-*-cygwin* )
18922 THREAD_OPTS=""
18923 ;;
18924 *-*-aix*)
18925 THREAD_OPTS="pthreads"
18926 ;;
18927 *-hp-hpux* )
18928 if test "x$GCC" != "xyes"; then
18929 THREAD_OPTS=""
18930 fi
18931 ;;
18932
18933 *-*-irix* )
18934 if test "x$GCC" = "xyes"; then
18935 THREAD_OPTS=""
18936 fi
18937 ;;
18938
18939 *-*-*UnixWare*)
18940 if test "x$GCC" != "xyes"; then
18941 THREAD_OPTS="-Ethread"
18942 fi
18943 ;;
18944 esac
18945
18946 THREAD_OPTS="$THREAD_OPTS pthread none"
18947
18948 THREADS_OK=no
18949 for flag in $THREAD_OPTS; do
18950 case $flag in
18951 none)
18952 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18953echo "configure:18954: checking whether pthreads work without any flags" >&5
18954 ;;
18955
18956 -*)
18957 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18958echo "configure:18959: checking whether pthreads work with $flag" >&5
18959 THREADS_CFLAGS="$flag"
18960 ;;
18961
18962 *)
18963 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18964echo "configure:18965: checking for the pthreads library -l$flag" >&5
18965 THREADS_LINK="-l$flag"
18966 ;;
18967 esac
18968
18969 save_LIBS="$LIBS"
18970 save_CFLAGS="$CFLAGS"
18971 LIBS="$THREADS_LINK $LIBS"
18972 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18973
18974 cat > conftest.$ac_ext <<EOF
18975#line 18976 "configure"
18976#include "confdefs.h"
18977#include <pthread.h>
18978int main() {
18979pthread_create(0,0,0,0);
18980; return 0; }
18981EOF
18982if { (eval echo configure:18983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18983 rm -rf conftest*
18984 THREADS_OK=yes
18985else
18986 echo "configure: failed program was:" >&5
18987 cat conftest.$ac_ext >&5
18988fi
18989rm -f conftest*
18990
18991 LIBS="$save_LIBS"
18992 CFLAGS="$save_CFLAGS"
18993
18994 echo "$ac_t""$THREADS_OK" 1>&6
18995 if test "x$THREADS_OK" = "xyes"; then
18996 break;
18997 fi
18998
18999 THREADS_LINK=""
19000 THREADS_CFLAGS=""
19001 done
19002
19003 if test "x$THREADS_OK" != "xyes"; then
19004 wxUSE_THREADS=no
19005 echo "configure: warning: No thread support on this system... disabled" 1>&2
19006 else
19007 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19008 LIBS="$THREADS_LINK $LIBS"
19009
19010 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
19011echo "configure:19012: checking if more special flags are required for pthreads" >&5
19012 flag=no
19013 case "${host}" in
19014 *-aix*)
19015 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19016 flag="-D_THREAD_SAFE"
19017 ;;
19018 *-freebsd*)
19019 flag="-D_THREAD_SAFE"
19020 ;;
19021 *-hp-hpux* )
19022 flag="-D_REENTRANT"
19023 if test "x$GCC" != "xyes"; then
19024 flag="$flag -D_RWSTD_MULTI_THREAD"
19025 fi
19026 ;;
19027 *solaris* | alpha*-osf*)
19028 flag="-D_REENTRANT"
19029 ;;
19030 esac
19031 echo "$ac_t""${flag}" 1>&6
19032 if test "x$flag" != xno; then
19033 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
19034 fi
19035
19036 if test "x$THREADS_CFLAGS" != "x"; then
19037 CFLAGS="$CFLAGS $THREADS_CFLAGS"
19038 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19039 fi
19040 fi
19041 fi
19042
19043 if test "$wxUSE_THREADS" = "yes" ; then
19044 for ac_func in thr_setconcurrency
19045do
19046echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19047echo "configure:19048: checking for $ac_func" >&5
19048if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19049 echo $ac_n "(cached) $ac_c" 1>&6
19050else
19051 cat > conftest.$ac_ext <<EOF
19052#line 19053 "configure"
19053#include "confdefs.h"
19054/* System header to define __stub macros and hopefully few prototypes,
19055 which can conflict with char $ac_func(); below. */
19056#include <assert.h>
19057/* Override any gcc2 internal prototype to avoid an error. */
19058/* We use char because int might match the return type of a gcc2
19059 builtin and then its argument prototype would still apply. */
19060char $ac_func();
19061
19062int main() {
19063
19064/* The GNU C library defines this for functions which it implements
19065 to always fail with ENOSYS. Some functions are actually named
19066 something starting with __ and the normal name is an alias. */
19067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19068choke me
19069#else
19070$ac_func();
19071#endif
19072
19073; return 0; }
19074EOF
19075if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19076 rm -rf conftest*
19077 eval "ac_cv_func_$ac_func=yes"
19078else
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19081 rm -rf conftest*
19082 eval "ac_cv_func_$ac_func=no"
19083fi
19084rm -f conftest*
19085fi
19086
19087if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19088 echo "$ac_t""yes" 1>&6
19089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19090 cat >> confdefs.h <<EOF
19091#define $ac_tr_func 1
19092EOF
19093
19094else
19095 echo "$ac_t""no" 1>&6
19096fi
19097done
19098
19099
19100 for ac_hdr in sched.h
19101do
19102ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19103echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19104echo "configure:19105: checking for $ac_hdr" >&5
19105if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19106 echo $ac_n "(cached) $ac_c" 1>&6
19107else
19108 cat > conftest.$ac_ext <<EOF
19109#line 19110 "configure"
19110#include "confdefs.h"
19111#include <$ac_hdr>
19112EOF
19113ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19114{ (eval echo configure:19115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19115ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19116if test -z "$ac_err"; then
19117 rm -rf conftest*
19118 eval "ac_cv_header_$ac_safe=yes"
19119else
19120 echo "$ac_err" >&5
19121 echo "configure: failed program was:" >&5
19122 cat conftest.$ac_ext >&5
19123 rm -rf conftest*
19124 eval "ac_cv_header_$ac_safe=no"
19125fi
19126rm -f conftest*
19127fi
19128if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19129 echo "$ac_t""yes" 1>&6
19130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19131 cat >> confdefs.h <<EOF
19132#define $ac_tr_hdr 1
19133EOF
19134
19135else
19136 echo "$ac_t""no" 1>&6
19137fi
19138done
19139
19140 if test "$ac_cv_header_sched_h" = "yes"; then
19141 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
19142echo "configure:19143: checking for sched_yield" >&5
19143if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19144 echo $ac_n "(cached) $ac_c" 1>&6
19145else
19146 cat > conftest.$ac_ext <<EOF
19147#line 19148 "configure"
19148#include "confdefs.h"
19149/* System header to define __stub macros and hopefully few prototypes,
19150 which can conflict with char sched_yield(); below. */
19151#include <assert.h>
19152/* Override any gcc2 internal prototype to avoid an error. */
19153/* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155char sched_yield();
19156
19157int main() {
19158
19159/* The GNU C library defines this for functions which it implements
19160 to always fail with ENOSYS. Some functions are actually named
19161 something starting with __ and the normal name is an alias. */
19162#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19163choke me
19164#else
19165sched_yield();
19166#endif
19167
19168; return 0; }
19169EOF
19170if { (eval echo configure:19171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19171 rm -rf conftest*
19172 eval "ac_cv_func_sched_yield=yes"
19173else
19174 echo "configure: failed program was:" >&5
19175 cat conftest.$ac_ext >&5
19176 rm -rf conftest*
19177 eval "ac_cv_func_sched_yield=no"
19178fi
19179rm -f conftest*
19180fi
19181
19182if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19183 echo "$ac_t""yes" 1>&6
19184 cat >> confdefs.h <<\EOF
19185#define HAVE_SCHED_YIELD 1
19186EOF
19187
19188else
19189 echo "$ac_t""no" 1>&6
19190
19191 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19192echo "configure:19193: checking for sched_yield in -lposix4" >&5
19193ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19195 echo $ac_n "(cached) $ac_c" 1>&6
19196else
19197 ac_save_LIBS="$LIBS"
19198LIBS="-lposix4 $LIBS"
19199cat > conftest.$ac_ext <<EOF
19200#line 19201 "configure"
19201#include "confdefs.h"
19202/* Override any gcc2 internal prototype to avoid an error. */
19203/* We use char because int might match the return type of a gcc2
19204 builtin and then its argument prototype would still apply. */
19205char sched_yield();
19206
19207int main() {
19208sched_yield()
19209; return 0; }
19210EOF
19211if { (eval echo configure:19212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19212 rm -rf conftest*
19213 eval "ac_cv_lib_$ac_lib_var=yes"
19214else
19215 echo "configure: failed program was:" >&5
19216 cat conftest.$ac_ext >&5
19217 rm -rf conftest*
19218 eval "ac_cv_lib_$ac_lib_var=no"
19219fi
19220rm -f conftest*
19221LIBS="$ac_save_LIBS"
19222
19223fi
19224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19225 echo "$ac_t""yes" 1>&6
19226 cat >> confdefs.h <<\EOF
19227#define HAVE_SCHED_YIELD 1
19228EOF
19229 POSIX4_LINK=" -lposix4"
19230else
19231 echo "$ac_t""no" 1>&6
19232echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19233
19234fi
19235
19236
19237
19238fi
19239
19240 fi
19241
19242 HAVE_PRIOR_FUNCS=0
19243 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19244echo "configure:19245: checking for pthread_attr_getschedpolicy" >&5
19245if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19246 echo $ac_n "(cached) $ac_c" 1>&6
19247else
19248 cat > conftest.$ac_ext <<EOF
19249#line 19250 "configure"
19250#include "confdefs.h"
19251/* System header to define __stub macros and hopefully few prototypes,
19252 which can conflict with char pthread_attr_getschedpolicy(); below. */
19253#include <assert.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 pthread_attr_getschedpolicy();
19258
19259int main() {
19260
19261/* The GNU C library defines this for functions which it implements
19262 to always fail with ENOSYS. Some functions are actually named
19263 something starting with __ and the normal name is an alias. */
19264#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19265choke me
19266#else
19267pthread_attr_getschedpolicy();
19268#endif
19269
19270; return 0; }
19271EOF
19272if { (eval echo configure:19273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19273 rm -rf conftest*
19274 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19275else
19276 echo "configure: failed program was:" >&5
19277 cat conftest.$ac_ext >&5
19278 rm -rf conftest*
19279 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19280fi
19281rm -f conftest*
19282fi
19283
19284if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19285 echo "$ac_t""yes" 1>&6
19286 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19287echo "configure:19288: checking for pthread_attr_setschedparam" >&5
19288if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19289 echo $ac_n "(cached) $ac_c" 1>&6
19290else
19291 cat > conftest.$ac_ext <<EOF
19292#line 19293 "configure"
19293#include "confdefs.h"
19294/* System header to define __stub macros and hopefully few prototypes,
19295 which can conflict with char pthread_attr_setschedparam(); below. */
19296#include <assert.h>
19297/* Override any gcc2 internal prototype to avoid an error. */
19298/* We use char because int might match the return type of a gcc2
19299 builtin and then its argument prototype would still apply. */
19300char pthread_attr_setschedparam();
19301
19302int main() {
19303
19304/* The GNU C library defines this for functions which it implements
19305 to always fail with ENOSYS. Some functions are actually named
19306 something starting with __ and the normal name is an alias. */
19307#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19308choke me
19309#else
19310pthread_attr_setschedparam();
19311#endif
19312
19313; return 0; }
19314EOF
19315if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19316 rm -rf conftest*
19317 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19318else
19319 echo "configure: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19321 rm -rf conftest*
19322 eval "ac_cv_func_pthread_attr_setschedparam=no"
19323fi
19324rm -f conftest*
19325fi
19326
19327if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19328 echo "$ac_t""yes" 1>&6
19329 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19330echo "configure:19331: checking for sched_get_priority_max" >&5
19331if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19332 echo $ac_n "(cached) $ac_c" 1>&6
19333else
19334 cat > conftest.$ac_ext <<EOF
19335#line 19336 "configure"
19336#include "confdefs.h"
19337/* System header to define __stub macros and hopefully few prototypes,
19338 which can conflict with char sched_get_priority_max(); below. */
19339#include <assert.h>
19340/* Override any gcc2 internal prototype to avoid an error. */
19341/* We use char because int might match the return type of a gcc2
19342 builtin and then its argument prototype would still apply. */
19343char sched_get_priority_max();
19344
19345int main() {
19346
19347/* The GNU C library defines this for functions which it implements
19348 to always fail with ENOSYS. Some functions are actually named
19349 something starting with __ and the normal name is an alias. */
19350#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19351choke me
19352#else
19353sched_get_priority_max();
19354#endif
19355
19356; return 0; }
19357EOF
19358if { (eval echo configure:19359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19359 rm -rf conftest*
19360 eval "ac_cv_func_sched_get_priority_max=yes"
19361else
19362 echo "configure: failed program was:" >&5
19363 cat conftest.$ac_ext >&5
19364 rm -rf conftest*
19365 eval "ac_cv_func_sched_get_priority_max=no"
19366fi
19367rm -f conftest*
19368fi
19369
19370if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19371 echo "$ac_t""yes" 1>&6
19372 HAVE_PRIOR_FUNCS=1
19373else
19374 echo "$ac_t""no" 1>&6
19375echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19376echo "configure:19377: checking for sched_get_priority_max in -lposix4" >&5
19377ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19378if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19379 echo $ac_n "(cached) $ac_c" 1>&6
19380else
19381 ac_save_LIBS="$LIBS"
19382LIBS="-lposix4 $LIBS"
19383cat > conftest.$ac_ext <<EOF
19384#line 19385 "configure"
19385#include "confdefs.h"
19386/* Override any gcc2 internal prototype to avoid an error. */
19387/* We use char because int might match the return type of a gcc2
19388 builtin and then its argument prototype would still apply. */
19389char sched_get_priority_max();
19390
19391int main() {
19392sched_get_priority_max()
19393; return 0; }
19394EOF
19395if { (eval echo configure:19396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19396 rm -rf conftest*
19397 eval "ac_cv_lib_$ac_lib_var=yes"
19398else
19399 echo "configure: failed program was:" >&5
19400 cat conftest.$ac_ext >&5
19401 rm -rf conftest*
19402 eval "ac_cv_lib_$ac_lib_var=no"
19403fi
19404rm -f conftest*
19405LIBS="$ac_save_LIBS"
19406
19407fi
19408if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19409 echo "$ac_t""yes" 1>&6
19410
19411 HAVE_PRIOR_FUNCS=1
19412 POSIX4_LINK=" -lposix4"
19413
19414else
19415 echo "$ac_t""no" 1>&6
19416fi
19417
19418
19419fi
19420
19421
19422else
19423 echo "$ac_t""no" 1>&6
19424fi
19425
19426
19427else
19428 echo "$ac_t""no" 1>&6
19429fi
19430
19431
19432 if test "$HAVE_PRIOR_FUNCS" = 1; then
19433 cat >> confdefs.h <<\EOF
19434#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19435EOF
19436
19437 else
19438 echo "configure: warning: Setting thread priority will not work" 1>&2
19439 fi
19440
19441 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19442echo "configure:19443: checking for pthread_cancel" >&5
19443if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19444 echo $ac_n "(cached) $ac_c" 1>&6
19445else
19446 cat > conftest.$ac_ext <<EOF
19447#line 19448 "configure"
19448#include "confdefs.h"
19449/* System header to define __stub macros and hopefully few prototypes,
19450 which can conflict with char pthread_cancel(); below. */
19451#include <assert.h>
19452/* Override any gcc2 internal prototype to avoid an error. */
19453/* We use char because int might match the return type of a gcc2
19454 builtin and then its argument prototype would still apply. */
19455char pthread_cancel();
19456
19457int main() {
19458
19459/* The GNU C library defines this for functions which it implements
19460 to always fail with ENOSYS. Some functions are actually named
19461 something starting with __ and the normal name is an alias. */
19462#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19463choke me
19464#else
19465pthread_cancel();
19466#endif
19467
19468; return 0; }
19469EOF
19470if { (eval echo configure:19471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19471 rm -rf conftest*
19472 eval "ac_cv_func_pthread_cancel=yes"
19473else
19474 echo "configure: failed program was:" >&5
19475 cat conftest.$ac_ext >&5
19476 rm -rf conftest*
19477 eval "ac_cv_func_pthread_cancel=no"
19478fi
19479rm -f conftest*
19480fi
19481
19482if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19483 echo "$ac_t""yes" 1>&6
19484 cat >> confdefs.h <<\EOF
19485#define HAVE_PTHREAD_CANCEL 1
19486EOF
19487
19488else
19489 echo "$ac_t""no" 1>&6
19490echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19491fi
19492
19493
19494 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19495echo "configure:19496: checking for pthread_cleanup_push/pop" >&5
19496if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19497 echo $ac_n "(cached) $ac_c" 1>&6
19498else
19499
19500 cat > conftest.$ac_ext <<EOF
19501#line 19502 "configure"
19502#include "confdefs.h"
19503#include <pthread.h>
19504int main() {
19505
19506 pthread_cleanup_push(NULL, NULL);
19507 pthread_cleanup_pop(0);
19508
19509; return 0; }
19510EOF
19511if { (eval echo configure:19512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19512 rm -rf conftest*
19513
19514 wx_cv_func_pthread_cleanup_push=yes
19515
19516else
19517 echo "configure: failed program was:" >&5
19518 cat conftest.$ac_ext >&5
19519 rm -rf conftest*
19520
19521 wx_cv_func_pthread_cleanup_push=no
19522
19523fi
19524rm -f conftest*
19525
19526fi
19527
19528echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19529
19530 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19531 cat >> confdefs.h <<\EOF
19532#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19533EOF
19534
19535 fi
19536
19537
19538 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19539echo "configure:19540: checking for pthread_mutexattr_t" >&5
19540if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19541 echo $ac_n "(cached) $ac_c" 1>&6
19542else
19543
19544 cat > conftest.$ac_ext <<EOF
19545#line 19546 "configure"
19546#include "confdefs.h"
19547#include <pthread.h>
19548int main() {
19549
19550 pthread_mutexattr_t attr;
19551 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19552
19553; return 0; }
19554EOF
19555if { (eval echo configure:19556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19556 rm -rf conftest*
19557
19558 wx_cv_type_pthread_mutexattr_t=yes
19559
19560else
19561 echo "configure: failed program was:" >&5
19562 cat conftest.$ac_ext >&5
19563 rm -rf conftest*
19564
19565 wx_cv_type_pthread_mutexattr_t=no
19566
19567
19568fi
19569rm -f conftest*
19570
19571fi
19572
19573echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19574
19575 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19576 cat >> confdefs.h <<\EOF
19577#define HAVE_PTHREAD_MUTEXATTR_T 1
19578EOF
19579
19580 else
19581 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19582echo "configure:19583: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19583if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19584 echo $ac_n "(cached) $ac_c" 1>&6
19585else
19586
19587 cat > conftest.$ac_ext <<EOF
19588#line 19589 "configure"
19589#include "confdefs.h"
19590#include <pthread.h>
19591int main() {
19592
19593 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19594
19595; return 0; }
19596EOF
19597if { (eval echo configure:19598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19598 rm -rf conftest*
19599
19600 wx_cv_type_pthread_rec_mutex_init=yes
19601
19602else
19603 echo "configure: failed program was:" >&5
19604 cat conftest.$ac_ext >&5
19605 rm -rf conftest*
19606
19607 wx_cv_type_pthread_rec_mutex_init=no
19608
19609
19610fi
19611rm -f conftest*
19612
19613fi
19614
19615echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19616 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19617 cat >> confdefs.h <<\EOF
19618#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19619EOF
19620
19621 else
19622 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19623 fi
19624 fi
19625 fi
19626
19627else
19628 if test "$wxUSE_THREADS" = "yes" ; then
19629 case "${host}" in
19630 *-*-mingw32* )
19631 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19632echo "configure:19633: checking if compiler supports -mthreads" >&5
19633if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19634 echo $ac_n "(cached) $ac_c" 1>&6
19635else
19636
19637 CFLAGS_OLD="$CFLAGS"
19638 CFLAGS="$CFLAGS -mthreads"
19639 cat > conftest.$ac_ext <<EOF
19640#line 19641 "configure"
19641#include "confdefs.h"
19642
19643int main() {
19644
19645; return 0; }
19646EOF
19647if { (eval echo configure:19648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19648 rm -rf conftest*
19649 wx_cv_cflags_mthread=yes
19650else
19651 echo "configure: failed program was:" >&5
19652 cat conftest.$ac_ext >&5
19653 rm -rf conftest*
19654 wx_cv_cflags_mthread=no
19655
19656fi
19657rm -f conftest*
19658
19659
19660fi
19661
19662echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19663
19664 if test "$wx_cv_cflags_mthread" = "yes"; then
19665 CXXFLAGS="$CXXFLAGS -mthreads"
19666 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19667 LDFLAGS="$LDFLAGS -mthreads"
19668 else
19669 CFLAGS="$CFLAGS_OLD"
19670 fi
19671 ;;
19672 esac
19673 fi
19674fi
19675
19676if test "$wxUSE_THREADS" = "yes"; then
19677 cat >> confdefs.h <<\EOF
19678#define wxUSE_THREADS 1
19679EOF
19680
19681
19682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19683else
19684 if test "$ac_cv_func_strtok_r" = "yes"; then
19685 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19686echo "configure:19687: checking if -D_REENTRANT is needed" >&5
19687 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19688 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19689 echo "$ac_t""yes" 1>&6
19690 else
19691 echo "$ac_t""no" 1>&6
19692 fi
19693 fi
19694fi
19695
19696if test "$WXGTK20" = 1 ; then
19697 cat >> confdefs.h <<EOF
19698#define __WXGTK20__ $WXGTK20
19699EOF
19700
19701 WXGTK12=1
19702fi
19703
19704if test "$WXGTK12" = 1 ; then
19705 cat >> confdefs.h <<EOF
19706#define __WXGTK12__ $WXGTK12
19707EOF
19708
19709fi
19710
19711if test "$WXGTK127" = 1 ; then
19712 cat >> confdefs.h <<EOF
19713#define __WXGTK127__ $WXGTK127
19714EOF
19715
19716fi
19717
19718WXDEBUG=
19719
19720if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19721 WXDEBUG="-g"
19722 wxUSE_OPTIMISE=no
19723fi
19724
19725if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19726 wxUSE_DEBUG_INFO=yes
19727 WXDEBUG="-ggdb"
19728fi
19729
19730if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19731 cat >> confdefs.h <<\EOF
19732#define WXDEBUG 1
19733EOF
19734
19735 WXDEBUG_DEFINE="-D__WXDEBUG__"
19736else
19737 if test "$wxUSE_GTK" = 1 ; then
19738 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19739 fi
19740fi
19741
19742if test "$wxUSE_MEM_TRACING" = "yes" ; then
19743 cat >> confdefs.h <<\EOF
19744#define wxUSE_MEMORY_TRACING 1
19745EOF
19746
19747 cat >> confdefs.h <<\EOF
19748#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19749EOF
19750
19751 cat >> confdefs.h <<\EOF
19752#define wxUSE_DEBUG_NEW_ALWAYS 1
19753EOF
19754
19755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19756fi
19757
19758if test "$wxUSE_DMALLOC" = "yes" ; then
19759 DMALLOC_LIBS="-ldmalloc"
19760fi
19761
19762PROFILE=
19763if test "$wxUSE_PROFILE" = "yes" ; then
19764 PROFILE=" -pg"
19765fi
19766
19767CODE_GEN_FLAGS=
19768CODE_GEN_FLAGS_CXX=
19769if test "$GCC" = "yes" ; then
19770 if test "$wxUSE_NO_RTTI" = "yes" ; then
19771 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19772 fi
19773 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19774 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19775 fi
19776 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19777 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19778 fi
19779 if test "$USE_WIN32" = 1 ; then
19780 # I'm not even really sure what this was ever added to solve,
19781 # but someone added it for mingw native builds, so I guess
19782 # they had a reason, right??
19783 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19784 fi
19785
19786 case "${host}" in
19787 powerpc*-*-aix* )
19788 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19789 ;;
19790 *-hppa* )
19791 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19792 ;;
19793 esac
19794fi
19795
19796OPTIMISE=
19797if test "$wxUSE_OPTIMISE" = "no" ; then
19798 if test "$GCC" = yes ; then
19799 OPTIMISE="-O0"
19800 fi
19801else
19802 if test "$GCC" = yes ; then
19803 OPTIMISE="-O2"
19804
19805 case "${host}" in
19806 i586-*-*|i686-*-* )
19807 OPTIMISE="${OPTIMISE} "
19808 ;;
19809 esac
19810 else
19811 OPTIMISE="-O"
19812 fi
19813fi
19814
19815
19816if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19817 cat >> confdefs.h <<\EOF
19818#define WXWIN_COMPATIBILITY_2 1
19819EOF
19820
19821
19822 WXWIN_COMPATIBILITY_2_2="yes"
19823fi
19824
19825if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19826 cat >> confdefs.h <<\EOF
19827#define WXWIN_COMPATIBILITY_2_2 1
19828EOF
19829
19830
19831 WXWIN_COMPATIBILITY_2_4="yes"
19832fi
19833
19834if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19835 cat >> confdefs.h <<\EOF
19836#define WXWIN_COMPATIBILITY_2_4 1
19837EOF
19838
19839fi
19840
19841
19842if test "$wxUSE_GUI" = "yes"; then
19843 cat >> confdefs.h <<\EOF
19844#define wxUSE_GUI 1
19845EOF
19846
19847
19848 else
19849 cat >> confdefs.h <<\EOF
19850#define wxUSE_NOGUI 1
19851EOF
19852
19853fi
19854
19855
19856if test "$wxUSE_UNIX" = "yes"; then
19857 cat >> confdefs.h <<\EOF
19858#define wxUSE_UNIX 1
19859EOF
19860
19861fi
19862
19863
19864if test "$wxUSE_APPLE_IEEE" = "yes"; then
19865 cat >> confdefs.h <<\EOF
19866#define wxUSE_APPLE_IEEE 1
19867EOF
19868
19869fi
19870
19871if test "$wxUSE_TIMER" = "yes"; then
19872 cat >> confdefs.h <<\EOF
19873#define wxUSE_TIMER 1
19874EOF
19875
19876fi
19877
19878if test "$wxUSE_WAVE" = "yes"; then
19879 cat >> confdefs.h <<\EOF
19880#define wxUSE_WAVE 1
19881EOF
19882
19883fi
19884
19885if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19886 cat >> confdefs.h <<\EOF
19887#define wxUSE_CMDLINE_PARSER 1
19888EOF
19889
19890fi
19891
19892if test "$wxUSE_STOPWATCH" = "yes"; then
19893 cat >> confdefs.h <<\EOF
19894#define wxUSE_STOPWATCH 1
19895EOF
19896
19897fi
19898
19899if test "$wxUSE_DATETIME" = "yes"; then
19900 cat >> confdefs.h <<\EOF
19901#define wxUSE_DATETIME 1
19902EOF
19903
19904fi
19905
19906if test "$wxUSE_FILE" = "yes"; then
19907 cat >> confdefs.h <<\EOF
19908#define wxUSE_FILE 1
19909EOF
19910
19911fi
19912
19913if test "$wxUSE_FFILE" = "yes"; then
19914 cat >> confdefs.h <<\EOF
19915#define wxUSE_FFILE 1
19916EOF
19917
19918fi
19919
19920if test "$wxUSE_FILESYSTEM" = "yes"; then
19921 cat >> confdefs.h <<\EOF
19922#define wxUSE_FILESYSTEM 1
19923EOF
19924
19925fi
19926
19927if test "$wxUSE_FS_INET" = "yes"; then
19928 cat >> confdefs.h <<\EOF
19929#define wxUSE_FS_INET 1
19930EOF
19931
19932fi
19933
19934if test "$wxUSE_FS_ZIP" = "yes"; then
19935 cat >> confdefs.h <<\EOF
19936#define wxUSE_FS_ZIP 1
19937EOF
19938
19939fi
19940
19941if test "$wxUSE_ZIPSTREAM" = "yes"; then
19942 cat >> confdefs.h <<\EOF
19943#define wxUSE_ZIPSTREAM 1
19944EOF
19945
19946fi
19947
19948if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19949 cat >> confdefs.h <<\EOF
19950#define wxUSE_ON_FATAL_EXCEPTION 1
19951EOF
19952
19953fi
19954
19955if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19956 cat >> confdefs.h <<\EOF
19957#define wxUSE_SNGLINST_CHECKER 1
19958EOF
19959
19960fi
19961
19962if test "$wxUSE_BUSYINFO" = "yes"; then
19963 cat >> confdefs.h <<\EOF
19964#define wxUSE_BUSYINFO 1
19965EOF
19966
19967fi
19968
19969if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19970 cat >> confdefs.h <<\EOF
19971#define wxUSE_STD_IOSTREAM 1
19972EOF
19973
19974fi
19975
19976if test "$wxUSE_TEXTBUFFER" = "yes"; then
19977 cat >> confdefs.h <<\EOF
19978#define wxUSE_TEXTBUFFER 1
19979EOF
19980
19981fi
19982
19983if test "$wxUSE_TEXTFILE" = "yes"; then
19984 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19985 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19986 else
19987 cat >> confdefs.h <<\EOF
19988#define wxUSE_TEXTFILE 1
19989EOF
19990
19991 fi
19992fi
19993
19994if test "$wxUSE_CONFIG" = "yes" ; then
19995 if test "$wxUSE_TEXTFILE" != "yes"; then
19996 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19997 else
19998 cat >> confdefs.h <<\EOF
19999#define wxUSE_CONFIG 1
20000EOF
20001
20002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20003 fi
20004fi
20005
20006if test "$wxUSE_INTL" = "yes" ; then
20007 if test "$wxUSE_FILE" != "yes"; then
20008 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
20009 else
20010 cat >> confdefs.h <<\EOF
20011#define wxUSE_INTL 1
20012EOF
20013
20014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
20015 GUIDIST="$GUIDIST INTL_DIST"
20016 fi
20017fi
20018
20019if test "$wxUSE_LOG" = "yes"; then
20020 cat >> confdefs.h <<\EOF
20021#define wxUSE_LOG 1
20022EOF
20023
20024
20025 if test "$wxUSE_LOGGUI" = "yes"; then
20026 cat >> confdefs.h <<\EOF
20027#define wxUSE_LOGGUI 1
20028EOF
20029
20030 fi
20031
20032 if test "$wxUSE_LOGWINDOW" = "yes"; then
20033 cat >> confdefs.h <<\EOF
20034#define wxUSE_LOGWINDOW 1
20035EOF
20036
20037 fi
20038
20039 if test "$wxUSE_LOGDIALOG" = "yes"; then
20040 cat >> confdefs.h <<\EOF
20041#define wxUSE_LOG_DIALOG 1
20042EOF
20043
20044 fi
20045fi
20046
20047if test "$wxUSE_LONGLONG" = "yes"; then
20048 cat >> confdefs.h <<\EOF
20049#define wxUSE_LONGLONG 1
20050EOF
20051
20052fi
20053
20054if test "$wxUSE_GEOMETRY" = "yes"; then
20055 cat >> confdefs.h <<\EOF
20056#define wxUSE_GEOMETRY 1
20057EOF
20058
20059fi
20060
20061if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
20062 cat >> confdefs.h <<\EOF
20063#define wxUSE_DIALUP_MANAGER 1
20064EOF
20065
20066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
20067fi
20068
20069if test "$wxUSE_STREAMS" = "yes" ; then
20070 cat >> confdefs.h <<\EOF
20071#define wxUSE_STREAMS 1
20072EOF
20073
20074fi
20075
20076
20077if test "$wxUSE_DATETIME" = "yes"; then
20078 for ac_func in strptime
20079do
20080echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20081echo "configure:20082: checking for $ac_func" >&5
20082if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20083 echo $ac_n "(cached) $ac_c" 1>&6
20084else
20085 cat > conftest.$ac_ext <<EOF
20086#line 20087 "configure"
20087#include "confdefs.h"
20088/* System header to define __stub macros and hopefully few prototypes,
20089 which can conflict with char $ac_func(); below. */
20090#include <assert.h>
20091/* Override any gcc2 internal prototype to avoid an error. */
20092/* We use char because int might match the return type of a gcc2
20093 builtin and then its argument prototype would still apply. */
20094char $ac_func();
20095
20096int main() {
20097
20098/* The GNU C library defines this for functions which it implements
20099 to always fail with ENOSYS. Some functions are actually named
20100 something starting with __ and the normal name is an alias. */
20101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20102choke me
20103#else
20104$ac_func();
20105#endif
20106
20107; return 0; }
20108EOF
20109if { (eval echo configure:20110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20110 rm -rf conftest*
20111 eval "ac_cv_func_$ac_func=yes"
20112else
20113 echo "configure: failed program was:" >&5
20114 cat conftest.$ac_ext >&5
20115 rm -rf conftest*
20116 eval "ac_cv_func_$ac_func=no"
20117fi
20118rm -f conftest*
20119fi
20120
20121if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20122 echo "$ac_t""yes" 1>&6
20123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20124 cat >> confdefs.h <<EOF
20125#define $ac_tr_func 1
20126EOF
20127
20128else
20129 echo "$ac_t""no" 1>&6
20130fi
20131done
20132
20133
20134 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
20135echo "configure:20136: checking for timezone variable in <time.h>" >&5
20136if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20137 echo $ac_n "(cached) $ac_c" 1>&6
20138else
20139
20140 cat > conftest.$ac_ext <<EOF
20141#line 20142 "configure"
20142#include "confdefs.h"
20143
20144 #include <time.h>
20145
20146int main() {
20147
20148 int tz;
20149 tz = timezone;
20150
20151; return 0; }
20152EOF
20153if { (eval echo configure:20154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20154 rm -rf conftest*
20155
20156 wx_cv_var_timezone=timezone
20157
20158else
20159 echo "configure: failed program was:" >&5
20160 cat conftest.$ac_ext >&5
20161 rm -rf conftest*
20162
20163 cat > conftest.$ac_ext <<EOF
20164#line 20165 "configure"
20165#include "confdefs.h"
20166
20167 #include <time.h>
20168
20169int main() {
20170
20171 int tz;
20172 tz = _timezone;
20173
20174; return 0; }
20175EOF
20176if { (eval echo configure:20177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20177 rm -rf conftest*
20178
20179 wx_cv_var_timezone=_timezone
20180
20181else
20182 echo "configure: failed program was:" >&5
20183 cat conftest.$ac_ext >&5
20184 rm -rf conftest*
20185
20186 cat > conftest.$ac_ext <<EOF
20187#line 20188 "configure"
20188#include "confdefs.h"
20189
20190 #include <time.h>
20191
20192int main() {
20193
20194 int tz;
20195 tz = __timezone;
20196
20197; return 0; }
20198EOF
20199if { (eval echo configure:20200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20200 rm -rf conftest*
20201
20202 wx_cv_var_timezone=__timezone
20203
20204else
20205 echo "configure: failed program was:" >&5
20206 cat conftest.$ac_ext >&5
20207 rm -rf conftest*
20208
20209 if test "$USE_DOS" = 0 ; then
20210 echo "configure: warning: no timezone variable" 1>&2
20211 fi
20212
20213
20214fi
20215rm -f conftest*
20216
20217
20218fi
20219rm -f conftest*
20220
20221
20222fi
20223rm -f conftest*
20224
20225
20226fi
20227
20228echo "$ac_t""$wx_cv_var_timezone" 1>&6
20229
20230 if test "x$wx_cv_var_timezone" != x ; then
20231 cat >> confdefs.h <<EOF
20232#define WX_TIMEZONE $wx_cv_var_timezone
20233EOF
20234
20235 fi
20236
20237 for ac_func in localtime
20238do
20239echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20240echo "configure:20241: checking for $ac_func" >&5
20241if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20242 echo $ac_n "(cached) $ac_c" 1>&6
20243else
20244 cat > conftest.$ac_ext <<EOF
20245#line 20246 "configure"
20246#include "confdefs.h"
20247/* System header to define __stub macros and hopefully few prototypes,
20248 which can conflict with char $ac_func(); below. */
20249#include <assert.h>
20250/* Override any gcc2 internal prototype to avoid an error. */
20251/* We use char because int might match the return type of a gcc2
20252 builtin and then its argument prototype would still apply. */
20253char $ac_func();
20254
20255int main() {
20256
20257/* The GNU C library defines this for functions which it implements
20258 to always fail with ENOSYS. Some functions are actually named
20259 something starting with __ and the normal name is an alias. */
20260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20261choke me
20262#else
20263$ac_func();
20264#endif
20265
20266; return 0; }
20267EOF
20268if { (eval echo configure:20269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20269 rm -rf conftest*
20270 eval "ac_cv_func_$ac_func=yes"
20271else
20272 echo "configure: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20274 rm -rf conftest*
20275 eval "ac_cv_func_$ac_func=no"
20276fi
20277rm -f conftest*
20278fi
20279
20280if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20281 echo "$ac_t""yes" 1>&6
20282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20283 cat >> confdefs.h <<EOF
20284#define $ac_tr_func 1
20285EOF
20286
20287else
20288 echo "$ac_t""no" 1>&6
20289fi
20290done
20291
20292
20293 if test "$ac_cv_func_localtime" = "yes"; then
20294 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20295echo "configure:20296: checking for tm_gmtoff in struct tm" >&5
20296if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20297 echo $ac_n "(cached) $ac_c" 1>&6
20298else
20299
20300 cat > conftest.$ac_ext <<EOF
20301#line 20302 "configure"
20302#include "confdefs.h"
20303
20304 #include <time.h>
20305
20306int main() {
20307
20308 struct tm tm;
20309 tm.tm_gmtoff++;
20310
20311; return 0; }
20312EOF
20313if { (eval echo configure:20314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20314 rm -rf conftest*
20315
20316 wx_cv_struct_tm_has_gmtoff=yes
20317
20318else
20319 echo "configure: failed program was:" >&5
20320 cat conftest.$ac_ext >&5
20321 rm -rf conftest*
20322 wx_cv_struct_tm_has_gmtoff=no
20323
20324fi
20325rm -f conftest*
20326
20327fi
20328
20329echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20330 fi
20331
20332 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20333 cat >> confdefs.h <<\EOF
20334#define WX_GMTOFF_IN_TM 1
20335EOF
20336
20337 fi
20338
20339 for ac_func in gettimeofday ftime
20340do
20341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20342echo "configure:20343: checking for $ac_func" >&5
20343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20344 echo $ac_n "(cached) $ac_c" 1>&6
20345else
20346 cat > conftest.$ac_ext <<EOF
20347#line 20348 "configure"
20348#include "confdefs.h"
20349/* System header to define __stub macros and hopefully few prototypes,
20350 which can conflict with char $ac_func(); below. */
20351#include <assert.h>
20352/* Override any gcc2 internal prototype to avoid an error. */
20353/* We use char because int might match the return type of a gcc2
20354 builtin and then its argument prototype would still apply. */
20355char $ac_func();
20356
20357int main() {
20358
20359/* The GNU C library defines this for functions which it implements
20360 to always fail with ENOSYS. Some functions are actually named
20361 something starting with __ and the normal name is an alias. */
20362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20363choke me
20364#else
20365$ac_func();
20366#endif
20367
20368; return 0; }
20369EOF
20370if { (eval echo configure:20371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20371 rm -rf conftest*
20372 eval "ac_cv_func_$ac_func=yes"
20373else
20374 echo "configure: failed program was:" >&5
20375 cat conftest.$ac_ext >&5
20376 rm -rf conftest*
20377 eval "ac_cv_func_$ac_func=no"
20378fi
20379rm -f conftest*
20380fi
20381
20382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20383 echo "$ac_t""yes" 1>&6
20384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20385 cat >> confdefs.h <<EOF
20386#define $ac_tr_func 1
20387EOF
20388 break
20389else
20390 echo "$ac_t""no" 1>&6
20391fi
20392done
20393
20394
20395 if test "$ac_cv_func_gettimeofday" = "yes"; then
20396 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20397echo "configure:20398: checking whether gettimeofday takes two arguments" >&5
20398if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20399 echo $ac_n "(cached) $ac_c" 1>&6
20400else
20401
20402
20403 ac_ext=C
20404# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20405ac_cpp='$CXXCPP $CPPFLAGS'
20406ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20407ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20408cross_compiling=$ac_cv_prog_cxx_cross
20409
20410
20411 cat > conftest.$ac_ext <<EOF
20412#line 20413 "configure"
20413#include "confdefs.h"
20414
20415 #include <sys/time.h>
20416 #include <unistd.h>
20417
20418int main() {
20419
20420 struct timeval tv;
20421 gettimeofday(&tv, NULL);
20422
20423; return 0; }
20424EOF
20425if { (eval echo configure:20426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20426 rm -rf conftest*
20427 wx_cv_func_gettimeofday_has_2_args=yes
20428else
20429 echo "configure: failed program was:" >&5
20430 cat conftest.$ac_ext >&5
20431 rm -rf conftest*
20432 cat > conftest.$ac_ext <<EOF
20433#line 20434 "configure"
20434#include "confdefs.h"
20435
20436 #include <sys/time.h>
20437 #include <unistd.h>
20438
20439int main() {
20440
20441 struct timeval tv;
20442 gettimeofday(&tv);
20443
20444; return 0; }
20445EOF
20446if { (eval echo configure:20447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20447 rm -rf conftest*
20448 wx_cv_func_gettimeofday_has_2_args=no
20449else
20450 echo "configure: failed program was:" >&5
20451 cat conftest.$ac_ext >&5
20452 rm -rf conftest*
20453
20454 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20455 wx_cv_func_gettimeofday_has_2_args=unknown
20456
20457
20458fi
20459rm -f conftest*
20460
20461fi
20462rm -f conftest*
20463 ac_ext=c
20464# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20465ac_cpp='$CPP $CPPFLAGS'
20466ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20467ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20468cross_compiling=$ac_cv_prog_cc_cross
20469
20470
20471fi
20472
20473echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20474
20475 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20476 cat >> confdefs.h <<\EOF
20477#define WX_GETTIMEOFDAY_NO_TZ 1
20478EOF
20479
20480 fi
20481 fi
20482
20483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20484fi
20485
20486
20487if test "$wxUSE_SOCKETS" = "yes"; then
20488 if test "$wxUSE_MGL" = "1"; then
20489 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20490 wxUSE_SOCKETS="no"
20491 fi
20492fi
20493
20494if test "$wxUSE_SOCKETS" = "yes"; then
20495 if test "$TOOLKIT" != "MSW"; then
20496 echo $ac_n "checking for socket""... $ac_c" 1>&6
20497echo "configure:20498: checking for socket" >&5
20498if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20499 echo $ac_n "(cached) $ac_c" 1>&6
20500else
20501 cat > conftest.$ac_ext <<EOF
20502#line 20503 "configure"
20503#include "confdefs.h"
20504/* System header to define __stub macros and hopefully few prototypes,
20505 which can conflict with char socket(); below. */
20506#include <assert.h>
20507/* Override any gcc2 internal prototype to avoid an error. */
20508/* We use char because int might match the return type of a gcc2
20509 builtin and then its argument prototype would still apply. */
20510char socket();
20511
20512int main() {
20513
20514/* The GNU C library defines this for functions which it implements
20515 to always fail with ENOSYS. Some functions are actually named
20516 something starting with __ and the normal name is an alias. */
20517#if defined (__stub_socket) || defined (__stub___socket)
20518choke me
20519#else
20520socket();
20521#endif
20522
20523; return 0; }
20524EOF
20525if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20526 rm -rf conftest*
20527 eval "ac_cv_func_socket=yes"
20528else
20529 echo "configure: failed program was:" >&5
20530 cat conftest.$ac_ext >&5
20531 rm -rf conftest*
20532 eval "ac_cv_func_socket=no"
20533fi
20534rm -f conftest*
20535fi
20536
20537if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20538 echo "$ac_t""yes" 1>&6
20539 :
20540else
20541 echo "$ac_t""no" 1>&6
20542echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20543echo "configure:20544: checking for socket in -lsocket" >&5
20544ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20545if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20546 echo $ac_n "(cached) $ac_c" 1>&6
20547else
20548 ac_save_LIBS="$LIBS"
20549LIBS="-lsocket $LIBS"
20550cat > conftest.$ac_ext <<EOF
20551#line 20552 "configure"
20552#include "confdefs.h"
20553/* Override any gcc2 internal prototype to avoid an error. */
20554/* We use char because int might match the return type of a gcc2
20555 builtin and then its argument prototype would still apply. */
20556char socket();
20557
20558int main() {
20559socket()
20560; return 0; }
20561EOF
20562if { (eval echo configure:20563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20563 rm -rf conftest*
20564 eval "ac_cv_lib_$ac_lib_var=yes"
20565else
20566 echo "configure: failed program was:" >&5
20567 cat conftest.$ac_ext >&5
20568 rm -rf conftest*
20569 eval "ac_cv_lib_$ac_lib_var=no"
20570fi
20571rm -f conftest*
20572LIBS="$ac_save_LIBS"
20573
20574fi
20575if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20576 echo "$ac_t""yes" 1>&6
20577 if test "$INET_LINK" != " -lsocket"; then
20578 INET_LINK="$INET_LINK -lsocket"
20579 fi
20580else
20581 echo "$ac_t""no" 1>&6
20582
20583 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20584 wxUSE_SOCKETS=no
20585
20586
20587fi
20588
20589
20590fi
20591
20592 fi
20593fi
20594
20595if test "$wxUSE_SOCKETS" = "yes" ; then
20596 if test "$TOOLKIT" != "MSW"; then
20597 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20598echo "configure:20599: checking what is the type of the third argument of getsockname" >&5
20599if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20600 echo $ac_n "(cached) $ac_c" 1>&6
20601else
20602
20603 cat > conftest.$ac_ext <<EOF
20604#line 20605 "configure"
20605#include "confdefs.h"
20606
20607 #include <sys/types.h>
20608 #include <sys/socket.h>
20609
20610int main() {
20611
20612 socklen_t len;
20613 getsockname(0, 0, &len);
20614
20615; return 0; }
20616EOF
20617if { (eval echo configure:20618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20618 rm -rf conftest*
20619 wx_cv_type_getsockname3=socklen_t
20620else
20621 echo "configure: failed program was:" >&5
20622 cat conftest.$ac_ext >&5
20623 rm -rf conftest*
20624
20625 CFLAGS_OLD="$CFLAGS"
20626 if test "$GCC" = yes ; then
20627 CFLAGS="$CFLAGS -Werror"
20628 fi
20629
20630 cat > conftest.$ac_ext <<EOF
20631#line 20632 "configure"
20632#include "confdefs.h"
20633
20634 #include <sys/types.h>
20635 #include <sys/socket.h>
20636
20637int main() {
20638
20639 size_t len;
20640 getsockname(0, 0, &len);
20641
20642; return 0; }
20643EOF
20644if { (eval echo configure:20645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20645 rm -rf conftest*
20646 wx_cv_type_getsockname3=size_t
20647else
20648 echo "configure: failed program was:" >&5
20649 cat conftest.$ac_ext >&5
20650 rm -rf conftest*
20651 cat > conftest.$ac_ext <<EOF
20652#line 20653 "configure"
20653#include "confdefs.h"
20654
20655 #include <sys/types.h>
20656 #include <sys/socket.h>
20657
20658int main() {
20659
20660 int len;
20661 getsockname(0, 0, &len);
20662
20663; return 0; }
20664EOF
20665if { (eval echo configure:20666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20666 rm -rf conftest*
20667 wx_cv_type_getsockname3=int
20668else
20669 echo "configure: failed program was:" >&5
20670 cat conftest.$ac_ext >&5
20671 rm -rf conftest*
20672 wx_cv_type_getsockname3=unknown
20673
20674fi
20675rm -f conftest*
20676
20677fi
20678rm -f conftest*
20679
20680 CFLAGS="$CFLAGS_OLD"
20681
20682
20683fi
20684rm -f conftest*
20685
20686fi
20687
20688echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20689
20690 if test "$wx_cv_type_getsockname3" = "unknown"; then
20691 wxUSE_SOCKETS=no
20692 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20693 else
20694 cat >> confdefs.h <<EOF
20695#define SOCKLEN_T $wx_cv_type_getsockname3
20696EOF
20697
20698 fi
20699 fi
20700fi
20701
20702if test "$wxUSE_SOCKETS" = "yes" ; then
20703 cat >> confdefs.h <<\EOF
20704#define wxUSE_SOCKETS 1
20705EOF
20706
20707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20708fi
20709
20710
20711if test "$wxUSE_GUI" = "yes"; then
20712
20713 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20714 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20715 wxUSE_JOYSTICK=no
20716 fi
20717 if test "$TOOLKIT" = "MOTIF"; then
20718 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20719 wxUSE_JOYSTICK=no
20720 fi
20721 if test "$TOOLKIT" = "X11"; then
20722 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20723 wxUSE_JOYSTICK=no
20724 fi
20725
20726 if test "$TOOLKIT" != "MSW"; then
20727 if test "$wxUSE_JOYSTICK" = "yes"; then
20728 for ac_hdr in linux/joystick.h
20729do
20730ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20731echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20732echo "configure:20733: checking for $ac_hdr" >&5
20733if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20734 echo $ac_n "(cached) $ac_c" 1>&6
20735else
20736 cat > conftest.$ac_ext <<EOF
20737#line 20738 "configure"
20738#include "confdefs.h"
20739#include <$ac_hdr>
20740EOF
20741ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20742{ (eval echo configure:20743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20743ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20744if test -z "$ac_err"; then
20745 rm -rf conftest*
20746 eval "ac_cv_header_$ac_safe=yes"
20747else
20748 echo "$ac_err" >&5
20749 echo "configure: failed program was:" >&5
20750 cat conftest.$ac_ext >&5
20751 rm -rf conftest*
20752 eval "ac_cv_header_$ac_safe=no"
20753fi
20754rm -f conftest*
20755fi
20756if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20757 echo "$ac_t""yes" 1>&6
20758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20759 cat >> confdefs.h <<EOF
20760#define $ac_tr_hdr 1
20761EOF
20762
20763else
20764 echo "$ac_t""no" 1>&6
20765fi
20766done
20767
20768 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20769 wxUSE_JOYSTICK=no
20770 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20771 fi
20772 fi
20773 fi
20774
20775 if test "$wxUSE_JOYSTICK" = "yes"; then
20776 cat >> confdefs.h <<\EOF
20777#define wxUSE_JOYSTICK 1
20778EOF
20779
20780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20781 fi
20782fi
20783
20784
20785if test "$TOOLKIT" != "MSW"; then
20786
20787 HAVE_DL_FUNCS=0
20788 HAVE_SHL_FUNCS=0
20789 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20790 if test "$USE_DARWIN" = 1; then
20791 HAVE_DL_FUNCS=1
20792 else
20793 for ac_func in dlopen
20794do
20795echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20796echo "configure:20797: checking for $ac_func" >&5
20797if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20798 echo $ac_n "(cached) $ac_c" 1>&6
20799else
20800 cat > conftest.$ac_ext <<EOF
20801#line 20802 "configure"
20802#include "confdefs.h"
20803/* System header to define __stub macros and hopefully few prototypes,
20804 which can conflict with char $ac_func(); below. */
20805#include <assert.h>
20806/* Override any gcc2 internal prototype to avoid an error. */
20807/* We use char because int might match the return type of a gcc2
20808 builtin and then its argument prototype would still apply. */
20809char $ac_func();
20810
20811int main() {
20812
20813/* The GNU C library defines this for functions which it implements
20814 to always fail with ENOSYS. Some functions are actually named
20815 something starting with __ and the normal name is an alias. */
20816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20817choke me
20818#else
20819$ac_func();
20820#endif
20821
20822; return 0; }
20823EOF
20824if { (eval echo configure:20825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20825 rm -rf conftest*
20826 eval "ac_cv_func_$ac_func=yes"
20827else
20828 echo "configure: failed program was:" >&5
20829 cat conftest.$ac_ext >&5
20830 rm -rf conftest*
20831 eval "ac_cv_func_$ac_func=no"
20832fi
20833rm -f conftest*
20834fi
20835
20836if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20837 echo "$ac_t""yes" 1>&6
20838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20839 cat >> confdefs.h <<EOF
20840#define $ac_tr_func 1
20841EOF
20842
20843 cat >> confdefs.h <<\EOF
20844#define HAVE_DLOPEN 1
20845EOF
20846
20847 HAVE_DL_FUNCS=1
20848
20849else
20850 echo "$ac_t""no" 1>&6
20851echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20852echo "configure:20853: checking for dlopen in -ldl" >&5
20853ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20854if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20855 echo $ac_n "(cached) $ac_c" 1>&6
20856else
20857 ac_save_LIBS="$LIBS"
20858LIBS="-ldl $LIBS"
20859cat > conftest.$ac_ext <<EOF
20860#line 20861 "configure"
20861#include "confdefs.h"
20862/* Override any gcc2 internal prototype to avoid an error. */
20863/* We use char because int might match the return type of a gcc2
20864 builtin and then its argument prototype would still apply. */
20865char dlopen();
20866
20867int main() {
20868dlopen()
20869; return 0; }
20870EOF
20871if { (eval echo configure:20872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20872 rm -rf conftest*
20873 eval "ac_cv_lib_$ac_lib_var=yes"
20874else
20875 echo "configure: failed program was:" >&5
20876 cat conftest.$ac_ext >&5
20877 rm -rf conftest*
20878 eval "ac_cv_lib_$ac_lib_var=no"
20879fi
20880rm -f conftest*
20881LIBS="$ac_save_LIBS"
20882
20883fi
20884if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20885 echo "$ac_t""yes" 1>&6
20886
20887 cat >> confdefs.h <<\EOF
20888#define HAVE_DLOPEN 1
20889EOF
20890
20891 HAVE_DL_FUNCS=1
20892 DL_LINK=" -ldl$DL_LINK"
20893
20894else
20895 echo "$ac_t""no" 1>&6
20896
20897 for ac_func in shl_load
20898do
20899echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20900echo "configure:20901: checking for $ac_func" >&5
20901if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20902 echo $ac_n "(cached) $ac_c" 1>&6
20903else
20904 cat > conftest.$ac_ext <<EOF
20905#line 20906 "configure"
20906#include "confdefs.h"
20907/* System header to define __stub macros and hopefully few prototypes,
20908 which can conflict with char $ac_func(); below. */
20909#include <assert.h>
20910/* Override any gcc2 internal prototype to avoid an error. */
20911/* We use char because int might match the return type of a gcc2
20912 builtin and then its argument prototype would still apply. */
20913char $ac_func();
20914
20915int main() {
20916
20917/* The GNU C library defines this for functions which it implements
20918 to always fail with ENOSYS. Some functions are actually named
20919 something starting with __ and the normal name is an alias. */
20920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20921choke me
20922#else
20923$ac_func();
20924#endif
20925
20926; return 0; }
20927EOF
20928if { (eval echo configure:20929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20929 rm -rf conftest*
20930 eval "ac_cv_func_$ac_func=yes"
20931else
20932 echo "configure: failed program was:" >&5
20933 cat conftest.$ac_ext >&5
20934 rm -rf conftest*
20935 eval "ac_cv_func_$ac_func=no"
20936fi
20937rm -f conftest*
20938fi
20939
20940if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20941 echo "$ac_t""yes" 1>&6
20942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20943 cat >> confdefs.h <<EOF
20944#define $ac_tr_func 1
20945EOF
20946
20947 cat >> confdefs.h <<\EOF
20948#define HAVE_SHL_LOAD 1
20949EOF
20950
20951 HAVE_SHL_FUNCS=1
20952
20953else
20954 echo "$ac_t""no" 1>&6
20955echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20956echo "configure:20957: checking for dld in -lshl_load" >&5
20957ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20959 echo $ac_n "(cached) $ac_c" 1>&6
20960else
20961 ac_save_LIBS="$LIBS"
20962LIBS="-lshl_load $LIBS"
20963cat > conftest.$ac_ext <<EOF
20964#line 20965 "configure"
20965#include "confdefs.h"
20966/* Override any gcc2 internal prototype to avoid an error. */
20967/* We use char because int might match the return type of a gcc2
20968 builtin and then its argument prototype would still apply. */
20969char dld();
20970
20971int main() {
20972dld()
20973; return 0; }
20974EOF
20975if { (eval echo configure:20976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20976 rm -rf conftest*
20977 eval "ac_cv_lib_$ac_lib_var=yes"
20978else
20979 echo "configure: failed program was:" >&5
20980 cat conftest.$ac_ext >&5
20981 rm -rf conftest*
20982 eval "ac_cv_lib_$ac_lib_var=no"
20983fi
20984rm -f conftest*
20985LIBS="$ac_save_LIBS"
20986
20987fi
20988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20989 echo "$ac_t""yes" 1>&6
20990
20991 HAVE_SHL_FUNCS=1
20992 DL_LINK=" -ldld$DL_LINK"
20993
20994else
20995 echo "$ac_t""no" 1>&6
20996fi
20997
20998
20999fi
21000done
21001
21002
21003fi
21004
21005
21006fi
21007done
21008
21009
21010 if test "$HAVE_DL_FUNCS" = 1; then
21011 for ac_func in dlerror
21012do
21013echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21014echo "configure:21015: checking for $ac_func" >&5
21015if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21016 echo $ac_n "(cached) $ac_c" 1>&6
21017else
21018 cat > conftest.$ac_ext <<EOF
21019#line 21020 "configure"
21020#include "confdefs.h"
21021/* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char $ac_func(); below. */
21023#include <assert.h>
21024/* Override any gcc2 internal prototype to avoid an error. */
21025/* We use char because int might match the return type of a gcc2
21026 builtin and then its argument prototype would still apply. */
21027char $ac_func();
21028
21029int main() {
21030
21031/* The GNU C library defines this for functions which it implements
21032 to always fail with ENOSYS. Some functions are actually named
21033 something starting with __ and the normal name is an alias. */
21034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21035choke me
21036#else
21037$ac_func();
21038#endif
21039
21040; return 0; }
21041EOF
21042if { (eval echo configure:21043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21043 rm -rf conftest*
21044 eval "ac_cv_func_$ac_func=yes"
21045else
21046 echo "configure: failed program was:" >&5
21047 cat conftest.$ac_ext >&5
21048 rm -rf conftest*
21049 eval "ac_cv_func_$ac_func=no"
21050fi
21051rm -f conftest*
21052fi
21053
21054if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21055 echo "$ac_t""yes" 1>&6
21056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21057 cat >> confdefs.h <<EOF
21058#define $ac_tr_func 1
21059EOF
21060 cat >> confdefs.h <<\EOF
21061#define HAVE_DLERROR 1
21062EOF
21063
21064else
21065 echo "$ac_t""no" 1>&6
21066echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
21067echo "configure:21068: checking for dlerror in -ldl" >&5
21068ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21069if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21070 echo $ac_n "(cached) $ac_c" 1>&6
21071else
21072 ac_save_LIBS="$LIBS"
21073LIBS="-ldl $LIBS"
21074cat > conftest.$ac_ext <<EOF
21075#line 21076 "configure"
21076#include "confdefs.h"
21077/* Override any gcc2 internal prototype to avoid an error. */
21078/* We use char because int might match the return type of a gcc2
21079 builtin and then its argument prototype would still apply. */
21080char dlerror();
21081
21082int main() {
21083dlerror()
21084; return 0; }
21085EOF
21086if { (eval echo configure:21087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21087 rm -rf conftest*
21088 eval "ac_cv_lib_$ac_lib_var=yes"
21089else
21090 echo "configure: failed program was:" >&5
21091 cat conftest.$ac_ext >&5
21092 rm -rf conftest*
21093 eval "ac_cv_lib_$ac_lib_var=no"
21094fi
21095rm -f conftest*
21096LIBS="$ac_save_LIBS"
21097
21098fi
21099if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21100 echo "$ac_t""yes" 1>&6
21101 cat >> confdefs.h <<\EOF
21102#define HAVE_DLERROR 1
21103EOF
21104
21105else
21106 echo "$ac_t""no" 1>&6
21107fi
21108
21109fi
21110done
21111
21112 fi
21113 fi
21114
21115 if test "$HAVE_DL_FUNCS" = 0; then
21116 if test "$HAVE_SHL_FUNCS" = 0; then
21117 if test "$USE_UNIX" = 1; then
21118 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
21119 wxUSE_DYNAMIC_LOADER=no
21120 wxUSE_DYNLIB_CLASS=no
21121 else
21122 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
21123 fi
21124 fi
21125 fi
21126 fi
21127fi
21128
21129if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
21130 cat >> confdefs.h <<\EOF
21131#define wxUSE_DYNAMIC_LOADER 1
21132EOF
21133
21134elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
21135 cat >> confdefs.h <<\EOF
21136#define wxUSE_DYNLIB_CLASS 1
21137EOF
21138
21139fi
21140
21141
21142if test "$wxUSE_FONTMAP" = "yes" ; then
21143 cat >> confdefs.h <<\EOF
21144#define wxUSE_FONTMAP 1
21145EOF
21146
21147fi
21148
21149if test "$wxUSE_UNICODE" = "yes" ; then
21150 cat >> confdefs.h <<\EOF
21151#define wxUSE_UNICODE 1
21152EOF
21153
21154
21155 if test "$wxUSE_MSW" != 1; then
21156 wxUSE_UNICODE_MSLU=no
21157 fi
21158
21159 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
21160 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21161echo "configure:21162: checking for main in -lunicows" >&5
21162ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21164 echo $ac_n "(cached) $ac_c" 1>&6
21165else
21166 ac_save_LIBS="$LIBS"
21167LIBS="-lunicows $LIBS"
21168cat > conftest.$ac_ext <<EOF
21169#line 21170 "configure"
21170#include "confdefs.h"
21171
21172int main() {
21173main()
21174; return 0; }
21175EOF
21176if { (eval echo configure:21177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21177 rm -rf conftest*
21178 eval "ac_cv_lib_$ac_lib_var=yes"
21179else
21180 echo "configure: failed program was:" >&5
21181 cat conftest.$ac_ext >&5
21182 rm -rf conftest*
21183 eval "ac_cv_lib_$ac_lib_var=no"
21184fi
21185rm -f conftest*
21186LIBS="$ac_save_LIBS"
21187
21188fi
21189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21190 echo "$ac_t""yes" 1>&6
21191
21192 cat >> confdefs.h <<\EOF
21193#define wxUSE_UNICODE_MSLU 1
21194EOF
21195
21196
21197else
21198 echo "$ac_t""no" 1>&6
21199
21200 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21201 Applications will only run on Windows NT/2000/XP!" 1>&2
21202 wxUSE_UNICODE_MSLU=no
21203
21204fi
21205
21206 fi
21207fi
21208
21209if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21210 cat >> confdefs.h <<\EOF
21211#define wxUSE_EXPERIMENTAL_PRINTF 1
21212EOF
21213
21214fi
21215
21216
21217if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21218 cat >> confdefs.h <<\EOF
21219#define wxUSE_POSTSCRIPT 1
21220EOF
21221
21222fi
21223
21224cat >> confdefs.h <<\EOF
21225#define wxUSE_AFM_FOR_POSTSCRIPT 1
21226EOF
21227
21228
21229cat >> confdefs.h <<\EOF
21230#define wxUSE_NORMALIZED_PS_FONTS 1
21231EOF
21232
21233
21234
21235if test "$wxUSE_CONSTRAINTS" = "yes"; then
21236 cat >> confdefs.h <<\EOF
21237#define wxUSE_CONSTRAINTS 1
21238EOF
21239
21240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21241fi
21242
21243if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21244
21245
21246 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21247 cat >> confdefs.h <<\EOF
21248#define wxUSE_MDI_ARCHITECTURE 1
21249EOF
21250
21251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21252 fi
21253fi
21254
21255if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21256 cat >> confdefs.h <<\EOF
21257#define wxUSE_DOC_VIEW_ARCHITECTURE 1
21258EOF
21259
21260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21261 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21263 fi
21264fi
21265
21266if test "$wxUSE_HELP" = "yes"; then
21267 cat >> confdefs.h <<\EOF
21268#define wxUSE_HELP 1
21269EOF
21270
21271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21272
21273 if test "$wxUSE_MSW" = 1; then
21274 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21275 cat >> confdefs.h <<\EOF
21276#define wxUSE_MS_HTML_HELP 1
21277EOF
21278
21279 fi
21280 fi
21281
21282 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21283 if test "$wxUSE_HTML" = "yes"; then
21284 cat >> confdefs.h <<\EOF
21285#define wxUSE_WXHTML_HELP 1
21286EOF
21287
21288 else
21289 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21290 wxUSE_WXHTML_HELP=no
21291 fi
21292 fi
21293fi
21294
21295if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21296 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21297 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21298 else
21299 cat >> confdefs.h <<\EOF
21300#define wxUSE_PRINTING_ARCHITECTURE 1
21301EOF
21302
21303 fi
21304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21305fi
21306
21307if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
21308 { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; }
21309fi
21310
21311
21312if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21313 -o "$wxUSE_CLIPBOARD" = "yes" \
21314 -o "$wxUSE_OLE" = "yes" \
21315 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21316 for ac_hdr in ole2.h
21317do
21318ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21319echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21320echo "configure:21321: checking for $ac_hdr" >&5
21321if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21322 echo $ac_n "(cached) $ac_c" 1>&6
21323else
21324 cat > conftest.$ac_ext <<EOF
21325#line 21326 "configure"
21326#include "confdefs.h"
21327#include <$ac_hdr>
21328EOF
21329ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21330{ (eval echo configure:21331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21331ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21332if test -z "$ac_err"; then
21333 rm -rf conftest*
21334 eval "ac_cv_header_$ac_safe=yes"
21335else
21336 echo "$ac_err" >&5
21337 echo "configure: failed program was:" >&5
21338 cat conftest.$ac_ext >&5
21339 rm -rf conftest*
21340 eval "ac_cv_header_$ac_safe=no"
21341fi
21342rm -f conftest*
21343fi
21344if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21345 echo "$ac_t""yes" 1>&6
21346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21347 cat >> confdefs.h <<EOF
21348#define $ac_tr_hdr 1
21349EOF
21350
21351else
21352 echo "$ac_t""no" 1>&6
21353fi
21354done
21355
21356
21357 if test "$ac_cv_header_ole2_h" = "yes" ; then
21358 if test "$GCC" = yes ; then
21359
21360 ac_ext=C
21361# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21362ac_cpp='$CXXCPP $CPPFLAGS'
21363ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21364ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21365cross_compiling=$ac_cv_prog_cxx_cross
21366
21367
21368 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21369echo "configure:21370: checking if g++ requires -fvtable-thunks" >&5
21370 cat > conftest.$ac_ext <<EOF
21371#line 21372 "configure"
21372#include "confdefs.h"
21373#include <windows.h>
21374 #include <ole2.h>
21375int main() {
21376
21377; return 0; }
21378EOF
21379if { (eval echo configure:21380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21380 rm -rf conftest*
21381 echo "$ac_t""no" 1>&6
21382else
21383 echo "configure: failed program was:" >&5
21384 cat conftest.$ac_ext >&5
21385 rm -rf conftest*
21386 echo "$ac_t""yes" 1>&6
21387 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21388fi
21389rm -f conftest*
21390 ac_ext=c
21391# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21392ac_cpp='$CPP $CPPFLAGS'
21393ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21394ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21395cross_compiling=$ac_cv_prog_cc_cross
21396
21397 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21398 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21399 cat >> confdefs.h <<\EOF
21400#define wxUSE_OLE 1
21401EOF
21402
21403
21404 fi
21405
21406 cat >> confdefs.h <<\EOF
21407#define wxUSE_DATAOBJ 1
21408EOF
21409
21410 else
21411 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21412
21413 wxUSE_CLIPBOARD=no
21414 wxUSE_DRAG_AND_DROP=no
21415 wxUSE_DATAOBJ=no
21416 wxUSE_OLE=no
21417 fi
21418
21419 if test "$wxUSE_METAFILE" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421#define wxUSE_METAFILE 1
21422EOF
21423
21424
21425 cat >> confdefs.h <<\EOF
21426#define wxUSE_ENH_METAFILE 1
21427EOF
21428
21429 fi
21430fi
21431
21432if test "$wxUSE_IPC" = "yes"; then
21433 if test "$wxUSE_SOCKETS" != "yes"; then
21434 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21435 fi
21436
21437 cat >> confdefs.h <<\EOF
21438#define wxUSE_IPC 1
21439EOF
21440
21441fi
21442
21443if test "$wxUSE_CLIPBOARD" = "yes"; then
21444 if test "$wxUSE_MGL" = 1; then
21445 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21446 wxUSE_CLIPBOARD=no
21447 fi
21448
21449 if test "$wxUSE_CLIPBOARD" = "yes"; then
21450 cat >> confdefs.h <<\EOF
21451#define wxUSE_CLIPBOARD 1
21452EOF
21453
21454
21455 cat >> confdefs.h <<\EOF
21456#define wxUSE_DATAOBJ 1
21457EOF
21458
21459 fi
21460fi
21461
21462if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21463 if test "$wxUSE_GTK" = 1; then
21464 if test "$WXGTK12" != 1; then
21465 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21466 wxUSE_DRAG_AND_DROP=no
21467 fi
21468 fi
21469
21470 if test "$wxUSE_MOTIF" = 1; then
21471 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21472 wxUSE_DRAG_AND_DROP=no
21473 fi
21474
21475 if test "$wxUSE_X11" = 1; then
21476 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21477 wxUSE_DRAG_AND_DROP=no
21478 fi
21479
21480 if test "$wxUSE_MGL" = 1; then
21481 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21482 wxUSE_DRAG_AND_DROP=no
21483 fi
21484
21485 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21486 cat >> confdefs.h <<\EOF
21487#define wxUSE_DRAG_AND_DROP 1
21488EOF
21489
21490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21491 fi
21492
21493fi
21494
21495if test "$wxUSE_SPLINES" = "yes" ; then
21496 cat >> confdefs.h <<\EOF
21497#define wxUSE_SPLINES 1
21498EOF
21499
21500fi
21501
21502
21503USES_CONTROLS=0
21504if test "$wxUSE_CONTROLS" = "yes"; then
21505 USES_CONTROLS=1
21506fi
21507
21508if test "$wxUSE_ACCEL" = "yes"; then
21509 cat >> confdefs.h <<\EOF
21510#define wxUSE_ACCEL 1
21511EOF
21512
21513 USES_CONTROLS=1
21514fi
21515
21516if test "$wxUSE_BUTTON" = "yes"; then
21517 cat >> confdefs.h <<\EOF
21518#define wxUSE_BUTTON 1
21519EOF
21520
21521 USES_CONTROLS=1
21522fi
21523
21524if test "$wxUSE_BMPBUTTON" = "yes"; then
21525 cat >> confdefs.h <<\EOF
21526#define wxUSE_BMPBUTTON 1
21527EOF
21528
21529 USES_CONTROLS=1
21530fi
21531
21532if test "$wxUSE_CALCTRL" = "yes"; then
21533 cat >> confdefs.h <<\EOF
21534#define wxUSE_CALENDARCTRL 1
21535EOF
21536
21537 USES_CONTROLS=1
21538 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21539fi
21540
21541if test "$wxUSE_CARET" = "yes"; then
21542 cat >> confdefs.h <<\EOF
21543#define wxUSE_CARET 1
21544EOF
21545
21546 USES_CONTROLS=1
21547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21548fi
21549
21550if test "$wxUSE_COMBOBOX" = "yes"; then
21551 cat >> confdefs.h <<\EOF
21552#define wxUSE_COMBOBOX 1
21553EOF
21554
21555 USES_CONTROLS=1
21556fi
21557
21558if test "$wxUSE_CHOICE" = "yes"; then
21559 cat >> confdefs.h <<\EOF
21560#define wxUSE_CHOICE 1
21561EOF
21562
21563 USES_CONTROLS=1
21564fi
21565
21566if test "$wxUSE_CHECKBOX" = "yes"; then
21567 cat >> confdefs.h <<\EOF
21568#define wxUSE_CHECKBOX 1
21569EOF
21570
21571 USES_CONTROLS=1
21572fi
21573
21574if test "$wxUSE_CHECKLST" = "yes"; then
21575 cat >> confdefs.h <<\EOF
21576#define wxUSE_CHECKLISTBOX 1
21577EOF
21578
21579 USES_CONTROLS=1
21580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21581fi
21582
21583if test "$wxUSE_DISPLAY" = "yes"; then
21584 cat >> confdefs.h <<\EOF
21585#define wxUSE_DISPLAY 1
21586EOF
21587
21588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21589fi
21590
21591if test "$wxUSE_GAUGE" = "yes"; then
21592 cat >> confdefs.h <<\EOF
21593#define wxUSE_GAUGE 1
21594EOF
21595
21596 USES_CONTROLS=1
21597fi
21598
21599if test "$wxUSE_GRID" = "yes"; then
21600 cat >> confdefs.h <<\EOF
21601#define wxUSE_GRID 1
21602EOF
21603
21604 USES_CONTROLS=1
21605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21606fi
21607
21608if test "$wxUSE_IMAGLIST" = "yes"; then
21609 cat >> confdefs.h <<\EOF
21610#define wxUSE_IMAGLIST 1
21611EOF
21612
21613fi
21614
21615if test "$wxUSE_LISTBOX" = "yes"; then
21616 cat >> confdefs.h <<\EOF
21617#define wxUSE_LISTBOX 1
21618EOF
21619
21620 USES_CONTROLS=1
21621fi
21622
21623if test "$wxUSE_LISTCTRL" = "yes"; then
21624 if test "$wxUSE_IMAGLIST" = "yes"; then
21625 cat >> confdefs.h <<\EOF
21626#define wxUSE_LISTCTRL 1
21627EOF
21628
21629 USES_CONTROLS=1
21630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21631 else
21632 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21633 fi
21634fi
21635
21636if test "$wxUSE_NOTEBOOK" = "yes"; then
21637 cat >> confdefs.h <<\EOF
21638#define wxUSE_NOTEBOOK 1
21639EOF
21640
21641 USES_CONTROLS=1
21642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21643fi
21644
21645
21646if test "$wxUSE_RADIOBOX" = "yes"; then
21647 cat >> confdefs.h <<\EOF
21648#define wxUSE_RADIOBOX 1
21649EOF
21650
21651 USES_CONTROLS=1
21652fi
21653
21654if test "$wxUSE_RADIOBTN" = "yes"; then
21655 cat >> confdefs.h <<\EOF
21656#define wxUSE_RADIOBTN 1
21657EOF
21658
21659 USES_CONTROLS=1
21660fi
21661
21662if test "$wxUSE_SASH" = "yes"; then
21663 cat >> confdefs.h <<\EOF
21664#define wxUSE_SASH 1
21665EOF
21666
21667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21668fi
21669
21670if test "$wxUSE_SCROLLBAR" = "yes"; then
21671 cat >> confdefs.h <<\EOF
21672#define wxUSE_SCROLLBAR 1
21673EOF
21674
21675 USES_CONTROLS=1
21676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21677fi
21678
21679if test "$wxUSE_SLIDER" = "yes"; then
21680 cat >> confdefs.h <<\EOF
21681#define wxUSE_SLIDER 1
21682EOF
21683
21684 USES_CONTROLS=1
21685fi
21686
21687if test "$wxUSE_SPINBTN" = "yes"; then
21688 cat >> confdefs.h <<\EOF
21689#define wxUSE_SPINBTN 1
21690EOF
21691
21692 USES_CONTROLS=1
21693fi
21694
21695if test "$wxUSE_SPINCTRL" = "yes"; then
21696 cat >> confdefs.h <<\EOF
21697#define wxUSE_SPINCTRL 1
21698EOF
21699
21700 USES_CONTROLS=1
21701fi
21702
21703if test "$wxUSE_SPLITTER" = "yes"; then
21704 cat >> confdefs.h <<\EOF
21705#define wxUSE_SPLITTER 1
21706EOF
21707
21708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21709fi
21710
21711if test "$wxUSE_STATBMP" = "yes"; then
21712 cat >> confdefs.h <<\EOF
21713#define wxUSE_STATBMP 1
21714EOF
21715
21716 USES_CONTROLS=1
21717fi
21718
21719if test "$wxUSE_STATBOX" = "yes"; then
21720 cat >> confdefs.h <<\EOF
21721#define wxUSE_STATBOX 1
21722EOF
21723
21724 USES_CONTROLS=1
21725fi
21726
21727if test "$wxUSE_STATTEXT" = "yes"; then
21728 cat >> confdefs.h <<\EOF
21729#define wxUSE_STATTEXT 1
21730EOF
21731
21732 USES_CONTROLS=1
21733fi
21734
21735if test "$wxUSE_STATLINE" = "yes"; then
21736 cat >> confdefs.h <<\EOF
21737#define wxUSE_STATLINE 1
21738EOF
21739
21740 USES_CONTROLS=1
21741fi
21742
21743if test "$wxUSE_STATUSBAR" = "yes"; then
21744 cat >> confdefs.h <<\EOF
21745#define wxUSE_STATUSBAR 1
21746EOF
21747
21748 USES_CONTROLS=1
21749
21750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21751fi
21752
21753if test "$wxUSE_TABDIALOG" = "yes"; then
21754 cat >> confdefs.h <<\EOF
21755#define wxUSE_TAB_DIALOG 1
21756EOF
21757
21758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21759fi
21760
21761if test "$wxUSE_TEXTCTRL" = "yes"; then
21762 cat >> confdefs.h <<\EOF
21763#define wxUSE_TEXTCTRL 1
21764EOF
21765
21766 USES_CONTROLS=1
21767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21768fi
21769
21770if test "$wxUSE_TOGGLEBTN" = "yes"; then
21771 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21772 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21773 wxUSE_TOGGLEBTN=no
21774 fi
21775 if test "$wxUSE_UNIVERSAL" = "yes"; then
21776 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21777 wxUSE_TOGGLEBTN=no
21778 fi
21779
21780 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21781 cat >> confdefs.h <<\EOF
21782#define wxUSE_TOGGLEBTN 1
21783EOF
21784
21785 USES_CONTROLS=1
21786 fi
21787fi
21788
21789if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21790 cat >> confdefs.h <<\EOF
21791#define wxUSE_TOOLBAR_SIMPLE 1
21792EOF
21793
21794 wxUSE_TOOLBAR="yes"
21795 USES_CONTROLS=1
21796fi
21797
21798if test "$wxUSE_TOOLBAR" = "yes"; then
21799 cat >> confdefs.h <<\EOF
21800#define wxUSE_TOOLBAR 1
21801EOF
21802
21803 USES_CONTROLS=1
21804
21805 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21806 wxUSE_TOOLBAR_NATIVE="yes"
21807 fi
21808
21809 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21810 cat >> confdefs.h <<\EOF
21811#define wxUSE_TOOLBAR_NATIVE 1
21812EOF
21813
21814 USES_CONTROLS=1
21815 fi
21816
21817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21818fi
21819
21820if test "$wxUSE_TOOLTIPS" = "yes"; then
21821 if test "$wxUSE_MOTIF" = 1; then
21822 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21823 else
21824 if test "$wxUSE_UNIVERSAL" = "yes"; then
21825 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21826 else
21827 cat >> confdefs.h <<\EOF
21828#define wxUSE_TOOLTIPS 1
21829EOF
21830
21831 fi
21832 fi
21833fi
21834
21835if test "$wxUSE_TREECTRL" = "yes"; then
21836 if test "$wxUSE_IMAGLIST" = "yes"; then
21837 cat >> confdefs.h <<\EOF
21838#define wxUSE_TREECTRL 1
21839EOF
21840
21841 USES_CONTROLS=1
21842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21843 else
21844 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21845 fi
21846fi
21847
21848if test "$wxUSE_POPUPWIN" = "yes"; then
21849 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21850 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21851 else
21852 if test "$wxUSE_MOTIF" = 1; then
21853 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21854 else
21855 if test "$wxUSE_PM" = 1; then
21856 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21857 else
21858 cat >> confdefs.h <<\EOF
21859#define wxUSE_POPUPWIN 1
21860EOF
21861
21862
21863 USES_CONTROLS=1
21864 fi
21865 fi
21866 fi
21867fi
21868
21869if test "$wxUSE_TIPWINDOW" = "yes"; then
21870 if test "$wxUSE_PM" = 1; then
21871 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21872 else
21873 cat >> confdefs.h <<\EOF
21874#define wxUSE_TIPWINDOW 1
21875EOF
21876
21877 fi
21878fi
21879
21880if test "$USES_CONTROLS" = 1; then
21881 cat >> confdefs.h <<\EOF
21882#define wxUSE_CONTROLS 1
21883EOF
21884
21885fi
21886
21887
21888
21889if test "$wxUSE_DRAGIMAGE" = "yes"; then
21890 cat >> confdefs.h <<\EOF
21891#define wxUSE_DRAGIMAGE 1
21892EOF
21893
21894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21895fi
21896
21897if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21898 cat >> confdefs.h <<\EOF
21899#define wxUSE_ACCESSIBILITY 1
21900EOF
21901
21902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21903fi
21904
21905if test "$wxUSE_MENUS" = "yes"; then
21906 cat >> confdefs.h <<\EOF
21907#define wxUSE_MENUS 1
21908EOF
21909
21910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21911fi
21912
21913if test "$wxUSE_METAFILE" = "yes"; then
21914 cat >> confdefs.h <<\EOF
21915#define wxUSE_METAFILE 1
21916EOF
21917
21918fi
21919
21920if test "$wxUSE_MIMETYPE" = "yes"; then
21921 cat >> confdefs.h <<\EOF
21922#define wxUSE_MIMETYPE 1
21923EOF
21924
21925fi
21926
21927if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21928 cat >> confdefs.h <<\EOF
21929#define wxUSE_SYSTEM_OPTIONS 1
21930EOF
21931
21932if test "$TOOLKIT" = "MSW"; then
21933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21934fi
21935
21936fi
21937
21938if test "$wxUSE_PROTOCOL" = "yes"; then
21939 if test "$wxUSE_SOCKETS" != "yes"; then
21940 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21941 wxUSE_PROTOCOL=no
21942 fi
21943
21944 if test "$wxUSE_PROTOCOL" = "yes"; then
21945 cat >> confdefs.h <<\EOF
21946#define wxUSE_PROTOCOL 1
21947EOF
21948
21949
21950 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21951 cat >> confdefs.h <<\EOF
21952#define wxUSE_PROTOCOL_HTTP 1
21953EOF
21954
21955 fi
21956 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21957 cat >> confdefs.h <<\EOF
21958#define wxUSE_PROTOCOL_FTP 1
21959EOF
21960
21961 fi
21962 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21963 cat >> confdefs.h <<\EOF
21964#define wxUSE_PROTOCOL_FILE 1
21965EOF
21966
21967 fi
21968 fi
21969fi
21970
21971if test "$wxUSE_URL" = "yes"; then
21972 if test "$wxUSE_PROTOCOL" != "yes"; then
21973 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21974 wxUSE_URL=no
21975 fi
21976 if test "$wxUSE_URL" = "yes"; then
21977 cat >> confdefs.h <<\EOF
21978#define wxUSE_URL 1
21979EOF
21980
21981 fi
21982fi
21983
21984if test "$wxUSE_MINIFRAME" = "yes"; then
21985 cat >> confdefs.h <<\EOF
21986#define wxUSE_MINIFRAME 1
21987EOF
21988
21989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21990fi
21991
21992if test "$wxUSE_HTML" = "yes"; then
21993 cat >> confdefs.h <<\EOF
21994#define wxUSE_HTML 1
21995EOF
21996
21997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
21998fi
21999
22000if test "$wxUSE_VALIDATORS" = "yes"; then
22001 cat >> confdefs.h <<\EOF
22002#define wxUSE_VALIDATORS 1
22003EOF
22004
22005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22006fi
22007
22008if test "$wxUSE_PALETTE" = "yes" ; then
22009 cat >> confdefs.h <<\EOF
22010#define wxUSE_PALETTE 1
22011EOF
22012
22013fi
22014
22015if test "$wxUSE_IMAGE" = "yes" ; then
22016 cat >> confdefs.h <<\EOF
22017#define wxUSE_IMAGE 1
22018EOF
22019
22020fi
22021
22022if test "$wxUSE_GIF" = "yes" ; then
22023 cat >> confdefs.h <<\EOF
22024#define wxUSE_GIF 1
22025EOF
22026
22027fi
22028
22029if test "$wxUSE_PCX" = "yes" ; then
22030 cat >> confdefs.h <<\EOF
22031#define wxUSE_PCX 1
22032EOF
22033
22034fi
22035
22036if test "$wxUSE_IFF" = "yes" ; then
22037 cat >> confdefs.h <<\EOF
22038#define wxUSE_IFF 1
22039EOF
22040
22041fi
22042
22043if test "$wxUSE_PNM" = "yes" ; then
22044 cat >> confdefs.h <<\EOF
22045#define wxUSE_PNM 1
22046EOF
22047
22048fi
22049
22050if test "$wxUSE_XPM" = "yes" ; then
22051 cat >> confdefs.h <<\EOF
22052#define wxUSE_XPM 1
22053EOF
22054
22055fi
22056
22057if test "$wxUSE_ICO_CUR" = "yes" ; then
22058 cat >> confdefs.h <<\EOF
22059#define wxUSE_ICO_CUR 1
22060EOF
22061
22062fi
22063
22064if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22065 LIBS=" -lunicows $LIBS"
22066fi
22067
22068
22069if test "$wxUSE_CHOICEDLG" = "yes"; then
22070 cat >> confdefs.h <<\EOF
22071#define wxUSE_CHOICEDLG 1
22072EOF
22073
22074fi
22075
22076if test "$wxUSE_COLOURDLG" = "yes"; then
22077 cat >> confdefs.h <<\EOF
22078#define wxUSE_COLOURDLG 1
22079EOF
22080
22081fi
22082
22083if test "$wxUSE_FILEDLG" = "yes"; then
22084 cat >> confdefs.h <<\EOF
22085#define wxUSE_FILEDLG 1
22086EOF
22087
22088fi
22089
22090if test "$wxUSE_FINDREPLDLG" = "yes"; then
22091 cat >> confdefs.h <<\EOF
22092#define wxUSE_FINDREPLDLG 1
22093EOF
22094
22095fi
22096
22097if test "$wxUSE_FONTDLG" = "yes"; then
22098 cat >> confdefs.h <<\EOF
22099#define wxUSE_FONTDLG 1
22100EOF
22101
22102fi
22103
22104if test "$wxUSE_DIRDLG" = "yes"; then
22105 if test "$wxUSE_TREECTRL" != "yes"; then
22106 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
22107 else
22108 cat >> confdefs.h <<\EOF
22109#define wxUSE_DIRDLG 1
22110EOF
22111
22112 fi
22113fi
22114
22115if test "$wxUSE_MSGDLG" = "yes"; then
22116 cat >> confdefs.h <<\EOF
22117#define wxUSE_MSGDLG 1
22118EOF
22119
22120fi
22121
22122if test "$wxUSE_NUMBERDLG" = "yes"; then
22123 cat >> confdefs.h <<\EOF
22124#define wxUSE_NUMBERDLG 1
22125EOF
22126
22127fi
22128
22129if test "$wxUSE_PROGRESSDLG" = "yes"; then
22130 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22131 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22132 else
22133 cat >> confdefs.h <<\EOF
22134#define wxUSE_PROGRESSDLG 1
22135EOF
22136
22137 fi
22138fi
22139
22140if test "$wxUSE_SPLASH" = "yes"; then
22141 cat >> confdefs.h <<\EOF
22142#define wxUSE_SPLASH 1
22143EOF
22144
22145fi
22146
22147if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22148 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22149 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22150 else
22151 cat >> confdefs.h <<\EOF
22152#define wxUSE_STARTUP_TIPS 1
22153EOF
22154
22155 fi
22156fi
22157
22158if test "$wxUSE_TEXTDLG" = "yes"; then
22159 cat >> confdefs.h <<\EOF
22160#define wxUSE_TEXTDLG 1
22161EOF
22162
22163fi
22164
22165if test "$wxUSE_WIZARDDLG" = "yes"; then
22166 cat >> confdefs.h <<\EOF
22167#define wxUSE_WIZARDDLG 1
22168EOF
22169
22170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22171fi
22172
22173
22174if test "$cross_compiling" = "yes"; then
22175 OSINFO="\"$host\""
22176else
22177 OSINFO=`uname -s -r -m`
22178 OSINFO="\"$OSINFO\""
22179fi
22180
22181cat >> confdefs.h <<EOF
22182#define WXWIN_OS_DESCRIPTION $OSINFO
22183EOF
22184
22185
22186
22187if test "x$prefix" != "xNONE"; then
22188 wxPREFIX=$prefix
22189else
22190 wxPREFIX=$ac_default_prefix
22191fi
22192
22193cat >> confdefs.h <<EOF
22194#define wxINSTALL_PREFIX "$wxPREFIX"
22195EOF
22196
22197
22198top_builddir=`pwd`
22199
22200
22201
22202
22203if test "$wxUSE_MAC" = 1 ; then
22204 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22205fi
22206if test "$wxUSE_COCOA" = 1 ; then
22207 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22208fi
22209
22210
22211LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22212
22213have_cos=0
22214have_floor=0
22215for ac_func in cos
22216do
22217echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22218echo "configure:22219: checking for $ac_func" >&5
22219if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22220 echo $ac_n "(cached) $ac_c" 1>&6
22221else
22222 cat > conftest.$ac_ext <<EOF
22223#line 22224 "configure"
22224#include "confdefs.h"
22225/* System header to define __stub macros and hopefully few prototypes,
22226 which can conflict with char $ac_func(); below. */
22227#include <assert.h>
22228/* Override any gcc2 internal prototype to avoid an error. */
22229/* We use char because int might match the return type of a gcc2
22230 builtin and then its argument prototype would still apply. */
22231char $ac_func();
22232
22233int main() {
22234
22235/* The GNU C library defines this for functions which it implements
22236 to always fail with ENOSYS. Some functions are actually named
22237 something starting with __ and the normal name is an alias. */
22238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22239choke me
22240#else
22241$ac_func();
22242#endif
22243
22244; return 0; }
22245EOF
22246if { (eval echo configure:22247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22247 rm -rf conftest*
22248 eval "ac_cv_func_$ac_func=yes"
22249else
22250 echo "configure: failed program was:" >&5
22251 cat conftest.$ac_ext >&5
22252 rm -rf conftest*
22253 eval "ac_cv_func_$ac_func=no"
22254fi
22255rm -f conftest*
22256fi
22257
22258if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22259 echo "$ac_t""yes" 1>&6
22260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22261 cat >> confdefs.h <<EOF
22262#define $ac_tr_func 1
22263EOF
22264 have_cos=1
22265else
22266 echo "$ac_t""no" 1>&6
22267fi
22268done
22269
22270for ac_func in floor
22271do
22272echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22273echo "configure:22274: checking for $ac_func" >&5
22274if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22275 echo $ac_n "(cached) $ac_c" 1>&6
22276else
22277 cat > conftest.$ac_ext <<EOF
22278#line 22279 "configure"
22279#include "confdefs.h"
22280/* System header to define __stub macros and hopefully few prototypes,
22281 which can conflict with char $ac_func(); below. */
22282#include <assert.h>
22283/* Override any gcc2 internal prototype to avoid an error. */
22284/* We use char because int might match the return type of a gcc2
22285 builtin and then its argument prototype would still apply. */
22286char $ac_func();
22287
22288int main() {
22289
22290/* The GNU C library defines this for functions which it implements
22291 to always fail with ENOSYS. Some functions are actually named
22292 something starting with __ and the normal name is an alias. */
22293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22294choke me
22295#else
22296$ac_func();
22297#endif
22298
22299; return 0; }
22300EOF
22301if { (eval echo configure:22302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22302 rm -rf conftest*
22303 eval "ac_cv_func_$ac_func=yes"
22304else
22305 echo "configure: failed program was:" >&5
22306 cat conftest.$ac_ext >&5
22307 rm -rf conftest*
22308 eval "ac_cv_func_$ac_func=no"
22309fi
22310rm -f conftest*
22311fi
22312
22313if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22314 echo "$ac_t""yes" 1>&6
22315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22316 cat >> confdefs.h <<EOF
22317#define $ac_tr_func 1
22318EOF
22319 have_floor=1
22320else
22321 echo "$ac_t""no" 1>&6
22322fi
22323done
22324
22325echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22326echo "configure:22327: checking if floating point functions link without -lm" >&5
22327if test "$have_cos" = 1 -a "$have_floor" = 1; then
22328 echo "$ac_t""yes" 1>&6
22329else
22330 echo "$ac_t""no" 1>&6
22331 LIBS="$LIBS -lm"
22332 # use different functions to avoid configure caching
22333 have_sin=0
22334 have_ceil=0
22335 for ac_func in sin
22336do
22337echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22338echo "configure:22339: checking for $ac_func" >&5
22339if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22340 echo $ac_n "(cached) $ac_c" 1>&6
22341else
22342 cat > conftest.$ac_ext <<EOF
22343#line 22344 "configure"
22344#include "confdefs.h"
22345/* System header to define __stub macros and hopefully few prototypes,
22346 which can conflict with char $ac_func(); below. */
22347#include <assert.h>
22348/* Override any gcc2 internal prototype to avoid an error. */
22349/* We use char because int might match the return type of a gcc2
22350 builtin and then its argument prototype would still apply. */
22351char $ac_func();
22352
22353int main() {
22354
22355/* The GNU C library defines this for functions which it implements
22356 to always fail with ENOSYS. Some functions are actually named
22357 something starting with __ and the normal name is an alias. */
22358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22359choke me
22360#else
22361$ac_func();
22362#endif
22363
22364; return 0; }
22365EOF
22366if { (eval echo configure:22367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22367 rm -rf conftest*
22368 eval "ac_cv_func_$ac_func=yes"
22369else
22370 echo "configure: failed program was:" >&5
22371 cat conftest.$ac_ext >&5
22372 rm -rf conftest*
22373 eval "ac_cv_func_$ac_func=no"
22374fi
22375rm -f conftest*
22376fi
22377
22378if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22379 echo "$ac_t""yes" 1>&6
22380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22381 cat >> confdefs.h <<EOF
22382#define $ac_tr_func 1
22383EOF
22384 have_sin=1
22385else
22386 echo "$ac_t""no" 1>&6
22387fi
22388done
22389
22390 for ac_func in ceil
22391do
22392echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22393echo "configure:22394: checking for $ac_func" >&5
22394if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22395 echo $ac_n "(cached) $ac_c" 1>&6
22396else
22397 cat > conftest.$ac_ext <<EOF
22398#line 22399 "configure"
22399#include "confdefs.h"
22400/* System header to define __stub macros and hopefully few prototypes,
22401 which can conflict with char $ac_func(); below. */
22402#include <assert.h>
22403/* Override any gcc2 internal prototype to avoid an error. */
22404/* We use char because int might match the return type of a gcc2
22405 builtin and then its argument prototype would still apply. */
22406char $ac_func();
22407
22408int main() {
22409
22410/* The GNU C library defines this for functions which it implements
22411 to always fail with ENOSYS. Some functions are actually named
22412 something starting with __ and the normal name is an alias. */
22413#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22414choke me
22415#else
22416$ac_func();
22417#endif
22418
22419; return 0; }
22420EOF
22421if { (eval echo configure:22422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22422 rm -rf conftest*
22423 eval "ac_cv_func_$ac_func=yes"
22424else
22425 echo "configure: failed program was:" >&5
22426 cat conftest.$ac_ext >&5
22427 rm -rf conftest*
22428 eval "ac_cv_func_$ac_func=no"
22429fi
22430rm -f conftest*
22431fi
22432
22433if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22434 echo "$ac_t""yes" 1>&6
22435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22436 cat >> confdefs.h <<EOF
22437#define $ac_tr_func 1
22438EOF
22439 have_ceil=1
22440else
22441 echo "$ac_t""no" 1>&6
22442fi
22443done
22444
22445 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22446echo "configure:22447: checking if floating point functions link with -lm" >&5
22447 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22448 echo "$ac_t""yes" 1>&6
22449 else
22450 echo "$ac_t""no" 1>&6
22451 # not sure we should warn the user, crash, etc.
22452 fi
22453fi
22454
22455if test "$wxUSE_GUI" = "yes"; then
22456
22457 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22458
22459
22460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22461 drawing dynamic erase event exec font image \
22462 minimal propsize rotate shaped widgets"
22463
22464 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22465else
22466 SAMPLES_SUBDIRS="console"
22467fi
22468
22469
22470INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22471-I\${top_srcdir}/include \
22472$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22473$TOOLKIT_INCLUDE"
22474
22475if test "$wxUSE_GTK" = 1; then
22476 WXCONFIG_INCLUDE=
22477else
22478 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22479fi
22480
22481if test "$GXX" = yes ; then
22482 CXXWARNINGS="-Wall"
22483
22484 if test "$wxUSE_NO_DEPS" = "no" ; then
22485 CFLAGS="-MMD $CFLAGS"
22486 CXXFLAGS="-MMD $CXXFLAGS"
22487 fi
22488fi
22489
22490EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22491
22492CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22493CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22494CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22495LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22496
22497LDFLAGS="$LDFLAGS $PROFILE"
22498
22499SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22602echo "configure:22603: checking whether ${MAKE-make} sets \${MAKE}" >&5
22603set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22604if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22605 echo $ac_n "(cached) $ac_c" 1>&6
22606else
22607 cat > conftestmake <<\EOF
22608all:
22609 @echo 'ac_maketemp="${MAKE}"'
22610EOF
22611# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22612eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22613if test -n "$ac_maketemp"; then
22614 eval ac_cv_prog_make_${ac_make}_set=yes
22615else
22616 eval ac_cv_prog_make_${ac_make}_set=no
22617fi
22618rm -f conftestmake
22619fi
22620if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22621 echo "$ac_t""yes" 1>&6
22622 SET_MAKE=
22623else
22624 echo "$ac_t""no" 1>&6
22625 SET_MAKE="MAKE=${MAKE-make}"
22626fi
22627
22628
22629if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22630 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22631fi
22632
22633
22634
22635wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22636wx_cv_if_gnu_make=$IF_GNU_MAKE
22637wx_cv_path_ifs=$PATH_IFS
22638wx_cv_program_ext=$PROGRAM_EXT
22639wx_cv_target_library=$WX_TARGET_LIBRARY
22640wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22641wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22642wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22643wx_cv_release=${WX_RELEASE}
22644wx_cv_current=${WX_CURRENT}
22645wx_cv_revision=${WX_REVISION}
22646wx_cv_age=${WX_AGE}
22647wx_cv_use_gui=${USE_GUI}
22648wx_cv_use_resources=${wxUSE_RESOURCES}
22649export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22650 wx_cv_path_ifs wx_cv_program_ext \
22651 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22652 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22653 wx_cv_use_gui wx_cv_use_resources
22654
22655subdirs="demos samples utils contrib"
22656
22657
22658trap '' 1 2 15
22659cat > confcache <<\EOF
22660# This file is a shell script that caches the results of configure
22661# tests run on this system so they can be shared between configure
22662# scripts and configure runs. It is not useful on other systems.
22663# If it contains results you don't want to keep, you may remove or edit it.
22664#
22665# By default, configure uses ./config.cache as the cache file,
22666# creating it if it does not exist already. You can give configure
22667# the --cache-file=FILE option to use a different cache file; that is
22668# what configure does when it calls configure scripts in
22669# subdirectories, so they share the cache.
22670# Giving --cache-file=/dev/null disables caching, for debugging configure.
22671# config.status only pays attention to the cache file if you give it the
22672# --recheck option to rerun configure.
22673#
22674EOF
22675# The following way of writing the cache mishandles newlines in values,
22676# but we know of no workaround that is simple, portable, and efficient.
22677# So, don't put newlines in cache variables' values.
22678# Ultrix sh set writes to stderr and can't be redirected directly,
22679# and sets the high bit in the cache file unless we assign to the vars.
22680(set) 2>&1 |
22681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22682 *ac_space=\ *)
22683 # `set' does not quote correctly, so add quotes (double-quote substitution
22684 # turns \\\\ into \\, and sed turns \\ into \).
22685 sed -n \
22686 -e "s/'/'\\\\''/g" \
22687 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22688 ;;
22689 *)
22690 # `set' quotes correctly as required by POSIX, so do not add quotes.
22691 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22692 ;;
22693 esac >> confcache
22694if cmp -s $cache_file confcache; then
22695 :
22696else
22697 if test -w $cache_file; then
22698 echo "updating cache $cache_file"
22699 cat confcache > $cache_file
22700 else
22701 echo "not updating unwritable cache $cache_file"
22702 fi
22703fi
22704rm -f confcache
22705
22706trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22707
22708test "x$prefix" = xNONE && prefix=$ac_default_prefix
22709# Let make expand exec_prefix.
22710test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22711
22712# Any assignment to VPATH causes Sun make to only execute
22713# the first set of double-colon rules, so remove it if not needed.
22714# If there is a colon in the path, we need to keep it.
22715if test "x$srcdir" = x.; then
22716 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22717fi
22718
22719trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22720
22721DEFS=-DHAVE_CONFIG_H
22722
22723# Without the "./", some shells look in PATH for config.status.
22724: ${CONFIG_STATUS=./config.status}
22725
22726echo creating $CONFIG_STATUS
22727rm -f $CONFIG_STATUS
22728cat > $CONFIG_STATUS <<EOF
22729#! /bin/sh
22730# Generated automatically by configure.
22731# Run this file to recreate the current configuration.
22732# This directory was configured as follows,
22733# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22734#
22735# $0 $ac_configure_args
22736#
22737# Compiler output produced by configure, useful for debugging
22738# configure, is in ./config.log if it exists.
22739
22740ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22741for ac_option
22742do
22743 case "\$ac_option" in
22744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22745 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22746 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22747 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22748 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22749 exit 0 ;;
22750 -help | --help | --hel | --he | --h)
22751 echo "\$ac_cs_usage"; exit 0 ;;
22752 *) echo "\$ac_cs_usage"; exit 1 ;;
22753 esac
22754done
22755
22756ac_given_srcdir=$srcdir
22757ac_given_INSTALL="$INSTALL"
22758
22759trap 'rm -fr `echo "
22760 wx-config
22761 version-script
22762 src/make.env
22763 src/makeprog.env
22764 src/makelib.env
22765 Makefile
22766 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22767EOF
22768cat >> $CONFIG_STATUS <<EOF
22769
22770# Protect against being on the right side of a sed subst in config.status.
22771sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22772 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22773$ac_vpsub
22774$extrasub
22775s%@SHELL@%$SHELL%g
22776s%@CFLAGS@%$CFLAGS%g
22777s%@CPPFLAGS@%$CPPFLAGS%g
22778s%@CXXFLAGS@%$CXXFLAGS%g
22779s%@FFLAGS@%$FFLAGS%g
22780s%@DEFS@%$DEFS%g
22781s%@LDFLAGS@%$LDFLAGS%g
22782s%@LIBS@%$LIBS%g
22783s%@exec_prefix@%$exec_prefix%g
22784s%@prefix@%$prefix%g
22785s%@program_transform_name@%$program_transform_name%g
22786s%@bindir@%$bindir%g
22787s%@sbindir@%$sbindir%g
22788s%@libexecdir@%$libexecdir%g
22789s%@datadir@%$datadir%g
22790s%@sysconfdir@%$sysconfdir%g
22791s%@sharedstatedir@%$sharedstatedir%g
22792s%@localstatedir@%$localstatedir%g
22793s%@libdir@%$libdir%g
22794s%@includedir@%$includedir%g
22795s%@oldincludedir@%$oldincludedir%g
22796s%@infodir@%$infodir%g
22797s%@mandir@%$mandir%g
22798s%@host@%$host%g
22799s%@host_alias@%$host_alias%g
22800s%@host_cpu@%$host_cpu%g
22801s%@host_vendor@%$host_vendor%g
22802s%@host_os@%$host_os%g
22803s%@target@%$target%g
22804s%@target_alias@%$target_alias%g
22805s%@target_cpu@%$target_cpu%g
22806s%@target_vendor@%$target_vendor%g
22807s%@target_os@%$target_os%g
22808s%@build@%$build%g
22809s%@build_alias@%$build_alias%g
22810s%@build_cpu@%$build_cpu%g
22811s%@build_vendor@%$build_vendor%g
22812s%@build_os@%$build_os%g
22813s%@CC@%$CC%g
22814s%@CPP@%$CPP%g
22815s%@CXX@%$CXX%g
22816s%@RANLIB@%$RANLIB%g
22817s%@AR@%$AR%g
22818s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22819s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22820s%@INSTALL_DATA@%$INSTALL_DATA%g
22821s%@STRIP@%$STRIP%g
22822s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22823s%@YACC@%$YACC%g
22824s%@LEX@%$LEX%g
22825s%@LEXLIB@%$LEXLIB%g
22826s%@LN_S@%$LN_S%g
22827s%@CXXCPP@%$CXXCPP%g
22828s%@PKG_CONFIG@%$PKG_CONFIG%g
22829s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22830s%@GTK_LIBS@%$GTK_LIBS%g
22831s%@GTK_CONFIG@%$GTK_CONFIG%g
22832s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22833s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22834s%@X_CFLAGS@%$X_CFLAGS%g
22835s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22836s%@X_LIBS@%$X_LIBS%g
22837s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22838s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22839s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22840s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22841s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22842s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22843s%@RESCOMP@%$RESCOMP%g
22844s%@DEREZ@%$DEREZ%g
22845s%@SETFILE@%$SETFILE%g
22846s%@LIBICONV@%$LIBICONV%g
22847s%@LEX_STEM@%$LEX_STEM%g
22848s%@PATH_IFS@%$PATH_IFS%g
22849s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22850s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22851s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22852s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22853s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22854s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22855s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22856s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22857s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22858s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22859s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22860s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22861s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22862s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22863s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22864s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22865s%@WX_ALL@%$WX_ALL%g
22866s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22867s%@SHARED_LD@%$SHARED_LD%g
22868s%@PIC_FLAG@%$PIC_FLAG%g
22869s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22870s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22871s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22872s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22873s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22874s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22875s%@STATIC_FLAG@%$STATIC_FLAG%g
22876s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22877s%@USE_GUI@%$USE_GUI%g
22878s%@AFMINSTALL@%$AFMINSTALL%g
22879s%@WIN32INSTALL@%$WIN32INSTALL%g
22880s%@TOOLKIT@%$TOOLKIT%g
22881s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22882s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22883s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22884s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22885s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22886s%@top_builddir@%$top_builddir%g
22887s%@cross_compiling@%$cross_compiling%g
22888s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22889s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22890s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22891s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22892s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22893s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22894s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22895s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22896s%@ALL_HEADERS@%$ALL_HEADERS%g
22897s%@ALL_SOURCES@%$ALL_SOURCES%g
22898s%@GUIDIST@%$GUIDIST%g
22899s%@PORT_FILES@%$PORT_FILES%g
22900s%@DISTDIR@%$DISTDIR%g
22901s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22902s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22903s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22904s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22905s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22906s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22907s%@EXTRADEFS@%$EXTRADEFS%g
22908s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22909s%@RESFLAGS@%$RESFLAGS%g
22910s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22911s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22912s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22913s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22914s%@LIBWXMACRES@%$LIBWXMACRES%g
22915s%@MACRESCOMP@%$MACRESCOMP%g
22916s%@MACSETFILE@%$MACSETFILE%g
22917s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22918s%@GCC@%$GCC%g
22919s%@DLLTOOL@%$DLLTOOL%g
22920s%@AS@%$AS%g
22921s%@NM@%$NM%g
22922s%@LD@%$LD%g
22923s%@MAKEINFO@%$MAKEINFO%g
22924s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22925s%@INSTALL_DIR@%$INSTALL_DIR%g
22926s%@SET_MAKE@%$SET_MAKE%g
22927s%@subdirs@%$subdirs%g
22928
22929CEOF
22930EOF
22931
22932cat >> $CONFIG_STATUS <<\EOF
22933
22934# Split the substitutions into bite-sized pieces for seds with
22935# small command number limits, like on Digital OSF/1 and HP-UX.
22936ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22937ac_file=1 # Number of current file.
22938ac_beg=1 # First line for current file.
22939ac_end=$ac_max_sed_cmds # Line after last line for current file.
22940ac_more_lines=:
22941ac_sed_cmds=""
22942while $ac_more_lines; do
22943 if test $ac_beg -gt 1; then
22944 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22945 else
22946 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22947 fi
22948 if test ! -s conftest.s$ac_file; then
22949 ac_more_lines=false
22950 rm -f conftest.s$ac_file
22951 else
22952 if test -z "$ac_sed_cmds"; then
22953 ac_sed_cmds="sed -f conftest.s$ac_file"
22954 else
22955 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22956 fi
22957 ac_file=`expr $ac_file + 1`
22958 ac_beg=$ac_end
22959 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22960 fi
22961done
22962if test -z "$ac_sed_cmds"; then
22963 ac_sed_cmds=cat
22964fi
22965EOF
22966
22967cat >> $CONFIG_STATUS <<EOF
22968
22969CONFIG_FILES=\${CONFIG_FILES-"wx-config
22970 version-script
22971 src/make.env
22972 src/makeprog.env
22973 src/makelib.env
22974 Makefile
22975 "}
22976EOF
22977cat >> $CONFIG_STATUS <<\EOF
22978for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22980 case "$ac_file" in
22981 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22982 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22983 *) ac_file_in="${ac_file}.in" ;;
22984 esac
22985
22986 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22987
22988 # Remove last slash and all that follows it. Not all systems have dirname.
22989 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22990 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22991 # The file is in a subdirectory.
22992 test ! -d "$ac_dir" && mkdir "$ac_dir"
22993 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22994 # A "../" for each directory in $ac_dir_suffix.
22995 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22996 else
22997 ac_dir_suffix= ac_dots=
22998 fi
22999
23000 case "$ac_given_srcdir" in
23001 .) srcdir=.
23002 if test -z "$ac_dots"; then top_srcdir=.
23003 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23004 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23005 *) # Relative path.
23006 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23007 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23008 esac
23009
23010 case "$ac_given_INSTALL" in
23011 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23012 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23013 esac
23014
23015 echo creating "$ac_file"
23016 rm -f "$ac_file"
23017 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23018 case "$ac_file" in
23019 *Makefile*) ac_comsub="1i\\
23020# $configure_input" ;;
23021 *) ac_comsub= ;;
23022 esac
23023
23024 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23025 sed -e "$ac_comsub
23026s%@configure_input@%$configure_input%g
23027s%@srcdir@%$srcdir%g
23028s%@top_srcdir@%$top_srcdir%g
23029s%@INSTALL@%$INSTALL%g
23030" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23031fi; done
23032rm -f conftest.s*
23033
23034# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23035# NAME is the cpp macro being defined and VALUE is the value it is being given.
23036#
23037# ac_d sets the value in "#define NAME VALUE" lines.
23038ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23039ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23040ac_dC='\3'
23041ac_dD='%g'
23042# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23043ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23044ac_uB='\([ ]\)%\1#\2define\3'
23045ac_uC=' '
23046ac_uD='\4%g'
23047# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23048ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23049ac_eB='$%\1#\2define\3'
23050ac_eC=' '
23051ac_eD='%g'
23052
23053if test "${CONFIG_HEADERS+set}" != set; then
23054EOF
23055cat >> $CONFIG_STATUS <<EOF
23056 CONFIG_HEADERS="setup.h:setup.h.in"
23057EOF
23058cat >> $CONFIG_STATUS <<\EOF
23059fi
23060for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23062 case "$ac_file" in
23063 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23064 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23065 *) ac_file_in="${ac_file}.in" ;;
23066 esac
23067
23068 echo creating $ac_file
23069
23070 rm -f conftest.frag conftest.in conftest.out
23071 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23072 cat $ac_file_inputs > conftest.in
23073
23074EOF
23075
23076# Transform confdefs.h into a sed script conftest.vals that substitutes
23077# the proper values into config.h.in to produce config.h. And first:
23078# Protect against being on the right side of a sed subst in config.status.
23079# Protect against being in an unquoted here document in config.status.
23080rm -f conftest.vals
23081cat > conftest.hdr <<\EOF
23082s/[\\&%]/\\&/g
23083s%[\\$`]%\\&%g
23084s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23085s%ac_d%ac_u%gp
23086s%ac_u%ac_e%gp
23087EOF
23088sed -n -f conftest.hdr confdefs.h > conftest.vals
23089rm -f conftest.hdr
23090
23091# This sed command replaces #undef with comments. This is necessary, for
23092# example, in the case of _POSIX_SOURCE, which is predefined and required
23093# on some systems where configure will not decide to define it.
23094cat >> conftest.vals <<\EOF
23095s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23096EOF
23097
23098# Break up conftest.vals because some shells have a limit on
23099# the size of here documents, and old seds have small limits too.
23100
23101rm -f conftest.tail
23102while :
23103do
23104 ac_lines=`grep -c . conftest.vals`
23105 # grep -c gives empty output for an empty file on some AIX systems.
23106 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23107 # Write a limited-size here document to conftest.frag.
23108 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23109 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23110 echo 'CEOF
23111 sed -f conftest.frag conftest.in > conftest.out
23112 rm -f conftest.in
23113 mv conftest.out conftest.in
23114' >> $CONFIG_STATUS
23115 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23116 rm -f conftest.vals
23117 mv conftest.tail conftest.vals
23118done
23119rm -f conftest.vals
23120
23121cat >> $CONFIG_STATUS <<\EOF
23122 rm -f conftest.frag conftest.h
23123 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23124 cat conftest.in >> conftest.h
23125 rm -f conftest.in
23126 if cmp -s $ac_file conftest.h 2>/dev/null; then
23127 echo "$ac_file is unchanged"
23128 rm -f conftest.h
23129 else
23130 # Remove last slash and all that follows it. Not all systems have dirname.
23131 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23132 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23133 # The file is in a subdirectory.
23134 test ! -d "$ac_dir" && mkdir "$ac_dir"
23135 fi
23136 rm -f $ac_file
23137 mv conftest.h $ac_file
23138 fi
23139fi; done
23140
23141EOF
23142cat >> $CONFIG_STATUS <<EOF
23143
23144 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23145 LN_S="${LN_S}"
23146
23147
23148EOF
23149cat >> $CONFIG_STATUS <<\EOF
23150
23151 if test ! -h wx-config; then
23152 chmod +x wx-config
23153 mv wx-config wx${TOOLCHAIN_NAME}-config
23154 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23155 fi
23156
23157 if test ! -d lib; then
23158 mkdir lib
23159 fi
23160 if test ! -d lib/wx; then
23161 mkdir lib/wx
23162 fi
23163 if test ! -d lib/wx/include; then
23164 mkdir lib/wx/include
23165 fi
23166 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23167 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23168 fi
23169 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23170 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23171 fi
23172 if test -f setup.h; then
23173 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23174 fi
23175
23176exit 0
23177EOF
23178chmod +x $CONFIG_STATUS
23179rm -fr confdefs* $ac_clean_files
23180test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23181
23182if test "$no_recursion" != yes; then
23183
23184 # Remove --cache-file and --srcdir arguments so they do not pile up.
23185 ac_sub_configure_args=
23186 ac_prev=
23187 for ac_arg in $ac_configure_args; do
23188 if test -n "$ac_prev"; then
23189 ac_prev=
23190 continue
23191 fi
23192 case "$ac_arg" in
23193 -cache-file | --cache-file | --cache-fil | --cache-fi \
23194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23195 ac_prev=cache_file ;;
23196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23198 ;;
23199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23200 ac_prev=srcdir ;;
23201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23202 ;;
23203 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23204 esac
23205 done
23206
23207 for ac_config_dir in demos samples utils contrib; do
23208
23209 # Do not complain, so a configure script can configure whichever
23210 # parts of a large source tree are present.
23211 if test ! -d $srcdir/$ac_config_dir; then
23212 continue
23213 fi
23214
23215 echo configuring in $ac_config_dir
23216
23217 case "$srcdir" in
23218 .) ;;
23219 *)
23220 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23221 else
23222 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23223 fi
23224 ;;
23225 esac
23226
23227 ac_popdir=`pwd`
23228 cd $ac_config_dir
23229
23230 # A "../" for each directory in /$ac_config_dir.
23231 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23232
23233 case "$srcdir" in
23234 .) # No --srcdir option. We are building in place.
23235 ac_sub_srcdir=$srcdir ;;
23236 /*) # Absolute path.
23237 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23238 *) # Relative path.
23239 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23240 esac
23241
23242 # Check for guested configure; otherwise get Cygnus style configure.
23243 if test -f $ac_sub_srcdir/configure; then
23244 ac_sub_configure=$ac_sub_srcdir/configure
23245 elif test -f $ac_sub_srcdir/configure.in; then
23246 ac_sub_configure=$ac_configure
23247 else
23248 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23249 ac_sub_configure=
23250 fi
23251
23252 # The recursion is here.
23253 if test -n "$ac_sub_configure"; then
23254
23255 # Make the cache file name correct relative to the subdirectory.
23256 case "$cache_file" in
23257 /*) ac_sub_cache_file=$cache_file ;;
23258 *) # Relative path.
23259 ac_sub_cache_file="$ac_dots$cache_file" ;;
23260 esac
23261 case "$ac_given_INSTALL" in
23262 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23263 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23264 esac
23265
23266 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23267 # The eval makes quoting arguments work.
23268 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23269 then :
23270 else
23271 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23272 fi
23273 fi
23274
23275 cd $ac_popdir
23276 done
23277fi
23278
23279
23280echo
23281echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23282echo ""
23283echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23284
23285echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23286echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23287echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23288
23289echo " What level of wxWindows compatibility should be enabled?"
23290echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23291echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23292echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23293
23294echo " Which libraries should wxWindows use?"
23295echo " jpeg ${wxUSE_LIBJPEG-none}"
23296echo " png ${wxUSE_LIBPNG-none}"
23297echo " regex ${wxUSE_REGEX}"
23298echo " tiff ${wxUSE_LIBTIFF-none}"
23299echo " zlib ${wxUSE_ZLIB}"
23300echo " odbc ${wxUSE_ODBC}"
23301
23302echo ""
23303