]> git.saurik.com Git - wxWidgets.git/blob - configure
added Mac resource with icon
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6 # generated automatically by aclocal 1.7.2 -*- Autoconf -*-
7
8 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This file is free software; the Free Software Foundation
11 # gives unlimited permission to copy and/or distribute it,
12 # with or without modifications, as long as this notice is preserved.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
16 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
17 # PARTICULAR PURPOSE.
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
66
67
68
69
70
71
72
73
74
75 # Configure paths for GTK+
76 # Owen Taylor 1997-2001
77
78
79
80 # Configure paths for GTK+
81 # Owen Taylor 97-11-3
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127 # Guess values for system-dependent variables and create Makefiles.
128 # Generated automatically using autoconf version 2.13
129 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 #
131 # This configure script is free software; the Free Software Foundation
132 # gives unlimited permission to copy, distribute and modify it.
133
134 # Defaults:
135 ac_help=
136 ac_default_prefix=/usr/local
137 # Any additions from configure.in:
138 ac_help="$ac_help
139 --enable-gui use GUI classes"
140 ac_help="$ac_help
141 --enable-universal use wxWindows GUI controls instead of native ones"
142 ac_help="$ac_help
143 --with-gtk use GTK+"
144 ac_help="$ac_help
145 --with-motif use Motif/Lesstif"
146 ac_help="$ac_help
147 --with-mac use Mac OS X"
148 ac_help="$ac_help
149 --with-cocoa use Cocoa"
150 ac_help="$ac_help
151 --with-wine use Wine"
152 ac_help="$ac_help
153 --with-msw use MS-Windows"
154 ac_help="$ac_help
155 --with-pm use OS/2 Presentation Manager"
156 ac_help="$ac_help
157 --with-mgl use SciTech MGL"
158 ac_help="$ac_help
159 --with-microwin use MicroWindows"
160 ac_help="$ac_help
161 --with-x11 use X11"
162 ac_help="$ac_help
163 --enable-nanox use NanoX"
164 ac_help="$ac_help
165 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
166 ac_help="$ac_help
167 --with-libpng use libpng (PNG image format)"
168 ac_help="$ac_help
169 --with-libjpeg use libjpeg (JPEG file format)"
170 ac_help="$ac_help
171 --with-libtiff use libtiff (TIFF file format)"
172 ac_help="$ac_help
173 --with-opengl use OpenGL (or Mesa)"
174 ac_help="$ac_help
175 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
176 ac_help="$ac_help
177 --with-regex enable support for wxRegEx class"
178 ac_help="$ac_help
179 --with-zlib use zlib for LZW compression"
180 ac_help="$ac_help
181 --with-odbc use the IODBC and wxODBC classes"
182 ac_help="$ac_help
183 --enable-shared create shared library code"
184 ac_help="$ac_help
185 --enable-soname set the DT_SONAME field in ELF shared libraries"
186 ac_help="$ac_help
187 --enable-optimise create optimised code"
188 ac_help="$ac_help
189 --enable-debug same as debug_flag and debug_info"
190 ac_help="$ac_help
191 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
192 ac_help="$ac_help
193 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
194 ac_help="$ac_help
195 --enable-debug_info create code with debugging information"
196 ac_help="$ac_help
197 --enable-debug_gdb create code with extra GDB debugging information"
198 ac_help="$ac_help
199 --enable-debug_cntxt use wxDebugContext"
200 ac_help="$ac_help
201 --enable-mem_tracing create code with memory tracing"
202 ac_help="$ac_help
203 --enable-profile create code with profiling information"
204 ac_help="$ac_help
205 --enable-no_rtti create code without RTTI information"
206 ac_help="$ac_help
207 --enable-no_exceptions create code without C++ exceptions handling"
208 ac_help="$ac_help
209 --enable-permissive compile code disregarding strict ANSI"
210 ac_help="$ac_help
211 --enable-no_deps create code without dependency information"
212 ac_help="$ac_help
213 --enable-compat20 enable wxWindows 2.0 compatibility"
214 ac_help="$ac_help
215 --enable-compat22 enable wxWindows 2.2 compatibility"
216 ac_help="$ac_help
217 --disable-compat24 disable wxWindows 2.4 compatibility"
218 ac_help="$ac_help
219 --enable-rpath=DIR output the rpath flag from wx-config"
220 ac_help="$ac_help
221 --enable-intl use internationalization system"
222 ac_help="$ac_help
223 --enable-config use wxConfig (and derived) classes"
224 ac_help="$ac_help
225 --enable-protocols use wxProtocol and derived classes"
226 ac_help="$ac_help
227 --enable-ftp use wxFTP (requires wxProtocol"
228 ac_help="$ac_help
229 --enable-http use wxHTTP (requires wxProtocol"
230 ac_help="$ac_help
231 --enable-fileproto use wxFileProto class (requires wxProtocol"
232 ac_help="$ac_help
233 --enable-sockets use socket/network classes"
234 ac_help="$ac_help
235 --enable-ole use OLE classes"
236 ac_help="$ac_help
237 --enable-dataobj use data object classes"
238 ac_help="$ac_help
239 --enable-ipc use interprocess communication (wxSocket etc.)"
240 ac_help="$ac_help
241 --enable-cmdline use wxCmdLineParser class"
242 ac_help="$ac_help
243 --enable-datetime use wxDateTime class"
244 ac_help="$ac_help
245 --enable-stopwatch use wxStopWatch class"
246 ac_help="$ac_help
247 --enable-dialupman use dialup network classes"
248 ac_help="$ac_help
249 --enable-apple_ieee use the Apple IEEE codec"
250 ac_help="$ac_help
251 --enable-timer use wxTimer class"
252 ac_help="$ac_help
253 --enable-wave use wxWave class"
254 ac_help="$ac_help
255 --enable-fraction use wxFraction class"
256 ac_help="$ac_help
257 --enable-dynlib use wxLibrary class for DLL loading"
258 ac_help="$ac_help
259 --enable-dynamicloader use (new) wxDynamicLibrary class"
260 ac_help="$ac_help
261 --enable-longlong use wxLongLong class"
262 ac_help="$ac_help
263 --enable-geometry use geometry class"
264 ac_help="$ac_help
265 --enable-log use logging system"
266 ac_help="$ac_help
267 --enable-streams use wxStream etc classes"
268 ac_help="$ac_help
269 --enable-file use wxFile classes"
270 ac_help="$ac_help
271 --enable-ffile use wxFFile classes"
272 ac_help="$ac_help
273 --enable-textbuf use wxTextBuffer class"
274 ac_help="$ac_help
275 --enable-textfile use wxTextFile class"
276 ac_help="$ac_help
277 --enable-fontmap use font encodings conversion classes"
278 ac_help="$ac_help
279 --enable-unicode compile wxString with Unicode support"
280 ac_help="$ac_help
281 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
282 ac_help="$ac_help
283 --enable-wxprintfv use wxWindows implementation of vprintf()"
284 ac_help="$ac_help
285 --enable-std_iostreams use standard C++ stream classes"
286 ac_help="$ac_help
287 --enable-filesystem use virtual file systems classes"
288 ac_help="$ac_help
289 --enable-fs_inet use virtual HTTP/FTP filesystems"
290 ac_help="$ac_help
291 --enable-fs_zip use virtual ZIP filesystems"
292 ac_help="$ac_help
293 --enable-zipstream use wxZipInputStream"
294 ac_help="$ac_help
295 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
296 ac_help="$ac_help
297 --enable-snglinst use wxSingleInstanceChecker class"
298 ac_help="$ac_help
299 --enable-mimetype use wxMimeTypesManager"
300 ac_help="$ac_help
301 --enable-sysoptions use wxSystemOptions"
302 ac_help="$ac_help
303 --enable-url use wxURL class"
304 ac_help="$ac_help
305 --enable-protocol use wxProtocol class"
306 ac_help="$ac_help
307 --enable-protocol-http HTTP support in wxProtocol"
308 ac_help="$ac_help
309 --enable-protocol-ftp FTP support in wxProtocol"
310 ac_help="$ac_help
311 --enable-protocol-file FILE support in wxProtocol"
312 ac_help="$ac_help
313 --enable-threads use threads"
314 ac_help="$ac_help
315 --enable-docview use document view architecture"
316 ac_help="$ac_help
317 --enable-help use help subsystem"
318 ac_help="$ac_help
319 --enable-mshtmlhelp use MS HTML Help (win32)"
320 ac_help="$ac_help
321 --enable-html use wxHTML sub-library"
322 ac_help="$ac_help
323 --enable-htmlhelp use wxHTML-based help"
324 ac_help="$ac_help
325 --enable-constraints use layout-constraints system"
326 ac_help="$ac_help
327 --enable-printarch use printing architecture"
328 ac_help="$ac_help
329 --enable-mdi use multiple document interface architecture"
330 ac_help="$ac_help
331 --enable-loggui use standard GUI logger"
332 ac_help="$ac_help
333 --enable-logwin use wxLogWindow"
334 ac_help="$ac_help
335 --enable-logdialog use wxLogDialog"
336 ac_help="$ac_help
337 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
338 ac_help="$ac_help
339 --enable-prologio not available; see contrib"
340 ac_help="$ac_help
341 --enable-resources not available; see contrib"
342 ac_help="$ac_help
343 --enable-clipboard use wxClipboard class"
344 ac_help="$ac_help
345 --enable-dnd use Drag'n'Drop classes"
346 ac_help="$ac_help
347 --enable-metafile use win32 metafiles"
348 ac_help="$ac_help
349 --enable-controls use all usual controls"
350 ac_help="$ac_help
351 --enable-accel use accelerators"
352 ac_help="$ac_help
353 --enable-button use wxButton class"
354 ac_help="$ac_help
355 --enable-bmpbutton use wxBitmapButton class"
356 ac_help="$ac_help
357 --enable-calendar use wxCalendarCtrl class"
358 ac_help="$ac_help
359 --enable-caret use wxCaret class"
360 ac_help="$ac_help
361 --enable-checkbox use wxCheckBox class"
362 ac_help="$ac_help
363 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
364 ac_help="$ac_help
365 --enable-choice use wxChoice class"
366 ac_help="$ac_help
367 --enable-combobox use wxComboBox class"
368 ac_help="$ac_help
369 --enable-display use wxDisplay class"
370 ac_help="$ac_help
371 --enable-gauge use wxGauge class"
372 ac_help="$ac_help
373 --enable-grid use wxGrid class"
374 ac_help="$ac_help
375 --enable-imaglist use wxImageList class"
376 ac_help="$ac_help
377 --enable-listbox use wxListBox class"
378 ac_help="$ac_help
379 --enable-listctrl use wxListCtrl class"
380 ac_help="$ac_help
381 --enable-notebook use wxNotebook class"
382 ac_help="$ac_help
383 --enable-radiobox use wxRadioBox class"
384 ac_help="$ac_help
385 --enable-radiobtn use wxRadioButton class"
386 ac_help="$ac_help
387 --enable-sash use wxSashWindow class"
388 ac_help="$ac_help
389 --enable-scrollbar use wxScrollBar class and scrollable windows"
390 ac_help="$ac_help
391 --enable-slider use wxSlider class"
392 ac_help="$ac_help
393 --enable-spinbtn use wxSpinButton class"
394 ac_help="$ac_help
395 --enable-spinctrl use wxSpinCtrl class"
396 ac_help="$ac_help
397 --enable-splitter use wxSplitterWindow class"
398 ac_help="$ac_help
399 --enable-statbmp use wxStaticBitmap class"
400 ac_help="$ac_help
401 --enable-statbox use wxStaticBox class"
402 ac_help="$ac_help
403 --enable-statline use wxStaticLine class"
404 ac_help="$ac_help
405 --enable-stattext use wxStaticText class"
406 ac_help="$ac_help
407 --enable-statusbar use wxStatusBar class"
408 ac_help="$ac_help
409 --enable-tabdialog use wxTabControl class"
410 ac_help="$ac_help
411 --enable-textctrl use wxTextCtrl class"
412 ac_help="$ac_help
413 --enable-togglebtn use wxToggleButton class"
414 ac_help="$ac_help
415 --enable-toolbar use wxToolBar class"
416 ac_help="$ac_help
417 --enable-tbarnative use native wxToolBar class"
418 ac_help="$ac_help
419 --enable-tbarsmpl use wxToolBarSimple class"
420 ac_help="$ac_help
421 --enable-treectrl use wxTreeCtrl class"
422 ac_help="$ac_help
423 --enable-tipwindow use wxTipWindow class"
424 ac_help="$ac_help
425 --enable-popupwin use wxPopUpWindow class"
426 ac_help="$ac_help
427 --enable-commondlg use all common dialogs"
428 ac_help="$ac_help
429 --enable-choicedlg use wxChoiceDialog"
430 ac_help="$ac_help
431 --enable-coldlg use wxColourDialog"
432 ac_help="$ac_help
433 --enable-filedlg use wxFileDialog"
434 ac_help="$ac_help
435 --enable-finddlg use wxFindReplaceDialog"
436 ac_help="$ac_help
437 --enable-fontdlg use wxFontDialog"
438 ac_help="$ac_help
439 --enable-dirdlg use wxDirDialog"
440 ac_help="$ac_help
441 --enable-msgdlg use wxMessageDialog"
442 ac_help="$ac_help
443 --enable-numberdlg use wxNumberEntryDialog"
444 ac_help="$ac_help
445 --enable-splash use wxSplashScreen"
446 ac_help="$ac_help
447 --enable-textdlg use wxTextDialog"
448 ac_help="$ac_help
449 --enable-tipdlg use startup tips"
450 ac_help="$ac_help
451 --enable-progressdlg use wxProgressDialog"
452 ac_help="$ac_help
453 --enable-wizarddlg use wxWizard"
454 ac_help="$ac_help
455 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
456 ac_help="$ac_help
457 --enable-miniframe use wxMiniFrame class"
458 ac_help="$ac_help
459 --enable-tooltips use wxToolTip class"
460 ac_help="$ac_help
461 --enable-splines use spline drawing code"
462 ac_help="$ac_help
463 --enable-validators use wxValidator and derived classes"
464 ac_help="$ac_help
465 --enable-busyinfo use wxBusyInfo"
466 ac_help="$ac_help
467 --enable-joystick use wxJoystick (Linux only)"
468 ac_help="$ac_help
469 --enable-metafiles use wxMetaFile (Windows only)"
470 ac_help="$ac_help
471 --enable-dragimage use wxDragImage"
472 ac_help="$ac_help
473 --enable-accessibility enable accessibility support"
474 ac_help="$ac_help
475 --enable-palette use wxPalette class"
476 ac_help="$ac_help
477 --enable-image use wxImage class"
478 ac_help="$ac_help
479 --enable-gif use gif images (GIF file format)"
480 ac_help="$ac_help
481 --enable-pcx use pcx images (PCX file format)"
482 ac_help="$ac_help
483 --enable-iff use iff images (IFF file format)"
484 ac_help="$ac_help
485 --enable-pnm use pnm images (PNM file format)"
486 ac_help="$ac_help
487 --enable-xpm use xpm images (XPM file format)"
488 ac_help="$ac_help
489 --enable-icocur use Windows ICO and CUR formats"
490 ac_help="$ac_help
491 --disable-largefile omit support for large files"
492 ac_help="$ac_help
493 --disable-gtktest do not try to compile and run a test GTK+ program"
494 ac_help="$ac_help
495 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
496 ac_help="$ac_help
497 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
498 ac_help="$ac_help
499 --disable-gtktest Do not try to compile and run a test GTK program"
500 ac_help="$ac_help
501 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
502 ac_help="$ac_help
503 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
504 ac_help="$ac_help
505 --disable-gtktest Do not try to compile and run a test GTK program"
506 ac_help="$ac_help
507 --with-x use the X Window System"
508 ac_help="$ac_help
509 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
510
511 # Initialize some variables set by options.
512 # The variables have the same names as the options, with
513 # dashes changed to underlines.
514 build=NONE
515 cache_file=./config.cache
516 exec_prefix=NONE
517 host=NONE
518 no_create=
519 nonopt=NONE
520 no_recursion=
521 prefix=NONE
522 program_prefix=NONE
523 program_suffix=NONE
524 program_transform_name=s,x,x,
525 silent=
526 site=
527 srcdir=
528 target=NONE
529 verbose=
530 x_includes=NONE
531 x_libraries=NONE
532 bindir='${exec_prefix}/bin'
533 sbindir='${exec_prefix}/sbin'
534 libexecdir='${exec_prefix}/libexec'
535 datadir='${prefix}/share'
536 sysconfdir='${prefix}/etc'
537 sharedstatedir='${prefix}/com'
538 localstatedir='${prefix}/var'
539 libdir='${exec_prefix}/lib'
540 includedir='${prefix}/include'
541 oldincludedir='/usr/include'
542 infodir='${prefix}/info'
543 mandir='${prefix}/man'
544
545 # Initialize some other variables.
546 subdirs=
547 MFLAGS= MAKEFLAGS=
548 SHELL=${CONFIG_SHELL-/bin/sh}
549 # Maximum number of lines to put in a shell here document.
550 ac_max_here_lines=12
551
552 ac_prev=
553 for ac_option
554 do
555
556 # If the previous option needs an argument, assign it.
557 if test -n "$ac_prev"; then
558 eval "$ac_prev=\$ac_option"
559 ac_prev=
560 continue
561 fi
562
563 case "$ac_option" in
564 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
565 *) ac_optarg= ;;
566 esac
567
568 # Accept the important Cygnus configure options, so we can diagnose typos.
569
570 case "$ac_option" in
571
572 -bindir | --bindir | --bindi | --bind | --bin | --bi)
573 ac_prev=bindir ;;
574 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
575 bindir="$ac_optarg" ;;
576
577 -build | --build | --buil | --bui | --bu)
578 ac_prev=build ;;
579 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
580 build="$ac_optarg" ;;
581
582 -cache-file | --cache-file | --cache-fil | --cache-fi \
583 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
584 ac_prev=cache_file ;;
585 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
586 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
587 cache_file="$ac_optarg" ;;
588
589 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
590 ac_prev=datadir ;;
591 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
592 | --da=*)
593 datadir="$ac_optarg" ;;
594
595 -disable-* | --disable-*)
596 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
597 # Reject names that are not valid shell variable names.
598 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
599 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
600 fi
601 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
602 eval "enable_${ac_feature}=no" ;;
603
604 -enable-* | --enable-*)
605 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
606 # Reject names that are not valid shell variable names.
607 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
608 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
609 fi
610 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
611 case "$ac_option" in
612 *=*) ;;
613 *) ac_optarg=yes ;;
614 esac
615 eval "enable_${ac_feature}='$ac_optarg'" ;;
616
617 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
618 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
619 | --exec | --exe | --ex)
620 ac_prev=exec_prefix ;;
621 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
622 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
623 | --exec=* | --exe=* | --ex=*)
624 exec_prefix="$ac_optarg" ;;
625
626 -gas | --gas | --ga | --g)
627 # Obsolete; use --with-gas.
628 with_gas=yes ;;
629
630 -help | --help | --hel | --he)
631 # Omit some internal or obsolete options to make the list less imposing.
632 # This message is too long to be a string in the A/UX 3.1 sh.
633 cat << EOF
634 Usage: configure [options] [host]
635 Options: [defaults in brackets after descriptions]
636 Configuration:
637 --cache-file=FILE cache test results in FILE
638 --help print this message
639 --no-create do not create output files
640 --quiet, --silent do not print \`checking...' messages
641 --version print the version of autoconf that created configure
642 Directory and file names:
643 --prefix=PREFIX install architecture-independent files in PREFIX
644 [$ac_default_prefix]
645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 [same as prefix]
647 --bindir=DIR user executables in DIR [EPREFIX/bin]
648 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
649 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
650 --datadir=DIR read-only architecture-independent data in DIR
651 [PREFIX/share]
652 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
653 --sharedstatedir=DIR modifiable architecture-independent data in DIR
654 [PREFIX/com]
655 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
656 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
657 --includedir=DIR C header files in DIR [PREFIX/include]
658 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
659 --infodir=DIR info documentation in DIR [PREFIX/info]
660 --mandir=DIR man documentation in DIR [PREFIX/man]
661 --srcdir=DIR find the sources in DIR [configure dir or ..]
662 --program-prefix=PREFIX prepend PREFIX to installed program names
663 --program-suffix=SUFFIX append SUFFIX to installed program names
664 --program-transform-name=PROGRAM
665 run sed PROGRAM on installed program names
666 EOF
667 cat << EOF
668 Host type:
669 --build=BUILD configure for building on BUILD [BUILD=HOST]
670 --host=HOST configure for HOST [guessed]
671 --target=TARGET configure for TARGET [TARGET=HOST]
672 Features and packages:
673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
677 --x-includes=DIR X include files are in DIR
678 --x-libraries=DIR X library files are in DIR
679 EOF
680 if test -n "$ac_help"; then
681 echo "--enable and --with options recognized:$ac_help"
682 fi
683 exit 0 ;;
684
685 -host | --host | --hos | --ho)
686 ac_prev=host ;;
687 -host=* | --host=* | --hos=* | --ho=*)
688 host="$ac_optarg" ;;
689
690 -includedir | --includedir | --includedi | --included | --include \
691 | --includ | --inclu | --incl | --inc)
692 ac_prev=includedir ;;
693 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
694 | --includ=* | --inclu=* | --incl=* | --inc=*)
695 includedir="$ac_optarg" ;;
696
697 -infodir | --infodir | --infodi | --infod | --info | --inf)
698 ac_prev=infodir ;;
699 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
700 infodir="$ac_optarg" ;;
701
702 -libdir | --libdir | --libdi | --libd)
703 ac_prev=libdir ;;
704 -libdir=* | --libdir=* | --libdi=* | --libd=*)
705 libdir="$ac_optarg" ;;
706
707 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
708 | --libexe | --libex | --libe)
709 ac_prev=libexecdir ;;
710 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
711 | --libexe=* | --libex=* | --libe=*)
712 libexecdir="$ac_optarg" ;;
713
714 -localstatedir | --localstatedir | --localstatedi | --localstated \
715 | --localstate | --localstat | --localsta | --localst \
716 | --locals | --local | --loca | --loc | --lo)
717 ac_prev=localstatedir ;;
718 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
719 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
720 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
721 localstatedir="$ac_optarg" ;;
722
723 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
724 ac_prev=mandir ;;
725 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
726 mandir="$ac_optarg" ;;
727
728 -nfp | --nfp | --nf)
729 # Obsolete; use --without-fp.
730 with_fp=no ;;
731
732 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
733 | --no-cr | --no-c)
734 no_create=yes ;;
735
736 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
737 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
738 no_recursion=yes ;;
739
740 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
741 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
742 | --oldin | --oldi | --old | --ol | --o)
743 ac_prev=oldincludedir ;;
744 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
745 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
746 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
747 oldincludedir="$ac_optarg" ;;
748
749 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
750 ac_prev=prefix ;;
751 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
752 prefix="$ac_optarg" ;;
753
754 -program-prefix | --program-prefix | --program-prefi | --program-pref \
755 | --program-pre | --program-pr | --program-p)
756 ac_prev=program_prefix ;;
757 -program-prefix=* | --program-prefix=* | --program-prefi=* \
758 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
759 program_prefix="$ac_optarg" ;;
760
761 -program-suffix | --program-suffix | --program-suffi | --program-suff \
762 | --program-suf | --program-su | --program-s)
763 ac_prev=program_suffix ;;
764 -program-suffix=* | --program-suffix=* | --program-suffi=* \
765 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
766 program_suffix="$ac_optarg" ;;
767
768 -program-transform-name | --program-transform-name \
769 | --program-transform-nam | --program-transform-na \
770 | --program-transform-n | --program-transform- \
771 | --program-transform | --program-transfor \
772 | --program-transfo | --program-transf \
773 | --program-trans | --program-tran \
774 | --progr-tra | --program-tr | --program-t)
775 ac_prev=program_transform_name ;;
776 -program-transform-name=* | --program-transform-name=* \
777 | --program-transform-nam=* | --program-transform-na=* \
778 | --program-transform-n=* | --program-transform-=* \
779 | --program-transform=* | --program-transfor=* \
780 | --program-transfo=* | --program-transf=* \
781 | --program-trans=* | --program-tran=* \
782 | --progr-tra=* | --program-tr=* | --program-t=*)
783 program_transform_name="$ac_optarg" ;;
784
785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
786 | -silent | --silent | --silen | --sile | --sil)
787 silent=yes ;;
788
789 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
790 ac_prev=sbindir ;;
791 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
792 | --sbi=* | --sb=*)
793 sbindir="$ac_optarg" ;;
794
795 -sharedstatedir | --sharedstatedir | --sharedstatedi \
796 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
797 | --sharedst | --shareds | --shared | --share | --shar \
798 | --sha | --sh)
799 ac_prev=sharedstatedir ;;
800 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
801 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
802 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
803 | --sha=* | --sh=*)
804 sharedstatedir="$ac_optarg" ;;
805
806 -site | --site | --sit)
807 ac_prev=site ;;
808 -site=* | --site=* | --sit=*)
809 site="$ac_optarg" ;;
810
811 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
812 ac_prev=srcdir ;;
813 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
814 srcdir="$ac_optarg" ;;
815
816 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
817 | --syscon | --sysco | --sysc | --sys | --sy)
818 ac_prev=sysconfdir ;;
819 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
820 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
821 sysconfdir="$ac_optarg" ;;
822
823 -target | --target | --targe | --targ | --tar | --ta | --t)
824 ac_prev=target ;;
825 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
826 target="$ac_optarg" ;;
827
828 -v | -verbose | --verbose | --verbos | --verbo | --verb)
829 verbose=yes ;;
830
831 -version | --version | --versio | --versi | --vers)
832 echo "configure generated by autoconf version 2.13"
833 exit 0 ;;
834
835 -with-* | --with-*)
836 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
837 # Reject names that are not valid shell variable names.
838 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
839 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
840 fi
841 ac_package=`echo $ac_package| sed 's/-/_/g'`
842 case "$ac_option" in
843 *=*) ;;
844 *) ac_optarg=yes ;;
845 esac
846 eval "with_${ac_package}='$ac_optarg'" ;;
847
848 -without-* | --without-*)
849 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
850 # Reject names that are not valid shell variable names.
851 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
852 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
853 fi
854 ac_package=`echo $ac_package| sed 's/-/_/g'`
855 eval "with_${ac_package}=no" ;;
856
857 --x)
858 # Obsolete; use --with-x.
859 with_x=yes ;;
860
861 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
862 | --x-incl | --x-inc | --x-in | --x-i)
863 ac_prev=x_includes ;;
864 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
865 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
866 x_includes="$ac_optarg" ;;
867
868 -x-libraries | --x-libraries | --x-librarie | --x-librari \
869 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
870 ac_prev=x_libraries ;;
871 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
872 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
873 x_libraries="$ac_optarg" ;;
874
875 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
876 ;;
877
878 *)
879 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
880 echo "configure: warning: $ac_option: invalid host type" 1>&2
881 fi
882 if test "x$nonopt" != xNONE; then
883 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
884 fi
885 nonopt="$ac_option"
886 ;;
887
888 esac
889 done
890
891 if test -n "$ac_prev"; then
892 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
893 fi
894
895 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
896
897 # File descriptor usage:
898 # 0 standard input
899 # 1 file creation
900 # 2 errors and warnings
901 # 3 some systems may open it to /dev/tty
902 # 4 used on the Kubota Titan
903 # 6 checking for... messages and results
904 # 5 compiler messages saved in config.log
905 if test "$silent" = yes; then
906 exec 6>/dev/null
907 else
908 exec 6>&1
909 fi
910 exec 5>./config.log
911
912 echo "\
913 This file contains any messages produced by compilers while
914 running configure, to aid debugging if configure makes a mistake.
915 " 1>&5
916
917 # Strip out --no-create and --no-recursion so they do not pile up.
918 # Also quote any args containing shell metacharacters.
919 ac_configure_args=
920 for ac_arg
921 do
922 case "$ac_arg" in
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c) ;;
925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
927 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
928 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
929 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
930 esac
931 done
932
933 # NLS nuisances.
934 # Only set these to C if already set. These must not be set unconditionally
935 # because not all systems understand e.g. LANG=C (notably SCO).
936 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
937 # Non-C LC_CTYPE values break the ctype check.
938 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
939 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
940 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
941 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
942
943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
944 rm -rf conftest* confdefs.h
945 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
946 echo > confdefs.h
947
948 # A filename unique to this package, relative to the directory that
949 # configure is in, which we can look for to find out if srcdir is correct.
950 ac_unique_file=wx-config.in
951
952 # Find the source files, if location was not specified.
953 if test -z "$srcdir"; then
954 ac_srcdir_defaulted=yes
955 # Try the directory containing this script, then its parent.
956 ac_prog=$0
957 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
958 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
959 srcdir=$ac_confdir
960 if test ! -r $srcdir/$ac_unique_file; then
961 srcdir=..
962 fi
963 else
964 ac_srcdir_defaulted=no
965 fi
966 if test ! -r $srcdir/$ac_unique_file; then
967 if test "$ac_srcdir_defaulted" = yes; then
968 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
969 else
970 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
971 fi
972 fi
973 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
974
975 # Prefer explicitly selected file to automatically selected ones.
976 if test -z "$CONFIG_SITE"; then
977 if test "x$prefix" != xNONE; then
978 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
979 else
980 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
981 fi
982 fi
983 for ac_site_file in $CONFIG_SITE; do
984 if test -r "$ac_site_file"; then
985 echo "loading site script $ac_site_file"
986 . "$ac_site_file"
987 fi
988 done
989
990 if test -r "$cache_file"; then
991 echo "loading cache $cache_file"
992 . $cache_file
993 else
994 echo "creating cache $cache_file"
995 > $cache_file
996 fi
997
998 ac_ext=c
999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1000 ac_cpp='$CPP $CPPFLAGS'
1001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1003 cross_compiling=$ac_cv_prog_cc_cross
1004
1005 ac_exeext=
1006 ac_objext=o
1007 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1008 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1009 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1010 ac_n= ac_c='
1011 ' ac_t=' '
1012 else
1013 ac_n=-n ac_c= ac_t=
1014 fi
1015 else
1016 ac_n= ac_c='\c' ac_t=
1017 fi
1018
1019
1020
1021 ac_aux_dir=
1022 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1023 if test -f $ac_dir/install-sh; then
1024 ac_aux_dir=$ac_dir
1025 ac_install_sh="$ac_aux_dir/install-sh -c"
1026 break
1027 elif test -f $ac_dir/install.sh; then
1028 ac_aux_dir=$ac_dir
1029 ac_install_sh="$ac_aux_dir/install.sh -c"
1030 break
1031 fi
1032 done
1033 if test -z "$ac_aux_dir"; then
1034 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1035 fi
1036 ac_config_guess=$ac_aux_dir/config.guess
1037 ac_config_sub=$ac_aux_dir/config.sub
1038 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1039
1040
1041 # Do some error checking and defaulting for the host and target type.
1042 # The inputs are:
1043 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1044 #
1045 # The rules are:
1046 # 1. You are not allowed to specify --host, --target, and nonopt at the
1047 # same time.
1048 # 2. Host defaults to nonopt.
1049 # 3. If nonopt is not specified, then host defaults to the current host,
1050 # as determined by config.guess.
1051 # 4. Target and build default to nonopt.
1052 # 5. If nonopt is not specified, then target and build default to host.
1053
1054 # The aliases save the names the user supplied, while $host etc.
1055 # will get canonicalized.
1056 case $host---$target---$nonopt in
1057 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1058 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1059 esac
1060
1061
1062 # Make sure we can run config.sub.
1063 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1064 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1065 fi
1066
1067 echo $ac_n "checking host system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking host system type" >&5
1069
1070 host_alias=$host
1071 case "$host_alias" in
1072 NONE)
1073 case $nonopt in
1074 NONE)
1075 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1076 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1077 fi ;;
1078 *) host_alias=$nonopt ;;
1079 esac ;;
1080 esac
1081
1082 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1083 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1084 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1085 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1086 echo "$ac_t""$host" 1>&6
1087
1088 echo $ac_n "checking target system type""... $ac_c" 1>&6
1089 echo "configure:1090: checking target system type" >&5
1090
1091 target_alias=$target
1092 case "$target_alias" in
1093 NONE)
1094 case $nonopt in
1095 NONE) target_alias=$host_alias ;;
1096 *) target_alias=$nonopt ;;
1097 esac ;;
1098 esac
1099
1100 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1101 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1102 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1103 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1104 echo "$ac_t""$target" 1>&6
1105
1106 echo $ac_n "checking build system type""... $ac_c" 1>&6
1107 echo "configure:1108: checking build system type" >&5
1108
1109 build_alias=$build
1110 case "$build_alias" in
1111 NONE)
1112 case $nonopt in
1113 NONE) build_alias=$host_alias ;;
1114 *) build_alias=$nonopt ;;
1115 esac ;;
1116 esac
1117
1118 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1119 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1122 echo "$ac_t""$build" 1>&6
1123
1124 test "$host_alias" != "$target_alias" &&
1125 test "$program_prefix$program_suffix$program_transform_name" = \
1126 NONENONEs,x,x, &&
1127 program_prefix=${target_alias}-
1128
1129
1130
1131 WX_MAJOR_VERSION_NUMBER=2
1132 WX_MINOR_VERSION_NUMBER=5
1133 WX_RELEASE_NUMBER=0
1134
1135 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1136 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1137
1138 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1139
1140 WX_CURRENT=0
1141 WX_REVISION=0
1142 WX_AGE=0
1143
1144
1145
1146 USE_UNIX=1
1147 USE_WIN32=0
1148 USE_DOS=0
1149 USE_BEOS=0
1150 USE_MAC=0
1151
1152 USE_AIX=
1153 USE_BSD= USE_DARWIN= USE_FREEBSD=
1154 USE_GNU= USE_HPUX=
1155 USE_LINUX=
1156 USE_NETBSD=
1157 USE_OPENBSD=
1158 USE_OSF= USE_SGI=
1159 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1160 USE_ULTRIX=
1161 USE_UNIXWARE=
1162
1163 USE_ALPHA=
1164
1165 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1166
1167 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1168
1169 DEFAULT_wxUSE_COCOA=0
1170 DEFAULT_wxUSE_GTK=0
1171 DEFAULT_wxUSE_MAC=0
1172 DEFAULT_wxUSE_MGL=0
1173 DEFAULT_wxUSE_MICROWIN=0
1174 DEFAULT_wxUSE_MOTIF=0
1175 DEFAULT_wxUSE_MSW=0
1176 DEFAULT_wxUSE_PM=0
1177 DEFAULT_wxUSE_X11=0
1178
1179 DEFAULT_DEFAULT_wxUSE_COCOA=0
1180 DEFAULT_DEFAULT_wxUSE_GTK=0
1181 DEFAULT_DEFAULT_wxUSE_MAC=0
1182 DEFAULT_DEFAULT_wxUSE_MGL=0
1183 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1184 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1185 DEFAULT_DEFAULT_wxUSE_MSW=0
1186 DEFAULT_DEFAULT_wxUSE_PM=0
1187 DEFAULT_DEFAULT_wxUSE_X11=0
1188
1189 PROGRAM_EXT=
1190 SO_SUFFIX=so
1191 SAMPLES_RPATH_FLAG=
1192
1193 case "${host}" in
1194 *-hp-hpux* )
1195 USE_HPUX=1
1196 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1197 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1198 SO_SUFFIX=sl
1199 cat >> confdefs.h <<\EOF
1200 #define __HPUX__ 1
1201 EOF
1202
1203 ;;
1204 *-*-linux* )
1205 USE_LINUX=1
1206 cat >> confdefs.h <<\EOF
1207 #define __LINUX__ 1
1208 EOF
1209
1210 TMP=`uname -m`
1211 if test "x$TMP" = "xalpha"; then
1212 USE_ALPHA=1
1213 cat >> confdefs.h <<\EOF
1214 #define __ALPHA__ 1
1215 EOF
1216
1217 fi
1218 DEFAULT_DEFAULT_wxUSE_GTK=1
1219 ;;
1220 *-*-gnu* )
1221 USE_GNU=1
1222 cat >> confdefs.h <<\EOF
1223 #define __GNU__ 1
1224 EOF
1225
1226 TMP=`uname -m`
1227 if test "x$TMP" = "xalpha"; then
1228 USE_ALPHA=1
1229 cat >> confdefs.h <<\EOF
1230 #define __ALPHA__ 1
1231 EOF
1232
1233 fi
1234 DEFAULT_DEFAULT_wxUSE_GTK=1
1235 ;;
1236 *-*-irix5* | *-*-irix6* )
1237 USE_SGI=1
1238 USE_SVR4=1
1239 cat >> confdefs.h <<\EOF
1240 #define __SGI__ 1
1241 EOF
1242
1243 cat >> confdefs.h <<\EOF
1244 #define __SVR4__ 1
1245 EOF
1246
1247 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1248 ;;
1249 *-*-solaris2* )
1250 USE_SUN=1
1251 USE_SOLARIS=1
1252 USE_SVR4=1
1253 cat >> confdefs.h <<\EOF
1254 #define __SUN__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __SOLARIS__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __SVR4__ 1
1263 EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1266 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1267 ;;
1268 *-*-sunos4* )
1269 USE_SUN=1
1270 USE_SUNOS=1
1271 USE_BSD=1
1272 cat >> confdefs.h <<\EOF
1273 #define __SUN__ 1
1274 EOF
1275
1276 cat >> confdefs.h <<\EOF
1277 #define __SUNOS__ 1
1278 EOF
1279
1280 cat >> confdefs.h <<\EOF
1281 #define __BSD__ 1
1282 EOF
1283
1284 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1285 ;;
1286 *-*-freebsd*)
1287 USE_BSD=1
1288 USE_FREEBSD=1
1289 cat >> confdefs.h <<\EOF
1290 #define __FREEBSD__ 1
1291 EOF
1292
1293 cat >> confdefs.h <<\EOF
1294 #define __BSD__ 1
1295 EOF
1296
1297 DEFAULT_DEFAULT_wxUSE_GTK=1
1298 ;;
1299 *-*-openbsd*)
1300 USE_BSD=1
1301 USE_OPENBSD=1
1302 cat >> confdefs.h <<\EOF
1303 #define __OPENBSD__ 1
1304 EOF
1305
1306 cat >> confdefs.h <<\EOF
1307 #define __BSD__ 1
1308 EOF
1309
1310 DEFAULT_DEFAULT_wxUSE_GTK=1
1311 ;;
1312 *-*-netbsd*)
1313 USE_BSD=1
1314 USE_NETBSD=1
1315 cat >> confdefs.h <<\EOF
1316 #define __NETBSD__ 1
1317 EOF
1318
1319 cat >> confdefs.h <<\EOF
1320 #define __BSD__ 1
1321 EOF
1322
1323 DEFAULT_DEFAULT_wxUSE_GTK=1
1324 ;;
1325 *-*-osf* )
1326 USE_ALPHA=1
1327 USE_OSF=1
1328 cat >> confdefs.h <<\EOF
1329 #define __ALPHA__ 1
1330 EOF
1331
1332 cat >> confdefs.h <<\EOF
1333 #define __OSF__ 1
1334 EOF
1335
1336 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1337 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1338 ;;
1339 *-*-dgux5* )
1340 USE_ALPHA=1
1341 USE_SVR4=1
1342 cat >> confdefs.h <<\EOF
1343 #define __ALPHA__ 1
1344 EOF
1345
1346 cat >> confdefs.h <<\EOF
1347 #define __SVR4__ 1
1348 EOF
1349
1350 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1351 ;;
1352 *-*-sysv5* )
1353 USE_SYSV=1
1354 USE_SVR4=1
1355 cat >> confdefs.h <<\EOF
1356 #define __SYSV__ 1
1357 EOF
1358
1359 cat >> confdefs.h <<\EOF
1360 #define __SVR4__ 1
1361 EOF
1362
1363 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1364 ;;
1365 *-*-aix* )
1366 USE_AIX=1
1367 USE_SYSV=1
1368 USE_SVR4=1
1369 SO_SUFFIX=a
1370 cat >> confdefs.h <<\EOF
1371 #define __AIX__ 1
1372 EOF
1373
1374 cat >> confdefs.h <<\EOF
1375 #define __SYSV__ 1
1376 EOF
1377
1378 cat >> confdefs.h <<\EOF
1379 #define __SVR4__ 1
1380 EOF
1381
1382 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1383 ;;
1384
1385 *-*-*UnixWare*)
1386 USE_SYSV=1
1387 USE_SVR4=1
1388 USE_UNIXWARE=1
1389 cat >> confdefs.h <<\EOF
1390 #define __UNIXWARE__ 1
1391 EOF
1392
1393 ;;
1394
1395 *-*-cygwin* | *-*-mingw32* )
1396 SO_SUFFIX=dll
1397 PROGRAM_EXT=".exe"
1398 RESCOMP=windres
1399 DEFAULT_DEFAULT_wxUSE_MSW=1
1400 ;;
1401
1402 *-pc-msdosdjgpp )
1403 USE_UNIX=0
1404 USE_DOS=1
1405 cat >> confdefs.h <<\EOF
1406 #define __DOS__ 1
1407 EOF
1408
1409 PROGRAM_EXT=".exe"
1410 DEFAULT_DEFAULT_wxUSE_MGL=1
1411 LIBS="$LIBS -lstdc++"
1412 ;;
1413
1414 *-pc-os2_emx | *-pc-os2-emx )
1415 cat >> confdefs.h <<\EOF
1416 #define __EMX__ 1
1417 EOF
1418
1419 PROGRAM_EXT=".exe"
1420 DEFAULT_DEFAULT_wxUSE_PM=1
1421 ;;
1422
1423 powerpc-*-darwin* )
1424 USE_BSD=1
1425 USE_DARWIN=1
1426 SO_SUFFIX=dylib
1427 cat >> confdefs.h <<\EOF
1428 #define __BSD__ 1
1429 EOF
1430
1431 cat >> confdefs.h <<\EOF
1432 #define __DARWIN__ 1
1433 EOF
1434
1435 cat >> confdefs.h <<\EOF
1436 #define __POWERPC__ 1
1437 EOF
1438
1439 cat >> confdefs.h <<\EOF
1440 #define TARGET_CARBON 1
1441 EOF
1442
1443 DEFAULT_DEFAULT_wxUSE_MAC=1
1444 ;;
1445
1446 *-*-beos* )
1447 USE_BEOS=1
1448 cat >> confdefs.h <<\EOF
1449 #define __BEOS__ 1
1450 EOF
1451
1452 ;;
1453
1454 *)
1455 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1456 esac
1457
1458
1459
1460
1461 wx_arg_cache_file="configarg.cache"
1462 echo "loading argument cache $wx_arg_cache_file"
1463 rm -f ${wx_arg_cache_file}.tmp
1464 touch ${wx_arg_cache_file}.tmp
1465 touch ${wx_arg_cache_file}
1466
1467
1468 DEBUG_CONFIGURE=0
1469 if test $DEBUG_CONFIGURE = 1; then
1470 DEFAULT_wxUSE_UNIVERSAL=no
1471
1472 DEFAULT_wxUSE_NANOX=no
1473
1474 DEFAULT_wxUSE_THREADS=yes
1475
1476 DEFAULT_wxUSE_SHARED=yes
1477 DEFAULT_wxUSE_SONAME=no
1478 DEFAULT_wxUSE_OPTIMISE=no
1479 DEFAULT_wxUSE_PROFILE=no
1480 DEFAULT_wxUSE_NO_DEPS=no
1481 DEFAULT_wxUSE_NO_RTTI=no
1482 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1483 DEFAULT_wxUSE_PERMISSIVE=no
1484 DEFAULT_wxUSE_DEBUG_FLAG=yes
1485 DEFAULT_wxUSE_DEBUG_INFO=yes
1486 DEFAULT_wxUSE_DEBUG_GDB=yes
1487 DEFAULT_wxUSE_MEM_TRACING=no
1488 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1489 DEFAULT_wxUSE_DMALLOC=no
1490 DEFAULT_wxUSE_PRECOMP=no
1491 DEFAULT_wxUSE_APPLE_IEEE=no
1492
1493 DEFAULT_wxUSE_LOG=yes
1494 DEFAULT_wxUSE_LOGWINDOW=no
1495 DEFAULT_wxUSE_LOGGUI=no
1496 DEFAULT_wxUSE_LOGDIALOG=no
1497
1498 DEFAULT_wxUSE_GUI=yes
1499 DEFAULT_wxUSE_CONTROLS=no
1500
1501 DEFAULT_wxUSE_REGEX=no
1502 DEFAULT_wxUSE_ZLIB=no
1503 DEFAULT_wxUSE_LIBPNG=no
1504 DEFAULT_wxUSE_LIBJPEG=no
1505 DEFAULT_wxUSE_LIBTIFF=no
1506 DEFAULT_wxUSE_ODBC=no
1507 DEFAULT_wxUSE_OPENGL=no
1508
1509 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1510 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1511 DEFAULT_wxUSE_STD_IOSTREAM=no
1512 DEFAULT_wxUSE_CMDLINE_PARSER=no
1513 DEFAULT_wxUSE_DATETIME=no
1514 DEFAULT_wxUSE_TIMER=no
1515 DEFAULT_wxUSE_STOPWATCH=no
1516 DEFAULT_wxUSE_FILE=no
1517 DEFAULT_wxUSE_FFILE=no
1518 DEFAULT_wxUSE_TEXTBUFFER=no
1519 DEFAULT_wxUSE_TEXTFILE=no
1520 DEFAULT_wxUSE_WAVE=no
1521 DEFAULT_wxUSE_INTL=no
1522 DEFAULT_wxUSE_CONFIG=no
1523 DEFAULT_wxUSE_FONTMAP=no
1524 DEFAULT_wxUSE_STREAMS=no
1525 DEFAULT_wxUSE_SOCKETS=no
1526 DEFAULT_wxUSE_OLE=no
1527 DEFAULT_wxUSE_DATAOBJ=no
1528 DEFAULT_wxUSE_DIALUP_MANAGER=no
1529 DEFAULT_wxUSE_JOYSTICK=no
1530 DEFAULT_wxUSE_DYNLIB_CLASS=no
1531 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1532 DEFAULT_wxUSE_LONGLONG=no
1533 DEFAULT_wxUSE_GEOMETRY=no
1534
1535 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1536 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1537 DEFAULT_wxUSE_POSTSCRIPT=no
1538
1539 DEFAULT_wxUSE_CLIPBOARD=no
1540 DEFAULT_wxUSE_TOOLTIPS=no
1541 DEFAULT_wxUSE_DRAG_AND_DROP=no
1542 DEFAULT_wxUSE_DRAGIMAGE=no
1543 DEFAULT_wxUSE_SPLINES=no
1544
1545 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1546 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1547 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1548
1549 DEFAULT_wxUSE_RESOURCES=no
1550 DEFAULT_wxUSE_CONSTRAINTS=no
1551 DEFAULT_wxUSE_IPC=no
1552 DEFAULT_wxUSE_HELP=no
1553 DEFAULT_wxUSE_MS_HTML_HELP=no
1554 DEFAULT_wxUSE_WXHTML_HELP=no
1555 DEFAULT_wxUSE_TREELAYOUT=no
1556 DEFAULT_wxUSE_METAFILE=no
1557 DEFAULT_wxUSE_MIMETYPE=no
1558 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1559 DEFAULT_wxUSE_PROTOCOL=no
1560 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1561 DEFAULT_wxUSE_PROTOCOL_FTP=no
1562 DEFAULT_wxUSE_PROTOCOL_FILE=no
1563 DEFAULT_wxUSE_URL=no
1564
1565 DEFAULT_wxUSE_COMMONDLGS=no
1566 DEFAULT_wxUSE_CHOICEDLG=no
1567 DEFAULT_wxUSE_COLOURDLG=no
1568 DEFAULT_wxUSE_DIRDLG=no
1569 DEFAULT_wxUSE_FILEDLG=no
1570 DEFAULT_wxUSE_FINDREPLDLG=no
1571 DEFAULT_wxUSE_FONTDLG=no
1572 DEFAULT_wxUSE_MSGDLG=no
1573 DEFAULT_wxUSE_NUMBERDLG=no
1574 DEFAULT_wxUSE_TEXTDLG=no
1575 DEFAULT_wxUSE_SPLASH=no
1576 DEFAULT_wxUSE_STARTUP_TIPS=no
1577 DEFAULT_wxUSE_PROGRESSDLG=no
1578 DEFAULT_wxUSE_WIZARDDLG=no
1579
1580 DEFAULT_wxUSE_MENUS=no
1581 DEFAULT_wxUSE_MINIFRAME=no
1582 DEFAULT_wxUSE_HTML=no
1583 DEFAULT_wxUSE_FILESYSTEM=no
1584 DEFAULT_wxUSE_FS_INET=no
1585 DEFAULT_wxUSE_FS_ZIP=no
1586 DEFAULT_wxUSE_BUSYINFO=no
1587 DEFAULT_wxUSE_ZIPSTREAM=no
1588 DEFAULT_wxUSE_VALIDATORS=no
1589
1590 DEFAULT_wxUSE_ACCEL=no
1591 DEFAULT_wxUSE_BUTTON=no
1592 DEFAULT_wxUSE_BMPBUTTON=no
1593 DEFAULT_wxUSE_CALCTRL=no
1594 DEFAULT_wxUSE_CARET=no
1595 DEFAULT_wxUSE_CHECKBOX=no
1596 DEFAULT_wxUSE_CHECKLST=no
1597 DEFAULT_wxUSE_CHOICE=no
1598 DEFAULT_wxUSE_COMBOBOX=no
1599 DEFAULT_wxUSE_DISPLAY=no
1600 DEFAULT_wxUSE_GAUGE=no
1601 DEFAULT_wxUSE_GRID=no
1602 DEFAULT_wxUSE_IMAGLIST=no
1603 DEFAULT_wxUSE_LISTBOX=no
1604 DEFAULT_wxUSE_LISTCTRL=no
1605 DEFAULT_wxUSE_NOTEBOOK=no
1606 DEFAULT_wxUSE_RADIOBOX=no
1607 DEFAULT_wxUSE_RADIOBTN=no
1608 DEFAULT_wxUSE_SASH=no
1609 DEFAULT_wxUSE_SCROLLBAR=no
1610 DEFAULT_wxUSE_SLIDER=no
1611 DEFAULT_wxUSE_SPINBTN=no
1612 DEFAULT_wxUSE_SPINCTRL=no
1613 DEFAULT_wxUSE_SPLITTER=no
1614 DEFAULT_wxUSE_STATBMP=no
1615 DEFAULT_wxUSE_STATBOX=no
1616 DEFAULT_wxUSE_STATLINE=no
1617 DEFAULT_wxUSE_STATTEXT=no
1618 DEFAULT_wxUSE_STATUSBAR=yes
1619 DEFAULT_wxUSE_TABDIALOG=no
1620 DEFAULT_wxUSE_TEXTCTRL=no
1621 DEFAULT_wxUSE_TOGGLEBTN=no
1622 DEFAULT_wxUSE_TOOLBAR=no
1623 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1624 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1625 DEFAULT_wxUSE_TREECTRL=no
1626 DEFAULT_wxUSE_POPUPWIN=no
1627 DEFAULT_wxUSE_TIPWINDOW=no
1628
1629 DEFAULT_wxUSE_UNICODE=no
1630 DEFAULT_wxUSE_UNICODE_MSLU=no
1631 DEFAULT_wxUSE_WCSRTOMBS=no
1632
1633 DEFAULT_wxUSE_PALETTE=no
1634 DEFAULT_wxUSE_IMAGE=no
1635 DEFAULT_wxUSE_GIF=no
1636 DEFAULT_wxUSE_PCX=no
1637 DEFAULT_wxUSE_PNM=no
1638 DEFAULT_wxUSE_IFF=no
1639 DEFAULT_wxUSE_XPM=no
1640 DEFAULT_wxUSE_ICO_CUR=no
1641 DEFAULT_wxUSE_ACCESSIBILITY=no
1642 else
1643 DEFAULT_wxUSE_UNIVERSAL=no
1644
1645 DEFAULT_wxUSE_NANOX=no
1646
1647 DEFAULT_wxUSE_THREADS=yes
1648
1649 DEFAULT_wxUSE_SHARED=yes
1650 DEFAULT_wxUSE_SONAME=no
1651 DEFAULT_wxUSE_OPTIMISE=yes
1652 DEFAULT_wxUSE_PROFILE=no
1653 DEFAULT_wxUSE_NO_DEPS=no
1654 DEFAULT_wxUSE_NO_RTTI=no
1655 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1656 DEFAULT_wxUSE_PERMISSIVE=no
1657 DEFAULT_wxUSE_DEBUG_FLAG=no
1658 DEFAULT_wxUSE_DEBUG_INFO=no
1659 DEFAULT_wxUSE_DEBUG_GDB=no
1660 DEFAULT_wxUSE_MEM_TRACING=no
1661 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1662 DEFAULT_wxUSE_DMALLOC=no
1663 DEFAULT_wxUSE_PRECOMP=no
1664 DEFAULT_wxUSE_APPLE_IEEE=yes
1665
1666 DEFAULT_wxUSE_LOG=yes
1667 DEFAULT_wxUSE_LOGWINDOW=yes
1668 DEFAULT_wxUSE_LOGGUI=yes
1669 DEFAULT_wxUSE_LOGDIALOG=yes
1670
1671 DEFAULT_wxUSE_GUI=yes
1672
1673 DEFAULT_wxUSE_REGEX=yes
1674 DEFAULT_wxUSE_ZLIB=yes
1675 DEFAULT_wxUSE_LIBPNG=yes
1676 DEFAULT_wxUSE_LIBJPEG=yes
1677 DEFAULT_wxUSE_LIBTIFF=yes
1678 DEFAULT_wxUSE_ODBC=no
1679 DEFAULT_wxUSE_OPENGL=no
1680
1681 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1682 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1683 DEFAULT_wxUSE_STD_IOSTREAM=no
1684 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1685 DEFAULT_wxUSE_DATETIME=yes
1686 DEFAULT_wxUSE_TIMER=yes
1687 DEFAULT_wxUSE_STOPWATCH=yes
1688 DEFAULT_wxUSE_FILE=yes
1689 DEFAULT_wxUSE_FFILE=yes
1690 DEFAULT_wxUSE_TEXTBUFFER=yes
1691 DEFAULT_wxUSE_TEXTFILE=yes
1692 DEFAULT_wxUSE_WAVE=no
1693 DEFAULT_wxUSE_INTL=yes
1694 DEFAULT_wxUSE_CONFIG=yes
1695 DEFAULT_wxUSE_FONTMAP=yes
1696 DEFAULT_wxUSE_STREAMS=yes
1697 DEFAULT_wxUSE_SOCKETS=yes
1698 DEFAULT_wxUSE_OLE=yes
1699 DEFAULT_wxUSE_DATAOBJ=yes
1700 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1701 DEFAULT_wxUSE_JOYSTICK=yes
1702 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1703 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1704 DEFAULT_wxUSE_LONGLONG=yes
1705 DEFAULT_wxUSE_GEOMETRY=yes
1706
1707 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1708 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1709 DEFAULT_wxUSE_POSTSCRIPT=yes
1710
1711 DEFAULT_wxUSE_CLIPBOARD=yes
1712 DEFAULT_wxUSE_TOOLTIPS=yes
1713 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1714 DEFAULT_wxUSE_DRAGIMAGE=yes
1715 DEFAULT_wxUSE_SPLINES=yes
1716
1717 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1718 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1719 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1720
1721 DEFAULT_wxUSE_RESOURCES=no
1722 DEFAULT_wxUSE_CONSTRAINTS=yes
1723 DEFAULT_wxUSE_IPC=yes
1724 DEFAULT_wxUSE_HELP=yes
1725 DEFAULT_wxUSE_MS_HTML_HELP=yes
1726 DEFAULT_wxUSE_WXHTML_HELP=yes
1727 DEFAULT_wxUSE_TREELAYOUT=yes
1728 DEFAULT_wxUSE_METAFILE=yes
1729 DEFAULT_wxUSE_MIMETYPE=yes
1730 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1731 DEFAULT_wxUSE_PROTOCOL=yes
1732 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1733 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1734 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1735 DEFAULT_wxUSE_URL=yes
1736
1737 DEFAULT_wxUSE_COMMONDLGS=yes
1738 DEFAULT_wxUSE_CHOICEDLG=yes
1739 DEFAULT_wxUSE_COLOURDLG=yes
1740 DEFAULT_wxUSE_DIRDLG=yes
1741 DEFAULT_wxUSE_FILEDLG=yes
1742 DEFAULT_wxUSE_FINDREPLDLG=yes
1743 DEFAULT_wxUSE_FONTDLG=yes
1744 DEFAULT_wxUSE_MSGDLG=yes
1745 DEFAULT_wxUSE_NUMBERDLG=yes
1746 DEFAULT_wxUSE_TEXTDLG=yes
1747 DEFAULT_wxUSE_SPLASH=yes
1748 DEFAULT_wxUSE_STARTUP_TIPS=yes
1749 DEFAULT_wxUSE_PROGRESSDLG=yes
1750 DEFAULT_wxUSE_WIZARDDLG=yes
1751
1752 DEFAULT_wxUSE_MENUS=yes
1753 DEFAULT_wxUSE_MINIFRAME=yes
1754 DEFAULT_wxUSE_HTML=yes
1755 DEFAULT_wxUSE_FILESYSTEM=yes
1756 DEFAULT_wxUSE_FS_INET=yes
1757 DEFAULT_wxUSE_FS_ZIP=yes
1758 DEFAULT_wxUSE_BUSYINFO=yes
1759 DEFAULT_wxUSE_ZIPSTREAM=yes
1760 DEFAULT_wxUSE_VALIDATORS=yes
1761
1762 DEFAULT_wxUSE_ACCEL=yes
1763 DEFAULT_wxUSE_BUTTON=yes
1764 DEFAULT_wxUSE_BMPBUTTON=yes
1765 DEFAULT_wxUSE_CALCTRL=yes
1766 DEFAULT_wxUSE_CARET=yes
1767 DEFAULT_wxUSE_CHECKBOX=yes
1768 DEFAULT_wxUSE_CHECKLST=yes
1769 DEFAULT_wxUSE_CHOICE=yes
1770 DEFAULT_wxUSE_COMBOBOX=yes
1771 DEFAULT_wxUSE_DISPLAY=no
1772 DEFAULT_wxUSE_GAUGE=yes
1773 DEFAULT_wxUSE_GRID=yes
1774 DEFAULT_wxUSE_IMAGLIST=yes
1775 DEFAULT_wxUSE_LISTBOX=yes
1776 DEFAULT_wxUSE_LISTCTRL=yes
1777 DEFAULT_wxUSE_NOTEBOOK=yes
1778 DEFAULT_wxUSE_RADIOBOX=yes
1779 DEFAULT_wxUSE_RADIOBTN=yes
1780 DEFAULT_wxUSE_SASH=yes
1781 DEFAULT_wxUSE_SCROLLBAR=yes
1782 DEFAULT_wxUSE_SLIDER=yes
1783 DEFAULT_wxUSE_SPINBTN=yes
1784 DEFAULT_wxUSE_SPINCTRL=yes
1785 DEFAULT_wxUSE_SPLITTER=yes
1786 DEFAULT_wxUSE_STATBMP=yes
1787 DEFAULT_wxUSE_STATBOX=yes
1788 DEFAULT_wxUSE_STATLINE=yes
1789 DEFAULT_wxUSE_STATTEXT=yes
1790 DEFAULT_wxUSE_STATUSBAR=yes
1791 DEFAULT_wxUSE_TABDIALOG=no
1792 DEFAULT_wxUSE_TEXTCTRL=yes
1793 DEFAULT_wxUSE_TOGGLEBTN=yes
1794 DEFAULT_wxUSE_TOOLBAR=yes
1795 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1796 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1797 DEFAULT_wxUSE_TREECTRL=yes
1798 DEFAULT_wxUSE_POPUPWIN=yes
1799 DEFAULT_wxUSE_TIPWINDOW=yes
1800
1801 DEFAULT_wxUSE_UNICODE=no
1802 DEFAULT_wxUSE_UNICODE_MSLU=yes
1803 DEFAULT_wxUSE_WCSRTOMBS=no
1804
1805 DEFAULT_wxUSE_PALETTE=yes
1806 DEFAULT_wxUSE_IMAGE=yes
1807 DEFAULT_wxUSE_GIF=yes
1808 DEFAULT_wxUSE_PCX=yes
1809 DEFAULT_wxUSE_IFF=no
1810 DEFAULT_wxUSE_PNM=yes
1811 DEFAULT_wxUSE_XPM=yes
1812 DEFAULT_wxUSE_ICO_CUR=yes
1813 DEFAULT_wxUSE_ACCESSIBILITY=no
1814 fi
1815
1816
1817
1818 for toolkit in `echo $ALL_TOOLKITS`; do
1819 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1820 if test "x$LINE" != "x" ; then
1821 has_toolkit_in_cache=1
1822 eval "DEFAULT_$LINE"
1823 eval "CACHE_$toolkit=1"
1824 fi
1825 done
1826
1827
1828
1829 enablestring=
1830 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1831 echo "configure:1832: checking for --${enablestring:-enable}-gui" >&5
1832 no_cache=0
1833 # Check whether --enable-gui or --disable-gui was given.
1834 if test "${enable_gui+set}" = set; then
1835 enableval="$enable_gui"
1836
1837 if test "$enableval" = yes; then
1838 ac_cv_use_gui='wxUSE_GUI=yes'
1839 else
1840 ac_cv_use_gui='wxUSE_GUI=no'
1841 fi
1842
1843 else
1844
1845 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1846 if test "x$LINE" != x ; then
1847 eval "DEFAULT_$LINE"
1848 else
1849 no_cache=1
1850 fi
1851
1852 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1853
1854 fi
1855
1856
1857 eval "$ac_cv_use_gui"
1858 if test "$no_cache" != 1; then
1859 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1860 fi
1861
1862 if test "$wxUSE_GUI" = yes; then
1863 echo "$ac_t""yes" 1>&6
1864 else
1865 echo "$ac_t""no" 1>&6
1866 fi
1867
1868
1869 if test "$wxUSE_GUI" = "yes"; then
1870
1871
1872 enablestring=
1873 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1874 echo "configure:1875: checking for --${enablestring:-enable}-universal" >&5
1875 no_cache=0
1876 # Check whether --enable-universal or --disable-universal was given.
1877 if test "${enable_universal+set}" = set; then
1878 enableval="$enable_universal"
1879
1880 if test "$enableval" = yes; then
1881 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1882 else
1883 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1884 fi
1885
1886 else
1887
1888 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1889 if test "x$LINE" != x ; then
1890 eval "DEFAULT_$LINE"
1891 else
1892 no_cache=1
1893 fi
1894
1895 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1896
1897 fi
1898
1899
1900 eval "$ac_cv_use_universal"
1901 if test "$no_cache" != 1; then
1902 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1903 fi
1904
1905 if test "$wxUSE_UNIVERSAL" = yes; then
1906 echo "$ac_t""yes" 1>&6
1907 else
1908 echo "$ac_t""no" 1>&6
1909 fi
1910
1911 # Check whether --with-gtk or --without-gtk was given.
1912 if test "${with_gtk+set}" = set; then
1913 withval="$with_gtk"
1914 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1915 fi
1916
1917 # Check whether --with-motif or --without-motif was given.
1918 if test "${with_motif+set}" = set; then
1919 withval="$with_motif"
1920 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1921 fi
1922
1923 # Check whether --with-mac or --without-mac was given.
1924 if test "${with_mac+set}" = set; then
1925 withval="$with_mac"
1926 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1927 fi
1928
1929 # Check whether --with-cocoa or --without-cocoa was given.
1930 if test "${with_cocoa+set}" = set; then
1931 withval="$with_cocoa"
1932 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1933 fi
1934
1935 # Check whether --with-wine or --without-wine was given.
1936 if test "${with_wine+set}" = set; then
1937 withval="$with_wine"
1938 wxUSE_WINE="$withval" CACHE_WINE=1
1939 fi
1940
1941 # Check whether --with-msw or --without-msw was given.
1942 if test "${with_msw+set}" = set; then
1943 withval="$with_msw"
1944 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1945 fi
1946
1947 # Check whether --with-pm or --without-pm was given.
1948 if test "${with_pm+set}" = set; then
1949 withval="$with_pm"
1950 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1951 fi
1952
1953 # Check whether --with-mgl or --without-mgl was given.
1954 if test "${with_mgl+set}" = set; then
1955 withval="$with_mgl"
1956 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1957 fi
1958
1959 # Check whether --with-microwin or --without-microwin was given.
1960 if test "${with_microwin+set}" = set; then
1961 withval="$with_microwin"
1962 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1963 fi
1964
1965 # Check whether --with-x11 or --without-x11 was given.
1966 if test "${with_x11+set}" = set; then
1967 withval="$with_x11"
1968 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1969 fi
1970
1971
1972 enablestring=
1973 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1974 echo "configure:1975: checking for --${enablestring:-enable}-nanox" >&5
1975 no_cache=0
1976 # Check whether --enable-nanox or --disable-nanox was given.
1977 if test "${enable_nanox+set}" = set; then
1978 enableval="$enable_nanox"
1979
1980 if test "$enableval" = yes; then
1981 ac_cv_use_nanox='wxUSE_NANOX=yes'
1982 else
1983 ac_cv_use_nanox='wxUSE_NANOX=no'
1984 fi
1985
1986 else
1987
1988 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1989 if test "x$LINE" != x ; then
1990 eval "DEFAULT_$LINE"
1991 else
1992 no_cache=1
1993 fi
1994
1995 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1996
1997 fi
1998
1999
2000 eval "$ac_cv_use_nanox"
2001 if test "$no_cache" != 1; then
2002 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2003 fi
2004
2005 if test "$wxUSE_NANOX" = yes; then
2006 echo "$ac_t""yes" 1>&6
2007 else
2008 echo "$ac_t""no" 1>&6
2009 fi
2010
2011
2012
2013 enablestring=
2014 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
2015 echo "configure:2016: checking for --${enablestring:-enable}-gtk2" >&5
2016 no_cache=0
2017 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2018 if test "${enable_gtk2+set}" = set; then
2019 enableval="$enable_gtk2"
2020
2021 if test "$enableval" = yes; then
2022 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2023 else
2024 ac_cv_use_gtk2='wxUSE_GTK2=no'
2025 fi
2026
2027 else
2028
2029 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
2036 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2037
2038 fi
2039
2040
2041 eval "$ac_cv_use_gtk2"
2042 if test "$no_cache" != 1; then
2043 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2044 fi
2045
2046 if test "$wxUSE_GTK2" = yes; then
2047 echo "$ac_t""yes" 1>&6
2048 else
2049 echo "$ac_t""no" 1>&6
2050 fi
2051
2052
2053
2054 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2055 echo "configure:2056: checking for --with-libpng" >&5
2056 no_cache=0
2057 # Check whether --with-libpng or --without-libpng was given.
2058 if test "${with_libpng+set}" = set; then
2059 withval="$with_libpng"
2060
2061 if test "$withval" = yes; then
2062 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2063 elif test "$withval" = no; then
2064 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2065 elif test "$withval" = sys; then
2066 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2067 elif test "$withval" = builtin; then
2068 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2069 else
2070 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2071 fi
2072
2073 else
2074
2075 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2076 if test "x$LINE" != x ; then
2077 eval "DEFAULT_$LINE"
2078 else
2079 no_cache=1
2080 fi
2081
2082 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2083
2084 fi
2085
2086
2087 eval "$ac_cv_use_libpng"
2088 if test "$no_cache" != 1; then
2089 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2090 fi
2091
2092 if test "$wxUSE_LIBPNG" = yes; then
2093 echo "$ac_t""yes" 1>&6
2094 elif test "$wxUSE_LIBPNG" = no; then
2095 echo "$ac_t""no" 1>&6
2096 elif test "$wxUSE_LIBPNG" = sys; then
2097 echo "$ac_t""system version" 1>&6
2098 elif test "$wxUSE_LIBPNG" = builtin; then
2099 echo "$ac_t""builtin version" 1>&6
2100 else
2101 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2102 fi
2103
2104
2105 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2106 echo "configure:2107: checking for --with-libjpeg" >&5
2107 no_cache=0
2108 # Check whether --with-libjpeg or --without-libjpeg was given.
2109 if test "${with_libjpeg+set}" = set; then
2110 withval="$with_libjpeg"
2111
2112 if test "$withval" = yes; then
2113 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2114 elif test "$withval" = no; then
2115 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2116 elif test "$withval" = sys; then
2117 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2118 elif test "$withval" = builtin; then
2119 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2120 else
2121 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2122 fi
2123
2124 else
2125
2126 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2127 if test "x$LINE" != x ; then
2128 eval "DEFAULT_$LINE"
2129 else
2130 no_cache=1
2131 fi
2132
2133 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2134
2135 fi
2136
2137
2138 eval "$ac_cv_use_libjpeg"
2139 if test "$no_cache" != 1; then
2140 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2141 fi
2142
2143 if test "$wxUSE_LIBJPEG" = yes; then
2144 echo "$ac_t""yes" 1>&6
2145 elif test "$wxUSE_LIBJPEG" = no; then
2146 echo "$ac_t""no" 1>&6
2147 elif test "$wxUSE_LIBJPEG" = sys; then
2148 echo "$ac_t""system version" 1>&6
2149 elif test "$wxUSE_LIBJPEG" = builtin; then
2150 echo "$ac_t""builtin version" 1>&6
2151 else
2152 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2153 fi
2154
2155
2156 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2157 echo "configure:2158: checking for --with-libtiff" >&5
2158 no_cache=0
2159 # Check whether --with-libtiff or --without-libtiff was given.
2160 if test "${with_libtiff+set}" = set; then
2161 withval="$with_libtiff"
2162
2163 if test "$withval" = yes; then
2164 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2165 elif test "$withval" = no; then
2166 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2167 elif test "$withval" = sys; then
2168 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2169 elif test "$withval" = builtin; then
2170 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2171 else
2172 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2173 fi
2174
2175 else
2176
2177 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
2184 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2185
2186 fi
2187
2188
2189 eval "$ac_cv_use_libtiff"
2190 if test "$no_cache" != 1; then
2191 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2192 fi
2193
2194 if test "$wxUSE_LIBTIFF" = yes; then
2195 echo "$ac_t""yes" 1>&6
2196 elif test "$wxUSE_LIBTIFF" = no; then
2197 echo "$ac_t""no" 1>&6
2198 elif test "$wxUSE_LIBTIFF" = sys; then
2199 echo "$ac_t""system version" 1>&6
2200 elif test "$wxUSE_LIBTIFF" = builtin; then
2201 echo "$ac_t""builtin version" 1>&6
2202 else
2203 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2204 fi
2205
2206
2207 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2208 echo "configure:2209: checking for --with-opengl" >&5
2209 no_cache=0
2210 # Check whether --with-opengl or --without-opengl was given.
2211 if test "${with_opengl+set}" = set; then
2212 withval="$with_opengl"
2213
2214 if test "$withval" = yes; then
2215 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2216 else
2217 ac_cv_use_opengl='wxUSE_OPENGL=no'
2218 fi
2219
2220 else
2221
2222 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
2229 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2230
2231 fi
2232
2233
2234 eval "$ac_cv_use_opengl"
2235 if test "$no_cache" != 1; then
2236 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2237 fi
2238
2239 if test "$wxUSE_OPENGL" = yes; then
2240 echo "$ac_t""yes" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2243 fi
2244
2245
2246 fi
2247
2248
2249 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2250 echo "configure:2251: checking for --with-dmalloc" >&5
2251 no_cache=0
2252 # Check whether --with-dmalloc or --without-dmalloc was given.
2253 if test "${with_dmalloc+set}" = set; then
2254 withval="$with_dmalloc"
2255
2256 if test "$withval" = yes; then
2257 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2258 else
2259 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2260 fi
2261
2262 else
2263
2264 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2272
2273 fi
2274
2275
2276 eval "$ac_cv_use_dmalloc"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_DMALLOC" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2289 echo "configure:2290: checking for --with-regex" >&5
2290 no_cache=0
2291 # Check whether --with-regex or --without-regex was given.
2292 if test "${with_regex+set}" = set; then
2293 withval="$with_regex"
2294
2295 if test "$withval" = yes; then
2296 ac_cv_use_regex='wxUSE_REGEX=yes'
2297 elif test "$withval" = no; then
2298 ac_cv_use_regex='wxUSE_REGEX=no'
2299 elif test "$withval" = sys; then
2300 ac_cv_use_regex='wxUSE_REGEX=sys'
2301 elif test "$withval" = builtin; then
2302 ac_cv_use_regex='wxUSE_REGEX=builtin'
2303 else
2304 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2305 fi
2306
2307 else
2308
2309 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
2316 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2317
2318 fi
2319
2320
2321 eval "$ac_cv_use_regex"
2322 if test "$no_cache" != 1; then
2323 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2324 fi
2325
2326 if test "$wxUSE_REGEX" = yes; then
2327 echo "$ac_t""yes" 1>&6
2328 elif test "$wxUSE_REGEX" = no; then
2329 echo "$ac_t""no" 1>&6
2330 elif test "$wxUSE_REGEX" = sys; then
2331 echo "$ac_t""system version" 1>&6
2332 elif test "$wxUSE_REGEX" = builtin; then
2333 echo "$ac_t""builtin version" 1>&6
2334 else
2335 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2336 fi
2337
2338
2339 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2340 echo "configure:2341: checking for --with-zlib" >&5
2341 no_cache=0
2342 # Check whether --with-zlib or --without-zlib was given.
2343 if test "${with_zlib+set}" = set; then
2344 withval="$with_zlib"
2345
2346 if test "$withval" = yes; then
2347 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2348 elif test "$withval" = no; then
2349 ac_cv_use_zlib='wxUSE_ZLIB=no'
2350 elif test "$withval" = sys; then
2351 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2352 elif test "$withval" = builtin; then
2353 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2354 else
2355 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2356 fi
2357
2358 else
2359
2360 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
2367 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2368
2369 fi
2370
2371
2372 eval "$ac_cv_use_zlib"
2373 if test "$no_cache" != 1; then
2374 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2375 fi
2376
2377 if test "$wxUSE_ZLIB" = yes; then
2378 echo "$ac_t""yes" 1>&6
2379 elif test "$wxUSE_ZLIB" = no; then
2380 echo "$ac_t""no" 1>&6
2381 elif test "$wxUSE_ZLIB" = sys; then
2382 echo "$ac_t""system version" 1>&6
2383 elif test "$wxUSE_ZLIB" = builtin; then
2384 echo "$ac_t""builtin version" 1>&6
2385 else
2386 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2387 fi
2388
2389
2390 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2391 echo "configure:2392: checking for --with-odbc" >&5
2392 no_cache=0
2393 # Check whether --with-odbc or --without-odbc was given.
2394 if test "${with_odbc+set}" = set; then
2395 withval="$with_odbc"
2396
2397 if test "$withval" = yes; then
2398 ac_cv_use_odbc='wxUSE_ODBC=yes'
2399 elif test "$withval" = no; then
2400 ac_cv_use_odbc='wxUSE_ODBC=no'
2401 elif test "$withval" = sys; then
2402 ac_cv_use_odbc='wxUSE_ODBC=sys'
2403 elif test "$withval" = builtin; then
2404 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2405 else
2406 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2407 fi
2408
2409 else
2410
2411 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2412 if test "x$LINE" != x ; then
2413 eval "DEFAULT_$LINE"
2414 else
2415 no_cache=1
2416 fi
2417
2418 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2419
2420 fi
2421
2422
2423 eval "$ac_cv_use_odbc"
2424 if test "$no_cache" != 1; then
2425 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2426 fi
2427
2428 if test "$wxUSE_ODBC" = yes; then
2429 echo "$ac_t""yes" 1>&6
2430 elif test "$wxUSE_ODBC" = no; then
2431 echo "$ac_t""no" 1>&6
2432 elif test "$wxUSE_ODBC" = sys; then
2433 echo "$ac_t""system version" 1>&6
2434 elif test "$wxUSE_ODBC" = builtin; then
2435 echo "$ac_t""builtin version" 1>&6
2436 else
2437 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2438 fi
2439
2440
2441
2442
2443 enablestring=
2444 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2445 echo "configure:2446: checking for --${enablestring:-enable}-shared" >&5
2446 no_cache=0
2447 # Check whether --enable-shared or --disable-shared was given.
2448 if test "${enable_shared+set}" = set; then
2449 enableval="$enable_shared"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_shared='wxUSE_SHARED=yes'
2453 else
2454 ac_cv_use_shared='wxUSE_SHARED=no'
2455 fi
2456
2457 else
2458
2459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2467
2468 fi
2469
2470
2471 eval "$ac_cv_use_shared"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_SHARED" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 enablestring=
2484 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2485 echo "configure:2486: checking for --${enablestring:-enable}-soname" >&5
2486 no_cache=0
2487 # Check whether --enable-soname or --disable-soname was given.
2488 if test "${enable_soname+set}" = set; then
2489 enableval="$enable_soname"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_soname='wxUSE_SONAME=yes'
2493 else
2494 ac_cv_use_soname='wxUSE_SONAME=no'
2495 fi
2496
2497 else
2498
2499 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2507
2508 fi
2509
2510
2511 eval "$ac_cv_use_soname"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_SONAME" = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 else
2519 echo "$ac_t""no" 1>&6
2520 fi
2521
2522
2523 enablestring=
2524 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2525 echo "configure:2526: checking for --${enablestring:-enable}-optimise" >&5
2526 no_cache=0
2527 # Check whether --enable-optimise or --disable-optimise was given.
2528 if test "${enable_optimise+set}" = set; then
2529 enableval="$enable_optimise"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2533 else
2534 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2535 fi
2536
2537 else
2538
2539 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2547
2548 fi
2549
2550
2551 eval "$ac_cv_use_optimise"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_OPTIMISE" = yes; then
2557 echo "$ac_t""yes" 1>&6
2558 else
2559 echo "$ac_t""no" 1>&6
2560 fi
2561
2562
2563 enablestring=
2564 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2565 echo "configure:2566: checking for --${enablestring:-enable}-debug" >&5
2566 no_cache=0
2567 # Check whether --enable-debug or --disable-debug was given.
2568 if test "${enable_debug+set}" = set; then
2569 enableval="$enable_debug"
2570
2571 if test "$enableval" = yes; then
2572 ac_cv_use_debug='wxUSE_DEBUG=yes'
2573 else
2574 ac_cv_use_debug='wxUSE_DEBUG=no'
2575 fi
2576
2577 else
2578
2579 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
2586 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2587
2588 fi
2589
2590
2591 eval "$ac_cv_use_debug"
2592 if test "$no_cache" != 1; then
2593 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2594 fi
2595
2596 if test "$wxUSE_DEBUG" = yes; then
2597 echo "$ac_t""yes" 1>&6
2598 else
2599 echo "$ac_t""no" 1>&6
2600 fi
2601
2602
2603
2604 enablestring=
2605 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2606 echo "configure:2607: checking for --${enablestring:-enable}-precomp" >&5
2607 no_cache=0
2608 # Check whether --enable-precomp or --disable-precomp was given.
2609 if test "${enable_precomp+set}" = set; then
2610 enableval="$enable_precomp"
2611
2612 if test "$enableval" = yes; then
2613 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2614 else
2615 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2616 fi
2617
2618 else
2619
2620 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2621 if test "x$LINE" != x ; then
2622 eval "DEFAULT_$LINE"
2623 else
2624 no_cache=1
2625 fi
2626
2627 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2628
2629 fi
2630
2631
2632 eval "$ac_cv_use_precomp"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_PRECOMP" = yes; then
2638 echo "$ac_t""yes" 1>&6
2639 else
2640 echo "$ac_t""no" 1>&6
2641 fi
2642
2643
2644 if test "$wxUSE_DEBUG" = "yes"; then
2645 DEFAULT_wxUSE_DEBUG_FLAG=yes
2646 DEFAULT_wxUSE_DEBUG_INFO=yes
2647 elif test "$wxUSE_DEBUG" = "no"; then
2648 DEFAULT_wxUSE_DEBUG_FLAG=no
2649 DEFAULT_wxUSE_DEBUG_INFO=no
2650 fi
2651
2652
2653 enablestring=
2654 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2655 echo "configure:2656: checking for --${enablestring:-enable}-debug_flag" >&5
2656 no_cache=0
2657 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2658 if test "${enable_debug_flag+set}" = set; then
2659 enableval="$enable_debug_flag"
2660
2661 if test "$enableval" = yes; then
2662 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2663 else
2664 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2665 fi
2666
2667 else
2668
2669 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2677
2678 fi
2679
2680
2681 eval "$ac_cv_use_debug_flag"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_DEBUG_FLAG" = yes; then
2687 echo "$ac_t""yes" 1>&6
2688 else
2689 echo "$ac_t""no" 1>&6
2690 fi
2691
2692
2693 enablestring=
2694 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2695 echo "configure:2696: checking for --${enablestring:-enable}-debug_info" >&5
2696 no_cache=0
2697 # Check whether --enable-debug_info or --disable-debug_info was given.
2698 if test "${enable_debug_info+set}" = set; then
2699 enableval="$enable_debug_info"
2700
2701 if test "$enableval" = yes; then
2702 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2703 else
2704 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2705 fi
2706
2707 else
2708
2709 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2717
2718 fi
2719
2720
2721 eval "$ac_cv_use_debug_info"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_DEBUG_INFO" = yes; then
2727 echo "$ac_t""yes" 1>&6
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731
2732
2733 enablestring=
2734 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2735 echo "configure:2736: checking for --${enablestring:-enable}-debug_gdb" >&5
2736 no_cache=0
2737 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2738 if test "${enable_debug_gdb+set}" = set; then
2739 enableval="$enable_debug_gdb"
2740
2741 if test "$enableval" = yes; then
2742 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2743 else
2744 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2745 fi
2746
2747 else
2748
2749 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2757
2758 fi
2759
2760
2761 eval "$ac_cv_use_debug_gdb"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_DEBUG_GDB" = yes; then
2767 echo "$ac_t""yes" 1>&6
2768 else
2769 echo "$ac_t""no" 1>&6
2770 fi
2771
2772
2773 enablestring=
2774 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2775 echo "configure:2776: checking for --${enablestring:-enable}-debug_cntxt" >&5
2776 no_cache=0
2777 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2778 if test "${enable_debug_cntxt+set}" = set; then
2779 enableval="$enable_debug_cntxt"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2783 else
2784 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2785 fi
2786
2787 else
2788
2789 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2797
2798 fi
2799
2800
2801 eval "$ac_cv_use_debug_cntxt"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2807 echo "$ac_t""yes" 1>&6
2808 else
2809 echo "$ac_t""no" 1>&6
2810 fi
2811
2812
2813 enablestring=
2814 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2815 echo "configure:2816: checking for --${enablestring:-enable}-mem_tracing" >&5
2816 no_cache=0
2817 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2818 if test "${enable_mem_tracing+set}" = set; then
2819 enableval="$enable_mem_tracing"
2820
2821 if test "$enableval" = yes; then
2822 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2823 else
2824 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2825 fi
2826
2827 else
2828
2829 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2837
2838 fi
2839
2840
2841 eval "$ac_cv_use_mem_tracing"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_MEM_TRACING" = yes; then
2847 echo "$ac_t""yes" 1>&6
2848 else
2849 echo "$ac_t""no" 1>&6
2850 fi
2851
2852
2853 enablestring=
2854 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2855 echo "configure:2856: checking for --${enablestring:-enable}-profile" >&5
2856 no_cache=0
2857 # Check whether --enable-profile or --disable-profile was given.
2858 if test "${enable_profile+set}" = set; then
2859 enableval="$enable_profile"
2860
2861 if test "$enableval" = yes; then
2862 ac_cv_use_profile='wxUSE_PROFILE=yes'
2863 else
2864 ac_cv_use_profile='wxUSE_PROFILE=no'
2865 fi
2866
2867 else
2868
2869 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2877
2878 fi
2879
2880
2881 eval "$ac_cv_use_profile"
2882 if test "$no_cache" != 1; then
2883 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2884 fi
2885
2886 if test "$wxUSE_PROFILE" = yes; then
2887 echo "$ac_t""yes" 1>&6
2888 else
2889 echo "$ac_t""no" 1>&6
2890 fi
2891
2892
2893 enablestring=
2894 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2895 echo "configure:2896: checking for --${enablestring:-enable}-no_rtti" >&5
2896 no_cache=0
2897 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2898 if test "${enable_no_rtti+set}" = set; then
2899 enableval="$enable_no_rtti"
2900
2901 if test "$enableval" = yes; then
2902 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2903 else
2904 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2905 fi
2906
2907 else
2908
2909 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2917
2918 fi
2919
2920
2921 eval "$ac_cv_use_no_rtti"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_NO_RTTI" = yes; then
2927 echo "$ac_t""yes" 1>&6
2928 else
2929 echo "$ac_t""no" 1>&6
2930 fi
2931
2932
2933 enablestring=
2934 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2935 echo "configure:2936: checking for --${enablestring:-enable}-no_exceptions" >&5
2936 no_cache=0
2937 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2938 if test "${enable_no_exceptions+set}" = set; then
2939 enableval="$enable_no_exceptions"
2940
2941 if test "$enableval" = yes; then
2942 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2943 else
2944 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2945 fi
2946
2947 else
2948
2949 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2957
2958 fi
2959
2960
2961 eval "$ac_cv_use_no_exceptions"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2967 echo "$ac_t""yes" 1>&6
2968 else
2969 echo "$ac_t""no" 1>&6
2970 fi
2971
2972
2973 enablestring=
2974 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2975 echo "configure:2976: checking for --${enablestring:-enable}-permissive" >&5
2976 no_cache=0
2977 # Check whether --enable-permissive or --disable-permissive was given.
2978 if test "${enable_permissive+set}" = set; then
2979 enableval="$enable_permissive"
2980
2981 if test "$enableval" = yes; then
2982 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2983 else
2984 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2985 fi
2986
2987 else
2988
2989 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2997
2998 fi
2999
3000
3001 eval "$ac_cv_use_permissive"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$wxUSE_PERMISSIVE" = yes; then
3007 echo "$ac_t""yes" 1>&6
3008 else
3009 echo "$ac_t""no" 1>&6
3010 fi
3011
3012
3013 enablestring=
3014 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
3015 echo "configure:3016: checking for --${enablestring:-enable}-no_deps" >&5
3016 no_cache=0
3017 # Check whether --enable-no_deps or --disable-no_deps was given.
3018 if test "${enable_no_deps+set}" = set; then
3019 enableval="$enable_no_deps"
3020
3021 if test "$enableval" = yes; then
3022 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3023 else
3024 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3025 fi
3026
3027 else
3028
3029 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3037
3038 fi
3039
3040
3041 eval "$ac_cv_use_no_deps"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_NO_DEPS" = yes; then
3047 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052
3053
3054 enablestring=
3055 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
3056 echo "configure:3057: checking for --${enablestring:-enable}-compat20" >&5
3057 no_cache=0
3058 # Check whether --enable-compat20 or --disable-compat20 was given.
3059 if test "${enable_compat20+set}" = set; then
3060 enableval="$enable_compat20"
3061
3062 if test "$enableval" = yes; then
3063 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3064 else
3065 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3066 fi
3067
3068 else
3069
3070 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3078
3079 fi
3080
3081
3082 eval "$ac_cv_use_compat20"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3088 echo "$ac_t""yes" 1>&6
3089 else
3090 echo "$ac_t""no" 1>&6
3091 fi
3092
3093
3094 enablestring=
3095 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3096 echo "configure:3097: checking for --${enablestring:-enable}-compat22" >&5
3097 no_cache=0
3098 # Check whether --enable-compat22 or --disable-compat22 was given.
3099 if test "${enable_compat22+set}" = set; then
3100 enableval="$enable_compat22"
3101
3102 if test "$enableval" = yes; then
3103 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3104 else
3105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3106 fi
3107
3108 else
3109
3110 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3111 if test "x$LINE" != x ; then
3112 eval "DEFAULT_$LINE"
3113 else
3114 no_cache=1
3115 fi
3116
3117 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3118
3119 fi
3120
3121
3122 eval "$ac_cv_use_compat22"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3128 echo "$ac_t""yes" 1>&6
3129 else
3130 echo "$ac_t""no" 1>&6
3131 fi
3132
3133
3134 enablestring=disable
3135 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3136 echo "configure:3137: checking for --${enablestring:-enable}-compat24" >&5
3137 no_cache=0
3138 # Check whether --enable-compat24 or --disable-compat24 was given.
3139 if test "${enable_compat24+set}" = set; then
3140 enableval="$enable_compat24"
3141
3142 if test "$enableval" = yes; then
3143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3144 else
3145 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3146 fi
3147
3148 else
3149
3150 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3151 if test "x$LINE" != x ; then
3152 eval "DEFAULT_$LINE"
3153 else
3154 no_cache=1
3155 fi
3156
3157 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3158
3159 fi
3160
3161
3162 eval "$ac_cv_use_compat24"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3168 echo "$ac_t""yes" 1>&6
3169 else
3170 echo "$ac_t""no" 1>&6
3171 fi
3172
3173
3174 # Check whether --enable-rpath or --disable-rpath was given.
3175 if test "${enable_rpath+set}" = set; then
3176 enableval="$enable_rpath"
3177 wxRPATH_DIR="$enableval"
3178 fi
3179
3180
3181 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3182 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3183 fi
3184
3185
3186
3187
3188 enablestring=
3189 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3190 echo "configure:3191: checking for --${enablestring:-enable}-intl" >&5
3191 no_cache=0
3192 # Check whether --enable-intl or --disable-intl was given.
3193 if test "${enable_intl+set}" = set; then
3194 enableval="$enable_intl"
3195
3196 if test "$enableval" = yes; then
3197 ac_cv_use_intl='wxUSE_INTL=yes'
3198 else
3199 ac_cv_use_intl='wxUSE_INTL=no'
3200 fi
3201
3202 else
3203
3204 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3212
3213 fi
3214
3215
3216 eval "$ac_cv_use_intl"
3217 if test "$no_cache" != 1; then
3218 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3219 fi
3220
3221 if test "$wxUSE_INTL" = yes; then
3222 echo "$ac_t""yes" 1>&6
3223 else
3224 echo "$ac_t""no" 1>&6
3225 fi
3226
3227
3228 enablestring=
3229 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3230 echo "configure:3231: checking for --${enablestring:-enable}-config" >&5
3231 no_cache=0
3232 # Check whether --enable-config or --disable-config was given.
3233 if test "${enable_config+set}" = set; then
3234 enableval="$enable_config"
3235
3236 if test "$enableval" = yes; then
3237 ac_cv_use_config='wxUSE_CONFIG=yes'
3238 else
3239 ac_cv_use_config='wxUSE_CONFIG=no'
3240 fi
3241
3242 else
3243
3244 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3252
3253 fi
3254
3255
3256 eval "$ac_cv_use_config"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_CONFIG" = yes; then
3262 echo "$ac_t""yes" 1>&6
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266
3267
3268
3269 enablestring=
3270 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3271 echo "configure:3272: checking for --${enablestring:-enable}-protocols" >&5
3272 no_cache=0
3273 # Check whether --enable-protocols or --disable-protocols was given.
3274 if test "${enable_protocols+set}" = set; then
3275 enableval="$enable_protocols"
3276
3277 if test "$enableval" = yes; then
3278 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3279 else
3280 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3281 fi
3282
3283 else
3284
3285 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3293
3294 fi
3295
3296
3297 eval "$ac_cv_use_protocols"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_PROTOCOL" = yes; then
3303 echo "$ac_t""yes" 1>&6
3304 else
3305 echo "$ac_t""no" 1>&6
3306 fi
3307
3308
3309 enablestring=
3310 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3311 echo "configure:3312: checking for --${enablestring:-enable}-ftp" >&5
3312 no_cache=0
3313 # Check whether --enable-ftp or --disable-ftp was given.
3314 if test "${enable_ftp+set}" = set; then
3315 enableval="$enable_ftp"
3316
3317 if test "$enableval" = yes; then
3318 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3319 else
3320 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3321 fi
3322
3323 else
3324
3325 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3333
3334 fi
3335
3336
3337 eval "$ac_cv_use_ftp"
3338 if test "$no_cache" != 1; then
3339 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3340 fi
3341
3342 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3343 echo "$ac_t""yes" 1>&6
3344 else
3345 echo "$ac_t""no" 1>&6
3346 fi
3347
3348
3349 enablestring=
3350 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3351 echo "configure:3352: checking for --${enablestring:-enable}-http" >&5
3352 no_cache=0
3353 # Check whether --enable-http or --disable-http was given.
3354 if test "${enable_http+set}" = set; then
3355 enableval="$enable_http"
3356
3357 if test "$enableval" = yes; then
3358 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3359 else
3360 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3361 fi
3362
3363 else
3364
3365 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3373
3374 fi
3375
3376
3377 eval "$ac_cv_use_http"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3383 echo "$ac_t""yes" 1>&6
3384 else
3385 echo "$ac_t""no" 1>&6
3386 fi
3387
3388
3389 enablestring=
3390 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3391 echo "configure:3392: checking for --${enablestring:-enable}-fileproto" >&5
3392 no_cache=0
3393 # Check whether --enable-fileproto or --disable-fileproto was given.
3394 if test "${enable_fileproto+set}" = set; then
3395 enableval="$enable_fileproto"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3399 else
3400 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3401 fi
3402
3403 else
3404
3405 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3413
3414 fi
3415
3416
3417 eval "$ac_cv_use_fileproto"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 enablestring=
3430 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3431 echo "configure:3432: checking for --${enablestring:-enable}-sockets" >&5
3432 no_cache=0
3433 # Check whether --enable-sockets or --disable-sockets was given.
3434 if test "${enable_sockets+set}" = set; then
3435 enableval="$enable_sockets"
3436
3437 if test "$enableval" = yes; then
3438 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3439 else
3440 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3441 fi
3442
3443 else
3444
3445 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3446 if test "x$LINE" != x ; then
3447 eval "DEFAULT_$LINE"
3448 else
3449 no_cache=1
3450 fi
3451
3452 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3453
3454 fi
3455
3456
3457 eval "$ac_cv_use_sockets"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_SOCKETS" = yes; then
3463 echo "$ac_t""yes" 1>&6
3464 else
3465 echo "$ac_t""no" 1>&6
3466 fi
3467
3468
3469 enablestring=
3470 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3471 echo "configure:3472: checking for --${enablestring:-enable}-ole" >&5
3472 no_cache=0
3473 # Check whether --enable-ole or --disable-ole was given.
3474 if test "${enable_ole+set}" = set; then
3475 enableval="$enable_ole"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_ole='wxUSE_OLE=yes'
3479 else
3480 ac_cv_use_ole='wxUSE_OLE=no'
3481 fi
3482
3483 else
3484
3485 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3493
3494 fi
3495
3496
3497 eval "$ac_cv_use_ole"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_OLE" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
3509 enablestring=
3510 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3511 echo "configure:3512: checking for --${enablestring:-enable}-dataobj" >&5
3512 no_cache=0
3513 # Check whether --enable-dataobj or --disable-dataobj was given.
3514 if test "${enable_dataobj+set}" = set; then
3515 enableval="$enable_dataobj"
3516
3517 if test "$enableval" = yes; then
3518 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3519 else
3520 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3521 fi
3522
3523 else
3524
3525 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3533
3534 fi
3535
3536
3537 eval "$ac_cv_use_dataobj"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_DATAOBJ" = yes; then
3543 echo "$ac_t""yes" 1>&6
3544 else
3545 echo "$ac_t""no" 1>&6
3546 fi
3547
3548
3549
3550 enablestring=
3551 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3552 echo "configure:3553: checking for --${enablestring:-enable}-ipc" >&5
3553 no_cache=0
3554 # Check whether --enable-ipc or --disable-ipc was given.
3555 if test "${enable_ipc+set}" = set; then
3556 enableval="$enable_ipc"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_ipc='wxUSE_IPC=yes'
3560 else
3561 ac_cv_use_ipc='wxUSE_IPC=no'
3562 fi
3563
3564 else
3565
3566 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3574
3575 fi
3576
3577
3578 eval "$ac_cv_use_ipc"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_IPC" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590
3591 enablestring=
3592 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3593 echo "configure:3594: checking for --${enablestring:-enable}-cmdline" >&5
3594 no_cache=0
3595 # Check whether --enable-cmdline or --disable-cmdline was given.
3596 if test "${enable_cmdline+set}" = set; then
3597 enableval="$enable_cmdline"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3601 else
3602 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3603 fi
3604
3605 else
3606
3607 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3615
3616 fi
3617
3618
3619 eval "$ac_cv_use_cmdline"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 enablestring=
3632 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3633 echo "configure:3634: checking for --${enablestring:-enable}-datetime" >&5
3634 no_cache=0
3635 # Check whether --enable-datetime or --disable-datetime was given.
3636 if test "${enable_datetime+set}" = set; then
3637 enableval="$enable_datetime"
3638
3639 if test "$enableval" = yes; then
3640 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3641 else
3642 ac_cv_use_datetime='wxUSE_DATETIME=no'
3643 fi
3644
3645 else
3646
3647 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3648 if test "x$LINE" != x ; then
3649 eval "DEFAULT_$LINE"
3650 else
3651 no_cache=1
3652 fi
3653
3654 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3655
3656 fi
3657
3658
3659 eval "$ac_cv_use_datetime"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_DATETIME" = yes; then
3665 echo "$ac_t""yes" 1>&6
3666 else
3667 echo "$ac_t""no" 1>&6
3668 fi
3669
3670
3671 enablestring=
3672 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3673 echo "configure:3674: checking for --${enablestring:-enable}-stopwatch" >&5
3674 no_cache=0
3675 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3676 if test "${enable_stopwatch+set}" = set; then
3677 enableval="$enable_stopwatch"
3678
3679 if test "$enableval" = yes; then
3680 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3681 else
3682 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3683 fi
3684
3685 else
3686
3687 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
3694 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3695
3696 fi
3697
3698
3699 eval "$ac_cv_use_stopwatch"
3700 if test "$no_cache" != 1; then
3701 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3702 fi
3703
3704 if test "$wxUSE_STOPWATCH" = yes; then
3705 echo "$ac_t""yes" 1>&6
3706 else
3707 echo "$ac_t""no" 1>&6
3708 fi
3709
3710
3711 enablestring=
3712 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3713 echo "configure:3714: checking for --${enablestring:-enable}-dialupman" >&5
3714 no_cache=0
3715 # Check whether --enable-dialupman or --disable-dialupman was given.
3716 if test "${enable_dialupman+set}" = set; then
3717 enableval="$enable_dialupman"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3721 else
3722 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3723 fi
3724
3725 else
3726
3727 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3735
3736 fi
3737
3738
3739 eval "$ac_cv_use_dialupman"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 enablestring=
3752 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3753 echo "configure:3754: checking for --${enablestring:-enable}-apple_ieee" >&5
3754 no_cache=0
3755 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3756 if test "${enable_apple_ieee+set}" = set; then
3757 enableval="$enable_apple_ieee"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3761 else
3762 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3763 fi
3764
3765 else
3766
3767 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3775
3776 fi
3777
3778
3779 eval "$ac_cv_use_apple_ieee"
3780 if test "$no_cache" != 1; then
3781 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3782 fi
3783
3784 if test "$wxUSE_APPLE_IEEE" = yes; then
3785 echo "$ac_t""yes" 1>&6
3786 else
3787 echo "$ac_t""no" 1>&6
3788 fi
3789
3790
3791 enablestring=
3792 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3793 echo "configure:3794: checking for --${enablestring:-enable}-timer" >&5
3794 no_cache=0
3795 # Check whether --enable-timer or --disable-timer was given.
3796 if test "${enable_timer+set}" = set; then
3797 enableval="$enable_timer"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_timer='wxUSE_TIMER=yes'
3801 else
3802 ac_cv_use_timer='wxUSE_TIMER=no'
3803 fi
3804
3805 else
3806
3807 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3815
3816 fi
3817
3818
3819 eval "$ac_cv_use_timer"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_TIMER" = yes; then
3825 echo "$ac_t""yes" 1>&6
3826 else
3827 echo "$ac_t""no" 1>&6
3828 fi
3829
3830
3831 enablestring=
3832 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3833 echo "configure:3834: checking for --${enablestring:-enable}-wave" >&5
3834 no_cache=0
3835 # Check whether --enable-wave or --disable-wave was given.
3836 if test "${enable_wave+set}" = set; then
3837 enableval="$enable_wave"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_wave='wxUSE_WAVE=yes'
3841 else
3842 ac_cv_use_wave='wxUSE_WAVE=no'
3843 fi
3844
3845 else
3846
3847 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3855
3856 fi
3857
3858
3859 eval "$ac_cv_use_wave"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_WAVE" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871 enablestring=
3872 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3873 echo "configure:3874: checking for --${enablestring:-enable}-fraction" >&5
3874 no_cache=0
3875 # Check whether --enable-fraction or --disable-fraction was given.
3876 if test "${enable_fraction+set}" = set; then
3877 enableval="$enable_fraction"
3878
3879 if test "$enableval" = yes; then
3880 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3881 else
3882 ac_cv_use_fraction='wxUSE_FRACTION=no'
3883 fi
3884
3885 else
3886
3887 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3888 if test "x$LINE" != x ; then
3889 eval "DEFAULT_$LINE"
3890 else
3891 no_cache=1
3892 fi
3893
3894 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3895
3896 fi
3897
3898
3899 eval "$ac_cv_use_fraction"
3900 if test "$no_cache" != 1; then
3901 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3902 fi
3903
3904 if test "$wxUSE_FRACTION" = yes; then
3905 echo "$ac_t""yes" 1>&6
3906 else
3907 echo "$ac_t""no" 1>&6
3908 fi
3909
3910
3911 enablestring=
3912 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3913 echo "configure:3914: checking for --${enablestring:-enable}-dynlib" >&5
3914 no_cache=0
3915 # Check whether --enable-dynlib or --disable-dynlib was given.
3916 if test "${enable_dynlib+set}" = set; then
3917 enableval="$enable_dynlib"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3921 else
3922 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3923 fi
3924
3925 else
3926
3927 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3935
3936 fi
3937
3938
3939 eval "$ac_cv_use_dynlib"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3945 echo "$ac_t""yes" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3948 fi
3949
3950
3951 enablestring=
3952 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3953 echo "configure:3954: checking for --${enablestring:-enable}-dynamicloader" >&5
3954 no_cache=0
3955 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3956 if test "${enable_dynamicloader+set}" = set; then
3957 enableval="$enable_dynamicloader"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3961 else
3962 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3963 fi
3964
3965 else
3966
3967 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3975
3976 fi
3977
3978
3979 eval "$ac_cv_use_dynamicloader"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991 enablestring=
3992 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3993 echo "configure:3994: checking for --${enablestring:-enable}-longlong" >&5
3994 no_cache=0
3995 # Check whether --enable-longlong or --disable-longlong was given.
3996 if test "${enable_longlong+set}" = set; then
3997 enableval="$enable_longlong"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4001 else
4002 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4003 fi
4004
4005 else
4006
4007 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
4015
4016 fi
4017
4018
4019 eval "$ac_cv_use_longlong"
4020 if test "$no_cache" != 1; then
4021 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4022 fi
4023
4024 if test "$wxUSE_LONGLONG" = yes; then
4025 echo "$ac_t""yes" 1>&6
4026 else
4027 echo "$ac_t""no" 1>&6
4028 fi
4029
4030
4031 enablestring=
4032 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
4033 echo "configure:4034: checking for --${enablestring:-enable}-geometry" >&5
4034 no_cache=0
4035 # Check whether --enable-geometry or --disable-geometry was given.
4036 if test "${enable_geometry+set}" = set; then
4037 enableval="$enable_geometry"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4041 else
4042 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4043 fi
4044
4045 else
4046
4047 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4055
4056 fi
4057
4058
4059 eval "$ac_cv_use_geometry"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_GEOMETRY" = yes; then
4065 echo "$ac_t""yes" 1>&6
4066 else
4067 echo "$ac_t""no" 1>&6
4068 fi
4069
4070
4071 enablestring=
4072 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4073 echo "configure:4074: checking for --${enablestring:-enable}-log" >&5
4074 no_cache=0
4075 # Check whether --enable-log or --disable-log was given.
4076 if test "${enable_log+set}" = set; then
4077 enableval="$enable_log"
4078
4079 if test "$enableval" = yes; then
4080 ac_cv_use_log='wxUSE_LOG=yes'
4081 else
4082 ac_cv_use_log='wxUSE_LOG=no'
4083 fi
4084
4085 else
4086
4087 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
4094 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4095
4096 fi
4097
4098
4099 eval "$ac_cv_use_log"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_LOG" = yes; then
4105 echo "$ac_t""yes" 1>&6
4106 else
4107 echo "$ac_t""no" 1>&6
4108 fi
4109
4110
4111 enablestring=
4112 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4113 echo "configure:4114: checking for --${enablestring:-enable}-streams" >&5
4114 no_cache=0
4115 # Check whether --enable-streams or --disable-streams was given.
4116 if test "${enable_streams+set}" = set; then
4117 enableval="$enable_streams"
4118
4119 if test "$enableval" = yes; then
4120 ac_cv_use_streams='wxUSE_STREAMS=yes'
4121 else
4122 ac_cv_use_streams='wxUSE_STREAMS=no'
4123 fi
4124
4125 else
4126
4127 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4135
4136 fi
4137
4138
4139 eval "$ac_cv_use_streams"
4140 if test "$no_cache" != 1; then
4141 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4142 fi
4143
4144 if test "$wxUSE_STREAMS" = yes; then
4145 echo "$ac_t""yes" 1>&6
4146 else
4147 echo "$ac_t""no" 1>&6
4148 fi
4149
4150
4151 enablestring=
4152 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4153 echo "configure:4154: checking for --${enablestring:-enable}-file" >&5
4154 no_cache=0
4155 # Check whether --enable-file or --disable-file was given.
4156 if test "${enable_file+set}" = set; then
4157 enableval="$enable_file"
4158
4159 if test "$enableval" = yes; then
4160 ac_cv_use_file='wxUSE_FILE=yes'
4161 else
4162 ac_cv_use_file='wxUSE_FILE=no'
4163 fi
4164
4165 else
4166
4167 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
4174 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4175
4176 fi
4177
4178
4179 eval "$ac_cv_use_file"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_FILE" = yes; then
4185 echo "$ac_t""yes" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4188 fi
4189
4190
4191 enablestring=
4192 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4193 echo "configure:4194: checking for --${enablestring:-enable}-ffile" >&5
4194 no_cache=0
4195 # Check whether --enable-ffile or --disable-ffile was given.
4196 if test "${enable_ffile+set}" = set; then
4197 enableval="$enable_ffile"
4198
4199 if test "$enableval" = yes; then
4200 ac_cv_use_ffile='wxUSE_FFILE=yes'
4201 else
4202 ac_cv_use_ffile='wxUSE_FFILE=no'
4203 fi
4204
4205 else
4206
4207 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4215
4216 fi
4217
4218
4219 eval "$ac_cv_use_ffile"
4220 if test "$no_cache" != 1; then
4221 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4222 fi
4223
4224 if test "$wxUSE_FFILE" = yes; then
4225 echo "$ac_t""yes" 1>&6
4226 else
4227 echo "$ac_t""no" 1>&6
4228 fi
4229
4230
4231 enablestring=
4232 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4233 echo "configure:4234: checking for --${enablestring:-enable}-textbuf" >&5
4234 no_cache=0
4235 # Check whether --enable-textbuf or --disable-textbuf was given.
4236 if test "${enable_textbuf+set}" = set; then
4237 enableval="$enable_textbuf"
4238
4239 if test "$enableval" = yes; then
4240 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4241 else
4242 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4243 fi
4244
4245 else
4246
4247 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4248 if test "x$LINE" != x ; then
4249 eval "DEFAULT_$LINE"
4250 else
4251 no_cache=1
4252 fi
4253
4254 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4255
4256 fi
4257
4258
4259 eval "$ac_cv_use_textbuf"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_TEXTBUFFER" = yes; then
4265 echo "$ac_t""yes" 1>&6
4266 else
4267 echo "$ac_t""no" 1>&6
4268 fi
4269
4270
4271 enablestring=
4272 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4273 echo "configure:4274: checking for --${enablestring:-enable}-textfile" >&5
4274 no_cache=0
4275 # Check whether --enable-textfile or --disable-textfile was given.
4276 if test "${enable_textfile+set}" = set; then
4277 enableval="$enable_textfile"
4278
4279 if test "$enableval" = yes; then
4280 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4281 else
4282 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4283 fi
4284
4285 else
4286
4287 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4295
4296 fi
4297
4298
4299 eval "$ac_cv_use_textfile"
4300 if test "$no_cache" != 1; then
4301 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4302 fi
4303
4304 if test "$wxUSE_TEXTFILE" = yes; then
4305 echo "$ac_t""yes" 1>&6
4306 else
4307 echo "$ac_t""no" 1>&6
4308 fi
4309
4310
4311 enablestring=
4312 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4313 echo "configure:4314: checking for --${enablestring:-enable}-fontmap" >&5
4314 no_cache=0
4315 # Check whether --enable-fontmap or --disable-fontmap was given.
4316 if test "${enable_fontmap+set}" = set; then
4317 enableval="$enable_fontmap"
4318
4319 if test "$enableval" = yes; then
4320 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4321 else
4322 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4323 fi
4324
4325 else
4326
4327 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
4334 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4335
4336 fi
4337
4338
4339 eval "$ac_cv_use_fontmap"
4340 if test "$no_cache" != 1; then
4341 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4342 fi
4343
4344 if test "$wxUSE_FONTMAP" = yes; then
4345 echo "$ac_t""yes" 1>&6
4346 else
4347 echo "$ac_t""no" 1>&6
4348 fi
4349
4350
4351 enablestring=
4352 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4353 echo "configure:4354: checking for --${enablestring:-enable}-unicode" >&5
4354 no_cache=0
4355 # Check whether --enable-unicode or --disable-unicode was given.
4356 if test "${enable_unicode+set}" = set; then
4357 enableval="$enable_unicode"
4358
4359 if test "$enableval" = yes; then
4360 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4361 else
4362 ac_cv_use_unicode='wxUSE_UNICODE=no'
4363 fi
4364
4365 else
4366
4367 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4368 if test "x$LINE" != x ; then
4369 eval "DEFAULT_$LINE"
4370 else
4371 no_cache=1
4372 fi
4373
4374 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4375
4376 fi
4377
4378
4379 eval "$ac_cv_use_unicode"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_UNICODE" = yes; then
4385 echo "$ac_t""yes" 1>&6
4386 else
4387 echo "$ac_t""no" 1>&6
4388 fi
4389
4390
4391 enablestring=
4392 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4393 echo "configure:4394: checking for --${enablestring:-enable}-mslu" >&5
4394 no_cache=0
4395 # Check whether --enable-mslu or --disable-mslu was given.
4396 if test "${enable_mslu+set}" = set; then
4397 enableval="$enable_mslu"
4398
4399 if test "$enableval" = yes; then
4400 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4401 else
4402 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4403 fi
4404
4405 else
4406
4407 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4408 if test "x$LINE" != x ; then
4409 eval "DEFAULT_$LINE"
4410 else
4411 no_cache=1
4412 fi
4413
4414 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4415
4416 fi
4417
4418
4419 eval "$ac_cv_use_mslu"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_UNICODE_MSLU" = yes; then
4425 echo "$ac_t""yes" 1>&6
4426 else
4427 echo "$ac_t""no" 1>&6
4428 fi
4429
4430
4431 enablestring=
4432 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4433 echo "configure:4434: checking for --${enablestring:-enable}-wxprintfv" >&5
4434 no_cache=0
4435 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4436 if test "${enable_wxprintfv+set}" = set; then
4437 enableval="$enable_wxprintfv"
4438
4439 if test "$enableval" = yes; then
4440 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4441 else
4442 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4443 fi
4444
4445 else
4446
4447 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4455
4456 fi
4457
4458
4459 eval "$ac_cv_use_wxprintfv"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4465 echo "$ac_t""yes" 1>&6
4466 else
4467 echo "$ac_t""no" 1>&6
4468 fi
4469
4470
4471 enablestring=
4472 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4473 echo "configure:4474: checking for --${enablestring:-enable}-std_iostreams" >&5
4474 no_cache=0
4475 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4476 if test "${enable_std_iostreams+set}" = set; then
4477 enableval="$enable_std_iostreams"
4478
4479 if test "$enableval" = yes; then
4480 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4481 else
4482 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4483 fi
4484
4485 else
4486
4487 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4495
4496 fi
4497
4498
4499 eval "$ac_cv_use_std_iostreams"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_STD_IOSTREAM" = yes; then
4505 echo "$ac_t""yes" 1>&6
4506 else
4507 echo "$ac_t""no" 1>&6
4508 fi
4509
4510
4511 enablestring=
4512 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4513 echo "configure:4514: checking for --${enablestring:-enable}-filesystem" >&5
4514 no_cache=0
4515 # Check whether --enable-filesystem or --disable-filesystem was given.
4516 if test "${enable_filesystem+set}" = set; then
4517 enableval="$enable_filesystem"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4521 else
4522 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4523 fi
4524
4525 else
4526
4527 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4535
4536 fi
4537
4538
4539 eval "$ac_cv_use_filesystem"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_FILESYSTEM" = yes; then
4545 echo "$ac_t""yes" 1>&6
4546 else
4547 echo "$ac_t""no" 1>&6
4548 fi
4549
4550
4551 enablestring=
4552 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4553 echo "configure:4554: checking for --${enablestring:-enable}-fs_inet" >&5
4554 no_cache=0
4555 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4556 if test "${enable_fs_inet+set}" = set; then
4557 enableval="$enable_fs_inet"
4558
4559 if test "$enableval" = yes; then
4560 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4561 else
4562 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4563 fi
4564
4565 else
4566
4567 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4568 if test "x$LINE" != x ; then
4569 eval "DEFAULT_$LINE"
4570 else
4571 no_cache=1
4572 fi
4573
4574 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4575
4576 fi
4577
4578
4579 eval "$ac_cv_use_fs_inet"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_FS_INET" = yes; then
4585 echo "$ac_t""yes" 1>&6
4586 else
4587 echo "$ac_t""no" 1>&6
4588 fi
4589
4590
4591 enablestring=
4592 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4593 echo "configure:4594: checking for --${enablestring:-enable}-fs_zip" >&5
4594 no_cache=0
4595 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4596 if test "${enable_fs_zip+set}" = set; then
4597 enableval="$enable_fs_zip"
4598
4599 if test "$enableval" = yes; then
4600 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4601 else
4602 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4603 fi
4604
4605 else
4606
4607 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4615
4616 fi
4617
4618
4619 eval "$ac_cv_use_fs_zip"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_FS_ZIP" = yes; then
4625 echo "$ac_t""yes" 1>&6
4626 else
4627 echo "$ac_t""no" 1>&6
4628 fi
4629
4630
4631 enablestring=
4632 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4633 echo "configure:4634: checking for --${enablestring:-enable}-zipstream" >&5
4634 no_cache=0
4635 # Check whether --enable-zipstream or --disable-zipstream was given.
4636 if test "${enable_zipstream+set}" = set; then
4637 enableval="$enable_zipstream"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4641 else
4642 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4643 fi
4644
4645 else
4646
4647 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4655
4656 fi
4657
4658
4659 eval "$ac_cv_use_zipstream"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_ZIPSTREAM" = yes; then
4665 echo "$ac_t""yes" 1>&6
4666 else
4667 echo "$ac_t""no" 1>&6
4668 fi
4669
4670
4671
4672 enablestring=
4673 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4674 echo "configure:4675: checking for --${enablestring:-enable}-catch_segvs" >&5
4675 no_cache=0
4676 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4677 if test "${enable_catch_segvs+set}" = set; then
4678 enableval="$enable_catch_segvs"
4679
4680 if test "$enableval" = yes; then
4681 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4682 else
4683 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4684 fi
4685
4686 else
4687
4688 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4696
4697 fi
4698
4699
4700 eval "$ac_cv_use_catch_segvs"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4706 echo "$ac_t""yes" 1>&6
4707 else
4708 echo "$ac_t""no" 1>&6
4709 fi
4710
4711
4712 enablestring=
4713 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4714 echo "configure:4715: checking for --${enablestring:-enable}-snglinst" >&5
4715 no_cache=0
4716 # Check whether --enable-snglinst or --disable-snglinst was given.
4717 if test "${enable_snglinst+set}" = set; then
4718 enableval="$enable_snglinst"
4719
4720 if test "$enableval" = yes; then
4721 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4722 else
4723 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4724 fi
4725
4726 else
4727
4728 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4729 if test "x$LINE" != x ; then
4730 eval "DEFAULT_$LINE"
4731 else
4732 no_cache=1
4733 fi
4734
4735 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4736
4737 fi
4738
4739
4740 eval "$ac_cv_use_snglinst"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4746 echo "$ac_t""yes" 1>&6
4747 else
4748 echo "$ac_t""no" 1>&6
4749 fi
4750
4751
4752
4753 enablestring=
4754 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4755 echo "configure:4756: checking for --${enablestring:-enable}-mimetype" >&5
4756 no_cache=0
4757 # Check whether --enable-mimetype or --disable-mimetype was given.
4758 if test "${enable_mimetype+set}" = set; then
4759 enableval="$enable_mimetype"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4763 else
4764 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4765 fi
4766
4767 else
4768
4769 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4777
4778 fi
4779
4780
4781 eval "$ac_cv_use_mimetype"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_MIMETYPE" = yes; then
4787 echo "$ac_t""yes" 1>&6
4788 else
4789 echo "$ac_t""no" 1>&6
4790 fi
4791
4792
4793 enablestring=
4794 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4795 echo "configure:4796: checking for --${enablestring:-enable}-system_options" >&5
4796 no_cache=0
4797 # Check whether --enable-system_options or --disable-system_options was given.
4798 if test "${enable_system_options+set}" = set; then
4799 enableval="$enable_system_options"
4800
4801 if test "$enableval" = yes; then
4802 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4803 else
4804 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4805 fi
4806
4807 else
4808
4809 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4817
4818 fi
4819
4820
4821 eval "$ac_cv_use_system_options"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4827 echo "$ac_t""yes" 1>&6
4828 else
4829 echo "$ac_t""no" 1>&6
4830 fi
4831
4832
4833
4834 enablestring=
4835 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4836 echo "configure:4837: checking for --${enablestring:-enable}-url" >&5
4837 no_cache=0
4838 # Check whether --enable-url or --disable-url was given.
4839 if test "${enable_url+set}" = set; then
4840 enableval="$enable_url"
4841
4842 if test "$enableval" = yes; then
4843 ac_cv_use_url='wxUSE_URL=yes'
4844 else
4845 ac_cv_use_url='wxUSE_URL=no'
4846 fi
4847
4848 else
4849
4850 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
4857 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4858
4859 fi
4860
4861
4862 eval "$ac_cv_use_url"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_URL" = yes; then
4868 echo "$ac_t""yes" 1>&6
4869 else
4870 echo "$ac_t""no" 1>&6
4871 fi
4872
4873
4874 enablestring=
4875 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4876 echo "configure:4877: checking for --${enablestring:-enable}-protocol" >&5
4877 no_cache=0
4878 # Check whether --enable-protocol or --disable-protocol was given.
4879 if test "${enable_protocol+set}" = set; then
4880 enableval="$enable_protocol"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4884 else
4885 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4886 fi
4887
4888 else
4889
4890 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4898
4899 fi
4900
4901
4902 eval "$ac_cv_use_protocol"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_PROTOCOL" = yes; then
4908 echo "$ac_t""yes" 1>&6
4909 else
4910 echo "$ac_t""no" 1>&6
4911 fi
4912
4913
4914 enablestring=
4915 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4916 echo "configure:4917: checking for --${enablestring:-enable}-protocol_http" >&5
4917 no_cache=0
4918 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4919 if test "${enable_protocol_http+set}" = set; then
4920 enableval="$enable_protocol_http"
4921
4922 if test "$enableval" = yes; then
4923 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4924 else
4925 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4926 fi
4927
4928 else
4929
4930 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
4937 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4938
4939 fi
4940
4941
4942 eval "$ac_cv_use_protocol_http"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4948 echo "$ac_t""yes" 1>&6
4949 else
4950 echo "$ac_t""no" 1>&6
4951 fi
4952
4953
4954 enablestring=
4955 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4956 echo "configure:4957: checking for --${enablestring:-enable}-protocol_ftp" >&5
4957 no_cache=0
4958 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4959 if test "${enable_protocol_ftp+set}" = set; then
4960 enableval="$enable_protocol_ftp"
4961
4962 if test "$enableval" = yes; then
4963 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4964 else
4965 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4966 fi
4967
4968 else
4969
4970 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4971 if test "x$LINE" != x ; then
4972 eval "DEFAULT_$LINE"
4973 else
4974 no_cache=1
4975 fi
4976
4977 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4978
4979 fi
4980
4981
4982 eval "$ac_cv_use_protocol_ftp"
4983 if test "$no_cache" != 1; then
4984 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4985 fi
4986
4987 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4988 echo "$ac_t""yes" 1>&6
4989 else
4990 echo "$ac_t""no" 1>&6
4991 fi
4992
4993
4994 enablestring=
4995 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4996 echo "configure:4997: checking for --${enablestring:-enable}-protocol_file" >&5
4997 no_cache=0
4998 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4999 if test "${enable_protocol_file+set}" = set; then
5000 enableval="$enable_protocol_file"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5004 else
5005 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5006 fi
5007
5008 else
5009
5010 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5018
5019 fi
5020
5021
5022 eval "$ac_cv_use_protocol_file"
5023 if test "$no_cache" != 1; then
5024 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5025 fi
5026
5027 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5028 echo "$ac_t""yes" 1>&6
5029 else
5030 echo "$ac_t""no" 1>&6
5031 fi
5032
5033
5034
5035
5036
5037 enablestring=
5038 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
5039 echo "configure:5040: checking for --${enablestring:-enable}-threads" >&5
5040 no_cache=0
5041 # Check whether --enable-threads or --disable-threads was given.
5042 if test "${enable_threads+set}" = set; then
5043 enableval="$enable_threads"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_threads='wxUSE_THREADS=yes'
5047 else
5048 ac_cv_use_threads='wxUSE_THREADS=no'
5049 fi
5050
5051 else
5052
5053 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5061
5062 fi
5063
5064
5065 eval "$ac_cv_use_threads"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_THREADS" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 if test "$wxUSE_GUI" = "yes"; then
5078
5079
5080
5081 enablestring=
5082 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5083 echo "configure:5084: checking for --${enablestring:-enable}-docview" >&5
5084 no_cache=0
5085 # Check whether --enable-docview or --disable-docview was given.
5086 if test "${enable_docview+set}" = set; then
5087 enableval="$enable_docview"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5091 else
5092 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5093 fi
5094
5095 else
5096
5097 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5105
5106 fi
5107
5108
5109 eval "$ac_cv_use_docview"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5115 echo "$ac_t""yes" 1>&6
5116 else
5117 echo "$ac_t""no" 1>&6
5118 fi
5119
5120
5121 enablestring=
5122 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5123 echo "configure:5124: checking for --${enablestring:-enable}-help" >&5
5124 no_cache=0
5125 # Check whether --enable-help or --disable-help was given.
5126 if test "${enable_help+set}" = set; then
5127 enableval="$enable_help"
5128
5129 if test "$enableval" = yes; then
5130 ac_cv_use_help='wxUSE_HELP=yes'
5131 else
5132 ac_cv_use_help='wxUSE_HELP=no'
5133 fi
5134
5135 else
5136
5137 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5138 if test "x$LINE" != x ; then
5139 eval "DEFAULT_$LINE"
5140 else
5141 no_cache=1
5142 fi
5143
5144 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5145
5146 fi
5147
5148
5149 eval "$ac_cv_use_help"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_HELP" = yes; then
5155 echo "$ac_t""yes" 1>&6
5156 else
5157 echo "$ac_t""no" 1>&6
5158 fi
5159
5160
5161 enablestring=
5162 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5163 echo "configure:5164: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5164 no_cache=0
5165 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5166 if test "${enable_mshtmlhelp+set}" = set; then
5167 enableval="$enable_mshtmlhelp"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5171 else
5172 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5173 fi
5174
5175 else
5176
5177 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5185
5186 fi
5187
5188
5189 eval "$ac_cv_use_mshtmlhelp"
5190 if test "$no_cache" != 1; then
5191 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5192 fi
5193
5194 if test "$wxUSE_MS_HTML_HELP" = yes; then
5195 echo "$ac_t""yes" 1>&6
5196 else
5197 echo "$ac_t""no" 1>&6
5198 fi
5199
5200
5201 enablestring=
5202 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5203 echo "configure:5204: checking for --${enablestring:-enable}-html" >&5
5204 no_cache=0
5205 # Check whether --enable-html or --disable-html was given.
5206 if test "${enable_html+set}" = set; then
5207 enableval="$enable_html"
5208
5209 if test "$enableval" = yes; then
5210 ac_cv_use_html='wxUSE_HTML=yes'
5211 else
5212 ac_cv_use_html='wxUSE_HTML=no'
5213 fi
5214
5215 else
5216
5217 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5218 if test "x$LINE" != x ; then
5219 eval "DEFAULT_$LINE"
5220 else
5221 no_cache=1
5222 fi
5223
5224 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5225
5226 fi
5227
5228
5229 eval "$ac_cv_use_html"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_HTML" = yes; then
5235 echo "$ac_t""yes" 1>&6
5236 else
5237 echo "$ac_t""no" 1>&6
5238 fi
5239
5240
5241 enablestring=
5242 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5243 echo "configure:5244: checking for --${enablestring:-enable}-htmlhelp" >&5
5244 no_cache=0
5245 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5246 if test "${enable_htmlhelp+set}" = set; then
5247 enableval="$enable_htmlhelp"
5248
5249 if test "$enableval" = yes; then
5250 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5251 else
5252 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5253 fi
5254
5255 else
5256
5257 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5265
5266 fi
5267
5268
5269 eval "$ac_cv_use_htmlhelp"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_WXHTML_HELP" = yes; then
5275 echo "$ac_t""yes" 1>&6
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279
5280
5281 enablestring=
5282 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5283 echo "configure:5284: checking for --${enablestring:-enable}-constraints" >&5
5284 no_cache=0
5285 # Check whether --enable-constraints or --disable-constraints was given.
5286 if test "${enable_constraints+set}" = set; then
5287 enableval="$enable_constraints"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5291 else
5292 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5293 fi
5294
5295 else
5296
5297 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5305
5306 fi
5307
5308
5309 eval "$ac_cv_use_constraints"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_CONSTRAINTS" = yes; then
5315 echo "$ac_t""yes" 1>&6
5316 else
5317 echo "$ac_t""no" 1>&6
5318 fi
5319
5320
5321 enablestring=
5322 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5323 echo "configure:5324: checking for --${enablestring:-enable}-printarch" >&5
5324 no_cache=0
5325 # Check whether --enable-printarch or --disable-printarch was given.
5326 if test "${enable_printarch+set}" = set; then
5327 enableval="$enable_printarch"
5328
5329 if test "$enableval" = yes; then
5330 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5331 else
5332 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5333 fi
5334
5335 else
5336
5337 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5338 if test "x$LINE" != x ; then
5339 eval "DEFAULT_$LINE"
5340 else
5341 no_cache=1
5342 fi
5343
5344 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5345
5346 fi
5347
5348
5349 eval "$ac_cv_use_printarch"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5355 echo "$ac_t""yes" 1>&6
5356 else
5357 echo "$ac_t""no" 1>&6
5358 fi
5359
5360
5361 enablestring=
5362 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5363 echo "configure:5364: checking for --${enablestring:-enable}-mdi" >&5
5364 no_cache=0
5365 # Check whether --enable-mdi or --disable-mdi was given.
5366 if test "${enable_mdi+set}" = set; then
5367 enableval="$enable_mdi"
5368
5369 if test "$enableval" = yes; then
5370 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5371 else
5372 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5373 fi
5374
5375 else
5376
5377 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5378 if test "x$LINE" != x ; then
5379 eval "DEFAULT_$LINE"
5380 else
5381 no_cache=1
5382 fi
5383
5384 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5385
5386 fi
5387
5388
5389 eval "$ac_cv_use_mdi"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5395 echo "$ac_t""yes" 1>&6
5396 else
5397 echo "$ac_t""no" 1>&6
5398 fi
5399
5400
5401 enablestring=
5402 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5403 echo "configure:5404: checking for --${enablestring:-enable}-loggui" >&5
5404 no_cache=0
5405 # Check whether --enable-loggui or --disable-loggui was given.
5406 if test "${enable_loggui+set}" = set; then
5407 enableval="$enable_loggui"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5411 else
5412 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5413 fi
5414
5415 else
5416
5417 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5425
5426 fi
5427
5428
5429 eval "$ac_cv_use_loggui"
5430 if test "$no_cache" != 1; then
5431 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5432 fi
5433
5434 if test "$wxUSE_LOGGUI" = yes; then
5435 echo "$ac_t""yes" 1>&6
5436 else
5437 echo "$ac_t""no" 1>&6
5438 fi
5439
5440
5441 enablestring=
5442 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5443 echo "configure:5444: checking for --${enablestring:-enable}-logwin" >&5
5444 no_cache=0
5445 # Check whether --enable-logwin or --disable-logwin was given.
5446 if test "${enable_logwin+set}" = set; then
5447 enableval="$enable_logwin"
5448
5449 if test "$enableval" = yes; then
5450 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5451 else
5452 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5453 fi
5454
5455 else
5456
5457 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5465
5466 fi
5467
5468
5469 eval "$ac_cv_use_logwin"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_LOGWINDOW" = yes; then
5475 echo "$ac_t""yes" 1>&6
5476 else
5477 echo "$ac_t""no" 1>&6
5478 fi
5479
5480
5481 enablestring=
5482 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5483 echo "configure:5484: checking for --${enablestring:-enable}-logdialog" >&5
5484 no_cache=0
5485 # Check whether --enable-logdialog or --disable-logdialog was given.
5486 if test "${enable_logdialog+set}" = set; then
5487 enableval="$enable_logdialog"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5491 else
5492 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5493 fi
5494
5495 else
5496
5497 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5505
5506 fi
5507
5508
5509 eval "$ac_cv_use_logdialog"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_LOGDIALOG" = yes; then
5515 echo "$ac_t""yes" 1>&6
5516 else
5517 echo "$ac_t""no" 1>&6
5518 fi
5519
5520
5521
5522 enablestring=
5523 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5524 echo "configure:5525: checking for --${enablestring:-enable}-postscript" >&5
5525 no_cache=0
5526 # Check whether --enable-postscript or --disable-postscript was given.
5527 if test "${enable_postscript+set}" = set; then
5528 enableval="$enable_postscript"
5529
5530 if test "$enableval" = yes; then
5531 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5532 else
5533 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5534 fi
5535
5536 else
5537
5538 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5546
5547 fi
5548
5549
5550 eval "$ac_cv_use_postscript"
5551 if test "$no_cache" != 1; then
5552 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5553 fi
5554
5555 if test "$wxUSE_POSTSCRIPT" = yes; then
5556 echo "$ac_t""yes" 1>&6
5557 else
5558 echo "$ac_t""no" 1>&6
5559 fi
5560
5561
5562
5563
5564
5565 enablestring=
5566 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5567 echo "configure:5568: checking for --${enablestring:-enable}-prologio" >&5
5568 no_cache=0
5569 # Check whether --enable-prologio or --disable-prologio was given.
5570 if test "${enable_prologio+set}" = set; then
5571 enableval="$enable_prologio"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5575 else
5576 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5577 fi
5578
5579 else
5580
5581 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5589
5590 fi
5591
5592
5593 eval "$ac_cv_use_prologio"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_PROLOGIO" = yes; then
5599 echo "$ac_t""yes" 1>&6
5600 else
5601 echo "$ac_t""no" 1>&6
5602 fi
5603
5604
5605 enablestring=
5606 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5607 echo "configure:5608: checking for --${enablestring:-enable}-resources" >&5
5608 no_cache=0
5609 # Check whether --enable-resources or --disable-resources was given.
5610 if test "${enable_resources+set}" = set; then
5611 enableval="$enable_resources"
5612
5613 if test "$enableval" = yes; then
5614 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5615 else
5616 ac_cv_use_resources='wxUSE_RESOURCES=no'
5617 fi
5618
5619 else
5620
5621 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5622 if test "x$LINE" != x ; then
5623 eval "DEFAULT_$LINE"
5624 else
5625 no_cache=1
5626 fi
5627
5628 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5629
5630 fi
5631
5632
5633 eval "$ac_cv_use_resources"
5634 if test "$no_cache" != 1; then
5635 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5636 fi
5637
5638 if test "$wxUSE_RESOURCES" = yes; then
5639 echo "$ac_t""yes" 1>&6
5640 else
5641 echo "$ac_t""no" 1>&6
5642 fi
5643
5644
5645
5646
5647 enablestring=
5648 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5649 echo "configure:5650: checking for --${enablestring:-enable}-clipboard" >&5
5650 no_cache=0
5651 # Check whether --enable-clipboard or --disable-clipboard was given.
5652 if test "${enable_clipboard+set}" = set; then
5653 enableval="$enable_clipboard"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5657 else
5658 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5659 fi
5660
5661 else
5662
5663 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5671
5672 fi
5673
5674
5675 eval "$ac_cv_use_clipboard"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_CLIPBOARD" = yes; then
5681 echo "$ac_t""yes" 1>&6
5682 else
5683 echo "$ac_t""no" 1>&6
5684 fi
5685
5686
5687 enablestring=
5688 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5689 echo "configure:5690: checking for --${enablestring:-enable}-dnd" >&5
5690 no_cache=0
5691 # Check whether --enable-dnd or --disable-dnd was given.
5692 if test "${enable_dnd+set}" = set; then
5693 enableval="$enable_dnd"
5694
5695 if test "$enableval" = yes; then
5696 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5697 else
5698 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5699 fi
5700
5701 else
5702
5703 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5704 if test "x$LINE" != x ; then
5705 eval "DEFAULT_$LINE"
5706 else
5707 no_cache=1
5708 fi
5709
5710 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5711
5712 fi
5713
5714
5715 eval "$ac_cv_use_dnd"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5721 echo "$ac_t""yes" 1>&6
5722 else
5723 echo "$ac_t""no" 1>&6
5724 fi
5725
5726
5727 enablestring=
5728 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5729 echo "configure:5730: checking for --${enablestring:-enable}-metafile" >&5
5730 no_cache=0
5731 # Check whether --enable-metafile or --disable-metafile was given.
5732 if test "${enable_metafile+set}" = set; then
5733 enableval="$enable_metafile"
5734
5735 if test "$enableval" = yes; then
5736 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5737 else
5738 ac_cv_use_metafile='wxUSE_METAFILE=no'
5739 fi
5740
5741 else
5742
5743 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5751
5752 fi
5753
5754
5755 eval "$ac_cv_use_metafile"
5756 if test "$no_cache" != 1; then
5757 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5758 fi
5759
5760 if test "$wxUSE_METAFILE" = yes; then
5761 echo "$ac_t""yes" 1>&6
5762 else
5763 echo "$ac_t""no" 1>&6
5764 fi
5765
5766
5767
5768
5769
5770 enablestring=
5771 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5772 echo "configure:5773: checking for --${enablestring:-enable}-controls" >&5
5773 no_cache=0
5774 # Check whether --enable-controls or --disable-controls was given.
5775 if test "${enable_controls+set}" = set; then
5776 enableval="$enable_controls"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5780 else
5781 ac_cv_use_controls='wxUSE_CONTROLS=no'
5782 fi
5783
5784 else
5785
5786 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5794
5795 fi
5796
5797
5798 eval "$ac_cv_use_controls"
5799 if test "$no_cache" != 1; then
5800 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5801 fi
5802
5803 if test "$wxUSE_CONTROLS" = yes; then
5804 echo "$ac_t""yes" 1>&6
5805 else
5806 echo "$ac_t""no" 1>&6
5807 fi
5808
5809
5810 if test "$wxUSE_CONTROLS" = "yes"; then
5811 DEFAULT_wxUSE_ACCEL=yes
5812 DEFAULT_wxUSE_BMPBUTTON=yes
5813 DEFAULT_wxUSE_BUTTON=yes
5814 DEFAULT_wxUSE_CALCTRL=no
5815 DEFAULT_wxUSE_CARET=yes
5816 DEFAULT_wxUSE_COMBOBOX=yes
5817 DEFAULT_wxUSE_CHECKBOX=yes
5818 DEFAULT_wxUSE_CHECKLISTBOX=yes
5819 DEFAULT_wxUSE_CHOICE=yes
5820 DEFAULT_wxUSE_GAUGE=yes
5821 DEFAULT_wxUSE_GRID=yes
5822 DEFAULT_wxUSE_IMAGLIST=yes
5823 DEFAULT_wxUSE_LISTBOX=yes
5824 DEFAULT_wxUSE_LISTCTRL=yes
5825 DEFAULT_wxUSE_NOTEBOOK=yes
5826 DEFAULT_wxUSE_RADIOBOX=yes
5827 DEFAULT_wxUSE_RADIOBTN=yes
5828 DEFAULT_wxUSE_SASH=yes
5829 DEFAULT_wxUSE_SCROLLBAR=yes
5830 DEFAULT_wxUSE_SLIDER=yes
5831 DEFAULT_wxUSE_SPINBTN=yes
5832 DEFAULT_wxUSE_SPINCTRL=yes
5833 DEFAULT_wxUSE_SPLITTER=yes
5834 DEFAULT_wxUSE_STATBMP=yes
5835 DEFAULT_wxUSE_STATBOX=yes
5836 DEFAULT_wxUSE_STATLINE=yes
5837 DEFAULT_wxUSE_STATUSBAR=yes
5838 DEFAULT_wxUSE_TAB_DIALOG=yes
5839 DEFAULT_wxUSE_TOGGLEBTN=yes
5840 DEFAULT_wxUSE_TOOLBAR=yes
5841 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5842 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5843 DEFAULT_wxUSE_TOOLTIPS=yes
5844 DEFAULT_wxUSE_TREECTRL=yes
5845 DEFAULT_wxUSE_POPUPWIN=yes
5846 DEFAULT_wxUSE_TIPWINDOW=yes
5847 elif test "$wxUSE_CONTROLS" = "no"; then
5848 DEFAULT_wxUSE_ACCEL=no
5849 DEFAULT_wxUSE_BMPBUTTON=no
5850 DEFAULT_wxUSE_BUTTON=no
5851 DEFAULT_wxUSE_CALCTRL=no
5852 DEFAULT_wxUSE_CARET=no
5853 DEFAULT_wxUSE_COMBOBOX=no
5854 DEFAULT_wxUSE_CHECKBOX=no
5855 DEFAULT_wxUSE_CHECKLISTBOX=no
5856 DEFAULT_wxUSE_CHOICE=no
5857 DEFAULT_wxUSE_GAUGE=no
5858 DEFAULT_wxUSE_GRID=no
5859 DEFAULT_wxUSE_IMAGLIST=no
5860 DEFAULT_wxUSE_LISTBOX=no
5861 DEFAULT_wxUSE_LISTCTRL=no
5862 DEFAULT_wxUSE_NOTEBOOK=no
5863 DEFAULT_wxUSE_RADIOBOX=no
5864 DEFAULT_wxUSE_RADIOBTN=no
5865 DEFAULT_wxUSE_SASH=no
5866 DEFAULT_wxUSE_SCROLLBAR=no
5867 DEFAULT_wxUSE_SLIDER=no
5868 DEFAULT_wxUSE_SPINBTN=no
5869 DEFAULT_wxUSE_SPINCTRL=no
5870 DEFAULT_wxUSE_SPLITTER=no
5871 DEFAULT_wxUSE_STATBMP=no
5872 DEFAULT_wxUSE_STATBOX=no
5873 DEFAULT_wxUSE_STATLINE=no
5874 DEFAULT_wxUSE_STATUSBAR=no
5875 DEFAULT_wxUSE_TAB_DIALOG=no
5876 DEFAULT_wxUSE_TOGGLEBTN=no
5877 DEFAULT_wxUSE_TOOLBAR=no
5878 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5879 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5880 DEFAULT_wxUSE_TOOLTIPS=no
5881 DEFAULT_wxUSE_TREECTRL=no
5882 DEFAULT_wxUSE_POPUPWIN=no
5883 DEFAULT_wxUSE_TIPWINDOW=no
5884 fi
5885
5886 ## FIXME: This is a blatant hack
5887 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5888 wxUSE_PRINTING_ARCHITECTURE=no
5889 wxUSE_HELP=no
5890 wxUSE_CLIPBOARD=no
5891 wxUSE_DRAG_AND_DROP=no
5892 wxUSE_DATAOBJ=no
5893 # Generic notebook requires tab dialog
5894 DEFAULT_wxUSE_TABDIALOG=yes
5895 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5896 DEFAULT_wxUSE_GAUGE=no
5897 DEFAULT_wxUSE_SCROLLBAR=no
5898 DEFAULT_wxUSE_COMBOBOX=no
5899 DEFAULT_wxUSE_CALCTRL=no
5900 DEFAULT_wxUSE_SPINBTN=no
5901 DEFAULT_wxUSE_SPINCTRL=no
5902 DEFAULT_wxUSE_TOOLTIPS=no
5903 DEFAULT_wxUSE_DRAGIMAGE=no
5904 DEFAULT_wxUSE_FINDREPLDLG=no
5905 DEFAULT_wxUSE_FONTDLG=no
5906 DEFAULT_wxUSE_GRID=no
5907 DEFAULT_wxUSE_NUMBERDLG=no
5908 DEFAULT_wxUSE_PROGRESSDLG=no
5909 DEFAULT_wxUSE_SASH=no
5910 DEFAULT_wxUSE_SPLITTER=no
5911 DEFAULT_wxUSE_WIZARDDLG=no
5912 DEFAULT_wxUSE_SPLITTER=no
5913 DEFAULT_wxUSE_STARTUP_TIPS=no
5914 fi
5915
5916
5917 enablestring=
5918 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5919 echo "configure:5920: checking for --${enablestring:-enable}-accel" >&5
5920 no_cache=0
5921 # Check whether --enable-accel or --disable-accel was given.
5922 if test "${enable_accel+set}" = set; then
5923 enableval="$enable_accel"
5924
5925 if test "$enableval" = yes; then
5926 ac_cv_use_accel='wxUSE_ACCEL=yes'
5927 else
5928 ac_cv_use_accel='wxUSE_ACCEL=no'
5929 fi
5930
5931 else
5932
5933 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5934 if test "x$LINE" != x ; then
5935 eval "DEFAULT_$LINE"
5936 else
5937 no_cache=1
5938 fi
5939
5940 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5941
5942 fi
5943
5944
5945 eval "$ac_cv_use_accel"
5946 if test "$no_cache" != 1; then
5947 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5948 fi
5949
5950 if test "$wxUSE_ACCEL" = yes; then
5951 echo "$ac_t""yes" 1>&6
5952 else
5953 echo "$ac_t""no" 1>&6
5954 fi
5955
5956
5957 enablestring=
5958 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5959 echo "configure:5960: checking for --${enablestring:-enable}-button" >&5
5960 no_cache=0
5961 # Check whether --enable-button or --disable-button was given.
5962 if test "${enable_button+set}" = set; then
5963 enableval="$enable_button"
5964
5965 if test "$enableval" = yes; then
5966 ac_cv_use_button='wxUSE_BUTTON=yes'
5967 else
5968 ac_cv_use_button='wxUSE_BUTTON=no'
5969 fi
5970
5971 else
5972
5973 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5981
5982 fi
5983
5984
5985 eval "$ac_cv_use_button"
5986 if test "$no_cache" != 1; then
5987 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5988 fi
5989
5990 if test "$wxUSE_BUTTON" = yes; then
5991 echo "$ac_t""yes" 1>&6
5992 else
5993 echo "$ac_t""no" 1>&6
5994 fi
5995
5996
5997 enablestring=
5998 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5999 echo "configure:6000: checking for --${enablestring:-enable}-bmpbutton" >&5
6000 no_cache=0
6001 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6002 if test "${enable_bmpbutton+set}" = set; then
6003 enableval="$enable_bmpbutton"
6004
6005 if test "$enableval" = yes; then
6006 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6007 else
6008 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6009 fi
6010
6011 else
6012
6013 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6014 if test "x$LINE" != x ; then
6015 eval "DEFAULT_$LINE"
6016 else
6017 no_cache=1
6018 fi
6019
6020 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6021
6022 fi
6023
6024
6025 eval "$ac_cv_use_bmpbutton"
6026 if test "$no_cache" != 1; then
6027 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6028 fi
6029
6030 if test "$wxUSE_BMPBUTTON" = yes; then
6031 echo "$ac_t""yes" 1>&6
6032 else
6033 echo "$ac_t""no" 1>&6
6034 fi
6035
6036
6037 enablestring=
6038 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6039 echo "configure:6040: checking for --${enablestring:-enable}-calendar" >&5
6040 no_cache=0
6041 # Check whether --enable-calendar or --disable-calendar was given.
6042 if test "${enable_calendar+set}" = set; then
6043 enableval="$enable_calendar"
6044
6045 if test "$enableval" = yes; then
6046 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6047 else
6048 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6049 fi
6050
6051 else
6052
6053 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6054 if test "x$LINE" != x ; then
6055 eval "DEFAULT_$LINE"
6056 else
6057 no_cache=1
6058 fi
6059
6060 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6061
6062 fi
6063
6064
6065 eval "$ac_cv_use_calendar"
6066 if test "$no_cache" != 1; then
6067 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6068 fi
6069
6070 if test "$wxUSE_CALCTRL" = yes; then
6071 echo "$ac_t""yes" 1>&6
6072 else
6073 echo "$ac_t""no" 1>&6
6074 fi
6075
6076
6077 enablestring=
6078 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6079 echo "configure:6080: checking for --${enablestring:-enable}-caret" >&5
6080 no_cache=0
6081 # Check whether --enable-caret or --disable-caret was given.
6082 if test "${enable_caret+set}" = set; then
6083 enableval="$enable_caret"
6084
6085 if test "$enableval" = yes; then
6086 ac_cv_use_caret='wxUSE_CARET=yes'
6087 else
6088 ac_cv_use_caret='wxUSE_CARET=no'
6089 fi
6090
6091 else
6092
6093 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6094 if test "x$LINE" != x ; then
6095 eval "DEFAULT_$LINE"
6096 else
6097 no_cache=1
6098 fi
6099
6100 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6101
6102 fi
6103
6104
6105 eval "$ac_cv_use_caret"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_CARET" = yes; then
6111 echo "$ac_t""yes" 1>&6
6112 else
6113 echo "$ac_t""no" 1>&6
6114 fi
6115
6116
6117 enablestring=
6118 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6119 echo "configure:6120: checking for --${enablestring:-enable}-checkbox" >&5
6120 no_cache=0
6121 # Check whether --enable-checkbox or --disable-checkbox was given.
6122 if test "${enable_checkbox+set}" = set; then
6123 enableval="$enable_checkbox"
6124
6125 if test "$enableval" = yes; then
6126 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6127 else
6128 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6129 fi
6130
6131 else
6132
6133 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6134 if test "x$LINE" != x ; then
6135 eval "DEFAULT_$LINE"
6136 else
6137 no_cache=1
6138 fi
6139
6140 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6141
6142 fi
6143
6144
6145 eval "$ac_cv_use_checkbox"
6146 if test "$no_cache" != 1; then
6147 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6148 fi
6149
6150 if test "$wxUSE_CHECKBOX" = yes; then
6151 echo "$ac_t""yes" 1>&6
6152 else
6153 echo "$ac_t""no" 1>&6
6154 fi
6155
6156
6157 enablestring=
6158 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6159 echo "configure:6160: checking for --${enablestring:-enable}-checklst" >&5
6160 no_cache=0
6161 # Check whether --enable-checklst or --disable-checklst was given.
6162 if test "${enable_checklst+set}" = set; then
6163 enableval="$enable_checklst"
6164
6165 if test "$enableval" = yes; then
6166 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6167 else
6168 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6169 fi
6170
6171 else
6172
6173 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6174 if test "x$LINE" != x ; then
6175 eval "DEFAULT_$LINE"
6176 else
6177 no_cache=1
6178 fi
6179
6180 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6181
6182 fi
6183
6184
6185 eval "$ac_cv_use_checklst"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_CHECKLST" = yes; then
6191 echo "$ac_t""yes" 1>&6
6192 else
6193 echo "$ac_t""no" 1>&6
6194 fi
6195
6196
6197 enablestring=
6198 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6199 echo "configure:6200: checking for --${enablestring:-enable}-choice" >&5
6200 no_cache=0
6201 # Check whether --enable-choice or --disable-choice was given.
6202 if test "${enable_choice+set}" = set; then
6203 enableval="$enable_choice"
6204
6205 if test "$enableval" = yes; then
6206 ac_cv_use_choice='wxUSE_CHOICE=yes'
6207 else
6208 ac_cv_use_choice='wxUSE_CHOICE=no'
6209 fi
6210
6211 else
6212
6213 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6221
6222 fi
6223
6224
6225 eval "$ac_cv_use_choice"
6226 if test "$no_cache" != 1; then
6227 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6228 fi
6229
6230 if test "$wxUSE_CHOICE" = yes; then
6231 echo "$ac_t""yes" 1>&6
6232 else
6233 echo "$ac_t""no" 1>&6
6234 fi
6235
6236
6237 enablestring=
6238 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6239 echo "configure:6240: checking for --${enablestring:-enable}-combobox" >&5
6240 no_cache=0
6241 # Check whether --enable-combobox or --disable-combobox was given.
6242 if test "${enable_combobox+set}" = set; then
6243 enableval="$enable_combobox"
6244
6245 if test "$enableval" = yes; then
6246 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6247 else
6248 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6249 fi
6250
6251 else
6252
6253 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6254 if test "x$LINE" != x ; then
6255 eval "DEFAULT_$LINE"
6256 else
6257 no_cache=1
6258 fi
6259
6260 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6261
6262 fi
6263
6264
6265 eval "$ac_cv_use_combobox"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_COMBOBOX" = yes; then
6271 echo "$ac_t""yes" 1>&6
6272 else
6273 echo "$ac_t""no" 1>&6
6274 fi
6275
6276
6277 enablestring=
6278 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6279 echo "configure:6280: checking for --${enablestring:-enable}-display" >&5
6280 no_cache=0
6281 # Check whether --enable-display or --disable-display was given.
6282 if test "${enable_display+set}" = set; then
6283 enableval="$enable_display"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_display='wxUSE_DISPLAY=yes'
6287 else
6288 ac_cv_use_display='wxUSE_DISPLAY=no'
6289 fi
6290
6291 else
6292
6293 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6301
6302 fi
6303
6304
6305 eval "$ac_cv_use_display"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_DISPLAY" = yes; then
6311 echo "$ac_t""yes" 1>&6
6312 else
6313 echo "$ac_t""no" 1>&6
6314 fi
6315
6316
6317 enablestring=
6318 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6319 echo "configure:6320: checking for --${enablestring:-enable}-gauge" >&5
6320 no_cache=0
6321 # Check whether --enable-gauge or --disable-gauge was given.
6322 if test "${enable_gauge+set}" = set; then
6323 enableval="$enable_gauge"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6327 else
6328 ac_cv_use_gauge='wxUSE_GAUGE=no'
6329 fi
6330
6331 else
6332
6333 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6341
6342 fi
6343
6344
6345 eval "$ac_cv_use_gauge"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_GAUGE" = yes; then
6351 echo "$ac_t""yes" 1>&6
6352 else
6353 echo "$ac_t""no" 1>&6
6354 fi
6355
6356
6357 enablestring=
6358 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6359 echo "configure:6360: checking for --${enablestring:-enable}-grid" >&5
6360 no_cache=0
6361 # Check whether --enable-grid or --disable-grid was given.
6362 if test "${enable_grid+set}" = set; then
6363 enableval="$enable_grid"
6364
6365 if test "$enableval" = yes; then
6366 ac_cv_use_grid='wxUSE_GRID=yes'
6367 else
6368 ac_cv_use_grid='wxUSE_GRID=no'
6369 fi
6370
6371 else
6372
6373 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6374 if test "x$LINE" != x ; then
6375 eval "DEFAULT_$LINE"
6376 else
6377 no_cache=1
6378 fi
6379
6380 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6381
6382 fi
6383
6384
6385 eval "$ac_cv_use_grid"
6386 if test "$no_cache" != 1; then
6387 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6388 fi
6389
6390 if test "$wxUSE_GRID" = yes; then
6391 echo "$ac_t""yes" 1>&6
6392 else
6393 echo "$ac_t""no" 1>&6
6394 fi
6395
6396
6397 enablestring=
6398 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6399 echo "configure:6400: checking for --${enablestring:-enable}-imaglist" >&5
6400 no_cache=0
6401 # Check whether --enable-imaglist or --disable-imaglist was given.
6402 if test "${enable_imaglist+set}" = set; then
6403 enableval="$enable_imaglist"
6404
6405 if test "$enableval" = yes; then
6406 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6407 else
6408 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6409 fi
6410
6411 else
6412
6413 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6414 if test "x$LINE" != x ; then
6415 eval "DEFAULT_$LINE"
6416 else
6417 no_cache=1
6418 fi
6419
6420 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6421
6422 fi
6423
6424
6425 eval "$ac_cv_use_imaglist"
6426 if test "$no_cache" != 1; then
6427 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6428 fi
6429
6430 if test "$wxUSE_IMAGLIST" = yes; then
6431 echo "$ac_t""yes" 1>&6
6432 else
6433 echo "$ac_t""no" 1>&6
6434 fi
6435
6436
6437 enablestring=
6438 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6439 echo "configure:6440: checking for --${enablestring:-enable}-listbox" >&5
6440 no_cache=0
6441 # Check whether --enable-listbox or --disable-listbox was given.
6442 if test "${enable_listbox+set}" = set; then
6443 enableval="$enable_listbox"
6444
6445 if test "$enableval" = yes; then
6446 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6447 else
6448 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6449 fi
6450
6451 else
6452
6453 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6461
6462 fi
6463
6464
6465 eval "$ac_cv_use_listbox"
6466 if test "$no_cache" != 1; then
6467 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6468 fi
6469
6470 if test "$wxUSE_LISTBOX" = yes; then
6471 echo "$ac_t""yes" 1>&6
6472 else
6473 echo "$ac_t""no" 1>&6
6474 fi
6475
6476
6477 enablestring=
6478 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6479 echo "configure:6480: checking for --${enablestring:-enable}-listctrl" >&5
6480 no_cache=0
6481 # Check whether --enable-listctrl or --disable-listctrl was given.
6482 if test "${enable_listctrl+set}" = set; then
6483 enableval="$enable_listctrl"
6484
6485 if test "$enableval" = yes; then
6486 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6487 else
6488 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6489 fi
6490
6491 else
6492
6493 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6494 if test "x$LINE" != x ; then
6495 eval "DEFAULT_$LINE"
6496 else
6497 no_cache=1
6498 fi
6499
6500 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6501
6502 fi
6503
6504
6505 eval "$ac_cv_use_listctrl"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_LISTCTRL" = yes; then
6511 echo "$ac_t""yes" 1>&6
6512 else
6513 echo "$ac_t""no" 1>&6
6514 fi
6515
6516
6517 enablestring=
6518 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6519 echo "configure:6520: checking for --${enablestring:-enable}-notebook" >&5
6520 no_cache=0
6521 # Check whether --enable-notebook or --disable-notebook was given.
6522 if test "${enable_notebook+set}" = set; then
6523 enableval="$enable_notebook"
6524
6525 if test "$enableval" = yes; then
6526 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6527 else
6528 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6529 fi
6530
6531 else
6532
6533 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6534 if test "x$LINE" != x ; then
6535 eval "DEFAULT_$LINE"
6536 else
6537 no_cache=1
6538 fi
6539
6540 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6541
6542 fi
6543
6544
6545 eval "$ac_cv_use_notebook"
6546 if test "$no_cache" != 1; then
6547 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6548 fi
6549
6550 if test "$wxUSE_NOTEBOOK" = yes; then
6551 echo "$ac_t""yes" 1>&6
6552 else
6553 echo "$ac_t""no" 1>&6
6554 fi
6555
6556
6557 enablestring=
6558 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6559 echo "configure:6560: checking for --${enablestring:-enable}-radiobox" >&5
6560 no_cache=0
6561 # Check whether --enable-radiobox or --disable-radiobox was given.
6562 if test "${enable_radiobox+set}" = set; then
6563 enableval="$enable_radiobox"
6564
6565 if test "$enableval" = yes; then
6566 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6567 else
6568 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6569 fi
6570
6571 else
6572
6573 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6574 if test "x$LINE" != x ; then
6575 eval "DEFAULT_$LINE"
6576 else
6577 no_cache=1
6578 fi
6579
6580 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6581
6582 fi
6583
6584
6585 eval "$ac_cv_use_radiobox"
6586 if test "$no_cache" != 1; then
6587 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6588 fi
6589
6590 if test "$wxUSE_RADIOBOX" = yes; then
6591 echo "$ac_t""yes" 1>&6
6592 else
6593 echo "$ac_t""no" 1>&6
6594 fi
6595
6596
6597 enablestring=
6598 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6599 echo "configure:6600: checking for --${enablestring:-enable}-radiobtn" >&5
6600 no_cache=0
6601 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6602 if test "${enable_radiobtn+set}" = set; then
6603 enableval="$enable_radiobtn"
6604
6605 if test "$enableval" = yes; then
6606 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6607 else
6608 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6609 fi
6610
6611 else
6612
6613 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6614 if test "x$LINE" != x ; then
6615 eval "DEFAULT_$LINE"
6616 else
6617 no_cache=1
6618 fi
6619
6620 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6621
6622 fi
6623
6624
6625 eval "$ac_cv_use_radiobtn"
6626 if test "$no_cache" != 1; then
6627 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6628 fi
6629
6630 if test "$wxUSE_RADIOBTN" = yes; then
6631 echo "$ac_t""yes" 1>&6
6632 else
6633 echo "$ac_t""no" 1>&6
6634 fi
6635
6636
6637 enablestring=
6638 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6639 echo "configure:6640: checking for --${enablestring:-enable}-sash" >&5
6640 no_cache=0
6641 # Check whether --enable-sash or --disable-sash was given.
6642 if test "${enable_sash+set}" = set; then
6643 enableval="$enable_sash"
6644
6645 if test "$enableval" = yes; then
6646 ac_cv_use_sash='wxUSE_SASH=yes'
6647 else
6648 ac_cv_use_sash='wxUSE_SASH=no'
6649 fi
6650
6651 else
6652
6653 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6654 if test "x$LINE" != x ; then
6655 eval "DEFAULT_$LINE"
6656 else
6657 no_cache=1
6658 fi
6659
6660 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6661
6662 fi
6663
6664
6665 eval "$ac_cv_use_sash"
6666 if test "$no_cache" != 1; then
6667 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6668 fi
6669
6670 if test "$wxUSE_SASH" = yes; then
6671 echo "$ac_t""yes" 1>&6
6672 else
6673 echo "$ac_t""no" 1>&6
6674 fi
6675
6676
6677 enablestring=
6678 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6679 echo "configure:6680: checking for --${enablestring:-enable}-scrollbar" >&5
6680 no_cache=0
6681 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6682 if test "${enable_scrollbar+set}" = set; then
6683 enableval="$enable_scrollbar"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6687 else
6688 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6689 fi
6690
6691 else
6692
6693 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6701
6702 fi
6703
6704
6705 eval "$ac_cv_use_scrollbar"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_SCROLLBAR" = yes; then
6711 echo "$ac_t""yes" 1>&6
6712 else
6713 echo "$ac_t""no" 1>&6
6714 fi
6715
6716
6717 enablestring=
6718 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6719 echo "configure:6720: checking for --${enablestring:-enable}-slider" >&5
6720 no_cache=0
6721 # Check whether --enable-slider or --disable-slider was given.
6722 if test "${enable_slider+set}" = set; then
6723 enableval="$enable_slider"
6724
6725 if test "$enableval" = yes; then
6726 ac_cv_use_slider='wxUSE_SLIDER=yes'
6727 else
6728 ac_cv_use_slider='wxUSE_SLIDER=no'
6729 fi
6730
6731 else
6732
6733 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
6740 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6741
6742 fi
6743
6744
6745 eval "$ac_cv_use_slider"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_SLIDER" = yes; then
6751 echo "$ac_t""yes" 1>&6
6752 else
6753 echo "$ac_t""no" 1>&6
6754 fi
6755
6756
6757 enablestring=
6758 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6759 echo "configure:6760: checking for --${enablestring:-enable}-spinbtn" >&5
6760 no_cache=0
6761 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6762 if test "${enable_spinbtn+set}" = set; then
6763 enableval="$enable_spinbtn"
6764
6765 if test "$enableval" = yes; then
6766 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6767 else
6768 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6769 fi
6770
6771 else
6772
6773 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6774 if test "x$LINE" != x ; then
6775 eval "DEFAULT_$LINE"
6776 else
6777 no_cache=1
6778 fi
6779
6780 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6781
6782 fi
6783
6784
6785 eval "$ac_cv_use_spinbtn"
6786 if test "$no_cache" != 1; then
6787 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6788 fi
6789
6790 if test "$wxUSE_SPINBTN" = yes; then
6791 echo "$ac_t""yes" 1>&6
6792 else
6793 echo "$ac_t""no" 1>&6
6794 fi
6795
6796
6797 enablestring=
6798 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6799 echo "configure:6800: checking for --${enablestring:-enable}-spinctrl" >&5
6800 no_cache=0
6801 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6802 if test "${enable_spinctrl+set}" = set; then
6803 enableval="$enable_spinctrl"
6804
6805 if test "$enableval" = yes; then
6806 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6807 else
6808 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6809 fi
6810
6811 else
6812
6813 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6821
6822 fi
6823
6824
6825 eval "$ac_cv_use_spinctrl"
6826 if test "$no_cache" != 1; then
6827 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6828 fi
6829
6830 if test "$wxUSE_SPINCTRL" = yes; then
6831 echo "$ac_t""yes" 1>&6
6832 else
6833 echo "$ac_t""no" 1>&6
6834 fi
6835
6836
6837 enablestring=
6838 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6839 echo "configure:6840: checking for --${enablestring:-enable}-splitter" >&5
6840 no_cache=0
6841 # Check whether --enable-splitter or --disable-splitter was given.
6842 if test "${enable_splitter+set}" = set; then
6843 enableval="$enable_splitter"
6844
6845 if test "$enableval" = yes; then
6846 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6847 else
6848 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6849 fi
6850
6851 else
6852
6853 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6861
6862 fi
6863
6864
6865 eval "$ac_cv_use_splitter"
6866 if test "$no_cache" != 1; then
6867 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6868 fi
6869
6870 if test "$wxUSE_SPLITTER" = yes; then
6871 echo "$ac_t""yes" 1>&6
6872 else
6873 echo "$ac_t""no" 1>&6
6874 fi
6875
6876
6877 enablestring=
6878 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6879 echo "configure:6880: checking for --${enablestring:-enable}-statbmp" >&5
6880 no_cache=0
6881 # Check whether --enable-statbmp or --disable-statbmp was given.
6882 if test "${enable_statbmp+set}" = set; then
6883 enableval="$enable_statbmp"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6887 else
6888 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6889 fi
6890
6891 else
6892
6893 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6901
6902 fi
6903
6904
6905 eval "$ac_cv_use_statbmp"
6906 if test "$no_cache" != 1; then
6907 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6908 fi
6909
6910 if test "$wxUSE_STATBMP" = yes; then
6911 echo "$ac_t""yes" 1>&6
6912 else
6913 echo "$ac_t""no" 1>&6
6914 fi
6915
6916
6917 enablestring=
6918 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6919 echo "configure:6920: checking for --${enablestring:-enable}-statbox" >&5
6920 no_cache=0
6921 # Check whether --enable-statbox or --disable-statbox was given.
6922 if test "${enable_statbox+set}" = set; then
6923 enableval="$enable_statbox"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6927 else
6928 ac_cv_use_statbox='wxUSE_STATBOX=no'
6929 fi
6930
6931 else
6932
6933 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6941
6942 fi
6943
6944
6945 eval "$ac_cv_use_statbox"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_STATBOX" = yes; then
6951 echo "$ac_t""yes" 1>&6
6952 else
6953 echo "$ac_t""no" 1>&6
6954 fi
6955
6956
6957 enablestring=
6958 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6959 echo "configure:6960: checking for --${enablestring:-enable}-statline" >&5
6960 no_cache=0
6961 # Check whether --enable-statline or --disable-statline was given.
6962 if test "${enable_statline+set}" = set; then
6963 enableval="$enable_statline"
6964
6965 if test "$enableval" = yes; then
6966 ac_cv_use_statline='wxUSE_STATLINE=yes'
6967 else
6968 ac_cv_use_statline='wxUSE_STATLINE=no'
6969 fi
6970
6971 else
6972
6973 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6974 if test "x$LINE" != x ; then
6975 eval "DEFAULT_$LINE"
6976 else
6977 no_cache=1
6978 fi
6979
6980 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6981
6982 fi
6983
6984
6985 eval "$ac_cv_use_statline"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6988 fi
6989
6990 if test "$wxUSE_STATLINE" = yes; then
6991 echo "$ac_t""yes" 1>&6
6992 else
6993 echo "$ac_t""no" 1>&6
6994 fi
6995
6996
6997 enablestring=
6998 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6999 echo "configure:7000: checking for --${enablestring:-enable}-stattext" >&5
7000 no_cache=0
7001 # Check whether --enable-stattext or --disable-stattext was given.
7002 if test "${enable_stattext+set}" = set; then
7003 enableval="$enable_stattext"
7004
7005 if test "$enableval" = yes; then
7006 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7007 else
7008 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7009 fi
7010
7011 else
7012
7013 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7014 if test "x$LINE" != x ; then
7015 eval "DEFAULT_$LINE"
7016 else
7017 no_cache=1
7018 fi
7019
7020 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7021
7022 fi
7023
7024
7025 eval "$ac_cv_use_stattext"
7026 if test "$no_cache" != 1; then
7027 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7028 fi
7029
7030 if test "$wxUSE_STATTEXT" = yes; then
7031 echo "$ac_t""yes" 1>&6
7032 else
7033 echo "$ac_t""no" 1>&6
7034 fi
7035
7036
7037 enablestring=
7038 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7039 echo "configure:7040: checking for --${enablestring:-enable}-statusbar" >&5
7040 no_cache=0
7041 # Check whether --enable-statusbar or --disable-statusbar was given.
7042 if test "${enable_statusbar+set}" = set; then
7043 enableval="$enable_statusbar"
7044
7045 if test "$enableval" = yes; then
7046 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7047 else
7048 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7049 fi
7050
7051 else
7052
7053 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7054 if test "x$LINE" != x ; then
7055 eval "DEFAULT_$LINE"
7056 else
7057 no_cache=1
7058 fi
7059
7060 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7061
7062 fi
7063
7064
7065 eval "$ac_cv_use_statusbar"
7066 if test "$no_cache" != 1; then
7067 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7068 fi
7069
7070 if test "$wxUSE_STATUSBAR" = yes; then
7071 echo "$ac_t""yes" 1>&6
7072 else
7073 echo "$ac_t""no" 1>&6
7074 fi
7075
7076
7077 enablestring=
7078 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7079 echo "configure:7080: checking for --${enablestring:-enable}-tabdialog" >&5
7080 no_cache=0
7081 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7082 if test "${enable_tabdialog+set}" = set; then
7083 enableval="$enable_tabdialog"
7084
7085 if test "$enableval" = yes; then
7086 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7087 else
7088 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7089 fi
7090
7091 else
7092
7093 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7094 if test "x$LINE" != x ; then
7095 eval "DEFAULT_$LINE"
7096 else
7097 no_cache=1
7098 fi
7099
7100 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7101
7102 fi
7103
7104
7105 eval "$ac_cv_use_tabdialog"
7106 if test "$no_cache" != 1; then
7107 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7108 fi
7109
7110 if test "$wxUSE_TABDIALOG" = yes; then
7111 echo "$ac_t""yes" 1>&6
7112 else
7113 echo "$ac_t""no" 1>&6
7114 fi
7115
7116
7117 enablestring=
7118 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7119 echo "configure:7120: checking for --${enablestring:-enable}-textctrl" >&5
7120 no_cache=0
7121 # Check whether --enable-textctrl or --disable-textctrl was given.
7122 if test "${enable_textctrl+set}" = set; then
7123 enableval="$enable_textctrl"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7127 else
7128 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7129 fi
7130
7131 else
7132
7133 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7141
7142 fi
7143
7144
7145 eval "$ac_cv_use_textctrl"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TEXTCTRL" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
7157 enablestring=
7158 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7159 echo "configure:7160: checking for --${enablestring:-enable}-togglebtn" >&5
7160 no_cache=0
7161 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7162 if test "${enable_togglebtn+set}" = set; then
7163 enableval="$enable_togglebtn"
7164
7165 if test "$enableval" = yes; then
7166 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7167 else
7168 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7169 fi
7170
7171 else
7172
7173 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7174 if test "x$LINE" != x ; then
7175 eval "DEFAULT_$LINE"
7176 else
7177 no_cache=1
7178 fi
7179
7180 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7181
7182 fi
7183
7184
7185 eval "$ac_cv_use_togglebtn"
7186 if test "$no_cache" != 1; then
7187 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7188 fi
7189
7190 if test "$wxUSE_TOGGLEBTN" = yes; then
7191 echo "$ac_t""yes" 1>&6
7192 else
7193 echo "$ac_t""no" 1>&6
7194 fi
7195
7196
7197 enablestring=
7198 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7199 echo "configure:7200: checking for --${enablestring:-enable}-toolbar" >&5
7200 no_cache=0
7201 # Check whether --enable-toolbar or --disable-toolbar was given.
7202 if test "${enable_toolbar+set}" = set; then
7203 enableval="$enable_toolbar"
7204
7205 if test "$enableval" = yes; then
7206 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7207 else
7208 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7209 fi
7210
7211 else
7212
7213 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7221
7222 fi
7223
7224
7225 eval "$ac_cv_use_toolbar"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_TOOLBAR" = yes; then
7231 echo "$ac_t""yes" 1>&6
7232 else
7233 echo "$ac_t""no" 1>&6
7234 fi
7235
7236
7237 enablestring=
7238 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7239 echo "configure:7240: checking for --${enablestring:-enable}-tbarnative" >&5
7240 no_cache=0
7241 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7242 if test "${enable_tbarnative+set}" = set; then
7243 enableval="$enable_tbarnative"
7244
7245 if test "$enableval" = yes; then
7246 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7247 else
7248 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7249 fi
7250
7251 else
7252
7253 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7254 if test "x$LINE" != x ; then
7255 eval "DEFAULT_$LINE"
7256 else
7257 no_cache=1
7258 fi
7259
7260 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7261
7262 fi
7263
7264
7265 eval "$ac_cv_use_tbarnative"
7266 if test "$no_cache" != 1; then
7267 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7268 fi
7269
7270 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7271 echo "$ac_t""yes" 1>&6
7272 else
7273 echo "$ac_t""no" 1>&6
7274 fi
7275
7276
7277 enablestring=
7278 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7279 echo "configure:7280: checking for --${enablestring:-enable}-tbarsmpl" >&5
7280 no_cache=0
7281 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7282 if test "${enable_tbarsmpl+set}" = set; then
7283 enableval="$enable_tbarsmpl"
7284
7285 if test "$enableval" = yes; then
7286 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7287 else
7288 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7289 fi
7290
7291 else
7292
7293 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7301
7302 fi
7303
7304
7305 eval "$ac_cv_use_tbarsmpl"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7311 echo "$ac_t""yes" 1>&6
7312 else
7313 echo "$ac_t""no" 1>&6
7314 fi
7315
7316
7317 enablestring=
7318 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7319 echo "configure:7320: checking for --${enablestring:-enable}-treectrl" >&5
7320 no_cache=0
7321 # Check whether --enable-treectrl or --disable-treectrl was given.
7322 if test "${enable_treectrl+set}" = set; then
7323 enableval="$enable_treectrl"
7324
7325 if test "$enableval" = yes; then
7326 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7327 else
7328 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7329 fi
7330
7331 else
7332
7333 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7341
7342 fi
7343
7344
7345 eval "$ac_cv_use_treectrl"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_TREECTRL" = yes; then
7351 echo "$ac_t""yes" 1>&6
7352 else
7353 echo "$ac_t""no" 1>&6
7354 fi
7355
7356
7357 enablestring=
7358 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7359 echo "configure:7360: checking for --${enablestring:-enable}-tipwindow" >&5
7360 no_cache=0
7361 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7362 if test "${enable_tipwindow+set}" = set; then
7363 enableval="$enable_tipwindow"
7364
7365 if test "$enableval" = yes; then
7366 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7367 else
7368 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7369 fi
7370
7371 else
7372
7373 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7381
7382 fi
7383
7384
7385 eval "$ac_cv_use_tipwindow"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_TIPWINDOW" = yes; then
7391 echo "$ac_t""yes" 1>&6
7392 else
7393 echo "$ac_t""no" 1>&6
7394 fi
7395
7396
7397 enablestring=
7398 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7399 echo "configure:7400: checking for --${enablestring:-enable}-popupwin" >&5
7400 no_cache=0
7401 # Check whether --enable-popupwin or --disable-popupwin was given.
7402 if test "${enable_popupwin+set}" = set; then
7403 enableval="$enable_popupwin"
7404
7405 if test "$enableval" = yes; then
7406 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7407 else
7408 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7409 fi
7410
7411 else
7412
7413 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7414 if test "x$LINE" != x ; then
7415 eval "DEFAULT_$LINE"
7416 else
7417 no_cache=1
7418 fi
7419
7420 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7421
7422 fi
7423
7424
7425 eval "$ac_cv_use_popupwin"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_POPUPWIN" = yes; then
7431 echo "$ac_t""yes" 1>&6
7432 else
7433 echo "$ac_t""no" 1>&6
7434 fi
7435
7436
7437
7438
7439 enablestring=
7440 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7441 echo "configure:7442: checking for --${enablestring:-enable}-commondlg" >&5
7442 no_cache=0
7443 # Check whether --enable-commondlg or --disable-commondlg was given.
7444 if test "${enable_commondlg+set}" = set; then
7445 enableval="$enable_commondlg"
7446
7447 if test "$enableval" = yes; then
7448 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7449 else
7450 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7451 fi
7452
7453 else
7454
7455 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7463
7464 fi
7465
7466
7467 eval "$ac_cv_use_commondlg"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_COMMONDLGS" = yes; then
7473 echo "$ac_t""yes" 1>&6
7474 else
7475 echo "$ac_t""no" 1>&6
7476 fi
7477
7478
7479 enablestring=
7480 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7481 echo "configure:7482: checking for --${enablestring:-enable}-choicedlg" >&5
7482 no_cache=0
7483 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7484 if test "${enable_choicedlg+set}" = set; then
7485 enableval="$enable_choicedlg"
7486
7487 if test "$enableval" = yes; then
7488 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7489 else
7490 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7491 fi
7492
7493 else
7494
7495 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7496 if test "x$LINE" != x ; then
7497 eval "DEFAULT_$LINE"
7498 else
7499 no_cache=1
7500 fi
7501
7502 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7503
7504 fi
7505
7506
7507 eval "$ac_cv_use_choicedlg"
7508 if test "$no_cache" != 1; then
7509 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7510 fi
7511
7512 if test "$wxUSE_CHOICEDLG" = yes; then
7513 echo "$ac_t""yes" 1>&6
7514 else
7515 echo "$ac_t""no" 1>&6
7516 fi
7517
7518
7519 enablestring=
7520 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7521 echo "configure:7522: checking for --${enablestring:-enable}-coldlg" >&5
7522 no_cache=0
7523 # Check whether --enable-coldlg or --disable-coldlg was given.
7524 if test "${enable_coldlg+set}" = set; then
7525 enableval="$enable_coldlg"
7526
7527 if test "$enableval" = yes; then
7528 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7529 else
7530 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7531 fi
7532
7533 else
7534
7535 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7536 if test "x$LINE" != x ; then
7537 eval "DEFAULT_$LINE"
7538 else
7539 no_cache=1
7540 fi
7541
7542 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7543
7544 fi
7545
7546
7547 eval "$ac_cv_use_coldlg"
7548 if test "$no_cache" != 1; then
7549 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7550 fi
7551
7552 if test "$wxUSE_COLOURDLG" = yes; then
7553 echo "$ac_t""yes" 1>&6
7554 else
7555 echo "$ac_t""no" 1>&6
7556 fi
7557
7558
7559 enablestring=
7560 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7561 echo "configure:7562: checking for --${enablestring:-enable}-filedlg" >&5
7562 no_cache=0
7563 # Check whether --enable-filedlg or --disable-filedlg was given.
7564 if test "${enable_filedlg+set}" = set; then
7565 enableval="$enable_filedlg"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7569 else
7570 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7571 fi
7572
7573 else
7574
7575 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7583
7584 fi
7585
7586
7587 eval "$ac_cv_use_filedlg"
7588 if test "$no_cache" != 1; then
7589 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7590 fi
7591
7592 if test "$wxUSE_FILEDLG" = yes; then
7593 echo "$ac_t""yes" 1>&6
7594 else
7595 echo "$ac_t""no" 1>&6
7596 fi
7597
7598
7599 enablestring=
7600 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7601 echo "configure:7602: checking for --${enablestring:-enable}-finddlg" >&5
7602 no_cache=0
7603 # Check whether --enable-finddlg or --disable-finddlg was given.
7604 if test "${enable_finddlg+set}" = set; then
7605 enableval="$enable_finddlg"
7606
7607 if test "$enableval" = yes; then
7608 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7609 else
7610 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7611 fi
7612
7613 else
7614
7615 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7616 if test "x$LINE" != x ; then
7617 eval "DEFAULT_$LINE"
7618 else
7619 no_cache=1
7620 fi
7621
7622 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7623
7624 fi
7625
7626
7627 eval "$ac_cv_use_finddlg"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_FINDREPLDLG" = yes; then
7633 echo "$ac_t""yes" 1>&6
7634 else
7635 echo "$ac_t""no" 1>&6
7636 fi
7637
7638
7639 enablestring=
7640 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7641 echo "configure:7642: checking for --${enablestring:-enable}-fontdlg" >&5
7642 no_cache=0
7643 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7644 if test "${enable_fontdlg+set}" = set; then
7645 enableval="$enable_fontdlg"
7646
7647 if test "$enableval" = yes; then
7648 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7649 else
7650 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7651 fi
7652
7653 else
7654
7655 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7656 if test "x$LINE" != x ; then
7657 eval "DEFAULT_$LINE"
7658 else
7659 no_cache=1
7660 fi
7661
7662 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7663
7664 fi
7665
7666
7667 eval "$ac_cv_use_fontdlg"
7668 if test "$no_cache" != 1; then
7669 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7670 fi
7671
7672 if test "$wxUSE_FONTDLG" = yes; then
7673 echo "$ac_t""yes" 1>&6
7674 else
7675 echo "$ac_t""no" 1>&6
7676 fi
7677
7678
7679 enablestring=
7680 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7681 echo "configure:7682: checking for --${enablestring:-enable}-dirdlg" >&5
7682 no_cache=0
7683 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7684 if test "${enable_dirdlg+set}" = set; then
7685 enableval="$enable_dirdlg"
7686
7687 if test "$enableval" = yes; then
7688 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7689 else
7690 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7691 fi
7692
7693 else
7694
7695 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7696 if test "x$LINE" != x ; then
7697 eval "DEFAULT_$LINE"
7698 else
7699 no_cache=1
7700 fi
7701
7702 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7703
7704 fi
7705
7706
7707 eval "$ac_cv_use_dirdlg"
7708 if test "$no_cache" != 1; then
7709 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7710 fi
7711
7712 if test "$wxUSE_DIRDLG" = yes; then
7713 echo "$ac_t""yes" 1>&6
7714 else
7715 echo "$ac_t""no" 1>&6
7716 fi
7717
7718
7719 enablestring=
7720 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7721 echo "configure:7722: checking for --${enablestring:-enable}-msgdlg" >&5
7722 no_cache=0
7723 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7724 if test "${enable_msgdlg+set}" = set; then
7725 enableval="$enable_msgdlg"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7729 else
7730 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7731 fi
7732
7733 else
7734
7735 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7743
7744 fi
7745
7746
7747 eval "$ac_cv_use_msgdlg"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_MSGDLG" = yes; then
7753 echo "$ac_t""yes" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7756 fi
7757
7758
7759 enablestring=
7760 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7761 echo "configure:7762: checking for --${enablestring:-enable}-numberdlg" >&5
7762 no_cache=0
7763 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7764 if test "${enable_numberdlg+set}" = set; then
7765 enableval="$enable_numberdlg"
7766
7767 if test "$enableval" = yes; then
7768 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7769 else
7770 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7771 fi
7772
7773 else
7774
7775 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7776 if test "x$LINE" != x ; then
7777 eval "DEFAULT_$LINE"
7778 else
7779 no_cache=1
7780 fi
7781
7782 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7783
7784 fi
7785
7786
7787 eval "$ac_cv_use_numberdlg"
7788 if test "$no_cache" != 1; then
7789 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7790 fi
7791
7792 if test "$wxUSE_NUMBERDLG" = yes; then
7793 echo "$ac_t""yes" 1>&6
7794 else
7795 echo "$ac_t""no" 1>&6
7796 fi
7797
7798
7799 enablestring=
7800 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7801 echo "configure:7802: checking for --${enablestring:-enable}-splash" >&5
7802 no_cache=0
7803 # Check whether --enable-splash or --disable-splash was given.
7804 if test "${enable_splash+set}" = set; then
7805 enableval="$enable_splash"
7806
7807 if test "$enableval" = yes; then
7808 ac_cv_use_splash='wxUSE_SPLASH=yes'
7809 else
7810 ac_cv_use_splash='wxUSE_SPLASH=no'
7811 fi
7812
7813 else
7814
7815 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7823
7824 fi
7825
7826
7827 eval "$ac_cv_use_splash"
7828 if test "$no_cache" != 1; then
7829 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7830 fi
7831
7832 if test "$wxUSE_SPLASH" = yes; then
7833 echo "$ac_t""yes" 1>&6
7834 else
7835 echo "$ac_t""no" 1>&6
7836 fi
7837
7838
7839 enablestring=
7840 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7841 echo "configure:7842: checking for --${enablestring:-enable}-textdlg" >&5
7842 no_cache=0
7843 # Check whether --enable-textdlg or --disable-textdlg was given.
7844 if test "${enable_textdlg+set}" = set; then
7845 enableval="$enable_textdlg"
7846
7847 if test "$enableval" = yes; then
7848 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7849 else
7850 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7851 fi
7852
7853 else
7854
7855 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7863
7864 fi
7865
7866
7867 eval "$ac_cv_use_textdlg"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_TEXTDLG" = yes; then
7873 echo "$ac_t""yes" 1>&6
7874 else
7875 echo "$ac_t""no" 1>&6
7876 fi
7877
7878
7879 enablestring=
7880 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7881 echo "configure:7882: checking for --${enablestring:-enable}-tipdlg" >&5
7882 no_cache=0
7883 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7884 if test "${enable_tipdlg+set}" = set; then
7885 enableval="$enable_tipdlg"
7886
7887 if test "$enableval" = yes; then
7888 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7889 else
7890 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7891 fi
7892
7893 else
7894
7895 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7896 if test "x$LINE" != x ; then
7897 eval "DEFAULT_$LINE"
7898 else
7899 no_cache=1
7900 fi
7901
7902 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7903
7904 fi
7905
7906
7907 eval "$ac_cv_use_tipdlg"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_STARTUP_TIPS" = yes; then
7913 echo "$ac_t""yes" 1>&6
7914 else
7915 echo "$ac_t""no" 1>&6
7916 fi
7917
7918
7919 enablestring=
7920 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7921 echo "configure:7922: checking for --${enablestring:-enable}-progressdlg" >&5
7922 no_cache=0
7923 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7924 if test "${enable_progressdlg+set}" = set; then
7925 enableval="$enable_progressdlg"
7926
7927 if test "$enableval" = yes; then
7928 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7929 else
7930 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7931 fi
7932
7933 else
7934
7935 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7936 if test "x$LINE" != x ; then
7937 eval "DEFAULT_$LINE"
7938 else
7939 no_cache=1
7940 fi
7941
7942 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7943
7944 fi
7945
7946
7947 eval "$ac_cv_use_progressdlg"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_PROGRESSDLG" = yes; then
7953 echo "$ac_t""yes" 1>&6
7954 else
7955 echo "$ac_t""no" 1>&6
7956 fi
7957
7958
7959 enablestring=
7960 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7961 echo "configure:7962: checking for --${enablestring:-enable}-wizarddlg" >&5
7962 no_cache=0
7963 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7964 if test "${enable_wizarddlg+set}" = set; then
7965 enableval="$enable_wizarddlg"
7966
7967 if test "$enableval" = yes; then
7968 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7969 else
7970 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7971 fi
7972
7973 else
7974
7975 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7983
7984 fi
7985
7986
7987 eval "$ac_cv_use_wizarddlg"
7988 if test "$no_cache" != 1; then
7989 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7990 fi
7991
7992 if test "$wxUSE_WIZARDDLG" = yes; then
7993 echo "$ac_t""yes" 1>&6
7994 else
7995 echo "$ac_t""no" 1>&6
7996 fi
7997
7998
7999
8000
8001 enablestring=
8002 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8003 echo "configure:8004: checking for --${enablestring:-enable}-menus" >&5
8004 no_cache=0
8005 # Check whether --enable-menus or --disable-menus was given.
8006 if test "${enable_menus+set}" = set; then
8007 enableval="$enable_menus"
8008
8009 if test "$enableval" = yes; then
8010 ac_cv_use_menus='wxUSE_MENUS=yes'
8011 else
8012 ac_cv_use_menus='wxUSE_MENUS=no'
8013 fi
8014
8015 else
8016
8017 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8018 if test "x$LINE" != x ; then
8019 eval "DEFAULT_$LINE"
8020 else
8021 no_cache=1
8022 fi
8023
8024 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8025
8026 fi
8027
8028
8029 eval "$ac_cv_use_menus"
8030 if test "$no_cache" != 1; then
8031 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8032 fi
8033
8034 if test "$wxUSE_MENUS" = yes; then
8035 echo "$ac_t""yes" 1>&6
8036 else
8037 echo "$ac_t""no" 1>&6
8038 fi
8039
8040
8041 enablestring=
8042 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8043 echo "configure:8044: checking for --${enablestring:-enable}-miniframe" >&5
8044 no_cache=0
8045 # Check whether --enable-miniframe or --disable-miniframe was given.
8046 if test "${enable_miniframe+set}" = set; then
8047 enableval="$enable_miniframe"
8048
8049 if test "$enableval" = yes; then
8050 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8051 else
8052 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8053 fi
8054
8055 else
8056
8057 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8058 if test "x$LINE" != x ; then
8059 eval "DEFAULT_$LINE"
8060 else
8061 no_cache=1
8062 fi
8063
8064 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8065
8066 fi
8067
8068
8069 eval "$ac_cv_use_miniframe"
8070 if test "$no_cache" != 1; then
8071 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8072 fi
8073
8074 if test "$wxUSE_MINIFRAME" = yes; then
8075 echo "$ac_t""yes" 1>&6
8076 else
8077 echo "$ac_t""no" 1>&6
8078 fi
8079
8080
8081 enablestring=
8082 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8083 echo "configure:8084: checking for --${enablestring:-enable}-tooltips" >&5
8084 no_cache=0
8085 # Check whether --enable-tooltips or --disable-tooltips was given.
8086 if test "${enable_tooltips+set}" = set; then
8087 enableval="$enable_tooltips"
8088
8089 if test "$enableval" = yes; then
8090 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8091 else
8092 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8093 fi
8094
8095 else
8096
8097 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8105
8106 fi
8107
8108
8109 eval "$ac_cv_use_tooltips"
8110 if test "$no_cache" != 1; then
8111 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8112 fi
8113
8114 if test "$wxUSE_TOOLTIPS" = yes; then
8115 echo "$ac_t""yes" 1>&6
8116 else
8117 echo "$ac_t""no" 1>&6
8118 fi
8119
8120
8121 enablestring=
8122 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8123 echo "configure:8124: checking for --${enablestring:-enable}-splines" >&5
8124 no_cache=0
8125 # Check whether --enable-splines or --disable-splines was given.
8126 if test "${enable_splines+set}" = set; then
8127 enableval="$enable_splines"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_splines='wxUSE_SPLINES=yes'
8131 else
8132 ac_cv_use_splines='wxUSE_SPLINES=no'
8133 fi
8134
8135 else
8136
8137 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8145
8146 fi
8147
8148
8149 eval "$ac_cv_use_splines"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_SPLINES" = yes; then
8155 echo "$ac_t""yes" 1>&6
8156 else
8157 echo "$ac_t""no" 1>&6
8158 fi
8159
8160
8161 enablestring=
8162 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8163 echo "configure:8164: checking for --${enablestring:-enable}-validators" >&5
8164 no_cache=0
8165 # Check whether --enable-validators or --disable-validators was given.
8166 if test "${enable_validators+set}" = set; then
8167 enableval="$enable_validators"
8168
8169 if test "$enableval" = yes; then
8170 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8171 else
8172 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8173 fi
8174
8175 else
8176
8177 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8178 if test "x$LINE" != x ; then
8179 eval "DEFAULT_$LINE"
8180 else
8181 no_cache=1
8182 fi
8183
8184 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8185
8186 fi
8187
8188
8189 eval "$ac_cv_use_validators"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_VALIDATORS" = yes; then
8195 echo "$ac_t""yes" 1>&6
8196 else
8197 echo "$ac_t""no" 1>&6
8198 fi
8199
8200
8201 enablestring=
8202 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8203 echo "configure:8204: checking for --${enablestring:-enable}-busyinfo" >&5
8204 no_cache=0
8205 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8206 if test "${enable_busyinfo+set}" = set; then
8207 enableval="$enable_busyinfo"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8211 else
8212 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8213 fi
8214
8215 else
8216
8217 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8225
8226 fi
8227
8228
8229 eval "$ac_cv_use_busyinfo"
8230 if test "$no_cache" != 1; then
8231 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8232 fi
8233
8234 if test "$wxUSE_BUSYINFO" = yes; then
8235 echo "$ac_t""yes" 1>&6
8236 else
8237 echo "$ac_t""no" 1>&6
8238 fi
8239
8240
8241 enablestring=
8242 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8243 echo "configure:8244: checking for --${enablestring:-enable}-joystick" >&5
8244 no_cache=0
8245 # Check whether --enable-joystick or --disable-joystick was given.
8246 if test "${enable_joystick+set}" = set; then
8247 enableval="$enable_joystick"
8248
8249 if test "$enableval" = yes; then
8250 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8251 else
8252 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8253 fi
8254
8255 else
8256
8257 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8258 if test "x$LINE" != x ; then
8259 eval "DEFAULT_$LINE"
8260 else
8261 no_cache=1
8262 fi
8263
8264 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8265
8266 fi
8267
8268
8269 eval "$ac_cv_use_joystick"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_JOYSTICK" = yes; then
8275 echo "$ac_t""yes" 1>&6
8276 else
8277 echo "$ac_t""no" 1>&6
8278 fi
8279
8280
8281 enablestring=
8282 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8283 echo "configure:8284: checking for --${enablestring:-enable}-metafile" >&5
8284 no_cache=0
8285 # Check whether --enable-metafile or --disable-metafile was given.
8286 if test "${enable_metafile+set}" = set; then
8287 enableval="$enable_metafile"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8291 else
8292 ac_cv_use_metafile='wxUSE_METAFILE=no'
8293 fi
8294
8295 else
8296
8297 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8305
8306 fi
8307
8308
8309 eval "$ac_cv_use_metafile"
8310 if test "$no_cache" != 1; then
8311 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8312 fi
8313
8314 if test "$wxUSE_METAFILE" = yes; then
8315 echo "$ac_t""yes" 1>&6
8316 else
8317 echo "$ac_t""no" 1>&6
8318 fi
8319
8320
8321 enablestring=
8322 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8323 echo "configure:8324: checking for --${enablestring:-enable}-dragimage" >&5
8324 no_cache=0
8325 # Check whether --enable-dragimage or --disable-dragimage was given.
8326 if test "${enable_dragimage+set}" = set; then
8327 enableval="$enable_dragimage"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8331 else
8332 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8333 fi
8334
8335 else
8336
8337 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8345
8346 fi
8347
8348
8349 eval "$ac_cv_use_dragimage"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_DRAGIMAGE" = yes; then
8355 echo "$ac_t""yes" 1>&6
8356 else
8357 echo "$ac_t""no" 1>&6
8358 fi
8359
8360
8361 enablestring=
8362 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8363 echo "configure:8364: checking for --${enablestring:-enable}-accessibility" >&5
8364 no_cache=0
8365 # Check whether --enable-accessibility or --disable-accessibility was given.
8366 if test "${enable_accessibility+set}" = set; then
8367 enableval="$enable_accessibility"
8368
8369 if test "$enableval" = yes; then
8370 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8371 else
8372 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8373 fi
8374
8375 else
8376
8377 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8378 if test "x$LINE" != x ; then
8379 eval "DEFAULT_$LINE"
8380 else
8381 no_cache=1
8382 fi
8383
8384 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8385
8386 fi
8387
8388
8389 eval "$ac_cv_use_accessibility"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_ACCESSIBILITY" = yes; then
8395 echo "$ac_t""yes" 1>&6
8396 else
8397 echo "$ac_t""no" 1>&6
8398 fi
8399
8400
8401
8402
8403 enablestring=
8404 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8405 echo "configure:8406: checking for --${enablestring:-enable}-palette" >&5
8406 no_cache=0
8407 # Check whether --enable-palette or --disable-palette was given.
8408 if test "${enable_palette+set}" = set; then
8409 enableval="$enable_palette"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_palette='wxUSE_PALETTE=yes'
8413 else
8414 ac_cv_use_palette='wxUSE_PALETTE=no'
8415 fi
8416
8417 else
8418
8419 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8427
8428 fi
8429
8430
8431 eval "$ac_cv_use_palette"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_PALETTE" = yes; then
8437 echo "$ac_t""yes" 1>&6
8438 else
8439 echo "$ac_t""no" 1>&6
8440 fi
8441
8442
8443 enablestring=
8444 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8445 echo "configure:8446: checking for --${enablestring:-enable}-image" >&5
8446 no_cache=0
8447 # Check whether --enable-image or --disable-image was given.
8448 if test "${enable_image+set}" = set; then
8449 enableval="$enable_image"
8450
8451 if test "$enableval" = yes; then
8452 ac_cv_use_image='wxUSE_IMAGE=yes'
8453 else
8454 ac_cv_use_image='wxUSE_IMAGE=no'
8455 fi
8456
8457 else
8458
8459 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8460 if test "x$LINE" != x ; then
8461 eval "DEFAULT_$LINE"
8462 else
8463 no_cache=1
8464 fi
8465
8466 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8467
8468 fi
8469
8470
8471 eval "$ac_cv_use_image"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_IMAGE" = yes; then
8477 echo "$ac_t""yes" 1>&6
8478 else
8479 echo "$ac_t""no" 1>&6
8480 fi
8481
8482
8483 enablestring=
8484 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8485 echo "configure:8486: checking for --${enablestring:-enable}-gif" >&5
8486 no_cache=0
8487 # Check whether --enable-gif or --disable-gif was given.
8488 if test "${enable_gif+set}" = set; then
8489 enableval="$enable_gif"
8490
8491 if test "$enableval" = yes; then
8492 ac_cv_use_gif='wxUSE_GIF=yes'
8493 else
8494 ac_cv_use_gif='wxUSE_GIF=no'
8495 fi
8496
8497 else
8498
8499 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8500 if test "x$LINE" != x ; then
8501 eval "DEFAULT_$LINE"
8502 else
8503 no_cache=1
8504 fi
8505
8506 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8507
8508 fi
8509
8510
8511 eval "$ac_cv_use_gif"
8512 if test "$no_cache" != 1; then
8513 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8514 fi
8515
8516 if test "$wxUSE_GIF" = yes; then
8517 echo "$ac_t""yes" 1>&6
8518 else
8519 echo "$ac_t""no" 1>&6
8520 fi
8521
8522
8523 enablestring=
8524 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8525 echo "configure:8526: checking for --${enablestring:-enable}-pcx" >&5
8526 no_cache=0
8527 # Check whether --enable-pcx or --disable-pcx was given.
8528 if test "${enable_pcx+set}" = set; then
8529 enableval="$enable_pcx"
8530
8531 if test "$enableval" = yes; then
8532 ac_cv_use_pcx='wxUSE_PCX=yes'
8533 else
8534 ac_cv_use_pcx='wxUSE_PCX=no'
8535 fi
8536
8537 else
8538
8539 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8540 if test "x$LINE" != x ; then
8541 eval "DEFAULT_$LINE"
8542 else
8543 no_cache=1
8544 fi
8545
8546 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8547
8548 fi
8549
8550
8551 eval "$ac_cv_use_pcx"
8552 if test "$no_cache" != 1; then
8553 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8554 fi
8555
8556 if test "$wxUSE_PCX" = yes; then
8557 echo "$ac_t""yes" 1>&6
8558 else
8559 echo "$ac_t""no" 1>&6
8560 fi
8561
8562
8563 enablestring=
8564 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8565 echo "configure:8566: checking for --${enablestring:-enable}-iff" >&5
8566 no_cache=0
8567 # Check whether --enable-iff or --disable-iff was given.
8568 if test "${enable_iff+set}" = set; then
8569 enableval="$enable_iff"
8570
8571 if test "$enableval" = yes; then
8572 ac_cv_use_iff='wxUSE_IFF=yes'
8573 else
8574 ac_cv_use_iff='wxUSE_IFF=no'
8575 fi
8576
8577 else
8578
8579 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8587
8588 fi
8589
8590
8591 eval "$ac_cv_use_iff"
8592 if test "$no_cache" != 1; then
8593 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8594 fi
8595
8596 if test "$wxUSE_IFF" = yes; then
8597 echo "$ac_t""yes" 1>&6
8598 else
8599 echo "$ac_t""no" 1>&6
8600 fi
8601
8602
8603 enablestring=
8604 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8605 echo "configure:8606: checking for --${enablestring:-enable}-pnm" >&5
8606 no_cache=0
8607 # Check whether --enable-pnm or --disable-pnm was given.
8608 if test "${enable_pnm+set}" = set; then
8609 enableval="$enable_pnm"
8610
8611 if test "$enableval" = yes; then
8612 ac_cv_use_pnm='wxUSE_PNM=yes'
8613 else
8614 ac_cv_use_pnm='wxUSE_PNM=no'
8615 fi
8616
8617 else
8618
8619 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8620 if test "x$LINE" != x ; then
8621 eval "DEFAULT_$LINE"
8622 else
8623 no_cache=1
8624 fi
8625
8626 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8627
8628 fi
8629
8630
8631 eval "$ac_cv_use_pnm"
8632 if test "$no_cache" != 1; then
8633 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8634 fi
8635
8636 if test "$wxUSE_PNM" = yes; then
8637 echo "$ac_t""yes" 1>&6
8638 else
8639 echo "$ac_t""no" 1>&6
8640 fi
8641
8642
8643 enablestring=
8644 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8645 echo "configure:8646: checking for --${enablestring:-enable}-xpm" >&5
8646 no_cache=0
8647 # Check whether --enable-xpm or --disable-xpm was given.
8648 if test "${enable_xpm+set}" = set; then
8649 enableval="$enable_xpm"
8650
8651 if test "$enableval" = yes; then
8652 ac_cv_use_xpm='wxUSE_XPM=yes'
8653 else
8654 ac_cv_use_xpm='wxUSE_XPM=no'
8655 fi
8656
8657 else
8658
8659 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8660 if test "x$LINE" != x ; then
8661 eval "DEFAULT_$LINE"
8662 else
8663 no_cache=1
8664 fi
8665
8666 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8667
8668 fi
8669
8670
8671 eval "$ac_cv_use_xpm"
8672 if test "$no_cache" != 1; then
8673 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8674 fi
8675
8676 if test "$wxUSE_XPM" = yes; then
8677 echo "$ac_t""yes" 1>&6
8678 else
8679 echo "$ac_t""no" 1>&6
8680 fi
8681
8682
8683 enablestring=
8684 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8685 echo "configure:8686: checking for --${enablestring:-enable}-ico_cur" >&5
8686 no_cache=0
8687 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8688 if test "${enable_ico_cur+set}" = set; then
8689 enableval="$enable_ico_cur"
8690
8691 if test "$enableval" = yes; then
8692 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8693 else
8694 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8695 fi
8696
8697 else
8698
8699 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8700 if test "x$LINE" != x ; then
8701 eval "DEFAULT_$LINE"
8702 else
8703 no_cache=1
8704 fi
8705
8706 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8707
8708 fi
8709
8710
8711 eval "$ac_cv_use_ico_cur"
8712 if test "$no_cache" != 1; then
8713 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8714 fi
8715
8716 if test "$wxUSE_ICO_CUR" = yes; then
8717 echo "$ac_t""yes" 1>&6
8718 else
8719 echo "$ac_t""no" 1>&6
8720 fi
8721
8722
8723 fi
8724
8725 case "${host}" in
8726 *-pc-os2_emx | *-pc-os2-emx )
8727 PATH_IFS=';'
8728 LEX_STEM="lexyy"
8729 ;;
8730 *)
8731 PATH_IFS=':'
8732 LEX_STEM="lex.yy"
8733 ;;
8734 esac
8735
8736
8737
8738 echo "saving argument cache $wx_arg_cache_file"
8739 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8740
8741
8742
8743 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8744 echo "configure:8745: checking for toolkit" >&5
8745
8746 # In Wine, we need to default to MSW, not GTK or MOTIF
8747 if test "$wxUSE_WINE" = "yes"; then
8748 DEFAULT_DEFAULT_wxUSE_GTK=0
8749 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8750 DEFAULT_DEFAULT_wxUSE_MSW=1
8751 fi
8752
8753 if test "$wxUSE_GUI" = "yes"; then
8754
8755 if test "$USE_BEOS" = 1; then
8756 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8757 fi
8758
8759 if test "$TOOLKIT_GIVEN" = 1; then
8760 for toolkit in `echo $ALL_TOOLKITS`; do
8761 var=wxUSE_$toolkit
8762 eval "value=\$${var}"
8763 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8764 done
8765 else
8766 for toolkit in `echo $ALL_TOOLKITS`; do
8767 if test "$has_toolkit_in_cache" != 1; then
8768 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8769 else
8770 var=DEFAULT_wxUSE_$toolkit
8771 fi
8772 eval "wxUSE_$toolkit=\$${var}"
8773 done
8774 fi
8775
8776 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8777 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8778 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8779
8780 case "${host}" in
8781 *-pc-os2_emx | *-pc-os2-emx )
8782 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8783 esac
8784
8785 case "$NUM_TOOLKITS" in
8786 1)
8787 ;;
8788 0)
8789 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8790 ;;
8791 *)
8792 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8793 esac
8794
8795 for toolkit in `echo $ALL_TOOLKITS`; do
8796 var=wxUSE_$toolkit
8797 eval "value=\$${var}"
8798 if test "x$value" != x; then
8799 cache_var=CACHE_$toolkit
8800 eval "cache=\$${cache_var}"
8801 if test "$cache" = 1; then
8802 echo "$var=$value" >> ${wx_arg_cache_file}
8803 fi
8804 if test "$value" = 1; then
8805 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8806 echo "$ac_t""$toolkit_echo" 1>&6
8807 fi
8808 fi
8809 done
8810 else
8811 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8812 fi
8813
8814 wants_win32=0
8815 doesnt_want_win32=0
8816 case "${host}" in
8817 *-*-cygwin*)
8818 if test "$wxUSE_MSW" = 1 ; then
8819 wants_win32=1
8820 else
8821 doesnt_want_win32=1
8822 fi
8823 ;;
8824 *-*-mingw*)
8825 wants_win32=1
8826 ;;
8827 esac
8828
8829 if test "$wxUSE_WINE" = "yes"; then
8830 wants_win32=1
8831 CC=winegcc
8832 CXX=wineg++
8833 RESCOMP=wrc
8834 fi
8835
8836 if test "$wants_win32" = 1 ; then
8837 USE_UNIX=0
8838 USE_WIN32=1
8839 cat >> confdefs.h <<\EOF
8840 #define __WIN32__ 1
8841 EOF
8842
8843 cat >> confdefs.h <<\EOF
8844 #define __WIN95__ 1
8845 EOF
8846
8847 cat >> confdefs.h <<\EOF
8848 #define __WINDOWS__ 1
8849 EOF
8850
8851 cat >> confdefs.h <<\EOF
8852 #define __GNUWIN32__ 1
8853 EOF
8854
8855 cat >> confdefs.h <<\EOF
8856 #define STRICT 1
8857 EOF
8858
8859 cat >> confdefs.h <<\EOF
8860 #define WINVER 0x0400
8861 EOF
8862
8863 fi
8864 if test "$doesnt_want_win32" = 1 ; then
8865 USE_UNIX=1
8866 USE_WIN32=0
8867 fi
8868
8869 if test "$USE_UNIX" = 1 ; then
8870 wxUSE_UNIX=yes
8871 cat >> confdefs.h <<\EOF
8872 #define __UNIX__ 1
8873 EOF
8874
8875 fi
8876
8877
8878 cat > confcache <<\EOF
8879 # This file is a shell script that caches the results of configure
8880 # tests run on this system so they can be shared between configure
8881 # scripts and configure runs. It is not useful on other systems.
8882 # If it contains results you don't want to keep, you may remove or edit it.
8883 #
8884 # By default, configure uses ./config.cache as the cache file,
8885 # creating it if it does not exist already. You can give configure
8886 # the --cache-file=FILE option to use a different cache file; that is
8887 # what configure does when it calls configure scripts in
8888 # subdirectories, so they share the cache.
8889 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8890 # config.status only pays attention to the cache file if you give it the
8891 # --recheck option to rerun configure.
8892 #
8893 EOF
8894 # The following way of writing the cache mishandles newlines in values,
8895 # but we know of no workaround that is simple, portable, and efficient.
8896 # So, don't put newlines in cache variables' values.
8897 # Ultrix sh set writes to stderr and can't be redirected directly,
8898 # and sets the high bit in the cache file unless we assign to the vars.
8899 (set) 2>&1 |
8900 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8901 *ac_space=\ *)
8902 # `set' does not quote correctly, so add quotes (double-quote substitution
8903 # turns \\\\ into \\, and sed turns \\ into \).
8904 sed -n \
8905 -e "s/'/'\\\\''/g" \
8906 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8907 ;;
8908 *)
8909 # `set' quotes correctly as required by POSIX, so do not add quotes.
8910 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8911 ;;
8912 esac >> confcache
8913 if cmp -s $cache_file confcache; then
8914 :
8915 else
8916 if test -w $cache_file; then
8917 echo "updating cache $cache_file"
8918 cat confcache > $cache_file
8919 else
8920 echo "not updating unwritable cache $cache_file"
8921 fi
8922 fi
8923 rm -f confcache
8924
8925
8926 if test "$build" != "$host" ; then
8927 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8928 CC=$host_alias-gcc
8929 CXX=$host_alias-c++
8930 AR=$host_alias-ar
8931 RANLIB=$host_alias-ranlib
8932 DLLTOOL=$host_alias-dlltool
8933 RESCOMP=$host_alias-windres
8934 LD=$host_alias-ld
8935 NM=$host_alias-nm
8936 STRIP=$host_alias-strip
8937 else
8938 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8939 fi
8940 fi
8941
8942 CFLAGS=${CFLAGS:=}
8943 # Extract the first word of "gcc", so it can be a program name with args.
8944 set dummy gcc; ac_word=$2
8945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8946 echo "configure:8947: checking for $ac_word" >&5
8947 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8949 else
8950 if test -n "$CC"; then
8951 ac_cv_prog_CC="$CC" # Let the user override the test.
8952 else
8953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8954 ac_dummy="$PATH"
8955 for ac_dir in $ac_dummy; do
8956 test -z "$ac_dir" && ac_dir=.
8957 if test -f $ac_dir/$ac_word; then
8958 ac_cv_prog_CC="gcc"
8959 break
8960 fi
8961 done
8962 IFS="$ac_save_ifs"
8963 fi
8964 fi
8965 CC="$ac_cv_prog_CC"
8966 if test -n "$CC"; then
8967 echo "$ac_t""$CC" 1>&6
8968 else
8969 echo "$ac_t""no" 1>&6
8970 fi
8971
8972 if test -z "$CC"; then
8973 # Extract the first word of "cc", so it can be a program name with args.
8974 set dummy cc; ac_word=$2
8975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8976 echo "configure:8977: checking for $ac_word" >&5
8977 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8979 else
8980 if test -n "$CC"; then
8981 ac_cv_prog_CC="$CC" # Let the user override the test.
8982 else
8983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8984 ac_prog_rejected=no
8985 ac_dummy="$PATH"
8986 for ac_dir in $ac_dummy; do
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f $ac_dir/$ac_word; then
8989 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8990 ac_prog_rejected=yes
8991 continue
8992 fi
8993 ac_cv_prog_CC="cc"
8994 break
8995 fi
8996 done
8997 IFS="$ac_save_ifs"
8998 if test $ac_prog_rejected = yes; then
8999 # We found a bogon in the path, so make sure we never use it.
9000 set dummy $ac_cv_prog_CC
9001 shift
9002 if test $# -gt 0; then
9003 # We chose a different compiler from the bogus one.
9004 # However, it has the same basename, so the bogon will be chosen
9005 # first if we set CC to just the basename; use the full file name.
9006 shift
9007 set dummy "$ac_dir/$ac_word" "$@"
9008 shift
9009 ac_cv_prog_CC="$@"
9010 fi
9011 fi
9012 fi
9013 fi
9014 CC="$ac_cv_prog_CC"
9015 if test -n "$CC"; then
9016 echo "$ac_t""$CC" 1>&6
9017 else
9018 echo "$ac_t""no" 1>&6
9019 fi
9020
9021 if test -z "$CC"; then
9022 case "`uname -s`" in
9023 *win32* | *WIN32*)
9024 # Extract the first word of "cl", so it can be a program name with args.
9025 set dummy cl; ac_word=$2
9026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9027 echo "configure:9028: checking for $ac_word" >&5
9028 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9030 else
9031 if test -n "$CC"; then
9032 ac_cv_prog_CC="$CC" # Let the user override the test.
9033 else
9034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9035 ac_dummy="$PATH"
9036 for ac_dir in $ac_dummy; do
9037 test -z "$ac_dir" && ac_dir=.
9038 if test -f $ac_dir/$ac_word; then
9039 ac_cv_prog_CC="cl"
9040 break
9041 fi
9042 done
9043 IFS="$ac_save_ifs"
9044 fi
9045 fi
9046 CC="$ac_cv_prog_CC"
9047 if test -n "$CC"; then
9048 echo "$ac_t""$CC" 1>&6
9049 else
9050 echo "$ac_t""no" 1>&6
9051 fi
9052 ;;
9053 esac
9054 fi
9055 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9056 fi
9057
9058 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9059 echo "configure:9060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9060
9061 ac_ext=c
9062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9063 ac_cpp='$CPP $CPPFLAGS'
9064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9066 cross_compiling=$ac_cv_prog_cc_cross
9067
9068 cat > conftest.$ac_ext << EOF
9069
9070 #line 9071 "configure"
9071 #include "confdefs.h"
9072
9073 main(){return(0);}
9074 EOF
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9076 ac_cv_prog_cc_works=yes
9077 # If we can't run a trivial program, we are probably using a cross compiler.
9078 if (./conftest; exit) 2>/dev/null; then
9079 ac_cv_prog_cc_cross=no
9080 else
9081 ac_cv_prog_cc_cross=yes
9082 fi
9083 else
9084 echo "configure: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 ac_cv_prog_cc_works=no
9087 fi
9088 rm -fr conftest*
9089 ac_ext=c
9090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9091 ac_cpp='$CPP $CPPFLAGS'
9092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9094 cross_compiling=$ac_cv_prog_cc_cross
9095
9096 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9097 if test $ac_cv_prog_cc_works = no; then
9098 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9099 fi
9100 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9101 echo "configure:9102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9102 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9103 cross_compiling=$ac_cv_prog_cc_cross
9104
9105 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9106 echo "configure:9107: checking whether we are using GNU C" >&5
9107 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9109 else
9110 cat > conftest.c <<EOF
9111 #ifdef __GNUC__
9112 yes;
9113 #endif
9114 EOF
9115 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9116 ac_cv_prog_gcc=yes
9117 else
9118 ac_cv_prog_gcc=no
9119 fi
9120 fi
9121
9122 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9123
9124 if test $ac_cv_prog_gcc = yes; then
9125 GCC=yes
9126 else
9127 GCC=
9128 fi
9129
9130 ac_test_CFLAGS="${CFLAGS+set}"
9131 ac_save_CFLAGS="$CFLAGS"
9132 CFLAGS=
9133 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9134 echo "configure:9135: checking whether ${CC-cc} accepts -g" >&5
9135 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
9137 else
9138 echo 'void f(){}' > conftest.c
9139 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9140 ac_cv_prog_cc_g=yes
9141 else
9142 ac_cv_prog_cc_g=no
9143 fi
9144 rm -f conftest*
9145
9146 fi
9147
9148 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9149 if test "$ac_test_CFLAGS" = set; then
9150 CFLAGS="$ac_save_CFLAGS"
9151 elif test $ac_cv_prog_cc_g = yes; then
9152 if test "$GCC" = yes; then
9153 CFLAGS="-g -O2"
9154 else
9155 CFLAGS="-g"
9156 fi
9157 else
9158 if test "$GCC" = yes; then
9159 CFLAGS="-O2"
9160 else
9161 CFLAGS=
9162 fi
9163 fi
9164
9165
9166 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9167 echo "configure:9168: checking how to run the C preprocessor" >&5
9168 # On Suns, sometimes $CPP names a directory.
9169 if test -n "$CPP" && test -d "$CPP"; then
9170 CPP=
9171 fi
9172 if test -z "$CPP"; then
9173 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9175 else
9176 # This must be in double quotes, not single quotes, because CPP may get
9177 # substituted into the Makefile and "${CC-cc}" will confuse make.
9178 CPP="${CC-cc} -E"
9179 # On the NeXT, cc -E runs the code through the compiler's parser,
9180 # not just through cpp.
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184 #include <assert.h>
9185 Syntax Error
9186 EOF
9187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9188 { (eval echo configure:9189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9190 if test -z "$ac_err"; then
9191 :
9192 else
9193 echo "$ac_err" >&5
9194 echo "configure: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9196 rm -rf conftest*
9197 CPP="${CC-cc} -E -traditional-cpp"
9198 cat > conftest.$ac_ext <<EOF
9199 #line 9200 "configure"
9200 #include "confdefs.h"
9201 #include <assert.h>
9202 Syntax Error
9203 EOF
9204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9205 { (eval echo configure:9206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9207 if test -z "$ac_err"; then
9208 :
9209 else
9210 echo "$ac_err" >&5
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9213 rm -rf conftest*
9214 CPP="${CC-cc} -nologo -E"
9215 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9218 #include <assert.h>
9219 Syntax Error
9220 EOF
9221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9222 { (eval echo configure:9223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9224 if test -z "$ac_err"; then
9225 :
9226 else
9227 echo "$ac_err" >&5
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 rm -rf conftest*
9231 CPP=/lib/cpp
9232 fi
9233 rm -f conftest*
9234 fi
9235 rm -f conftest*
9236 fi
9237 rm -f conftest*
9238 ac_cv_prog_CPP="$CPP"
9239 fi
9240 CPP="$ac_cv_prog_CPP"
9241 else
9242 ac_cv_prog_CPP="$CPP"
9243 fi
9244 echo "$ac_t""$CPP" 1>&6
9245
9246 if test $ac_cv_prog_gcc = yes; then
9247 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9248 echo "configure:9249: checking whether ${CC-cc} needs -traditional" >&5
9249 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9251 else
9252 ac_pattern="Autoconf.*'x'"
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 #include <sgtty.h>
9257 Autoconf TIOCGETP
9258 EOF
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 egrep "$ac_pattern" >/dev/null 2>&1; then
9261 rm -rf conftest*
9262 ac_cv_prog_gcc_traditional=yes
9263 else
9264 rm -rf conftest*
9265 ac_cv_prog_gcc_traditional=no
9266 fi
9267 rm -f conftest*
9268
9269
9270 if test $ac_cv_prog_gcc_traditional = no; then
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9274 #include <termio.h>
9275 Autoconf TCGETA
9276 EOF
9277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9278 egrep "$ac_pattern" >/dev/null 2>&1; then
9279 rm -rf conftest*
9280 ac_cv_prog_gcc_traditional=yes
9281 fi
9282 rm -f conftest*
9283
9284 fi
9285 fi
9286
9287 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9288 if test $ac_cv_prog_gcc_traditional = yes; then
9289 CC="$CC -traditional"
9290 fi
9291 fi
9292
9293
9294
9295 ac_ext=C
9296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9297 ac_cpp='$CXXCPP $CPPFLAGS'
9298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9300 cross_compiling=$ac_cv_prog_cxx_cross
9301
9302
9303 CXXFLAGS=${CXXFLAGS:=}
9304 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9305 do
9306 # Extract the first word of "$ac_prog", so it can be a program name with args.
9307 set dummy $ac_prog; ac_word=$2
9308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9309 echo "configure:9310: checking for $ac_word" >&5
9310 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9311 echo $ac_n "(cached) $ac_c" 1>&6
9312 else
9313 if test -n "$CXX"; then
9314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9315 else
9316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9317 ac_dummy="$PATH"
9318 for ac_dir in $ac_dummy; do
9319 test -z "$ac_dir" && ac_dir=.
9320 if test -f $ac_dir/$ac_word; then
9321 ac_cv_prog_CXX="$ac_prog"
9322 break
9323 fi
9324 done
9325 IFS="$ac_save_ifs"
9326 fi
9327 fi
9328 CXX="$ac_cv_prog_CXX"
9329 if test -n "$CXX"; then
9330 echo "$ac_t""$CXX" 1>&6
9331 else
9332 echo "$ac_t""no" 1>&6
9333 fi
9334
9335 test -n "$CXX" && break
9336 done
9337 test -n "$CXX" || CXX="gcc"
9338
9339
9340 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9341 echo "configure:9342: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9342
9343 ac_ext=C
9344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9345 ac_cpp='$CXXCPP $CPPFLAGS'
9346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9348 cross_compiling=$ac_cv_prog_cxx_cross
9349
9350 cat > conftest.$ac_ext << EOF
9351
9352 #line 9353 "configure"
9353 #include "confdefs.h"
9354
9355 int main(){return(0);}
9356 EOF
9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9358 ac_cv_prog_cxx_works=yes
9359 # If we can't run a trivial program, we are probably using a cross compiler.
9360 if (./conftest; exit) 2>/dev/null; then
9361 ac_cv_prog_cxx_cross=no
9362 else
9363 ac_cv_prog_cxx_cross=yes
9364 fi
9365 else
9366 echo "configure: failed program was:" >&5
9367 cat conftest.$ac_ext >&5
9368 ac_cv_prog_cxx_works=no
9369 fi
9370 rm -fr conftest*
9371 ac_ext=C
9372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9373 ac_cpp='$CXXCPP $CPPFLAGS'
9374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9376 cross_compiling=$ac_cv_prog_cxx_cross
9377
9378 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9379 if test $ac_cv_prog_cxx_works = no; then
9380 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9381 fi
9382 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9383 echo "configure:9384: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9384 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9385 cross_compiling=$ac_cv_prog_cxx_cross
9386
9387 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9388 echo "configure:9389: checking whether we are using GNU C++" >&5
9389 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9391 else
9392 cat > conftest.C <<EOF
9393 #ifdef __GNUC__
9394 yes;
9395 #endif
9396 EOF
9397 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9398 ac_cv_prog_gxx=yes
9399 else
9400 ac_cv_prog_gxx=no
9401 fi
9402 fi
9403
9404 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9405
9406 if test $ac_cv_prog_gxx = yes; then
9407 GXX=yes
9408 else
9409 GXX=
9410 fi
9411
9412 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9413 ac_save_CXXFLAGS="$CXXFLAGS"
9414 CXXFLAGS=
9415 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9416 echo "configure:9417: checking whether ${CXX-g++} accepts -g" >&5
9417 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9419 else
9420 echo 'void f(){}' > conftest.cc
9421 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9422 ac_cv_prog_cxx_g=yes
9423 else
9424 ac_cv_prog_cxx_g=no
9425 fi
9426 rm -f conftest*
9427
9428 fi
9429
9430 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9431 if test "$ac_test_CXXFLAGS" = set; then
9432 CXXFLAGS="$ac_save_CXXFLAGS"
9433 elif test $ac_cv_prog_cxx_g = yes; then
9434 if test "$GXX" = yes; then
9435 CXXFLAGS="-g -O2"
9436 else
9437 CXXFLAGS="-g"
9438 fi
9439 else
9440 if test "$GXX" = yes; then
9441 CXXFLAGS="-O2"
9442 else
9443 CXXFLAGS=
9444 fi
9445 fi
9446
9447
9448 ac_ext=c
9449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9450 ac_cpp='$CPP $CPPFLAGS'
9451 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9452 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9453 cross_compiling=$ac_cv_prog_cc_cross
9454
9455
9456 # Extract the first word of "ranlib", so it can be a program name with args.
9457 set dummy ranlib; ac_word=$2
9458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9459 echo "configure:9460: checking for $ac_word" >&5
9460 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9462 else
9463 if test -n "$RANLIB"; then
9464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9465 else
9466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9467 ac_dummy="$PATH"
9468 for ac_dir in $ac_dummy; do
9469 test -z "$ac_dir" && ac_dir=.
9470 if test -f $ac_dir/$ac_word; then
9471 ac_cv_prog_RANLIB="ranlib"
9472 break
9473 fi
9474 done
9475 IFS="$ac_save_ifs"
9476 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9477 fi
9478 fi
9479 RANLIB="$ac_cv_prog_RANLIB"
9480 if test -n "$RANLIB"; then
9481 echo "$ac_t""$RANLIB" 1>&6
9482 else
9483 echo "$ac_t""no" 1>&6
9484 fi
9485
9486
9487 # Extract the first word of "ar", so it can be a program name with args.
9488 set dummy ar; ac_word=$2
9489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9490 echo "configure:9491: checking for $ac_word" >&5
9491 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493 else
9494 if test -n "$AR"; then
9495 ac_cv_prog_AR="$AR" # Let the user override the test.
9496 else
9497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9498 ac_dummy="$PATH"
9499 for ac_dir in $ac_dummy; do
9500 test -z "$ac_dir" && ac_dir=.
9501 if test -f $ac_dir/$ac_word; then
9502 ac_cv_prog_AR="ar"
9503 break
9504 fi
9505 done
9506 IFS="$ac_save_ifs"
9507 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9508 fi
9509 fi
9510 AR="$ac_cv_prog_AR"
9511 if test -n "$AR"; then
9512 echo "$ac_t""$AR" 1>&6
9513 else
9514 echo "$ac_t""no" 1>&6
9515 fi
9516
9517
9518 # Find a good install program. We prefer a C program (faster),
9519 # so one script is as good as another. But avoid the broken or
9520 # incompatible versions:
9521 # SysV /etc/install, /usr/sbin/install
9522 # SunOS /usr/etc/install
9523 # IRIX /sbin/install
9524 # AIX /bin/install
9525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9528 # ./install, which can be erroneously created by make from ./install.sh.
9529 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9530 echo "configure:9531: checking for a BSD compatible install" >&5
9531 if test -z "$INSTALL"; then
9532 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9534 else
9535 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9536 for ac_dir in $PATH; do
9537 # Account for people who put trailing slashes in PATH elements.
9538 case "$ac_dir/" in
9539 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9540 *)
9541 # OSF1 and SCO ODT 3.0 have their own names for install.
9542 # Don't use installbsd from OSF since it installs stuff as root
9543 # by default.
9544 for ac_prog in ginstall scoinst install; do
9545 if test -f $ac_dir/$ac_prog; then
9546 if test $ac_prog = install &&
9547 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9548 # AIX install. It has an incompatible calling convention.
9549 :
9550 else
9551 ac_cv_path_install="$ac_dir/$ac_prog -c"
9552 break 2
9553 fi
9554 fi
9555 done
9556 ;;
9557 esac
9558 done
9559 IFS="$ac_save_IFS"
9560
9561 fi
9562 if test "${ac_cv_path_install+set}" = set; then
9563 INSTALL="$ac_cv_path_install"
9564 else
9565 # As a last resort, use the slow shell script. We don't cache a
9566 # path for INSTALL within a source directory, because that will
9567 # break other packages using the cache if that directory is
9568 # removed, or if the path is relative.
9569 INSTALL="$ac_install_sh"
9570 fi
9571 fi
9572 echo "$ac_t""$INSTALL" 1>&6
9573
9574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9575 # It thinks the first close brace ends the variable substitution.
9576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9577
9578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9579
9580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9581
9582
9583 case ${INSTALL} in
9584 /* ) # Absolute
9585 ;;
9586 ?:* ) # Drive letter, considered as absolute.
9587 ;;
9588 *)
9589 INSTALL=`pwd`/${INSTALL} ;;
9590 esac
9591
9592 case ${host} in
9593 *-hp-hpux* )
9594 INSTALL_DIR="mkdir"
9595 ;;
9596
9597 *) INSTALL_DIR="$INSTALL -d"
9598 ;;
9599 esac
9600
9601
9602 case "${host}" in
9603
9604 powerpc-*-darwin* )
9605 INSTALL_PROGRAM="cp -fp"
9606 INSTALL_DATA="cp -fp"
9607 ;;
9608 *)
9609 ;;
9610 esac
9611
9612 # Extract the first word of "strip", so it can be a program name with args.
9613 set dummy strip; ac_word=$2
9614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9615 echo "configure:9616: checking for $ac_word" >&5
9616 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9618 else
9619 if test -n "$STRIP"; then
9620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9621 else
9622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9623 ac_dummy="$PATH"
9624 for ac_dir in $ac_dummy; do
9625 test -z "$ac_dir" && ac_dir=.
9626 if test -f $ac_dir/$ac_word; then
9627 ac_cv_prog_STRIP="strip"
9628 break
9629 fi
9630 done
9631 IFS="$ac_save_ifs"
9632 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9633 fi
9634 fi
9635 STRIP="$ac_cv_prog_STRIP"
9636 if test -n "$STRIP"; then
9637 echo "$ac_t""$STRIP" 1>&6
9638 else
9639 echo "$ac_t""no" 1>&6
9640 fi
9641
9642
9643 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9644 echo "configure:9645: checking if make is GNU make" >&5
9645 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647 else
9648
9649 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9650 egrep -s GNU > /dev/null); then
9651 wx_cv_prog_makeisgnu="yes"
9652 else
9653 wx_cv_prog_makeisgnu="no"
9654 fi
9655
9656 fi
9657
9658 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9659
9660 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9661 IF_GNU_MAKE=""
9662 else
9663 IF_GNU_MAKE="#"
9664 fi
9665
9666
9667
9668 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9669 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9670 echo "configure:9671: checking if make supports VPATH" >&5
9671 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9673 else
9674
9675 cat - << EOF > confMake
9676 check : file
9677 cp \$? \$@
9678 cp \$? final_file
9679 EOF
9680
9681 if test ! -d sub ; then
9682 mkdir sub
9683 fi
9684 echo dummy > sub/file
9685 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9686 RESULT=$?
9687 rm -f sub/file check final_file confMake
9688 rmdir sub
9689 if test "$RESULT" = 0; then
9690 wx_cv_prog_makevpath="yes"
9691 else
9692 wx_cv_prog_makevpath="no"
9693 fi
9694
9695 fi
9696
9697 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9698
9699 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9700 { echo "configure: error:
9701 You need a make-utility that is able to use the variable
9702 VPATH correctly.
9703 If your version of make does not support VPATH correctly,
9704 please install GNU-make (possibly as gmake), and start
9705 configure with the following command:
9706 export MAKE=gmake; ./configure for sh-type shells
9707 setenv MAKE gmake; ./configure for csh-type shells
9708 Also please do remember to use gmake in this case every time
9709 you are trying to compile.
9710 " 1>&2; exit 1; }
9711 fi fi
9712 for ac_prog in 'bison -y' byacc
9713 do
9714 # Extract the first word of "$ac_prog", so it can be a program name with args.
9715 set dummy $ac_prog; ac_word=$2
9716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9717 echo "configure:9718: checking for $ac_word" >&5
9718 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
9720 else
9721 if test -n "$YACC"; then
9722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9723 else
9724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9725 ac_dummy="$PATH"
9726 for ac_dir in $ac_dummy; do
9727 test -z "$ac_dir" && ac_dir=.
9728 if test -f $ac_dir/$ac_word; then
9729 ac_cv_prog_YACC="$ac_prog"
9730 break
9731 fi
9732 done
9733 IFS="$ac_save_ifs"
9734 fi
9735 fi
9736 YACC="$ac_cv_prog_YACC"
9737 if test -n "$YACC"; then
9738 echo "$ac_t""$YACC" 1>&6
9739 else
9740 echo "$ac_t""no" 1>&6
9741 fi
9742
9743 test -n "$YACC" && break
9744 done
9745 test -n "$YACC" || YACC="yacc"
9746
9747
9748 # Extract the first word of "flex", so it can be a program name with args.
9749 set dummy flex; ac_word=$2
9750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9751 echo "configure:9752: checking for $ac_word" >&5
9752 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9754 else
9755 if test -n "$LEX"; then
9756 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9757 else
9758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9759 ac_dummy="$PATH"
9760 for ac_dir in $ac_dummy; do
9761 test -z "$ac_dir" && ac_dir=.
9762 if test -f $ac_dir/$ac_word; then
9763 ac_cv_prog_LEX="flex"
9764 break
9765 fi
9766 done
9767 IFS="$ac_save_ifs"
9768 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9769 fi
9770 fi
9771 LEX="$ac_cv_prog_LEX"
9772 if test -n "$LEX"; then
9773 echo "$ac_t""$LEX" 1>&6
9774 else
9775 echo "$ac_t""no" 1>&6
9776 fi
9777
9778 if test -z "$LEXLIB"
9779 then
9780 case "$LEX" in
9781 flex*) ac_lib=fl ;;
9782 *) ac_lib=l ;;
9783 esac
9784 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9785 echo "configure:9786: checking for yywrap in -l$ac_lib" >&5
9786 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9790 ac_save_LIBS="$LIBS"
9791 LIBS="-l$ac_lib $LIBS"
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 /* Override any gcc2 internal prototype to avoid an error. */
9796 /* We use char because int might match the return type of a gcc2
9797 builtin and then its argument prototype would still apply. */
9798 char yywrap();
9799
9800 int main() {
9801 yywrap()
9802 ; return 0; }
9803 EOF
9804 if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9805 rm -rf conftest*
9806 eval "ac_cv_lib_$ac_lib_var=yes"
9807 else
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 rm -rf conftest*
9811 eval "ac_cv_lib_$ac_lib_var=no"
9812 fi
9813 rm -f conftest*
9814 LIBS="$ac_save_LIBS"
9815
9816 fi
9817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9818 echo "$ac_t""yes" 1>&6
9819 LEXLIB="-l$ac_lib"
9820 else
9821 echo "$ac_t""no" 1>&6
9822 fi
9823
9824 fi
9825
9826
9827 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9828 echo "configure:9829: checking whether ln -s works" >&5
9829 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9832 rm -f conftestdata
9833 if ln -s X conftestdata 2>/dev/null
9834 then
9835 rm -f conftestdata
9836 ac_cv_prog_LN_S="ln -s"
9837 else
9838 ac_cv_prog_LN_S=ln
9839 fi
9840 fi
9841 LN_S="$ac_cv_prog_LN_S"
9842 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9843 echo "$ac_t""yes" 1>&6
9844 else
9845 echo "$ac_t""no" 1>&6
9846 fi
9847
9848
9849 case "${host}" in
9850 *-pc-os2_emx | *-pc-os2-emx )
9851 LIBS="$LIBS -lstdcpp"
9852 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9853 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9854 echo "configure:9855: checking for drand48 in -lcExt" >&5
9855 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9857 echo $ac_n "(cached) $ac_c" 1>&6
9858 else
9859 ac_save_LIBS="$LIBS"
9860 LIBS="-lcExt $LIBS"
9861 cat > conftest.$ac_ext <<EOF
9862 #line 9863 "configure"
9863 #include "confdefs.h"
9864 /* Override any gcc2 internal prototype to avoid an error. */
9865 /* We use char because int might match the return type of a gcc2
9866 builtin and then its argument prototype would still apply. */
9867 char drand48();
9868
9869 int main() {
9870 drand48()
9871 ; return 0; }
9872 EOF
9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9874 rm -rf conftest*
9875 eval "ac_cv_lib_$ac_lib_var=yes"
9876 else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 eval "ac_cv_lib_$ac_lib_var=no"
9881 fi
9882 rm -f conftest*
9883 LIBS="$ac_save_LIBS"
9884
9885 fi
9886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9887 echo "$ac_t""yes" 1>&6
9888 LIBS="$LIBS -lcExt"
9889 else
9890 echo "$ac_t""no" 1>&6
9891 fi
9892
9893 else
9894 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9895 fi
9896 ;;
9897 esac
9898
9899
9900 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9901 for ac_hdr in strings.h
9902 do
9903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9905 echo "configure:9906: checking for $ac_hdr" >&5
9906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9908 else
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9912 #include <$ac_hdr>
9913 EOF
9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9917 if test -z "$ac_err"; then
9918 rm -rf conftest*
9919 eval "ac_cv_header_$ac_safe=yes"
9920 else
9921 echo "$ac_err" >&5
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 rm -rf conftest*
9925 eval "ac_cv_header_$ac_safe=no"
9926 fi
9927 rm -f conftest*
9928 fi
9929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9930 echo "$ac_t""yes" 1>&6
9931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9932 cat >> confdefs.h <<EOF
9933 #define $ac_tr_hdr 1
9934 EOF
9935
9936 else
9937 echo "$ac_t""no" 1>&6
9938 fi
9939 done
9940
9941 fi
9942
9943 for ac_hdr in stdlib.h
9944 do
9945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9947 echo "configure:9948: checking for $ac_hdr" >&5
9948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9950 else
9951 cat > conftest.$ac_ext <<EOF
9952 #line 9953 "configure"
9953 #include "confdefs.h"
9954 #include <$ac_hdr>
9955 EOF
9956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9957 { (eval echo configure:9958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9959 if test -z "$ac_err"; then
9960 rm -rf conftest*
9961 eval "ac_cv_header_$ac_safe=yes"
9962 else
9963 echo "$ac_err" >&5
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 rm -rf conftest*
9967 eval "ac_cv_header_$ac_safe=no"
9968 fi
9969 rm -f conftest*
9970 fi
9971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9972 echo "$ac_t""yes" 1>&6
9973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9974 cat >> confdefs.h <<EOF
9975 #define $ac_tr_hdr 1
9976 EOF
9977
9978 else
9979 echo "$ac_t""no" 1>&6
9980 fi
9981 done
9982
9983 for ac_hdr in malloc.h
9984 do
9985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9987 echo "configure:9988: checking for $ac_hdr" >&5
9988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9990 else
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 #include <$ac_hdr>
9995 EOF
9996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9997 { (eval echo configure:9998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9999 if test -z "$ac_err"; then
10000 rm -rf conftest*
10001 eval "ac_cv_header_$ac_safe=yes"
10002 else
10003 echo "$ac_err" >&5
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 rm -rf conftest*
10007 eval "ac_cv_header_$ac_safe=no"
10008 fi
10009 rm -f conftest*
10010 fi
10011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10012 echo "$ac_t""yes" 1>&6
10013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10014 cat >> confdefs.h <<EOF
10015 #define $ac_tr_hdr 1
10016 EOF
10017
10018 else
10019 echo "$ac_t""no" 1>&6
10020 fi
10021 done
10022
10023 for ac_hdr in unistd.h
10024 do
10025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10027 echo "configure:10028: checking for $ac_hdr" >&5
10028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
10030 else
10031 cat > conftest.$ac_ext <<EOF
10032 #line 10033 "configure"
10033 #include "confdefs.h"
10034 #include <$ac_hdr>
10035 EOF
10036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10037 { (eval echo configure:10038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10039 if test -z "$ac_err"; then
10040 rm -rf conftest*
10041 eval "ac_cv_header_$ac_safe=yes"
10042 else
10043 echo "$ac_err" >&5
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -rf conftest*
10047 eval "ac_cv_header_$ac_safe=no"
10048 fi
10049 rm -f conftest*
10050 fi
10051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10052 echo "$ac_t""yes" 1>&6
10053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10054 cat >> confdefs.h <<EOF
10055 #define $ac_tr_hdr 1
10056 EOF
10057
10058 else
10059 echo "$ac_t""no" 1>&6
10060 fi
10061 done
10062
10063 for ac_hdr in wchar.h
10064 do
10065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10067 echo "configure:10068: checking for $ac_hdr" >&5
10068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10070 else
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 #include <$ac_hdr>
10075 EOF
10076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10077 { (eval echo configure:10078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10079 if test -z "$ac_err"; then
10080 rm -rf conftest*
10081 eval "ac_cv_header_$ac_safe=yes"
10082 else
10083 echo "$ac_err" >&5
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -rf conftest*
10087 eval "ac_cv_header_$ac_safe=no"
10088 fi
10089 rm -f conftest*
10090 fi
10091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10092 echo "$ac_t""yes" 1>&6
10093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10094 cat >> confdefs.h <<EOF
10095 #define $ac_tr_hdr 1
10096 EOF
10097
10098 else
10099 echo "$ac_t""no" 1>&6
10100 fi
10101 done
10102
10103
10104 if test "$ac_cv_header_wchar_h" != "yes"; then
10105 for ac_hdr in wcstr.h
10106 do
10107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10109 echo "configure:10110: checking for $ac_hdr" >&5
10110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 #include <$ac_hdr>
10117 EOF
10118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10119 { (eval echo configure:10120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10121 if test -z "$ac_err"; then
10122 rm -rf conftest*
10123 eval "ac_cv_header_$ac_safe=yes"
10124 else
10125 echo "$ac_err" >&5
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -rf conftest*
10129 eval "ac_cv_header_$ac_safe=no"
10130 fi
10131 rm -f conftest*
10132 fi
10133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10134 echo "$ac_t""yes" 1>&6
10135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10136 cat >> confdefs.h <<EOF
10137 #define $ac_tr_hdr 1
10138 EOF
10139
10140 else
10141 echo "$ac_t""no" 1>&6
10142 fi
10143 done
10144
10145 fi
10146
10147 for ac_hdr in fnmatch.h
10148 do
10149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10151 echo "configure:10152: checking for $ac_hdr" >&5
10152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10153 echo $ac_n "(cached) $ac_c" 1>&6
10154 else
10155 cat > conftest.$ac_ext <<EOF
10156 #line 10157 "configure"
10157 #include "confdefs.h"
10158 #include <$ac_hdr>
10159 EOF
10160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10161 { (eval echo configure:10162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10163 if test -z "$ac_err"; then
10164 rm -rf conftest*
10165 eval "ac_cv_header_$ac_safe=yes"
10166 else
10167 echo "$ac_err" >&5
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 rm -rf conftest*
10171 eval "ac_cv_header_$ac_safe=no"
10172 fi
10173 rm -f conftest*
10174 fi
10175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10176 echo "$ac_t""yes" 1>&6
10177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10178 cat >> confdefs.h <<EOF
10179 #define $ac_tr_hdr 1
10180 EOF
10181
10182 else
10183 echo "$ac_t""no" 1>&6
10184 fi
10185 done
10186
10187
10188 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10189 for ac_func in fnmatch
10190 do
10191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10192 echo "configure:10193: checking for $ac_func" >&5
10193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10195 else
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 /* System header to define __stub macros and hopefully few prototypes,
10200 which can conflict with char $ac_func(); below. */
10201 #include <assert.h>
10202 /* Override any gcc2 internal prototype to avoid an error. */
10203 /* We use char because int might match the return type of a gcc2
10204 builtin and then its argument prototype would still apply. */
10205 char $ac_func();
10206
10207 int main() {
10208
10209 /* The GNU C library defines this for functions which it implements
10210 to always fail with ENOSYS. Some functions are actually named
10211 something starting with __ and the normal name is an alias. */
10212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10213 choke me
10214 #else
10215 $ac_func();
10216 #endif
10217
10218 ; return 0; }
10219 EOF
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221 rm -rf conftest*
10222 eval "ac_cv_func_$ac_func=yes"
10223 else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -rf conftest*
10227 eval "ac_cv_func_$ac_func=no"
10228 fi
10229 rm -f conftest*
10230 fi
10231
10232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10233 echo "$ac_t""yes" 1>&6
10234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10235 cat >> confdefs.h <<EOF
10236 #define $ac_tr_func 1
10237 EOF
10238
10239 else
10240 echo "$ac_t""no" 1>&6
10241 fi
10242 done
10243
10244 fi
10245
10246 for ac_hdr in langinfo.h
10247 do
10248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10250 echo "configure:10251: checking for $ac_hdr" >&5
10251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10253 else
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 #include <$ac_hdr>
10258 EOF
10259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10260 { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10262 if test -z "$ac_err"; then
10263 rm -rf conftest*
10264 eval "ac_cv_header_$ac_safe=yes"
10265 else
10266 echo "$ac_err" >&5
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10269 rm -rf conftest*
10270 eval "ac_cv_header_$ac_safe=no"
10271 fi
10272 rm -f conftest*
10273 fi
10274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10275 echo "$ac_t""yes" 1>&6
10276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10277 cat >> confdefs.h <<EOF
10278 #define $ac_tr_hdr 1
10279 EOF
10280
10281 else
10282 echo "$ac_t""no" 1>&6
10283 fi
10284 done
10285
10286
10287 case "${host}" in
10288 *-pc-os2_emx | *-pc-os2-emx )
10289 if test $ac_cv_header_langinfo_h = "yes"; then
10290 LIBS="$LIBS -lintl"
10291 fi
10292 ;;
10293 esac
10294
10295 if test "$wxUSE_GUI" = "yes"; then
10296 if test "$wxUSE_UNIX" = "yes"; then
10297 for ac_hdr in X11/XKBlib.h
10298 do
10299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10301 echo "configure:10302: checking for $ac_hdr" >&5
10302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10304 else
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <$ac_hdr>
10309 EOF
10310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10311 { (eval echo configure:10312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10313 if test -z "$ac_err"; then
10314 rm -rf conftest*
10315 eval "ac_cv_header_$ac_safe=yes"
10316 else
10317 echo "$ac_err" >&5
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 eval "ac_cv_header_$ac_safe=no"
10322 fi
10323 rm -f conftest*
10324 fi
10325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10326 echo "$ac_t""yes" 1>&6
10327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10328 cat >> confdefs.h <<EOF
10329 #define $ac_tr_hdr 1
10330 EOF
10331
10332 else
10333 echo "$ac_t""no" 1>&6
10334 fi
10335 done
10336
10337 fi
10338 fi
10339
10340
10341 echo $ac_n "checking for working const""... $ac_c" 1>&6
10342 echo "configure:10343: checking for working const" >&5
10343 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10345 else
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349
10350 int main() {
10351
10352 /* Ultrix mips cc rejects this. */
10353 typedef int charset[2]; const charset x;
10354 /* SunOS 4.1.1 cc rejects this. */
10355 char const *const *ccp;
10356 char **p;
10357 /* NEC SVR4.0.2 mips cc rejects this. */
10358 struct point {int x, y;};
10359 static struct point const zero = {0,0};
10360 /* AIX XL C 1.02.0.0 rejects this.
10361 It does not let you subtract one const X* pointer from another in an arm
10362 of an if-expression whose if-part is not a constant expression */
10363 const char *g = "string";
10364 ccp = &g + (g ? g-g : 0);
10365 /* HPUX 7.0 cc rejects these. */
10366 ++ccp;
10367 p = (char**) ccp;
10368 ccp = (char const *const *) p;
10369 { /* SCO 3.2v4 cc rejects this. */
10370 char *t;
10371 char const *s = 0 ? (char *) 0 : (char const *) 0;
10372
10373 *t++ = 0;
10374 }
10375 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10376 int x[] = {25, 17};
10377 const int *foo = &x[0];
10378 ++foo;
10379 }
10380 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10381 typedef const int *iptr;
10382 iptr p = 0;
10383 ++p;
10384 }
10385 { /* AIX XL C 1.02.0.0 rejects this saying
10386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10387 struct s { int j; const int *ap[3]; };
10388 struct s *b; b->j = 5;
10389 }
10390 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10391 const int foo = 10;
10392 }
10393
10394 ; return 0; }
10395 EOF
10396 if { (eval echo configure:10397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10397 rm -rf conftest*
10398 ac_cv_c_const=yes
10399 else
10400 echo "configure: failed program was:" >&5
10401 cat conftest.$ac_ext >&5
10402 rm -rf conftest*
10403 ac_cv_c_const=no
10404 fi
10405 rm -f conftest*
10406 fi
10407
10408 echo "$ac_t""$ac_cv_c_const" 1>&6
10409 if test $ac_cv_c_const = no; then
10410 cat >> confdefs.h <<\EOF
10411 #define const
10412 EOF
10413
10414 fi
10415
10416 echo $ac_n "checking for inline""... $ac_c" 1>&6
10417 echo "configure:10418: checking for inline" >&5
10418 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10420 else
10421 ac_cv_c_inline=no
10422 for ac_kw in inline __inline__ __inline; do
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10426
10427 int main() {
10428 } $ac_kw foo() {
10429 ; return 0; }
10430 EOF
10431 if { (eval echo configure:10432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10432 rm -rf conftest*
10433 ac_cv_c_inline=$ac_kw; break
10434 else
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10437 fi
10438 rm -f conftest*
10439 done
10440
10441 fi
10442
10443 echo "$ac_t""$ac_cv_c_inline" 1>&6
10444 case "$ac_cv_c_inline" in
10445 inline | yes) ;;
10446 no) cat >> confdefs.h <<\EOF
10447 #define inline
10448 EOF
10449 ;;
10450 *) cat >> confdefs.h <<EOF
10451 #define inline $ac_cv_c_inline
10452 EOF
10453 ;;
10454 esac
10455
10456
10457 echo $ac_n "checking size of char""... $ac_c" 1>&6
10458 echo "configure:10459: checking size of char" >&5
10459 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10460 echo $ac_n "(cached) $ac_c" 1>&6
10461 else
10462 if test "$cross_compiling" = yes; then
10463 ac_cv_sizeof_char=1
10464 else
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10468 #include <stdio.h>
10469 main()
10470 {
10471 FILE *f=fopen("conftestval", "w");
10472 if (!f) exit(1);
10473 fprintf(f, "%d\n", sizeof(char));
10474 exit(0);
10475 }
10476 EOF
10477 if { (eval echo configure:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10478 then
10479 ac_cv_sizeof_char=`cat conftestval`
10480 else
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10483 rm -fr conftest*
10484 ac_cv_sizeof_char=0
10485 fi
10486 rm -fr conftest*
10487 fi
10488
10489 fi
10490 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10491 cat >> confdefs.h <<EOF
10492 #define SIZEOF_CHAR $ac_cv_sizeof_char
10493 EOF
10494
10495
10496 echo $ac_n "checking size of short""... $ac_c" 1>&6
10497 echo "configure:10498: checking size of short" >&5
10498 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10500 else
10501 if test "$cross_compiling" = yes; then
10502 ac_cv_sizeof_short=2
10503 else
10504 cat > conftest.$ac_ext <<EOF
10505 #line 10506 "configure"
10506 #include "confdefs.h"
10507 #include <stdio.h>
10508 main()
10509 {
10510 FILE *f=fopen("conftestval", "w");
10511 if (!f) exit(1);
10512 fprintf(f, "%d\n", sizeof(short));
10513 exit(0);
10514 }
10515 EOF
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10517 then
10518 ac_cv_sizeof_short=`cat conftestval`
10519 else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10522 rm -fr conftest*
10523 ac_cv_sizeof_short=0
10524 fi
10525 rm -fr conftest*
10526 fi
10527
10528 fi
10529 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10530 cat >> confdefs.h <<EOF
10531 #define SIZEOF_SHORT $ac_cv_sizeof_short
10532 EOF
10533
10534
10535 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10536 echo "configure:10537: checking size of void *" >&5
10537 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
10539 else
10540 if test "$cross_compiling" = yes; then
10541 ac_cv_sizeof_void_p=4
10542 else
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 #include <stdio.h>
10547 main()
10548 {
10549 FILE *f=fopen("conftestval", "w");
10550 if (!f) exit(1);
10551 fprintf(f, "%d\n", sizeof(void *));
10552 exit(0);
10553 }
10554 EOF
10555 if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10556 then
10557 ac_cv_sizeof_void_p=`cat conftestval`
10558 else
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 rm -fr conftest*
10562 ac_cv_sizeof_void_p=0
10563 fi
10564 rm -fr conftest*
10565 fi
10566
10567 fi
10568 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10569 cat >> confdefs.h <<EOF
10570 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10571 EOF
10572
10573
10574 echo $ac_n "checking size of int""... $ac_c" 1>&6
10575 echo "configure:10576: checking size of int" >&5
10576 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10577 echo $ac_n "(cached) $ac_c" 1>&6
10578 else
10579 if test "$cross_compiling" = yes; then
10580 ac_cv_sizeof_int=4
10581 else
10582 cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure"
10584 #include "confdefs.h"
10585 #include <stdio.h>
10586 main()
10587 {
10588 FILE *f=fopen("conftestval", "w");
10589 if (!f) exit(1);
10590 fprintf(f, "%d\n", sizeof(int));
10591 exit(0);
10592 }
10593 EOF
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10595 then
10596 ac_cv_sizeof_int=`cat conftestval`
10597 else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -fr conftest*
10601 ac_cv_sizeof_int=0
10602 fi
10603 rm -fr conftest*
10604 fi
10605
10606 fi
10607 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10608 cat >> confdefs.h <<EOF
10609 #define SIZEOF_INT $ac_cv_sizeof_int
10610 EOF
10611
10612
10613 echo $ac_n "checking size of long""... $ac_c" 1>&6
10614 echo "configure:10615: checking size of long" >&5
10615 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10617 else
10618 if test "$cross_compiling" = yes; then
10619 ac_cv_sizeof_long=4
10620 else
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10624 #include <stdio.h>
10625 main()
10626 {
10627 FILE *f=fopen("conftestval", "w");
10628 if (!f) exit(1);
10629 fprintf(f, "%d\n", sizeof(long));
10630 exit(0);
10631 }
10632 EOF
10633 if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10634 then
10635 ac_cv_sizeof_long=`cat conftestval`
10636 else
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -fr conftest*
10640 ac_cv_sizeof_long=0
10641 fi
10642 rm -fr conftest*
10643 fi
10644
10645 fi
10646 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10647 cat >> confdefs.h <<EOF
10648 #define SIZEOF_LONG $ac_cv_sizeof_long
10649 EOF
10650
10651
10652
10653 case "${host}" in
10654 arm-*-linux* )
10655 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10656 echo "configure:10657: checking size of long long" >&5
10657 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10658 echo $ac_n "(cached) $ac_c" 1>&6
10659 else
10660 if test "$cross_compiling" = yes; then
10661 ac_cv_sizeof_long_long=8
10662 else
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include <stdio.h>
10667 main()
10668 {
10669 FILE *f=fopen("conftestval", "w");
10670 if (!f) exit(1);
10671 fprintf(f, "%d\n", sizeof(long long));
10672 exit(0);
10673 }
10674 EOF
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10676 then
10677 ac_cv_sizeof_long_long=`cat conftestval`
10678 else
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 rm -fr conftest*
10682 ac_cv_sizeof_long_long=0
10683 fi
10684 rm -fr conftest*
10685 fi
10686
10687 fi
10688 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10689 cat >> confdefs.h <<EOF
10690 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10691 EOF
10692
10693
10694 ;;
10695 *-hp-hpux* )
10696 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10697 echo "configure:10698: checking size of long long" >&5
10698 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
10700 else
10701 if test "$cross_compiling" = yes; then
10702 ac_cv_sizeof_long_long=0
10703 else
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <stdio.h>
10708 main()
10709 {
10710 FILE *f=fopen("conftestval", "w");
10711 if (!f) exit(1);
10712 fprintf(f, "%d\n", sizeof(long long));
10713 exit(0);
10714 }
10715 EOF
10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10717 then
10718 ac_cv_sizeof_long_long=`cat conftestval`
10719 else
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10722 rm -fr conftest*
10723 ac_cv_sizeof_long_long=0
10724 fi
10725 rm -fr conftest*
10726 fi
10727
10728 fi
10729 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10730 cat >> confdefs.h <<EOF
10731 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10732 EOF
10733
10734
10735 if test "$ac_cv_sizeof_long_long" != "0"; then
10736 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10737 fi
10738 ;;
10739 * )
10740 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10741 echo "configure:10742: checking size of long long" >&5
10742 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10744 else
10745 if test "$cross_compiling" = yes; then
10746 ac_cv_sizeof_long_long=0
10747 else
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 #include <stdio.h>
10752 main()
10753 {
10754 FILE *f=fopen("conftestval", "w");
10755 if (!f) exit(1);
10756 fprintf(f, "%d\n", sizeof(long long));
10757 exit(0);
10758 }
10759 EOF
10760 if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10761 then
10762 ac_cv_sizeof_long_long=`cat conftestval`
10763 else
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 rm -fr conftest*
10767 ac_cv_sizeof_long_long=0
10768 fi
10769 rm -fr conftest*
10770 fi
10771
10772 fi
10773 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10774 cat >> confdefs.h <<EOF
10775 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10776 EOF
10777
10778
10779 esac
10780
10781 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10782 echo "configure:10783: checking size of wchar_t" >&5
10783 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10785 else
10786
10787 if test "$cross_compiling" = yes; then
10788
10789 case "${host}" in
10790 *-pc-msdosdjgpp )
10791 wx_cv_sizeof_wchar_t=0
10792 ;;
10793 * )
10794 wx_cv_sizeof_wchar_t=4
10795 ;;
10796 esac
10797
10798
10799 else
10800 cat > conftest.$ac_ext <<EOF
10801 #line 10802 "configure"
10802 #include "confdefs.h"
10803
10804 /* DJGPP only has fake wchar_t: */
10805 #ifdef __DJGPP__
10806 # error "fake wchar_t"
10807 #endif
10808 #ifdef HAVE_WCHAR_H
10809 # ifdef __CYGWIN__
10810 # include <stddef.h>
10811 # endif
10812 # include <wchar.h>
10813 #endif
10814 #ifdef HAVE_STDLIB_H
10815 # include <stdlib.h>
10816 #endif
10817 #include <stdio.h>
10818 int main()
10819 {
10820 FILE *f=fopen("conftestval", "w");
10821 if (!f) exit(1);
10822 fprintf(f, "%i", sizeof(wchar_t));
10823 exit(0);
10824 }
10825
10826 EOF
10827 if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10828 then
10829 wx_cv_sizeof_wchar_t=`cat conftestval`
10830 else
10831 echo "configure: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 rm -fr conftest*
10834 wx_cv_sizeof_wchar_t=0
10835 fi
10836 rm -fr conftest*
10837 fi
10838
10839
10840 fi
10841
10842 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10843
10844 cat >> confdefs.h <<EOF
10845 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10846 EOF
10847
10848
10849 # Check whether --enable-largefile or --disable-largefile was given.
10850 if test "${enable_largefile+set}" = set; then
10851 enableval="$enable_largefile"
10852 :
10853 fi
10854
10855 if test "$enable_largefile" != no; then
10856 wx_largefile=no
10857
10858 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10859 echo "configure:10860: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10860 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10862 else
10863
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10867 #define _FILE_OFFSET_BITS 64
10868 #include <sys/types.h>
10869 int main() {
10870 typedef struct {
10871 unsigned int field: sizeof(off_t) == 8;
10872 } wxlf;
10873
10874 ; return 0; }
10875 EOF
10876 if { (eval echo configure:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10877 rm -rf conftest*
10878 ac_cv_sys_file_offset_bits=64
10879 else
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 rm -rf conftest*
10883 ac_cv_sys_file_offset_bits=no
10884 fi
10885 rm -f conftest*
10886
10887
10888 fi
10889
10890 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10891
10892 if test "$ac_cv_sys_file_offset_bits" != no; then
10893 wx_largefile=yes
10894 cat >> confdefs.h <<EOF
10895 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10896 EOF
10897
10898 fi
10899
10900 if test "x$wx_largefile" != "xyes"; then
10901
10902 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10903 echo "configure:10904: checking for _LARGE_FILES value needed for large files" >&5
10904 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10905 echo $ac_n "(cached) $ac_c" 1>&6
10906 else
10907
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10911 #define _LARGE_FILES 1
10912 #include <sys/types.h>
10913 int main() {
10914 typedef struct {
10915 unsigned int field: sizeof(off_t) == 8;
10916 } wxlf;
10917
10918 ; return 0; }
10919 EOF
10920 if { (eval echo configure:10921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10921 rm -rf conftest*
10922 ac_cv_sys_large_files=1
10923 else
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10926 rm -rf conftest*
10927 ac_cv_sys_large_files=no
10928 fi
10929 rm -f conftest*
10930
10931
10932 fi
10933
10934 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10935
10936 if test "$ac_cv_sys_large_files" != no; then
10937 wx_largefile=yes
10938 cat >> confdefs.h <<EOF
10939 #define _LARGE_FILES $ac_cv_sys_large_files
10940 EOF
10941
10942 fi
10943
10944 fi
10945
10946 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10947 echo "configure:10948: checking if large file support is available" >&5
10948 if test "x$wx_largefile" = "xyes"; then
10949 cat >> confdefs.h <<\EOF
10950 #define HAVE_LARGEFILE_SUPPORT 1
10951 EOF
10952
10953 fi
10954 echo "$ac_t""$wx_largefile" 1>&6
10955 fi
10956
10957
10958 if test "x$wx_largefile" = "xyes"; then
10959 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10960 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10961 else
10962 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10963 fi
10964 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10965 fi
10966
10967 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10968 echo "configure:10969: checking whether byte ordering is bigendian" >&5
10969 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10971 else
10972 ac_cv_c_bigendian=unknown
10973 # See if sys/param.h defines the BYTE_ORDER macro.
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 #include <sys/types.h>
10978 #include <sys/param.h>
10979 int main() {
10980
10981 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10982 bogus endian macros
10983 #endif
10984 ; return 0; }
10985 EOF
10986 if { (eval echo configure:10987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10987 rm -rf conftest*
10988 # It does; now see whether it defined to BIG_ENDIAN or not.
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 #include <sys/types.h>
10993 #include <sys/param.h>
10994 int main() {
10995
10996 #if BYTE_ORDER != BIG_ENDIAN
10997 not big endian
10998 #endif
10999 ; return 0; }
11000 EOF
11001 if { (eval echo configure:11002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11002 rm -rf conftest*
11003 ac_cv_c_bigendian=yes
11004 else
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 rm -rf conftest*
11008 ac_cv_c_bigendian=no
11009 fi
11010 rm -f conftest*
11011 else
11012 echo "configure: failed program was:" >&5
11013 cat conftest.$ac_ext >&5
11014 fi
11015 rm -f conftest*
11016 if test $ac_cv_c_bigendian = unknown; then
11017 if test "$cross_compiling" = yes; then
11018 ac_cv_c_bigendian=unknown
11019 else
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 main () {
11024 /* Are we little or big endian? From Harbison&Steele. */
11025 union
11026 {
11027 long l;
11028 char c[sizeof (long)];
11029 } u;
11030 u.l = 1;
11031 exit (u.c[sizeof (long) - 1] == 1);
11032 }
11033 EOF
11034 if { (eval echo configure:11035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11035 then
11036 ac_cv_c_bigendian=no
11037 else
11038 echo "configure: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11040 rm -fr conftest*
11041 ac_cv_c_bigendian=yes
11042 fi
11043 rm -fr conftest*
11044 fi
11045
11046 fi
11047 fi
11048
11049 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11050 if test $ac_cv_c_bigendian = unknown; then
11051 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
11052 fi
11053 if test $ac_cv_c_bigendian = yes; then
11054 cat >> confdefs.h <<\EOF
11055 #define WORDS_BIGENDIAN 1
11056 EOF
11057
11058 fi
11059
11060
11061 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11062 echo "configure:11063: checking how to run the C++ preprocessor" >&5
11063 if test -z "$CXXCPP"; then
11064 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11066 else
11067 ac_ext=C
11068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11069 ac_cpp='$CXXCPP $CPPFLAGS'
11070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11072 cross_compiling=$ac_cv_prog_cxx_cross
11073 CXXCPP="${CXX-g++} -E"
11074 cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11077 #include <stdlib.h>
11078 EOF
11079 ac_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; }
11081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11082 if test -z "$ac_err"; then
11083 :
11084 else
11085 echo "$ac_err" >&5
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11088 rm -rf conftest*
11089 CXXCPP=/lib/cpp
11090 fi
11091 rm -f conftest*
11092 ac_cv_prog_CXXCPP="$CXXCPP"
11093 ac_ext=C
11094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11095 ac_cpp='$CXXCPP $CPPFLAGS'
11096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11098 cross_compiling=$ac_cv_prog_cxx_cross
11099 fi
11100 fi
11101 CXXCPP="$ac_cv_prog_CXXCPP"
11102 echo "$ac_t""$CXXCPP" 1>&6
11103
11104
11105 if test "$cross_compiling" = "yes"; then
11106 cat >> confdefs.h <<\EOF
11107 #define wxUSE_IOSTREAMH 1
11108 EOF
11109
11110 else
11111
11112 ac_ext=C
11113 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11114 ac_cpp='$CXXCPP $CPPFLAGS'
11115 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11116 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11117 cross_compiling=$ac_cv_prog_cxx_cross
11118
11119
11120 for ac_hdr in iostream
11121 do
11122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11124 echo "configure:11125: checking for $ac_hdr" >&5
11125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
11127 else
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 #include <$ac_hdr>
11132 EOF
11133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11134 { (eval echo configure:11135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11136 if test -z "$ac_err"; then
11137 rm -rf conftest*
11138 eval "ac_cv_header_$ac_safe=yes"
11139 else
11140 echo "$ac_err" >&5
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11143 rm -rf conftest*
11144 eval "ac_cv_header_$ac_safe=no"
11145 fi
11146 rm -f conftest*
11147 fi
11148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11149 echo "$ac_t""yes" 1>&6
11150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11151 cat >> confdefs.h <<EOF
11152 #define $ac_tr_hdr 1
11153 EOF
11154
11155 else
11156 echo "$ac_t""no" 1>&6
11157 fi
11158 done
11159
11160
11161 if test "$ac_cv_header_iostream" = "yes" ; then
11162 :
11163 else
11164 cat >> confdefs.h <<\EOF
11165 #define wxUSE_IOSTREAMH 1
11166 EOF
11167
11168 fi
11169
11170 ac_ext=c
11171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11172 ac_cpp='$CPP $CPPFLAGS'
11173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11175 cross_compiling=$ac_cv_prog_cc_cross
11176
11177 fi
11178
11179
11180
11181 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11182 echo "configure:11183: checking if C++ compiler supports bool" >&5
11183 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11185 else
11186
11187
11188 ac_ext=C
11189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11190 ac_cpp='$CXXCPP $CPPFLAGS'
11191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11193 cross_compiling=$ac_cv_prog_cxx_cross
11194
11195
11196 cat > conftest.$ac_ext <<EOF
11197 #line 11198 "configure"
11198 #include "confdefs.h"
11199
11200
11201 int main() {
11202
11203 bool b = true;
11204
11205 return 0;
11206
11207 ; return 0; }
11208 EOF
11209 if { (eval echo configure:11210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11210 rm -rf conftest*
11211
11212 wx_cv_cpp_bool=yes
11213
11214 else
11215 echo "configure: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 rm -rf conftest*
11218
11219 wx_cv_cpp_bool=no
11220
11221
11222 fi
11223 rm -f conftest*
11224
11225 ac_ext=c
11226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11227 ac_cpp='$CPP $CPPFLAGS'
11228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11230 cross_compiling=$ac_cv_prog_cc_cross
11231
11232
11233 fi
11234
11235 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11236
11237 if test "$wx_cv_cpp_bool" = "yes"; then
11238 cat >> confdefs.h <<\EOF
11239 #define HAVE_BOOL 1
11240 EOF
11241
11242 fi
11243
11244
11245
11246 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11247 echo "configure:11248: checking if C++ compiler supports the explicit keyword" >&5
11248 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11250 else
11251
11252
11253 ac_ext=C
11254 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11255 ac_cpp='$CXXCPP $CPPFLAGS'
11256 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11257 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11258 cross_compiling=$ac_cv_prog_cxx_cross
11259
11260
11261 cat > conftest.$ac_ext <<EOF
11262 #line 11263 "configure"
11263 #include "confdefs.h"
11264
11265 class Foo { public: explicit Foo(int) {} };
11266
11267 int main() {
11268
11269 return 0;
11270
11271 ; return 0; }
11272 EOF
11273 if { (eval echo configure:11274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11274 rm -rf conftest*
11275
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11279
11280 class Foo { public: explicit Foo(int) {} };
11281 static void TakeFoo(const Foo& foo) { }
11282
11283 int main() {
11284
11285 TakeFoo(17);
11286 return 0;
11287
11288 ; return 0; }
11289 EOF
11290 if { (eval echo configure:11291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11291 rm -rf conftest*
11292 wx_cv_explicit=no
11293 else
11294 echo "configure: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 rm -rf conftest*
11297 wx_cv_explicit=yes
11298
11299 fi
11300 rm -f conftest*
11301
11302 else
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11305 rm -rf conftest*
11306 wx_cv_explicit=no
11307
11308 fi
11309 rm -f conftest*
11310
11311 ac_ext=c
11312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11313 ac_cpp='$CPP $CPPFLAGS'
11314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11316 cross_compiling=$ac_cv_prog_cc_cross
11317
11318
11319 fi
11320
11321 echo "$ac_t""$wx_cv_explicit" 1>&6
11322
11323 if test "$wx_cv_explicit" = "yes"; then
11324 cat >> confdefs.h <<\EOF
11325 #define HAVE_EXPLICIT 1
11326 EOF
11327
11328 fi
11329
11330
11331 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11332 echo "configure:11333: checking whether the compiler supports const_cast<>" >&5
11333 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335 else
11336
11337 ac_ext=C
11338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11339 ac_cpp='$CXXCPP $CPPFLAGS'
11340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11342 cross_compiling=$ac_cv_prog_cxx_cross
11343
11344 cat > conftest.$ac_ext <<EOF
11345 #line 11346 "configure"
11346 #include "confdefs.h"
11347
11348 int main() {
11349 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11350 ; return 0; }
11351 EOF
11352 if { (eval echo configure:11353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11353 rm -rf conftest*
11354 ac_cv_cxx_const_cast=yes
11355 else
11356 echo "configure: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 rm -rf conftest*
11359 ac_cv_cxx_const_cast=no
11360 fi
11361 rm -f conftest*
11362 ac_ext=c
11363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11364 ac_cpp='$CPP $CPPFLAGS'
11365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11367 cross_compiling=$ac_cv_prog_cc_cross
11368
11369
11370 fi
11371
11372 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11373 if test "$ac_cv_cxx_const_cast" = yes; then
11374 cat >> confdefs.h <<\EOF
11375 #define HAVE_CONST_CAST
11376 EOF
11377
11378 fi
11379
11380
11381
11382 SEARCH_INCLUDE="\
11383 /usr/local/include \
11384 \
11385 /usr/Motif-1.2/include \
11386 /usr/Motif-2.1/include \
11387 \
11388 /usr/include/Motif1.2 \
11389 /opt/xpm/include/X11 \
11390 /opt/GBxpm/include/ \
11391 /opt/GBxpm/X11/include/ \
11392 \
11393 /usr/Motif1.2/include \
11394 /usr/dt/include \
11395 /usr/openwin/include \
11396 \
11397 /usr/include/Xm \
11398 \
11399 /usr/X11R6/include \
11400 /usr/X11R6.4/include \
11401 /usr/X11R5/include \
11402 /usr/X11R4/include \
11403 \
11404 /usr/include/X11R6 \
11405 /usr/include/X11R5 \
11406 /usr/include/X11R4 \
11407 \
11408 /usr/local/X11R6/include \
11409 /usr/local/X11R5/include \
11410 /usr/local/X11R4/include \
11411 \
11412 /usr/local/include/X11R6 \
11413 /usr/local/include/X11R5 \
11414 /usr/local/include/X11R4 \
11415 \
11416 /usr/X11/include \
11417 /usr/include/X11 \
11418 /usr/local/X11/include \
11419 /usr/local/include/X11 \
11420 \
11421 /usr/X386/include \
11422 /usr/x386/include \
11423 /usr/XFree86/include/X11 \
11424 \
11425 X:/XFree86/include \
11426 X:/XFree86/include/X11 \
11427 \
11428 /usr/include/gtk \
11429 /usr/local/include/gtk \
11430 /usr/include/glib \
11431 /usr/local/include/glib \
11432 \
11433 /usr/include/qt \
11434 /usr/local/include/qt \
11435 \
11436 /usr/include/windows \
11437 /usr/include/wine \
11438 /usr/local/include/wine \
11439 \
11440 /usr/unsupported/include \
11441 /usr/athena/include \
11442 /usr/local/x11r5/include \
11443 /usr/lpp/Xamples/include \
11444 \
11445 /usr/openwin/share/include"
11446
11447 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11448
11449
11450 cat > confcache <<\EOF
11451 # This file is a shell script that caches the results of configure
11452 # tests run on this system so they can be shared between configure
11453 # scripts and configure runs. It is not useful on other systems.
11454 # If it contains results you don't want to keep, you may remove or edit it.
11455 #
11456 # By default, configure uses ./config.cache as the cache file,
11457 # creating it if it does not exist already. You can give configure
11458 # the --cache-file=FILE option to use a different cache file; that is
11459 # what configure does when it calls configure scripts in
11460 # subdirectories, so they share the cache.
11461 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11462 # config.status only pays attention to the cache file if you give it the
11463 # --recheck option to rerun configure.
11464 #
11465 EOF
11466 # The following way of writing the cache mishandles newlines in values,
11467 # but we know of no workaround that is simple, portable, and efficient.
11468 # So, don't put newlines in cache variables' values.
11469 # Ultrix sh set writes to stderr and can't be redirected directly,
11470 # and sets the high bit in the cache file unless we assign to the vars.
11471 (set) 2>&1 |
11472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11473 *ac_space=\ *)
11474 # `set' does not quote correctly, so add quotes (double-quote substitution
11475 # turns \\\\ into \\, and sed turns \\ into \).
11476 sed -n \
11477 -e "s/'/'\\\\''/g" \
11478 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11479 ;;
11480 *)
11481 # `set' quotes correctly as required by POSIX, so do not add quotes.
11482 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11483 ;;
11484 esac >> confcache
11485 if cmp -s $cache_file confcache; then
11486 :
11487 else
11488 if test -w $cache_file; then
11489 echo "updating cache $cache_file"
11490 cat confcache > $cache_file
11491 else
11492 echo "not updating unwritable cache $cache_file"
11493 fi
11494 fi
11495 rm -f confcache
11496
11497
11498 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
11499 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11500 echo "configure:11501: checking for glibc 2.1 or later" >&5
11501 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11502 echo $ac_n "(cached) $ac_c" 1>&6
11503 else
11504
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11508 #include <features.h>
11509 int main() {
11510
11511 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11512 #error not glibc2.1
11513 #endif
11514
11515 ; return 0; }
11516 EOF
11517 if { (eval echo configure:11518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11518 rm -rf conftest*
11519
11520 wx_cv_lib_glibc21=yes
11521
11522 else
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 rm -rf conftest*
11526
11527 wx_cv_lib_glibc21=no
11528
11529
11530 fi
11531 rm -f conftest*
11532
11533 fi
11534
11535 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11536 if test "$wx_cv_lib_glibc21" = "yes"; then
11537 cat >> confdefs.h <<\EOF
11538 #define wxHAVE_GLIBC2 1
11539 EOF
11540
11541 fi
11542 fi
11543
11544 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11545 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11546 cat >> confdefs.h <<\EOF
11547 #define _GNU_SOURCE 1
11548 EOF
11549
11550 fi
11551 fi
11552
11553
11554
11555 REGEX_INCLUDE=
11556 if test "$wxUSE_REGEX" != "no"; then
11557 cat >> confdefs.h <<\EOF
11558 #define wxUSE_REGEX 1
11559 EOF
11560
11561
11562 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11563 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11564 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11565 echo "configure:11566: checking for regex.h" >&5
11566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11567 echo $ac_n "(cached) $ac_c" 1>&6
11568 else
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11572 #include <regex.h>
11573 EOF
11574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11575 { (eval echo configure:11576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11577 if test -z "$ac_err"; then
11578 rm -rf conftest*
11579 eval "ac_cv_header_$ac_safe=yes"
11580 else
11581 echo "$ac_err" >&5
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 rm -rf conftest*
11585 eval "ac_cv_header_$ac_safe=no"
11586 fi
11587 rm -f conftest*
11588 fi
11589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11590 echo "$ac_t""yes" 1>&6
11591 for ac_func in regcomp
11592 do
11593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11594 echo "configure:11595: checking for $ac_func" >&5
11595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
11597 else
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11601 /* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func(); below. */
11603 #include <assert.h>
11604 /* Override any gcc2 internal prototype to avoid an error. */
11605 /* We use char because int might match the return type of a gcc2
11606 builtin and then its argument prototype would still apply. */
11607 char $ac_func();
11608
11609 int main() {
11610
11611 /* The GNU C library defines this for functions which it implements
11612 to always fail with ENOSYS. Some functions are actually named
11613 something starting with __ and the normal name is an alias. */
11614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11615 choke me
11616 #else
11617 $ac_func();
11618 #endif
11619
11620 ; return 0; }
11621 EOF
11622 if { (eval echo configure:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11623 rm -rf conftest*
11624 eval "ac_cv_func_$ac_func=yes"
11625 else
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11628 rm -rf conftest*
11629 eval "ac_cv_func_$ac_func=no"
11630 fi
11631 rm -f conftest*
11632 fi
11633
11634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11635 echo "$ac_t""yes" 1>&6
11636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11637 cat >> confdefs.h <<EOF
11638 #define $ac_tr_func 1
11639 EOF
11640
11641 else
11642 echo "$ac_t""no" 1>&6
11643 fi
11644 done
11645
11646 else
11647 echo "$ac_t""no" 1>&6
11648 fi
11649
11650
11651 if test "x$ac_cv_func_regcomp" != "xyes"; then
11652 if test "$wxUSE_REGEX" = "sys" ; then
11653 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11654 else
11655 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11656 wxUSE_REGEX=builtin
11657 fi
11658 else
11659 wxUSE_REGEX=sys
11660 fi
11661 fi
11662
11663 if test "$wxUSE_REGEX" = "builtin" ; then
11664 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11665 fi
11666 fi
11667
11668
11669 ZLIB_INCLUDE=
11670 ZLIB_LINK=
11671 if test "$wxUSE_ZLIB" != "no" ; then
11672 cat >> confdefs.h <<\EOF
11673 #define wxUSE_ZLIB 1
11674 EOF
11675
11676
11677 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11678 if test "$USE_DARWIN" = 1; then
11679 system_zlib_h_ok="yes"
11680 else
11681 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11682 echo "configure:11683: checking for zlib.h >= 1.1.4" >&5
11683 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11684 echo $ac_n "(cached) $ac_c" 1>&6
11685 else
11686 if test "$cross_compiling" = yes; then
11687 unset ac_cv_header_zlib_h
11688
11689 else
11690 cat > conftest.$ac_ext <<EOF
11691 #line 11692 "configure"
11692 #include "confdefs.h"
11693
11694 #include <zlib.h>
11695 #include <stdio.h>
11696
11697 int main()
11698 {
11699 FILE *f=fopen("conftestval", "w");
11700 if (!f) exit(1);
11701 fprintf(f, "%s",
11702 ZLIB_VERSION[0] == '1' &&
11703 (ZLIB_VERSION[2] > '1' ||
11704 (ZLIB_VERSION[2] == '1' &&
11705 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11706 exit(0);
11707 }
11708
11709 EOF
11710 if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11711 then
11712 ac_cv_header_zlib_h=`cat conftestval`
11713 else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -fr conftest*
11717 ac_cv_header_zlib_h=no
11718 fi
11719 rm -fr conftest*
11720 fi
11721
11722
11723 fi
11724
11725 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11726 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11727 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11728 echo "configure:11729: checking for zlib.h" >&5
11729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731 else
11732 cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11735 #include <zlib.h>
11736 EOF
11737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11738 { (eval echo configure:11739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11740 if test -z "$ac_err"; then
11741 rm -rf conftest*
11742 eval "ac_cv_header_$ac_safe=yes"
11743 else
11744 echo "$ac_err" >&5
11745 echo "configure: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 rm -rf conftest*
11748 eval "ac_cv_header_$ac_safe=no"
11749 fi
11750 rm -f conftest*
11751 fi
11752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11753 echo "$ac_t""yes" 1>&6
11754 :
11755 else
11756 echo "$ac_t""no" 1>&6
11757 fi
11758
11759
11760 system_zlib_h_ok=$ac_cv_header_zlib_h
11761 fi
11762
11763 if test "$system_zlib_h_ok" = "yes"; then
11764 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11765 echo "configure:11766: checking for deflate in -lz" >&5
11766 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11769 else
11770 ac_save_LIBS="$LIBS"
11771 LIBS="-lz $LIBS"
11772 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 /* Override any gcc2 internal prototype to avoid an error. */
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778 char deflate();
11779
11780 int main() {
11781 deflate()
11782 ; return 0; }
11783 EOF
11784 if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11785 rm -rf conftest*
11786 eval "ac_cv_lib_$ac_lib_var=yes"
11787 else
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 rm -rf conftest*
11791 eval "ac_cv_lib_$ac_lib_var=no"
11792 fi
11793 rm -f conftest*
11794 LIBS="$ac_save_LIBS"
11795
11796 fi
11797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11798 echo "$ac_t""yes" 1>&6
11799 ZLIB_LINK=" -lz"
11800 else
11801 echo "$ac_t""no" 1>&6
11802 fi
11803
11804 fi
11805
11806 if test "x$ZLIB_LINK" = "x" ; then
11807 if test "$wxUSE_ZLIB" = "sys" ; then
11808 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11809 else
11810 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11811 wxUSE_ZLIB=builtin
11812 fi
11813 else
11814 wxUSE_ZLIB=sys
11815 fi
11816 fi
11817
11818 if test "$wxUSE_ZLIB" = "builtin" ; then
11819 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11820 fi
11821 fi
11822
11823
11824 PNG_INCLUDE=
11825 PNG_LINK=
11826 if test "$wxUSE_LIBPNG" != "no" ; then
11827 cat >> confdefs.h <<\EOF
11828 #define wxUSE_LIBPNG 1
11829 EOF
11830
11831
11832 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11833 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11834 wxUSE_LIBPNG=sys
11835 fi
11836
11837 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11838 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11839 wxUSE_LIBPNG=builtin
11840 fi
11841
11842 if test "$wxUSE_MGL" != 1 ; then
11843 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11844 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11845 echo "configure:11846: checking for png.h > 0.90" >&5
11846 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11847 echo $ac_n "(cached) $ac_c" 1>&6
11848 else
11849 if test "$cross_compiling" = yes; then
11850 unset ac_cv_header_png_h
11851
11852 else
11853 cat > conftest.$ac_ext <<EOF
11854 #line 11855 "configure"
11855 #include "confdefs.h"
11856
11857 #include <png.h>
11858 #include <stdio.h>
11859
11860 int main()
11861 {
11862 FILE *f=fopen("conftestval", "w");
11863 if (!f) exit(1);
11864 fprintf(f, "%s",
11865 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11866 exit(0);
11867 }
11868
11869 EOF
11870 if { (eval echo configure:11871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11871 then
11872 ac_cv_header_png_h=`cat conftestval`
11873 else
11874 echo "configure: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11876 rm -fr conftest*
11877 ac_cv_header_png_h=no
11878 fi
11879 rm -fr conftest*
11880 fi
11881
11882
11883 fi
11884
11885 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11886 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11887 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11888 echo "configure:11889: checking for png.h" >&5
11889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11891 else
11892 cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 #include <png.h>
11896 EOF
11897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11898 { (eval echo configure:11899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11900 if test -z "$ac_err"; then
11901 rm -rf conftest*
11902 eval "ac_cv_header_$ac_safe=yes"
11903 else
11904 echo "$ac_err" >&5
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 rm -rf conftest*
11908 eval "ac_cv_header_$ac_safe=no"
11909 fi
11910 rm -f conftest*
11911 fi
11912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11913 echo "$ac_t""yes" 1>&6
11914 :
11915 else
11916 echo "$ac_t""no" 1>&6
11917 fi
11918
11919
11920 if test "$ac_cv_header_png_h" = "yes"; then
11921 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11922 echo "configure:11923: checking for png_check_sig in -lpng" >&5
11923 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11925 echo $ac_n "(cached) $ac_c" 1>&6
11926 else
11927 ac_save_LIBS="$LIBS"
11928 LIBS="-lpng -lz -lm $LIBS"
11929 cat > conftest.$ac_ext <<EOF
11930 #line 11931 "configure"
11931 #include "confdefs.h"
11932 /* Override any gcc2 internal prototype to avoid an error. */
11933 /* We use char because int might match the return type of a gcc2
11934 builtin and then its argument prototype would still apply. */
11935 char png_check_sig();
11936
11937 int main() {
11938 png_check_sig()
11939 ; return 0; }
11940 EOF
11941 if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11942 rm -rf conftest*
11943 eval "ac_cv_lib_$ac_lib_var=yes"
11944 else
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11947 rm -rf conftest*
11948 eval "ac_cv_lib_$ac_lib_var=no"
11949 fi
11950 rm -f conftest*
11951 LIBS="$ac_save_LIBS"
11952
11953 fi
11954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11955 echo "$ac_t""yes" 1>&6
11956 PNG_LINK=" -lpng"
11957 else
11958 echo "$ac_t""no" 1>&6
11959 fi
11960
11961 fi
11962
11963 if test "x$PNG_LINK" = "x" ; then
11964 if test "$wxUSE_LIBPNG" = "sys" ; then
11965 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11966 else
11967 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11968 wxUSE_LIBPNG=builtin
11969 fi
11970 else
11971 wxUSE_LIBPNG=sys
11972 fi
11973 fi
11974 fi
11975
11976 if test "$wxUSE_LIBPNG" = "builtin" ; then
11977 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11978 fi
11979
11980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11981 fi
11982
11983
11984 JPEG_INCLUDE=
11985 JPEG_LINK=
11986 if test "$wxUSE_LIBJPEG" != "no" ; then
11987 cat >> confdefs.h <<\EOF
11988 #define wxUSE_LIBJPEG 1
11989 EOF
11990
11991
11992 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11993 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11994 wxUSE_LIBJPEG=sys
11995 fi
11996
11997 if test "$wxUSE_MGL" != 1 ; then
11998 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11999 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
12000 echo "configure:12001: checking for jpeglib.h" >&5
12001 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
12003 else
12004 cat > conftest.$ac_ext <<EOF
12005 #line 12006 "configure"
12006 #include "confdefs.h"
12007
12008 #undef HAVE_STDLIB_H
12009 #include <stdio.h>
12010 #include <jpeglib.h>
12011
12012 int main() {
12013
12014
12015 ; return 0; }
12016 EOF
12017 if { (eval echo configure:12018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12018 rm -rf conftest*
12019 ac_cv_header_jpeglib_h=yes
12020 else
12021 echo "configure: failed program was:" >&5
12022 cat conftest.$ac_ext >&5
12023 rm -rf conftest*
12024 ac_cv_header_jpeglib_h=no
12025
12026 fi
12027 rm -f conftest*
12028
12029 fi
12030
12031 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
12032
12033 if test "$ac_cv_header_jpeglib_h" = "yes"; then
12034 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
12035 echo "configure:12036: checking for jpeg_read_header in -ljpeg" >&5
12036 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12038 echo $ac_n "(cached) $ac_c" 1>&6
12039 else
12040 ac_save_LIBS="$LIBS"
12041 LIBS="-ljpeg $LIBS"
12042 cat > conftest.$ac_ext <<EOF
12043 #line 12044 "configure"
12044 #include "confdefs.h"
12045 /* Override any gcc2 internal prototype to avoid an error. */
12046 /* We use char because int might match the return type of a gcc2
12047 builtin and then its argument prototype would still apply. */
12048 char jpeg_read_header();
12049
12050 int main() {
12051 jpeg_read_header()
12052 ; return 0; }
12053 EOF
12054 if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12055 rm -rf conftest*
12056 eval "ac_cv_lib_$ac_lib_var=yes"
12057 else
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 rm -rf conftest*
12061 eval "ac_cv_lib_$ac_lib_var=no"
12062 fi
12063 rm -f conftest*
12064 LIBS="$ac_save_LIBS"
12065
12066 fi
12067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12068 echo "$ac_t""yes" 1>&6
12069 JPEG_LINK=" -ljpeg"
12070 else
12071 echo "$ac_t""no" 1>&6
12072 fi
12073
12074 fi
12075
12076 if test "x$JPEG_LINK" = "x" ; then
12077 if test "$wxUSE_LIBJPEG" = "sys" ; then
12078 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12079 else
12080 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12081 wxUSE_LIBJPEG=builtin
12082 fi
12083 else
12084 wxUSE_LIBJPEG=sys
12085 fi
12086 fi
12087 fi
12088
12089 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12090 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12091 fi
12092 fi
12093
12094
12095 TIFF_INCLUDE=
12096 TIFF_LINK=
12097 TIFF_PREREQ_LINKS=-lm
12098 if test "$wxUSE_LIBTIFF" != "no" ; then
12099 cat >> confdefs.h <<\EOF
12100 #define wxUSE_LIBTIFF 1
12101 EOF
12102
12103
12104 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12105 if test "$wxUSE_LIBJPEG" = "sys"; then
12106 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12107 fi
12108 if test "$wxUSE_ZLIB" = "sys"; then
12109 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12110 fi
12111 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12112 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12113 echo "configure:12114: checking for tiffio.h" >&5
12114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12115 echo $ac_n "(cached) $ac_c" 1>&6
12116 else
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12120 #include <tiffio.h>
12121 EOF
12122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12123 { (eval echo configure:12124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12125 if test -z "$ac_err"; then
12126 rm -rf conftest*
12127 eval "ac_cv_header_$ac_safe=yes"
12128 else
12129 echo "$ac_err" >&5
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 rm -rf conftest*
12133 eval "ac_cv_header_$ac_safe=no"
12134 fi
12135 rm -f conftest*
12136 fi
12137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12138 echo "$ac_t""yes" 1>&6
12139 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12140 echo "configure:12141: checking for TIFFError in -ltiff" >&5
12141 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12144 else
12145 ac_save_LIBS="$LIBS"
12146 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12147 cat > conftest.$ac_ext <<EOF
12148 #line 12149 "configure"
12149 #include "confdefs.h"
12150 /* Override any gcc2 internal prototype to avoid an error. */
12151 /* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12153 char TIFFError();
12154
12155 int main() {
12156 TIFFError()
12157 ; return 0; }
12158 EOF
12159 if { (eval echo configure:12160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12160 rm -rf conftest*
12161 eval "ac_cv_lib_$ac_lib_var=yes"
12162 else
12163 echo "configure: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 rm -rf conftest*
12166 eval "ac_cv_lib_$ac_lib_var=no"
12167 fi
12168 rm -f conftest*
12169 LIBS="$ac_save_LIBS"
12170
12171 fi
12172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12173 echo "$ac_t""yes" 1>&6
12174 TIFF_LINK=" -ltiff"
12175 else
12176 echo "$ac_t""no" 1>&6
12177 fi
12178
12179
12180 else
12181 echo "$ac_t""no" 1>&6
12182 fi
12183
12184
12185 if test "x$TIFF_LINK" = "x" ; then
12186 if test "$wxUSE_LIBTIFF" = "sys" ; then
12187 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12188 else
12189 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12190 wxUSE_LIBTIFF=builtin
12191 fi
12192 else
12193 wxUSE_LIBTIFF=sys
12194 fi
12195 fi
12196
12197 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12198 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12199 fi
12200 fi
12201
12202
12203 AFMINSTALL=
12204 WIN32INSTALL=
12205
12206 TOOLKIT=
12207 TOOLKIT_INCLUDE=
12208 WIDGET_SET=
12209
12210 if test "$USE_WIN32" = 1 ; then
12211 for ac_hdr in w32api.h
12212 do
12213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12215 echo "configure:12216: checking for $ac_hdr" >&5
12216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12218 else
12219 cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12222 #include <$ac_hdr>
12223 EOF
12224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12225 { (eval echo configure:12226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12227 if test -z "$ac_err"; then
12228 rm -rf conftest*
12229 eval "ac_cv_header_$ac_safe=yes"
12230 else
12231 echo "$ac_err" >&5
12232 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12234 rm -rf conftest*
12235 eval "ac_cv_header_$ac_safe=no"
12236 fi
12237 rm -f conftest*
12238 fi
12239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12240 echo "$ac_t""yes" 1>&6
12241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12242 cat >> confdefs.h <<EOF
12243 #define $ac_tr_hdr 1
12244 EOF
12245
12246 else
12247 echo "$ac_t""no" 1>&6
12248 fi
12249 done
12250
12251 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12252 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12253 echo "configure:12254: checking for windows.h" >&5
12254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12256 else
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 #include <windows.h>
12261 EOF
12262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12263 { (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12265 if test -z "$ac_err"; then
12266 rm -rf conftest*
12267 eval "ac_cv_header_$ac_safe=yes"
12268 else
12269 echo "$ac_err" >&5
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12272 rm -rf conftest*
12273 eval "ac_cv_header_$ac_safe=no"
12274 fi
12275 rm -f conftest*
12276 fi
12277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12278 echo "$ac_t""yes" 1>&6
12279 :
12280 else
12281 echo "$ac_t""no" 1>&6
12282
12283 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12284
12285 fi
12286
12287
12288 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12289 echo "configure:12290: checking if w32api has good enough MSIE support" >&5
12290 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12291 echo $ac_n "(cached) $ac_c" 1>&6
12292 else
12293
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12296 "configure"
12296 #include "confdefs.h"
12297 #include <w32api.h>
12298 int main() {
12299
12300 #define wxCHECK_W32API_VERSION( major, minor ) \
12301 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12302 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12303 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12304
12305 #if !wxCHECK_W32API_VERSION(1,1)
12306 #error You need w32api 1.1 or newer
12307 #endif
12308
12309 ; return 0; }
12310 EOF
12311 if { (eval echo configure:12312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12312 rm -rf conftest*
12313
12314 wx_cv_w32api_win32_ie=yes
12315
12316 else
12317 echo "configure: failed program was:" >&5
12318 cat conftest.$ac_ext >&5
12319 rm -rf conftest*
12320
12321 wx_cv_w32api_win32_ie=no
12322
12323 fi
12324 rm -f conftest*
12325
12326 fi
12327
12328 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12329 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12330 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12331 fi
12332
12333 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12334
12335 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12336 LIBS="$LIBS -loleacc"
12337 fi
12338
12339 case "${host}" in
12340 *-*-cygwin* )
12341 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12342 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12343 esac
12344
12345 if test "$wxUSE_ODBC" = "sys" ; then
12346 wxUSE_ODBC = "yes"
12347 fi
12348 if test "$wxUSE_ODBC" = "yes" ; then
12349 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12350 cat >> confdefs.h <<\EOF
12351 #define wxUSE_ODBC 1
12352 EOF
12353
12354 fi
12355
12356 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12357 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12358
12359 WIN32INSTALL=win32install
12360 fi
12361
12362 if test "$USE_DARWIN" = 1; then
12363 if test "$wxUSE_PRECOMP" = "yes"; then
12364 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12365 else
12366 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12367 fi
12368 fi
12369
12370 if test "$wxUSE_GUI" = "yes"; then
12371 USE_GUI=1
12372
12373 GUI_TK_LIBRARY=
12374
12375 WXGTK12=
12376 WXGTK127=
12377 WXGTK20=
12378
12379 if test "$wxUSE_MSW" = 1 ; then
12380 TOOLKIT=MSW
12381 GUIDIST=MSW_DIST
12382
12383 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12384 fi
12385
12386 if test "$wxUSE_GTK" = 1; then
12387 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12388 echo "configure:12389: checking for GTK+ version" >&5
12389
12390 gtk_version_cached=1
12391 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12392 echo $ac_n "(cached) $ac_c" 1>&6
12393 else
12394
12395 gtk_version_cached=0
12396 echo "$ac_t""" 1>&6
12397
12398 GTK_MODULES=
12399 if test "$wxUSE_THREADS" = "yes"; then
12400 GTK_MODULES=gthread
12401 fi
12402
12403 wx_cv_lib_gtk=
12404 if test "x$wxUSE_GTK2" = "xyes"; then
12405 # Check whether --enable-gtktest or --disable-gtktest was given.
12406 if test "${enable_gtktest+set}" = set; then
12407 enableval="$enable_gtktest"
12408 :
12409 else
12410 enable_gtktest=yes
12411 fi
12412
12413
12414 pkg_config_args=gtk+-2.0
12415 for module in . $GTK_MODULES
12416 do
12417 case "$module" in
12418 gthread)
12419 pkg_config_args="$pkg_config_args gthread-2.0"
12420 ;;
12421 esac
12422 done
12423
12424 no_gtk=""
12425
12426 # Extract the first word of "pkg-config", so it can be a program name with args.
12427 set dummy pkg-config; ac_word=$2
12428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12429 echo "configure:12430: checking for $ac_word" >&5
12430 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12431 echo $ac_n "(cached) $ac_c" 1>&6
12432 else
12433 case "$PKG_CONFIG" in
12434 /*)
12435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12436 ;;
12437 ?:/*)
12438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12439 ;;
12440 *)
12441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12442 ac_dummy="$PATH"
12443 for ac_dir in $ac_dummy; do
12444 test -z "$ac_dir" && ac_dir=.
12445 if test -f $ac_dir/$ac_word; then
12446 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12447 break
12448 fi
12449 done
12450 IFS="$ac_save_ifs"
12451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12452 ;;
12453 esac
12454 fi
12455 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12456 if test -n "$PKG_CONFIG"; then
12457 echo "$ac_t""$PKG_CONFIG" 1>&6
12458 else
12459 echo "$ac_t""no" 1>&6
12460 fi
12461
12462
12463 if test x$PKG_CONFIG != xno ; then
12464 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12465 :
12466 else
12467 echo *** pkg-config too old; version 0.7 or better required.
12468 no_gtk=yes
12469 PKG_CONFIG=no
12470 fi
12471 else
12472 no_gtk=yes
12473 fi
12474
12475 min_gtk_version=2.0.0
12476 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12477 echo "configure:12478: checking for GTK+ - version >= $min_gtk_version" >&5
12478
12479 if test x$PKG_CONFIG != xno ; then
12480 ## don't try to run the test against uninstalled libtool libs
12481 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12482 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12483 enable_gtktest=no
12484 fi
12485
12486 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12487 :
12488 else
12489 no_gtk=yes
12490 fi
12491 fi
12492
12493 if test x"$no_gtk" = x ; then
12494 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12495 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12496 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12497 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12498 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12499 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12500 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12501 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12502 if test "x$enable_gtktest" = "xyes" ; then
12503 ac_save_CFLAGS="$CFLAGS"
12504 ac_save_LIBS="$LIBS"
12505 CFLAGS="$CFLAGS $GTK_CFLAGS"
12506 LIBS="$GTK_LIBS $LIBS"
12507 rm -f conf.gtktest
12508 if test "$cross_compiling" = yes; then
12509 echo $ac_n "cross compiling; assumed OK... $ac_c"
12510 else
12511 cat > conftest.$ac_ext <<EOF
12512 #line 12513 "configure"
12513 #include "confdefs.h"
12514
12515 #include <gtk/gtk.h>
12516 #include <stdio.h>
12517 #include <stdlib.h>
12518
12519 int
12520 main ()
12521 {
12522 int major, minor, micro;
12523 char *tmp_version;
12524
12525 system ("touch conf.gtktest");
12526
12527 /* HP/UX 9 (%@#!) writes to sscanf strings */
12528 tmp_version = g_strdup("$min_gtk_version");
12529 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12530 printf("%s, bad version string\n", "$min_gtk_version");
12531 exit(1);
12532 }
12533
12534 if ((gtk_major_version != $gtk_config_major_version) ||
12535 (gtk_minor_version != $gtk_config_minor_version) ||
12536 (gtk_micro_version != $gtk_config_micro_version))
12537 {
12538 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12539 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12540 gtk_major_version, gtk_minor_version, gtk_micro_version);
12541 printf ("*** was found! If pkg-config was correct, then it is best\n");
12542 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12543 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12544 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12545 printf("*** required on your system.\n");
12546 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12547 printf("*** to point to the correct configuration files\n");
12548 }
12549 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12550 (gtk_minor_version != GTK_MINOR_VERSION) ||
12551 (gtk_micro_version != GTK_MICRO_VERSION))
12552 {
12553 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12554 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12555 printf("*** library (version %d.%d.%d)\n",
12556 gtk_major_version, gtk_minor_version, gtk_micro_version);
12557 }
12558 else
12559 {
12560 if ((gtk_major_version > major) ||
12561 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12562 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12563 {
12564 return 0;
12565 }
12566 else
12567 {
12568 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12569 gtk_major_version, gtk_minor_version, gtk_micro_version);
12570 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12571 major, minor, micro);
12572 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12573 printf("***\n");
12574 printf("*** If you have already installed a sufficiently new version, this error\n");
12575 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12576 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12577 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12578 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12579 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12580 printf("*** so that the correct libraries are found at run-time))\n");
12581 }
12582 }
12583 return 1;
12584 }
12585
12586 EOF
12587 if { (eval echo configure:12588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12588 then
12589 :
12590 else
12591 echo "configure: failed program was:" >&5
12592 cat conftest.$ac_ext >&5
12593 rm -fr conftest*
12594 no_gtk=yes
12595 fi
12596 rm -fr conftest*
12597 fi
12598
12599 CFLAGS="$ac_save_CFLAGS"
12600 LIBS="$ac_save_LIBS"
12601 fi
12602 fi
12603 if test "x$no_gtk" = x ; then
12604 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12605 wx_cv_lib_gtk=2.0
12606 else
12607 echo "$ac_t""no" 1>&6
12608 if test "$PKG_CONFIG" = "no" ; then
12609 echo "*** A new enough version of pkg-config was not found."
12610 echo "*** See http://pkgconfig.sourceforge.net"
12611 else
12612 if test -f conf.gtktest ; then
12613 :
12614 else
12615 echo "*** Could not run GTK+ test program, checking why..."
12616 ac_save_CFLAGS="$CFLAGS"
12617 ac_save_LIBS="$LIBS"
12618 CFLAGS="$CFLAGS $GTK_CFLAGS"
12619 LIBS="$LIBS $GTK_LIBS"
12620 cat > conftest.$ac_ext <<EOF
12621 #line 12622 "configure"
12622 #include "confdefs.h"
12623
12624 #include <gtk/gtk.h>
12625 #include <stdio.h>
12626
12627 int main() {
12628 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12629 ; return 0; }
12630 EOF
12631 if { (eval echo configure:12632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12632 rm -rf conftest*
12633 echo "*** The test program compiled, but did not run. This usually means"
12634 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12635 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12636 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12637 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12638 echo "*** is required on your system"
12639 echo "***"
12640 echo "*** If you have an old version installed, it is best to remove it, although"
12641 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12642 else
12643 echo "configure: failed program was:" >&5
12644 cat conftest.$ac_ext >&5
12645 rm -rf conftest*
12646 echo "*** The test program failed to compile or link. See the file config.log for the"
12647 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12648 fi
12649 rm -f conftest*
12650 CFLAGS="$ac_save_CFLAGS"
12651 LIBS="$ac_save_LIBS"
12652 fi
12653 fi
12654 GTK_CFLAGS=""
12655 GTK_LIBS=""
12656 :
12657 fi
12658
12659
12660 rm -f conf.gtktest
12661
12662 else
12663 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12664 if test "${with_gtk_prefix+set}" = set; then
12665 withval="$with_gtk_prefix"
12666 gtk_config_prefix="$withval"
12667 else
12668 gtk_config_prefix=""
12669 fi
12670
12671 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12672 if test "${with_gtk_exec_prefix+set}" = set; then
12673 withval="$with_gtk_exec_prefix"
12674 gtk_config_exec_prefix="$withval"
12675 else
12676 gtk_config_exec_prefix=""
12677 fi
12678
12679 # Check whether --enable-gtktest or --disable-gtktest was given.
12680 if test "${enable_gtktest+set}" = set; then
12681 enableval="$enable_gtktest"
12682 :
12683 else
12684 enable_gtktest=yes
12685 fi
12686
12687
12688 for module in . $GTK_MODULES
12689 do
12690 case "$module" in
12691 gthread)
12692 gtk_config_args="$gtk_config_args gthread"
12693 ;;
12694 esac
12695 done
12696
12697 if test x$gtk_config_exec_prefix != x ; then
12698 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12699 if test x${GTK_CONFIG+set} != xset ; then
12700 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12701 fi
12702 fi
12703 if test x$gtk_config_prefix != x ; then
12704 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12705 if test x${GTK_CONFIG+set} != xset ; then
12706 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12707 fi
12708 fi
12709
12710 # Extract the first word of "gtk-config", so it can be a program name with args.
12711 set dummy gtk-config; ac_word=$2
12712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12713 echo "configure:12714: checking for $ac_word" >&5
12714 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12715 echo $ac_n "(cached) $ac_c" 1>&6
12716 else
12717 case "$GTK_CONFIG" in
12718 /*)
12719 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12720 ;;
12721 ?:/*)
12722 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12723 ;;
12724 *)
12725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12726 ac_dummy="$PATH"
12727 for ac_dir in $ac_dummy; do
12728 test -z "$ac_dir" && ac_dir=.
12729 if test -f $ac_dir/$ac_word; then
12730 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12731 break
12732 fi
12733 done
12734 IFS="$ac_save_ifs"
12735 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12736 ;;
12737 esac
12738 fi
12739 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12740 if test -n "$GTK_CONFIG"; then
12741 echo "$ac_t""$GTK_CONFIG" 1>&6
12742 else
12743 echo "$ac_t""no" 1>&6
12744 fi
12745
12746 min_gtk_version=1.2.7
12747 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12748 echo "configure:12749: checking for GTK - version >= $min_gtk_version" >&5
12749 no_gtk=""
12750 if test "$GTK_CONFIG" = "no" ; then
12751 no_gtk=yes
12752 else
12753 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12754 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12755 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12756 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12757 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12758 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12759 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12760 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12761 if test "x$enable_gtktest" = "xyes" ; then
12762 ac_save_CFLAGS="$CFLAGS"
12763 ac_save_LIBS="$LIBS"
12764 CFLAGS="$CFLAGS $GTK_CFLAGS"
12765 LIBS="$GTK_LIBS $LIBS"
12766 rm -f conf.gtktest
12767 if test "$cross_compiling" = yes; then
12768 echo $ac_n "cross compiling; assumed OK... $ac_c"
12769 else
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12773
12774 #include <gtk/gtk.h>
12775 #include <stdio.h>
12776 #include <stdlib.h>
12777
12778 int
12779 main ()
12780 {
12781 int major, minor, micro;
12782 char *tmp_version;
12783
12784 system ("touch conf.gtktest");
12785
12786 /* HP/UX 9 (%@#!) writes to sscanf strings */
12787 tmp_version = g_strdup("$min_gtk_version");
12788 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12789 printf("%s, bad version string\n", "$min_gtk_version");
12790 exit(1);
12791 }
12792
12793 if ((gtk_major_version != $gtk_config_major_version) ||
12794 (gtk_minor_version != $gtk_config_minor_version) ||
12795 (gtk_micro_version != $gtk_config_micro_version))
12796 {
12797 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12798 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12799 gtk_major_version, gtk_minor_version, gtk_micro_version);
12800 printf ("*** was found! If gtk-config was correct, then it is best\n");
12801 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12802 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12803 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12804 printf("*** required on your system.\n");
12805 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12806 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12807 printf("*** before re-running configure\n");
12808 }
12809 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12810 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12811 (gtk_minor_version != GTK_MINOR_VERSION) ||
12812 (gtk_micro_version != GTK_MICRO_VERSION))
12813 {
12814 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12815 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12816 printf("*** library (version %d.%d.%d)\n",
12817 gtk_major_version, gtk_minor_version, gtk_micro_version);
12818 }
12819 #endif /* defined (GTK_MAJOR_VERSION) ... */
12820 else
12821 {
12822 if ((gtk_major_version > major) ||
12823 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12824 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12825 {
12826 return 0;
12827 }
12828 else
12829 {
12830 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12831 gtk_major_version, gtk_minor_version, gtk_micro_version);
12832 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12833 major, minor, micro);
12834 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12835 printf("***\n");
12836 printf("*** If you have already installed a sufficiently new version, this error\n");
12837 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12838 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12839 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12840 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12841 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12842 printf("*** so that the correct libraries are found at run-time))\n");
12843 }
12844 }
12845 return 1;
12846 }
12847
12848 EOF
12849 if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12850 then
12851 :
12852 else
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 rm -fr conftest*
12856 no_gtk=yes
12857 fi
12858 rm -fr conftest*
12859 fi
12860
12861 CFLAGS="$ac_save_CFLAGS"
12862 LIBS="$ac_save_LIBS"
12863 fi
12864 fi
12865 if test "x$no_gtk" = x ; then
12866 echo "$ac_t""yes" 1>&6
12867 wx_cv_lib_gtk=1.2.7
12868 else
12869 echo "$ac_t""no" 1>&6
12870 if test "$GTK_CONFIG" = "no" ; then
12871 echo "*** The gtk-config script installed by GTK could not be found"
12872 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12873 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12874 echo "*** full path to gtk-config."
12875 else
12876 if test -f conf.gtktest ; then
12877 :
12878 else
12879 echo "*** Could not run GTK test program, checking why..."
12880 CFLAGS="$CFLAGS $GTK_CFLAGS"
12881 LIBS="$LIBS $GTK_LIBS"
12882 cat > conftest.$ac_ext <<EOF
12883 #line 12884 "configure"
12884 #include "confdefs.h"
12885
12886 #include <gtk/gtk.h>
12887 #include <stdio.h>
12888
12889 int main() {
12890 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12891 ; return 0; }
12892 EOF
12893 if { (eval echo configure:12894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12894 rm -rf conftest*
12895 echo "*** The test program compiled, but did not run. This usually means"
12896 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12897 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12898 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12899 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12900 echo "*** is required on your system"
12901 echo "***"
12902 echo "*** If you have an old version installed, it is best to remove it, although"
12903 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12904 echo "***"
12905 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12906 echo "*** came with the system with the command"
12907 echo "***"
12908 echo "*** rpm --erase --nodeps gtk gtk-devel"
12909 else
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12912 rm -rf conftest*
12913 echo "*** The test program failed to compile or link. See the file config.log for the"
12914 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12915 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12916 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12917 fi
12918 rm -f conftest*
12919 CFLAGS="$ac_save_CFLAGS"
12920 LIBS="$ac_save_LIBS"
12921 fi
12922 fi
12923 GTK_CFLAGS=""
12924 GTK_LIBS=""
12925 :
12926 fi
12927
12928
12929 rm -f conf.gtktest
12930
12931
12932 if test -z "$wx_cv_lib_gtk"; then
12933 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12934 if test "${with_gtk_prefix+set}" = set; then
12935 withval="$with_gtk_prefix"
12936 gtk_config_prefix="$withval"
12937 else
12938 gtk_config_prefix=""
12939 fi
12940
12941 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12942 if test "${with_gtk_exec_prefix+set}" = set; then
12943 withval="$with_gtk_exec_prefix"
12944 gtk_config_exec_prefix="$withval"
12945 else
12946 gtk_config_exec_prefix=""
12947 fi
12948
12949 # Check whether --enable-gtktest or --disable-gtktest was given.
12950 if test "${enable_gtktest+set}" = set; then
12951 enableval="$enable_gtktest"
12952 :
12953 else
12954 enable_gtktest=yes
12955 fi
12956
12957
12958 for module in . $GTK_MODULES
12959 do
12960 case "$module" in
12961 gthread)
12962 gtk_config_args="$gtk_config_args gthread"
12963 ;;
12964 esac
12965 done
12966
12967 if test x$gtk_config_exec_prefix != x ; then
12968 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12969 if test x${GTK_CONFIG+set} != xset ; then
12970 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12971 fi
12972 fi
12973 if test x$gtk_config_prefix != x ; then
12974 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12975 if test x${GTK_CONFIG+set} != xset ; then
12976 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12977 fi
12978 fi
12979
12980 # Extract the first word of "gtk-config", so it can be a program name with args.
12981 set dummy gtk-config; ac_word=$2
12982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12983 echo "configure:12984: checking for $ac_word" >&5
12984 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12985 echo $ac_n "(cached) $ac_c" 1>&6
12986 else
12987 case "$GTK_CONFIG" in
12988 /*)
12989 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12990 ;;
12991 ?:/*)
12992 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12993 ;;
12994 *)
12995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12996 ac_dummy="$PATH"
12997 for ac_dir in $ac_dummy; do
12998 test -z "$ac_dir" && ac_dir=.
12999 if test -f $ac_dir/$ac_word; then
13000 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13001 break
13002 fi
13003 done
13004 IFS="$ac_save_ifs"
13005 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13006 ;;
13007 esac
13008 fi
13009 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
13010 if test -n "$GTK_CONFIG"; then
13011 echo "$ac_t""$GTK_CONFIG" 1>&6
13012 else
13013 echo "$ac_t""no" 1>&6
13014 fi
13015
13016 min_gtk_version=1.2.3
13017 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
13018 echo "configure:13019: checking for GTK - version >= $min_gtk_version" >&5
13019 no_gtk=""
13020 if test "$GTK_CONFIG" = "no" ; then
13021 no_gtk=yes
13022 else
13023 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13024 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13025 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13026 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13027 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13028 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13029 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13031 if test "x$enable_gtktest" = "xyes" ; then
13032 ac_save_CFLAGS="$CFLAGS"
13033 ac_save_LIBS="$LIBS"
13034 CFLAGS="$CFLAGS $GTK_CFLAGS"
13035 LIBS="$GTK_LIBS $LIBS"
13036 rm -f conf.gtktest
13037 if test "$cross_compiling" = yes; then
13038 echo $ac_n "cross compiling; assumed OK... $ac_c"
13039 else
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043
13044 #include <gtk/gtk.h>
13045 #include <stdio.h>
13046 #include <stdlib.h>
13047
13048 int
13049 main ()
13050 {
13051 int major, minor, micro;
13052 char *tmp_version;
13053
13054 system ("touch conf.gtktest");
13055
13056 /* HP/UX 9 (%@#!) writes to sscanf strings */
13057 tmp_version = g_strdup("$min_gtk_version");
13058 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13059 printf("%s, bad version string\n", "$min_gtk_version");
13060 exit(1);
13061 }
13062
13063 if ((gtk_major_version != $gtk_config_major_version) ||
13064 (gtk_minor_version != $gtk_config_minor_version) ||
13065 (gtk_micro_version != $gtk_config_micro_version))
13066 {
13067 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13068 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13069 gtk_major_version, gtk_minor_version, gtk_micro_version);
13070 printf ("*** was found! If gtk-config was correct, then it is best\n");
13071 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13072 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13073 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13074 printf("*** required on your system.\n");
13075 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13076 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13077 printf("*** before re-running configure\n");
13078 }
13079 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13080 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13081 (gtk_minor_version != GTK_MINOR_VERSION) ||
13082 (gtk_micro_version != GTK_MICRO_VERSION))
13083 {
13084 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13085 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13086 printf("*** library (version %d.%d.%d)\n",
13087 gtk_major_version, gtk_minor_version, gtk_micro_version);
13088 }
13089 #endif /* defined (GTK_MAJOR_VERSION) ... */
13090 else
13091 {
13092 if ((gtk_major_version > major) ||
13093 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13094 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13095 {
13096 return 0;
13097 }
13098 else
13099 {
13100 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13101 gtk_major_version, gtk_minor_version, gtk_micro_version);
13102 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13103 major, minor, micro);
13104 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13105 printf("***\n");
13106 printf("*** If you have already installed a sufficiently new version, this error\n");
13107 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13108 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13109 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13110 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13111 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13112 printf("*** so that the correct libraries are found at run-time))\n");
13113 }
13114 }
13115 return 1;
13116 }
13117
13118 EOF
13119 if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13120 then
13121 :
13122 else
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13125 rm -fr conftest*
13126 no_gtk=yes
13127 fi
13128 rm -fr conftest*
13129 fi
13130
13131 CFLAGS="$ac_save_CFLAGS"
13132 LIBS="$ac_save_LIBS"
13133 fi
13134 fi
13135 if test "x$no_gtk" = x ; then
13136 echo "$ac_t""yes" 1>&6
13137 wx_cv_lib_gtk=1.2.3
13138 else
13139 echo "$ac_t""no" 1>&6
13140 if test "$GTK_CONFIG" = "no" ; then
13141 echo "*** The gtk-config script installed by GTK could not be found"
13142 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13143 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13144 echo "*** full path to gtk-config."
13145 else
13146 if test -f conf.gtktest ; then
13147 :
13148 else
13149 echo "*** Could not run GTK test program, checking why..."
13150 CFLAGS="$CFLAGS $GTK_CFLAGS"
13151 LIBS="$LIBS $GTK_LIBS"
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155
13156 #include <gtk/gtk.h>
13157 #include <stdio.h>
13158
13159 int main() {
13160 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13161 ; return 0; }
13162 EOF
13163 if { (eval echo configure:13164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13164 rm -rf conftest*
13165 echo "*** The test program compiled, but did not run. This usually means"
13166 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13167 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13168 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13169 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13170 echo "*** is required on your system"
13171 echo "***"
13172 echo "*** If you have an old version installed, it is best to remove it, although"
13173 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13174 echo "***"
13175 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13176 echo "*** came with the system with the command"
13177 echo "***"
13178 echo "*** rpm --erase --nodeps gtk gtk-devel"
13179 else
13180 echo "configure: failed program was:" >&5
13181 cat conftest.$ac_ext >&5
13182 rm -rf conftest*
13183 echo "*** The test program failed to compile or link. See the file config.log for the"
13184 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13185 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13186 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13187 fi
13188 rm -f conftest*
13189 CFLAGS="$ac_save_CFLAGS"
13190 LIBS="$ac_save_LIBS"
13191 fi
13192 fi
13193 GTK_CFLAGS=""
13194 GTK_LIBS=""
13195 :
13196 fi
13197
13198
13199 rm -f conf.gtktest
13200
13201 fi
13202 fi
13203
13204 if test -z "$wx_cv_lib_gtk"; then
13205 wx_cv_lib_gtk=none
13206 else
13207 wx_cv_cflags_gtk=$GTK_CFLAGS
13208 wx_cv_libs_gtk=$GTK_LIBS
13209 fi
13210
13211
13212 fi
13213
13214
13215 if test "$gtk_version_cached" = 1; then
13216 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13217 fi
13218
13219 case "$wx_cv_lib_gtk" in
13220 2.0) WXGTK20=1
13221 TOOLKIT_VERSION=2
13222 ;;
13223 1.2.7) WXGTK127=1
13224 WXGTK12=1
13225 ;;
13226 1.2.3) WXGTK12=1
13227 ;;
13228 *) { echo "configure: error:
13229 Please check that gtk-config is in path, the directory
13230 where GTK+ libraries are installed (returned by
13231 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13232 equivalent variable and GTK+ is version 1.2.3 or above.
13233 " 1>&2; exit 1; }
13234 ;;
13235 esac
13236
13237 if test "$WXGTK20" = 1; then
13238 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13239
13240 succeeded=no
13241
13242 if test -z "$PKG_CONFIG"; then
13243 # Extract the first word of "pkg-config", so it can be a program name with args.
13244 set dummy pkg-config; ac_word=$2
13245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13246 echo "configure:13247: checking for $ac_word" >&5
13247 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13248 echo $ac_n "(cached) $ac_c" 1>&6
13249 else
13250 case "$PKG_CONFIG" in
13251 /*)
13252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13253 ;;
13254 ?:/*)
13255 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13256 ;;
13257 *)
13258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13259 ac_dummy="$PATH"
13260 for ac_dir in $ac_dummy; do
13261 test -z "$ac_dir" && ac_dir=.
13262 if test -f $ac_dir/$ac_word; then
13263 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13264 break
13265 fi
13266 done
13267 IFS="$ac_save_ifs"
13268 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13269 ;;
13270 esac
13271 fi
13272 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13273 if test -n "$PKG_CONFIG"; then
13274 echo "$ac_t""$PKG_CONFIG" 1>&6
13275 else
13276 echo "$ac_t""no" 1>&6
13277 fi
13278
13279 fi
13280
13281 if test "$PKG_CONFIG" = "no" ; then
13282 echo "*** The pkg-config script could not be found. Make sure it is"
13283 echo "*** in your path, or set the PKG_CONFIG environment variable"
13284 echo "*** to the full path to pkg-config."
13285 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13286 else
13287 PKG_CONFIG_MIN_VERSION=0.9.0
13288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13289 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13290 echo "configure:13291: checking for pangoft2" >&5
13291
13292 if $PKG_CONFIG --exists "pangoft2" ; then
13293 echo "$ac_t""yes" 1>&6
13294 succeeded=yes
13295
13296 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13297 echo "configure:13298: checking PANGOFT2_CFLAGS" >&5
13298 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13299 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13300
13301 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13302 echo "configure:13303: checking PANGOFT2_LIBS" >&5
13303 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13304 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13305 else
13306 PANGOFT2_CFLAGS=""
13307 PANGOFT2_LIBS=""
13308 ## If we have a custom action on failure, don't print errors, but
13309 ## do set a variable so people can do so.
13310 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13311
13312 fi
13313
13314
13315
13316 else
13317 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13318 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13319 fi
13320 fi
13321
13322 if test $succeeded = yes; then
13323
13324 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13325 LIBS="$LIBS $PANGOFT2_LIBS"
13326
13327 else
13328
13329 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13330 wxUSE_PRINTING_ARCHITECTURE="no"
13331
13332
13333 fi
13334
13335 fi
13336 else
13337 if test "$wxUSE_UNICODE" = "yes"; then
13338 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13339 wxUSE_UNICODE=no
13340 fi
13341 fi
13342
13343 if test "$USE_DARWIN" != 1; then
13344 for ac_func in poll
13345 do
13346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13347 echo "configure:13348: checking for $ac_func" >&5
13348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13349 echo $ac_n "(cached) $ac_c" 1>&6
13350 else
13351 cat > conftest.$ac_ext <<EOF
13352 #line 13353 "configure"
13353 #include "confdefs.h"
13354 /* System header to define __stub macros and hopefully few prototypes,
13355 which can conflict with char $ac_func(); below. */
13356 #include <assert.h>
13357 /* Override any gcc2 internal prototype to avoid an error. */
13358 /* We use char because int might match the return type of a gcc2
13359 builtin and then its argument prototype would still apply. */
13360 char $ac_func();
13361
13362 int main() {
13363
13364 /* The GNU C library defines this for functions which it implements
13365 to always fail with ENOSYS. Some functions are actually named
13366 something starting with __ and the normal name is an alias. */
13367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13368 choke me
13369 #else
13370 $ac_func();
13371 #endif
13372
13373 ; return 0; }
13374 EOF
13375 if { (eval echo configure:13376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13376 rm -rf conftest*
13377 eval "ac_cv_func_$ac_func=yes"
13378 else
13379 echo "configure: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 rm -rf conftest*
13382 eval "ac_cv_func_$ac_func=no"
13383 fi
13384 rm -f conftest*
13385 fi
13386
13387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13390 cat >> confdefs.h <<EOF
13391 #define $ac_tr_func 1
13392 EOF
13393
13394 else
13395 echo "$ac_t""no" 1>&6
13396 fi
13397 done
13398
13399 fi
13400
13401 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13402 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13403
13404 AFMINSTALL=afminstall
13405 TOOLKIT=GTK
13406 GUIDIST=GTK_DIST
13407
13408 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13409 echo "configure:13410: checking for gdk_im_open in -lgdk" >&5
13410 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13412 echo $ac_n "(cached) $ac_c" 1>&6
13413 else
13414 ac_save_LIBS="$LIBS"
13415 LIBS="-lgdk $LIBS"
13416 cat > conftest.$ac_ext <<EOF
13417 #line 13418 "configure"
13418 #include "confdefs.h"
13419 /* Override any gcc2 internal prototype to avoid an error. */
13420 /* We use char because int might match the return type of a gcc2
13421 builtin and then its argument prototype would still apply. */
13422 char gdk_im_open();
13423
13424 int main() {
13425 gdk_im_open()
13426 ; return 0; }
13427 EOF
13428 if { (eval echo configure:13429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13429 rm -rf conftest*
13430 eval "ac_cv_lib_$ac_lib_var=yes"
13431 else
13432 echo "configure: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13434 rm -rf conftest*
13435 eval "ac_cv_lib_$ac_lib_var=no"
13436 fi
13437 rm -f conftest*
13438 LIBS="$ac_save_LIBS"
13439
13440 fi
13441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13442 echo "$ac_t""yes" 1>&6
13443 cat >> confdefs.h <<\EOF
13444 #define HAVE_XIM 1
13445 EOF
13446
13447 else
13448 echo "$ac_t""no" 1>&6
13449 fi
13450
13451 fi
13452
13453 if test "$wxUSE_MGL" = 1; then
13454 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13455 echo "configure:13456: checking for SciTech MGL library" >&5
13456 if test "x$MGL_ROOT" = x ; then
13457 echo "$ac_t""not found" 1>&6
13458 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13459 else
13460 echo "$ac_t""$MGL_ROOT" 1>&6
13461 fi
13462
13463 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13464 echo "configure:13465: checking for libmgl location" >&5
13465 case "${host}" in
13466 *-*-linux* )
13467 if test "x$wxUSE_SHARED" = xyes ; then
13468 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13469 else
13470 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13471 fi
13472 ;;
13473 *-pc-msdosdjgpp )
13474 mgl_os_candidates="dos32/dj2"
13475 ;;
13476 *)
13477 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13478 esac
13479
13480 mgl_lib_type=""
13481 mgl_os=""
13482
13483 for mgl_os_i in $mgl_os_candidates ; do
13484 if test "x$mgl_os" = x ; then
13485 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13486 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13487 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13488 mgl_lib_type=debug
13489 mgl_os=$mgl_os_i
13490 fi
13491 fi
13492 if test "x$mgl_lib_type" = x ; then
13493 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13494 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13495 mgl_lib_type=release
13496 mgl_os=$mgl_os_i
13497 fi
13498 fi
13499 fi
13500 done
13501
13502 if test "x$mgl_os" = x ; then
13503 echo "$ac_t""not found" 1>&6
13504 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13505 fi
13506 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13507
13508 wxUSE_UNIVERSAL="yes"
13509
13510 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13511 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13512
13513 AFMINSTALL=afminstall
13514 TOOLKIT=MGL
13515 GUIDIST=MGL_DIST
13516 fi
13517
13518 if test "$wxUSE_MICROWIN" = 1; then
13519 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13520 echo "configure:13521: checking for MicroWindows" >&5
13521 if test "x$MICROWINDOWS" = x ; then
13522 echo "$ac_t""not found" 1>&6
13523 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13524 else
13525 echo "$ac_t""$MICROWINDOWS" 1>&6
13526 fi
13527
13528 if test -f $MICROWINDOWS/lib/libmwin.a; then
13529 echo "$ac_t""MicroWindows' libraries found." 1>&6
13530 else
13531 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13532 fi
13533
13534 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13535 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13536
13537 wxUSE_UNIVERSAL="yes"
13538
13539 AFMINSTALL=afminstall
13540 TOOLKIT=MICROWIN
13541 GUIDIST=MICROWIN_DIST
13542
13543 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13544 fi
13545
13546 if test "$wxUSE_X11" = 1; then
13547 # If we find X, set shell vars x_includes and x_libraries to the
13548 # paths, otherwise set no_x=yes.
13549 # Uses ac_ vars as temps to allow command line to override cache and checks.
13550 # --without-x overrides everything else, but does not touch the cache.
13551 echo $ac_n "checking for X""... $ac_c" 1>&6
13552 echo "configure:13553: checking for X" >&5
13553
13554 # Check whether --with-x or --without-x was given.
13555 if test "${with_x+set}" = set; then
13556 withval="$with_x"
13557 :
13558 fi
13559
13560 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13561 if test "x$with_x" = xno; then
13562 # The user explicitly disabled X.
13563 have_x=disabled
13564 else
13565 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13566 # Both variables are already set.
13567 have_x=yes
13568 else
13569 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13571 else
13572 # One or both of the vars are not set, and there is no cached value.
13573 ac_x_includes=NO ac_x_libraries=NO
13574 rm -fr conftestdir
13575 if mkdir conftestdir; then
13576 cd conftestdir
13577 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13578 cat > Imakefile <<'EOF'
13579 acfindx:
13580 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13581 EOF
13582 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13584 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13585 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13586 for ac_extension in a so sl; do
13587 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13588 test -f $ac_im_libdir/libX11.$ac_extension; then
13589 ac_im_usrlibdir=$ac_im_libdir; break
13590 fi
13591 done
13592 # Screen out bogus values from the imake configuration. They are
13593 # bogus both because they are the default anyway, and because
13594 # using them would break gcc on systems where it needs fixed includes.
13595 case "$ac_im_incroot" in
13596 /usr/include) ;;
13597 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13598 esac
13599 case "$ac_im_usrlibdir" in
13600 /usr/lib | /lib) ;;
13601 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13602 esac
13603 fi
13604 cd ..
13605 rm -fr conftestdir
13606 fi
13607
13608 if test "$ac_x_includes" = NO; then
13609 # Guess where to find include files, by looking for this one X11 .h file.
13610 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13611
13612 # First, try using that file with no special directory specified.
13613 cat > conftest.$ac_ext <<EOF
13614 #line 13615 "configure"
13615 #include "confdefs.h"
13616 #include <$x_direct_test_include>
13617 EOF
13618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13619 { (eval echo configure:13620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13621 if test -z "$ac_err"; then
13622 rm -rf conftest*
13623 # We can compile using X headers with no special include directory.
13624 ac_x_includes=
13625 else
13626 echo "$ac_err" >&5
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13629 rm -rf conftest*
13630 # Look for the header file in a standard set of common directories.
13631 # Check X11 before X11Rn because it is often a symlink to the current release.
13632 for ac_dir in \
13633 /usr/X11/include \
13634 /usr/X11R6/include \
13635 /usr/X11R5/include \
13636 /usr/X11R4/include \
13637 \
13638 /usr/include/X11 \
13639 /usr/include/X11R6 \
13640 /usr/include/X11R5 \
13641 /usr/include/X11R4 \
13642 \
13643 /usr/local/X11/include \
13644 /usr/local/X11R6/include \
13645 /usr/local/X11R5/include \
13646 /usr/local/X11R4/include \
13647 \
13648 /usr/local/include/X11 \
13649 /usr/local/include/X11R6 \
13650 /usr/local/include/X11R5 \
13651 /usr/local/include/X11R4 \
13652 \
13653 /usr/X386/include \
13654 /usr/x386/include \
13655 /usr/XFree86/include/X11 \
13656 \
13657 /usr/include \
13658 /usr/local/include \
13659 /usr/unsupported/include \
13660 /usr/athena/include \
13661 /usr/local/x11r5/include \
13662 /usr/lpp/Xamples/include \
13663 \
13664 /usr/openwin/include \
13665 /usr/openwin/share/include \
13666 ; \
13667 do
13668 if test -r "$ac_dir/$x_direct_test_include"; then
13669 ac_x_includes=$ac_dir
13670 break
13671 fi
13672 done
13673 fi
13674 rm -f conftest*
13675 fi # $ac_x_includes = NO
13676
13677 if test "$ac_x_libraries" = NO; then
13678 # Check for the libraries.
13679
13680 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13681 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13682
13683 # See if we find them without any special options.
13684 # Don't add to $LIBS permanently.
13685 ac_save_LIBS="$LIBS"
13686 LIBS="-l$x_direct_test_library $LIBS"
13687 cat > conftest.$ac_ext <<EOF
13688 #line 13689 "configure"
13689 #include "confdefs.h"
13690
13691 int main() {
13692 ${x_direct_test_function}()
13693 ; return 0; }
13694 EOF
13695 if { (eval echo configure:13696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13696 rm -rf conftest*
13697 LIBS="$ac_save_LIBS"
13698 # We can link X programs with no special library path.
13699 ac_x_libraries=
13700 else
13701 echo "configure: failed program was:" >&5
13702 cat conftest.$ac_ext >&5
13703 rm -rf conftest*
13704 LIBS="$ac_save_LIBS"
13705 # First see if replacing the include by lib works.
13706 # Check X11 before X11Rn because it is often a symlink to the current release.
13707 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13708 /usr/X11/lib \
13709 /usr/X11R6/lib \
13710 /usr/X11R5/lib \
13711 /usr/X11R4/lib \
13712 \
13713 /usr/lib/X11 \
13714 /usr/lib/X11R6 \
13715 /usr/lib/X11R5 \
13716 /usr/lib/X11R4 \
13717 \
13718 /usr/local/X11/lib \
13719 /usr/local/X11R6/lib \
13720 /usr/local/X11R5/lib \
13721 /usr/local/X11R4/lib \
13722 \
13723 /usr/local/lib/X11 \
13724 /usr/local/lib/X11R6 \
13725 /usr/local/lib/X11R5 \
13726 /usr/local/lib/X11R4 \
13727 \
13728 /usr/X386/lib \
13729 /usr/x386/lib \
13730 /usr/XFree86/lib/X11 \
13731 \
13732 /usr/lib \
13733 /usr/local/lib \
13734 /usr/unsupported/lib \
13735 /usr/athena/lib \
13736 /usr/local/x11r5/lib \
13737 /usr/lpp/Xamples/lib \
13738 /lib/usr/lib/X11 \
13739 \
13740 /usr/openwin/lib \
13741 /usr/openwin/share/lib \
13742 ; \
13743 do
13744 for ac_extension in a so sl; do
13745 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13746 ac_x_libraries=$ac_dir
13747 break 2
13748 fi
13749 done
13750 done
13751 fi
13752 rm -f conftest*
13753 fi # $ac_x_libraries = NO
13754
13755 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13756 # Didn't find X anywhere. Cache the known absence of X.
13757 ac_cv_have_x="have_x=no"
13758 else
13759 # Record where we found X for the cache.
13760 ac_cv_have_x="have_x=yes \
13761 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13762 fi
13763 fi
13764 fi
13765 eval "$ac_cv_have_x"
13766 fi # $with_x != no
13767
13768 if test "$have_x" != yes; then
13769 echo "$ac_t""$have_x" 1>&6
13770 no_x=yes
13771 else
13772 # If each of the values was on the command line, it overrides each guess.
13773 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13774 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13775 # Update the cache value to reflect the command line values.
13776 ac_cv_have_x="have_x=yes \
13777 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13778 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13779 fi
13780
13781 if test "$no_x" = yes; then
13782 # Not all programs may use this symbol, but it does not hurt to define it.
13783 cat >> confdefs.h <<\EOF
13784 #define X_DISPLAY_MISSING 1
13785 EOF
13786
13787 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13788 else
13789 if test -n "$x_includes"; then
13790 X_CFLAGS="$X_CFLAGS -I$x_includes"
13791 fi
13792
13793 # It would also be nice to do this for all -L options, not just this one.
13794 if test -n "$x_libraries"; then
13795 X_LIBS="$X_LIBS -L$x_libraries"
13796 # For Solaris; some versions of Sun CC require a space after -R and
13797 # others require no space. Words are not sufficient . . . .
13798 case "`(uname -sr) 2>/dev/null`" in
13799 "SunOS 5"*)
13800 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13801 echo "configure:13802: checking whether -R must be followed by a space" >&5
13802 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13803 cat > conftest.$ac_ext <<EOF
13804 #line 13805 "configure"
13805 #include "confdefs.h"
13806
13807 int main() {
13808
13809 ; return 0; }
13810 EOF
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13812 rm -rf conftest*
13813 ac_R_nospace=yes
13814 else
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 rm -rf conftest*
13818 ac_R_nospace=no
13819 fi
13820 rm -f conftest*
13821 if test $ac_R_nospace = yes; then
13822 echo "$ac_t""no" 1>&6
13823 X_LIBS="$X_LIBS -R$x_libraries"
13824 else
13825 LIBS="$ac_xsave_LIBS -R $x_libraries"
13826 cat > conftest.$ac_ext <<EOF
13827 #line 13828 "configure"
13828 #include "confdefs.h"
13829
13830 int main() {
13831
13832 ; return 0; }
13833 EOF
13834 if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13835 rm -rf conftest*
13836 ac_R_space=yes
13837 else
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13840 rm -rf conftest*
13841 ac_R_space=no
13842 fi
13843 rm -f conftest*
13844 if test $ac_R_space = yes; then
13845 echo "$ac_t""yes" 1>&6
13846 X_LIBS="$X_LIBS -R $x_libraries"
13847 else
13848 echo "$ac_t""neither works" 1>&6
13849 fi
13850 fi
13851 LIBS="$ac_xsave_LIBS"
13852 esac
13853 fi
13854
13855 # Check for system-dependent libraries X programs must link with.
13856 # Do this before checking for the system-independent R6 libraries
13857 # (-lICE), since we may need -lsocket or whatever for X linking.
13858
13859 if test "$ISC" = yes; then
13860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13861 else
13862 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13863 # libraries were built with DECnet support. And karl@cs.umb.edu says
13864 # the Alpha needs dnet_stub (dnet does not exist).
13865 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13866 echo "configure:13867: checking for dnet_ntoa in -ldnet" >&5
13867 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13869 echo $ac_n "(cached) $ac_c" 1>&6
13870 else
13871 ac_save_LIBS="$LIBS"
13872 LIBS="-ldnet $LIBS"
13873 cat > conftest.$ac_ext <<EOF
13874 #line 13875 "configure"
13875 #include "confdefs.h"
13876 /* Override any gcc2 internal prototype to avoid an error. */
13877 /* We use char because int might match the return type of a gcc2
13878 builtin and then its argument prototype would still apply. */
13879 char dnet_ntoa();
13880
13881 int main() {
13882 dnet_ntoa()
13883 ; return 0; }
13884 EOF
13885 if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13886 rm -rf conftest*
13887 eval "ac_cv_lib_$ac_lib_var=yes"
13888 else
13889 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 rm -rf conftest*
13892 eval "ac_cv_lib_$ac_lib_var=no"
13893 fi
13894 rm -f conftest*
13895 LIBS="$ac_save_LIBS"
13896
13897 fi
13898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13899 echo "$ac_t""yes" 1>&6
13900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13901 else
13902 echo "$ac_t""no" 1>&6
13903 fi
13904
13905 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13906 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13907 echo "configure:13908: checking for dnet_ntoa in -ldnet_stub" >&5
13908 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13910 echo $ac_n "(cached) $ac_c" 1>&6
13911 else
13912 ac_save_LIBS="$LIBS"
13913 LIBS="-ldnet_stub $LIBS"
13914 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure"
13916 #include "confdefs.h"
13917 /* Override any gcc2 internal prototype to avoid an error. */
13918 /* We use char because int might match the return type of a gcc2
13919 builtin and then its argument prototype would still apply. */
13920 char dnet_ntoa();
13921
13922 int main() {
13923 dnet_ntoa()
13924 ; return 0; }
13925 EOF
13926 if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13927 rm -rf conftest*
13928 eval "ac_cv_lib_$ac_lib_var=yes"
13929 else
13930 echo "configure: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13932 rm -rf conftest*
13933 eval "ac_cv_lib_$ac_lib_var=no"
13934 fi
13935 rm -f conftest*
13936 LIBS="$ac_save_LIBS"
13937
13938 fi
13939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13940 echo "$ac_t""yes" 1>&6
13941 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13942 else
13943 echo "$ac_t""no" 1>&6
13944 fi
13945
13946 fi
13947
13948 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13949 # to get the SysV transport functions.
13950 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13951 # needs -lnsl.
13952 # The nsl library prevents programs from opening the X display
13953 # on Irix 5.2, according to dickey@clark.net.
13954 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13955 echo "configure:13956: checking for gethostbyname" >&5
13956 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13957 echo $ac_n "(cached) $ac_c" 1>&6
13958 else
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 /* System header to define __stub macros and hopefully few prototypes,
13963 which can conflict with char gethostbyname(); below. */
13964 #include <assert.h>
13965 /* Override any gcc2 internal prototype to avoid an error. */
13966 /* We use char because int might match the return type of a gcc2
13967 builtin and then its argument prototype would still apply. */
13968 char gethostbyname();
13969
13970 int main() {
13971
13972 /* The GNU C library defines this for functions which it implements
13973 to always fail with ENOSYS. Some functions are actually named
13974 something starting with __ and the normal name is an alias. */
13975 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13976 choke me
13977 #else
13978 gethostbyname();
13979 #endif
13980
13981 ; return 0; }
13982 EOF
13983 if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13984 rm -rf conftest*
13985 eval "ac_cv_func_gethostbyname=yes"
13986 else
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13989 rm -rf conftest*
13990 eval "ac_cv_func_gethostbyname=no"
13991 fi
13992 rm -f conftest*
13993 fi
13994
13995 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 :
13998 else
13999 echo "$ac_t""no" 1>&6
14000 fi
14001
14002 if test $ac_cv_func_gethostbyname = no; then
14003 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14004 echo "configure:14005: checking for gethostbyname in -lnsl" >&5
14005 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14008 else
14009 ac_save_LIBS="$LIBS"
14010 LIBS="-lnsl $LIBS"
14011 cat > conftest.$ac_ext <<EOF
14012 #line 14013 "configure"
14013 #include "confdefs.h"
14014 /* Override any gcc2 internal prototype to avoid an error. */
14015 /* We use char because int might match the return type of a gcc2
14016 builtin and then its argument prototype would still apply. */
14017 char gethostbyname();
14018
14019 int main() {
14020 gethostbyname()
14021 ; return 0; }
14022 EOF
14023 if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14024 rm -rf conftest*
14025 eval "ac_cv_lib_$ac_lib_var=yes"
14026 else
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14029 rm -rf conftest*
14030 eval "ac_cv_lib_$ac_lib_var=no"
14031 fi
14032 rm -f conftest*
14033 LIBS="$ac_save_LIBS"
14034
14035 fi
14036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14037 echo "$ac_t""yes" 1>&6
14038 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14039 else
14040 echo "$ac_t""no" 1>&6
14041 fi
14042
14043 fi
14044
14045 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14046 # socket/setsockopt and other routines are undefined under SCO ODT
14047 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14048 # on later versions), says simon@lia.di.epfl.ch: it contains
14049 # gethostby* variants that don't use the nameserver (or something).
14050 # -lsocket must be given before -lnsl if both are needed.
14051 # We assume that if connect needs -lnsl, so does gethostbyname.
14052 echo $ac_n "checking for connect""... $ac_c" 1>&6
14053 echo "configure:14054: checking for connect" >&5
14054 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14056 else
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 /* System header to define __stub macros and hopefully few prototypes,
14061 which can conflict with char connect(); below. */
14062 #include <assert.h>
14063 /* Override any gcc2 internal prototype to avoid an error. */
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14066 char connect();
14067
14068 int main() {
14069
14070 /* The GNU C library defines this for functions which it implements
14071 to always fail with ENOSYS. Some functions are actually named
14072 something starting with __ and the normal name is an alias. */
14073 #if defined (__stub_connect) || defined (__stub___connect)
14074 choke me
14075 #else
14076 connect();
14077 #endif
14078
14079 ; return 0; }
14080 EOF
14081 if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14082 rm -rf conftest*
14083 eval "ac_cv_func_connect=yes"
14084 else
14085 echo "configure: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 rm -rf conftest*
14088 eval "ac_cv_func_connect=no"
14089 fi
14090 rm -f conftest*
14091 fi
14092
14093 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14094 echo "$ac_t""yes" 1>&6
14095 :
14096 else
14097 echo "$ac_t""no" 1>&6
14098 fi
14099
14100 if test $ac_cv_func_connect = no; then
14101 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14102 echo "configure:14103: checking for connect in -lsocket" >&5
14103 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14106 else
14107 ac_save_LIBS="$LIBS"
14108 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14109 cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* Override any gcc2 internal prototype to avoid an error. */
14113 /* We use char because int might match the return type of a gcc2
14114 builtin and then its argument prototype would still apply. */
14115 char connect();
14116
14117 int main() {
14118 connect()
14119 ; return 0; }
14120 EOF
14121 if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14122 rm -rf conftest*
14123 eval "ac_cv_lib_$ac_lib_var=yes"
14124 else
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14127 rm -rf conftest*
14128 eval "ac_cv_lib_$ac_lib_var=no"
14129 fi
14130 rm -f conftest*
14131 LIBS="$ac_save_LIBS"
14132
14133 fi
14134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
14136 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14137 else
14138 echo "$ac_t""no" 1>&6
14139 fi
14140
14141 fi
14142
14143 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14144 echo $ac_n "checking for remove""... $ac_c" 1>&6
14145 echo "configure:14146: checking for remove" >&5
14146 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14147 echo $ac_n "(cached) $ac_c" 1>&6
14148 else
14149 cat > conftest.$ac_ext <<EOF
14150 #line 14151 "configure"
14151 #include "confdefs.h"
14152 /* System header to define __stub macros and hopefully few prototypes,
14153 which can conflict with char remove(); below. */
14154 #include <assert.h>
14155 /* Override any gcc2 internal prototype to avoid an error. */
14156 /* We use char because int might match the return type of a gcc2
14157 builtin and then its argument prototype would still apply. */
14158 char remove();
14159
14160 int main() {
14161
14162 /* The GNU C library defines this for functions which it implements
14163 to always fail with ENOSYS. Some functions are actually named
14164 something starting with __ and the normal name is an alias. */
14165 #if defined (__stub_remove) || defined (__stub___remove)
14166 choke me
14167 #else
14168 remove();
14169 #endif
14170
14171 ; return 0; }
14172 EOF
14173 if { (eval echo configure:14174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14174 rm -rf conftest*
14175 eval "ac_cv_func_remove=yes"
14176 else
14177 echo "configure: failed program was:" >&5
14178 cat conftest.$ac_ext >&5
14179 rm -rf conftest*
14180 eval "ac_cv_func_remove=no"
14181 fi
14182 rm -f conftest*
14183 fi
14184
14185 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14186 echo "$ac_t""yes" 1>&6
14187 :
14188 else
14189 echo "$ac_t""no" 1>&6
14190 fi
14191
14192 if test $ac_cv_func_remove = no; then
14193 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14194 echo "configure:14195: checking for remove in -lposix" >&5
14195 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14197 echo $ac_n "(cached) $ac_c" 1>&6
14198 else
14199 ac_save_LIBS="$LIBS"
14200 LIBS="-lposix $LIBS"
14201 cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14204 /* Override any gcc2 internal prototype to avoid an error. */
14205 /* We use char because int might match the return type of a gcc2
14206 builtin and then its argument prototype would still apply. */
14207 char remove();
14208
14209 int main() {
14210 remove()
14211 ; return 0; }
14212 EOF
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14214 rm -rf conftest*
14215 eval "ac_cv_lib_$ac_lib_var=yes"
14216 else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220 eval "ac_cv_lib_$ac_lib_var=no"
14221 fi
14222 rm -f conftest*
14223 LIBS="$ac_save_LIBS"
14224
14225 fi
14226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14227 echo "$ac_t""yes" 1>&6
14228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14229 else
14230 echo "$ac_t""no" 1>&6
14231 fi
14232
14233 fi
14234
14235 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14236 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14237 echo "configure:14238: checking for shmat" >&5
14238 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14240 else
14241 cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure"
14243 #include "confdefs.h"
14244 /* System header to define __stub macros and hopefully few prototypes,
14245 which can conflict with char shmat(); below. */
14246 #include <assert.h>
14247 /* Override any gcc2 internal prototype to avoid an error. */
14248 /* We use char because int might match the return type of a gcc2
14249 builtin and then its argument prototype would still apply. */
14250 char shmat();
14251
14252 int main() {
14253
14254 /* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257 #if defined (__stub_shmat) || defined (__stub___shmat)
14258 choke me
14259 #else
14260 shmat();
14261 #endif
14262
14263 ; return 0; }
14264 EOF
14265 if { (eval echo configure:14266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14266 rm -rf conftest*
14267 eval "ac_cv_func_shmat=yes"
14268 else
14269 echo "configure: failed program was:" >&5
14270 cat conftest.$ac_ext >&5
14271 rm -rf conftest*
14272 eval "ac_cv_func_shmat=no"
14273 fi
14274 rm -f conftest*
14275 fi
14276
14277 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14278 echo "$ac_t""yes" 1>&6
14279 :
14280 else
14281 echo "$ac_t""no" 1>&6
14282 fi
14283
14284 if test $ac_cv_func_shmat = no; then
14285 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14286 echo "configure:14287: checking for shmat in -lipc" >&5
14287 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
14290 else
14291 ac_save_LIBS="$LIBS"
14292 LIBS="-lipc $LIBS"
14293 cat > conftest.$ac_ext <<EOF
14294 #line 14295 "configure"
14295 #include "confdefs.h"
14296 /* Override any gcc2 internal prototype to avoid an error. */
14297 /* We use char because int might match the return type of a gcc2
14298 builtin and then its argument prototype would still apply. */
14299 char shmat();
14300
14301 int main() {
14302 shmat()
14303 ; return 0; }
14304 EOF
14305 if { (eval echo configure:14306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14306 rm -rf conftest*
14307 eval "ac_cv_lib_$ac_lib_var=yes"
14308 else
14309 echo "configure: failed program was:" >&5
14310 cat conftest.$ac_ext >&5
14311 rm -rf conftest*
14312 eval "ac_cv_lib_$ac_lib_var=no"
14313 fi
14314 rm -f conftest*
14315 LIBS="$ac_save_LIBS"
14316
14317 fi
14318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14319 echo "$ac_t""yes" 1>&6
14320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14321 else
14322 echo "$ac_t""no" 1>&6
14323 fi
14324
14325 fi
14326 fi
14327
14328 # Check for libraries that X11R6 Xt/Xaw programs need.
14329 ac_save_LDFLAGS="$LDFLAGS"
14330 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14331 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14332 # check for ICE first), but we must link in the order -lSM -lICE or
14333 # we get undefined symbols. So assume we have SM if we have ICE.
14334 # These have to be linked with before -lX11, unlike the other
14335 # libraries we check for below, so use a different variable.
14336 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14337 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14338 echo "configure:14339: checking for IceConnectionNumber in -lICE" >&5
14339 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14341 echo $ac_n "(cached) $ac_c" 1>&6
14342 else
14343 ac_save_LIBS="$LIBS"
14344 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14345 cat > conftest.$ac_ext <<EOF
14346 #line 14347 "configure"
14347 #include "confdefs.h"
14348 /* Override any gcc2 internal prototype to avoid an error. */
14349 /* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14351 char IceConnectionNumber();
14352
14353 int main() {
14354 IceConnectionNumber()
14355 ; return 0; }
14356 EOF
14357 if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14358 rm -rf conftest*
14359 eval "ac_cv_lib_$ac_lib_var=yes"
14360 else
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 rm -rf conftest*
14364 eval "ac_cv_lib_$ac_lib_var=no"
14365 fi
14366 rm -f conftest*
14367 LIBS="$ac_save_LIBS"
14368
14369 fi
14370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14371 echo "$ac_t""yes" 1>&6
14372 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14373 else
14374 echo "$ac_t""no" 1>&6
14375 fi
14376
14377 LDFLAGS="$ac_save_LDFLAGS"
14378
14379 fi
14380
14381
14382 if test "$no_x" = "yes"; then
14383 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14384 fi
14385
14386 GUI_TK_LIBRARY="$X_LIBS"
14387 TOOLKIT_INCLUDE="$X_CFLAGS"
14388 AFMINSTALL=afminstall
14389 COMPILED_X_PROGRAM=0
14390
14391 if test "$wxUSE_NANOX" = "yes"; then
14392 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14393 echo "configure:14394: checking for MicroWindows/NanoX distribution" >&5
14394 if test "x$MICROWIN" = x ; then
14395 echo "$ac_t""not found" 1>&6
14396 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14397 else
14398 echo "$ac_t""$MICROWIN" 1>&6
14399 cat >> confdefs.h <<\EOF
14400 #define wxUSE_NANOX 1
14401 EOF
14402
14403 fi
14404 fi
14405
14406 xpm_link=
14407 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14408 echo "configure:14409: checking for Xpm library" >&5
14409
14410 ac_find_libraries=
14411 for ac_dir in $SEARCH_LIB /usr/lib;
14412 do
14413 for ac_extension in a so sl dylib; do
14414 if test -f "$ac_dir/libXpm.$ac_extension"; then
14415 ac_find_libraries=$ac_dir
14416 break 2
14417 fi
14418 done
14419 done
14420
14421 if test "$ac_find_libraries" != "" ; then
14422
14423 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14424 result=$?
14425 if test $result = 0; then
14426 ac_path_to_link=""
14427 else
14428 ac_path_to_link=" -L$ac_find_libraries"
14429 fi
14430
14431 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14432 xpm_link=" -lXpm"
14433 cat >> confdefs.h <<\EOF
14434 #define wxHAVE_LIB_XPM 1
14435 EOF
14436
14437 echo "$ac_t""found at $ac_find_libraries" 1>&6
14438 else
14439 cat > conftest.$ac_ext <<EOF
14440 #line 14441 "configure"
14441 #include "confdefs.h"
14442
14443 #include <X11/xpm.h>
14444
14445 int main() {
14446
14447 int version;
14448 version = XpmLibraryVersion();
14449
14450 ; return 0; }
14451 EOF
14452 if { (eval echo configure:14453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14453 rm -rf conftest*
14454
14455 xpm_link=" -lXpm"
14456 cat >> confdefs.h <<\EOF
14457 #define wxHAVE_LIB_XPM 1
14458 EOF
14459
14460 echo "$ac_t""found in default search path" 1>&6
14461 COMPILED_X_PROGRAM=0
14462
14463 else
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14466 rm -rf conftest*
14467
14468 echo "$ac_t""no" 1>&6
14469 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14470
14471
14472 fi
14473 rm -f conftest*
14474 fi
14475
14476 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14477 echo "configure:14478: checking for XShapeQueryExtension in -lXext" >&5
14478 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14481 else
14482 ac_save_LIBS="$LIBS"
14483 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14484 cat > conftest.$ac_ext <<EOF
14485 #line 14486 "configure"
14486 #include "confdefs.h"
14487 /* Override any gcc2 internal prototype to avoid an error. */
14488 /* We use char because int might match the return type of a gcc2
14489 builtin and then its argument prototype would still apply. */
14490 char XShapeQueryExtension();
14491
14492 int main() {
14493 XShapeQueryExtension()
14494 ; return 0; }
14495 EOF
14496 if { (eval echo configure:14497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14497 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=yes"
14499 else
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 rm -rf conftest*
14503 eval "ac_cv_lib_$ac_lib_var=no"
14504 fi
14505 rm -f conftest*
14506 LIBS="$ac_save_LIBS"
14507
14508 fi
14509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14510 echo "$ac_t""yes" 1>&6
14511
14512 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14513 wxHAVE_XEXT_LIB=1
14514
14515 else
14516 echo "$ac_t""no" 1>&6
14517 fi
14518
14519
14520 if test "$wxUSE_UNICODE" = "yes"; then
14521
14522 succeeded=no
14523
14524 if test -z "$PKG_CONFIG"; then
14525 # Extract the first word of "pkg-config", so it can be a program name with args.
14526 set dummy pkg-config; ac_word=$2
14527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14528 echo "configure:14529: checking for $ac_word" >&5
14529 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14530 echo $ac_n "(cached) $ac_c" 1>&6
14531 else
14532 case "$PKG_CONFIG" in
14533 /*)
14534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14535 ;;
14536 ?:/*)
14537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14538 ;;
14539 *)
14540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14541 ac_dummy="$PATH"
14542 for ac_dir in $ac_dummy; do
14543 test -z "$ac_dir" && ac_dir=.
14544 if test -f $ac_dir/$ac_word; then
14545 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14546 break
14547 fi
14548 done
14549 IFS="$ac_save_ifs"
14550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14551 ;;
14552 esac
14553 fi
14554 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14555 if test -n "$PKG_CONFIG"; then
14556 echo "$ac_t""$PKG_CONFIG" 1>&6
14557 else
14558 echo "$ac_t""no" 1>&6
14559 fi
14560
14561 fi
14562
14563 if test "$PKG_CONFIG" = "no" ; then
14564 echo "*** The pkg-config script could not be found. Make sure it is"
14565 echo "*** in your path, or set the PKG_CONFIG environment variable"
14566 echo "*** to the full path to pkg-config."
14567 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14568 else
14569 PKG_CONFIG_MIN_VERSION=0.9.0
14570 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14571 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14572 echo "configure:14573: checking for pangox" >&5
14573
14574 if $PKG_CONFIG --exists "pangox" ; then
14575 echo "$ac_t""yes" 1>&6
14576 succeeded=yes
14577
14578 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14579 echo "configure:14580: checking PANGOX_CFLAGS" >&5
14580 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14581 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14582
14583 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14584 echo "configure:14585: checking PANGOX_LIBS" >&5
14585 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14586 echo "$ac_t""$PANGOX_LIBS" 1>&6
14587 else
14588 PANGOX_CFLAGS=""
14589 PANGOX_LIBS=""
14590 ## If we have a custom action on failure, don't print errors, but
14591 ## do set a variable so people can do so.
14592 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14593
14594 fi
14595
14596
14597
14598 else
14599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14601 fi
14602 fi
14603
14604 if test $succeeded = yes; then
14605
14606 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14607 LIBS="$LIBS $PANGOX_LIBS"
14608
14609 else
14610
14611 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14612
14613
14614 fi
14615
14616
14617 succeeded=no
14618
14619 if test -z "$PKG_CONFIG"; then
14620 # Extract the first word of "pkg-config", so it can be a program name with args.
14621 set dummy pkg-config; ac_word=$2
14622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14623 echo "configure:14624: checking for $ac_word" >&5
14624 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14625 echo $ac_n "(cached) $ac_c" 1>&6
14626 else
14627 case "$PKG_CONFIG" in
14628 /*)
14629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14630 ;;
14631 ?:/*)
14632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14633 ;;
14634 *)
14635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14636 ac_dummy="$PATH"
14637 for ac_dir in $ac_dummy; do
14638 test -z "$ac_dir" && ac_dir=.
14639 if test -f $ac_dir/$ac_word; then
14640 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14641 break
14642 fi
14643 done
14644 IFS="$ac_save_ifs"
14645 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14646 ;;
14647 esac
14648 fi
14649 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14650 if test -n "$PKG_CONFIG"; then
14651 echo "$ac_t""$PKG_CONFIG" 1>&6
14652 else
14653 echo "$ac_t""no" 1>&6
14654 fi
14655
14656 fi
14657
14658 if test "$PKG_CONFIG" = "no" ; then
14659 echo "*** The pkg-config script could not be found. Make sure it is"
14660 echo "*** in your path, or set the PKG_CONFIG environment variable"
14661 echo "*** to the full path to pkg-config."
14662 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14663 else
14664 PKG_CONFIG_MIN_VERSION=0.9.0
14665 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14666 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14667 echo "configure:14668: checking for pangoft2" >&5
14668
14669 if $PKG_CONFIG --exists "pangoft2" ; then
14670 echo "$ac_t""yes" 1>&6
14671 succeeded=yes
14672
14673 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14674 echo "configure:14675: checking PANGOFT2_CFLAGS" >&5
14675 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14676 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14677
14678 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14679 echo "configure:14680: checking PANGOFT2_LIBS" >&5
14680 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14681 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14682 else
14683 PANGOFT2_CFLAGS=""
14684 PANGOFT2_LIBS=""
14685 ## If we have a custom action on failure, don't print errors, but
14686 ## do set a variable so people can do so.
14687 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14688
14689 fi
14690
14691
14692
14693 else
14694 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14695 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14696 fi
14697 fi
14698
14699 if test $succeeded = yes; then
14700
14701 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14702 LIBS="$LIBS $PANGOFT2_LIBS"
14703
14704 else
14705
14706 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14707 wxUSE_PRINTING_ARCHITECTURE="no"
14708
14709
14710 fi
14711
14712
14713 succeeded=no
14714
14715 if test -z "$PKG_CONFIG"; then
14716 # Extract the first word of "pkg-config", so it can be a program name with args.
14717 set dummy pkg-config; ac_word=$2
14718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14719 echo "configure:14720: checking for $ac_word" >&5
14720 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14722 else
14723 case "$PKG_CONFIG" in
14724 /*)
14725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14726 ;;
14727 ?:/*)
14728 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14729 ;;
14730 *)
14731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14732 ac_dummy="$PATH"
14733 for ac_dir in $ac_dummy; do
14734 test -z "$ac_dir" && ac_dir=.
14735 if test -f $ac_dir/$ac_word; then
14736 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14737 break
14738 fi
14739 done
14740 IFS="$ac_save_ifs"
14741 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14742 ;;
14743 esac
14744 fi
14745 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14746 if test -n "$PKG_CONFIG"; then
14747 echo "$ac_t""$PKG_CONFIG" 1>&6
14748 else
14749 echo "$ac_t""no" 1>&6
14750 fi
14751
14752 fi
14753
14754 if test "$PKG_CONFIG" = "no" ; then
14755 echo "*** The pkg-config script could not be found. Make sure it is"
14756 echo "*** in your path, or set the PKG_CONFIG environment variable"
14757 echo "*** to the full path to pkg-config."
14758 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14759 else
14760 PKG_CONFIG_MIN_VERSION=0.9.0
14761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14762 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14763 echo "configure:14764: checking for pangoxft" >&5
14764
14765 if $PKG_CONFIG --exists "pangoxft" ; then
14766 echo "$ac_t""yes" 1>&6
14767 succeeded=yes
14768
14769 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14770 echo "configure:14771: checking PANGOXFT_CFLAGS" >&5
14771 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14772 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14773
14774 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14775 echo "configure:14776: checking PANGOXFT_LIBS" >&5
14776 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14777 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14778 else
14779 PANGOXFT_CFLAGS=""
14780 PANGOXFT_LIBS=""
14781 ## If we have a custom action on failure, don't print errors, but
14782 ## do set a variable so people can do so.
14783 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14784
14785 fi
14786
14787
14788
14789 else
14790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14792 fi
14793 fi
14794
14795 if test $succeeded = yes; then
14796
14797 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14798 LIBS="$LIBS $PANGOXFT_LIBS"
14799
14800 else
14801
14802 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14803
14804
14805 fi
14806
14807 fi
14808
14809 wxUSE_UNIVERSAL="yes"
14810
14811 if test "$wxUSE_NANOX" = "yes"; then
14812 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14813 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 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14814 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14815 else
14816 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14817 fi
14818
14819 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14820 TOOLKIT=X11
14821 GUIDIST=X11_DIST
14822 fi
14823
14824 if test "$wxUSE_MOTIF" = 1; then
14825 if test "$no_x" = yes; then
14826 # Not all programs may use this symbol, but it does not hurt to define it.
14827 cat >> confdefs.h <<\EOF
14828 #define X_DISPLAY_MISSING 1
14829 EOF
14830
14831 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14832 else
14833 if test -n "$x_includes"; then
14834 X_CFLAGS="$X_CFLAGS -I$x_includes"
14835 fi
14836
14837 # It would also be nice to do this for all -L options, not just this one.
14838 if test -n "$x_libraries"; then
14839 X_LIBS="$X_LIBS -L$x_libraries"
14840 # For Solaris; some versions of Sun CC require a space after -R and
14841 # others require no space. Words are not sufficient . . . .
14842 case "`(uname -sr) 2>/dev/null`" in
14843 "SunOS 5"*)
14844 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14845 echo "configure:14846: checking whether -R must be followed by a space" >&5
14846 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14847 cat > conftest.$ac_ext <<EOF
14848 #line 14849 "configure"
14849 #include "confdefs.h"
14850
14851 int main() {
14852
14853 ; return 0; }
14854 EOF
14855 if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14856 rm -rf conftest*
14857 ac_R_nospace=yes
14858 else
14859 echo "configure: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14861 rm -rf conftest*
14862 ac_R_nospace=no
14863 fi
14864 rm -f conftest*
14865 if test $ac_R_nospace = yes; then
14866 echo "$ac_t""no" 1>&6
14867 X_LIBS="$X_LIBS -R$x_libraries"
14868 else
14869 LIBS="$ac_xsave_LIBS -R $x_libraries"
14870 cat > conftest.$ac_ext <<EOF
14871 #line 14872 "configure"
14872 #include "confdefs.h"
14873
14874 int main() {
14875
14876 ; return 0; }
14877 EOF
14878 if { (eval echo configure:14879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14879 rm -rf conftest*
14880 ac_R_space=yes
14881 else
14882 echo "configure: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14884 rm -rf conftest*
14885 ac_R_space=no
14886 fi
14887 rm -f conftest*
14888 if test $ac_R_space = yes; then
14889 echo "$ac_t""yes" 1>&6
14890 X_LIBS="$X_LIBS -R $x_libraries"
14891 else
14892 echo "$ac_t""neither works" 1>&6
14893 fi
14894 fi
14895 LIBS="$ac_xsave_LIBS"
14896 esac
14897 fi
14898
14899 # Check for system-dependent libraries X programs must link with.
14900 # Do this before checking for the system-independent R6 libraries
14901 # (-lICE), since we may need -lsocket or whatever for X linking.
14902
14903 if test "$ISC" = yes; then
14904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14905 else
14906 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14907 # libraries were built with DECnet support. And karl@cs.umb.edu says
14908 # the Alpha needs dnet_stub (dnet does not exist).
14909 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14910 echo "configure:14911: checking for dnet_ntoa in -ldnet" >&5
14911 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14913 echo $ac_n "(cached) $ac_c" 1>&6
14914 else
14915 ac_save_LIBS="$LIBS"
14916 LIBS="-ldnet $LIBS"
14917 cat > conftest.$ac_ext <<EOF
14918 #line 14919 "configure"
14919 #include "confdefs.h"
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 /* We use char because int might match the return type of a gcc2
14922 builtin and then its argument prototype would still apply. */
14923 char dnet_ntoa();
14924
14925 int main() {
14926 dnet_ntoa()
14927 ; return 0; }
14928 EOF
14929 if { (eval echo configure:14930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14930 rm -rf conftest*
14931 eval "ac_cv_lib_$ac_lib_var=yes"
14932 else
14933 echo "configure: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14935 rm -rf conftest*
14936 eval "ac_cv_lib_$ac_lib_var=no"
14937 fi
14938 rm -f conftest*
14939 LIBS="$ac_save_LIBS"
14940
14941 fi
14942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14943 echo "$ac_t""yes" 1>&6
14944 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14945 else
14946 echo "$ac_t""no" 1>&6
14947 fi
14948
14949 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14950 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14951 echo "configure:14952: checking for dnet_ntoa in -ldnet_stub" >&5
14952 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14954 echo $ac_n "(cached) $ac_c" 1>&6
14955 else
14956 ac_save_LIBS="$LIBS"
14957 LIBS="-ldnet_stub $LIBS"
14958 cat > conftest.$ac_ext <<EOF
14959 #line 14960 "configure"
14960 #include "confdefs.h"
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14964 char dnet_ntoa();
14965
14966 int main() {
14967 dnet_ntoa()
14968 ; return 0; }
14969 EOF
14970 if { (eval echo configure:14971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14971 rm -rf conftest*
14972 eval "ac_cv_lib_$ac_lib_var=yes"
14973 else
14974 echo "configure: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 rm -rf conftest*
14977 eval "ac_cv_lib_$ac_lib_var=no"
14978 fi
14979 rm -f conftest*
14980 LIBS="$ac_save_LIBS"
14981
14982 fi
14983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
14985 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14986 else
14987 echo "$ac_t""no" 1>&6
14988 fi
14989
14990 fi
14991
14992 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14993 # to get the SysV transport functions.
14994 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14995 # needs -lnsl.
14996 # The nsl library prevents programs from opening the X display
14997 # on Irix 5.2, according to dickey@clark.net.
14998 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14999 echo "configure:15000: checking for gethostbyname" >&5
15000 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
15001 echo $ac_n "(cached) $ac_c" 1>&6
15002 else
15003 cat > conftest.$ac_ext <<EOF
15004 #line 15005 "configure"
15005 #include "confdefs.h"
15006 /* System header to define __stub macros and hopefully few prototypes,
15007 which can conflict with char gethostbyname(); below. */
15008 #include <assert.h>
15009 /* Override any gcc2 internal prototype to avoid an error. */
15010 /* We use char because int might match the return type of a gcc2
15011 builtin and then its argument prototype would still apply. */
15012 char gethostbyname();
15013
15014 int main() {
15015
15016 /* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
15019 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
15020 choke me
15021 #else
15022 gethostbyname();
15023 #endif
15024
15025 ; return 0; }
15026 EOF
15027 if { (eval echo configure:15028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15028 rm -rf conftest*
15029 eval "ac_cv_func_gethostbyname=yes"
15030 else
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15033 rm -rf conftest*
15034 eval "ac_cv_func_gethostbyname=no"
15035 fi
15036 rm -f conftest*
15037 fi
15038
15039 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15040 echo "$ac_t""yes" 1>&6
15041 :
15042 else
15043 echo "$ac_t""no" 1>&6
15044 fi
15045
15046 if test $ac_cv_func_gethostbyname = no; then
15047 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
15048 echo "configure:15049: checking for gethostbyname in -lnsl" >&5
15049 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15051 echo $ac_n "(cached) $ac_c" 1>&6
15052 else
15053 ac_save_LIBS="$LIBS"
15054 LIBS="-lnsl $LIBS"
15055 cat > conftest.$ac_ext <<EOF
15056 #line 15057 "configure"
15057 #include "confdefs.h"
15058 /* Override any gcc2 internal prototype to avoid an error. */
15059 /* We use char because int might match the return type of a gcc2
15060 builtin and then its argument prototype would still apply. */
15061 char gethostbyname();
15062
15063 int main() {
15064 gethostbyname()
15065 ; return 0; }
15066 EOF
15067 if { (eval echo configure:15068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15068 rm -rf conftest*
15069 eval "ac_cv_lib_$ac_lib_var=yes"
15070 else
15071 echo "configure: failed program was:" >&5
15072 cat conftest.$ac_ext >&5
15073 rm -rf conftest*
15074 eval "ac_cv_lib_$ac_lib_var=no"
15075 fi
15076 rm -f conftest*
15077 LIBS="$ac_save_LIBS"
15078
15079 fi
15080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15083 else
15084 echo "$ac_t""no" 1>&6
15085 fi
15086
15087 fi
15088
15089 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15090 # socket/setsockopt and other routines are undefined under SCO ODT
15091 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15092 # on later versions), says simon@lia.di.epfl.ch: it contains
15093 # gethostby* variants that don't use the nameserver (or something).
15094 # -lsocket must be given before -lnsl if both are needed.
15095 # We assume that if connect needs -lnsl, so does gethostbyname.
15096 echo $ac_n "checking for connect""... $ac_c" 1>&6
15097 echo "configure:15098: checking for connect" >&5
15098 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
15100 else
15101 cat > conftest.$ac_ext <<EOF
15102 #line 15103 "configure"
15103 #include "confdefs.h"
15104 /* System header to define __stub macros and hopefully few prototypes,
15105 which can conflict with char connect(); below. */
15106 #include <assert.h>
15107 /* Override any gcc2 internal prototype to avoid an error. */
15108 /* We use char because int might match the return type of a gcc2
15109 builtin and then its argument prototype would still apply. */
15110 char connect();
15111
15112 int main() {
15113
15114 /* The GNU C library defines this for functions which it implements
15115 to always fail with ENOSYS. Some functions are actually named
15116 something starting with __ and the normal name is an alias. */
15117 #if defined (__stub_connect) || defined (__stub___connect)
15118 choke me
15119 #else
15120 connect();
15121 #endif
15122
15123 ; return 0; }
15124 EOF
15125 if { (eval echo configure:15126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15126 rm -rf conftest*
15127 eval "ac_cv_func_connect=yes"
15128 else
15129 echo "configure: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 rm -rf conftest*
15132 eval "ac_cv_func_connect=no"
15133 fi
15134 rm -f conftest*
15135 fi
15136
15137 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15138 echo "$ac_t""yes" 1>&6
15139 :
15140 else
15141 echo "$ac_t""no" 1>&6
15142 fi
15143
15144 if test $ac_cv_func_connect = no; then
15145 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15146 echo "configure:15147: checking for connect in -lsocket" >&5
15147 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15149 echo $ac_n "(cached) $ac_c" 1>&6
15150 else
15151 ac_save_LIBS="$LIBS"
15152 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15153 cat > conftest.$ac_ext <<EOF
15154 #line 15155 "configure"
15155 #include "confdefs.h"
15156 /* Override any gcc2 internal prototype to avoid an error. */
15157 /* We use char because int might match the return type of a gcc2
15158 builtin and then its argument prototype would still apply. */
15159 char connect();
15160
15161 int main() {
15162 connect()
15163 ; return 0; }
15164 EOF
15165 if { (eval echo configure:15166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15166 rm -rf conftest*
15167 eval "ac_cv_lib_$ac_lib_var=yes"
15168 else
15169 echo "configure: failed program was:" >&5
15170 cat conftest.$ac_ext >&5
15171 rm -rf conftest*
15172 eval "ac_cv_lib_$ac_lib_var=no"
15173 fi
15174 rm -f conftest*
15175 LIBS="$ac_save_LIBS"
15176
15177 fi
15178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15179 echo "$ac_t""yes" 1>&6
15180 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15181 else
15182 echo "$ac_t""no" 1>&6
15183 fi
15184
15185 fi
15186
15187 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15188 echo $ac_n "checking for remove""... $ac_c" 1>&6
15189 echo "configure:15190: checking for remove" >&5
15190 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15191 echo $ac_n "(cached) $ac_c" 1>&6
15192 else
15193 cat > conftest.$ac_ext <<EOF
15194 #line 15195 "configure"
15195 #include "confdefs.h"
15196 /* System header to define __stub macros and hopefully few prototypes,
15197 which can conflict with char remove(); below. */
15198 #include <assert.h>
15199 /* Override any gcc2 internal prototype to avoid an error. */
15200 /* We use char because int might match the return type of a gcc2
15201 builtin and then its argument prototype would still apply. */
15202 char remove();
15203
15204 int main() {
15205
15206 /* The GNU C library defines this for functions which it implements
15207 to always fail with ENOSYS. Some functions are actually named
15208 something starting with __ and the normal name is an alias. */
15209 #if defined (__stub_remove) || defined (__stub___remove)
15210 choke me
15211 #else
15212 remove();
15213 #endif
15214
15215 ; return 0; }
15216 EOF
15217 if { (eval echo configure:15218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15218 rm -rf conftest*
15219 eval "ac_cv_func_remove=yes"
15220 else
15221 echo "configure: failed program was:" >&5
15222 cat conftest.$ac_ext >&5
15223 rm -rf conftest*
15224 eval "ac_cv_func_remove=no"
15225 fi
15226 rm -f conftest*
15227 fi
15228
15229 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15230 echo "$ac_t""yes" 1>&6
15231 :
15232 else
15233 echo "$ac_t""no" 1>&6
15234 fi
15235
15236 if test $ac_cv_func_remove = no; then
15237 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15238 echo "configure:15239: checking for remove in -lposix" >&5
15239 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15241 echo $ac_n "(cached) $ac_c" 1>&6
15242 else
15243 ac_save_LIBS="$LIBS"
15244 LIBS="-lposix $LIBS"
15245 cat > conftest.$ac_ext <<EOF
15246 #line 15247 "configure"
15247 #include "confdefs.h"
15248 /* Override any gcc2 internal prototype to avoid an error. */
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15251 char remove();
15252
15253 int main() {
15254 remove()
15255 ; return 0; }
15256 EOF
15257 if { (eval echo configure:15258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15258 rm -rf conftest*
15259 eval "ac_cv_lib_$ac_lib_var=yes"
15260 else
15261 echo "configure: failed program was:" >&5
15262 cat conftest.$ac_ext >&5
15263 rm -rf conftest*
15264 eval "ac_cv_lib_$ac_lib_var=no"
15265 fi
15266 rm -f conftest*
15267 LIBS="$ac_save_LIBS"
15268
15269 fi
15270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15271 echo "$ac_t""yes" 1>&6
15272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15273 else
15274 echo "$ac_t""no" 1>&6
15275 fi
15276
15277 fi
15278
15279 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15280 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15281 echo "configure:15282: checking for shmat" >&5
15282 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15283 echo $ac_n "(cached) $ac_c" 1>&6
15284 else
15285 cat > conftest.$ac_ext <<EOF
15286 #line 15287 "configure"
15287 #include "confdefs.h"
15288 /* System header to define __stub macros and hopefully few prototypes,
15289 which can conflict with char shmat(); below. */
15290 #include <assert.h>
15291 /* Override any gcc2 internal prototype to avoid an error. */
15292 /* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15294 char shmat();
15295
15296 int main() {
15297
15298 /* The GNU C library defines this for functions which it implements
15299 to always fail with ENOSYS. Some functions are actually named
15300 something starting with __ and the normal name is an alias. */
15301 #if defined (__stub_shmat) || defined (__stub___shmat)
15302 choke me
15303 #else
15304 shmat();
15305 #endif
15306
15307 ; return 0; }
15308 EOF
15309 if { (eval echo configure:15310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15310 rm -rf conftest*
15311 eval "ac_cv_func_shmat=yes"
15312 else
15313 echo "configure: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15315 rm -rf conftest*
15316 eval "ac_cv_func_shmat=no"
15317 fi
15318 rm -f conftest*
15319 fi
15320
15321 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15322 echo "$ac_t""yes" 1>&6
15323 :
15324 else
15325 echo "$ac_t""no" 1>&6
15326 fi
15327
15328 if test $ac_cv_func_shmat = no; then
15329 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15330 echo "configure:15331: checking for shmat in -lipc" >&5
15331 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15334 else
15335 ac_save_LIBS="$LIBS"
15336 LIBS="-lipc $LIBS"
15337 cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15340 /* Override any gcc2 internal prototype to avoid an error. */
15341 /* We use char because int might match the return type of a gcc2
15342 builtin and then its argument prototype would still apply. */
15343 char shmat();
15344
15345 int main() {
15346 shmat()
15347 ; return 0; }
15348 EOF
15349 if { (eval echo configure:15350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15350 rm -rf conftest*
15351 eval "ac_cv_lib_$ac_lib_var=yes"
15352 else
15353 echo "configure: failed program was:" >&5
15354 cat conftest.$ac_ext >&5
15355 rm -rf conftest*
15356 eval "ac_cv_lib_$ac_lib_var=no"
15357 fi
15358 rm -f conftest*
15359 LIBS="$ac_save_LIBS"
15360
15361 fi
15362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15363 echo "$ac_t""yes" 1>&6
15364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15365 else
15366 echo "$ac_t""no" 1>&6
15367 fi
15368
15369 fi
15370 fi
15371
15372 # Check for libraries that X11R6 Xt/Xaw programs need.
15373 ac_save_LDFLAGS="$LDFLAGS"
15374 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15375 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15376 # check for ICE first), but we must link in the order -lSM -lICE or
15377 # we get undefined symbols. So assume we have SM if we have ICE.
15378 # These have to be linked with before -lX11, unlike the other
15379 # libraries we check for below, so use a different variable.
15380 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15381 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15382 echo "configure:15383: checking for IceConnectionNumber in -lICE" >&5
15383 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15385 echo $ac_n "(cached) $ac_c" 1>&6
15386 else
15387 ac_save_LIBS="$LIBS"
15388 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15389 cat > conftest.$ac_ext <<EOF
15390 #line 15391 "configure"
15391 #include "confdefs.h"
15392 /* Override any gcc2 internal prototype to avoid an error. */
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15395 char IceConnectionNumber();
15396
15397 int main() {
15398 IceConnectionNumber()
15399 ; return 0; }
15400 EOF
15401 if { (eval echo configure:15402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15402 rm -rf conftest*
15403 eval "ac_cv_lib_$ac_lib_var=yes"
15404 else
15405 echo "configure: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 rm -rf conftest*
15408 eval "ac_cv_lib_$ac_lib_var=no"
15409 fi
15410 rm -f conftest*
15411 LIBS="$ac_save_LIBS"
15412
15413 fi
15414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15417 else
15418 echo "$ac_t""no" 1>&6
15419 fi
15420
15421 LDFLAGS="$ac_save_LDFLAGS"
15422
15423 fi
15424
15425
15426 if test "$no_x" = "yes"; then
15427 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15428 fi
15429
15430 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15431 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15432 AFMINSTALL=afminstall
15433 COMPILED_X_PROGRAM=0
15434
15435 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15436 echo "configure:15437: checking for Motif/Lesstif headers" >&5
15437
15438 ac_find_includes=
15439 for ac_dir in $SEARCH_INCLUDE /usr/include;
15440 do
15441 if test -f "$ac_dir/Xm/Xm.h"; then
15442 ac_find_includes=$ac_dir
15443 break
15444 fi
15445 done
15446
15447 if test "$ac_find_includes" != "" ; then
15448 echo "$ac_t""found in $ac_find_includes" 1>&6
15449
15450 if test "x$ac_find_includes" = "x/usr/include"; then
15451 ac_path_to_include=""
15452 else
15453 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15454 result=$?
15455 if test $result = 0; then
15456 ac_path_to_include=""
15457 else
15458 ac_path_to_include=" -I$ac_find_includes"
15459 fi
15460 fi
15461
15462 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15463 else
15464 cat > conftest.$ac_ext <<EOF
15465 #line 15466 "configure"
15466 #include "confdefs.h"
15467
15468 #include <Xm/Xm.h>
15469
15470 int main() {
15471
15472 int version;
15473 version = xmUseVersion;
15474
15475 ; return 0; }
15476 EOF
15477 if { (eval echo configure:15478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15478 rm -rf conftest*
15479
15480 echo "$ac_t""found in default search path" 1>&6
15481 COMPILED_X_PROGRAM=1
15482
15483 else
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 rm -rf conftest*
15487
15488 echo "$ac_t""no" 1>&6
15489 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15490
15491
15492 fi
15493 rm -f conftest*
15494 fi
15495
15496 if test "$COMPILED_X_PROGRAM" = 0; then
15497 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15498 echo "configure:15499: checking for Motif/Lesstif library" >&5
15499
15500 ac_find_libraries=
15501 for ac_dir in $SEARCH_LIB /usr/lib;
15502 do
15503 for ac_extension in a so sl dylib; do
15504 if test -f "$ac_dir/libXm.$ac_extension"; then
15505 ac_find_libraries=$ac_dir
15506 break 2
15507 fi
15508 done
15509 done
15510
15511 if test "$ac_find_libraries" != "" ; then
15512 echo "$ac_t""found at $ac_find_libraries" 1>&6
15513
15514
15515 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15516 result=$?
15517 if test $result = 0; then
15518 ac_path_to_link=""
15519 else
15520 ac_path_to_link=" -L$ac_find_libraries"
15521 fi
15522
15523 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15524 else
15525 save_CFLAGS=$CFLAGS
15526 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15527
15528 cat > conftest.$ac_ext <<EOF
15529 #line 15530 "configure"
15530 #include "confdefs.h"
15531
15532 #include <Xm/Xm.h>
15533
15534 int main() {
15535
15536 int version;
15537 version = xmUseVersion;
15538
15539 ; return 0; }
15540 EOF
15541 if { (eval echo configure:15542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15542 rm -rf conftest*
15543
15544 echo "$ac_t""found in default search path" 1>&6
15545 COMPILED_X_PROGRAM=1
15546
15547 else
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 rm -rf conftest*
15551
15552 echo "$ac_t""no" 1>&6
15553 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15554
15555
15556 fi
15557 rm -f conftest*
15558
15559 CFLAGS=$save_CFLAGS
15560 fi
15561 fi
15562
15563 xpm_link=
15564 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15565 echo "configure:15566: checking for Xpm library" >&5
15566
15567 ac_find_libraries=
15568 for ac_dir in $SEARCH_LIB /usr/lib;
15569 do
15570 for ac_extension in a so sl dylib; do
15571 if test -f "$ac_dir/libXpm.$ac_extension"; then
15572 ac_find_libraries=$ac_dir
15573 break 2
15574 fi
15575 done
15576 done
15577
15578 if test "$ac_find_libraries" != "" ; then
15579
15580 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15581 result=$?
15582 if test $result = 0; then
15583 ac_path_to_link=""
15584 else
15585 ac_path_to_link=" -L$ac_find_libraries"
15586 fi
15587
15588 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15589
15590 xpm_link=" -lXpm"
15591 cat >> confdefs.h <<\EOF
15592 #define wxHAVE_LIB_XPM 1
15593 EOF
15594
15595 echo "$ac_t""found at $ac_find_libraries" 1>&6
15596 else
15597 save_CFLAGS=$CFLAGS
15598 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15599
15600 cat > conftest.$ac_ext <<EOF
15601 #line 15602 "configure"
15602 #include "confdefs.h"
15603
15604 #include <X11/xpm.h>
15605
15606 int main() {
15607
15608 int version;
15609 version = XpmLibraryVersion();
15610
15611 ; return 0; }
15612 EOF
15613 if { (eval echo configure:15614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15614 rm -rf conftest*
15615
15616 xpm_link=" -lXpm"
15617 cat >> confdefs.h <<\EOF
15618 #define wxHAVE_LIB_XPM 1
15619 EOF
15620
15621 echo "$ac_t""found in default search path" 1>&6
15622 COMPILED_X_PROGRAM=0
15623
15624 else
15625 echo "configure: failed program was:" >&5
15626 cat conftest.$ac_ext >&5
15627 rm -rf conftest*
15628
15629 echo "$ac_t""no" 1>&6
15630 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15631
15632
15633 fi
15634 rm -f conftest*
15635
15636 CFLAGS=$save_CFLAGS
15637 fi
15638
15639 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15640 echo "configure:15641: checking if we need -lXp and/or -lSM -lICE" >&5
15641 libp_link=""
15642 libsm_ice_link=""
15643 libs_found=0
15644 for libp in "" " -lXp"; do
15645 if test "$libs_found" = "0"; then
15646 for libsm_ice in " -lSM -lICE"; do
15647 if test "$libs_found" = "0"; then
15648 save_LIBS="$LIBS"
15649 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15650 save_CFLAGS=$CFLAGS
15651 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15652
15653 cat > conftest.$ac_ext <<EOF
15654 #line 15655 "configure"
15655 #include "confdefs.h"
15656
15657 #include <Xm/Xm.h>
15658 #include <Xm/List.h>
15659
15660 int main() {
15661
15662 XmString string = NULL;
15663 Widget w = NULL;
15664 int position = 0;
15665 XmListAddItem(w, string, position);
15666
15667 ; return 0; }
15668 EOF
15669 if { (eval echo configure:15670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15670 rm -rf conftest*
15671
15672 libp_link="$libp"
15673 libsm_ice_link="$libsm_ice"
15674 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15675 libs_found=1
15676
15677 else
15678 echo "configure: failed program was:" >&5
15679 cat conftest.$ac_ext >&5
15680 rm -rf conftest*
15681
15682
15683 fi
15684 rm -f conftest*
15685
15686 LIBS="$save_LIBS"
15687 CFLAGS=$save_CFLAGS
15688 fi
15689 done
15690 fi
15691 done
15692
15693 if test "$libs_found" = "0"; then
15694 echo "$ac_t""can't find the right libraries" 1>&6
15695 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15696 fi
15697
15698 save_CFLAGS=$CFLAGS
15699 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15700 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15701 echo "configure:15702: checking for Motif 2" >&5
15702 cat > conftest.$ac_ext <<EOF
15703 #line 15704 "configure"
15704 #include "confdefs.h"
15705
15706 #include <Xm/Xm.h>
15707
15708 int main() {
15709
15710 #if XmVersion < 2000
15711 #error "Not Motif 2"
15712 #endif
15713
15714 ; return 0; }
15715 EOF
15716 if { (eval echo configure:15717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15717 rm -rf conftest*
15718
15719 cat >> confdefs.h <<\EOF
15720 #define __WXMOTIF20__ 1
15721 EOF
15722
15723 echo "$ac_t""found" 1>&6
15724
15725 else
15726 echo "configure: failed program was:" >&5
15727 cat conftest.$ac_ext >&5
15728 rm -rf conftest*
15729
15730 cat >> confdefs.h <<\EOF
15731 #define __WXMOTIF20__ 0
15732 EOF
15733
15734 echo "$ac_t""not found" 1>&6
15735
15736 fi
15737 rm -f conftest*
15738 CFLAGS=$save_CFLAGS
15739
15740 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15741 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15742 TOOLKIT=MOTIF
15743 GUIDIST=MOTIF_DIST
15744 wxHAVE_XEXT_LIB=1
15745 fi
15746
15747 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15748 test "$wxHAVE_XEXT_LIB" = 1; then
15749 save_CFLAGS="$CFLAGS"
15750 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15751
15752 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15753 echo "configure:15754: checking for X11/extensions/shape.h" >&5
15754 cat > conftest.$ac_ext <<EOF
15755 #line 15756 "configure"
15756 #include "confdefs.h"
15757
15758 #include <X11/Xlib.h>
15759 #include <X11/extensions/shape.h>
15760
15761 int main() {
15762
15763 int dummy1, dummy2;
15764 XShapeQueryExtension((Display*)NULL,
15765 (int*)NULL, (int*)NULL);
15766
15767 ; return 0; }
15768 EOF
15769 if { (eval echo configure:15770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15770 rm -rf conftest*
15771
15772 cat >> confdefs.h <<\EOF
15773 #define HAVE_XSHAPE 1
15774 EOF
15775
15776 echo "$ac_t""found" 1>&6
15777
15778 else
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 rm -rf conftest*
15782
15783 echo "$ac_t""not found" 1>&6
15784
15785 fi
15786 rm -f conftest*
15787 CFLAGS="$save_CFLAGS"
15788 fi
15789
15790 if test "$wxUSE_MAC" = 1; then
15791 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15792
15793 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15794 TOOLKIT=MAC
15795 GUIDIST=MACX_DIST
15796 fi
15797
15798 if test "$wxUSE_COCOA" = 1; then
15799 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15800 TOOLKIT=COCOA
15801 GUIDIST=COCOA_DIST
15802 fi
15803
15804 if test "$wxUSE_PM" = 1; then
15805 TOOLKIT=PM
15806 GUIDIST=GTK_DIST
15807 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15808 wxUSE_THREADS="no"
15809 fi
15810
15811 if test "$TOOLKIT" = "PM" ; then
15812 TOOLKIT_DIR="os2"
15813 else
15814 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15815 fi
15816
15817 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15818
15819 if test "$wxUSE_UNIVERSAL" = "yes"; then
15820 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15821
15822 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15823 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15824
15825 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15826 if test "$wxUSE_X11" = 1; then
15827 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15828 else
15829 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15830 fi
15831 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15832 WIDGET_SET=univ
15833 else
15834 ALL_OBJECTS="\$(GUIOBJS)"
15835 ALL_SOURCES="\$(ALL_SOURCES)"
15836 ALL_HEADERS="\$(ALL_HEADERS)"
15837 fi
15838
15839 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15840
15841 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15842 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15843 fi
15844
15845 if test "$wxUSE_HTML" = "yes"; then
15846 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15847 fi
15848
15849 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15850 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15851 fi
15852 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15853 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15854 fi
15855 if test "$wxUSE_LIBPNG" = "builtin" ; then
15856 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15857 fi
15858
15859 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15860 DISTDIR="wx\$(TOOLKIT)"
15861 else
15862 USE_GUI=0
15863
15864 TOOLKIT_DIR="base"
15865
15866 if test "$USE_WIN32" = 1 ; then
15867 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15868 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15869
15870 TOOLKIT="MSW"
15871 else
15872 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15873 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15874 fi
15875
15876 ALL_SOURCES="\$(ALL_SOURCES)"
15877 ALL_HEADERS="\$(ALL_HEADERS)"
15878
15879 PORT_FILES="\${top_srcdir}/src/files.lst"
15880
15881 GUIDIST="BASE_DIST"
15882 DISTDIR="wxBase"
15883 fi
15884
15885
15886
15887
15888 IODBC_C_SRC=""
15889
15890
15891 if test "$TOOLKIT" != "MSW" ; then
15892
15893 if test "$wxUSE_ODBC" != "no" ; then
15894 cat >> confdefs.h <<\EOF
15895 #define wxUSE_ODBC 1
15896 EOF
15897
15898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15899
15900 WXODBCFLAG="-D_IODBC_"
15901
15902
15903 if test "$wxUSE_ODBC" = "sys" ; then
15904
15905 ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15906 echo $ac_n "checking for sql.h""... $ac_c" 1>&6
15907 echo "configure:15908: checking for sql.h" >&5
15908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15909 echo $ac_n "(cached) $ac_c" 1>&6
15910 else
15911 cat > conftest.$ac_ext <<EOF
15912 #line 15913 "configure"
15913 #include "confdefs.h"
15914 #include <sql.h>
15915 EOF
15916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15917 { (eval echo configure:15918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15919 if test -z "$ac_err"; then
15920 rm -rf conftest*
15921 eval "ac_cv_header_$ac_safe=yes"
15922 else
15923 echo "$ac_err" >&5
15924 echo "configure: failed program was:" >&5
15925 cat conftest.$ac_ext >&5
15926 rm -rf conftest*
15927 eval "ac_cv_header_$ac_safe=no"
15928 fi
15929 rm -f conftest*
15930 fi
15931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15932 echo "$ac_t""yes" 1>&6
15933 :
15934 else
15935 echo "$ac_t""no" 1>&6
15936 fi
15937
15938
15939 echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
15940 echo "configure:15941: checking for library containing SQLAllocEnv" >&5
15941 if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15942 echo $ac_n "(cached) $ac_c" 1>&6
15943 else
15944 ac_func_search_save_LIBS="$LIBS"
15945 ac_cv_search_SQLAllocEnv="no"
15946 cat > conftest.$ac_ext <<EOF
15947 #line 15948 "configure"
15948 #include "confdefs.h"
15949 /* Override any gcc2 internal prototype to avoid an error. */
15950 /* We use char because int might match the return type of a gcc2
15951 builtin and then its argument prototype would still apply. */
15952 char SQLAllocEnv();
15953
15954 int main() {
15955 SQLAllocEnv()
15956 ; return 0; }
15957 EOF
15958 if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15959 rm -rf conftest*
15960 ac_cv_search_SQLAllocEnv="none required"
15961 else
15962 echo "configure: failed program was:" >&5
15963 cat conftest.$ac_ext >&5
15964 fi
15965 rm -f conftest*
15966 test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15967 LIBS="-l$i $ac_func_search_save_LIBS"
15968 cat > conftest.$ac_ext <<EOF
15969 #line 15970 "configure"
15970 #include "confdefs.h"
15971 /* Override any gcc2 internal prototype to avoid an error. */
15972 /* We use char because int might match the return type of a gcc2
15973 builtin and then its argument prototype would still apply. */
15974 char SQLAllocEnv();
15975
15976 int main() {
15977 SQLAllocEnv()
15978 ; return 0; }
15979 EOF
15980 if { (eval echo configure:15981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15981 rm -rf conftest*
15982 ac_cv_search_SQLAllocEnv="-l$i"
15983 break
15984 else
15985 echo "configure: failed program was:" >&5
15986 cat conftest.$ac_ext >&5
15987 fi
15988 rm -f conftest*
15989 done
15990 LIBS="$ac_func_search_save_LIBS"
15991 fi
15992
15993 echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15994 if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15995 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15996
15997 else :
15998
15999 wxUSE_ODBC=builtin;
16000 echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2
16001
16002 fi
16003 fi
16004 if test "$wxUSE_ODBC" != "sys" ; then
16005 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
16006 fi
16007
16008 fi
16009
16010 fi
16011
16012 if test "$wxUSE_REGEX" = "builtin" ; then
16013 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
16014 fi
16015 if test "$wxUSE_ZLIB" = "builtin" ; then
16016 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
16017 fi
16018
16019
16020 if test "$wxUSE_OPENGL" = "yes"; then
16021 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
16022 OPENGL_LIBS="-framework OpenGL -framework AGL"
16023 elif test "$wxUSE_MSW" = 1; then
16024 OPENGL_LIBS="-lopengl32 -lglu32"
16025 else
16026 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
16027 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
16028 echo "configure:16029: checking for GL/gl.h" >&5
16029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16030 echo $ac_n "(cached) $ac_c" 1>&6
16031 else
16032 cat > conftest.$ac_ext <<EOF
16033 #line 16034 "configure"
16034 #include "confdefs.h"
16035 #include <GL/gl.h>
16036 EOF
16037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16038 { (eval echo configure:16039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16040 if test -z "$ac_err"; then
16041 rm -rf conftest*
16042 eval "ac_cv_header_$ac_safe=yes"
16043 else
16044 echo "$ac_err" >&5
16045 echo "configure: failed program was:" >&5
16046 cat conftest.$ac_ext >&5
16047 rm -rf conftest*
16048 eval "ac_cv_header_$ac_safe=no"
16049 fi
16050 rm -f conftest*
16051 fi
16052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16053 echo "$ac_t""yes" 1>&6
16054
16055 found_gl=0
16056
16057 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
16058 echo "configure:16059: checking for -lGL" >&5
16059
16060 ac_find_libraries=
16061 for ac_dir in $SEARCH_LIB /usr/lib;
16062 do
16063 for ac_extension in a so sl dylib; do
16064 if test -f "$ac_dir/libGL.$ac_extension"; then
16065 ac_find_libraries=$ac_dir
16066 break 2
16067 fi
16068 done
16069 done
16070
16071 if test "$ac_find_libraries" != "" ; then
16072
16073 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16074 result=$?
16075 if test $result = 0; then
16076 ac_path_to_link=""
16077 else
16078 ac_path_to_link=" -L$ac_find_libraries"
16079 fi
16080
16081 if test "$ac_path_to_link" != " -L/usr/lib" ; then
16082 LDFLAGS_GL="$ac_path_to_link"
16083 fi
16084
16085
16086 ac_find_libraries=
16087 for ac_dir in $SEARCH_LIB /usr/lib;
16088 do
16089 for ac_extension in a so sl dylib; do
16090 if test -f "$ac_dir/libGLU.$ac_extension"; then
16091 ac_find_libraries=$ac_dir
16092 break 2
16093 fi
16094 done
16095 done
16096
16097 if test "$ac_find_libraries" != "" ; then
16098
16099 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16100 result=$?
16101 if test $result = 0; then
16102 ac_path_to_link=""
16103 else
16104 ac_path_to_link=" -L$ac_find_libraries"
16105 fi
16106
16107 if test "$ac_path_to_link" != " -L/usr/lib" -a \
16108 "$ac_path_to_link" != "$LDFLAGS_GL"; then
16109 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16110 fi
16111
16112 found_gl=1
16113 OPENGL_LIBS="-lGL -lGLU"
16114 echo "$ac_t""yes" 1>&6
16115 fi
16116 fi
16117
16118 if "$found_gl" != 1; then
16119 echo "$ac_t""no" 1>&6
16120 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
16121 echo "configure:16122: checking for -lMesaGL" >&5
16122
16123 ac_find_libraries=
16124 for ac_dir in $SEARCH_LIB /usr/lib;
16125 do
16126 for ac_extension in a so sl dylib; do
16127 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16128 ac_find_libraries=$ac_dir
16129 break 2
16130 fi
16131 done
16132 done
16133
16134 if test "$ac_find_libraries" != "" ; then
16135
16136 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16137 result=$?
16138 if test $result = 0; then
16139 ac_path_to_link=""
16140 else
16141 ac_path_to_link=" -L$ac_find_libraries"
16142 fi
16143
16144 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16145 OPENGL_LIBS="-lMesaGL -lMesaGLU"
16146 echo "$ac_t""yes" 1>&6
16147 else
16148 echo "$ac_t""no" 1>&6
16149 fi
16150 fi
16151
16152 else
16153 echo "$ac_t""no" 1>&6
16154 fi
16155
16156
16157 if test "x$OPENGL_LIBS" = "x"; then
16158 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16159 fi
16160 fi
16161
16162 if test "$wxUSE_OPENGL" = "yes"; then
16163 cat >> confdefs.h <<\EOF
16164 #define wxUSE_OPENGL 1
16165 EOF
16166
16167 cat >> confdefs.h <<\EOF
16168 #define wxUSE_GLCANVAS 1
16169 EOF
16170
16171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16172 fi
16173 fi
16174
16175 if test -z "$TOOLKIT_VPATH" ; then
16176 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16177 fi
16178
16179 if test -n "$TOOLKIT" ; then
16180 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16181 fi
16182
16183 UNICODE=0
16184 lib_unicode_suffix=
16185 if test "$wxUSE_UNICODE" = "yes"; then
16186 lib_unicode_suffix=u
16187 UNICODE=1
16188 fi
16189
16190 lib_debug_suffix=
16191 BUILD=release
16192 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16193 lib_debug_suffix=d
16194 BUILD=debug
16195 fi
16196
16197 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16198
16199 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16200 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16201
16202 if test "$cross_compiling" = "yes"; then
16203 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16204 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16205 fi
16206
16207 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16208 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16209 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16210
16211 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16212 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16213
16214 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16215 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16216 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16217 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16218
16219 case "${host}" in
16220 *-*-cygwin* | *-*-mingw32* )
16221
16222
16223
16224 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16225 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16226 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16227 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16228 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16229 else
16230 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16231 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16232 fi
16233 ;;
16234
16235 *-*-darwin* )
16236
16237 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16238 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16239
16240 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16241 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16242 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16243 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16244
16245 if test "$wxUSE_MAC" = 1; then
16246 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16247 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16248 fi
16249 ;;
16250 esac
16251
16252 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16253 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16254
16255 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16256 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16257
16258 if test "$wxUSE_OPENGL" = "yes"; then
16259 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16260 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16261 fi
16262
16263
16264
16265 if test "$wxUSE_SHARED" = "yes"; then
16266 case "${host}" in
16267 *-pc-os2_emx | *-pc-os2-emx | \
16268 *-pc-msdosdjgpp )
16269 wxUSE_SHARED=no
16270 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16271 ;;
16272 esac
16273 fi
16274
16275 SHARED=0
16276 if test "$wxUSE_SHARED" = "yes"; then
16277 SHARED=1
16278
16279 if test "$wxUSE_OPENGL" = "yes"; then
16280 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16281 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16282 else
16283 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16284 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16285 fi
16286
16287 if test "$GCC" = "yes"; then
16288 PIC_FLAG="-fPIC"
16289 fi
16290
16291
16292
16293 found_versioning=no
16294
16295
16296 if test $found_versioning = no ; then
16297 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16298 echo "configure:16299: checking if the linker accepts --version-script" >&5
16299 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16300 echo $ac_n "(cached) $ac_c" 1>&6
16301 else
16302
16303 echo "VER_1 { *; };" >conftest.sym
16304 echo "int main() { return 0; }" >conftest.cpp
16305
16306 if { ac_try='
16307 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16308 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16309 if test -s conftest.stderr ; then
16310 wx_cv_version_script=no
16311 else
16312 wx_cv_version_script=yes
16313 fi
16314 else
16315 wx_cv_version_script=no
16316 fi
16317 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16318
16319 fi
16320
16321 echo "$ac_t""$wx_cv_version_script" 1>&6
16322 if test $wx_cv_version_script = yes ; then
16323 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16324 fi
16325 fi
16326
16327
16328 SHARED_LD="${CXX} -shared -o"
16329
16330 case "${host}" in
16331 *-hp-hpux* )
16332 if test "$GCC" = "yes"; then
16333 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16334 else
16335 LDFLAGS="$LDFLAGS -L/usr/lib"
16336
16337 SHARED_LD="${CXX} -b -o"
16338 PIC_FLAG="+Z"
16339 fi
16340
16341 if test "$wxUSE_OPENGL" = "yes"; then
16342 WX_ALL_INSTALLED="preinstall_gl"
16343 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16344 else
16345 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16346 fi
16347 ;;
16348
16349 *-*-linux* | *-*-gnu* )
16350 if test "$GCC" != "yes"; then
16351 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16352 echo "configure:16353: checking for Intel compiler" >&5
16353 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16354 echo $ac_n "(cached) $ac_c" 1>&6
16355 else
16356
16357 cat > conftest.$ac_ext <<EOF
16358 #line 16359 "configure"
16359 #include "confdefs.h"
16360
16361 int main() {
16362
16363 #ifndef __INTEL_COMPILER
16364 #error Not icc
16365 #endif
16366
16367 ; return 0; }
16368 EOF
16369 if { (eval echo configure:16370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16370 rm -rf conftest*
16371 wx_cv_prog_icc=yes
16372 else
16373 echo "configure: failed program was:" >&5
16374 cat conftest.$ac_ext >&5
16375 rm -rf conftest*
16376 wx_cv_prog_icc=no
16377
16378 fi
16379 rm -f conftest*
16380
16381 fi
16382
16383 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16384 if test "$wx_cv_prog_icc" = "yes"; then
16385 PIC_FLAG="-KPIC"
16386 fi
16387 fi
16388
16389 if test "$wxUSE_SONAME" = "yes" ; then
16390 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16391 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16392 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16393 fi
16394 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)/lib"
16395 ;;
16396
16397 *-*-solaris2* )
16398 if test "$GCC" = yes ; then
16399 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16400
16401 saveLdflags="$LDFLAGS"
16402 LDFLAGS="$saveLdflags -Wl,-rpath,/"
16403 echo $ac_n "checking if the linker accepts -rpath""... $ac_c" 1>&6
16404 echo "configure:16405: checking if the linker accepts -rpath" >&5
16405 cat > conftest.$ac_ext <<EOF
16406 #line 16407 "configure"
16407 #include "confdefs.h"
16408
16409 int main() {
16410
16411 ; return 0; }
16412 EOF
16413 if { (eval echo configure:16414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16414 rm -rf conftest*
16415
16416 echo "$ac_t""yes" 1>&6
16417 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)/lib"
16418
16419 else
16420 echo "configure: failed program was:" >&5
16421 cat conftest.$ac_ext >&5
16422 rm -rf conftest*
16423
16424 echo "$ac_t""no" 1>&6
16425 echo $ac_n "checking if the linker accepts -R""... $ac_c" 1>&6
16426 echo "configure:16427: checking if the linker accepts -R" >&5
16427 LDFLAGS="$saveLdflags -Wl,-R,/"
16428 cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16431
16432 int main() {
16433
16434 ; return 0; }
16435 EOF
16436 if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16437 rm -rf conftest*
16438
16439 echo "$ac_t""yes" 1>&6
16440 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)/lib"
16441 else
16442 echo "configure: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 rm -rf conftest*
16445
16446 echo "$ac_t""no" 1>&6
16447
16448 fi
16449 rm -f conftest*
16450
16451 fi
16452 rm -f conftest*
16453 LDFLAGS="$saveLdflags"
16454 else
16455 SHARED_LD="${CXX} -G -o"
16456 PIC_FLAG="-KPIC"
16457 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16458 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16459 SAMPLES_RPATH_FLAG="-R\$(top_builddir)/lib"
16460 fi
16461 ;;
16462
16463 *-*-darwin* )
16464 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16465 CFLAGS="$CFLAGS -fno-common"
16466 CXXFLAGS="$CXXFLAGS -fno-common"
16467 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16468 PIC_FLAG="-dynamic -fPIC"
16469 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16470 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16471 ;;
16472
16473 *-*-aix* )
16474 if test "$GCC" != "yes"; then
16475 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16476 set dummy makeC++SharedLib; ac_word=$2
16477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16478 echo "configure:16479: checking for $ac_word" >&5
16479 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16480 echo $ac_n "(cached) $ac_c" 1>&6
16481 else
16482 if test -n "$AIX_CXX_LD"; then
16483 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16484 else
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_AIX_CXX_LD="makeC++SharedLib"
16491 break
16492 fi
16493 done
16494 IFS="$ac_save_ifs"
16495 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16496 fi
16497 fi
16498 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16499 if test -n "$AIX_CXX_LD"; then
16500 echo "$ac_t""$AIX_CXX_LD" 1>&6
16501 else
16502 echo "$ac_t""no" 1>&6
16503 fi
16504
16505
16506 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16507 fi
16508 ;;
16509
16510 *-*-cygwin* | *-*-mingw32* )
16511 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16512
16513 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16514 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16515
16516 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16517
16518 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16519 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16520
16521 if test "$wxUSE_OPENGL" = "yes"; then
16522 LIBS="${LIBS} ${OPENGL_LIBS}"
16523 fi
16524 ;;
16525
16526 *-*-beos* )
16527 SHARED_LD="${LD} -shared -o"
16528 ;;
16529
16530 *-*-irix* )
16531 if test "$GCC" != "yes"; then
16532 PIC_FLAG="-KPIC"
16533 fi
16534 ;;
16535
16536 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16537 *-*-sunos4* | \
16538 *-*-osf* | \
16539 *-*-dgux5* | \
16540 *-*-sysv5* )
16541 ;;
16542
16543 *)
16544 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16545 esac
16546
16547 if test "x$WX_TARGET_LIBRARY" = "x"; then
16548 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16549 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16550 fi
16551
16552 WX_TARGET_LIBRARY_TYPE="so"
16553 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16554 fi
16555
16556 if test "$wxUSE_SHARED" = "no"; then
16557
16558 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16559 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16560 fi
16561
16562 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16563 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16564 fi
16565
16566 if test "$wxUSE_OPENGL" = "yes"; then
16567 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16568 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16569 else
16570 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16571 fi
16572
16573 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16574 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16575
16576 WX_TARGET_LIBRARY_TYPE="a"
16577 INSTALL_LIBRARY='$(INSTALL_DATA)'
16578
16579 STATIC_FLAG="yes"
16580 else
16581 STATIC_FLAG="no"
16582 fi
16583
16584 MACRESCOMP="@#"
16585 MACSETFILE="@#"
16586 MACRESWXCONFIG="#"
16587 if test "$wxUSE_MAC" = 1; then
16588 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16589 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16590 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16591 # Extract the first word of "Rez", so it can be a program name with args.
16592 set dummy Rez; ac_word=$2
16593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16594 echo "configure:16595: checking for $ac_word" >&5
16595 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16596 echo $ac_n "(cached) $ac_c" 1>&6
16597 else
16598 if test -n "$RESCOMP"; then
16599 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16600 else
16601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16602 ac_dummy="$PATH"
16603 for ac_dir in $ac_dummy; do
16604 test -z "$ac_dir" && ac_dir=.
16605 if test -f $ac_dir/$ac_word; then
16606 ac_cv_prog_RESCOMP="Rez"
16607 break
16608 fi
16609 done
16610 IFS="$ac_save_ifs"
16611 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16612 fi
16613 fi
16614 RESCOMP="$ac_cv_prog_RESCOMP"
16615 if test -n "$RESCOMP"; then
16616 echo "$ac_t""$RESCOMP" 1>&6
16617 else
16618 echo "$ac_t""no" 1>&6
16619 fi
16620
16621 # Extract the first word of "DeRez", so it can be a program name with args.
16622 set dummy DeRez; ac_word=$2
16623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16624 echo "configure:16625: checking for $ac_word" >&5
16625 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16626 echo $ac_n "(cached) $ac_c" 1>&6
16627 else
16628 if test -n "$DEREZ"; then
16629 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16630 else
16631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16632 ac_dummy="$PATH"
16633 for ac_dir in $ac_dummy; do
16634 test -z "$ac_dir" && ac_dir=.
16635 if test -f $ac_dir/$ac_word; then
16636 ac_cv_prog_DEREZ="DeRez"
16637 break
16638 fi
16639 done
16640 IFS="$ac_save_ifs"
16641 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16642 fi
16643 fi
16644 DEREZ="$ac_cv_prog_DEREZ"
16645 if test -n "$DEREZ"; then
16646 echo "$ac_t""$DEREZ" 1>&6
16647 else
16648 echo "$ac_t""no" 1>&6
16649 fi
16650
16651 # Extract the first word of "SetFile", so it can be a program name with args.
16652 set dummy SetFile; ac_word=$2
16653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16654 echo "configure:16655: checking for $ac_word" >&5
16655 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657 else
16658 if test -n "$SETFILE"; then
16659 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16660 else
16661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16662 ac_dummy="$PATH"
16663 for ac_dir in $ac_dummy; do
16664 test -z "$ac_dir" && ac_dir=.
16665 if test -f $ac_dir/$ac_word; then
16666 ac_cv_prog_SETFILE="SetFile"
16667 break
16668 fi
16669 done
16670 IFS="$ac_save_ifs"
16671 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16672 fi
16673 fi
16674 SETFILE="$ac_cv_prog_SETFILE"
16675 if test -n "$SETFILE"; then
16676 echo "$ac_t""$SETFILE" 1>&6
16677 else
16678 echo "$ac_t""no" 1>&6
16679 fi
16680
16681 MACOSX_BUNDLE="bundle"
16682 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16683 MACSETFILE="\$(SETFILE)"
16684 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16685 elif test "$wxUSE_COCOA" = 1; then
16686 # Extract the first word of "Rez", so it can be a program name with args.
16687 set dummy Rez; ac_word=$2
16688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16689 echo "configure:16690: checking for $ac_word" >&5
16690 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16691 echo $ac_n "(cached) $ac_c" 1>&6
16692 else
16693 if test -n "$RESCOMP"; then
16694 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16695 else
16696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16697 ac_dummy="$PATH"
16698 for ac_dir in $ac_dummy; do
16699 test -z "$ac_dir" && ac_dir=.
16700 if test -f $ac_dir/$ac_word; then
16701 ac_cv_prog_RESCOMP="Rez"
16702 break
16703 fi
16704 done
16705 IFS="$ac_save_ifs"
16706 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16707 fi
16708 fi
16709 RESCOMP="$ac_cv_prog_RESCOMP"
16710 if test -n "$RESCOMP"; then
16711 echo "$ac_t""$RESCOMP" 1>&6
16712 else
16713 echo "$ac_t""no" 1>&6
16714 fi
16715
16716 # Extract the first word of "DeRez", so it can be a program name with args.
16717 set dummy DeRez; ac_word=$2
16718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16719 echo "configure:16720: checking for $ac_word" >&5
16720 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16721 echo $ac_n "(cached) $ac_c" 1>&6
16722 else
16723 if test -n "$DEREZ"; then
16724 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16725 else
16726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16727 ac_dummy="$PATH"
16728 for ac_dir in $ac_dummy; do
16729 test -z "$ac_dir" && ac_dir=.
16730 if test -f $ac_dir/$ac_word; then
16731 ac_cv_prog_DEREZ="DeRez"
16732 break
16733 fi
16734 done
16735 IFS="$ac_save_ifs"
16736 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16737 fi
16738 fi
16739 DEREZ="$ac_cv_prog_DEREZ"
16740 if test -n "$DEREZ"; then
16741 echo "$ac_t""$DEREZ" 1>&6
16742 else
16743 echo "$ac_t""no" 1>&6
16744 fi
16745
16746 # Extract the first word of "SetFile", so it can be a program name with args.
16747 set dummy SetFile; ac_word=$2
16748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16749 echo "configure:16750: checking for $ac_word" >&5
16750 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16751 echo $ac_n "(cached) $ac_c" 1>&6
16752 else
16753 if test -n "$SETFILE"; then
16754 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16755 else
16756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16757 ac_dummy="$PATH"
16758 for ac_dir in $ac_dummy; do
16759 test -z "$ac_dir" && ac_dir=.
16760 if test -f $ac_dir/$ac_word; then
16761 ac_cv_prog_SETFILE="SetFile"
16762 break
16763 fi
16764 done
16765 IFS="$ac_save_ifs"
16766 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16767 fi
16768 fi
16769 SETFILE="$ac_cv_prog_SETFILE"
16770 if test -n "$SETFILE"; then
16771 echo "$ac_t""$SETFILE" 1>&6
16772 else
16773 echo "$ac_t""no" 1>&6
16774 fi
16775
16776 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16777 MACSETFILE="\$(SETFILE)"
16778 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16779 else
16780 if test "$wxUSE_PM" = 1; then
16781 MACRESCOMP="emxbind -ep"
16782 fi
16783 fi
16784
16785
16786 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16787 echo "configure:16788: checking for ANSI C header files" >&5
16788 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16789 echo $ac_n "(cached) $ac_c" 1>&6
16790 else
16791 cat > conftest.$ac_ext <<EOF
16792 #line 16793 "configure"
16793 #include "confdefs.h"
16794 #include <stdlib.h>
16795 #include <stdarg.h>
16796 #include <string.h>
16797 #include <float.h>
16798 EOF
16799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16800 { (eval echo configure:16801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16802 if test -z "$ac_err"; then
16803 rm -rf conftest*
16804 ac_cv_header_stdc=yes
16805 else
16806 echo "$ac_err" >&5
16807 echo "configure: failed program was:" >&5
16808 cat conftest.$ac_ext >&5
16809 rm -rf conftest*
16810 ac_cv_header_stdc=no
16811 fi
16812 rm -f conftest*
16813
16814 if test $ac_cv_header_stdc = yes; then
16815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16816 cat > conftest.$ac_ext <<EOF
16817 #line 16818 "configure"
16818 #include "confdefs.h"
16819 #include <string.h>
16820 EOF
16821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16822 egrep "memchr" >/dev/null 2>&1; then
16823 :
16824 else
16825 rm -rf conftest*
16826 ac_cv_header_stdc=no
16827 fi
16828 rm -f conftest*
16829
16830 fi
16831
16832 if test $ac_cv_header_stdc = yes; then
16833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16834 cat > conftest.$ac_ext <<EOF
16835 #line 16836 "configure"
16836 #include "confdefs.h"
16837 #include <stdlib.h>
16838 EOF
16839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16840 egrep "free" >/dev/null 2>&1; then
16841 :
16842 else
16843 rm -rf conftest*
16844 ac_cv_header_stdc=no
16845 fi
16846 rm -f conftest*
16847
16848 fi
16849
16850 if test $ac_cv_header_stdc = yes; then
16851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16852 if test "$cross_compiling" = yes; then
16853 :
16854 else
16855 cat > conftest.$ac_ext <<EOF
16856 #line 16857 "configure"
16857 #include "confdefs.h"
16858 #include <ctype.h>
16859 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16860 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16862 int main () { int i; for (i = 0; i < 256; i++)
16863 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16864 exit (0); }
16865
16866 EOF
16867 if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16868 then
16869 :
16870 else
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16873 rm -fr conftest*
16874 ac_cv_header_stdc=no
16875 fi
16876 rm -fr conftest*
16877 fi
16878
16879 fi
16880 fi
16881
16882 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16883 if test $ac_cv_header_stdc = yes; then
16884 cat >> confdefs.h <<\EOF
16885 #define STDC_HEADERS 1
16886 EOF
16887
16888 fi
16889
16890 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16891 echo "configure:16892: checking for mode_t" >&5
16892 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16893 echo $ac_n "(cached) $ac_c" 1>&6
16894 else
16895 cat > conftest.$ac_ext <<EOF
16896 #line 16897 "configure"
16897 #include "confdefs.h"
16898 #include <sys/types.h>
16899 #if STDC_HEADERS
16900 #include <stdlib.h>
16901 #include <stddef.h>
16902 #endif
16903 EOF
16904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16905 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16906 rm -rf conftest*
16907 ac_cv_type_mode_t=yes
16908 else
16909 rm -rf conftest*
16910 ac_cv_type_mode_t=no
16911 fi
16912 rm -f conftest*
16913
16914 fi
16915 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16916 if test $ac_cv_type_mode_t = no; then
16917 cat >> confdefs.h <<\EOF
16918 #define mode_t int
16919 EOF
16920
16921 fi
16922
16923 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16924 echo "configure:16925: checking for off_t" >&5
16925 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16926 echo $ac_n "(cached) $ac_c" 1>&6
16927 else
16928 cat > conftest.$ac_ext <<EOF
16929 #line 16930 "configure"
16930 #include "confdefs.h"
16931 #include <sys/types.h>
16932 #if STDC_HEADERS
16933 #include <stdlib.h>
16934 #include <stddef.h>
16935 #endif
16936 EOF
16937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16938 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16939 rm -rf conftest*
16940 ac_cv_type_off_t=yes
16941 else
16942 rm -rf conftest*
16943 ac_cv_type_off_t=no
16944 fi
16945 rm -f conftest*
16946
16947 fi
16948 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16949 if test $ac_cv_type_off_t = no; then
16950 cat >> confdefs.h <<\EOF
16951 #define off_t long
16952 EOF
16953
16954 fi
16955
16956 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16957 echo "configure:16958: checking for pid_t" >&5
16958 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16959 echo $ac_n "(cached) $ac_c" 1>&6
16960 else
16961 cat > conftest.$ac_ext <<EOF
16962 #line 16963 "configure"
16963 #include "confdefs.h"
16964 #include <sys/types.h>
16965 #if STDC_HEADERS
16966 #include <stdlib.h>
16967 #include <stddef.h>
16968 #endif
16969 EOF
16970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16971 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16972 rm -rf conftest*
16973 ac_cv_type_pid_t=yes
16974 else
16975 rm -rf conftest*
16976 ac_cv_type_pid_t=no
16977 fi
16978 rm -f conftest*
16979
16980 fi
16981 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16982 if test $ac_cv_type_pid_t = no; then
16983 cat >> confdefs.h <<\EOF
16984 #define pid_t int
16985 EOF
16986
16987 fi
16988
16989 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16990 echo "configure:16991: checking for size_t" >&5
16991 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16992 echo $ac_n "(cached) $ac_c" 1>&6
16993 else
16994 cat > conftest.$ac_ext <<EOF
16995 #line 16996 "configure"
16996 #include "confdefs.h"
16997 #include <sys/types.h>
16998 #if STDC_HEADERS
16999 #include <stdlib.h>
17000 #include <stddef.h>
17001 #endif
17002 EOF
17003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17004 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
17005 rm -rf conftest*
17006 ac_cv_type_size_t=yes
17007 else
17008 rm -rf conftest*
17009 ac_cv_type_size_t=no
17010 fi
17011 rm -f conftest*
17012
17013 fi
17014 echo "$ac_t""$ac_cv_type_size_t" 1>&6
17015 if test $ac_cv_type_size_t = no; then
17016 cat >> confdefs.h <<\EOF
17017 #define size_t unsigned
17018 EOF
17019
17020 fi
17021
17022 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
17023 echo "configure:17024: checking for uid_t in sys/types.h" >&5
17024 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
17025 echo $ac_n "(cached) $ac_c" 1>&6
17026 else
17027 cat > conftest.$ac_ext <<EOF
17028 #line 17029 "configure"
17029 #include "confdefs.h"
17030 #include <sys/types.h>
17031 EOF
17032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17033 egrep "uid_t" >/dev/null 2>&1; then
17034 rm -rf conftest*
17035 ac_cv_type_uid_t=yes
17036 else
17037 rm -rf conftest*
17038 ac_cv_type_uid_t=no
17039 fi
17040 rm -f conftest*
17041
17042 fi
17043
17044 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
17045 if test $ac_cv_type_uid_t = no; then
17046 cat >> confdefs.h <<\EOF
17047 #define uid_t int
17048 EOF
17049
17050 cat >> confdefs.h <<\EOF
17051 #define gid_t int
17052 EOF
17053
17054 fi
17055
17056
17057
17058 ac_ext=C
17059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17060 ac_cpp='$CXXCPP $CPPFLAGS'
17061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17063 cross_compiling=$ac_cv_prog_cxx_cross
17064
17065 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
17066 echo "configure:17067: checking if size_t is unsigned int" >&5
17067 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
17068 echo $ac_n "(cached) $ac_c" 1>&6
17069 else
17070
17071 cat > conftest.$ac_ext <<EOF
17072 #line 17073 "configure"
17073 #include "confdefs.h"
17074 #include <stddef.h>
17075 int main() {
17076
17077 return 0; }
17078
17079 struct Foo { void foo(size_t); void foo(unsigned int); };
17080
17081 int bar() {
17082
17083 ; return 0; }
17084 EOF
17085 if { (eval echo configure:17086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17086 rm -rf conftest*
17087 wx_cv_size_t_is_uint=no
17088 else
17089 echo "configure: failed program was:" >&5
17090 cat conftest.$ac_ext >&5
17091 rm -rf conftest*
17092 wx_cv_size_t_is_uint=yes
17093
17094 fi
17095 rm -f conftest*
17096
17097
17098 fi
17099
17100 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
17101
17102 if test "$wx_cv_size_t_is_uint" = "yes"; then
17103 cat >> confdefs.h <<\EOF
17104 #define wxSIZE_T_IS_UINT 1
17105 EOF
17106
17107 else
17108 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
17109 echo "configure:17110: checking if size_t is unsigned long" >&5
17110 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
17111 echo $ac_n "(cached) $ac_c" 1>&6
17112 else
17113 cat > conftest.$ac_ext <<EOF
17114 #line 17115 "configure"
17115 #include "confdefs.h"
17116 #include <stddef.h>
17117 int main() {
17118
17119 return 0; }
17120
17121 struct Foo { void foo(size_t); void foo(unsigned long); };
17122
17123 int bar() {
17124
17125 ; return 0; }
17126 EOF
17127 if { (eval echo configure:17128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17128 rm -rf conftest*
17129 wx_cv_size_t_is_ulong=no
17130 else
17131 echo "configure: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17133 rm -rf conftest*
17134 wx_cv_size_t_is_ulong=yes
17135
17136 fi
17137 rm -f conftest*
17138
17139 fi
17140
17141 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
17142
17143 if test "$wx_cv_size_t_is_ulong" = "yes"; then
17144 cat >> confdefs.h <<\EOF
17145 #define wxSIZE_T_IS_ULONG 1
17146 EOF
17147
17148 fi
17149 fi
17150
17151 ac_ext=c
17152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17153 ac_cpp='$CPP $CPPFLAGS'
17154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17156 cross_compiling=$ac_cv_prog_cc_cross
17157
17158
17159
17160 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
17161 echo "configure:17162: checking for pw_gecos in struct passwd" >&5
17162 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17163 echo $ac_n "(cached) $ac_c" 1>&6
17164 else
17165
17166 cat > conftest.$ac_ext <<EOF
17167 #line 17168 "configure"
17168 #include "confdefs.h"
17169 #include <pwd.h>
17170 int main() {
17171
17172 char *p;
17173 struct passwd *pw;
17174 p = pw->pw_gecos;
17175
17176 ; return 0; }
17177 EOF
17178 if { (eval echo configure:17179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17179 rm -rf conftest*
17180
17181 wx_cv_struct_pw_gecos=yes
17182
17183 else
17184 echo "configure: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17186 rm -rf conftest*
17187
17188 wx_cv_struct_pw_gecos=no
17189
17190
17191 fi
17192 rm -f conftest*
17193
17194
17195 fi
17196
17197 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
17198
17199 if test "$wx_cv_struct_pw_gecos" = "yes"; then
17200 cat >> confdefs.h <<\EOF
17201 #define HAVE_PW_GECOS 1
17202 EOF
17203
17204 fi
17205
17206
17207 if test "$wx_cv_sizeof_wchar_t" != "0"; then
17208 cat >> confdefs.h <<\EOF
17209 #define wxUSE_WCHAR_T 1
17210 EOF
17211
17212
17213 WCSLEN_FOUND=0
17214 WCHAR_LINK=
17215 for ac_func in wcslen
17216 do
17217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17218 echo "configure:17219: checking for $ac_func" >&5
17219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17220 echo $ac_n "(cached) $ac_c" 1>&6
17221 else
17222 cat > conftest.$ac_ext <<EOF
17223 #line 17224 "configure"
17224 #include "confdefs.h"
17225 /* System header to define __stub macros and hopefully few prototypes,
17226 which can conflict with char $ac_func(); below. */
17227 #include <assert.h>
17228 /* Override any gcc2 internal prototype to avoid an error. */
17229 /* We use char because int might match the return type of a gcc2
17230 builtin and then its argument prototype would still apply. */
17231 char $ac_func();
17232
17233 int main() {
17234
17235 /* The GNU C library defines this for functions which it implements
17236 to always fail with ENOSYS. Some functions are actually named
17237 something starting with __ and the normal name is an alias. */
17238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17239 choke me
17240 #else
17241 $ac_func();
17242 #endif
17243
17244 ; return 0; }
17245 EOF
17246 if { (eval echo configure:17247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17247 rm -rf conftest*
17248 eval "ac_cv_func_$ac_func=yes"
17249 else
17250 echo "configure: failed program was:" >&5
17251 cat conftest.$ac_ext >&5
17252 rm -rf conftest*
17253 eval "ac_cv_func_$ac_func=no"
17254 fi
17255 rm -f conftest*
17256 fi
17257
17258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17259 echo "$ac_t""yes" 1>&6
17260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17261 cat >> confdefs.h <<EOF
17262 #define $ac_tr_func 1
17263 EOF
17264 WCSLEN_FOUND=1
17265 else
17266 echo "$ac_t""no" 1>&6
17267 fi
17268 done
17269
17270
17271 if test "$WCSLEN_FOUND" = 0; then
17272 if test "$TOOLKIT" = "MSW"; then
17273 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17274 echo "configure:17275: checking for wcslen in -lmsvcrt" >&5
17275 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17278 else
17279 ac_save_LIBS="$LIBS"
17280 LIBS="-lmsvcrt $LIBS"
17281 cat > conftest.$ac_ext <<EOF
17282 #line 17283 "configure"
17283 #include "confdefs.h"
17284 /* Override any gcc2 internal prototype to avoid an error. */
17285 /* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17287 char wcslen();
17288
17289 int main() {
17290 wcslen()
17291 ; return 0; }
17292 EOF
17293 if { (eval echo configure:17294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17294 rm -rf conftest*
17295 eval "ac_cv_lib_$ac_lib_var=yes"
17296 else
17297 echo "configure: failed program was:" >&5
17298 cat conftest.$ac_ext >&5
17299 rm -rf conftest*
17300 eval "ac_cv_lib_$ac_lib_var=no"
17301 fi
17302 rm -f conftest*
17303 LIBS="$ac_save_LIBS"
17304
17305 fi
17306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17307 echo "$ac_t""yes" 1>&6
17308 WCHAR_OK=1
17309 else
17310 echo "$ac_t""no" 1>&6
17311 fi
17312
17313 else
17314 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17315 echo "configure:17316: checking for wcslen in -lw" >&5
17316 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17318 echo $ac_n "(cached) $ac_c" 1>&6
17319 else
17320 ac_save_LIBS="$LIBS"
17321 LIBS="-lw $LIBS"
17322 cat > conftest.$ac_ext <<EOF
17323 #line 17324 "configure"
17324 #include "confdefs.h"
17325 /* Override any gcc2 internal prototype to avoid an error. */
17326 /* We use char because int might match the return type of a gcc2
17327 builtin and then its argument prototype would still apply. */
17328 char wcslen();
17329
17330 int main() {
17331 wcslen()
17332 ; return 0; }
17333 EOF
17334 if { (eval echo configure:17335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17335 rm -rf conftest*
17336 eval "ac_cv_lib_$ac_lib_var=yes"
17337 else
17338 echo "configure: failed program was:" >&5
17339 cat conftest.$ac_ext >&5
17340 rm -rf conftest*
17341 eval "ac_cv_lib_$ac_lib_var=no"
17342 fi
17343 rm -f conftest*
17344 LIBS="$ac_save_LIBS"
17345
17346 fi
17347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17348 echo "$ac_t""yes" 1>&6
17349
17350 WCHAR_LINK=" -lw"
17351 WCSLEN_FOUND=1
17352
17353 else
17354 echo "$ac_t""no" 1>&6
17355 fi
17356
17357 fi
17358 fi
17359
17360 if test "$WCSLEN_FOUND" = 1; then
17361 cat >> confdefs.h <<\EOF
17362 #define HAVE_WCSLEN 1
17363 EOF
17364
17365 fi
17366
17367 for ac_func in wcsrtombs
17368 do
17369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17370 echo "configure:17371: checking for $ac_func" >&5
17371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17372 echo $ac_n "(cached) $ac_c" 1>&6
17373 else
17374 cat > conftest.$ac_ext <<EOF
17375 #line 17376 "configure"
17376 #include "confdefs.h"
17377 /* System header to define __stub macros and hopefully few prototypes,
17378 which can conflict with char $ac_func(); below. */
17379 #include <assert.h>
17380 /* Override any gcc2 internal prototype to avoid an error. */
17381 /* We use char because int might match the return type of a gcc2
17382 builtin and then its argument prototype would still apply. */
17383 char $ac_func();
17384
17385 int main() {
17386
17387 /* The GNU C library defines this for functions which it implements
17388 to always fail with ENOSYS. Some functions are actually named
17389 something starting with __ and the normal name is an alias. */
17390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17391 choke me
17392 #else
17393 $ac_func();
17394 #endif
17395
17396 ; return 0; }
17397 EOF
17398 if { (eval echo configure:17399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17399 rm -rf conftest*
17400 eval "ac_cv_func_$ac_func=yes"
17401 else
17402 echo "configure: failed program was:" >&5
17403 cat conftest.$ac_ext >&5
17404 rm -rf conftest*
17405 eval "ac_cv_func_$ac_func=no"
17406 fi
17407 rm -f conftest*
17408 fi
17409
17410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17411 echo "$ac_t""yes" 1>&6
17412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17413 cat >> confdefs.h <<EOF
17414 #define $ac_tr_func 1
17415 EOF
17416
17417 else
17418 echo "$ac_t""no" 1>&6
17419 fi
17420 done
17421
17422 else
17423 echo "configure: warning: Wide character support is unavailable" 1>&2
17424 fi
17425
17426
17427 ac_ext=C
17428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17429 ac_cpp='$CXXCPP $CPPFLAGS'
17430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17432 cross_compiling=$ac_cv_prog_cxx_cross
17433
17434
17435 for ac_func in vsnprintf
17436 do
17437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17438 echo "configure:17439: checking for $ac_func" >&5
17439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17440 echo $ac_n "(cached) $ac_c" 1>&6
17441 else
17442 cat > conftest.$ac_ext <<EOF
17443 #line 17444 "configure"
17444 #include "confdefs.h"
17445 /* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func(); below. */
17447 #include <assert.h>
17448 /* Override any gcc2 internal prototype to avoid an error. */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 /* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17454 char $ac_func();
17455
17456 int main() {
17457
17458 /* The GNU C library defines this for functions which it implements
17459 to always fail with ENOSYS. Some functions are actually named
17460 something starting with __ and the normal name is an alias. */
17461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17462 choke me
17463 #else
17464 $ac_func();
17465 #endif
17466
17467 ; return 0; }
17468 EOF
17469 if { (eval echo configure:17470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17470 rm -rf conftest*
17471 eval "ac_cv_func_$ac_func=yes"
17472 else
17473 echo "configure: failed program was:" >&5
17474 cat conftest.$ac_ext >&5
17475 rm -rf conftest*
17476 eval "ac_cv_func_$ac_func=no"
17477 fi
17478 rm -f conftest*
17479 fi
17480
17481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17482 echo "$ac_t""yes" 1>&6
17483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17484 cat >> confdefs.h <<EOF
17485 #define $ac_tr_func 1
17486 EOF
17487
17488 else
17489 echo "$ac_t""no" 1>&6
17490 fi
17491 done
17492
17493
17494 if test "$ac_cv_func_vsnprintf" = "yes"; then
17495 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17496 echo "configure:17497: checking for vsnprintf declaration" >&5
17497 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17498 echo $ac_n "(cached) $ac_c" 1>&6
17499 else
17500
17501 cat > conftest.$ac_ext <<EOF
17502 #line 17503 "configure"
17503 #include "confdefs.h"
17504
17505 #include <stdio.h>
17506 #include <stdarg.h>
17507
17508 int main() {
17509
17510 char *buf;
17511 va_list ap;
17512 vsnprintf(buf, 10u, "%s", ap);
17513
17514 ; return 0; }
17515 EOF
17516 if { (eval echo configure:17517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17517 rm -rf conftest*
17518 wx_cv_func_vsnprintf_decl=yes
17519 else
17520 echo "configure: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 rm -rf conftest*
17523 wx_cv_func_vsnprintf_decl=no
17524
17525 fi
17526 rm -f conftest*
17527
17528
17529 fi
17530
17531 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17532
17533 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17534 cat >> confdefs.h <<\EOF
17535 #define HAVE_VSNPRINTF_DECL 1
17536 EOF
17537
17538 fi
17539 fi
17540
17541 if test "$wxUSE_UNICODE" = yes; then
17542 for ac_func in fputwc wprintf vswprintf
17543 do
17544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17545 echo "configure:17546: checking for $ac_func" >&5
17546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17547 echo $ac_n "(cached) $ac_c" 1>&6
17548 else
17549 cat > conftest.$ac_ext <<EOF
17550 #line 17551 "configure"
17551 #include "confdefs.h"
17552 /* System header to define __stub macros and hopefully few prototypes,
17553 which can conflict with char $ac_func(); below. */
17554 #include <assert.h>
17555 /* Override any gcc2 internal prototype to avoid an error. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 /* We use char because int might match the return type of a gcc2
17560 builtin and then its argument prototype would still apply. */
17561 char $ac_func();
17562
17563 int main() {
17564
17565 /* The GNU C library defines this for functions which it implements
17566 to always fail with ENOSYS. Some functions are actually named
17567 something starting with __ and the normal name is an alias. */
17568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17569 choke me
17570 #else
17571 $ac_func();
17572 #endif
17573
17574 ; return 0; }
17575 EOF
17576 if { (eval echo configure:17577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17577 rm -rf conftest*
17578 eval "ac_cv_func_$ac_func=yes"
17579 else
17580 echo "configure: failed program was:" >&5
17581 cat conftest.$ac_ext >&5
17582 rm -rf conftest*
17583 eval "ac_cv_func_$ac_func=no"
17584 fi
17585 rm -f conftest*
17586 fi
17587
17588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17589 echo "$ac_t""yes" 1>&6
17590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17591 cat >> confdefs.h <<EOF
17592 #define $ac_tr_func 1
17593 EOF
17594
17595 else
17596 echo "$ac_t""no" 1>&6
17597 fi
17598 done
17599
17600
17601 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17602 echo "configure:17603: checking for _vsnwprintf" >&5
17603 cat > conftest.$ac_ext <<EOF
17604 #line 17605 "configure"
17605 #include "confdefs.h"
17606 #include <wchar.h>
17607 int main() {
17608 &_vsnwprintf;
17609 ; return 0; }
17610 EOF
17611 if { (eval echo configure:17612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17612 rm -rf conftest*
17613 echo "$ac_t""yes" 1>&6
17614 cat >> confdefs.h <<\EOF
17615 #define HAVE__VSNWPRINTF 1
17616 EOF
17617
17618 else
17619 echo "configure: failed program was:" >&5
17620 cat conftest.$ac_ext >&5
17621 rm -rf conftest*
17622 echo "$ac_t""no" 1>&6
17623 fi
17624 rm -f conftest*;
17625 fi
17626
17627 ac_ext=c
17628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17629 ac_cpp='$CPP $CPPFLAGS'
17630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17632 cross_compiling=$ac_cv_prog_cc_cross
17633
17634
17635
17636
17637 if test "$TOOLKIT" != "MSW"; then
17638
17639
17640
17641 ac_ext=C
17642 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17643 ac_cpp='$CXXCPP $CPPFLAGS'
17644 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17645 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17646 cross_compiling=$ac_cv_prog_cxx_cross
17647
17648
17649
17650 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17651 if test "${with_libiconv_prefix+set}" = set; then
17652 withval="$with_libiconv_prefix"
17653
17654 for dir in `echo "$withval" | tr : ' '`; do
17655 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17656 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17657 done
17658
17659 fi
17660
17661
17662 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17663 echo "configure:17664: checking for iconv" >&5
17664 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17665 echo $ac_n "(cached) $ac_c" 1>&6
17666 else
17667
17668 am_cv_func_iconv="no, consider installing GNU libiconv"
17669 am_cv_lib_iconv=no
17670 cat > conftest.$ac_ext <<EOF
17671 #line 17672 "configure"
17672 #include "confdefs.h"
17673 #include <stdlib.h>
17674 #include <iconv.h>
17675 int main() {
17676 iconv_t cd = iconv_open("","");
17677 iconv(cd,NULL,NULL,NULL,NULL);
17678 iconv_close(cd);
17679 ; return 0; }
17680 EOF
17681 if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17682 rm -rf conftest*
17683 am_cv_func_iconv=yes
17684 else
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 fi
17688 rm -f conftest*
17689 if test "$am_cv_func_iconv" != yes; then
17690 am_save_LIBS="$LIBS"
17691 LIBS="$LIBS -liconv"
17692 cat > conftest.$ac_ext <<EOF
17693 #line 17694 "configure"
17694 #include "confdefs.h"
17695 #include <stdlib.h>
17696 #include <iconv.h>
17697 int main() {
17698 iconv_t cd = iconv_open("","");
17699 iconv(cd,NULL,NULL,NULL,NULL);
17700 iconv_close(cd);
17701 ; return 0; }
17702 EOF
17703 if { (eval echo configure:17704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17704 rm -rf conftest*
17705 am_cv_lib_iconv=yes
17706 am_cv_func_iconv=yes
17707 else
17708 echo "configure: failed program was:" >&5
17709 cat conftest.$ac_ext >&5
17710 fi
17711 rm -f conftest*
17712 LIBS="$am_save_LIBS"
17713 fi
17714
17715 fi
17716
17717 echo "$ac_t""$am_cv_func_iconv" 1>&6
17718 if test "$am_cv_func_iconv" = yes; then
17719 cat >> confdefs.h <<\EOF
17720 #define HAVE_ICONV 1
17721 EOF
17722
17723 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17724 echo "configure:17725: checking if iconv needs const" >&5
17725 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17726 echo $ac_n "(cached) $ac_c" 1>&6
17727 else
17728 cat > conftest.$ac_ext <<EOF
17729 #line 17730 "configure"
17730 #include "confdefs.h"
17731
17732 #include <stdlib.h>
17733 #include <iconv.h>
17734 extern
17735 #ifdef __cplusplus
17736 "C"
17737 #endif
17738 #if defined(__STDC__) || defined(__cplusplus)
17739 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17740 #else
17741 size_t iconv();
17742 #endif
17743
17744 int main() {
17745
17746 ; return 0; }
17747 EOF
17748 if { (eval echo configure:17749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17749 rm -rf conftest*
17750 wx_cv_func_iconv_const="no"
17751 else
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17754 rm -rf conftest*
17755 wx_cv_func_iconv_const="yes"
17756
17757 fi
17758 rm -f conftest*
17759
17760 fi
17761
17762 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17763
17764 iconv_const=
17765 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17766 iconv_const="const"
17767 fi
17768
17769 cat >> confdefs.h <<EOF
17770 #define ICONV_CONST $iconv_const
17771 EOF
17772
17773 fi
17774 LIBICONV=
17775 if test "$am_cv_lib_iconv" = yes; then
17776 LIBICONV="-liconv"
17777 fi
17778
17779
17780 LIBS="$LIBICONV $LIBS"
17781 ac_ext=c
17782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17783 ac_cpp='$CPP $CPPFLAGS'
17784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17786 cross_compiling=$ac_cv_prog_cc_cross
17787
17788
17789 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17790 for ac_func in sigaction
17791 do
17792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17793 echo "configure:17794: checking for $ac_func" >&5
17794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17795 echo $ac_n "(cached) $ac_c" 1>&6
17796 else
17797 cat > conftest.$ac_ext <<EOF
17798 #line 17799 "configure"
17799 #include "confdefs.h"
17800 /* System header to define __stub macros and hopefully few prototypes,
17801 which can conflict with char $ac_func(); below. */
17802 #include <assert.h>
17803 /* Override any gcc2 internal prototype to avoid an error. */
17804 /* We use char because int might match the return type of a gcc2
17805 builtin and then its argument prototype would still apply. */
17806 char $ac_func();
17807
17808 int main() {
17809
17810 /* The GNU C library defines this for functions which it implements
17811 to always fail with ENOSYS. Some functions are actually named
17812 something starting with __ and the normal name is an alias. */
17813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17814 choke me
17815 #else
17816 $ac_func();
17817 #endif
17818
17819 ; return 0; }
17820 EOF
17821 if { (eval echo configure:17822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17822 rm -rf conftest*
17823 eval "ac_cv_func_$ac_func=yes"
17824 else
17825 echo "configure: failed program was:" >&5
17826 cat conftest.$ac_ext >&5
17827 rm -rf conftest*
17828 eval "ac_cv_func_$ac_func=no"
17829 fi
17830 rm -f conftest*
17831 fi
17832
17833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17834 echo "$ac_t""yes" 1>&6
17835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17836 cat >> confdefs.h <<EOF
17837 #define $ac_tr_func 1
17838 EOF
17839
17840 else
17841 echo "$ac_t""no" 1>&6
17842 fi
17843 done
17844
17845
17846 if test "$ac_cv_func_sigaction" = "no"; then
17847 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17848 wxUSE_ON_FATAL_EXCEPTION=no
17849 fi
17850
17851 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17852
17853 ac_ext=C
17854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17855 ac_cpp='$CXXCPP $CPPFLAGS'
17856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17858 cross_compiling=$ac_cv_prog_cxx_cross
17859
17860
17861 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17862 echo "configure:17863: checking for sa_handler type" >&5
17863 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17864 echo $ac_n "(cached) $ac_c" 1>&6
17865 else
17866
17867 cat > conftest.$ac_ext <<EOF
17868 #line 17869 "configure"
17869 #include "confdefs.h"
17870 #include <signal.h>
17871 int main() {
17872
17873 extern void testSigHandler(int);
17874
17875 struct sigaction sa;
17876 sa.sa_handler = testSigHandler;
17877
17878 ; return 0; }
17879 EOF
17880 if { (eval echo configure:17881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17881 rm -rf conftest*
17882
17883 wx_cv_type_sa_handler=int
17884
17885 else
17886 echo "configure: failed program was:" >&5
17887 cat conftest.$ac_ext >&5
17888 rm -rf conftest*
17889
17890 wx_cv_type_sa_handler=void
17891
17892 fi
17893 rm -f conftest*
17894
17895 fi
17896
17897 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17898
17899 ac_ext=c
17900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17901 ac_cpp='$CPP $CPPFLAGS'
17902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17904 cross_compiling=$ac_cv_prog_cc_cross
17905
17906
17907 cat >> confdefs.h <<EOF
17908 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17909 EOF
17910
17911 fi
17912 fi
17913
17914 for ac_func in mkstemp mktemp
17915 do
17916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17917 echo "configure:17918: checking for $ac_func" >&5
17918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17919 echo $ac_n "(cached) $ac_c" 1>&6
17920 else
17921 cat > conftest.$ac_ext <<EOF
17922 #line 17923 "configure"
17923 #include "confdefs.h"
17924 /* System header to define __stub macros and hopefully few prototypes,
17925 which can conflict with char $ac_func(); below. */
17926 #include <assert.h>
17927 /* Override any gcc2 internal prototype to avoid an error. */
17928 /* We use char because int might match the return type of a gcc2
17929 builtin and then its argument prototype would still apply. */
17930 char $ac_func();
17931
17932 int main() {
17933
17934 /* The GNU C library defines this for functions which it implements
17935 to always fail with ENOSYS. Some functions are actually named
17936 something starting with __ and the normal name is an alias. */
17937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17938 choke me
17939 #else
17940 $ac_func();
17941 #endif
17942
17943 ; return 0; }
17944 EOF
17945 if { (eval echo configure:17946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17946 rm -rf conftest*
17947 eval "ac_cv_func_$ac_func=yes"
17948 else
17949 echo "configure: failed program was:" >&5
17950 cat conftest.$ac_ext >&5
17951 rm -rf conftest*
17952 eval "ac_cv_func_$ac_func=no"
17953 fi
17954 rm -f conftest*
17955 fi
17956
17957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17958 echo "$ac_t""yes" 1>&6
17959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17960 cat >> confdefs.h <<EOF
17961 #define $ac_tr_func 1
17962 EOF
17963 break
17964 else
17965 echo "$ac_t""no" 1>&6
17966 fi
17967 done
17968
17969
17970 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17971 echo "configure:17972: checking for statfs" >&5
17972 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17973 echo $ac_n "(cached) $ac_c" 1>&6
17974 else
17975 cat > conftest.$ac_ext <<EOF
17976 #line 17977 "configure"
17977 #include "confdefs.h"
17978
17979 #if defined(__BSD__)
17980 #include <sys/param.h>
17981 #include <sys/mount.h>
17982 #else
17983 #include <sys/vfs.h>
17984 #endif
17985
17986 int main() {
17987
17988 long l;
17989 struct statfs fs;
17990 statfs("/", &fs);
17991 l = fs.f_bsize;
17992 l += fs.f_blocks;
17993 l += fs.f_bavail;
17994
17995 ; return 0; }
17996 EOF
17997 if { (eval echo configure:17998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17998 rm -rf conftest*
17999
18000 wx_cv_func_statfs=yes
18001
18002 else
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18005 rm -rf conftest*
18006
18007 wx_cv_func_statfs=no
18008
18009
18010 fi
18011 rm -f conftest*
18012
18013 fi
18014
18015 echo "$ac_t""$wx_cv_func_statfs" 1>&6
18016
18017 if test "$wx_cv_func_statfs" = "yes"; then
18018 wx_cv_type_statvfs_t="struct statfs"
18019 cat >> confdefs.h <<\EOF
18020 #define HAVE_STATFS 1
18021 EOF
18022
18023 else
18024 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
18025 echo "configure:18026: checking for statvfs" >&5
18026 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
18027 echo $ac_n "(cached) $ac_c" 1>&6
18028 else
18029 cat > conftest.$ac_ext <<EOF
18030 #line 18031 "configure"
18031 #include "confdefs.h"
18032
18033 #include <stddef.h>
18034 #include <sys/statvfs.h>
18035
18036 int main() {
18037
18038 statvfs("/", NULL);
18039
18040 ; return 0; }
18041 EOF
18042 if { (eval echo configure:18043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18043 rm -rf conftest*
18044 wx_cv_func_statvfs=yes
18045 else
18046 echo "configure: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18048 rm -rf conftest*
18049 wx_cv_func_statvfs=no
18050
18051 fi
18052 rm -f conftest*
18053
18054 fi
18055
18056 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
18057
18058 if test "$wx_cv_func_statvfs" = "yes"; then
18059
18060 ac_ext=C
18061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18062 ac_cpp='$CXXCPP $CPPFLAGS'
18063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18065 cross_compiling=$ac_cv_prog_cxx_cross
18066
18067
18068 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
18069 echo "configure:18070: checking for statvfs argument type" >&5
18070 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
18071 echo $ac_n "(cached) $ac_c" 1>&6
18072 else
18073 cat > conftest.$ac_ext <<EOF
18074 #line 18075 "configure"
18075 #include "confdefs.h"
18076
18077 #include <sys/statvfs.h>
18078
18079 int main() {
18080
18081 long l;
18082 statvfs_t fs;
18083 statvfs("/", &fs);
18084 l = fs.f_bsize;
18085 l += fs.f_blocks;
18086 l += fs.f_bavail;
18087
18088 ; return 0; }
18089 EOF
18090 if { (eval echo configure:18091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18091 rm -rf conftest*
18092 wx_cv_type_statvfs_t=statvfs_t
18093 else
18094 echo "configure: failed program was:" >&5
18095 cat conftest.$ac_ext >&5
18096 rm -rf conftest*
18097
18098 cat > conftest.$ac_ext <<EOF
18099 #line 18100 "configure"
18100 #include "confdefs.h"
18101
18102 #include <sys/statvfs.h>
18103
18104 int main() {
18105
18106 long l;
18107 struct statvfs fs;
18108 statvfs("/", &fs);
18109 l = fs.f_bsize;
18110 l += fs.f_blocks;
18111 l += fs.f_bavail;
18112
18113 ; return 0; }
18114 EOF
18115 if { (eval echo configure:18116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18116 rm -rf conftest*
18117 wx_cv_type_statvfs_t="struct statvfs"
18118 else
18119 echo "configure: failed program was:" >&5
18120 cat conftest.$ac_ext >&5
18121 rm -rf conftest*
18122 wx_cv_type_statvfs_t="unknown"
18123
18124 fi
18125 rm -f conftest*
18126
18127
18128 fi
18129 rm -f conftest*
18130
18131 fi
18132
18133 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18134
18135 ac_ext=c
18136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18137 ac_cpp='$CPP $CPPFLAGS'
18138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18140 cross_compiling=$ac_cv_prog_cc_cross
18141
18142
18143 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18144 cat >> confdefs.h <<\EOF
18145 #define HAVE_STATVFS 1
18146 EOF
18147
18148 fi
18149 else
18150 wx_cv_type_statvfs_t="unknown"
18151 fi
18152 fi
18153
18154 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18155 cat >> confdefs.h <<EOF
18156 #define WX_STATFS_T $wx_cv_type_statvfs_t
18157 EOF
18158
18159 else
18160 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18161 fi
18162
18163 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18164 for ac_func in fcntl flock
18165 do
18166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18167 echo "configure:18168: checking for $ac_func" >&5
18168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18169 echo $ac_n "(cached) $ac_c" 1>&6
18170 else
18171 cat > conftest.$ac_ext <<EOF
18172 #line 18173 "configure"
18173 #include "confdefs.h"
18174 /* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func(); below. */
18176 #include <assert.h>
18177 /* Override any gcc2 internal prototype to avoid an error. */
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18180 char $ac_func();
18181
18182 int main() {
18183
18184 /* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18188 choke me
18189 #else
18190 $ac_func();
18191 #endif
18192
18193 ; return 0; }
18194 EOF
18195 if { (eval echo configure:18196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18196 rm -rf conftest*
18197 eval "ac_cv_func_$ac_func=yes"
18198 else
18199 echo "configure: failed program was:" >&5
18200 cat conftest.$ac_ext >&5
18201 rm -rf conftest*
18202 eval "ac_cv_func_$ac_func=no"
18203 fi
18204 rm -f conftest*
18205 fi
18206
18207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18208 echo "$ac_t""yes" 1>&6
18209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18210 cat >> confdefs.h <<EOF
18211 #define $ac_tr_func 1
18212 EOF
18213 break
18214 else
18215 echo "$ac_t""no" 1>&6
18216 fi
18217 done
18218
18219
18220 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
18221 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
18222 wxUSE_SNGLINST_CHECKER=no
18223 fi
18224 fi
18225
18226 for ac_func in timegm
18227 do
18228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18229 echo "configure:18230: checking for $ac_func" >&5
18230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18231 echo $ac_n "(cached) $ac_c" 1>&6
18232 else
18233 cat > conftest.$ac_ext <<EOF
18234 #line 18235 "configure"
18235 #include "confdefs.h"
18236 /* System header to define __stub macros and hopefully few prototypes,
18237 which can conflict with char $ac_func(); below. */
18238 #include <assert.h>
18239 /* Override any gcc2 internal prototype to avoid an error. */
18240 /* We use char because int might match the return type of a gcc2
18241 builtin and then its argument prototype would still apply. */
18242 char $ac_func();
18243
18244 int main() {
18245
18246 /* The GNU C library defines this for functions which it implements
18247 to always fail with ENOSYS. Some functions are actually named
18248 something starting with __ and the normal name is an alias. */
18249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18250 choke me
18251 #else
18252 $ac_func();
18253 #endif
18254
18255 ; return 0; }
18256 EOF
18257 if { (eval echo configure:18258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18258 rm -rf conftest*
18259 eval "ac_cv_func_$ac_func=yes"
18260 else
18261 echo "configure: failed program was:" >&5
18262 cat conftest.$ac_ext >&5
18263 rm -rf conftest*
18264 eval "ac_cv_func_$ac_func=no"
18265 fi
18266 rm -f conftest*
18267 fi
18268
18269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18270 echo "$ac_t""yes" 1>&6
18271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18272 cat >> confdefs.h <<EOF
18273 #define $ac_tr_func 1
18274 EOF
18275
18276 else
18277 echo "$ac_t""no" 1>&6
18278 fi
18279 done
18280
18281
18282 for ac_func in putenv setenv
18283 do
18284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18285 echo "configure:18286: checking for $ac_func" >&5
18286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
18288 else
18289 cat > conftest.$ac_ext <<EOF
18290 #line 18291 "configure"
18291 #include "confdefs.h"
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func(); below. */
18294 #include <assert.h>
18295 /* Override any gcc2 internal prototype to avoid an error. */
18296 /* We use char because int might match the return type of a gcc2
18297 builtin and then its argument prototype would still apply. */
18298 char $ac_func();
18299
18300 int main() {
18301
18302 /* The GNU C library defines this for functions which it implements
18303 to always fail with ENOSYS. Some functions are actually named
18304 something starting with __ and the normal name is an alias. */
18305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18306 choke me
18307 #else
18308 $ac_func();
18309 #endif
18310
18311 ; return 0; }
18312 EOF
18313 if { (eval echo configure:18314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18314 rm -rf conftest*
18315 eval "ac_cv_func_$ac_func=yes"
18316 else
18317 echo "configure: failed program was:" >&5
18318 cat conftest.$ac_ext >&5
18319 rm -rf conftest*
18320 eval "ac_cv_func_$ac_func=no"
18321 fi
18322 rm -f conftest*
18323 fi
18324
18325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18326 echo "$ac_t""yes" 1>&6
18327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18328 cat >> confdefs.h <<EOF
18329 #define $ac_tr_func 1
18330 EOF
18331 break
18332 else
18333 echo "$ac_t""no" 1>&6
18334 fi
18335 done
18336
18337
18338 HAVE_SOME_SLEEP_FUNC=0
18339 if test "$USE_BEOS" = 1; then
18340 cat >> confdefs.h <<\EOF
18341 #define HAVE_SLEEP 1
18342 EOF
18343
18344 HAVE_SOME_SLEEP_FUNC=1
18345 fi
18346
18347 if test "$USE_DARWIN" = 1; then
18348 cat >> confdefs.h <<\EOF
18349 #define HAVE_USLEEP 1
18350 EOF
18351
18352 HAVE_SOME_SLEEP_FUNC=1
18353 fi
18354
18355 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18356 POSIX4_LINK=
18357 for ac_func in nanosleep
18358 do
18359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18360 echo "configure:18361: checking for $ac_func" >&5
18361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18362 echo $ac_n "(cached) $ac_c" 1>&6
18363 else
18364 cat > conftest.$ac_ext <<EOF
18365 #line 18366 "configure"
18366 #include "confdefs.h"
18367 /* System header to define __stub macros and hopefully few prototypes,
18368 which can conflict with char $ac_func(); below. */
18369 #include <assert.h>
18370 /* Override any gcc2 internal prototype to avoid an error. */
18371 /* We use char because int might match the return type of a gcc2
18372 builtin and then its argument prototype would still apply. */
18373 char $ac_func();
18374
18375 int main() {
18376
18377 /* The GNU C library defines this for functions which it implements
18378 to always fail with ENOSYS. Some functions are actually named
18379 something starting with __ and the normal name is an alias. */
18380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18381 choke me
18382 #else
18383 $ac_func();
18384 #endif
18385
18386 ; return 0; }
18387 EOF
18388 if { (eval echo configure:18389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18389 rm -rf conftest*
18390 eval "ac_cv_func_$ac_func=yes"
18391 else
18392 echo "configure: failed program was:" >&5
18393 cat conftest.$ac_ext >&5
18394 rm -rf conftest*
18395 eval "ac_cv_func_$ac_func=no"
18396 fi
18397 rm -f conftest*
18398 fi
18399
18400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18401 echo "$ac_t""yes" 1>&6
18402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18403 cat >> confdefs.h <<EOF
18404 #define $ac_tr_func 1
18405 EOF
18406 cat >> confdefs.h <<\EOF
18407 #define HAVE_NANOSLEEP 1
18408 EOF
18409
18410 else
18411 echo "$ac_t""no" 1>&6
18412 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18413 echo "configure:18414: checking for nanosleep in -lposix4" >&5
18414 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18416 echo $ac_n "(cached) $ac_c" 1>&6
18417 else
18418 ac_save_LIBS="$LIBS"
18419 LIBS="-lposix4 $LIBS"
18420 cat > conftest.$ac_ext <<EOF
18421 #line 18422 "configure"
18422 #include "confdefs.h"
18423 /* Override any gcc2 internal prototype to avoid an error. */
18424 /* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18426 char nanosleep();
18427
18428 int main() {
18429 nanosleep()
18430 ; return 0; }
18431 EOF
18432 if { (eval echo configure:18433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18433 rm -rf conftest*
18434 eval "ac_cv_lib_$ac_lib_var=yes"
18435 else
18436 echo "configure: failed program was:" >&5
18437 cat conftest.$ac_ext >&5
18438 rm -rf conftest*
18439 eval "ac_cv_lib_$ac_lib_var=no"
18440 fi
18441 rm -f conftest*
18442 LIBS="$ac_save_LIBS"
18443
18444 fi
18445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18446 echo "$ac_t""yes" 1>&6
18447
18448 cat >> confdefs.h <<\EOF
18449 #define HAVE_NANOSLEEP 1
18450 EOF
18451
18452 POSIX4_LINK=" -lposix4"
18453
18454 else
18455 echo "$ac_t""no" 1>&6
18456
18457 for ac_func in usleep
18458 do
18459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18460 echo "configure:18461: checking for $ac_func" >&5
18461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18462 echo $ac_n "(cached) $ac_c" 1>&6
18463 else
18464 cat > conftest.$ac_ext <<EOF
18465 #line 18466 "configure"
18466 #include "confdefs.h"
18467 /* System header to define __stub macros and hopefully few prototypes,
18468 which can conflict with char $ac_func(); below. */
18469 #include <assert.h>
18470 /* Override any gcc2 internal prototype to avoid an error. */
18471 /* We use char because int might match the return type of a gcc2
18472 builtin and then its argument prototype would still apply. */
18473 char $ac_func();
18474
18475 int main() {
18476
18477 /* The GNU C library defines this for functions which it implements
18478 to always fail with ENOSYS. Some functions are actually named
18479 something starting with __ and the normal name is an alias. */
18480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18481 choke me
18482 #else
18483 $ac_func();
18484 #endif
18485
18486 ; return 0; }
18487 EOF
18488 if { (eval echo configure:18489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18489 rm -rf conftest*
18490 eval "ac_cv_func_$ac_func=yes"
18491 else
18492 echo "configure: failed program was:" >&5
18493 cat conftest.$ac_ext >&5
18494 rm -rf conftest*
18495 eval "ac_cv_func_$ac_func=no"
18496 fi
18497 rm -f conftest*
18498 fi
18499
18500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18501 echo "$ac_t""yes" 1>&6
18502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18503 cat >> confdefs.h <<EOF
18504 #define $ac_tr_func 1
18505 EOF
18506 cat >> confdefs.h <<\EOF
18507 #define HAVE_USLEEP 1
18508 EOF
18509
18510 else
18511 echo "$ac_t""no" 1>&6
18512 echo "configure: warning: wxSleep() function will not work" 1>&2
18513
18514 fi
18515 done
18516
18517
18518
18519 fi
18520
18521
18522
18523 fi
18524 done
18525
18526 fi
18527
18528 for ac_func in uname gethostname
18529 do
18530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18531 echo "configure:18532: checking for $ac_func" >&5
18532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18533 echo $ac_n "(cached) $ac_c" 1>&6
18534 else
18535 cat > conftest.$ac_ext <<EOF
18536 #line 18537 "configure"
18537 #include "confdefs.h"
18538 /* System header to define __stub macros and hopefully few prototypes,
18539 which can conflict with char $ac_func(); below. */
18540 #include <assert.h>
18541 /* Override any gcc2 internal prototype to avoid an error. */
18542 /* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18544 char $ac_func();
18545
18546 int main() {
18547
18548 /* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18552 choke me
18553 #else
18554 $ac_func();
18555 #endif
18556
18557 ; return 0; }
18558 EOF
18559 if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18560 rm -rf conftest*
18561 eval "ac_cv_func_$ac_func=yes"
18562 else
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18565 rm -rf conftest*
18566 eval "ac_cv_func_$ac_func=no"
18567 fi
18568 rm -f conftest*
18569 fi
18570
18571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18572 echo "$ac_t""yes" 1>&6
18573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18574 cat >> confdefs.h <<EOF
18575 #define $ac_tr_func 1
18576 EOF
18577 break
18578 else
18579 echo "$ac_t""no" 1>&6
18580 fi
18581 done
18582
18583
18584
18585 ac_ext=C
18586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18587 ac_cpp='$CXXCPP $CPPFLAGS'
18588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18590 cross_compiling=$ac_cv_prog_cxx_cross
18591
18592
18593 for ac_func in strtok_r
18594 do
18595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18596 echo "configure:18597: checking for $ac_func" >&5
18597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18598 echo $ac_n "(cached) $ac_c" 1>&6
18599 else
18600 cat > conftest.$ac_ext <<EOF
18601 #line 18602 "configure"
18602 #include "confdefs.h"
18603 /* System header to define __stub macros and hopefully few prototypes,
18604 which can conflict with char $ac_func(); below. */
18605 #include <assert.h>
18606 /* Override any gcc2 internal prototype to avoid an error. */
18607 #ifdef __cplusplus
18608 extern "C"
18609 #endif
18610 /* We use char because int might match the return type of a gcc2
18611 builtin and then its argument prototype would still apply. */
18612 char $ac_func();
18613
18614 int main() {
18615
18616 /* The GNU C library defines this for functions which it implements
18617 to always fail with ENOSYS. Some functions are actually named
18618 something starting with __ and the normal name is an alias. */
18619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18620 choke me
18621 #else
18622 $ac_func();
18623 #endif
18624
18625 ; return 0; }
18626 EOF
18627 if { (eval echo configure:18628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18628 rm -rf conftest*
18629 eval "ac_cv_func_$ac_func=yes"
18630 else
18631 echo "configure: failed program was:" >&5
18632 cat conftest.$ac_ext >&5
18633 rm -rf conftest*
18634 eval "ac_cv_func_$ac_func=no"
18635 fi
18636 rm -f conftest*
18637 fi
18638
18639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18640 echo "$ac_t""yes" 1>&6
18641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18642 cat >> confdefs.h <<EOF
18643 #define $ac_tr_func 1
18644 EOF
18645
18646 else
18647 echo "$ac_t""no" 1>&6
18648 fi
18649 done
18650
18651
18652 ac_ext=c
18653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18654 ac_cpp='$CPP $CPPFLAGS'
18655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18657 cross_compiling=$ac_cv_prog_cc_cross
18658
18659
18660 INET_LINK=
18661 for ac_func in inet_addr
18662 do
18663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18664 echo "configure:18665: checking for $ac_func" >&5
18665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18666 echo $ac_n "(cached) $ac_c" 1>&6
18667 else
18668 cat > conftest.$ac_ext <<EOF
18669 #line 18670 "configure"
18670 #include "confdefs.h"
18671 /* System header to define __stub macros and hopefully few prototypes,
18672 which can conflict with char $ac_func(); below. */
18673 #include <assert.h>
18674 /* Override any gcc2 internal prototype to avoid an error. */
18675 /* We use char because int might match the return type of a gcc2
18676 builtin and then its argument prototype would still apply. */
18677 char $ac_func();
18678
18679 int main() {
18680
18681 /* The GNU C library defines this for functions which it implements
18682 to always fail with ENOSYS. Some functions are actually named
18683 something starting with __ and the normal name is an alias. */
18684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18685 choke me
18686 #else
18687 $ac_func();
18688 #endif
18689
18690 ; return 0; }
18691 EOF
18692 if { (eval echo configure:18693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18693 rm -rf conftest*
18694 eval "ac_cv_func_$ac_func=yes"
18695 else
18696 echo "configure: failed program was:" >&5
18697 cat conftest.$ac_ext >&5
18698 rm -rf conftest*
18699 eval "ac_cv_func_$ac_func=no"
18700 fi
18701 rm -f conftest*
18702 fi
18703
18704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18705 echo "$ac_t""yes" 1>&6
18706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18707 cat >> confdefs.h <<EOF
18708 #define $ac_tr_func 1
18709 EOF
18710 cat >> confdefs.h <<\EOF
18711 #define HAVE_INET_ADDR 1
18712 EOF
18713
18714 else
18715 echo "$ac_t""no" 1>&6
18716 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18717 echo "configure:18718: checking for inet_addr in -lnsl" >&5
18718 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18720 echo $ac_n "(cached) $ac_c" 1>&6
18721 else
18722 ac_save_LIBS="$LIBS"
18723 LIBS="-lnsl $LIBS"
18724 cat > conftest.$ac_ext <<EOF
18725 #line 18726 "configure"
18726 #include "confdefs.h"
18727 /* Override any gcc2 internal prototype to avoid an error. */
18728 /* We use char because int might match the return type of a gcc2
18729 builtin and then its argument prototype would still apply. */
18730 char inet_addr();
18731
18732 int main() {
18733 inet_addr()
18734 ; return 0; }
18735 EOF
18736 if { (eval echo configure:18737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18737 rm -rf conftest*
18738 eval "ac_cv_lib_$ac_lib_var=yes"
18739 else
18740 echo "configure: failed program was:" >&5
18741 cat conftest.$ac_ext >&5
18742 rm -rf conftest*
18743 eval "ac_cv_lib_$ac_lib_var=no"
18744 fi
18745 rm -f conftest*
18746 LIBS="$ac_save_LIBS"
18747
18748 fi
18749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18750 echo "$ac_t""yes" 1>&6
18751 INET_LINK="nsl"
18752 else
18753 echo "$ac_t""no" 1>&6
18754 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18755 echo "configure:18756: checking for inet_addr in -lresolv" >&5
18756 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18758 echo $ac_n "(cached) $ac_c" 1>&6
18759 else
18760 ac_save_LIBS="$LIBS"
18761 LIBS="-lresolv $LIBS"
18762 cat > conftest.$ac_ext <<EOF
18763 #line 18764 "configure"
18764 #include "confdefs.h"
18765 /* Override any gcc2 internal prototype to avoid an error. */
18766 /* We use char because int might match the return type of a gcc2
18767 builtin and then its argument prototype would still apply. */
18768 char inet_addr();
18769
18770 int main() {
18771 inet_addr()
18772 ; return 0; }
18773 EOF
18774 if { (eval echo configure:18775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18775 rm -rf conftest*
18776 eval "ac_cv_lib_$ac_lib_var=yes"
18777 else
18778 echo "configure: failed program was:" >&5
18779 cat conftest.$ac_ext >&5
18780 rm -rf conftest*
18781 eval "ac_cv_lib_$ac_lib_var=no"
18782 fi
18783 rm -f conftest*
18784 LIBS="$ac_save_LIBS"
18785
18786 fi
18787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18788 echo "$ac_t""yes" 1>&6
18789 INET_LINK="resolv"
18790 else
18791 echo "$ac_t""no" 1>&6
18792 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18793 echo "configure:18794: checking for inet_addr in -lsocket" >&5
18794 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18796 echo $ac_n "(cached) $ac_c" 1>&6
18797 else
18798 ac_save_LIBS="$LIBS"
18799 LIBS="-lsocket $LIBS"
18800 cat > conftest.$ac_ext <<EOF
18801 #line 18802 "configure"
18802 #include "confdefs.h"
18803 /* Override any gcc2 internal prototype to avoid an error. */
18804 /* We use char because int might match the return type of a gcc2
18805 builtin and then its argument prototype would still apply. */
18806 char inet_addr();
18807
18808 int main() {
18809 inet_addr()
18810 ; return 0; }
18811 EOF
18812 if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18813 rm -rf conftest*
18814 eval "ac_cv_lib_$ac_lib_var=yes"
18815 else
18816 echo "configure: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18818 rm -rf conftest*
18819 eval "ac_cv_lib_$ac_lib_var=no"
18820 fi
18821 rm -f conftest*
18822 LIBS="$ac_save_LIBS"
18823
18824 fi
18825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18826 echo "$ac_t""yes" 1>&6
18827 INET_LINK="socket"
18828
18829 else
18830 echo "$ac_t""no" 1>&6
18831 fi
18832
18833
18834 fi
18835
18836
18837 fi
18838
18839
18840
18841 fi
18842 done
18843
18844
18845 for ac_func in inet_aton
18846 do
18847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18848 echo "configure:18849: checking for $ac_func" >&5
18849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18850 echo $ac_n "(cached) $ac_c" 1>&6
18851 else
18852 cat > conftest.$ac_ext <<EOF
18853 #line 18854 "configure"
18854 #include "confdefs.h"
18855 /* System header to define __stub macros and hopefully few prototypes,
18856 which can conflict with char $ac_func(); below. */
18857 #include <assert.h>
18858 /* Override any gcc2 internal prototype to avoid an error. */
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18861 char $ac_func();
18862
18863 int main() {
18864
18865 /* The GNU C library defines this for functions which it implements
18866 to always fail with ENOSYS. Some functions are actually named
18867 something starting with __ and the normal name is an alias. */
18868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18869 choke me
18870 #else
18871 $ac_func();
18872 #endif
18873
18874 ; return 0; }
18875 EOF
18876 if { (eval echo configure:18877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18877 rm -rf conftest*
18878 eval "ac_cv_func_$ac_func=yes"
18879 else
18880 echo "configure: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18882 rm -rf conftest*
18883 eval "ac_cv_func_$ac_func=no"
18884 fi
18885 rm -f conftest*
18886 fi
18887
18888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18889 echo "$ac_t""yes" 1>&6
18890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18891 cat >> confdefs.h <<EOF
18892 #define $ac_tr_func 1
18893 EOF
18894 cat >> confdefs.h <<\EOF
18895 #define HAVE_INET_ATON 1
18896 EOF
18897
18898 else
18899 echo "$ac_t""no" 1>&6
18900 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18901 echo "configure:18902: checking for inet_aton in -l$INET_LINK" >&5
18902 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18904 echo $ac_n "(cached) $ac_c" 1>&6
18905 else
18906 ac_save_LIBS="$LIBS"
18907 LIBS="-l$INET_LINK $LIBS"
18908 cat > conftest.$ac_ext <<EOF
18909 #line 18910 "configure"
18910 #include "confdefs.h"
18911 /* Override any gcc2 internal prototype to avoid an error. */
18912 /* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18914 char inet_aton();
18915
18916 int main() {
18917 inet_aton()
18918 ; return 0; }
18919 EOF
18920 if { (eval echo configure:18921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18921 rm -rf conftest*
18922 eval "ac_cv_lib_$ac_lib_var=yes"
18923 else
18924 echo "configure: failed program was:" >&5
18925 cat conftest.$ac_ext >&5
18926 rm -rf conftest*
18927 eval "ac_cv_lib_$ac_lib_var=no"
18928 fi
18929 rm -f conftest*
18930 LIBS="$ac_save_LIBS"
18931
18932 fi
18933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18934 echo "$ac_t""yes" 1>&6
18935 cat >> confdefs.h <<\EOF
18936 #define HAVE_INET_ATON 1
18937 EOF
18938
18939 else
18940 echo "$ac_t""no" 1>&6
18941 fi
18942
18943
18944 fi
18945 done
18946
18947
18948 if test "x$INET_LINK" != "x"; then
18949 cat >> confdefs.h <<\EOF
18950 #define HAVE_INET_ADDR 1
18951 EOF
18952
18953 INET_LINK=" -l$INET_LINK"
18954 fi
18955
18956 fi
18957
18958
18959 cat > confcache <<\EOF
18960 # This file is a shell script that caches the results of configure
18961 # tests run on this system so they can be shared between configure
18962 # scripts and configure runs. It is not useful on other systems.
18963 # If it contains results you don't want to keep, you may remove or edit it.
18964 #
18965 # By default, configure uses ./config.cache as the cache file,
18966 # creating it if it does not exist already. You can give configure
18967 # the --cache-file=FILE option to use a different cache file; that is
18968 # what configure does when it calls configure scripts in
18969 # subdirectories, so they share the cache.
18970 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18971 # config.status only pays attention to the cache file if you give it the
18972 # --recheck option to rerun configure.
18973 #
18974 EOF
18975 # The following way of writing the cache mishandles newlines in values,
18976 # but we know of no workaround that is simple, portable, and efficient.
18977 # So, don't put newlines in cache variables' values.
18978 # Ultrix sh set writes to stderr and can't be redirected directly,
18979 # and sets the high bit in the cache file unless we assign to the vars.
18980 (set) 2>&1 |
18981 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18982 *ac_space=\ *)
18983 # `set' does not quote correctly, so add quotes (double-quote substitution
18984 # turns \\\\ into \\, and sed turns \\ into \).
18985 sed -n \
18986 -e "s/'/'\\\\''/g" \
18987 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18988 ;;
18989 *)
18990 # `set' quotes correctly as required by POSIX, so do not add quotes.
18991 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18992 ;;
18993 esac >> confcache
18994 if cmp -s $cache_file confcache; then
18995 :
18996 else
18997 if test -w $cache_file; then
18998 echo "updating cache $cache_file"
18999 cat confcache > $cache_file
19000 else
19001 echo "not updating unwritable cache $cache_file"
19002 fi
19003 fi
19004 rm -f confcache
19005
19006
19007
19008 CPP_MT_FLAG=
19009 if test "$TOOLKIT" != "MSW"; then
19010
19011
19012 THREADS_LINK=
19013 THREADS_CFLAGS=
19014
19015 if test "$wxUSE_THREADS" = "yes" ; then
19016 if test "$USE_BEOS" = 1; then
19017 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
19018 wxUSE_THREADS="no"
19019 fi
19020 fi
19021
19022 if test "$wxUSE_THREADS" = "yes" ; then
19023
19024
19025 THREAD_OPTS="-pthread"
19026 case "${host}" in
19027 *-*-solaris2* | *-*-sunos4* )
19028 if test "x$GCC" = "xyes"; then
19029 THREAD_OPTS="-pthreads $THREAD_OPTS"
19030 else
19031 THREAD_OPTS="-mt $THREAD_OPTS"
19032 fi
19033 ;;
19034 *-*-freebsd*)
19035 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
19036 ;;
19037 *-*-darwin* | *-*-cygwin* )
19038 THREAD_OPTS=""
19039 ;;
19040 *-*-aix*)
19041 THREAD_OPTS="pthreads"
19042 ;;
19043 *-hp-hpux* )
19044 if test "x$GCC" != "xyes"; then
19045 THREAD_OPTS=""
19046 fi
19047 ;;
19048
19049 *-*-irix* )
19050 if test "x$GCC" = "xyes"; then
19051 THREAD_OPTS=""
19052 fi
19053 ;;
19054
19055 *-*-*UnixWare*)
19056 if test "x$GCC" != "xyes"; then
19057 THREAD_OPTS="-Ethread"
19058 fi
19059 ;;
19060 esac
19061
19062 THREAD_OPTS="$THREAD_OPTS pthread none"
19063
19064 THREADS_OK=no
19065 for flag in $THREAD_OPTS; do
19066 case $flag in
19067 none)
19068 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
19069 echo "configure:19070: checking whether pthreads work without any flags" >&5
19070 ;;
19071
19072 -*)
19073 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
19074 echo "configure:19075: checking whether pthreads work with $flag" >&5
19075 THREADS_CFLAGS="$flag"
19076 ;;
19077
19078 *)
19079 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
19080 echo "configure:19081: checking for the pthreads library -l$flag" >&5
19081 THREADS_LINK="-l$flag"
19082 ;;
19083 esac
19084
19085 save_LIBS="$LIBS"
19086 save_CFLAGS="$CFLAGS"
19087 LIBS="$THREADS_LINK $LIBS"
19088 CFLAGS="$THREADS_CFLAGS $CFLAGS"
19089
19090 cat > conftest.$ac_ext <<EOF
19091 #line 19092 "configure"
19092 #include "confdefs.h"
19093 #include <pthread.h>
19094 int main() {
19095 pthread_create(0,0,0,0);
19096 ; return 0; }
19097 EOF
19098 if { (eval echo configure:19099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19099 rm -rf conftest*
19100 THREADS_OK=yes
19101 else
19102 echo "configure: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
19104 fi
19105 rm -f conftest*
19106
19107 LIBS="$save_LIBS"
19108 CFLAGS="$save_CFLAGS"
19109
19110 echo "$ac_t""$THREADS_OK" 1>&6
19111 if test "x$THREADS_OK" = "xyes"; then
19112 break;
19113 fi
19114
19115 THREADS_LINK=""
19116 THREADS_CFLAGS=""
19117 done
19118
19119 if test "x$THREADS_OK" != "xyes"; then
19120 wxUSE_THREADS=no
19121 echo "configure: warning: No thread support on this system... disabled" 1>&2
19122 else
19123 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19124 LIBS="$THREADS_LINK $LIBS"
19125
19126 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
19127 echo "configure:19128: checking if more special flags are required for pthreads" >&5
19128 flag=no
19129 case "${host}" in
19130 *-aix*)
19131 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19132 flag="-D_THREAD_SAFE"
19133 ;;
19134 *-freebsd*)
19135 flag="-D_THREAD_SAFE"
19136 ;;
19137 *-hp-hpux* )
19138 flag="-D_REENTRANT"
19139 if test "x$GCC" != "xyes"; then
19140 flag="$flag -D_RWSTD_MULTI_THREAD"
19141 fi
19142 ;;
19143 *solaris* | alpha*-osf*)
19144 flag="-D_REENTRANT"
19145 ;;
19146 esac
19147 echo "$ac_t""${flag}" 1>&6
19148 if test "x$flag" != xno; then
19149 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
19150 fi
19151
19152 if test "x$THREADS_CFLAGS" != "x"; then
19153 CFLAGS="$CFLAGS $THREADS_CFLAGS"
19154 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19155 fi
19156 fi
19157 fi
19158
19159 if test "$wxUSE_THREADS" = "yes" ; then
19160 for ac_func in thr_setconcurrency
19161 do
19162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19163 echo "configure:19164: checking for $ac_func" >&5
19164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19165 echo $ac_n "(cached) $ac_c" 1>&6
19166 else
19167 cat > conftest.$ac_ext <<EOF
19168 #line 19169 "configure"
19169 #include "confdefs.h"
19170 /* System header to define __stub macros and hopefully few prototypes,
19171 which can conflict with char $ac_func(); below. */
19172 #include <assert.h>
19173 /* Override any gcc2 internal prototype to avoid an error. */
19174 /* We use char because int might match the return type of a gcc2
19175 builtin and then its argument prototype would still apply. */
19176 char $ac_func();
19177
19178 int main() {
19179
19180 /* The GNU C library defines this for functions which it implements
19181 to always fail with ENOSYS. Some functions are actually named
19182 something starting with __ and the normal name is an alias. */
19183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19184 choke me
19185 #else
19186 $ac_func();
19187 #endif
19188
19189 ; return 0; }
19190 EOF
19191 if { (eval echo configure:19192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19192 rm -rf conftest*
19193 eval "ac_cv_func_$ac_func=yes"
19194 else
19195 echo "configure: failed program was:" >&5
19196 cat conftest.$ac_ext >&5
19197 rm -rf conftest*
19198 eval "ac_cv_func_$ac_func=no"
19199 fi
19200 rm -f conftest*
19201 fi
19202
19203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19204 echo "$ac_t""yes" 1>&6
19205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19206 cat >> confdefs.h <<EOF
19207 #define $ac_tr_func 1
19208 EOF
19209
19210 else
19211 echo "$ac_t""no" 1>&6
19212 fi
19213 done
19214
19215
19216 for ac_hdr in sched.h
19217 do
19218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19220 echo "configure:19221: checking for $ac_hdr" >&5
19221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19222 echo $ac_n "(cached) $ac_c" 1>&6
19223 else
19224 cat > conftest.$ac_ext <<EOF
19225 #line 19226 "configure"
19226 #include "confdefs.h"
19227 #include <$ac_hdr>
19228 EOF
19229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19230 { (eval echo configure:19231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19232 if test -z "$ac_err"; then
19233 rm -rf conftest*
19234 eval "ac_cv_header_$ac_safe=yes"
19235 else
19236 echo "$ac_err" >&5
19237 echo "configure: failed program was:" >&5
19238 cat conftest.$ac_ext >&5
19239 rm -rf conftest*
19240 eval "ac_cv_header_$ac_safe=no"
19241 fi
19242 rm -f conftest*
19243 fi
19244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19245 echo "$ac_t""yes" 1>&6
19246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19247 cat >> confdefs.h <<EOF
19248 #define $ac_tr_hdr 1
19249 EOF
19250
19251 else
19252 echo "$ac_t""no" 1>&6
19253 fi
19254 done
19255
19256 if test "$ac_cv_header_sched_h" = "yes"; then
19257 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
19258 echo "configure:19259: checking for sched_yield" >&5
19259 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19260 echo $ac_n "(cached) $ac_c" 1>&6
19261 else
19262 cat > conftest.$ac_ext <<EOF
19263 #line 19264 "configure"
19264 #include "confdefs.h"
19265 /* System header to define __stub macros and hopefully few prototypes,
19266 which can conflict with char sched_yield(); below. */
19267 #include <assert.h>
19268 /* Override any gcc2 internal prototype to avoid an error. */
19269 /* We use char because int might match the return type of a gcc2
19270 builtin and then its argument prototype would still apply. */
19271 char sched_yield();
19272
19273 int main() {
19274
19275 /* The GNU C library defines this for functions which it implements
19276 to always fail with ENOSYS. Some functions are actually named
19277 something starting with __ and the normal name is an alias. */
19278 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19279 choke me
19280 #else
19281 sched_yield();
19282 #endif
19283
19284 ; return 0; }
19285 EOF
19286 if { (eval echo configure:19287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19287 rm -rf conftest*
19288 eval "ac_cv_func_sched_yield=yes"
19289 else
19290 echo "configure: failed program was:" >&5
19291 cat conftest.$ac_ext >&5
19292 rm -rf conftest*
19293 eval "ac_cv_func_sched_yield=no"
19294 fi
19295 rm -f conftest*
19296 fi
19297
19298 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19299 echo "$ac_t""yes" 1>&6
19300 cat >> confdefs.h <<\EOF
19301 #define HAVE_SCHED_YIELD 1
19302 EOF
19303
19304 else
19305 echo "$ac_t""no" 1>&6
19306
19307 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19308 echo "configure:19309: checking for sched_yield in -lposix4" >&5
19309 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19311 echo $ac_n "(cached) $ac_c" 1>&6
19312 else
19313 ac_save_LIBS="$LIBS"
19314 LIBS="-lposix4 $LIBS"
19315 cat > conftest.$ac_ext <<EOF
19316 #line 19317 "configure"
19317 #include "confdefs.h"
19318 /* Override any gcc2 internal prototype to avoid an error. */
19319 /* We use char because int might match the return type of a gcc2
19320 builtin and then its argument prototype would still apply. */
19321 char sched_yield();
19322
19323 int main() {
19324 sched_yield()
19325 ; return 0; }
19326 EOF
19327 if { (eval echo configure:19328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19328 rm -rf conftest*
19329 eval "ac_cv_lib_$ac_lib_var=yes"
19330 else
19331 echo "configure: failed program was:" >&5
19332 cat conftest.$ac_ext >&5
19333 rm -rf conftest*
19334 eval "ac_cv_lib_$ac_lib_var=no"
19335 fi
19336 rm -f conftest*
19337 LIBS="$ac_save_LIBS"
19338
19339 fi
19340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19341 echo "$ac_t""yes" 1>&6
19342 cat >> confdefs.h <<\EOF
19343 #define HAVE_SCHED_YIELD 1
19344 EOF
19345 POSIX4_LINK=" -lposix4"
19346 else
19347 echo "$ac_t""no" 1>&6
19348 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19349
19350 fi
19351
19352
19353
19354 fi
19355
19356 fi
19357
19358 HAVE_PRIOR_FUNCS=0
19359 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19360 echo "configure:19361: checking for pthread_attr_getschedpolicy" >&5
19361 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19362 echo $ac_n "(cached) $ac_c" 1>&6
19363 else
19364 cat > conftest.$ac_ext <<EOF
19365 #line 19366 "configure"
19366 #include "confdefs.h"
19367 /* System header to define __stub macros and hopefully few prototypes,
19368 which can conflict with char pthread_attr_getschedpolicy(); below. */
19369 #include <assert.h>
19370 /* Override any gcc2 internal prototype to avoid an error. */
19371 /* We use char because int might match the return type of a gcc2
19372 builtin and then its argument prototype would still apply. */
19373 char pthread_attr_getschedpolicy();
19374
19375 int main() {
19376
19377 /* The GNU C library defines this for functions which it implements
19378 to always fail with ENOSYS. Some functions are actually named
19379 something starting with __ and the normal name is an alias. */
19380 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19381 choke me
19382 #else
19383 pthread_attr_getschedpolicy();
19384 #endif
19385
19386 ; return 0; }
19387 EOF
19388 if { (eval echo configure:19389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19389 rm -rf conftest*
19390 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19391 else
19392 echo "configure: failed program was:" >&5
19393 cat conftest.$ac_ext >&5
19394 rm -rf conftest*
19395 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19396 fi
19397 rm -f conftest*
19398 fi
19399
19400 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19401 echo "$ac_t""yes" 1>&6
19402 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19403 echo "configure:19404: checking for pthread_attr_setschedparam" >&5
19404 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19405 echo $ac_n "(cached) $ac_c" 1>&6
19406 else
19407 cat > conftest.$ac_ext <<EOF
19408 #line 19409 "configure"
19409 #include "confdefs.h"
19410 /* System header to define __stub macros and hopefully few prototypes,
19411 which can conflict with char pthread_attr_setschedparam(); below. */
19412 #include <assert.h>
19413 /* Override any gcc2 internal prototype to avoid an error. */
19414 /* We use char because int might match the return type of a gcc2
19415 builtin and then its argument prototype would still apply. */
19416 char pthread_attr_setschedparam();
19417
19418 int main() {
19419
19420 /* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19424 choke me
19425 #else
19426 pthread_attr_setschedparam();
19427 #endif
19428
19429 ; return 0; }
19430 EOF
19431 if { (eval echo configure:19432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19432 rm -rf conftest*
19433 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19434 else
19435 echo "configure: failed program was:" >&5
19436 cat conftest.$ac_ext >&5
19437 rm -rf conftest*
19438 eval "ac_cv_func_pthread_attr_setschedparam=no"
19439 fi
19440 rm -f conftest*
19441 fi
19442
19443 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19444 echo "$ac_t""yes" 1>&6
19445 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19446 echo "configure:19447: checking for sched_get_priority_max" >&5
19447 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19448 echo $ac_n "(cached) $ac_c" 1>&6
19449 else
19450 cat > conftest.$ac_ext <<EOF
19451 #line 19452 "configure"
19452 #include "confdefs.h"
19453 /* System header to define __stub macros and hopefully few prototypes,
19454 which can conflict with char sched_get_priority_max(); below. */
19455 #include <assert.h>
19456 /* Override any gcc2 internal prototype to avoid an error. */
19457 /* We use char because int might match the return type of a gcc2
19458 builtin and then its argument prototype would still apply. */
19459 char sched_get_priority_max();
19460
19461 int main() {
19462
19463 /* The GNU C library defines this for functions which it implements
19464 to always fail with ENOSYS. Some functions are actually named
19465 something starting with __ and the normal name is an alias. */
19466 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19467 choke me
19468 #else
19469 sched_get_priority_max();
19470 #endif
19471
19472 ; return 0; }
19473 EOF
19474 if { (eval echo configure:19475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19475 rm -rf conftest*
19476 eval "ac_cv_func_sched_get_priority_max=yes"
19477 else
19478 echo "configure: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19480 rm -rf conftest*
19481 eval "ac_cv_func_sched_get_priority_max=no"
19482 fi
19483 rm -f conftest*
19484 fi
19485
19486 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19487 echo "$ac_t""yes" 1>&6
19488 HAVE_PRIOR_FUNCS=1
19489 else
19490 echo "$ac_t""no" 1>&6
19491 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19492 echo "configure:19493: checking for sched_get_priority_max in -lposix4" >&5
19493 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19495 echo $ac_n "(cached) $ac_c" 1>&6
19496 else
19497 ac_save_LIBS="$LIBS"
19498 LIBS="-lposix4 $LIBS"
19499 cat > conftest.$ac_ext <<EOF
19500 #line 19501 "configure"
19501 #include "confdefs.h"
19502 /* Override any gcc2 internal prototype to avoid an error. */
19503 /* We use char because int might match the return type of a gcc2
19504 builtin and then its argument prototype would still apply. */
19505 char sched_get_priority_max();
19506
19507 int main() {
19508 sched_get_priority_max()
19509 ; return 0; }
19510 EOF
19511 if { (eval echo configure:19512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19512 rm -rf conftest*
19513 eval "ac_cv_lib_$ac_lib_var=yes"
19514 else
19515 echo "configure: failed program was:" >&5
19516 cat conftest.$ac_ext >&5
19517 rm -rf conftest*
19518 eval "ac_cv_lib_$ac_lib_var=no"
19519 fi
19520 rm -f conftest*
19521 LIBS="$ac_save_LIBS"
19522
19523 fi
19524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19525 echo "$ac_t""yes" 1>&6
19526
19527 HAVE_PRIOR_FUNCS=1
19528 POSIX4_LINK=" -lposix4"
19529
19530 else
19531 echo "$ac_t""no" 1>&6
19532 fi
19533
19534
19535 fi
19536
19537
19538 else
19539 echo "$ac_t""no" 1>&6
19540 fi
19541
19542
19543 else
19544 echo "$ac_t""no" 1>&6
19545 fi
19546
19547
19548 if test "$HAVE_PRIOR_FUNCS" = 1; then
19549 cat >> confdefs.h <<\EOF
19550 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19551 EOF
19552
19553 else
19554 echo "configure: warning: Setting thread priority will not work" 1>&2
19555 fi
19556
19557 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19558 echo "configure:19559: checking for pthread_cancel" >&5
19559 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19560 echo $ac_n "(cached) $ac_c" 1>&6
19561 else
19562 cat > conftest.$ac_ext <<EOF
19563 #line 19564 "configure"
19564 #include "confdefs.h"
19565 /* System header to define __stub macros and hopefully few prototypes,
19566 which can conflict with char pthread_cancel(); below. */
19567 #include <assert.h>
19568 /* Override any gcc2 internal prototype to avoid an error. */
19569 /* We use char because int might match the return type of a gcc2
19570 builtin and then its argument prototype would still apply. */
19571 char pthread_cancel();
19572
19573 int main() {
19574
19575 /* The GNU C library defines this for functions which it implements
19576 to always fail with ENOSYS. Some functions are actually named
19577 something starting with __ and the normal name is an alias. */
19578 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19579 choke me
19580 #else
19581 pthread_cancel();
19582 #endif
19583
19584 ; return 0; }
19585 EOF
19586 if { (eval echo configure:19587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19587 rm -rf conftest*
19588 eval "ac_cv_func_pthread_cancel=yes"
19589 else
19590 echo "configure: failed program was:" >&5
19591 cat conftest.$ac_ext >&5
19592 rm -rf conftest*
19593 eval "ac_cv_func_pthread_cancel=no"
19594 fi
19595 rm -f conftest*
19596 fi
19597
19598 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19599 echo "$ac_t""yes" 1>&6
19600 cat >> confdefs.h <<\EOF
19601 #define HAVE_PTHREAD_CANCEL 1
19602 EOF
19603
19604 else
19605 echo "$ac_t""no" 1>&6
19606 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19607 fi
19608
19609
19610 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19611 echo "configure:19612: checking for pthread_cleanup_push/pop" >&5
19612 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19613 echo $ac_n "(cached) $ac_c" 1>&6
19614 else
19615
19616 cat > conftest.$ac_ext <<EOF
19617 #line 19618 "configure"
19618 #include "confdefs.h"
19619 #include <pthread.h>
19620 int main() {
19621
19622 pthread_cleanup_push(NULL, NULL);
19623 pthread_cleanup_pop(0);
19624
19625 ; return 0; }
19626 EOF
19627 if { (eval echo configure:19628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19628 rm -rf conftest*
19629
19630 wx_cv_func_pthread_cleanup_push=yes
19631
19632 else
19633 echo "configure: failed program was:" >&5
19634 cat conftest.$ac_ext >&5
19635 rm -rf conftest*
19636
19637 wx_cv_func_pthread_cleanup_push=no
19638
19639 fi
19640 rm -f conftest*
19641
19642 fi
19643
19644 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19645
19646 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19647 cat >> confdefs.h <<\EOF
19648 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19649 EOF
19650
19651 fi
19652
19653
19654 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19655 echo "configure:19656: checking for pthread_mutexattr_t" >&5
19656 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19657 echo $ac_n "(cached) $ac_c" 1>&6
19658 else
19659
19660 cat > conftest.$ac_ext <<EOF
19661 #line 19662 "configure"
19662 #include "confdefs.h"
19663 #include <pthread.h>
19664 int main() {
19665
19666 pthread_mutexattr_t attr;
19667 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19668
19669 ; return 0; }
19670 EOF
19671 if { (eval echo configure:19672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19672 rm -rf conftest*
19673
19674 wx_cv_type_pthread_mutexattr_t=yes
19675
19676 else
19677 echo "configure: failed program was:" >&5
19678 cat conftest.$ac_ext >&5
19679 rm -rf conftest*
19680
19681 wx_cv_type_pthread_mutexattr_t=no
19682
19683
19684 fi
19685 rm -f conftest*
19686
19687 fi
19688
19689 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19690
19691 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19692 cat >> confdefs.h <<\EOF
19693 #define HAVE_PTHREAD_MUTEXATTR_T 1
19694 EOF
19695
19696 else
19697 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19698 echo "configure:19699: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19699 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19700 echo $ac_n "(cached) $ac_c" 1>&6
19701 else
19702
19703 cat > conftest.$ac_ext <<EOF
19704 #line 19705 "configure"
19705 #include "confdefs.h"
19706 #include <pthread.h>
19707 int main() {
19708
19709 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19710
19711 ; return 0; }
19712 EOF
19713 if { (eval echo configure:19714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19714 rm -rf conftest*
19715
19716 wx_cv_type_pthread_rec_mutex_init=yes
19717
19718 else
19719 echo "configure: failed program was:" >&5
19720 cat conftest.$ac_ext >&5
19721 rm -rf conftest*
19722
19723 wx_cv_type_pthread_rec_mutex_init=no
19724
19725
19726 fi
19727 rm -f conftest*
19728
19729 fi
19730
19731 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19732 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19735 EOF
19736
19737 else
19738 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19739 fi
19740 fi
19741 fi
19742
19743 else
19744 if test "$wxUSE_THREADS" = "yes" ; then
19745 case "${host}" in
19746 *-*-mingw32* )
19747 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19748 echo "configure:19749: checking if compiler supports -mthreads" >&5
19749 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19750 echo $ac_n "(cached) $ac_c" 1>&6
19751 else
19752
19753 CFLAGS_OLD="$CFLAGS"
19754 CFLAGS="$CFLAGS -mthreads"
19755 cat > conftest.$ac_ext <<EOF
19756 #line 19757 "configure"
19757 #include "confdefs.h"
19758
19759 int main() {
19760
19761 ; return 0; }
19762 EOF
19763 if { (eval echo configure:19764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19764 rm -rf conftest*
19765 wx_cv_cflags_mthread=yes
19766 else
19767 echo "configure: failed program was:" >&5
19768 cat conftest.$ac_ext >&5
19769 rm -rf conftest*
19770 wx_cv_cflags_mthread=no
19771
19772 fi
19773 rm -f conftest*
19774
19775
19776 fi
19777
19778 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19779
19780 if test "$wx_cv_cflags_mthread" = "yes"; then
19781 CXXFLAGS="$CXXFLAGS -mthreads"
19782 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19783 LDFLAGS="$LDFLAGS -mthreads"
19784 else
19785 CFLAGS="$CFLAGS_OLD"
19786 fi
19787 ;;
19788 esac
19789 fi
19790 fi
19791
19792 if test "$wxUSE_THREADS" = "yes"; then
19793 cat >> confdefs.h <<\EOF
19794 #define wxUSE_THREADS 1
19795 EOF
19796
19797
19798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19799 else
19800 if test "$ac_cv_func_strtok_r" = "yes"; then
19801 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19802 echo "configure:19803: checking if -D_REENTRANT is needed" >&5
19803 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19804 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19805 echo "$ac_t""yes" 1>&6
19806 else
19807 echo "$ac_t""no" 1>&6
19808 fi
19809 fi
19810 fi
19811
19812 if test "$WXGTK20" = 1 ; then
19813 cat >> confdefs.h <<EOF
19814 #define __WXGTK20__ $WXGTK20
19815 EOF
19816
19817 WXGTK12=1
19818 fi
19819
19820 if test "$WXGTK12" = 1 ; then
19821 cat >> confdefs.h <<EOF
19822 #define __WXGTK12__ $WXGTK12
19823 EOF
19824
19825 fi
19826
19827 if test "$WXGTK127" = 1 ; then
19828 cat >> confdefs.h <<EOF
19829 #define __WXGTK127__ $WXGTK127
19830 EOF
19831
19832 fi
19833
19834 WXDEBUG=
19835
19836 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19837 WXDEBUG="-g"
19838 wxUSE_OPTIMISE=no
19839 fi
19840
19841 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19842 wxUSE_DEBUG_INFO=yes
19843 WXDEBUG="-ggdb"
19844 fi
19845
19846 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19847 cat >> confdefs.h <<\EOF
19848 #define WXDEBUG 1
19849 EOF
19850
19851 WXDEBUG_DEFINE="-D__WXDEBUG__"
19852 else
19853 if test "$wxUSE_GTK" = 1 ; then
19854 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19855 fi
19856 fi
19857
19858 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19859 cat >> confdefs.h <<\EOF
19860 #define wxUSE_MEMORY_TRACING 1
19861 EOF
19862
19863 cat >> confdefs.h <<\EOF
19864 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19865 EOF
19866
19867 cat >> confdefs.h <<\EOF
19868 #define wxUSE_DEBUG_NEW_ALWAYS 1
19869 EOF
19870
19871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19872 fi
19873
19874 if test "$wxUSE_DMALLOC" = "yes" ; then
19875 DMALLOC_LIBS="-ldmalloc"
19876 fi
19877
19878 PROFILE=
19879 if test "$wxUSE_PROFILE" = "yes" ; then
19880 PROFILE=" -pg"
19881 fi
19882
19883 CODE_GEN_FLAGS=
19884 CODE_GEN_FLAGS_CXX=
19885 if test "$GCC" = "yes" ; then
19886 if test "$wxUSE_NO_RTTI" = "yes" ; then
19887 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19888 fi
19889 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19890 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19891 fi
19892 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19893 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19894 fi
19895 if test "$USE_WIN32" = 1 ; then
19896 # I'm not even really sure what this was ever added to solve,
19897 # but someone added it for mingw native builds, so I guess
19898 # they had a reason, right??
19899 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19900 fi
19901
19902 case "${host}" in
19903 powerpc*-*-aix* )
19904 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19905 ;;
19906 *-hppa* )
19907 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19908 ;;
19909 esac
19910 fi
19911
19912 OPTIMISE=
19913 if test "$wxUSE_OPTIMISE" = "no" ; then
19914 if test "$GCC" = yes ; then
19915 OPTIMISE="-O0"
19916 fi
19917 else
19918 if test "$GCC" = yes ; then
19919 OPTIMISE="-O2"
19920
19921 case "${host}" in
19922 i586-*-*|i686-*-* )
19923 OPTIMISE="${OPTIMISE} "
19924 ;;
19925 esac
19926 else
19927 OPTIMISE="-O"
19928 fi
19929 fi
19930
19931
19932 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19933 cat >> confdefs.h <<\EOF
19934 #define WXWIN_COMPATIBILITY_2 1
19935 EOF
19936
19937
19938 WXWIN_COMPATIBILITY_2_2="yes"
19939 fi
19940
19941 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19942 cat >> confdefs.h <<\EOF
19943 #define WXWIN_COMPATIBILITY_2_2 1
19944 EOF
19945
19946
19947 WXWIN_COMPATIBILITY_2_4="yes"
19948 fi
19949
19950 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19951 cat >> confdefs.h <<\EOF
19952 #define WXWIN_COMPATIBILITY_2_4 1
19953 EOF
19954
19955 fi
19956
19957
19958 if test "$wxUSE_GUI" = "yes"; then
19959 cat >> confdefs.h <<\EOF
19960 #define wxUSE_GUI 1
19961 EOF
19962
19963
19964 else
19965 cat >> confdefs.h <<\EOF
19966 #define wxUSE_NOGUI 1
19967 EOF
19968
19969 fi
19970
19971
19972 if test "$wxUSE_UNIX" = "yes"; then
19973 cat >> confdefs.h <<\EOF
19974 #define wxUSE_UNIX 1
19975 EOF
19976
19977 fi
19978
19979
19980 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19981 cat >> confdefs.h <<\EOF
19982 #define wxUSE_APPLE_IEEE 1
19983 EOF
19984
19985 fi
19986
19987 if test "$wxUSE_TIMER" = "yes"; then
19988 cat >> confdefs.h <<\EOF
19989 #define wxUSE_TIMER 1
19990 EOF
19991
19992 fi
19993
19994 if test "$wxUSE_WAVE" = "yes"; then
19995 cat >> confdefs.h <<\EOF
19996 #define wxUSE_WAVE 1
19997 EOF
19998
19999 fi
20000
20001 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
20002 cat >> confdefs.h <<\EOF
20003 #define wxUSE_CMDLINE_PARSER 1
20004 EOF
20005
20006 fi
20007
20008 if test "$wxUSE_STOPWATCH" = "yes"; then
20009 cat >> confdefs.h <<\EOF
20010 #define wxUSE_STOPWATCH 1
20011 EOF
20012
20013 fi
20014
20015 if test "$wxUSE_DATETIME" = "yes"; then
20016 cat >> confdefs.h <<\EOF
20017 #define wxUSE_DATETIME 1
20018 EOF
20019
20020 fi
20021
20022 if test "$wxUSE_FILE" = "yes"; then
20023 cat >> confdefs.h <<\EOF
20024 #define wxUSE_FILE 1
20025 EOF
20026
20027 fi
20028
20029 if test "$wxUSE_FFILE" = "yes"; then
20030 cat >> confdefs.h <<\EOF
20031 #define wxUSE_FFILE 1
20032 EOF
20033
20034 fi
20035
20036 if test "$wxUSE_FILESYSTEM" = "yes"; then
20037 cat >> confdefs.h <<\EOF
20038 #define wxUSE_FILESYSTEM 1
20039 EOF
20040
20041 fi
20042
20043 if test "$wxUSE_FS_INET" = "yes"; then
20044 cat >> confdefs.h <<\EOF
20045 #define wxUSE_FS_INET 1
20046 EOF
20047
20048 fi
20049
20050 if test "$wxUSE_FS_ZIP" = "yes"; then
20051 cat >> confdefs.h <<\EOF
20052 #define wxUSE_FS_ZIP 1
20053 EOF
20054
20055 fi
20056
20057 if test "$wxUSE_ZIPSTREAM" = "yes"; then
20058 cat >> confdefs.h <<\EOF
20059 #define wxUSE_ZIPSTREAM 1
20060 EOF
20061
20062 fi
20063
20064 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
20065 cat >> confdefs.h <<\EOF
20066 #define wxUSE_ON_FATAL_EXCEPTION 1
20067 EOF
20068
20069 fi
20070
20071 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
20072 cat >> confdefs.h <<\EOF
20073 #define wxUSE_SNGLINST_CHECKER 1
20074 EOF
20075
20076 fi
20077
20078 if test "$wxUSE_BUSYINFO" = "yes"; then
20079 cat >> confdefs.h <<\EOF
20080 #define wxUSE_BUSYINFO 1
20081 EOF
20082
20083 fi
20084
20085 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
20086 cat >> confdefs.h <<\EOF
20087 #define wxUSE_STD_IOSTREAM 1
20088 EOF
20089
20090 fi
20091
20092 if test "$wxUSE_TEXTBUFFER" = "yes"; then
20093 cat >> confdefs.h <<\EOF
20094 #define wxUSE_TEXTBUFFER 1
20095 EOF
20096
20097 fi
20098
20099 if test "$wxUSE_TEXTFILE" = "yes"; then
20100 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
20101 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
20102 else
20103 cat >> confdefs.h <<\EOF
20104 #define wxUSE_TEXTFILE 1
20105 EOF
20106
20107 fi
20108 fi
20109
20110 if test "$wxUSE_CONFIG" = "yes" ; then
20111 if test "$wxUSE_TEXTFILE" != "yes"; then
20112 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
20113 else
20114 cat >> confdefs.h <<\EOF
20115 #define wxUSE_CONFIG 1
20116 EOF
20117
20118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20119 fi
20120 fi
20121
20122 if test "$wxUSE_INTL" = "yes" ; then
20123 if test "$wxUSE_FILE" != "yes"; then
20124 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
20125 else
20126 cat >> confdefs.h <<\EOF
20127 #define wxUSE_INTL 1
20128 EOF
20129
20130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
20131 GUIDIST="$GUIDIST INTL_DIST"
20132 fi
20133 fi
20134
20135 if test "$wxUSE_LOG" = "yes"; then
20136 cat >> confdefs.h <<\EOF
20137 #define wxUSE_LOG 1
20138 EOF
20139
20140
20141 if test "$wxUSE_LOGGUI" = "yes"; then
20142 cat >> confdefs.h <<\EOF
20143 #define wxUSE_LOGGUI 1
20144 EOF
20145
20146 fi
20147
20148 if test "$wxUSE_LOGWINDOW" = "yes"; then
20149 cat >> confdefs.h <<\EOF
20150 #define wxUSE_LOGWINDOW 1
20151 EOF
20152
20153 fi
20154
20155 if test "$wxUSE_LOGDIALOG" = "yes"; then
20156 cat >> confdefs.h <<\EOF
20157 #define wxUSE_LOG_DIALOG 1
20158 EOF
20159
20160 fi
20161 fi
20162
20163 if test "$wxUSE_LONGLONG" = "yes"; then
20164 cat >> confdefs.h <<\EOF
20165 #define wxUSE_LONGLONG 1
20166 EOF
20167
20168 fi
20169
20170 if test "$wxUSE_GEOMETRY" = "yes"; then
20171 cat >> confdefs.h <<\EOF
20172 #define wxUSE_GEOMETRY 1
20173 EOF
20174
20175 fi
20176
20177 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
20178 cat >> confdefs.h <<\EOF
20179 #define wxUSE_DIALUP_MANAGER 1
20180 EOF
20181
20182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
20183 fi
20184
20185 if test "$wxUSE_STREAMS" = "yes" ; then
20186 cat >> confdefs.h <<\EOF
20187 #define wxUSE_STREAMS 1
20188 EOF
20189
20190 fi
20191
20192
20193 if test "$wxUSE_DATETIME" = "yes"; then
20194 for ac_func in strptime
20195 do
20196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20197 echo "configure:20198: checking for $ac_func" >&5
20198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20199 echo $ac_n "(cached) $ac_c" 1>&6
20200 else
20201 cat > conftest.$ac_ext <<EOF
20202 #line 20203 "configure"
20203 #include "confdefs.h"
20204 /* System header to define __stub macros and hopefully few prototypes,
20205 which can conflict with char $ac_func(); below. */
20206 #include <assert.h>
20207 /* Override any gcc2 internal prototype to avoid an error. */
20208 /* We use char because int might match the return type of a gcc2
20209 builtin and then its argument prototype would still apply. */
20210 char $ac_func();
20211
20212 int main() {
20213
20214 /* The GNU C library defines this for functions which it implements
20215 to always fail with ENOSYS. Some functions are actually named
20216 something starting with __ and the normal name is an alias. */
20217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20218 choke me
20219 #else
20220 $ac_func();
20221 #endif
20222
20223 ; return 0; }
20224 EOF
20225 if { (eval echo configure:20226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20226 rm -rf conftest*
20227 eval "ac_cv_func_$ac_func=yes"
20228 else
20229 echo "configure: failed program was:" >&5
20230 cat conftest.$ac_ext >&5
20231 rm -rf conftest*
20232 eval "ac_cv_func_$ac_func=no"
20233 fi
20234 rm -f conftest*
20235 fi
20236
20237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20238 echo "$ac_t""yes" 1>&6
20239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20240 cat >> confdefs.h <<EOF
20241 #define $ac_tr_func 1
20242 EOF
20243
20244 else
20245 echo "$ac_t""no" 1>&6
20246 fi
20247 done
20248
20249
20250 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
20251 echo "configure:20252: checking for timezone variable in <time.h>" >&5
20252 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20253 echo $ac_n "(cached) $ac_c" 1>&6
20254 else
20255
20256 cat > conftest.$ac_ext <<EOF
20257 #line 20258 "configure"
20258 #include "confdefs.h"
20259
20260 #include <time.h>
20261
20262 int main() {
20263
20264 int tz;
20265 tz = timezone;
20266
20267 ; return 0; }
20268 EOF
20269 if { (eval echo configure:20270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20270 rm -rf conftest*
20271
20272 wx_cv_var_timezone=timezone
20273
20274 else
20275 echo "configure: failed program was:" >&5
20276 cat conftest.$ac_ext >&5
20277 rm -rf conftest*
20278
20279 cat > conftest.$ac_ext <<EOF
20280 #line 20281 "configure"
20281 #include "confdefs.h"
20282
20283 #include <time.h>
20284
20285 int main() {
20286
20287 int tz;
20288 tz = _timezone;
20289
20290 ; return 0; }
20291 EOF
20292 if { (eval echo configure:20293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20293 rm -rf conftest*
20294
20295 wx_cv_var_timezone=_timezone
20296
20297 else
20298 echo "configure: failed program was:" >&5
20299 cat conftest.$ac_ext >&5
20300 rm -rf conftest*
20301
20302 cat > conftest.$ac_ext <<EOF
20303 #line 20304 "configure"
20304 #include "confdefs.h"
20305
20306 #include <time.h>
20307
20308 int main() {
20309
20310 int tz;
20311 tz = __timezone;
20312
20313 ; return 0; }
20314 EOF
20315 if { (eval echo configure:20316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20316 rm -rf conftest*
20317
20318 wx_cv_var_timezone=__timezone
20319
20320 else
20321 echo "configure: failed program was:" >&5
20322 cat conftest.$ac_ext >&5
20323 rm -rf conftest*
20324
20325 if test "$USE_DOS" = 0 ; then
20326 echo "configure: warning: no timezone variable" 1>&2
20327 fi
20328
20329
20330 fi
20331 rm -f conftest*
20332
20333
20334 fi
20335 rm -f conftest*
20336
20337
20338 fi
20339 rm -f conftest*
20340
20341
20342 fi
20343
20344 echo "$ac_t""$wx_cv_var_timezone" 1>&6
20345
20346 if test "x$wx_cv_var_timezone" != x ; then
20347 cat >> confdefs.h <<EOF
20348 #define WX_TIMEZONE $wx_cv_var_timezone
20349 EOF
20350
20351 fi
20352
20353 for ac_func in localtime
20354 do
20355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20356 echo "configure:20357: checking for $ac_func" >&5
20357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20358 echo $ac_n "(cached) $ac_c" 1>&6
20359 else
20360 cat > conftest.$ac_ext <<EOF
20361 #line 20362 "configure"
20362 #include "confdefs.h"
20363 /* System header to define __stub macros and hopefully few prototypes,
20364 which can conflict with char $ac_func(); below. */
20365 #include <assert.h>
20366 /* Override any gcc2 internal prototype to avoid an error. */
20367 /* We use char because int might match the return type of a gcc2
20368 builtin and then its argument prototype would still apply. */
20369 char $ac_func();
20370
20371 int main() {
20372
20373 /* The GNU C library defines this for functions which it implements
20374 to always fail with ENOSYS. Some functions are actually named
20375 something starting with __ and the normal name is an alias. */
20376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20377 choke me
20378 #else
20379 $ac_func();
20380 #endif
20381
20382 ; return 0; }
20383 EOF
20384 if { (eval echo configure:20385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20385 rm -rf conftest*
20386 eval "ac_cv_func_$ac_func=yes"
20387 else
20388 echo "configure: failed program was:" >&5
20389 cat conftest.$ac_ext >&5
20390 rm -rf conftest*
20391 eval "ac_cv_func_$ac_func=no"
20392 fi
20393 rm -f conftest*
20394 fi
20395
20396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20397 echo "$ac_t""yes" 1>&6
20398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20399 cat >> confdefs.h <<EOF
20400 #define $ac_tr_func 1
20401 EOF
20402
20403 else
20404 echo "$ac_t""no" 1>&6
20405 fi
20406 done
20407
20408
20409 if test "$ac_cv_func_localtime" = "yes"; then
20410 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20411 echo "configure:20412: checking for tm_gmtoff in struct tm" >&5
20412 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20413 echo $ac_n "(cached) $ac_c" 1>&6
20414 else
20415
20416 cat > conftest.$ac_ext <<EOF
20417 #line 20418 "configure"
20418 #include "confdefs.h"
20419
20420 #include <time.h>
20421
20422 int main() {
20423
20424 struct tm tm;
20425 tm.tm_gmtoff++;
20426
20427 ; return 0; }
20428 EOF
20429 if { (eval echo configure:20430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20430 rm -rf conftest*
20431
20432 wx_cv_struct_tm_has_gmtoff=yes
20433
20434 else
20435 echo "configure: failed program was:" >&5
20436 cat conftest.$ac_ext >&5
20437 rm -rf conftest*
20438 wx_cv_struct_tm_has_gmtoff=no
20439
20440 fi
20441 rm -f conftest*
20442
20443 fi
20444
20445 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20446 fi
20447
20448 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20449 cat >> confdefs.h <<\EOF
20450 #define WX_GMTOFF_IN_TM 1
20451 EOF
20452
20453 fi
20454
20455 for ac_func in gettimeofday ftime
20456 do
20457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20458 echo "configure:20459: checking for $ac_func" >&5
20459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20460 echo $ac_n "(cached) $ac_c" 1>&6
20461 else
20462 cat > conftest.$ac_ext <<EOF
20463 #line 20464 "configure"
20464 #include "confdefs.h"
20465 /* System header to define __stub macros and hopefully few prototypes,
20466 which can conflict with char $ac_func(); below. */
20467 #include <assert.h>
20468 /* Override any gcc2 internal prototype to avoid an error. */
20469 /* We use char because int might match the return type of a gcc2
20470 builtin and then its argument prototype would still apply. */
20471 char $ac_func();
20472
20473 int main() {
20474
20475 /* The GNU C library defines this for functions which it implements
20476 to always fail with ENOSYS. Some functions are actually named
20477 something starting with __ and the normal name is an alias. */
20478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20479 choke me
20480 #else
20481 $ac_func();
20482 #endif
20483
20484 ; return 0; }
20485 EOF
20486 if { (eval echo configure:20487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20487 rm -rf conftest*
20488 eval "ac_cv_func_$ac_func=yes"
20489 else
20490 echo "configure: failed program was:" >&5
20491 cat conftest.$ac_ext >&5
20492 rm -rf conftest*
20493 eval "ac_cv_func_$ac_func=no"
20494 fi
20495 rm -f conftest*
20496 fi
20497
20498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20499 echo "$ac_t""yes" 1>&6
20500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20501 cat >> confdefs.h <<EOF
20502 #define $ac_tr_func 1
20503 EOF
20504 break
20505 else
20506 echo "$ac_t""no" 1>&6
20507 fi
20508 done
20509
20510
20511 if test "$ac_cv_func_gettimeofday" = "yes"; then
20512 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20513 echo "configure:20514: checking whether gettimeofday takes two arguments" >&5
20514 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20515 echo $ac_n "(cached) $ac_c" 1>&6
20516 else
20517
20518
20519 ac_ext=C
20520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20521 ac_cpp='$CXXCPP $CPPFLAGS'
20522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20524 cross_compiling=$ac_cv_prog_cxx_cross
20525
20526
20527 cat > conftest.$ac_ext <<EOF
20528 #line 20529 "configure"
20529 #include "confdefs.h"
20530
20531 #include <sys/time.h>
20532 #include <unistd.h>
20533
20534 int main() {
20535
20536 struct timeval tv;
20537 gettimeofday(&tv, NULL);
20538
20539 ; return 0; }
20540 EOF
20541 if { (eval echo configure:20542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20542 rm -rf conftest*
20543 wx_cv_func_gettimeofday_has_2_args=yes
20544 else
20545 echo "configure: failed program was:" >&5
20546 cat conftest.$ac_ext >&5
20547 rm -rf conftest*
20548 cat > conftest.$ac_ext <<EOF
20549 #line 20550 "configure"
20550 #include "confdefs.h"
20551
20552 #include <sys/time.h>
20553 #include <unistd.h>
20554
20555 int main() {
20556
20557 struct timeval tv;
20558 gettimeofday(&tv);
20559
20560 ; return 0; }
20561 EOF
20562 if { (eval echo configure:20563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20563 rm -rf conftest*
20564 wx_cv_func_gettimeofday_has_2_args=no
20565 else
20566 echo "configure: failed program was:" >&5
20567 cat conftest.$ac_ext >&5
20568 rm -rf conftest*
20569
20570 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20571 wx_cv_func_gettimeofday_has_2_args=unknown
20572
20573
20574 fi
20575 rm -f conftest*
20576
20577 fi
20578 rm -f conftest*
20579 ac_ext=c
20580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20581 ac_cpp='$CPP $CPPFLAGS'
20582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20584 cross_compiling=$ac_cv_prog_cc_cross
20585
20586
20587 fi
20588
20589 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20590
20591 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20592 cat >> confdefs.h <<\EOF
20593 #define WX_GETTIMEOFDAY_NO_TZ 1
20594 EOF
20595
20596 fi
20597 fi
20598
20599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20600 fi
20601
20602
20603 if test "$wxUSE_SOCKETS" = "yes"; then
20604 if test "$wxUSE_MGL" = "1"; then
20605 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20606 wxUSE_SOCKETS="no"
20607 fi
20608 fi
20609
20610 if test "$wxUSE_SOCKETS" = "yes"; then
20611 if test "$TOOLKIT" != "MSW"; then
20612 echo $ac_n "checking for socket""... $ac_c" 1>&6
20613 echo "configure:20614: checking for socket" >&5
20614 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20615 echo $ac_n "(cached) $ac_c" 1>&6
20616 else
20617 cat > conftest.$ac_ext <<EOF
20618 #line 20619 "configure"
20619 #include "confdefs.h"
20620 /* System header to define __stub macros and hopefully few prototypes,
20621 which can conflict with char socket(); below. */
20622 #include <assert.h>
20623 /* Override any gcc2 internal prototype to avoid an error. */
20624 /* We use char because int might match the return type of a gcc2
20625 builtin and then its argument prototype would still apply. */
20626 char socket();
20627
20628 int main() {
20629
20630 /* The GNU C library defines this for functions which it implements
20631 to always fail with ENOSYS. Some functions are actually named
20632 something starting with __ and the normal name is an alias. */
20633 #if defined (__stub_socket) || defined (__stub___socket)
20634 choke me
20635 #else
20636 socket();
20637 #endif
20638
20639 ; return 0; }
20640 EOF
20641 if { (eval echo configure:20642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20642 rm -rf conftest*
20643 eval "ac_cv_func_socket=yes"
20644 else
20645 echo "configure: failed program was:" >&5
20646 cat conftest.$ac_ext >&5
20647 rm -rf conftest*
20648 eval "ac_cv_func_socket=no"
20649 fi
20650 rm -f conftest*
20651 fi
20652
20653 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20654 echo "$ac_t""yes" 1>&6
20655 :
20656 else
20657 echo "$ac_t""no" 1>&6
20658 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20659 echo "configure:20660: checking for socket in -lsocket" >&5
20660 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20662 echo $ac_n "(cached) $ac_c" 1>&6
20663 else
20664 ac_save_LIBS="$LIBS"
20665 LIBS="-lsocket $LIBS"
20666 cat > conftest.$ac_ext <<EOF
20667 #line 20668 "configure"
20668 #include "confdefs.h"
20669 /* Override any gcc2 internal prototype to avoid an error. */
20670 /* We use char because int might match the return type of a gcc2
20671 builtin and then its argument prototype would still apply. */
20672 char socket();
20673
20674 int main() {
20675 socket()
20676 ; return 0; }
20677 EOF
20678 if { (eval echo configure:20679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20679 rm -rf conftest*
20680 eval "ac_cv_lib_$ac_lib_var=yes"
20681 else
20682 echo "configure: failed program was:" >&5
20683 cat conftest.$ac_ext >&5
20684 rm -rf conftest*
20685 eval "ac_cv_lib_$ac_lib_var=no"
20686 fi
20687 rm -f conftest*
20688 LIBS="$ac_save_LIBS"
20689
20690 fi
20691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20692 echo "$ac_t""yes" 1>&6
20693 if test "$INET_LINK" != " -lsocket"; then
20694 INET_LINK="$INET_LINK -lsocket"
20695 fi
20696 else
20697 echo "$ac_t""no" 1>&6
20698
20699 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20700 wxUSE_SOCKETS=no
20701
20702
20703 fi
20704
20705
20706 fi
20707
20708 fi
20709 fi
20710
20711 if test "$wxUSE_SOCKETS" = "yes" ; then
20712 if test "$TOOLKIT" != "MSW"; then
20713 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20714 echo "configure:20715: checking what is the type of the third argument of getsockname" >&5
20715 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20716 echo $ac_n "(cached) $ac_c" 1>&6
20717 else
20718
20719 cat > conftest.$ac_ext <<EOF
20720 #line 20721 "configure"
20721 #include "confdefs.h"
20722
20723 #include <sys/types.h>
20724 #include <sys/socket.h>
20725
20726 int main() {
20727
20728 socklen_t len;
20729 getsockname(0, 0, &len);
20730
20731 ; return 0; }
20732 EOF
20733 if { (eval echo configure:20734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20734 rm -rf conftest*
20735 wx_cv_type_getsockname3=socklen_t
20736 else
20737 echo "configure: failed program was:" >&5
20738 cat conftest.$ac_ext >&5
20739 rm -rf conftest*
20740
20741 CFLAGS_OLD="$CFLAGS"
20742 if test "$GCC" = yes ; then
20743 CFLAGS="$CFLAGS -Werror"
20744 fi
20745
20746 cat > conftest.$ac_ext <<EOF
20747 #line 20748 "configure"
20748 #include "confdefs.h"
20749
20750 #include <sys/types.h>
20751 #include <sys/socket.h>
20752
20753 int main() {
20754
20755 size_t len;
20756 getsockname(0, 0, &len);
20757
20758 ; return 0; }
20759 EOF
20760 if { (eval echo configure:20761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20761 rm -rf conftest*
20762 wx_cv_type_getsockname3=size_t
20763 else
20764 echo "configure: failed program was:" >&5
20765 cat conftest.$ac_ext >&5
20766 rm -rf conftest*
20767 cat > conftest.$ac_ext <<EOF
20768 #line 20769 "configure"
20769 #include "confdefs.h"
20770
20771 #include <sys/types.h>
20772 #include <sys/socket.h>
20773
20774 int main() {
20775
20776 int len;
20777 getsockname(0, 0, &len);
20778
20779 ; return 0; }
20780 EOF
20781 if { (eval echo configure:20782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20782 rm -rf conftest*
20783 wx_cv_type_getsockname3=int
20784 else
20785 echo "configure: failed program was:" >&5
20786 cat conftest.$ac_ext >&5
20787 rm -rf conftest*
20788 wx_cv_type_getsockname3=unknown
20789
20790 fi
20791 rm -f conftest*
20792
20793 fi
20794 rm -f conftest*
20795
20796 CFLAGS="$CFLAGS_OLD"
20797
20798
20799 fi
20800 rm -f conftest*
20801
20802 fi
20803
20804 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20805
20806 if test "$wx_cv_type_getsockname3" = "unknown"; then
20807 wxUSE_SOCKETS=no
20808 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20809 else
20810 cat >> confdefs.h <<EOF
20811 #define SOCKLEN_T $wx_cv_type_getsockname3
20812 EOF
20813
20814 fi
20815 fi
20816 fi
20817
20818 if test "$wxUSE_SOCKETS" = "yes" ; then
20819 cat >> confdefs.h <<\EOF
20820 #define wxUSE_SOCKETS 1
20821 EOF
20822
20823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20824 fi
20825
20826
20827 if test "$wxUSE_GUI" = "yes"; then
20828
20829 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20830 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20831 wxUSE_JOYSTICK=no
20832 fi
20833 if test "$TOOLKIT" = "MOTIF"; then
20834 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20835 wxUSE_JOYSTICK=no
20836 fi
20837 if test "$TOOLKIT" = "X11"; then
20838 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20839 wxUSE_JOYSTICK=no
20840 fi
20841
20842 if test "$TOOLKIT" != "MSW"; then
20843 if test "$wxUSE_JOYSTICK" = "yes"; then
20844 for ac_hdr in linux/joystick.h
20845 do
20846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20848 echo "configure:20849: checking for $ac_hdr" >&5
20849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20850 echo $ac_n "(cached) $ac_c" 1>&6
20851 else
20852 cat > conftest.$ac_ext <<EOF
20853 #line 20854 "configure"
20854 #include "confdefs.h"
20855 #include <$ac_hdr>
20856 EOF
20857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20858 { (eval echo configure:20859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20860 if test -z "$ac_err"; then
20861 rm -rf conftest*
20862 eval "ac_cv_header_$ac_safe=yes"
20863 else
20864 echo "$ac_err" >&5
20865 echo "configure: failed program was:" >&5
20866 cat conftest.$ac_ext >&5
20867 rm -rf conftest*
20868 eval "ac_cv_header_$ac_safe=no"
20869 fi
20870 rm -f conftest*
20871 fi
20872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20873 echo "$ac_t""yes" 1>&6
20874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20875 cat >> confdefs.h <<EOF
20876 #define $ac_tr_hdr 1
20877 EOF
20878
20879 else
20880 echo "$ac_t""no" 1>&6
20881 fi
20882 done
20883
20884 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20885 wxUSE_JOYSTICK=no
20886 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20887 fi
20888 fi
20889 fi
20890
20891 if test "$wxUSE_JOYSTICK" = "yes"; then
20892 cat >> confdefs.h <<\EOF
20893 #define wxUSE_JOYSTICK 1
20894 EOF
20895
20896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20897 fi
20898 fi
20899
20900
20901 if test "$TOOLKIT" != "MSW"; then
20902
20903 HAVE_DL_FUNCS=0
20904 HAVE_SHL_FUNCS=0
20905 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20906 if test "$USE_DARWIN" = 1; then
20907 HAVE_DL_FUNCS=1
20908 else
20909 for ac_func in dlopen
20910 do
20911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20912 echo "configure:20913: checking for $ac_func" >&5
20913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20914 echo $ac_n "(cached) $ac_c" 1>&6
20915 else
20916 cat > conftest.$ac_ext <<EOF
20917 #line 20918 "configure"
20918 #include "confdefs.h"
20919 /* System header to define __stub macros and hopefully few prototypes,
20920 which can conflict with char $ac_func(); below. */
20921 #include <assert.h>
20922 /* Override any gcc2 internal prototype to avoid an error. */
20923 /* We use char because int might match the return type of a gcc2
20924 builtin and then its argument prototype would still apply. */
20925 char $ac_func();
20926
20927 int main() {
20928
20929 /* The GNU C library defines this for functions which it implements
20930 to always fail with ENOSYS. Some functions are actually named
20931 something starting with __ and the normal name is an alias. */
20932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20933 choke me
20934 #else
20935 $ac_func();
20936 #endif
20937
20938 ; return 0; }
20939 EOF
20940 if { (eval echo configure:20941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20941 rm -rf conftest*
20942 eval "ac_cv_func_$ac_func=yes"
20943 else
20944 echo "configure: failed program was:" >&5
20945 cat conftest.$ac_ext >&5
20946 rm -rf conftest*
20947 eval "ac_cv_func_$ac_func=no"
20948 fi
20949 rm -f conftest*
20950 fi
20951
20952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20953 echo "$ac_t""yes" 1>&6
20954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20955 cat >> confdefs.h <<EOF
20956 #define $ac_tr_func 1
20957 EOF
20958
20959 cat >> confdefs.h <<\EOF
20960 #define HAVE_DLOPEN 1
20961 EOF
20962
20963 HAVE_DL_FUNCS=1
20964
20965 else
20966 echo "$ac_t""no" 1>&6
20967 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20968 echo "configure:20969: checking for dlopen in -ldl" >&5
20969 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20971 echo $ac_n "(cached) $ac_c" 1>&6
20972 else
20973 ac_save_LIBS="$LIBS"
20974 LIBS="-ldl $LIBS"
20975 cat > conftest.$ac_ext <<EOF
20976 #line 20977 "configure"
20977 #include "confdefs.h"
20978 /* Override any gcc2 internal prototype to avoid an error. */
20979 /* We use char because int might match the return type of a gcc2
20980 builtin and then its argument prototype would still apply. */
20981 char dlopen();
20982
20983 int main() {
20984 dlopen()
20985 ; return 0; }
20986 EOF
20987 if { (eval echo configure:20988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20988 rm -rf conftest*
20989 eval "ac_cv_lib_$ac_lib_var=yes"
20990 else
20991 echo "configure: failed program was:" >&5
20992 cat conftest.$ac_ext >&5
20993 rm -rf conftest*
20994 eval "ac_cv_lib_$ac_lib_var=no"
20995 fi
20996 rm -f conftest*
20997 LIBS="$ac_save_LIBS"
20998
20999 fi
21000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21001 echo "$ac_t""yes" 1>&6
21002
21003 cat >> confdefs.h <<\EOF
21004 #define HAVE_DLOPEN 1
21005 EOF
21006
21007 HAVE_DL_FUNCS=1
21008 DL_LINK=" -ldl$DL_LINK"
21009
21010 else
21011 echo "$ac_t""no" 1>&6
21012
21013 for ac_func in shl_load
21014 do
21015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21016 echo "configure:21017: checking for $ac_func" >&5
21017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21018 echo $ac_n "(cached) $ac_c" 1>&6
21019 else
21020 cat > conftest.$ac_ext <<EOF
21021 #line 21022 "configure"
21022 #include "confdefs.h"
21023 /* System header to define __stub macros and hopefully few prototypes,
21024 which can conflict with char $ac_func(); below. */
21025 #include <assert.h>
21026 /* Override any gcc2 internal prototype to avoid an error. */
21027 /* We use char because int might match the return type of a gcc2
21028 builtin and then its argument prototype would still apply. */
21029 char $ac_func();
21030
21031 int main() {
21032
21033 /* The GNU C library defines this for functions which it implements
21034 to always fail with ENOSYS. Some functions are actually named
21035 something starting with __ and the normal name is an alias. */
21036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21037 choke me
21038 #else
21039 $ac_func();
21040 #endif
21041
21042 ; return 0; }
21043 EOF
21044 if { (eval echo configure:21045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21045 rm -rf conftest*
21046 eval "ac_cv_func_$ac_func=yes"
21047 else
21048 echo "configure: failed program was:" >&5
21049 cat conftest.$ac_ext >&5
21050 rm -rf conftest*
21051 eval "ac_cv_func_$ac_func=no"
21052 fi
21053 rm -f conftest*
21054 fi
21055
21056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21057 echo "$ac_t""yes" 1>&6
21058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21059 cat >> confdefs.h <<EOF
21060 #define $ac_tr_func 1
21061 EOF
21062
21063 cat >> confdefs.h <<\EOF
21064 #define HAVE_SHL_LOAD 1
21065 EOF
21066
21067 HAVE_SHL_FUNCS=1
21068
21069 else
21070 echo "$ac_t""no" 1>&6
21071 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
21072 echo "configure:21073: checking for dld in -lshl_load" >&5
21073 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
21074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21075 echo $ac_n "(cached) $ac_c" 1>&6
21076 else
21077 ac_save_LIBS="$LIBS"
21078 LIBS="-lshl_load $LIBS"
21079 cat > conftest.$ac_ext <<EOF
21080 #line 21081 "configure"
21081 #include "confdefs.h"
21082 /* Override any gcc2 internal prototype to avoid an error. */
21083 /* We use char because int might match the return type of a gcc2
21084 builtin and then its argument prototype would still apply. */
21085 char dld();
21086
21087 int main() {
21088 dld()
21089 ; return 0; }
21090 EOF
21091 if { (eval echo configure:21092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21092 rm -rf conftest*
21093 eval "ac_cv_lib_$ac_lib_var=yes"
21094 else
21095 echo "configure: failed program was:" >&5
21096 cat conftest.$ac_ext >&5
21097 rm -rf conftest*
21098 eval "ac_cv_lib_$ac_lib_var=no"
21099 fi
21100 rm -f conftest*
21101 LIBS="$ac_save_LIBS"
21102
21103 fi
21104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21105 echo "$ac_t""yes" 1>&6
21106
21107 HAVE_SHL_FUNCS=1
21108 DL_LINK=" -ldld$DL_LINK"
21109
21110 else
21111 echo "$ac_t""no" 1>&6
21112 fi
21113
21114
21115 fi
21116 done
21117
21118
21119 fi
21120
21121
21122 fi
21123 done
21124
21125
21126 if test "$HAVE_DL_FUNCS" = 1; then
21127 for ac_func in dlerror
21128 do
21129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21130 echo "configure:21131: checking for $ac_func" >&5
21131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21132 echo $ac_n "(cached) $ac_c" 1>&6
21133 else
21134 cat > conftest.$ac_ext <<EOF
21135 #line 21136 "configure"
21136 #include "confdefs.h"
21137 /* System header to define __stub macros and hopefully few prototypes,
21138 which can conflict with char $ac_func(); below. */
21139 #include <assert.h>
21140 /* Override any gcc2 internal prototype to avoid an error. */
21141 /* We use char because int might match the return type of a gcc2
21142 builtin and then its argument prototype would still apply. */
21143 char $ac_func();
21144
21145 int main() {
21146
21147 /* The GNU C library defines this for functions which it implements
21148 to always fail with ENOSYS. Some functions are actually named
21149 something starting with __ and the normal name is an alias. */
21150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21151 choke me
21152 #else
21153 $ac_func();
21154 #endif
21155
21156 ; return 0; }
21157 EOF
21158 if { (eval echo configure:21159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21159 rm -rf conftest*
21160 eval "ac_cv_func_$ac_func=yes"
21161 else
21162 echo "configure: failed program was:" >&5
21163 cat conftest.$ac_ext >&5
21164 rm -rf conftest*
21165 eval "ac_cv_func_$ac_func=no"
21166 fi
21167 rm -f conftest*
21168 fi
21169
21170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21171 echo "$ac_t""yes" 1>&6
21172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21173 cat >> confdefs.h <<EOF
21174 #define $ac_tr_func 1
21175 EOF
21176 cat >> confdefs.h <<\EOF
21177 #define HAVE_DLERROR 1
21178 EOF
21179
21180 else
21181 echo "$ac_t""no" 1>&6
21182 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
21183 echo "configure:21184: checking for dlerror in -ldl" >&5
21184 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21186 echo $ac_n "(cached) $ac_c" 1>&6
21187 else
21188 ac_save_LIBS="$LIBS"
21189 LIBS="-ldl $LIBS"
21190 cat > conftest.$ac_ext <<EOF
21191 #line 21192 "configure"
21192 #include "confdefs.h"
21193 /* Override any gcc2 internal prototype to avoid an error. */
21194 /* We use char because int might match the return type of a gcc2
21195 builtin and then its argument prototype would still apply. */
21196 char dlerror();
21197
21198 int main() {
21199 dlerror()
21200 ; return 0; }
21201 EOF
21202 if { (eval echo configure:21203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21203 rm -rf conftest*
21204 eval "ac_cv_lib_$ac_lib_var=yes"
21205 else
21206 echo "configure: failed program was:" >&5
21207 cat conftest.$ac_ext >&5
21208 rm -rf conftest*
21209 eval "ac_cv_lib_$ac_lib_var=no"
21210 fi
21211 rm -f conftest*
21212 LIBS="$ac_save_LIBS"
21213
21214 fi
21215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21216 echo "$ac_t""yes" 1>&6
21217 cat >> confdefs.h <<\EOF
21218 #define HAVE_DLERROR 1
21219 EOF
21220
21221 else
21222 echo "$ac_t""no" 1>&6
21223 fi
21224
21225 fi
21226 done
21227
21228 fi
21229 fi
21230
21231 if test "$HAVE_DL_FUNCS" = 0; then
21232 if test "$HAVE_SHL_FUNCS" = 0; then
21233 if test "$USE_UNIX" = 1; then
21234 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
21235 wxUSE_DYNAMIC_LOADER=no
21236 wxUSE_DYNLIB_CLASS=no
21237 else
21238 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
21239 fi
21240 fi
21241 fi
21242 fi
21243 fi
21244
21245 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
21246 cat >> confdefs.h <<\EOF
21247 #define wxUSE_DYNAMIC_LOADER 1
21248 EOF
21249
21250 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
21251 cat >> confdefs.h <<\EOF
21252 #define wxUSE_DYNLIB_CLASS 1
21253 EOF
21254
21255 fi
21256
21257
21258 if test "$wxUSE_FONTMAP" = "yes" ; then
21259 cat >> confdefs.h <<\EOF
21260 #define wxUSE_FONTMAP 1
21261 EOF
21262
21263 fi
21264
21265 if test "$wxUSE_UNICODE" = "yes" ; then
21266 cat >> confdefs.h <<\EOF
21267 #define wxUSE_UNICODE 1
21268 EOF
21269
21270
21271 if test "$wxUSE_MSW" != 1; then
21272 wxUSE_UNICODE_MSLU=no
21273 fi
21274
21275 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
21276 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21277 echo "configure:21278: checking for main in -lunicows" >&5
21278 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21280 echo $ac_n "(cached) $ac_c" 1>&6
21281 else
21282 ac_save_LIBS="$LIBS"
21283 LIBS="-lunicows $LIBS"
21284 cat > conftest.$ac_ext <<EOF
21285 #line 21286 "configure"
21286 #include "confdefs.h"
21287
21288 int main() {
21289 main()
21290 ; return 0; }
21291 EOF
21292 if { (eval echo configure:21293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21293 rm -rf conftest*
21294 eval "ac_cv_lib_$ac_lib_var=yes"
21295 else
21296 echo "configure: failed program was:" >&5
21297 cat conftest.$ac_ext >&5
21298 rm -rf conftest*
21299 eval "ac_cv_lib_$ac_lib_var=no"
21300 fi
21301 rm -f conftest*
21302 LIBS="$ac_save_LIBS"
21303
21304 fi
21305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21306 echo "$ac_t""yes" 1>&6
21307
21308 cat >> confdefs.h <<\EOF
21309 #define wxUSE_UNICODE_MSLU 1
21310 EOF
21311
21312
21313 else
21314 echo "$ac_t""no" 1>&6
21315
21316 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21317 Applications will only run on Windows NT/2000/XP!" 1>&2
21318 wxUSE_UNICODE_MSLU=no
21319
21320 fi
21321
21322 fi
21323 fi
21324
21325 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21326 cat >> confdefs.h <<\EOF
21327 #define wxUSE_EXPERIMENTAL_PRINTF 1
21328 EOF
21329
21330 fi
21331
21332
21333 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21334 cat >> confdefs.h <<\EOF
21335 #define wxUSE_POSTSCRIPT 1
21336 EOF
21337
21338 fi
21339
21340 cat >> confdefs.h <<\EOF
21341 #define wxUSE_AFM_FOR_POSTSCRIPT 1
21342 EOF
21343
21344
21345 cat >> confdefs.h <<\EOF
21346 #define wxUSE_NORMALIZED_PS_FONTS 1
21347 EOF
21348
21349
21350
21351 if test "$wxUSE_CONSTRAINTS" = "yes"; then
21352 cat >> confdefs.h <<\EOF
21353 #define wxUSE_CONSTRAINTS 1
21354 EOF
21355
21356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21357 fi
21358
21359 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21360
21361
21362 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21363 cat >> confdefs.h <<\EOF
21364 #define wxUSE_MDI_ARCHITECTURE 1
21365 EOF
21366
21367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21368 fi
21369 fi
21370
21371 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21372 cat >> confdefs.h <<\EOF
21373 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
21374 EOF
21375
21376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21377 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21379 fi
21380 fi
21381
21382 if test "$wxUSE_HELP" = "yes"; then
21383 cat >> confdefs.h <<\EOF
21384 #define wxUSE_HELP 1
21385 EOF
21386
21387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21388
21389 if test "$wxUSE_MSW" = 1; then
21390 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21391 cat >> confdefs.h <<\EOF
21392 #define wxUSE_MS_HTML_HELP 1
21393 EOF
21394
21395 fi
21396 fi
21397
21398 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21399 if test "$wxUSE_HTML" = "yes"; then
21400 cat >> confdefs.h <<\EOF
21401 #define wxUSE_WXHTML_HELP 1
21402 EOF
21403
21404 else
21405 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21406 wxUSE_WXHTML_HELP=no
21407 fi
21408 fi
21409 fi
21410
21411 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21412 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21413 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21414 else
21415 cat >> confdefs.h <<\EOF
21416 #define wxUSE_PRINTING_ARCHITECTURE 1
21417 EOF
21418
21419 fi
21420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21421 fi
21422
21423 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
21424 { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; }
21425 fi
21426
21427
21428 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21429 -o "$wxUSE_CLIPBOARD" = "yes" \
21430 -o "$wxUSE_OLE" = "yes" \
21431 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21432 for ac_hdr in ole2.h
21433 do
21434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21436 echo "configure:21437: checking for $ac_hdr" >&5
21437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21438 echo $ac_n "(cached) $ac_c" 1>&6
21439 else
21440 cat > conftest.$ac_ext <<EOF
21441 #line 21442 "configure"
21442 #include "confdefs.h"
21443 #include <$ac_hdr>
21444 EOF
21445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21446 { (eval echo configure:21447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21448 if test -z "$ac_err"; then
21449 rm -rf conftest*
21450 eval "ac_cv_header_$ac_safe=yes"
21451 else
21452 echo "$ac_err" >&5
21453 echo "configure: failed program was:" >&5
21454 cat conftest.$ac_ext >&5
21455 rm -rf conftest*
21456 eval "ac_cv_header_$ac_safe=no"
21457 fi
21458 rm -f conftest*
21459 fi
21460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21461 echo "$ac_t""yes" 1>&6
21462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21463 cat >> confdefs.h <<EOF
21464 #define $ac_tr_hdr 1
21465 EOF
21466
21467 else
21468 echo "$ac_t""no" 1>&6
21469 fi
21470 done
21471
21472
21473 if test "$ac_cv_header_ole2_h" = "yes" ; then
21474 if test "$GCC" = yes ; then
21475
21476 ac_ext=C
21477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21478 ac_cpp='$CXXCPP $CPPFLAGS'
21479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21481 cross_compiling=$ac_cv_prog_cxx_cross
21482
21483
21484 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21485 echo "configure:21486: checking if g++ requires -fvtable-thunks" >&5
21486 cat > conftest.$ac_ext <<EOF
21487 #line 21488 "configure"
21488 #include "confdefs.h"
21489 #include <windows.h>
21490 #include <ole2.h>
21491 int main() {
21492
21493 ; return 0; }
21494 EOF
21495 if { (eval echo configure:21496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21496 rm -rf conftest*
21497 echo "$ac_t""no" 1>&6
21498 else
21499 echo "configure: failed program was:" >&5
21500 cat conftest.$ac_ext >&5
21501 rm -rf conftest*
21502 echo "$ac_t""yes" 1>&6
21503 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21504 fi
21505 rm -f conftest*
21506 ac_ext=c
21507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21511 cross_compiling=$ac_cv_prog_cc_cross
21512
21513 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21514 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21515 cat >> confdefs.h <<\EOF
21516 #define wxUSE_OLE 1
21517 EOF
21518
21519
21520 fi
21521
21522 cat >> confdefs.h <<\EOF
21523 #define wxUSE_DATAOBJ 1
21524 EOF
21525
21526 else
21527 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21528
21529 wxUSE_CLIPBOARD=no
21530 wxUSE_DRAG_AND_DROP=no
21531 wxUSE_DATAOBJ=no
21532 wxUSE_OLE=no
21533 fi
21534
21535 if test "$wxUSE_METAFILE" = "yes"; then
21536 cat >> confdefs.h <<\EOF
21537 #define wxUSE_METAFILE 1
21538 EOF
21539
21540
21541 cat >> confdefs.h <<\EOF
21542 #define wxUSE_ENH_METAFILE 1
21543 EOF
21544
21545 fi
21546 fi
21547
21548 if test "$wxUSE_IPC" = "yes"; then
21549 if test "$wxUSE_SOCKETS" != "yes"; then
21550 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21551 fi
21552
21553 cat >> confdefs.h <<\EOF
21554 #define wxUSE_IPC 1
21555 EOF
21556
21557 fi
21558
21559 if test "$wxUSE_CLIPBOARD" = "yes"; then
21560 if test "$wxUSE_MGL" = 1; then
21561 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21562 wxUSE_CLIPBOARD=no
21563 fi
21564
21565 if test "$wxUSE_CLIPBOARD" = "yes"; then
21566 cat >> confdefs.h <<\EOF
21567 #define wxUSE_CLIPBOARD 1
21568 EOF
21569
21570
21571 cat >> confdefs.h <<\EOF
21572 #define wxUSE_DATAOBJ 1
21573 EOF
21574
21575 fi
21576 fi
21577
21578 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21579 if test "$wxUSE_GTK" = 1; then
21580 if test "$WXGTK12" != 1; then
21581 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21582 wxUSE_DRAG_AND_DROP=no
21583 fi
21584 fi
21585
21586 if test "$wxUSE_MOTIF" = 1; then
21587 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21588 wxUSE_DRAG_AND_DROP=no
21589 fi
21590
21591 if test "$wxUSE_X11" = 1; then
21592 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21593 wxUSE_DRAG_AND_DROP=no
21594 fi
21595
21596 if test "$wxUSE_MGL" = 1; then
21597 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21598 wxUSE_DRAG_AND_DROP=no
21599 fi
21600
21601 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21602 cat >> confdefs.h <<\EOF
21603 #define wxUSE_DRAG_AND_DROP 1
21604 EOF
21605
21606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21607 fi
21608
21609 fi
21610
21611 if test "$wxUSE_SPLINES" = "yes" ; then
21612 cat >> confdefs.h <<\EOF
21613 #define wxUSE_SPLINES 1
21614 EOF
21615
21616 fi
21617
21618
21619 USES_CONTROLS=0
21620 if test "$wxUSE_CONTROLS" = "yes"; then
21621 USES_CONTROLS=1
21622 fi
21623
21624 if test "$wxUSE_ACCEL" = "yes"; then
21625 cat >> confdefs.h <<\EOF
21626 #define wxUSE_ACCEL 1
21627 EOF
21628
21629 USES_CONTROLS=1
21630 fi
21631
21632 if test "$wxUSE_BUTTON" = "yes"; then
21633 cat >> confdefs.h <<\EOF
21634 #define wxUSE_BUTTON 1
21635 EOF
21636
21637 USES_CONTROLS=1
21638 fi
21639
21640 if test "$wxUSE_BMPBUTTON" = "yes"; then
21641 cat >> confdefs.h <<\EOF
21642 #define wxUSE_BMPBUTTON 1
21643 EOF
21644
21645 USES_CONTROLS=1
21646 fi
21647
21648 if test "$wxUSE_CALCTRL" = "yes"; then
21649 cat >> confdefs.h <<\EOF
21650 #define wxUSE_CALENDARCTRL 1
21651 EOF
21652
21653 USES_CONTROLS=1
21654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21655 fi
21656
21657 if test "$wxUSE_CARET" = "yes"; then
21658 cat >> confdefs.h <<\EOF
21659 #define wxUSE_CARET 1
21660 EOF
21661
21662 USES_CONTROLS=1
21663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21664 fi
21665
21666 if test "$wxUSE_COMBOBOX" = "yes"; then
21667 cat >> confdefs.h <<\EOF
21668 #define wxUSE_COMBOBOX 1
21669 EOF
21670
21671 USES_CONTROLS=1
21672 fi
21673
21674 if test "$wxUSE_CHOICE" = "yes"; then
21675 cat >> confdefs.h <<\EOF
21676 #define wxUSE_CHOICE 1
21677 EOF
21678
21679 USES_CONTROLS=1
21680 fi
21681
21682 if test "$wxUSE_CHECKBOX" = "yes"; then
21683 cat >> confdefs.h <<\EOF
21684 #define wxUSE_CHECKBOX 1
21685 EOF
21686
21687 USES_CONTROLS=1
21688 fi
21689
21690 if test "$wxUSE_CHECKLST" = "yes"; then
21691 cat >> confdefs.h <<\EOF
21692 #define wxUSE_CHECKLISTBOX 1
21693 EOF
21694
21695 USES_CONTROLS=1
21696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21697 fi
21698
21699 if test "$wxUSE_DISPLAY" = "yes"; then
21700 cat >> confdefs.h <<\EOF
21701 #define wxUSE_DISPLAY 1
21702 EOF
21703
21704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21705 fi
21706
21707 if test "$wxUSE_GAUGE" = "yes"; then
21708 cat >> confdefs.h <<\EOF
21709 #define wxUSE_GAUGE 1
21710 EOF
21711
21712 USES_CONTROLS=1
21713 fi
21714
21715 if test "$wxUSE_GRID" = "yes"; then
21716 cat >> confdefs.h <<\EOF
21717 #define wxUSE_GRID 1
21718 EOF
21719
21720 USES_CONTROLS=1
21721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21722 fi
21723
21724 if test "$wxUSE_IMAGLIST" = "yes"; then
21725 cat >> confdefs.h <<\EOF
21726 #define wxUSE_IMAGLIST 1
21727 EOF
21728
21729 fi
21730
21731 if test "$wxUSE_LISTBOX" = "yes"; then
21732 cat >> confdefs.h <<\EOF
21733 #define wxUSE_LISTBOX 1
21734 EOF
21735
21736 USES_CONTROLS=1
21737 fi
21738
21739 if test "$wxUSE_LISTCTRL" = "yes"; then
21740 if test "$wxUSE_IMAGLIST" = "yes"; then
21741 cat >> confdefs.h <<\EOF
21742 #define wxUSE_LISTCTRL 1
21743 EOF
21744
21745 USES_CONTROLS=1
21746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21747 else
21748 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21749 fi
21750 fi
21751
21752 if test "$wxUSE_NOTEBOOK" = "yes"; then
21753 cat >> confdefs.h <<\EOF
21754 #define wxUSE_NOTEBOOK 1
21755 EOF
21756
21757 USES_CONTROLS=1
21758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21759 fi
21760
21761
21762 if test "$wxUSE_RADIOBOX" = "yes"; then
21763 cat >> confdefs.h <<\EOF
21764 #define wxUSE_RADIOBOX 1
21765 EOF
21766
21767 USES_CONTROLS=1
21768 fi
21769
21770 if test "$wxUSE_RADIOBTN" = "yes"; then
21771 cat >> confdefs.h <<\EOF
21772 #define wxUSE_RADIOBTN 1
21773 EOF
21774
21775 USES_CONTROLS=1
21776 fi
21777
21778 if test "$wxUSE_SASH" = "yes"; then
21779 cat >> confdefs.h <<\EOF
21780 #define wxUSE_SASH 1
21781 EOF
21782
21783 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21784 fi
21785
21786 if test "$wxUSE_SCROLLBAR" = "yes"; then
21787 cat >> confdefs.h <<\EOF
21788 #define wxUSE_SCROLLBAR 1
21789 EOF
21790
21791 USES_CONTROLS=1
21792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21793 fi
21794
21795 if test "$wxUSE_SLIDER" = "yes"; then
21796 cat >> confdefs.h <<\EOF
21797 #define wxUSE_SLIDER 1
21798 EOF
21799
21800 USES_CONTROLS=1
21801 fi
21802
21803 if test "$wxUSE_SPINBTN" = "yes"; then
21804 cat >> confdefs.h <<\EOF
21805 #define wxUSE_SPINBTN 1
21806 EOF
21807
21808 USES_CONTROLS=1
21809 fi
21810
21811 if test "$wxUSE_SPINCTRL" = "yes"; then
21812 cat >> confdefs.h <<\EOF
21813 #define wxUSE_SPINCTRL 1
21814 EOF
21815
21816 USES_CONTROLS=1
21817 fi
21818
21819 if test "$wxUSE_SPLITTER" = "yes"; then
21820 cat >> confdefs.h <<\EOF
21821 #define wxUSE_SPLITTER 1
21822 EOF
21823
21824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21825 fi
21826
21827 if test "$wxUSE_STATBMP" = "yes"; then
21828 cat >> confdefs.h <<\EOF
21829 #define wxUSE_STATBMP 1
21830 EOF
21831
21832 USES_CONTROLS=1
21833 fi
21834
21835 if test "$wxUSE_STATBOX" = "yes"; then
21836 cat >> confdefs.h <<\EOF
21837 #define wxUSE_STATBOX 1
21838 EOF
21839
21840 USES_CONTROLS=1
21841 fi
21842
21843 if test "$wxUSE_STATTEXT" = "yes"; then
21844 cat >> confdefs.h <<\EOF
21845 #define wxUSE_STATTEXT 1
21846 EOF
21847
21848 USES_CONTROLS=1
21849 fi
21850
21851 if test "$wxUSE_STATLINE" = "yes"; then
21852 cat >> confdefs.h <<\EOF
21853 #define wxUSE_STATLINE 1
21854 EOF
21855
21856 USES_CONTROLS=1
21857 fi
21858
21859 if test "$wxUSE_STATUSBAR" = "yes"; then
21860 cat >> confdefs.h <<\EOF
21861 #define wxUSE_STATUSBAR 1
21862 EOF
21863
21864 USES_CONTROLS=1
21865
21866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21867 fi
21868
21869 if test "$wxUSE_TABDIALOG" = "yes"; then
21870 cat >> confdefs.h <<\EOF
21871 #define wxUSE_TAB_DIALOG 1
21872 EOF
21873
21874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21875 fi
21876
21877 if test "$wxUSE_TEXTCTRL" = "yes"; then
21878 cat >> confdefs.h <<\EOF
21879 #define wxUSE_TEXTCTRL 1
21880 EOF
21881
21882 USES_CONTROLS=1
21883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21884 fi
21885
21886 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21887 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21888 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21889 wxUSE_TOGGLEBTN=no
21890 fi
21891 if test "$wxUSE_UNIVERSAL" = "yes"; then
21892 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21893 wxUSE_TOGGLEBTN=no
21894 fi
21895
21896 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21897 cat >> confdefs.h <<\EOF
21898 #define wxUSE_TOGGLEBTN 1
21899 EOF
21900
21901 USES_CONTROLS=1
21902 fi
21903 fi
21904
21905 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21906 cat >> confdefs.h <<\EOF
21907 #define wxUSE_TOOLBAR_SIMPLE 1
21908 EOF
21909
21910 wxUSE_TOOLBAR="yes"
21911 USES_CONTROLS=1
21912 fi
21913
21914 if test "$wxUSE_TOOLBAR" = "yes"; then
21915 cat >> confdefs.h <<\EOF
21916 #define wxUSE_TOOLBAR 1
21917 EOF
21918
21919 USES_CONTROLS=1
21920
21921 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21922 wxUSE_TOOLBAR_NATIVE="yes"
21923 fi
21924
21925 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21926 cat >> confdefs.h <<\EOF
21927 #define wxUSE_TOOLBAR_NATIVE 1
21928 EOF
21929
21930 USES_CONTROLS=1
21931 fi
21932
21933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21934 fi
21935
21936 if test "$wxUSE_TOOLTIPS" = "yes"; then
21937 if test "$wxUSE_MOTIF" = 1; then
21938 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21939 else
21940 if test "$wxUSE_UNIVERSAL" = "yes"; then
21941 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21942 else
21943 cat >> confdefs.h <<\EOF
21944 #define wxUSE_TOOLTIPS 1
21945 EOF
21946
21947 fi
21948 fi
21949 fi
21950
21951 if test "$wxUSE_TREECTRL" = "yes"; then
21952 if test "$wxUSE_IMAGLIST" = "yes"; then
21953 cat >> confdefs.h <<\EOF
21954 #define wxUSE_TREECTRL 1
21955 EOF
21956
21957 USES_CONTROLS=1
21958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21959 else
21960 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21961 fi
21962 fi
21963
21964 if test "$wxUSE_POPUPWIN" = "yes"; then
21965 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21966 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21967 else
21968 if test "$wxUSE_MOTIF" = 1; then
21969 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21970 else
21971 if test "$wxUSE_PM" = 1; then
21972 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21973 else
21974 cat >> confdefs.h <<\EOF
21975 #define wxUSE_POPUPWIN 1
21976 EOF
21977
21978
21979 USES_CONTROLS=1
21980 fi
21981 fi
21982 fi
21983 fi
21984
21985 if test "$wxUSE_TIPWINDOW" = "yes"; then
21986 if test "$wxUSE_PM" = 1; then
21987 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21988 else
21989 cat >> confdefs.h <<\EOF
21990 #define wxUSE_TIPWINDOW 1
21991 EOF
21992
21993 fi
21994 fi
21995
21996 if test "$USES_CONTROLS" = 1; then
21997 cat >> confdefs.h <<\EOF
21998 #define wxUSE_CONTROLS 1
21999 EOF
22000
22001 fi
22002
22003
22004
22005 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22006 cat >> confdefs.h <<\EOF
22007 #define wxUSE_DRAGIMAGE 1
22008 EOF
22009
22010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
22011 fi
22012
22013 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
22014 cat >> confdefs.h <<\EOF
22015 #define wxUSE_ACCESSIBILITY 1
22016 EOF
22017
22018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
22019 fi
22020
22021 if test "$wxUSE_MENUS" = "yes"; then
22022 cat >> confdefs.h <<\EOF
22023 #define wxUSE_MENUS 1
22024 EOF
22025
22026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
22027 fi
22028
22029 if test "$wxUSE_METAFILE" = "yes"; then
22030 cat >> confdefs.h <<\EOF
22031 #define wxUSE_METAFILE 1
22032 EOF
22033
22034 fi
22035
22036 if test "$wxUSE_MIMETYPE" = "yes"; then
22037 cat >> confdefs.h <<\EOF
22038 #define wxUSE_MIMETYPE 1
22039 EOF
22040
22041 fi
22042
22043 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
22044 cat >> confdefs.h <<\EOF
22045 #define wxUSE_SYSTEM_OPTIONS 1
22046 EOF
22047
22048 if test "$TOOLKIT" = "MSW"; then
22049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
22050 fi
22051
22052 fi
22053
22054 if test "$wxUSE_PROTOCOL" = "yes"; then
22055 if test "$wxUSE_SOCKETS" != "yes"; then
22056 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
22057 wxUSE_PROTOCOL=no
22058 fi
22059
22060 if test "$wxUSE_PROTOCOL" = "yes"; then
22061 cat >> confdefs.h <<\EOF
22062 #define wxUSE_PROTOCOL 1
22063 EOF
22064
22065
22066 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
22067 cat >> confdefs.h <<\EOF
22068 #define wxUSE_PROTOCOL_HTTP 1
22069 EOF
22070
22071 fi
22072 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
22073 cat >> confdefs.h <<\EOF
22074 #define wxUSE_PROTOCOL_FTP 1
22075 EOF
22076
22077 fi
22078 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
22079 cat >> confdefs.h <<\EOF
22080 #define wxUSE_PROTOCOL_FILE 1
22081 EOF
22082
22083 fi
22084 fi
22085 fi
22086
22087 if test "$wxUSE_URL" = "yes"; then
22088 if test "$wxUSE_PROTOCOL" != "yes"; then
22089 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
22090 wxUSE_URL=no
22091 fi
22092 if test "$wxUSE_URL" = "yes"; then
22093 cat >> confdefs.h <<\EOF
22094 #define wxUSE_URL 1
22095 EOF
22096
22097 fi
22098 fi
22099
22100 if test "$wxUSE_MINIFRAME" = "yes"; then
22101 cat >> confdefs.h <<\EOF
22102 #define wxUSE_MINIFRAME 1
22103 EOF
22104
22105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
22106 fi
22107
22108 if test "$wxUSE_HTML" = "yes"; then
22109 cat >> confdefs.h <<\EOF
22110 #define wxUSE_HTML 1
22111 EOF
22112
22113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
22114 fi
22115
22116 if test "$wxUSE_VALIDATORS" = "yes"; then
22117 cat >> confdefs.h <<\EOF
22118 #define wxUSE_VALIDATORS 1
22119 EOF
22120
22121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22122 fi
22123
22124 if test "$wxUSE_PALETTE" = "yes" ; then
22125 cat >> confdefs.h <<\EOF
22126 #define wxUSE_PALETTE 1
22127 EOF
22128
22129 fi
22130
22131 if test "$wxUSE_IMAGE" = "yes" ; then
22132 cat >> confdefs.h <<\EOF
22133 #define wxUSE_IMAGE 1
22134 EOF
22135
22136 fi
22137
22138 if test "$wxUSE_GIF" = "yes" ; then
22139 cat >> confdefs.h <<\EOF
22140 #define wxUSE_GIF 1
22141 EOF
22142
22143 fi
22144
22145 if test "$wxUSE_PCX" = "yes" ; then
22146 cat >> confdefs.h <<\EOF
22147 #define wxUSE_PCX 1
22148 EOF
22149
22150 fi
22151
22152 if test "$wxUSE_IFF" = "yes" ; then
22153 cat >> confdefs.h <<\EOF
22154 #define wxUSE_IFF 1
22155 EOF
22156
22157 fi
22158
22159 if test "$wxUSE_PNM" = "yes" ; then
22160 cat >> confdefs.h <<\EOF
22161 #define wxUSE_PNM 1
22162 EOF
22163
22164 fi
22165
22166 if test "$wxUSE_XPM" = "yes" ; then
22167 cat >> confdefs.h <<\EOF
22168 #define wxUSE_XPM 1
22169 EOF
22170
22171 fi
22172
22173 if test "$wxUSE_ICO_CUR" = "yes" ; then
22174 cat >> confdefs.h <<\EOF
22175 #define wxUSE_ICO_CUR 1
22176 EOF
22177
22178 fi
22179
22180 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22181 LIBS=" -lunicows $LIBS"
22182 fi
22183
22184
22185 if test "$wxUSE_CHOICEDLG" = "yes"; then
22186 cat >> confdefs.h <<\EOF
22187 #define wxUSE_CHOICEDLG 1
22188 EOF
22189
22190 fi
22191
22192 if test "$wxUSE_COLOURDLG" = "yes"; then
22193 cat >> confdefs.h <<\EOF
22194 #define wxUSE_COLOURDLG 1
22195 EOF
22196
22197 fi
22198
22199 if test "$wxUSE_FILEDLG" = "yes"; then
22200 cat >> confdefs.h <<\EOF
22201 #define wxUSE_FILEDLG 1
22202 EOF
22203
22204 fi
22205
22206 if test "$wxUSE_FINDREPLDLG" = "yes"; then
22207 cat >> confdefs.h <<\EOF
22208 #define wxUSE_FINDREPLDLG 1
22209 EOF
22210
22211 fi
22212
22213 if test "$wxUSE_FONTDLG" = "yes"; then
22214 cat >> confdefs.h <<\EOF
22215 #define wxUSE_FONTDLG 1
22216 EOF
22217
22218 fi
22219
22220 if test "$wxUSE_DIRDLG" = "yes"; then
22221 if test "$wxUSE_TREECTRL" != "yes"; then
22222 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
22223 else
22224 cat >> confdefs.h <<\EOF
22225 #define wxUSE_DIRDLG 1
22226 EOF
22227
22228 fi
22229 fi
22230
22231 if test "$wxUSE_MSGDLG" = "yes"; then
22232 cat >> confdefs.h <<\EOF
22233 #define wxUSE_MSGDLG 1
22234 EOF
22235
22236 fi
22237
22238 if test "$wxUSE_NUMBERDLG" = "yes"; then
22239 cat >> confdefs.h <<\EOF
22240 #define wxUSE_NUMBERDLG 1
22241 EOF
22242
22243 fi
22244
22245 if test "$wxUSE_PROGRESSDLG" = "yes"; then
22246 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22247 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22248 else
22249 cat >> confdefs.h <<\EOF
22250 #define wxUSE_PROGRESSDLG 1
22251 EOF
22252
22253 fi
22254 fi
22255
22256 if test "$wxUSE_SPLASH" = "yes"; then
22257 cat >> confdefs.h <<\EOF
22258 #define wxUSE_SPLASH 1
22259 EOF
22260
22261 fi
22262
22263 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22264 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22265 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22266 else
22267 cat >> confdefs.h <<\EOF
22268 #define wxUSE_STARTUP_TIPS 1
22269 EOF
22270
22271 fi
22272 fi
22273
22274 if test "$wxUSE_TEXTDLG" = "yes"; then
22275 cat >> confdefs.h <<\EOF
22276 #define wxUSE_TEXTDLG 1
22277 EOF
22278
22279 fi
22280
22281 if test "$wxUSE_WIZARDDLG" = "yes"; then
22282 cat >> confdefs.h <<\EOF
22283 #define wxUSE_WIZARDDLG 1
22284 EOF
22285
22286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22287 fi
22288
22289
22290 if test "$cross_compiling" = "yes"; then
22291 OSINFO="\"$host\""
22292 else
22293 OSINFO=`uname -s -r -m`
22294 OSINFO="\"$OSINFO\""
22295 fi
22296
22297 cat >> confdefs.h <<EOF
22298 #define WXWIN_OS_DESCRIPTION $OSINFO
22299 EOF
22300
22301
22302
22303 if test "x$prefix" != "xNONE"; then
22304 wxPREFIX=$prefix
22305 else
22306 wxPREFIX=$ac_default_prefix
22307 fi
22308
22309 cat >> confdefs.h <<EOF
22310 #define wxINSTALL_PREFIX "$wxPREFIX"
22311 EOF
22312
22313
22314 top_builddir=`pwd`
22315
22316
22317
22318
22319 if test "$wxUSE_MAC" = 1 ; then
22320 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22321 fi
22322 if test "$wxUSE_COCOA" = 1 ; then
22323 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22324 fi
22325
22326
22327 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22328
22329 have_cos=0
22330 have_floor=0
22331 for ac_func in cos
22332 do
22333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22334 echo "configure:22335: checking for $ac_func" >&5
22335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22336 echo $ac_n "(cached) $ac_c" 1>&6
22337 else
22338 cat > conftest.$ac_ext <<EOF
22339 #line 22340 "configure"
22340 #include "confdefs.h"
22341 /* System header to define __stub macros and hopefully few prototypes,
22342 which can conflict with char $ac_func(); below. */
22343 #include <assert.h>
22344 /* Override any gcc2 internal prototype to avoid an error. */
22345 /* We use char because int might match the return type of a gcc2
22346 builtin and then its argument prototype would still apply. */
22347 char $ac_func();
22348
22349 int main() {
22350
22351 /* The GNU C library defines this for functions which it implements
22352 to always fail with ENOSYS. Some functions are actually named
22353 something starting with __ and the normal name is an alias. */
22354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22355 choke me
22356 #else
22357 $ac_func();
22358 #endif
22359
22360 ; return 0; }
22361 EOF
22362 if { (eval echo configure:22363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22363 rm -rf conftest*
22364 eval "ac_cv_func_$ac_func=yes"
22365 else
22366 echo "configure: failed program was:" >&5
22367 cat conftest.$ac_ext >&5
22368 rm -rf conftest*
22369 eval "ac_cv_func_$ac_func=no"
22370 fi
22371 rm -f conftest*
22372 fi
22373
22374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22375 echo "$ac_t""yes" 1>&6
22376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22377 cat >> confdefs.h <<EOF
22378 #define $ac_tr_func 1
22379 EOF
22380 have_cos=1
22381 else
22382 echo "$ac_t""no" 1>&6
22383 fi
22384 done
22385
22386 for ac_func in floor
22387 do
22388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22389 echo "configure:22390: checking for $ac_func" >&5
22390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22391 echo $ac_n "(cached) $ac_c" 1>&6
22392 else
22393 cat > conftest.$ac_ext <<EOF
22394 #line 22395 "configure"
22395 #include "confdefs.h"
22396 /* System header to define __stub macros and hopefully few prototypes,
22397 which can conflict with char $ac_func(); below. */
22398 #include <assert.h>
22399 /* Override any gcc2 internal prototype to avoid an error. */
22400 /* We use char because int might match the return type of a gcc2
22401 builtin and then its argument prototype would still apply. */
22402 char $ac_func();
22403
22404 int main() {
22405
22406 /* The GNU C library defines this for functions which it implements
22407 to always fail with ENOSYS. Some functions are actually named
22408 something starting with __ and the normal name is an alias. */
22409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22410 choke me
22411 #else
22412 $ac_func();
22413 #endif
22414
22415 ; return 0; }
22416 EOF
22417 if { (eval echo configure:22418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22418 rm -rf conftest*
22419 eval "ac_cv_func_$ac_func=yes"
22420 else
22421 echo "configure: failed program was:" >&5
22422 cat conftest.$ac_ext >&5
22423 rm -rf conftest*
22424 eval "ac_cv_func_$ac_func=no"
22425 fi
22426 rm -f conftest*
22427 fi
22428
22429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22430 echo "$ac_t""yes" 1>&6
22431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22432 cat >> confdefs.h <<EOF
22433 #define $ac_tr_func 1
22434 EOF
22435 have_floor=1
22436 else
22437 echo "$ac_t""no" 1>&6
22438 fi
22439 done
22440
22441 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22442 echo "configure:22443: checking if floating point functions link without -lm" >&5
22443 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22444 echo "$ac_t""yes" 1>&6
22445 else
22446 echo "$ac_t""no" 1>&6
22447 LIBS="$LIBS -lm"
22448 # use different functions to avoid configure caching
22449 have_sin=0
22450 have_ceil=0
22451 for ac_func in sin
22452 do
22453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22454 echo "configure:22455: checking for $ac_func" >&5
22455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22456 echo $ac_n "(cached) $ac_c" 1>&6
22457 else
22458 cat > conftest.$ac_ext <<EOF
22459 #line 22460 "configure"
22460 #include "confdefs.h"
22461 /* System header to define __stub macros and hopefully few prototypes,
22462 which can conflict with char $ac_func(); below. */
22463 #include <assert.h>
22464 /* Override any gcc2 internal prototype to avoid an error. */
22465 /* We use char because int might match the return type of a gcc2
22466 builtin and then its argument prototype would still apply. */
22467 char $ac_func();
22468
22469 int main() {
22470
22471 /* The GNU C library defines this for functions which it implements
22472 to always fail with ENOSYS. Some functions are actually named
22473 something starting with __ and the normal name is an alias. */
22474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22475 choke me
22476 #else
22477 $ac_func();
22478 #endif
22479
22480 ; return 0; }
22481 EOF
22482 if { (eval echo configure:22483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22483 rm -rf conftest*
22484 eval "ac_cv_func_$ac_func=yes"
22485 else
22486 echo "configure: failed program was:" >&5
22487 cat conftest.$ac_ext >&5
22488 rm -rf conftest*
22489 eval "ac_cv_func_$ac_func=no"
22490 fi
22491 rm -f conftest*
22492 fi
22493
22494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22495 echo "$ac_t""yes" 1>&6
22496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22497 cat >> confdefs.h <<EOF
22498 #define $ac_tr_func 1
22499 EOF
22500 have_sin=1
22501 else
22502 echo "$ac_t""no" 1>&6
22503 fi
22504 done
22505
22506 for ac_func in ceil
22507 do
22508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22509 echo "configure:22510: checking for $ac_func" >&5
22510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22511 echo $ac_n "(cached) $ac_c" 1>&6
22512 else
22513 cat > conftest.$ac_ext <<EOF
22514 #line 22515 "configure"
22515 #include "confdefs.h"
22516 /* System header to define __stub macros and hopefully few prototypes,
22517 which can conflict with char $ac_func(); below. */
22518 #include <assert.h>
22519 /* Override any gcc2 internal prototype to avoid an error. */
22520 /* We use char because int might match the return type of a gcc2
22521 builtin and then its argument prototype would still apply. */
22522 char $ac_func();
22523
22524 int main() {
22525
22526 /* The GNU C library defines this for functions which it implements
22527 to always fail with ENOSYS. Some functions are actually named
22528 something starting with __ and the normal name is an alias. */
22529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22530 choke me
22531 #else
22532 $ac_func();
22533 #endif
22534
22535 ; return 0; }
22536 EOF
22537 if { (eval echo configure:22538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22538 rm -rf conftest*
22539 eval "ac_cv_func_$ac_func=yes"
22540 else
22541 echo "configure: failed program was:" >&5
22542 cat conftest.$ac_ext >&5
22543 rm -rf conftest*
22544 eval "ac_cv_func_$ac_func=no"
22545 fi
22546 rm -f conftest*
22547 fi
22548
22549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22550 echo "$ac_t""yes" 1>&6
22551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22552 cat >> confdefs.h <<EOF
22553 #define $ac_tr_func 1
22554 EOF
22555 have_ceil=1
22556 else
22557 echo "$ac_t""no" 1>&6
22558 fi
22559 done
22560
22561 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22562 echo "configure:22563: checking if floating point functions link with -lm" >&5
22563 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22564 echo "$ac_t""yes" 1>&6
22565 else
22566 echo "$ac_t""no" 1>&6
22567 # not sure we should warn the user, crash, etc.
22568 fi
22569 fi
22570
22571 if test "$wxUSE_GUI" = "yes"; then
22572
22573 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22574
22575
22576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22577 drawing dynamic erase event exec font image \
22578 minimal propsize rotate shaped widgets"
22579 else
22580 SAMPLES_SUBDIRS="console"
22581 fi
22582
22583
22584 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22585 -I\${top_srcdir}/include \
22586 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22587 $TOOLKIT_INCLUDE"
22588
22589 if test "$wxUSE_GTK" = 1; then
22590 WXCONFIG_INCLUDE=
22591 else
22592 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22593 fi
22594
22595 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
22596 WXUNIV=1
22597 else
22598 WXUNIV=0
22599 fi
22600
22601
22602
22603
22604
22605
22606
22607
22608 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
22609
22610 MONOLITHIC=1
22611
22612
22613
22614
22615
22616
22617
22618 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
22619
22620
22621
22622
22623
22624 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
22625
22626 # Extract the first word of "ranlib", so it can be a program name with args.
22627 set dummy ranlib; ac_word=$2
22628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22629 echo "configure:22630: checking for $ac_word" >&5
22630 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
22631 echo $ac_n "(cached) $ac_c" 1>&6
22632 else
22633 if test -n "$RANLIB"; then
22634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
22635 else
22636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
22637 ac_dummy="$PATH"
22638 for ac_dir in $ac_dummy; do
22639 test -z "$ac_dir" && ac_dir=.
22640 if test -f $ac_dir/$ac_word; then
22641 ac_cv_prog_RANLIB="ranlib"
22642 break
22643 fi
22644 done
22645 IFS="$ac_save_ifs"
22646 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
22647 fi
22648 fi
22649 RANLIB="$ac_cv_prog_RANLIB"
22650 if test -n "$RANLIB"; then
22651 echo "$ac_t""$RANLIB" 1>&6
22652 else
22653 echo "$ac_t""no" 1>&6
22654 fi
22655
22656 # Find a good install program. We prefer a C program (faster),
22657 # so one script is as good as another. But avoid the broken or
22658 # incompatible versions:
22659 # SysV /etc/install, /usr/sbin/install
22660 # SunOS /usr/etc/install
22661 # IRIX /sbin/install
22662 # AIX /bin/install
22663 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
22665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22666 # ./install, which can be erroneously created by make from ./install.sh.
22667 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
22668 echo "configure:22669: checking for a BSD compatible install" >&5
22669 if test -z "$INSTALL"; then
22670 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
22671 echo $ac_n "(cached) $ac_c" 1>&6
22672 else
22673 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
22674 for ac_dir in $PATH; do
22675 # Account for people who put trailing slashes in PATH elements.
22676 case "$ac_dir/" in
22677 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
22678 *)
22679 # OSF1 and SCO ODT 3.0 have their own names for install.
22680 # Don't use installbsd from OSF since it installs stuff as root
22681 # by default.
22682 for ac_prog in ginstall scoinst install; do
22683 if test -f $ac_dir/$ac_prog; then
22684 if test $ac_prog = install &&
22685 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
22686 # AIX install. It has an incompatible calling convention.
22687 :
22688 else
22689 ac_cv_path_install="$ac_dir/$ac_prog -c"
22690 break 2
22691 fi
22692 fi
22693 done
22694 ;;
22695 esac
22696 done
22697 IFS="$ac_save_IFS"
22698
22699 fi
22700 if test "${ac_cv_path_install+set}" = set; then
22701 INSTALL="$ac_cv_path_install"
22702 else
22703 # As a last resort, use the slow shell script. We don't cache a
22704 # path for INSTALL within a source directory, because that will
22705 # break other packages using the cache if that directory is
22706 # removed, or if the path is relative.
22707 INSTALL="$ac_install_sh"
22708 fi
22709 fi
22710 echo "$ac_t""$INSTALL" 1>&6
22711
22712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22713 # It thinks the first close brace ends the variable substitution.
22714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22715
22716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
22717
22718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22719
22720 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
22721 echo "configure:22722: checking whether ln -s works" >&5
22722 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
22723 echo $ac_n "(cached) $ac_c" 1>&6
22724 else
22725 rm -f conftestdata
22726 if ln -s X conftestdata 2>/dev/null
22727 then
22728 rm -f conftestdata
22729 ac_cv_prog_LN_S="ln -s"
22730 else
22731 ac_cv_prog_LN_S=ln
22732 fi
22733 fi
22734 LN_S="$ac_cv_prog_LN_S"
22735 if test "$ac_cv_prog_LN_S" = "ln -s"; then
22736 echo "$ac_t""yes" 1>&6
22737 else
22738 echo "$ac_t""no" 1>&6
22739 fi
22740
22741
22742 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22743 echo "configure:22744: checking whether ${MAKE-make} sets \${MAKE}" >&5
22744 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22745 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22746 echo $ac_n "(cached) $ac_c" 1>&6
22747 else
22748 cat > conftestmake <<\EOF
22749 all:
22750 @echo 'ac_maketemp="${MAKE}"'
22751 EOF
22752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22753 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22754 if test -n "$ac_maketemp"; then
22755 eval ac_cv_prog_make_${ac_make}_set=yes
22756 else
22757 eval ac_cv_prog_make_${ac_make}_set=no
22758 fi
22759 rm -f conftestmake
22760 fi
22761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22762 echo "$ac_t""yes" 1>&6
22763 SET_MAKE=
22764 else
22765 echo "$ac_t""no" 1>&6
22766 SET_MAKE="MAKE=${MAKE-make}"
22767 fi
22768
22769
22770
22771 if test "$build" != "$host" ; then
22772 AR=$host_alias-ar
22773 STRIP=$host_alias-strip
22774 else
22775 # Extract the first word of "ar", so it can be a program name with args.
22776 set dummy ar; ac_word=$2
22777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22778 echo "configure:22779: checking for $ac_word" >&5
22779 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
22780 echo $ac_n "(cached) $ac_c" 1>&6
22781 else
22782 if test -n "$AR"; then
22783 ac_cv_prog_AR="$AR" # Let the user override the test.
22784 else
22785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
22786 ac_dummy="$PATH"
22787 for ac_dir in $ac_dummy; do
22788 test -z "$ac_dir" && ac_dir=.
22789 if test -f $ac_dir/$ac_word; then
22790 ac_cv_prog_AR="ar"
22791 break
22792 fi
22793 done
22794 IFS="$ac_save_ifs"
22795 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
22796 fi
22797 fi
22798 AR="$ac_cv_prog_AR"
22799 if test -n "$AR"; then
22800 echo "$ac_t""$AR" 1>&6
22801 else
22802 echo "$ac_t""no" 1>&6
22803 fi
22804
22805 # Extract the first word of "strip", so it can be a program name with args.
22806 set dummy strip; ac_word=$2
22807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22808 echo "configure:22809: checking for $ac_word" >&5
22809 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
22810 echo $ac_n "(cached) $ac_c" 1>&6
22811 else
22812 if test -n "$STRIP"; then
22813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
22814 else
22815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
22816 ac_dummy="$PATH"
22817 for ac_dir in $ac_dummy; do
22818 test -z "$ac_dir" && ac_dir=.
22819 if test -f $ac_dir/$ac_word; then
22820 ac_cv_prog_STRIP="strip"
22821 break
22822 fi
22823 done
22824 IFS="$ac_save_ifs"
22825 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
22826 fi
22827 fi
22828 STRIP="$ac_cv_prog_STRIP"
22829 if test -n "$STRIP"; then
22830 echo "$ac_t""$STRIP" 1>&6
22831 else
22832 echo "$ac_t""no" 1>&6
22833 fi
22834
22835 fi
22836
22837 case ${host} in
22838 *-hp-hpux* )
22839 INSTALL_DIR="mkdir"
22840 ;;
22841 *) INSTALL_DIR="$INSTALL -d"
22842 ;;
22843 esac
22844
22845
22846 fi
22847
22848 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
22849 echo "configure:22850: checking if make is GNU make" >&5
22850 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
22851 echo $ac_n "(cached) $ac_c" 1>&6
22852 else
22853
22854 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
22855 egrep -s GNU > /dev/null); then
22856 bakefile_cv_prog_makeisgnu="yes"
22857 else
22858 bakefile_cv_prog_makeisgnu="no"
22859 fi
22860
22861 fi
22862
22863 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
22864
22865 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
22866 IF_GNU_MAKE=""
22867 else
22868 IF_GNU_MAKE="#"
22869 fi
22870
22871
22872
22873 PLATFORM_UNIX=0
22874 PLATFORM_WIN32=0
22875 PLATFORM_MSDOS=0
22876 PLATFORM_MAC=0
22877 PLATFORM_MACOSX=0
22878
22879 case "${host}" in
22880 *-*-cygwin* | *-*-mingw32* )
22881 PLATFORM_WIN32=1
22882 ;;
22883 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
22884 PLATFORM_MSDOS=1
22885 ;;
22886 powerpc-*-darwin* )
22887 PLATFORM_MAC=1
22888 PLATFORM_MACOSX=1
22889 ;;
22890 * )
22891 PLATFORM_UNIX=1
22892 ;;
22893 esac
22894
22895
22896
22897
22898
22899
22900
22901
22902 SO_SUFFIX="so"
22903 EXEEXT=""
22904 DLLPREFIX=lib
22905
22906 case "${host}" in
22907 *-hp-hpux* )
22908 SO_SUFFIX="sl"
22909 ;;
22910 *-*-aix* )
22911 SO_SUFFIX="a"
22912 ;;
22913 *-*-cygwin* | *-*-mingw32* )
22914 SO_SUFFIX="dll"
22915 EXEEXT=".exe"
22916 DLLPREFIX=""
22917 ;;
22918 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
22919 EXEEXT=".exe"
22920 DLLPREFIX=""
22921 ;;
22922 powerpc-*-darwin* )
22923 SO_SUFFIX="dylib"
22924 ;;
22925 esac
22926
22927
22928
22929
22930
22931
22932 SHARED_LD_CC="\$(CC) -shared -o"
22933 SHARED_LD_CXX="\$(CXX) -shared -o"
22934
22935 if test "x$GCC" = "xyes"; then
22936 PIC_FLAG="-fPIC"
22937 fi
22938
22939 case "${host}" in
22940 *-hp-hpux* )
22941 if test "x$GCC" = "xyes"; then
22942 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
22943 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
22944 else
22945 LDFLAGS="$LDFLAGS -L/usr/lib"
22946
22947 SHARED_LD_CC="${CC} -b -o"
22948 SHARED_LD_CXX="${CXX} -b -o"
22949 PIC_FLAG="+Z"
22950 fi
22951 ;;
22952
22953 *-*-linux* )
22954 if test "x$GCC" != "xyes"; then
22955 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
22956 echo "configure:22957: checking for Intel compiler" >&5
22957 if eval "test \"`echo '$''{'bakefile_cv_prog_icc'+set}'`\" = set"; then
22958 echo $ac_n "(cached) $ac_c" 1>&6
22959 else
22960
22961 cat > conftest.$ac_ext <<EOF
22962 #line 22963 "configure"
22963 #include "confdefs.h"
22964
22965 int main() {
22966
22967 #ifndef __INTEL_COMPILER
22968 #error Not icc
22969 #endif
22970
22971 ; return 0; }
22972 EOF
22973 if { (eval echo configure:22974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22974 rm -rf conftest*
22975 bakefile_cv_prog_icc=yes
22976 else
22977 echo "configure: failed program was:" >&5
22978 cat conftest.$ac_ext >&5
22979 rm -rf conftest*
22980 bakefile_cv_prog_icc=no
22981
22982 fi
22983 rm -f conftest*
22984
22985 fi
22986
22987 echo "$ac_t""$bakefile_cv_prog_icc" 1>&6
22988 if test "$bakefile_cv_prog_icc" = "yes"; then
22989 PIC_FLAG="-KPIC"
22990 fi
22991 fi
22992 ;;
22993
22994 *-*-solaris2* )
22995 if test "x$GCC" != xyes ; then
22996 SHARED_LD_CC="${CC} -G -o"
22997 SHARED_LD_CXX="${CXX} -G -o"
22998 PIC_FLAG="-KPIC"
22999 fi
23000 ;;
23001
23002 *-*-darwin* )
23003 CFLAGS="$CFLAGS -fno-common"
23004 CXXFLAGS="$CXXFLAGS -fno-common"
23005
23006
23007 cat <<EOF >shared-ld-sh
23008 #!/bin/sh
23009 #-----------------------------------------------------------------------------
23010 #-- Name: distrib/mac/shared-ld-sh
23011 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
23012 #-- Author: Gilles Depeyrot
23013 #-- Copyright: (c) 2002 Gilles Depeyrot
23014 #-- Licence: any use permitted
23015 #-----------------------------------------------------------------------------
23016
23017 verbose=0
23018 args=""
23019 objects=""
23020
23021 while test \${#} -gt 0; do
23022 case \${1} in
23023
23024 -v)
23025 verbose=1
23026 ;;
23027
23028 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
23029 # collect these options and values
23030 args="\${args} \${1} \${2}"
23031 shift
23032 ;;
23033
23034 -l*|-L*|-flat_namespace)
23035 # collect these options
23036 args="\${args} \${1}"
23037 ;;
23038
23039 -dynamiclib)
23040 # skip these options
23041 ;;
23042
23043 -*)
23044 echo "shared-ld: unhandled option '\${1}'"
23045 exit 1
23046 ;;
23047
23048 *.o | *.a)
23049 # collect object files
23050 objects="\${objects} \${1}"
23051 ;;
23052
23053 *)
23054 echo "shared-ld: unhandled argument '\${1}'"
23055 exit 1
23056 ;;
23057
23058 esac
23059 shift
23060 done
23061
23062 #
23063 # Link one module containing all the others
23064 #
23065 if test \${verbose} = 1; then
23066 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
23067 fi
23068 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
23069 status=\$?
23070 if test \${status} != 0; then
23071 exit \${status}
23072 fi
23073
23074 #
23075 # Link the shared library from the single module created
23076 #
23077 if test \${verbose} = 1; then
23078 echo "cc -dynamiclib master.\$\$.o \${args}"
23079 fi
23080 c++ -dynamiclib master.\$\$.o \${args}
23081 status=\$?
23082 if test \${status} != 0; then
23083 exit \${status}
23084 fi
23085
23086 #
23087 # Remove intermediate module
23088 #
23089 rm -f master.\$\$.o
23090
23091 exit 0
23092 EOF
23093 chmod +x shared-ld-sh
23094
23095 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
23096 SHARED_LD_CXX="$SHARED_LD_CC"
23097 PIC_FLAG="-dynamic -fPIC"
23098 ;;
23099
23100 *-*-aix* )
23101 if test "x$GCC" != "xyes"; then
23102 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
23103 set dummy makeC++SharedLib; ac_word=$2
23104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
23105 echo "configure:23106: checking for $ac_word" >&5
23106 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
23107 echo $ac_n "(cached) $ac_c" 1>&6
23108 else
23109 if test -n "$AIX_CXX_LD"; then
23110 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
23111 else
23112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23113 ac_dummy="$PATH"
23114 for ac_dir in $ac_dummy; do
23115 test -z "$ac_dir" && ac_dir=.
23116 if test -f $ac_dir/$ac_word; then
23117 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
23118 break
23119 fi
23120 done
23121 IFS="$ac_save_ifs"
23122 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
23123 fi
23124 fi
23125 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
23126 if test -n "$AIX_CXX_LD"; then
23127 echo "$ac_t""$AIX_CXX_LD" 1>&6
23128 else
23129 echo "$ac_t""no" 1>&6
23130 fi
23131
23132 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
23133 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
23134 fi
23135 ;;
23136
23137 *-*-beos* )
23138 SHARED_LD_CC="${LD} -shared -o"
23139 SHARED_LD_CXX="${LD} -shared -o"
23140 ;;
23141
23142 *-*-irix* )
23143 if test "x$GCC" != "xyes"; then
23144 PIC_FLAG="-KPIC"
23145 fi
23146 ;;
23147
23148 *-*-cygwin* | *-*-mingw32* )
23149 PIC_FLAG=""
23150 ;;
23151
23152 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
23153 *-*-sunos4* | \
23154 *-*-osf* | \
23155 *-*-dgux5* | \
23156 *-*-sysv5* )
23157 ;;
23158
23159 *)
23160 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
23161 esac
23162
23163
23164
23165
23166
23167
23168 USE_SOVERSION=0
23169 USE_SOVERLINUX=0
23170 USE_SOVERSOLARIS=0
23171 USE_SOSYMLINKS=0
23172 USE_MACVERSION=0
23173 SONAME_FLAG=
23174
23175 case "${host}" in
23176 *-*-linux* )
23177 SONAME_FLAG="-Wl,-soname,"
23178 USE_SOVERSION=1
23179 USE_SOVERLINUX=1
23180 USE_SOSYMLINKS=1
23181 ;;
23182
23183 *-*-solaris2* )
23184 SONAME_FLAG="-h "
23185 USE_SOVERSION=1
23186 USE_SOVERSOLARIS=1
23187 USE_SOSYMLINKS=1
23188 ;;
23189
23190 *-*-darwin* )
23191 USE_MACVERSION=1
23192 USE_SOVERSION=1
23193 USE_SOSYMLINKS=1
23194 ;;
23195 esac
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205 DEPS_TYPE=no
23206 if test "x$GCC" = "xyes"; then
23207 DEPS_TYPE=gcc
23208 fi
23209
23210
23211
23212
23213 RESCOMP=
23214 SETFILE=
23215
23216 case ${host} in
23217 *-*-cygwin* | *-*-mingw32* )
23218 if test "$build" != "$host" ; then
23219 RESCOMP=$host_alias-windres
23220 else
23221 # Extract the first word of "windres", so it can be a program name with args.
23222 set dummy windres; ac_word=$2
23223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
23224 echo "configure:23225: checking for $ac_word" >&5
23225 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
23226 echo $ac_n "(cached) $ac_c" 1>&6
23227 else
23228 if test -n "$RESCOMP"; then
23229 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
23230 else
23231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23232 ac_dummy="$PATH"
23233 for ac_dir in $ac_dummy; do
23234 test -z "$ac_dir" && ac_dir=.
23235 if test -f $ac_dir/$ac_word; then
23236 ac_cv_prog_RESCOMP="windres"
23237 break
23238 fi
23239 done
23240 IFS="$ac_save_ifs"
23241 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
23242 fi
23243 fi
23244 RESCOMP="$ac_cv_prog_RESCOMP"
23245 if test -n "$RESCOMP"; then
23246 echo "$ac_t""$RESCOMP" 1>&6
23247 else
23248 echo "$ac_t""no" 1>&6
23249 fi
23250
23251 fi
23252 ;;
23253
23254 *-*-darwin* )
23255 # Extract the first word of "Rez", so it can be a program name with args.
23256 set dummy Rez; ac_word=$2
23257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
23258 echo "configure:23259: checking for $ac_word" >&5
23259 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
23260 echo $ac_n "(cached) $ac_c" 1>&6
23261 else
23262 if test -n "$RESCOMP"; then
23263 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
23264 else
23265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23266 ac_dummy="$PATH"
23267 for ac_dir in $ac_dummy; do
23268 test -z "$ac_dir" && ac_dir=.
23269 if test -f $ac_dir/$ac_word; then
23270 ac_cv_prog_RESCOMP="Rez"
23271 break
23272 fi
23273 done
23274 IFS="$ac_save_ifs"
23275 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
23276 fi
23277 fi
23278 RESCOMP="$ac_cv_prog_RESCOMP"
23279 if test -n "$RESCOMP"; then
23280 echo "$ac_t""$RESCOMP" 1>&6
23281 else
23282 echo "$ac_t""no" 1>&6
23283 fi
23284
23285 # Extract the first word of "SetFile", so it can be a program name with args.
23286 set dummy SetFile; ac_word=$2
23287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
23288 echo "configure:23289: checking for $ac_word" >&5
23289 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
23290 echo $ac_n "(cached) $ac_c" 1>&6
23291 else
23292 if test -n "$SETFILE"; then
23293 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
23294 else
23295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
23296 ac_dummy="$PATH"
23297 for ac_dir in $ac_dummy; do
23298 test -z "$ac_dir" && ac_dir=.
23299 if test -f $ac_dir/$ac_word; then
23300 ac_cv_prog_SETFILE="SetFile"
23301 break
23302 fi
23303 done
23304 IFS="$ac_save_ifs"
23305 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
23306 fi
23307 fi
23308 SETFILE="$ac_cv_prog_SETFILE"
23309 if test -n "$SETFILE"; then
23310 echo "$ac_t""$SETFILE" 1>&6
23311 else
23312 echo "$ac_t""no" 1>&6
23313 fi
23314
23315 ;;
23316 esac
23317
23318
23319
23320
23321
23322
23323
23324 COND_WXUSE_ZLIBBUILTIN="#"
23325 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
23326 COND_WXUSE_ZLIBBUILTIN=
23327 fi
23328
23329 COND_UNICODE1="#"
23330 if test "x$UNICODE" = "x1" ; then
23331 COND_UNICODE1=
23332 fi
23333
23334 COND_BUILDDEBUG="#"
23335 if test "x$BUILD" = "xdebug" ; then
23336 COND_BUILDDEBUG=
23337 fi
23338
23339 COND_WXUSE_REGEXBUILTIN="#"
23340 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
23341 COND_WXUSE_REGEXBUILTIN=
23342 fi
23343
23344 COND_USE_SOSYMLINKS1="#"
23345 if test "x$USE_SOSYMLINKS" = "x1" ; then
23346 COND_USE_SOSYMLINKS1=
23347 fi
23348
23349 COND_WXUSE_LIBJPEGBUILTIN="#"
23350 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
23351 COND_WXUSE_LIBJPEGBUILTIN=
23352 fi
23353
23354 COND_WXUSE_LIBPNGBUILTIN="#"
23355 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
23356 COND_WXUSE_LIBPNGBUILTIN=
23357 fi
23358
23359 COND_WXUSE_ODBCBUILTIN="#"
23360 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
23361 COND_WXUSE_ODBCBUILTIN=
23362 fi
23363
23364 COND_TOOLKITGTK="#"
23365 if test "x$TOOLKIT" = "xGTK" ; then
23366 COND_TOOLKITGTK=
23367 fi
23368
23369 COND_TOOLKITMOTIF="#"
23370 if test "x$TOOLKIT" = "xMOTIF" ; then
23371 COND_TOOLKITMOTIF=
23372 fi
23373
23374 COND_TOOLKITMSW="#"
23375 if test "x$TOOLKIT" = "xMSW" ; then
23376 COND_TOOLKITMSW=
23377 fi
23378
23379 COND_TOOLKITMAC="#"
23380 if test "x$TOOLKIT" = "xMAC" ; then
23381 COND_TOOLKITMAC=
23382 fi
23383
23384 COND_TOOLKITCOCOA="#"
23385 if test "x$TOOLKIT" = "xCOCOA" ; then
23386 COND_TOOLKITCOCOA=
23387 fi
23388
23389 COND_TOOLKITOS2="#"
23390 if test "x$TOOLKIT" = "xOS2" ; then
23391 COND_TOOLKITOS2=
23392 fi
23393
23394 COND_TOOLKITX11="#"
23395 if test "x$TOOLKIT" = "xX11" ; then
23396 COND_TOOLKITX11=
23397 fi
23398
23399 COND_TOOLKITMGL="#"
23400 if test "x$TOOLKIT" = "xMGL" ; then
23401 COND_TOOLKITMGL=
23402 fi
23403
23404 COND_WXUNIV1="#"
23405 if test "x$WXUNIV" = "x1" ; then
23406 COND_WXUNIV1=
23407 fi
23408
23409 COND_SHARED0_MONOLITHIC1="#"
23410 if test "x$SHARED" = "x0" -a \
23411 "x$MONOLITHIC" = "x1" ; then
23412 COND_SHARED0_MONOLITHIC1=
23413 fi
23414
23415 COND_SHARED1_MONOLITHIC1="#"
23416 if test "x$SHARED" = "x1" -a \
23417 "x$MONOLITHIC" = "x1" ; then
23418 COND_SHARED1_MONOLITHIC1=
23419 fi
23420
23421 COND_PLATFORM_UNIX1="#"
23422 if test "x$PLATFORM_UNIX" = "x1" ; then
23423 COND_PLATFORM_UNIX1=
23424 fi
23425
23426 COND_PLATFORM_MACOSX1="#"
23427 if test "x$PLATFORM_MACOSX" = "x1" ; then
23428 COND_PLATFORM_MACOSX1=
23429 fi
23430
23431 COND_PLATFORM_WIN321="#"
23432 if test "x$PLATFORM_WIN32" = "x1" ; then
23433 COND_PLATFORM_WIN321=
23434 fi
23435
23436 COND_USE_SOVERSION1_PLATFORM_MACOSX0="#"
23437 if test "x$USE_SOVERSION" = "x1" -a \
23438 "x$PLATFORM_MACOSX" = "x0" ; then
23439 COND_USE_SOVERSION1_PLATFORM_MACOSX0=
23440 fi
23441
23442 COND_USE_SOVERSION1_PLATFORM_MACOSX1="#"
23443 if test "x$USE_SOVERSION" = "x1" -a \
23444 "x$PLATFORM_MACOSX" = "x1" ; then
23445 COND_USE_SOVERSION1_PLATFORM_MACOSX1=
23446 fi
23447
23448 COND_WXUSE_LIBTIFFBUILTIN="#"
23449 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
23450 COND_WXUSE_LIBTIFFBUILTIN=
23451 fi
23452
23453 COND_PLATFORM_WIN320="#"
23454 if test "x$PLATFORM_WIN32" = "x0" ; then
23455 COND_PLATFORM_WIN320=
23456 fi
23457
23458 COND_MONOLITHIC1="#"
23459 if test "x$MONOLITHIC" = "x1" ; then
23460 COND_MONOLITHIC1=
23461 fi
23462
23463 COND_MONOLITHIC0="#"
23464 if test "x$MONOLITHIC" = "x0" ; then
23465 COND_MONOLITHIC0=
23466 fi
23467
23468 COND_USE_GUI1="#"
23469 if test "x$USE_GUI" = "x1" ; then
23470 COND_USE_GUI1=
23471 fi
23472
23473 COND_DEPS_TYPEGCC="#"
23474 if test "x$DEPS_TYPE" = "xgcc" ; then
23475 COND_DEPS_TYPEGCC=
23476 fi
23477
23478 COND_USE_GUI0="#"
23479 if test "x$USE_GUI" = "x0" ; then
23480 COND_USE_GUI0=
23481 fi
23482
23483 COND_USE_GUI1_WXUNIV0="#"
23484 if test "x$USE_GUI" = "x1" -a \
23485 "x$WXUNIV" = "x0" ; then
23486 COND_USE_GUI1_WXUNIV0=
23487 fi
23488
23489 COND_USE_GUI1_WXUNIV1="#"
23490 if test "x$USE_GUI" = "x1" -a \
23491 "x$WXUNIV" = "x1" ; then
23492 COND_USE_GUI1_WXUNIV1=
23493 fi
23494
23495 COND_USE_SOVERLINUX1="#"
23496 if test "x$USE_SOVERLINUX" = "x1" ; then
23497 COND_USE_SOVERLINUX1=
23498 fi
23499
23500 COND_USE_SOVERSOLARIS1="#"
23501 if test "x$USE_SOVERSOLARIS" = "x1" ; then
23502 COND_USE_SOVERSOLARIS1=
23503 fi
23504
23505
23506
23507
23508 if test "$GXX" = yes ; then
23509 CXXWARNINGS="-Wall"
23510 fi
23511
23512 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
23513
23514 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
23515 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
23516 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
23517 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
23518
23519 LDFLAGS="$LDFLAGS $PROFILE"
23520
23521 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
23623 echo "configure:23624: checking whether ${MAKE-make} sets \${MAKE}" >&5
23624 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
23625 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
23626 echo $ac_n "(cached) $ac_c" 1>&6
23627 else
23628 cat > conftestmake <<\EOF
23629 all:
23630 @echo 'ac_maketemp="${MAKE}"'
23631 EOF
23632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23633 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
23634 if test -n "$ac_maketemp"; then
23635 eval ac_cv_prog_make_${ac_make}_set=yes
23636 else
23637 eval ac_cv_prog_make_${ac_make}_set=no
23638 fi
23639 rm -f conftestmake
23640 fi
23641 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
23642 echo "$ac_t""yes" 1>&6
23643 SET_MAKE=
23644 else
23645 echo "$ac_t""no" 1>&6
23646 SET_MAKE="MAKE=${MAKE-make}"
23647 fi
23648
23649
23650 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
23651 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
23652 fi
23653
23654
23655
23656 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
23657 wx_cv_if_gnu_make=$IF_GNU_MAKE
23658 wx_cv_path_ifs=$PATH_IFS
23659 wx_cv_program_ext=$PROGRAM_EXT
23660 wx_cv_target_library=$WX_TARGET_LIBRARY
23661 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
23662 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
23663 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
23664 wx_cv_release=${WX_RELEASE}
23665 wx_cv_current=${WX_CURRENT}
23666 wx_cv_revision=${WX_REVISION}
23667 wx_cv_age=${WX_AGE}
23668 wx_cv_use_gui=${USE_GUI}
23669 wx_cv_use_resources=${wxUSE_RESOURCES}
23670 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
23671 wx_cv_path_ifs wx_cv_program_ext \
23672 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
23673 wx_cv_library_basename \
23674 wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
23675 wx_cv_use_gui wx_cv_use_resources \
23676 CFLAGS LDFLAGS CXXFLAGS CPPFLAGS \
23677 top_builddir USE_GUI MONOLITHIC \
23678 wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG \
23679 wxUSE_LIBTIFF EXTRALIBS UNICODE BUILD SHARED TOOLKIT TOOLKIT_LOWERCASE \
23680 TOOLKIT_VERSION SAMPLES_RPATH_FLAG WXUNIV
23681
23682 subdirs="demos samples utils contrib"
23683
23684
23685 trap '' 1 2 15
23686 cat > confcache <<\EOF
23687 # This file is a shell script that caches the results of configure
23688 # tests run on this system so they can be shared between configure
23689 # scripts and configure runs. It is not useful on other systems.
23690 # If it contains results you don't want to keep, you may remove or edit it.
23691 #
23692 # By default, configure uses ./config.cache as the cache file,
23693 # creating it if it does not exist already. You can give configure
23694 # the --cache-file=FILE option to use a different cache file; that is
23695 # what configure does when it calls configure scripts in
23696 # subdirectories, so they share the cache.
23697 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23698 # config.status only pays attention to the cache file if you give it the
23699 # --recheck option to rerun configure.
23700 #
23701 EOF
23702 # The following way of writing the cache mishandles newlines in values,
23703 # but we know of no workaround that is simple, portable, and efficient.
23704 # So, don't put newlines in cache variables' values.
23705 # Ultrix sh set writes to stderr and can't be redirected directly,
23706 # and sets the high bit in the cache file unless we assign to the vars.
23707 (set) 2>&1 |
23708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23709 *ac_space=\ *)
23710 # `set' does not quote correctly, so add quotes (double-quote substitution
23711 # turns \\\\ into \\, and sed turns \\ into \).
23712 sed -n \
23713 -e "s/'/'\\\\''/g" \
23714 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23715 ;;
23716 *)
23717 # `set' quotes correctly as required by POSIX, so do not add quotes.
23718 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23719 ;;
23720 esac >> confcache
23721 if cmp -s $cache_file confcache; then
23722 :
23723 else
23724 if test -w $cache_file; then
23725 echo "updating cache $cache_file"
23726 cat confcache > $cache_file
23727 else
23728 echo "not updating unwritable cache $cache_file"
23729 fi
23730 fi
23731 rm -f confcache
23732
23733 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23734
23735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23736 # Let make expand exec_prefix.
23737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23738
23739 # Any assignment to VPATH causes Sun make to only execute
23740 # the first set of double-colon rules, so remove it if not needed.
23741 # If there is a colon in the path, we need to keep it.
23742 if test "x$srcdir" = x.; then
23743 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23744 fi
23745
23746 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23747
23748 DEFS=-DHAVE_CONFIG_H
23749
23750 # Without the "./", some shells look in PATH for config.status.
23751 : ${CONFIG_STATUS=./config.status}
23752
23753 echo creating $CONFIG_STATUS
23754 rm -f $CONFIG_STATUS
23755 cat > $CONFIG_STATUS <<EOF
23756 #! /bin/sh
23757 # Generated automatically by configure.
23758 # Run this file to recreate the current configuration.
23759 # This directory was configured as follows,
23760 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23761 #
23762 # $0 $ac_configure_args
23763 #
23764 # Compiler output produced by configure, useful for debugging
23765 # configure, is in ./config.log if it exists.
23766
23767 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23768 for ac_option
23769 do
23770 case "\$ac_option" in
23771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23772 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23773 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23774 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23775 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23776 exit 0 ;;
23777 -help | --help | --hel | --he | --h)
23778 echo "\$ac_cs_usage"; exit 0 ;;
23779 *) echo "\$ac_cs_usage"; exit 1 ;;
23780 esac
23781 done
23782
23783 ac_given_srcdir=$srcdir
23784 ac_given_INSTALL="$INSTALL"
23785
23786 trap 'rm -fr `echo "
23787 wx-config
23788 version-script
23789 Makefile
23790 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23791 EOF
23792 cat >> $CONFIG_STATUS <<EOF
23793
23794 # Protect against being on the right side of a sed subst in config.status.
23795 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23796 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23797 $ac_vpsub
23798 $extrasub
23799 s%@SHELL@%$SHELL%g
23800 s%@CFLAGS@%$CFLAGS%g
23801 s%@CPPFLAGS@%$CPPFLAGS%g
23802 s%@CXXFLAGS@%$CXXFLAGS%g
23803 s%@FFLAGS@%$FFLAGS%g
23804 s%@DEFS@%$DEFS%g
23805 s%@LDFLAGS@%$LDFLAGS%g
23806 s%@LIBS@%$LIBS%g
23807 s%@exec_prefix@%$exec_prefix%g
23808 s%@prefix@%$prefix%g
23809 s%@program_transform_name@%$program_transform_name%g
23810 s%@bindir@%$bindir%g
23811 s%@sbindir@%$sbindir%g
23812 s%@libexecdir@%$libexecdir%g
23813 s%@datadir@%$datadir%g
23814 s%@sysconfdir@%$sysconfdir%g
23815 s%@sharedstatedir@%$sharedstatedir%g
23816 s%@localstatedir@%$localstatedir%g
23817 s%@libdir@%$libdir%g
23818 s%@includedir@%$includedir%g
23819 s%@oldincludedir@%$oldincludedir%g
23820 s%@infodir@%$infodir%g
23821 s%@mandir@%$mandir%g
23822 s%@host@%$host%g
23823 s%@host_alias@%$host_alias%g
23824 s%@host_cpu@%$host_cpu%g
23825 s%@host_vendor@%$host_vendor%g
23826 s%@host_os@%$host_os%g
23827 s%@target@%$target%g
23828 s%@target_alias@%$target_alias%g
23829 s%@target_cpu@%$target_cpu%g
23830 s%@target_vendor@%$target_vendor%g
23831 s%@target_os@%$target_os%g
23832 s%@build@%$build%g
23833 s%@build_alias@%$build_alias%g
23834 s%@build_cpu@%$build_cpu%g
23835 s%@build_vendor@%$build_vendor%g
23836 s%@build_os@%$build_os%g
23837 s%@CC@%$CC%g
23838 s%@CPP@%$CPP%g
23839 s%@CXX@%$CXX%g
23840 s%@RANLIB@%$RANLIB%g
23841 s%@AR@%$AR%g
23842 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23843 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23844 s%@INSTALL_DATA@%$INSTALL_DATA%g
23845 s%@STRIP@%$STRIP%g
23846 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
23847 s%@YACC@%$YACC%g
23848 s%@LEX@%$LEX%g
23849 s%@LEXLIB@%$LEXLIB%g
23850 s%@LN_S@%$LN_S%g
23851 s%@CXXCPP@%$CXXCPP%g
23852 s%@PKG_CONFIG@%$PKG_CONFIG%g
23853 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
23854 s%@GTK_LIBS@%$GTK_LIBS%g
23855 s%@GTK_CONFIG@%$GTK_CONFIG%g
23856 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
23857 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
23858 s%@X_CFLAGS@%$X_CFLAGS%g
23859 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
23860 s%@X_LIBS@%$X_LIBS%g
23861 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
23862 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
23863 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
23864 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
23865 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
23866 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
23867 s%@RESCOMP@%$RESCOMP%g
23868 s%@DEREZ@%$DEREZ%g
23869 s%@SETFILE@%$SETFILE%g
23870 s%@LIBICONV@%$LIBICONV%g
23871 s%@wxUSE_ZLIB@%$wxUSE_ZLIB%g
23872 s%@wxUSE_REGEX@%$wxUSE_REGEX%g
23873 s%@wxUSE_ODBC@%$wxUSE_ODBC%g
23874 s%@wxUSE_LIBJPEG@%$wxUSE_LIBJPEG%g
23875 s%@wxUSE_LIBPNG@%$wxUSE_LIBPNG%g
23876 s%@wxUSE_LIBTIFF@%$wxUSE_LIBTIFF%g
23877 s%@WXUNIV@%$WXUNIV%g
23878 s%@MONOLITHIC@%$MONOLITHIC%g
23879 s%@EXTRALIBS@%$EXTRALIBS%g
23880 s%@UNICODE@%$UNICODE%g
23881 s%@BUILD@%$BUILD%g
23882 s%@SHARED@%$SHARED%g
23883 s%@TOOLKIT_LOWERCASE@%$TOOLKIT_LOWERCASE%g
23884 s%@TOOLKIT_VERSION@%$TOOLKIT_VERSION%g
23885 s%@SAMPLES_RPATH_FLAG@%$SAMPLES_RPATH_FLAG%g
23886 s%@SET_MAKE@%$SET_MAKE%g
23887 s%@MAKE_SET@%$MAKE_SET%g
23888 s%@INSTALL_DIR@%$INSTALL_DIR%g
23889 s%@PLATFORM_UNIX@%$PLATFORM_UNIX%g
23890 s%@PLATFORM_WIN32@%$PLATFORM_WIN32%g
23891 s%@PLATFORM_MSDOS@%$PLATFORM_MSDOS%g
23892 s%@PLATFORM_MAC@%$PLATFORM_MAC%g
23893 s%@PLATFORM_MACOSX@%$PLATFORM_MACOSX%g
23894 s%@SO_SUFFIX@%$SO_SUFFIX%g
23895 s%@EXEEXT@%$EXEEXT%g
23896 s%@DLLPREFIX@%$DLLPREFIX%g
23897 s%@SHARED_LD_CC@%$SHARED_LD_CC%g
23898 s%@SHARED_LD_CXX@%$SHARED_LD_CXX%g
23899 s%@PIC_FLAG@%$PIC_FLAG%g
23900 s%@USE_SOVERSION@%$USE_SOVERSION%g
23901 s%@USE_SOVERLINUX@%$USE_SOVERLINUX%g
23902 s%@USE_SOVERSOLARIS@%$USE_SOVERSOLARIS%g
23903 s%@USE_MACVERSION@%$USE_MACVERSION%g
23904 s%@USE_SOSYMLINKS@%$USE_SOSYMLINKS%g
23905 s%@SONAME_FLAG@%$SONAME_FLAG%g
23906 s%@DEPS_TYPE@%$DEPS_TYPE%g
23907 s%@COND_WXUSE_ZLIBBUILTIN@%$COND_WXUSE_ZLIBBUILTIN%g
23908 s%@COND_UNICODE1@%$COND_UNICODE1%g
23909 s%@COND_BUILDDEBUG@%$COND_BUILDDEBUG%g
23910 s%@COND_WXUSE_REGEXBUILTIN@%$COND_WXUSE_REGEXBUILTIN%g
23911 s%@COND_USE_SOSYMLINKS1@%$COND_USE_SOSYMLINKS1%g
23912 s%@COND_WXUSE_LIBJPEGBUILTIN@%$COND_WXUSE_LIBJPEGBUILTIN%g
23913 s%@COND_WXUSE_LIBPNGBUILTIN@%$COND_WXUSE_LIBPNGBUILTIN%g
23914 s%@COND_WXUSE_ODBCBUILTIN@%$COND_WXUSE_ODBCBUILTIN%g
23915 s%@COND_TOOLKITGTK@%$COND_TOOLKITGTK%g
23916 s%@COND_TOOLKITMOTIF@%$COND_TOOLKITMOTIF%g
23917 s%@COND_TOOLKITMSW@%$COND_TOOLKITMSW%g
23918 s%@COND_TOOLKITMAC@%$COND_TOOLKITMAC%g
23919 s%@COND_TOOLKITCOCOA@%$COND_TOOLKITCOCOA%g
23920 s%@COND_TOOLKITOS2@%$COND_TOOLKITOS2%g
23921 s%@COND_TOOLKITX11@%$COND_TOOLKITX11%g
23922 s%@COND_TOOLKITMGL@%$COND_TOOLKITMGL%g
23923 s%@COND_WXUNIV1@%$COND_WXUNIV1%g
23924 s%@COND_SHARED0_MONOLITHIC1@%$COND_SHARED0_MONOLITHIC1%g
23925 s%@COND_SHARED1_MONOLITHIC1@%$COND_SHARED1_MONOLITHIC1%g
23926 s%@COND_PLATFORM_UNIX1@%$COND_PLATFORM_UNIX1%g
23927 s%@COND_PLATFORM_MACOSX1@%$COND_PLATFORM_MACOSX1%g
23928 s%@COND_PLATFORM_WIN321@%$COND_PLATFORM_WIN321%g
23929 s%@COND_USE_SOVERSION1_PLATFORM_MACOSX0@%$COND_USE_SOVERSION1_PLATFORM_MACOSX0%g
23930 s%@COND_USE_SOVERSION1_PLATFORM_MACOSX1@%$COND_USE_SOVERSION1_PLATFORM_MACOSX1%g
23931 s%@COND_WXUSE_LIBTIFFBUILTIN@%$COND_WXUSE_LIBTIFFBUILTIN%g
23932 s%@COND_PLATFORM_WIN320@%$COND_PLATFORM_WIN320%g
23933 s%@COND_MONOLITHIC1@%$COND_MONOLITHIC1%g
23934 s%@COND_MONOLITHIC0@%$COND_MONOLITHIC0%g
23935 s%@COND_USE_GUI1@%$COND_USE_GUI1%g
23936 s%@COND_DEPS_TYPEGCC@%$COND_DEPS_TYPEGCC%g
23937 s%@COND_USE_GUI0@%$COND_USE_GUI0%g
23938 s%@COND_USE_GUI1_WXUNIV0@%$COND_USE_GUI1_WXUNIV0%g
23939 s%@COND_USE_GUI1_WXUNIV1@%$COND_USE_GUI1_WXUNIV1%g
23940 s%@COND_USE_SOVERLINUX1@%$COND_USE_SOVERLINUX1%g
23941 s%@COND_USE_SOVERSOLARIS1@%$COND_USE_SOVERSOLARIS1%g
23942 s%@LEX_STEM@%$LEX_STEM%g
23943 s%@PATH_IFS@%$PATH_IFS%g
23944 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
23945 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
23946 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
23947 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
23948 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
23949 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
23950 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
23951 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
23952 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
23953 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
23954 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
23955 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
23956 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
23957 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
23958 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
23959 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
23960 s%@WX_ALL@%$WX_ALL%g
23961 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
23962 s%@SHARED_LD@%$SHARED_LD%g
23963 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
23964 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
23965 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
23966 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
23967 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
23968 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
23969 s%@STATIC_FLAG@%$STATIC_FLAG%g
23970 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
23971 s%@USE_GUI@%$USE_GUI%g
23972 s%@AFMINSTALL@%$AFMINSTALL%g
23973 s%@WIN32INSTALL@%$WIN32INSTALL%g
23974 s%@TOOLKIT@%$TOOLKIT%g
23975 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
23976 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
23977 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
23978 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
23979 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
23980 s%@top_builddir@%$top_builddir%g
23981 s%@cross_compiling@%$cross_compiling%g
23982 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
23983 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
23984 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
23985 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
23986 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
23987 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
23988 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
23989 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
23990 s%@ALL_HEADERS@%$ALL_HEADERS%g
23991 s%@ALL_SOURCES@%$ALL_SOURCES%g
23992 s%@GUIDIST@%$GUIDIST%g
23993 s%@PORT_FILES@%$PORT_FILES%g
23994 s%@DISTDIR@%$DISTDIR%g
23995 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
23996 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
23997 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
23998 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
23999 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
24000 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
24001 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
24002 s%@RESFLAGS@%$RESFLAGS%g
24003 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
24004 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
24005 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
24006 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
24007 s%@LIBWXMACRES@%$LIBWXMACRES%g
24008 s%@MACRESCOMP@%$MACRESCOMP%g
24009 s%@MACSETFILE@%$MACSETFILE%g
24010 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
24011 s%@GCC@%$GCC%g
24012 s%@DLLTOOL@%$DLLTOOL%g
24013 s%@AS@%$AS%g
24014 s%@NM@%$NM%g
24015 s%@LD@%$LD%g
24016 s%@MAKEINFO@%$MAKEINFO%g
24017 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
24018 s%@subdirs@%$subdirs%g
24019
24020 CEOF
24021 EOF
24022
24023 cat >> $CONFIG_STATUS <<\EOF
24024
24025 # Split the substitutions into bite-sized pieces for seds with
24026 # small command number limits, like on Digital OSF/1 and HP-UX.
24027 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24028 ac_file=1 # Number of current file.
24029 ac_beg=1 # First line for current file.
24030 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24031 ac_more_lines=:
24032 ac_sed_cmds=""
24033 while $ac_more_lines; do
24034 if test $ac_beg -gt 1; then
24035 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24036 else
24037 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24038 fi
24039 if test ! -s conftest.s$ac_file; then
24040 ac_more_lines=false
24041 rm -f conftest.s$ac_file
24042 else
24043 if test -z "$ac_sed_cmds"; then
24044 ac_sed_cmds="sed -f conftest.s$ac_file"
24045 else
24046 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24047 fi
24048 ac_file=`expr $ac_file + 1`
24049 ac_beg=$ac_end
24050 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24051 fi
24052 done
24053 if test -z "$ac_sed_cmds"; then
24054 ac_sed_cmds=cat
24055 fi
24056 EOF
24057
24058 cat >> $CONFIG_STATUS <<EOF
24059
24060 CONFIG_FILES=\${CONFIG_FILES-"wx-config
24061 version-script
24062 Makefile
24063 "}
24064 EOF
24065 cat >> $CONFIG_STATUS <<\EOF
24066 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24067 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24068 case "$ac_file" in
24069 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24070 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24071 *) ac_file_in="${ac_file}.in" ;;
24072 esac
24073
24074 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24075
24076 # Remove last slash and all that follows it. Not all systems have dirname.
24077 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24078 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24079 # The file is in a subdirectory.
24080 test ! -d "$ac_dir" && mkdir "$ac_dir"
24081 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24082 # A "../" for each directory in $ac_dir_suffix.
24083 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24084 else
24085 ac_dir_suffix= ac_dots=
24086 fi
24087
24088 case "$ac_given_srcdir" in
24089 .) srcdir=.
24090 if test -z "$ac_dots"; then top_srcdir=.
24091 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24092 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24093 *) # Relative path.
24094 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24095 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24096 esac
24097
24098 case "$ac_given_INSTALL" in
24099 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24100 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24101 esac
24102
24103 echo creating "$ac_file"
24104 rm -f "$ac_file"
24105 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24106 case "$ac_file" in
24107 *Makefile*) ac_comsub="1i\\
24108 # $configure_input" ;;
24109 *) ac_comsub= ;;
24110 esac
24111
24112 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24113 sed -e "$ac_comsub
24114 s%@configure_input@%$configure_input%g
24115 s%@srcdir@%$srcdir%g
24116 s%@top_srcdir@%$top_srcdir%g
24117 s%@INSTALL@%$INSTALL%g
24118 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24119 fi; done
24120 rm -f conftest.s*
24121
24122 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24123 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24124 #
24125 # ac_d sets the value in "#define NAME VALUE" lines.
24126 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24127 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24128 ac_dC='\3'
24129 ac_dD='%g'
24130 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24131 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24132 ac_uB='\([ ]\)%\1#\2define\3'
24133 ac_uC=' '
24134 ac_uD='\4%g'
24135 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24136 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24137 ac_eB='$%\1#\2define\3'
24138 ac_eC=' '
24139 ac_eD='%g'
24140
24141 if test "${CONFIG_HEADERS+set}" != set; then
24142 EOF
24143 cat >> $CONFIG_STATUS <<EOF
24144 CONFIG_HEADERS="setup.h:setup.h.in"
24145 EOF
24146 cat >> $CONFIG_STATUS <<\EOF
24147 fi
24148 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24150 case "$ac_file" in
24151 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24152 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24153 *) ac_file_in="${ac_file}.in" ;;
24154 esac
24155
24156 echo creating $ac_file
24157
24158 rm -f conftest.frag conftest.in conftest.out
24159 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24160 cat $ac_file_inputs > conftest.in
24161
24162 EOF
24163
24164 # Transform confdefs.h into a sed script conftest.vals that substitutes
24165 # the proper values into config.h.in to produce config.h. And first:
24166 # Protect against being on the right side of a sed subst in config.status.
24167 # Protect against being in an unquoted here document in config.status.
24168 rm -f conftest.vals
24169 cat > conftest.hdr <<\EOF
24170 s/[\\&%]/\\&/g
24171 s%[\\$`]%\\&%g
24172 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24173 s%ac_d%ac_u%gp
24174 s%ac_u%ac_e%gp
24175 EOF
24176 sed -n -f conftest.hdr confdefs.h > conftest.vals
24177 rm -f conftest.hdr
24178
24179 # This sed command replaces #undef with comments. This is necessary, for
24180 # example, in the case of _POSIX_SOURCE, which is predefined and required
24181 # on some systems where configure will not decide to define it.
24182 cat >> conftest.vals <<\EOF
24183 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24184 EOF
24185
24186 # Break up conftest.vals because some shells have a limit on
24187 # the size of here documents, and old seds have small limits too.
24188
24189 rm -f conftest.tail
24190 while :
24191 do
24192 ac_lines=`grep -c . conftest.vals`
24193 # grep -c gives empty output for an empty file on some AIX systems.
24194 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24195 # Write a limited-size here document to conftest.frag.
24196 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24197 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24198 echo 'CEOF
24199 sed -f conftest.frag conftest.in > conftest.out
24200 rm -f conftest.in
24201 mv conftest.out conftest.in
24202 ' >> $CONFIG_STATUS
24203 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24204 rm -f conftest.vals
24205 mv conftest.tail conftest.vals
24206 done
24207 rm -f conftest.vals
24208
24209 cat >> $CONFIG_STATUS <<\EOF
24210 rm -f conftest.frag conftest.h
24211 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24212 cat conftest.in >> conftest.h
24213 rm -f conftest.in
24214 if cmp -s $ac_file conftest.h 2>/dev/null; then
24215 echo "$ac_file is unchanged"
24216 rm -f conftest.h
24217 else
24218 # Remove last slash and all that follows it. Not all systems have dirname.
24219 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24220 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24221 # The file is in a subdirectory.
24222 test ! -d "$ac_dir" && mkdir "$ac_dir"
24223 fi
24224 rm -f $ac_file
24225 mv conftest.h $ac_file
24226 fi
24227 fi; done
24228
24229 EOF
24230 cat >> $CONFIG_STATUS <<EOF
24231
24232 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
24233 LN_S="${LN_S}"
24234
24235
24236 EOF
24237 cat >> $CONFIG_STATUS <<\EOF
24238
24239 if test ! -h wx-config; then
24240 chmod +x wx-config
24241 mv wx-config wx${TOOLCHAIN_NAME}-config
24242 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
24243 fi
24244
24245 if test ! -d lib; then
24246 mkdir lib
24247 fi
24248 if test ! -d lib/wx; then
24249 mkdir lib/wx
24250 fi
24251 if test ! -d lib/wx/include; then
24252 mkdir lib/wx/include
24253 fi
24254 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
24255 mkdir lib/wx/include/${TOOLCHAIN_NAME}
24256 fi
24257 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
24258 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
24259 fi
24260 if test -f setup.h; then
24261 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
24262 fi
24263
24264 exit 0
24265 EOF
24266 chmod +x $CONFIG_STATUS
24267 rm -fr confdefs* $ac_clean_files
24268 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24269
24270 if test "$no_recursion" != yes; then
24271
24272 # Remove --cache-file and --srcdir arguments so they do not pile up.
24273 ac_sub_configure_args=
24274 ac_prev=
24275 for ac_arg in $ac_configure_args; do
24276 if test -n "$ac_prev"; then
24277 ac_prev=
24278 continue
24279 fi
24280 case "$ac_arg" in
24281 -cache-file | --cache-file | --cache-fil | --cache-fi \
24282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24283 ac_prev=cache_file ;;
24284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
24286 ;;
24287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24288 ac_prev=srcdir ;;
24289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24290 ;;
24291 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24292 esac
24293 done
24294
24295 for ac_config_dir in demos samples utils contrib; do
24296
24297 # Do not complain, so a configure script can configure whichever
24298 # parts of a large source tree are present.
24299 if test ! -d $srcdir/$ac_config_dir; then
24300 continue
24301 fi
24302
24303 echo configuring in $ac_config_dir
24304
24305 case "$srcdir" in
24306 .) ;;
24307 *)
24308 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
24309 else
24310 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
24311 fi
24312 ;;
24313 esac
24314
24315 ac_popdir=`pwd`
24316 cd $ac_config_dir
24317
24318 # A "../" for each directory in /$ac_config_dir.
24319 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
24320
24321 case "$srcdir" in
24322 .) # No --srcdir option. We are building in place.
24323 ac_sub_srcdir=$srcdir ;;
24324 /*) # Absolute path.
24325 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
24326 *) # Relative path.
24327 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
24328 esac
24329
24330 # Check for guested configure; otherwise get Cygnus style configure.
24331 if test -f $ac_sub_srcdir/configure; then
24332 ac_sub_configure=$ac_sub_srcdir/configure
24333 elif test -f $ac_sub_srcdir/configure.in; then
24334 ac_sub_configure=$ac_configure
24335 else
24336 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
24337 ac_sub_configure=
24338 fi
24339
24340 # The recursion is here.
24341 if test -n "$ac_sub_configure"; then
24342
24343 # Make the cache file name correct relative to the subdirectory.
24344 case "$cache_file" in
24345 /*) ac_sub_cache_file=$cache_file ;;
24346 *) # Relative path.
24347 ac_sub_cache_file="$ac_dots$cache_file" ;;
24348 esac
24349 case "$ac_given_INSTALL" in
24350 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24351 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24352 esac
24353
24354 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
24355 # The eval makes quoting arguments work.
24356 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
24357 then :
24358 else
24359 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
24360 fi
24361 fi
24362
24363 cd $ac_popdir
24364 done
24365 fi
24366
24367
24368 echo
24369 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
24370 echo ""
24371 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
24372
24373 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
24374 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
24375 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
24376
24377 echo " What level of wxWindows compatibility should be enabled?"
24378 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
24379 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
24380 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
24381
24382 echo " Which libraries should wxWindows use?"
24383 echo " jpeg ${wxUSE_LIBJPEG-none}"
24384 echo " png ${wxUSE_LIBPNG-none}"
24385 echo " regex ${wxUSE_REGEX}"
24386 echo " tiff ${wxUSE_LIBTIFF-none}"
24387 echo " zlib ${wxUSE_ZLIB}"
24388 echo " odbc ${wxUSE_ODBC}"
24389
24390 echo ""
24391