]> git.saurik.com Git - wxWidgets.git/blob - configure
Add bmpmotif.cpp to descrip.mms.
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 # Configure paths for GTK+
66 # Owen Taylor 1997-2001
67
68
69
70 # Configure paths for GTK+
71 # Owen Taylor 97-11-3
72
73
74
75
76
77
78
79
80 # Guess values for system-dependent variables and create Makefiles.
81 # Generated automatically using autoconf version 2.13
82 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 #
84 # This configure script is free software; the Free Software Foundation
85 # gives unlimited permission to copy, distribute and modify it.
86
87 # Defaults:
88 ac_help=
89 ac_default_prefix=/usr/local
90 # Any additions from configure.in:
91 ac_help="$ac_help
92 --enable-gui use GUI classes"
93 ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95 ac_help="$ac_help
96 --with-gtk use GTK+"
97 ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99 ac_help="$ac_help
100 --with-mac use Mac OS X"
101 ac_help="$ac_help
102 --with-cocoa use Cocoa"
103 ac_help="$ac_help
104 --with-wine use Wine"
105 ac_help="$ac_help
106 --with-msw use MS-Windows"
107 ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109 ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111 ac_help="$ac_help
112 --with-microwin use MicroWindows"
113 ac_help="$ac_help
114 --with-x11 use X11"
115 ac_help="$ac_help
116 --enable-nanox use NanoX"
117 ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119 ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121 ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123 ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125 ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127 ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129 ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131 ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133 ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135 ac_help="$ac_help
136 --enable-shared create shared library code"
137 ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139 ac_help="$ac_help
140 --enable-optimise create optimised code"
141 ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143 ac_help="$ac_help
144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
145 ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147 ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149 ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151 ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153 ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155 ac_help="$ac_help
156 --enable-profile create code with profiling information"
157 ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159 ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161 ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163 ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165 ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167 ac_help="$ac_help
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169 ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
171 ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173 ac_help="$ac_help
174 --enable-intl use internationalization system"
175 ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177 ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179 ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181 ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183 ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185 ac_help="$ac_help
186 --enable-sockets use socket/network classes"
187 ac_help="$ac_help
188 --enable-ole use OLE classes"
189 ac_help="$ac_help
190 --enable-dataobj use data object classes"
191 ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193 ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195 ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
197 ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199 ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201 ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203 ac_help="$ac_help
204 --enable-timer use wxTimer class"
205 ac_help="$ac_help
206 --enable-wave use wxWave class"
207 ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209 ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211 ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213 ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215 ac_help="$ac_help
216 --enable-geometry use geometry class"
217 ac_help="$ac_help
218 --enable-log use logging system"
219 ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221 ac_help="$ac_help
222 --enable-file use wxFile classes"
223 ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225 ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227 ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229 ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231 ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233 ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235 ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237 ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239 ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241 ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243 ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245 ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247 ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249 ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251 ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253 ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255 ac_help="$ac_help
256 --enable-url use wxURL class"
257 ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259 ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261 ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263 ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265 ac_help="$ac_help
266 --enable-threads use threads"
267 ac_help="$ac_help
268 --enable-docview use document view architecture"
269 ac_help="$ac_help
270 --enable-help use help subsystem"
271 ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273 ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275 ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277 ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279 ac_help="$ac_help
280 --enable-printarch use printing architecture"
281 ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283 ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285 ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287 ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289 ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
291 ac_help="$ac_help
292 --enable-prologio use Prolog IO library"
293 ac_help="$ac_help
294 --enable-resources use wxWindows resources"
295 ac_help="$ac_help
296 --enable-xresources use X resources for save (default for gtk+)"
297 ac_help="$ac_help
298 --enable-clipboard use wxClipboard class"
299 ac_help="$ac_help
300 --enable-dnd use Drag'n'Drop classes"
301 ac_help="$ac_help
302 --enable-metafile use win32 metafiles"
303 ac_help="$ac_help
304 --enable-treelayout use wxTreeLayout class"
305 ac_help="$ac_help
306 --enable-controls use all usual controls"
307 ac_help="$ac_help
308 --enable-accel use accelerators"
309 ac_help="$ac_help
310 --enable-button use wxButton class"
311 ac_help="$ac_help
312 --enable-bmpbutton use wxBitmapButton class"
313 ac_help="$ac_help
314 --enable-calendar use wxCalendarCtrl class"
315 ac_help="$ac_help
316 --enable-caret use wxCaret class"
317 ac_help="$ac_help
318 --enable-checkbox use wxCheckBox class"
319 ac_help="$ac_help
320 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
321 ac_help="$ac_help
322 --enable-choice use wxChoice class"
323 ac_help="$ac_help
324 --enable-combobox use wxComboBox class"
325 ac_help="$ac_help
326 --enable-display use wxDisplay class"
327 ac_help="$ac_help
328 --enable-gauge use wxGauge class"
329 ac_help="$ac_help
330 --enable-grid use wxGrid class"
331 ac_help="$ac_help
332 --enable-imaglist use wxImageList class"
333 ac_help="$ac_help
334 --enable-listbox use wxListBox class"
335 ac_help="$ac_help
336 --enable-listctrl use wxListCtrl class"
337 ac_help="$ac_help
338 --enable-notebook use wxNotebook class"
339 ac_help="$ac_help
340 --enable-propsheet use wxPropertySheet class"
341 ac_help="$ac_help
342 --enable-radiobox use wxRadioBox class"
343 ac_help="$ac_help
344 --enable-radiobtn use wxRadioButton class"
345 ac_help="$ac_help
346 --enable-sash use wxSashWindow class"
347 ac_help="$ac_help
348 --enable-scrollbar use wxScrollBar class and scrollable windows"
349 ac_help="$ac_help
350 --enable-slider use wxSlider class"
351 ac_help="$ac_help
352 --enable-spinbtn use wxSpinButton class"
353 ac_help="$ac_help
354 --enable-spinctrl use wxSpinCtrl class"
355 ac_help="$ac_help
356 --enable-splitter use wxSplitterWindow class"
357 ac_help="$ac_help
358 --enable-statbmp use wxStaticBitmap class"
359 ac_help="$ac_help
360 --enable-statbox use wxStaticBox class"
361 ac_help="$ac_help
362 --enable-statline use wxStaticLine class"
363 ac_help="$ac_help
364 --enable-stattext use wxStaticText class"
365 ac_help="$ac_help
366 --enable-statusbar use wxStatusBar class"
367 ac_help="$ac_help
368 --enable-tabdialog use wxTabControl class"
369 ac_help="$ac_help
370 --enable-textctrl use wxTextCtrl class"
371 ac_help="$ac_help
372 --enable-togglebtn use wxToggleButton class"
373 ac_help="$ac_help
374 --enable-toolbar use wxToolBar class"
375 ac_help="$ac_help
376 --enable-tbarnative use native wxToolBar class"
377 ac_help="$ac_help
378 --enable-tbarsmpl use wxToolBarSimple class"
379 ac_help="$ac_help
380 --enable-treectrl use wxTreeCtrl class"
381 ac_help="$ac_help
382 --enable-tipwindow use wxTipWindow class"
383 ac_help="$ac_help
384 --enable-popupwin use wxPopUpWindow class"
385 ac_help="$ac_help
386 --enable-commondlg use all common dialogs"
387 ac_help="$ac_help
388 --enable-choicedlg use wxChoiceDialog"
389 ac_help="$ac_help
390 --enable-coldlg use wxColourDialog"
391 ac_help="$ac_help
392 --enable-filedlg use wxFileDialog"
393 ac_help="$ac_help
394 --enable-finddlg use wxFindReplaceDialog"
395 ac_help="$ac_help
396 --enable-fontdlg use wxFontDialog"
397 ac_help="$ac_help
398 --enable-dirdlg use wxDirDialog"
399 ac_help="$ac_help
400 --enable-msgdlg use wxMessageDialog"
401 ac_help="$ac_help
402 --enable-numberdlg use wxNumberEntryDialog"
403 ac_help="$ac_help
404 --enable-splash use wxSplashScreen"
405 ac_help="$ac_help
406 --enable-textdlg use wxTextDialog"
407 ac_help="$ac_help
408 --enable-tipdlg use startup tips"
409 ac_help="$ac_help
410 --enable-progressdlg use wxProgressDialog"
411 ac_help="$ac_help
412 --enable-wizarddlg use wxWizard"
413 ac_help="$ac_help
414 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
415 ac_help="$ac_help
416 --enable-miniframe use wxMiniFrame class"
417 ac_help="$ac_help
418 --enable-tooltips use wxToolTip class"
419 ac_help="$ac_help
420 --enable-splines use spline drawing code"
421 ac_help="$ac_help
422 --enable-validators use wxValidator and derived classes"
423 ac_help="$ac_help
424 --enable-busyinfo use wxBusyInfo"
425 ac_help="$ac_help
426 --enable-joystick use wxJoystick (Linux only)"
427 ac_help="$ac_help
428 --enable-metafiles use wxMetaFile (Windows only)"
429 ac_help="$ac_help
430 --enable-dragimage use wxDragImage"
431 ac_help="$ac_help
432 --enable-palette use wxPalette class"
433 ac_help="$ac_help
434 --enable-image use wxImage class"
435 ac_help="$ac_help
436 --enable-gif use gif images (GIF file format)"
437 ac_help="$ac_help
438 --enable-pcx use pcx images (PCX file format)"
439 ac_help="$ac_help
440 --enable-iff use iff images (IFF file format)"
441 ac_help="$ac_help
442 --enable-pnm use pnm images (PNM file format)"
443 ac_help="$ac_help
444 --enable-xpm use xpm images (XPM file format)"
445 ac_help="$ac_help
446 --enable-icocur use Windows ICO and CUR formats"
447 ac_help="$ac_help
448 --disable-largefile omit support for large files"
449 ac_help="$ac_help
450 --disable-gtktest do not try to compile and run a test GTK+ program"
451 ac_help="$ac_help
452 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
453 ac_help="$ac_help
454 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
455 ac_help="$ac_help
456 --disable-gtktest Do not try to compile and run a test GTK program"
457 ac_help="$ac_help
458 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
459 ac_help="$ac_help
460 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
461 ac_help="$ac_help
462 --disable-gtktest Do not try to compile and run a test GTK program"
463 ac_help="$ac_help
464 --with-x use the X Window System"
465 ac_help="$ac_help
466 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
467
468 # Initialize some variables set by options.
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 build=NONE
472 cache_file=./config.cache
473 exec_prefix=NONE
474 host=NONE
475 no_create=
476 nonopt=NONE
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 target=NONE
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 # Initialize some other variables.
503 subdirs=
504 MFLAGS= MAKEFLAGS=
505 SHELL=${CONFIG_SHELL-/bin/sh}
506 # Maximum number of lines to put in a shell here document.
507 ac_max_here_lines=12
508
509 ac_prev=
510 for ac_option
511 do
512
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 case "$ac_option" in
521 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
522 *) ac_optarg= ;;
523 esac
524
525 # Accept the important Cygnus configure options, so we can diagnose typos.
526
527 case "$ac_option" in
528
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 ac_prev=bindir ;;
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 bindir="$ac_optarg" ;;
533
534 -build | --build | --buil | --bui | --bu)
535 ac_prev=build ;;
536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537 build="$ac_optarg" ;;
538
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544 cache_file="$ac_optarg" ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir="$ac_optarg" ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
554 # Reject names that are not valid shell variable names.
555 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
556 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
557 fi
558 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
559 eval "enable_${ac_feature}=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
563 # Reject names that are not valid shell variable names.
564 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
565 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
566 fi
567 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
568 case "$ac_option" in
569 *=*) ;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_${ac_feature}='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix="$ac_optarg" ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he)
588 # Omit some internal or obsolete options to make the list less imposing.
589 # This message is too long to be a string in the A/UX 3.1 sh.
590 cat << EOF
591 Usage: configure [options] [host]
592 Options: [defaults in brackets after descriptions]
593 Configuration:
594 --cache-file=FILE cache test results in FILE
595 --help print this message
596 --no-create do not create output files
597 --quiet, --silent do not print \`checking...' messages
598 --version print the version of autoconf that created configure
599 Directory and file names:
600 --prefix=PREFIX install architecture-independent files in PREFIX
601 [$ac_default_prefix]
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
603 [same as prefix]
604 --bindir=DIR user executables in DIR [EPREFIX/bin]
605 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
606 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
607 --datadir=DIR read-only architecture-independent data in DIR
608 [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data in DIR
611 [PREFIX/com]
612 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
613 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
614 --includedir=DIR C header files in DIR [PREFIX/include]
615 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
616 --infodir=DIR info documentation in DIR [PREFIX/info]
617 --mandir=DIR man documentation in DIR [PREFIX/man]
618 --srcdir=DIR find the sources in DIR [configure dir or ..]
619 --program-prefix=PREFIX prepend PREFIX to installed program names
620 --program-suffix=SUFFIX append SUFFIX to installed program names
621 --program-transform-name=PROGRAM
622 run sed PROGRAM on installed program names
623 EOF
624 cat << EOF
625 Host type:
626 --build=BUILD configure for building on BUILD [BUILD=HOST]
627 --host=HOST configure for HOST [guessed]
628 --target=TARGET configure for TARGET [TARGET=HOST]
629 Features and packages:
630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
632 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
633 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
634 --x-includes=DIR X include files are in DIR
635 --x-libraries=DIR X library files are in DIR
636 EOF
637 if test -n "$ac_help"; then
638 echo "--enable and --with options recognized:$ac_help"
639 fi
640 exit 0 ;;
641
642 -host | --host | --hos | --ho)
643 ac_prev=host ;;
644 -host=* | --host=* | --hos=* | --ho=*)
645 host="$ac_optarg" ;;
646
647 -includedir | --includedir | --includedi | --included | --include \
648 | --includ | --inclu | --incl | --inc)
649 ac_prev=includedir ;;
650 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
651 | --includ=* | --inclu=* | --incl=* | --inc=*)
652 includedir="$ac_optarg" ;;
653
654 -infodir | --infodir | --infodi | --infod | --info | --inf)
655 ac_prev=infodir ;;
656 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
657 infodir="$ac_optarg" ;;
658
659 -libdir | --libdir | --libdi | --libd)
660 ac_prev=libdir ;;
661 -libdir=* | --libdir=* | --libdi=* | --libd=*)
662 libdir="$ac_optarg" ;;
663
664 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
665 | --libexe | --libex | --libe)
666 ac_prev=libexecdir ;;
667 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
668 | --libexe=* | --libex=* | --libe=*)
669 libexecdir="$ac_optarg" ;;
670
671 -localstatedir | --localstatedir | --localstatedi | --localstated \
672 | --localstate | --localstat | --localsta | --localst \
673 | --locals | --local | --loca | --loc | --lo)
674 ac_prev=localstatedir ;;
675 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
676 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
677 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
678 localstatedir="$ac_optarg" ;;
679
680 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
681 ac_prev=mandir ;;
682 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
683 mandir="$ac_optarg" ;;
684
685 -nfp | --nfp | --nf)
686 # Obsolete; use --without-fp.
687 with_fp=no ;;
688
689 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
690 | --no-cr | --no-c)
691 no_create=yes ;;
692
693 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
694 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
695 no_recursion=yes ;;
696
697 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
698 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
699 | --oldin | --oldi | --old | --ol | --o)
700 ac_prev=oldincludedir ;;
701 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
702 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
703 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
704 oldincludedir="$ac_optarg" ;;
705
706 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
707 ac_prev=prefix ;;
708 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
709 prefix="$ac_optarg" ;;
710
711 -program-prefix | --program-prefix | --program-prefi | --program-pref \
712 | --program-pre | --program-pr | --program-p)
713 ac_prev=program_prefix ;;
714 -program-prefix=* | --program-prefix=* | --program-prefi=* \
715 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
716 program_prefix="$ac_optarg" ;;
717
718 -program-suffix | --program-suffix | --program-suffi | --program-suff \
719 | --program-suf | --program-su | --program-s)
720 ac_prev=program_suffix ;;
721 -program-suffix=* | --program-suffix=* | --program-suffi=* \
722 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
723 program_suffix="$ac_optarg" ;;
724
725 -program-transform-name | --program-transform-name \
726 | --program-transform-nam | --program-transform-na \
727 | --program-transform-n | --program-transform- \
728 | --program-transform | --program-transfor \
729 | --program-transfo | --program-transf \
730 | --program-trans | --program-tran \
731 | --progr-tra | --program-tr | --program-t)
732 ac_prev=program_transform_name ;;
733 -program-transform-name=* | --program-transform-name=* \
734 | --program-transform-nam=* | --program-transform-na=* \
735 | --program-transform-n=* | --program-transform-=* \
736 | --program-transform=* | --program-transfor=* \
737 | --program-transfo=* | --program-transf=* \
738 | --program-trans=* | --program-tran=* \
739 | --progr-tra=* | --program-tr=* | --program-t=*)
740 program_transform_name="$ac_optarg" ;;
741
742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
743 | -silent | --silent | --silen | --sile | --sil)
744 silent=yes ;;
745
746 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
747 ac_prev=sbindir ;;
748 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
749 | --sbi=* | --sb=*)
750 sbindir="$ac_optarg" ;;
751
752 -sharedstatedir | --sharedstatedir | --sharedstatedi \
753 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
754 | --sharedst | --shareds | --shared | --share | --shar \
755 | --sha | --sh)
756 ac_prev=sharedstatedir ;;
757 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
758 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
759 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
760 | --sha=* | --sh=*)
761 sharedstatedir="$ac_optarg" ;;
762
763 -site | --site | --sit)
764 ac_prev=site ;;
765 -site=* | --site=* | --sit=*)
766 site="$ac_optarg" ;;
767
768 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
769 ac_prev=srcdir ;;
770 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
771 srcdir="$ac_optarg" ;;
772
773 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
774 | --syscon | --sysco | --sysc | --sys | --sy)
775 ac_prev=sysconfdir ;;
776 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
777 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
778 sysconfdir="$ac_optarg" ;;
779
780 -target | --target | --targe | --targ | --tar | --ta | --t)
781 ac_prev=target ;;
782 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
783 target="$ac_optarg" ;;
784
785 -v | -verbose | --verbose | --verbos | --verbo | --verb)
786 verbose=yes ;;
787
788 -version | --version | --versio | --versi | --vers)
789 echo "configure generated by autoconf version 2.13"
790 exit 0 ;;
791
792 -with-* | --with-*)
793 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
794 # Reject names that are not valid shell variable names.
795 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
796 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
797 fi
798 ac_package=`echo $ac_package| sed 's/-/_/g'`
799 case "$ac_option" in
800 *=*) ;;
801 *) ac_optarg=yes ;;
802 esac
803 eval "with_${ac_package}='$ac_optarg'" ;;
804
805 -without-* | --without-*)
806 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
807 # Reject names that are not valid shell variable names.
808 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
809 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
810 fi
811 ac_package=`echo $ac_package| sed 's/-/_/g'`
812 eval "with_${ac_package}=no" ;;
813
814 --x)
815 # Obsolete; use --with-x.
816 with_x=yes ;;
817
818 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
819 | --x-incl | --x-inc | --x-in | --x-i)
820 ac_prev=x_includes ;;
821 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
822 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
823 x_includes="$ac_optarg" ;;
824
825 -x-libraries | --x-libraries | --x-librarie | --x-librari \
826 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
827 ac_prev=x_libraries ;;
828 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
829 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
830 x_libraries="$ac_optarg" ;;
831
832 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
833 ;;
834
835 *)
836 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
837 echo "configure: warning: $ac_option: invalid host type" 1>&2
838 fi
839 if test "x$nonopt" != xNONE; then
840 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
841 fi
842 nonopt="$ac_option"
843 ;;
844
845 esac
846 done
847
848 if test -n "$ac_prev"; then
849 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
850 fi
851
852 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
853
854 # File descriptor usage:
855 # 0 standard input
856 # 1 file creation
857 # 2 errors and warnings
858 # 3 some systems may open it to /dev/tty
859 # 4 used on the Kubota Titan
860 # 6 checking for... messages and results
861 # 5 compiler messages saved in config.log
862 if test "$silent" = yes; then
863 exec 6>/dev/null
864 else
865 exec 6>&1
866 fi
867 exec 5>./config.log
868
869 echo "\
870 This file contains any messages produced by compilers while
871 running configure, to aid debugging if configure makes a mistake.
872 " 1>&5
873
874 # Strip out --no-create and --no-recursion so they do not pile up.
875 # Also quote any args containing shell metacharacters.
876 ac_configure_args=
877 for ac_arg
878 do
879 case "$ac_arg" in
880 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
881 | --no-cr | --no-c) ;;
882 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
883 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
884 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
885 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
886 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
887 esac
888 done
889
890 # NLS nuisances.
891 # Only set these to C if already set. These must not be set unconditionally
892 # because not all systems understand e.g. LANG=C (notably SCO).
893 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
894 # Non-C LC_CTYPE values break the ctype check.
895 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
896 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
897 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
898 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
899
900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
901 rm -rf conftest* confdefs.h
902 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
903 echo > confdefs.h
904
905 # A filename unique to this package, relative to the directory that
906 # configure is in, which we can look for to find out if srcdir is correct.
907 ac_unique_file=wx-config.in
908
909 # Find the source files, if location was not specified.
910 if test -z "$srcdir"; then
911 ac_srcdir_defaulted=yes
912 # Try the directory containing this script, then its parent.
913 ac_prog=$0
914 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
915 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
916 srcdir=$ac_confdir
917 if test ! -r $srcdir/$ac_unique_file; then
918 srcdir=..
919 fi
920 else
921 ac_srcdir_defaulted=no
922 fi
923 if test ! -r $srcdir/$ac_unique_file; then
924 if test "$ac_srcdir_defaulted" = yes; then
925 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
926 else
927 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
928 fi
929 fi
930 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
931
932 # Prefer explicitly selected file to automatically selected ones.
933 if test -z "$CONFIG_SITE"; then
934 if test "x$prefix" != xNONE; then
935 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
936 else
937 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
938 fi
939 fi
940 for ac_site_file in $CONFIG_SITE; do
941 if test -r "$ac_site_file"; then
942 echo "loading site script $ac_site_file"
943 . "$ac_site_file"
944 fi
945 done
946
947 if test -r "$cache_file"; then
948 echo "loading cache $cache_file"
949 . $cache_file
950 else
951 echo "creating cache $cache_file"
952 > $cache_file
953 fi
954
955 ac_ext=c
956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957 ac_cpp='$CPP $CPPFLAGS'
958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960 cross_compiling=$ac_cv_prog_cc_cross
961
962 ac_exeext=
963 ac_objext=o
964 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
965 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
966 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
967 ac_n= ac_c='
968 ' ac_t=' '
969 else
970 ac_n=-n ac_c= ac_t=
971 fi
972 else
973 ac_n= ac_c='\c' ac_t=
974 fi
975
976
977
978 ac_aux_dir=
979 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
980 if test -f $ac_dir/install-sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install-sh -c"
983 break
984 elif test -f $ac_dir/install.sh; then
985 ac_aux_dir=$ac_dir
986 ac_install_sh="$ac_aux_dir/install.sh -c"
987 break
988 fi
989 done
990 if test -z "$ac_aux_dir"; then
991 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
992 fi
993 ac_config_guess=$ac_aux_dir/config.guess
994 ac_config_sub=$ac_aux_dir/config.sub
995 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
996
997
998 # Do some error checking and defaulting for the host and target type.
999 # The inputs are:
1000 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1001 #
1002 # The rules are:
1003 # 1. You are not allowed to specify --host, --target, and nonopt at the
1004 # same time.
1005 # 2. Host defaults to nonopt.
1006 # 3. If nonopt is not specified, then host defaults to the current host,
1007 # as determined by config.guess.
1008 # 4. Target and build default to nonopt.
1009 # 5. If nonopt is not specified, then target and build default to host.
1010
1011 # The aliases save the names the user supplied, while $host etc.
1012 # will get canonicalized.
1013 case $host---$target---$nonopt in
1014 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1015 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1016 esac
1017
1018
1019 # Make sure we can run config.sub.
1020 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1021 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1022 fi
1023
1024 echo $ac_n "checking host system type""... $ac_c" 1>&6
1025 echo "configure:1026: checking host system type" >&5
1026
1027 host_alias=$host
1028 case "$host_alias" in
1029 NONE)
1030 case $nonopt in
1031 NONE)
1032 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1033 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1034 fi ;;
1035 *) host_alias=$nonopt ;;
1036 esac ;;
1037 esac
1038
1039 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1040 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1041 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1042 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1043 echo "$ac_t""$host" 1>&6
1044
1045 echo $ac_n "checking target system type""... $ac_c" 1>&6
1046 echo "configure:1047: checking target system type" >&5
1047
1048 target_alias=$target
1049 case "$target_alias" in
1050 NONE)
1051 case $nonopt in
1052 NONE) target_alias=$host_alias ;;
1053 *) target_alias=$nonopt ;;
1054 esac ;;
1055 esac
1056
1057 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1058 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1059 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1060 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1061 echo "$ac_t""$target" 1>&6
1062
1063 echo $ac_n "checking build system type""... $ac_c" 1>&6
1064 echo "configure:1065: checking build system type" >&5
1065
1066 build_alias=$build
1067 case "$build_alias" in
1068 NONE)
1069 case $nonopt in
1070 NONE) build_alias=$host_alias ;;
1071 *) build_alias=$nonopt ;;
1072 esac ;;
1073 esac
1074
1075 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1076 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1077 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1078 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079 echo "$ac_t""$build" 1>&6
1080
1081 test "$host_alias" != "$target_alias" &&
1082 test "$program_prefix$program_suffix$program_transform_name" = \
1083 NONENONEs,x,x, &&
1084 program_prefix=${target_alias}-
1085
1086
1087
1088 WX_MAJOR_VERSION_NUMBER=2
1089 WX_MINOR_VERSION_NUMBER=5
1090 WX_RELEASE_NUMBER=0
1091
1092 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1093 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1094
1095 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1096
1097 WX_CURRENT=0
1098 WX_REVISION=0
1099 WX_AGE=0
1100
1101
1102
1103 USE_UNIX=1
1104 USE_WIN32=0
1105 USE_DOS=0
1106 USE_BEOS=0
1107 USE_MAC=0
1108
1109 USE_LINUX=
1110 USE_SGI=
1111 USE_HPUX=
1112 USE_SYSV=
1113 USE_SVR4=
1114 USE_AIX=
1115 USE_SUN=
1116 USE_SOLARIS=
1117 USE_SUNOS=
1118 USE_ALPHA=
1119 USE_OSF=
1120 USE_BSD=
1121 USE_DARWIN=
1122 USE_FREEBSD=
1123 USE_OPENBSD=
1124 USE_NETBSD=
1125 USE_VMS=
1126 USE_ULTRIX=
1127 USE_DATA_GENERAL=
1128
1129 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1130
1131 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1132
1133 DEFAULT_wxUSE_COCOA=0
1134 DEFAULT_wxUSE_GTK=0
1135 DEFAULT_wxUSE_MAC=0
1136 DEFAULT_wxUSE_MGL=0
1137 DEFAULT_wxUSE_MICROWIN=0
1138 DEFAULT_wxUSE_MOTIF=0
1139 DEFAULT_wxUSE_MSW=0
1140 DEFAULT_wxUSE_PM=0
1141 DEFAULT_wxUSE_X11=0
1142
1143 DEFAULT_DEFAULT_wxUSE_COCOA=0
1144 DEFAULT_DEFAULT_wxUSE_GTK=0
1145 DEFAULT_DEFAULT_wxUSE_MAC=0
1146 DEFAULT_DEFAULT_wxUSE_MGL=0
1147 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1148 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1149 DEFAULT_DEFAULT_wxUSE_MSW=0
1150 DEFAULT_DEFAULT_wxUSE_PM=0
1151 DEFAULT_DEFAULT_wxUSE_X11=0
1152
1153 PROGRAM_EXT=
1154 SO_SUFFIX=so
1155
1156 case "${host}" in
1157 *-hp-hpux* )
1158 USE_HPUX=1
1159 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1160 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1161 SO_SUFFIX=sl
1162 cat >> confdefs.h <<\EOF
1163 #define __HPUX__ 1
1164 EOF
1165
1166 ;;
1167 *-*-linux* )
1168 USE_LINUX=1
1169 cat >> confdefs.h <<\EOF
1170 #define __LINUX__ 1
1171 EOF
1172
1173 TMP=`uname -m`
1174 if test "x$TMP" = "xalpha"; then
1175 USE_ALPHA=1
1176 cat >> confdefs.h <<\EOF
1177 #define __ALPHA__ 1
1178 EOF
1179
1180 fi
1181 DEFAULT_DEFAULT_wxUSE_GTK=1
1182 ;;
1183 *-*-irix5* | *-*-irix6* )
1184 USE_SGI=1
1185 USE_SVR4=1
1186 cat >> confdefs.h <<\EOF
1187 #define __SGI__ 1
1188 EOF
1189
1190 cat >> confdefs.h <<\EOF
1191 #define __SVR4__ 1
1192 EOF
1193
1194 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1195 ;;
1196 *-*-solaris2* )
1197 USE_SUN=1
1198 USE_SOLARIS=1
1199 USE_SVR4=1
1200 cat >> confdefs.h <<\EOF
1201 #define __SUN__ 1
1202 EOF
1203
1204 cat >> confdefs.h <<\EOF
1205 #define __SOLARIS__ 1
1206 EOF
1207
1208 cat >> confdefs.h <<\EOF
1209 #define __SVR4__ 1
1210 EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1214 ;;
1215 *-*-sunos4* )
1216 USE_SUN=1
1217 USE_SUNOS=1
1218 USE_BSD=1
1219 cat >> confdefs.h <<\EOF
1220 #define __SUN__ 1
1221 EOF
1222
1223 cat >> confdefs.h <<\EOF
1224 #define __SUNOS__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __BSD__ 1
1229 EOF
1230
1231 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1232 ;;
1233 *-*-freebsd*)
1234 USE_BSD=1
1235 USE_FREEBSD=1
1236 cat >> confdefs.h <<\EOF
1237 #define __FREEBSD__ 1
1238 EOF
1239
1240 cat >> confdefs.h <<\EOF
1241 #define __BSD__ 1
1242 EOF
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-openbsd*)
1247 USE_BSD=1
1248 USE_OPENBSD=1
1249 cat >> confdefs.h <<\EOF
1250 #define __OPENBSD__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __BSD__ 1
1255 EOF
1256
1257 DEFAULT_DEFAULT_wxUSE_GTK=1
1258 ;;
1259 *-*-netbsd*)
1260 USE_BSD=1
1261 USE_NETBSD=1
1262 cat >> confdefs.h <<\EOF
1263 #define __NETBSD__ 1
1264 EOF
1265
1266 cat >> confdefs.h <<\EOF
1267 #define __BSD__ 1
1268 EOF
1269
1270 DEFAULT_DEFAULT_wxUSE_GTK=1
1271 ;;
1272 *-*-osf* )
1273 USE_ALPHA=1
1274 USE_OSF=1
1275 cat >> confdefs.h <<\EOF
1276 #define __ALPHA__ 1
1277 EOF
1278
1279 cat >> confdefs.h <<\EOF
1280 #define __OSF__ 1
1281 EOF
1282
1283 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1284 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1285 ;;
1286 *-*-dgux5* )
1287 USE_ALPHA=1
1288 USE_SVR4=1
1289 cat >> confdefs.h <<\EOF
1290 #define __ALPHA__ 1
1291 EOF
1292
1293 cat >> confdefs.h <<\EOF
1294 #define __SVR4__ 1
1295 EOF
1296
1297 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1298 ;;
1299 *-*-sysv5* )
1300 USE_SYSV=1
1301 USE_SVR4=1
1302 cat >> confdefs.h <<\EOF
1303 #define __SYSV__ 1
1304 EOF
1305
1306 cat >> confdefs.h <<\EOF
1307 #define __SVR4__ 1
1308 EOF
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312 *-*-aix* )
1313 USE_AIX=1
1314 USE_SYSV=1
1315 USE_SVR4=1
1316 SO_SUFFIX=a
1317 cat >> confdefs.h <<\EOF
1318 #define __AIX__ 1
1319 EOF
1320
1321 cat >> confdefs.h <<\EOF
1322 #define __SYSV__ 1
1323 EOF
1324
1325 cat >> confdefs.h <<\EOF
1326 #define __SVR4__ 1
1327 EOF
1328
1329 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1330 ;;
1331
1332 *-*-cygwin* | *-*-mingw32* )
1333 SO_SUFFIX=dll
1334 PROGRAM_EXT=".exe"
1335 RESCOMP=windres
1336 DEFAULT_DEFAULT_wxUSE_MSW=1
1337 ;;
1338
1339 *-pc-msdosdjgpp )
1340 USE_UNIX=0
1341 USE_DOS=1
1342 cat >> confdefs.h <<\EOF
1343 #define __DOS__ 1
1344 EOF
1345
1346 PROGRAM_EXT=".exe"
1347 DEFAULT_DEFAULT_wxUSE_MGL=1
1348 LIBS="$LIBS -lstdc++"
1349 ;;
1350
1351 *-pc-os2_emx | *-pc-os2-emx )
1352 cat >> confdefs.h <<\EOF
1353 #define __EMX__ 1
1354 EOF
1355
1356 PROGRAM_EXT=".exe"
1357 DEFAULT_DEFAULT_wxUSE_PM=1
1358 ;;
1359
1360 powerpc-*-darwin* )
1361 USE_BSD=1
1362 USE_DARWIN=1
1363 SO_SUFFIX=dylib
1364 cat >> confdefs.h <<\EOF
1365 #define __BSD__ 1
1366 EOF
1367
1368 cat >> confdefs.h <<\EOF
1369 #define __DARWIN__ 1
1370 EOF
1371
1372 cat >> confdefs.h <<\EOF
1373 #define __POWERPC__ 1
1374 EOF
1375
1376 cat >> confdefs.h <<\EOF
1377 #define TARGET_CARBON 1
1378 EOF
1379
1380 DEFAULT_DEFAULT_wxUSE_MAC=1
1381 ;;
1382
1383 *-*-beos* )
1384 USE_BEOS=1
1385 cat >> confdefs.h <<\EOF
1386 #define __BEOS__ 1
1387 EOF
1388
1389 ;;
1390
1391 *)
1392 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1393 esac
1394
1395
1396
1397
1398 wx_arg_cache_file="configarg.cache"
1399 echo "loading argument cache $wx_arg_cache_file"
1400 rm -f ${wx_arg_cache_file}.tmp
1401 touch ${wx_arg_cache_file}.tmp
1402 touch ${wx_arg_cache_file}
1403
1404
1405 DEBUG_CONFIGURE=0
1406 if test $DEBUG_CONFIGURE = 1; then
1407 DEFAULT_wxUSE_UNIVERSAL=no
1408
1409 DEFAULT_wxUSE_NANOX=no
1410
1411 DEFAULT_wxUSE_THREADS=yes
1412
1413 DEFAULT_wxUSE_SHARED=yes
1414 DEFAULT_wxUSE_SONAME=no
1415 DEFAULT_wxUSE_OPTIMISE=no
1416 DEFAULT_wxUSE_PROFILE=no
1417 DEFAULT_wxUSE_NO_DEPS=no
1418 DEFAULT_wxUSE_NO_RTTI=no
1419 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1420 DEFAULT_wxUSE_PERMISSIVE=no
1421 DEFAULT_wxUSE_DEBUG_FLAG=yes
1422 DEFAULT_wxUSE_DEBUG_INFO=yes
1423 DEFAULT_wxUSE_DEBUG_GDB=yes
1424 DEFAULT_wxUSE_MEM_TRACING=no
1425 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1426 DEFAULT_wxUSE_DMALLOC=no
1427 DEFAULT_wxUSE_PRECOMP=no
1428 DEFAULT_wxUSE_APPLE_IEEE=no
1429
1430 DEFAULT_wxUSE_LOG=yes
1431 DEFAULT_wxUSE_LOGWINDOW=no
1432 DEFAULT_wxUSE_LOGGUI=no
1433 DEFAULT_wxUSE_LOGDIALOG=no
1434
1435 DEFAULT_wxUSE_GUI=yes
1436 DEFAULT_wxUSE_CONTROLS=no
1437
1438 DEFAULT_wxUSE_REGEX=no
1439 DEFAULT_wxUSE_ZLIB=no
1440 DEFAULT_wxUSE_LIBPNG=no
1441 DEFAULT_wxUSE_LIBJPEG=no
1442 DEFAULT_wxUSE_LIBTIFF=no
1443 DEFAULT_wxUSE_ODBC=no
1444 DEFAULT_wxUSE_OPENGL=no
1445
1446 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1447 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1448 DEFAULT_wxUSE_STD_IOSTREAM=no
1449 DEFAULT_wxUSE_CMDLINE_PARSER=no
1450 DEFAULT_wxUSE_DATETIME=no
1451 DEFAULT_wxUSE_TIMER=no
1452 DEFAULT_wxUSE_STOPWATCH=no
1453 DEFAULT_wxUSE_FILE=no
1454 DEFAULT_wxUSE_FFILE=no
1455 DEFAULT_wxUSE_TEXTBUFFER=no
1456 DEFAULT_wxUSE_TEXTFILE=no
1457 DEFAULT_wxUSE_WAVE=no
1458 DEFAULT_wxUSE_INTL=no
1459 DEFAULT_wxUSE_CONFIG=no
1460 DEFAULT_wxUSE_FONTMAP=no
1461 DEFAULT_wxUSE_STREAMS=no
1462 DEFAULT_wxUSE_SOCKETS=no
1463 DEFAULT_wxUSE_OLE=no
1464 DEFAULT_wxUSE_DATAOBJ=no
1465 DEFAULT_wxUSE_DIALUP_MANAGER=no
1466 DEFAULT_wxUSE_JOYSTICK=no
1467 DEFAULT_wxUSE_DYNLIB_CLASS=no
1468 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1469 DEFAULT_wxUSE_LONGLONG=no
1470 DEFAULT_wxUSE_GEOMETRY=no
1471
1472 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1473 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1474 DEFAULT_wxUSE_POSTSCRIPT=no
1475
1476 DEFAULT_wxUSE_X_RESOURCES=no
1477 DEFAULT_wxUSE_CLIPBOARD=no
1478 DEFAULT_wxUSE_TOOLTIPS=no
1479 DEFAULT_wxUSE_DRAG_AND_DROP=no
1480 DEFAULT_wxUSE_DRAGIMAGE=no
1481 DEFAULT_wxUSE_SPLINES=no
1482
1483 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1484 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1485 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1486
1487 DEFAULT_wxUSE_PROLOGIO=no
1488 DEFAULT_wxUSE_RESOURCES=no
1489 DEFAULT_wxUSE_CONSTRAINTS=no
1490 DEFAULT_wxUSE_IPC=no
1491 DEFAULT_wxUSE_HELP=no
1492 DEFAULT_wxUSE_MS_HTML_HELP=no
1493 DEFAULT_wxUSE_WXHTML_HELP=no
1494 DEFAULT_wxUSE_TREELAYOUT=no
1495 DEFAULT_wxUSE_METAFILE=no
1496 DEFAULT_wxUSE_MIMETYPE=no
1497 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1498 DEFAULT_wxUSE_PROTOCOL=no
1499 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1500 DEFAULT_wxUSE_PROTOCOL_FTP=no
1501 DEFAULT_wxUSE_PROTOCOL_FILE=no
1502 DEFAULT_wxUSE_URL=no
1503
1504 DEFAULT_wxUSE_COMMONDLGS=no
1505 DEFAULT_wxUSE_CHOICEDLG=no
1506 DEFAULT_wxUSE_COLOURDLG=no
1507 DEFAULT_wxUSE_DIRDLG=no
1508 DEFAULT_wxUSE_FILEDLG=no
1509 DEFAULT_wxUSE_FINDREPLDLG=no
1510 DEFAULT_wxUSE_FONTDLG=no
1511 DEFAULT_wxUSE_MSGDLG=no
1512 DEFAULT_wxUSE_NUMBERDLG=no
1513 DEFAULT_wxUSE_TEXTDLG=no
1514 DEFAULT_wxUSE_SPLASH=no
1515 DEFAULT_wxUSE_STARTUP_TIPS=no
1516 DEFAULT_wxUSE_PROGRESSDLG=no
1517 DEFAULT_wxUSE_WIZARDDLG=no
1518
1519 DEFAULT_wxUSE_MENUS=no
1520 DEFAULT_wxUSE_MINIFRAME=no
1521 DEFAULT_wxUSE_HTML=no
1522 DEFAULT_wxUSE_FILESYSTEM=no
1523 DEFAULT_wxUSE_FS_INET=no
1524 DEFAULT_wxUSE_FS_ZIP=no
1525 DEFAULT_wxUSE_BUSYINFO=no
1526 DEFAULT_wxUSE_ZIPSTREAM=no
1527 DEFAULT_wxUSE_VALIDATORS=no
1528
1529 DEFAULT_wxUSE_ACCEL=no
1530 DEFAULT_wxUSE_BUTTON=no
1531 DEFAULT_wxUSE_BMPBUTTON=no
1532 DEFAULT_wxUSE_CALCTRL=no
1533 DEFAULT_wxUSE_CARET=no
1534 DEFAULT_wxUSE_CHECKBOX=no
1535 DEFAULT_wxUSE_CHECKLST=no
1536 DEFAULT_wxUSE_CHOICE=no
1537 DEFAULT_wxUSE_COMBOBOX=no
1538 DEFAULT_wxUSE_DISPLAY=no
1539 DEFAULT_wxUSE_GAUGE=no
1540 DEFAULT_wxUSE_GRID=no
1541 DEFAULT_wxUSE_IMAGLIST=no
1542 DEFAULT_wxUSE_LISTBOX=no
1543 DEFAULT_wxUSE_LISTCTRL=no
1544 DEFAULT_wxUSE_NOTEBOOK=no
1545 DEFAULT_wxUSE_PROPSHEET=no
1546 DEFAULT_wxUSE_RADIOBOX=no
1547 DEFAULT_wxUSE_RADIOBTN=no
1548 DEFAULT_wxUSE_SASH=no
1549 DEFAULT_wxUSE_SCROLLBAR=no
1550 DEFAULT_wxUSE_SLIDER=no
1551 DEFAULT_wxUSE_SPINBTN=no
1552 DEFAULT_wxUSE_SPINCTRL=no
1553 DEFAULT_wxUSE_SPLITTER=no
1554 DEFAULT_wxUSE_STATBMP=no
1555 DEFAULT_wxUSE_STATBOX=no
1556 DEFAULT_wxUSE_STATLINE=no
1557 DEFAULT_wxUSE_STATTEXT=no
1558 DEFAULT_wxUSE_STATUSBAR=yes
1559 DEFAULT_wxUSE_TABDIALOG=no
1560 DEFAULT_wxUSE_TEXTCTRL=no
1561 DEFAULT_wxUSE_TOGGLEBTN=no
1562 DEFAULT_wxUSE_TOOLBAR=no
1563 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1564 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1565 DEFAULT_wxUSE_TREECTRL=no
1566 DEFAULT_wxUSE_POPUPWIN=no
1567 DEFAULT_wxUSE_TIPWINDOW=no
1568
1569 DEFAULT_wxUSE_UNICODE=no
1570 DEFAULT_wxUSE_UNICODE_MSLU=no
1571 DEFAULT_wxUSE_WCSRTOMBS=no
1572
1573 DEFAULT_wxUSE_PALETTE=no
1574 DEFAULT_wxUSE_IMAGE=no
1575 DEFAULT_wxUSE_GIF=no
1576 DEFAULT_wxUSE_PCX=no
1577 DEFAULT_wxUSE_PNM=no
1578 DEFAULT_wxUSE_IFF=no
1579 DEFAULT_wxUSE_XPM=no
1580 DEFAULT_wxUSE_ICO_CUR=no
1581 else
1582 DEFAULT_wxUSE_UNIVERSAL=no
1583
1584 DEFAULT_wxUSE_NANOX=no
1585
1586 DEFAULT_wxUSE_THREADS=yes
1587
1588 DEFAULT_wxUSE_SHARED=yes
1589 DEFAULT_wxUSE_SONAME=no
1590 DEFAULT_wxUSE_OPTIMISE=yes
1591 DEFAULT_wxUSE_PROFILE=no
1592 DEFAULT_wxUSE_NO_DEPS=no
1593 DEFAULT_wxUSE_NO_RTTI=no
1594 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1595 DEFAULT_wxUSE_PERMISSIVE=no
1596 DEFAULT_wxUSE_DEBUG_FLAG=no
1597 DEFAULT_wxUSE_DEBUG_INFO=no
1598 DEFAULT_wxUSE_DEBUG_GDB=no
1599 DEFAULT_wxUSE_MEM_TRACING=no
1600 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1601 DEFAULT_wxUSE_DMALLOC=no
1602 DEFAULT_wxUSE_PRECOMP=no
1603 DEFAULT_wxUSE_APPLE_IEEE=yes
1604
1605 DEFAULT_wxUSE_LOG=yes
1606 DEFAULT_wxUSE_LOGWINDOW=yes
1607 DEFAULT_wxUSE_LOGGUI=yes
1608 DEFAULT_wxUSE_LOGDIALOG=yes
1609
1610 DEFAULT_wxUSE_GUI=yes
1611
1612 DEFAULT_wxUSE_REGEX=yes
1613 DEFAULT_wxUSE_ZLIB=yes
1614 DEFAULT_wxUSE_LIBPNG=yes
1615 DEFAULT_wxUSE_LIBJPEG=yes
1616 DEFAULT_wxUSE_LIBTIFF=yes
1617 DEFAULT_wxUSE_ODBC=no
1618 DEFAULT_wxUSE_OPENGL=no
1619
1620 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1621 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1622 DEFAULT_wxUSE_STD_IOSTREAM=no
1623 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1624 DEFAULT_wxUSE_DATETIME=yes
1625 DEFAULT_wxUSE_TIMER=yes
1626 DEFAULT_wxUSE_STOPWATCH=yes
1627 DEFAULT_wxUSE_FILE=yes
1628 DEFAULT_wxUSE_FFILE=yes
1629 DEFAULT_wxUSE_TEXTBUFFER=yes
1630 DEFAULT_wxUSE_TEXTFILE=yes
1631 DEFAULT_wxUSE_WAVE=no
1632 DEFAULT_wxUSE_INTL=yes
1633 DEFAULT_wxUSE_CONFIG=yes
1634 DEFAULT_wxUSE_FONTMAP=yes
1635 DEFAULT_wxUSE_STREAMS=yes
1636 DEFAULT_wxUSE_SOCKETS=yes
1637 DEFAULT_wxUSE_OLE=yes
1638 DEFAULT_wxUSE_DATAOBJ=yes
1639 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1640 DEFAULT_wxUSE_JOYSTICK=yes
1641 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1642 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1643 DEFAULT_wxUSE_LONGLONG=yes
1644 DEFAULT_wxUSE_GEOMETRY=yes
1645
1646 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1647 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1648 DEFAULT_wxUSE_POSTSCRIPT=yes
1649
1650 DEFAULT_wxUSE_X_RESOURCES=no
1651 DEFAULT_wxUSE_CLIPBOARD=yes
1652 DEFAULT_wxUSE_TOOLTIPS=yes
1653 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1654 DEFAULT_wxUSE_DRAGIMAGE=yes
1655 DEFAULT_wxUSE_SPLINES=yes
1656
1657 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1658 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1659 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1660
1661 DEFAULT_wxUSE_PROLOGIO=no
1662 DEFAULT_wxUSE_RESOURCES=no
1663 DEFAULT_wxUSE_CONSTRAINTS=yes
1664 DEFAULT_wxUSE_IPC=yes
1665 DEFAULT_wxUSE_HELP=yes
1666 DEFAULT_wxUSE_MS_HTML_HELP=yes
1667 DEFAULT_wxUSE_WXHTML_HELP=yes
1668 DEFAULT_wxUSE_TREELAYOUT=yes
1669 DEFAULT_wxUSE_METAFILE=yes
1670 DEFAULT_wxUSE_MIMETYPE=yes
1671 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1672 DEFAULT_wxUSE_PROTOCOL=yes
1673 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1674 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1675 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1676 DEFAULT_wxUSE_URL=yes
1677
1678 DEFAULT_wxUSE_COMMONDLGS=yes
1679 DEFAULT_wxUSE_CHOICEDLG=yes
1680 DEFAULT_wxUSE_COLOURDLG=yes
1681 DEFAULT_wxUSE_DIRDLG=yes
1682 DEFAULT_wxUSE_FILEDLG=yes
1683 DEFAULT_wxUSE_FINDREPLDLG=yes
1684 DEFAULT_wxUSE_FONTDLG=yes
1685 DEFAULT_wxUSE_MSGDLG=yes
1686 DEFAULT_wxUSE_NUMBERDLG=yes
1687 DEFAULT_wxUSE_TEXTDLG=yes
1688 DEFAULT_wxUSE_SPLASH=yes
1689 DEFAULT_wxUSE_STARTUP_TIPS=yes
1690 DEFAULT_wxUSE_PROGRESSDLG=yes
1691 DEFAULT_wxUSE_WIZARDDLG=yes
1692
1693 DEFAULT_wxUSE_MENUS=yes
1694 DEFAULT_wxUSE_MINIFRAME=yes
1695 DEFAULT_wxUSE_HTML=yes
1696 DEFAULT_wxUSE_FILESYSTEM=yes
1697 DEFAULT_wxUSE_FS_INET=yes
1698 DEFAULT_wxUSE_FS_ZIP=yes
1699 DEFAULT_wxUSE_BUSYINFO=yes
1700 DEFAULT_wxUSE_ZIPSTREAM=yes
1701 DEFAULT_wxUSE_VALIDATORS=yes
1702
1703 DEFAULT_wxUSE_ACCEL=yes
1704 DEFAULT_wxUSE_BUTTON=yes
1705 DEFAULT_wxUSE_BMPBUTTON=yes
1706 DEFAULT_wxUSE_CALCTRL=yes
1707 DEFAULT_wxUSE_CARET=yes
1708 DEFAULT_wxUSE_CHECKBOX=yes
1709 DEFAULT_wxUSE_CHECKLST=yes
1710 DEFAULT_wxUSE_CHOICE=yes
1711 DEFAULT_wxUSE_COMBOBOX=yes
1712 DEFAULT_wxUSE_DISPLAY=no
1713 DEFAULT_wxUSE_GAUGE=yes
1714 DEFAULT_wxUSE_GRID=yes
1715 DEFAULT_wxUSE_IMAGLIST=yes
1716 DEFAULT_wxUSE_LISTBOX=yes
1717 DEFAULT_wxUSE_LISTCTRL=yes
1718 DEFAULT_wxUSE_NOTEBOOK=yes
1719 DEFAULT_wxUSE_PROPSHEET=yes
1720 DEFAULT_wxUSE_RADIOBOX=yes
1721 DEFAULT_wxUSE_RADIOBTN=yes
1722 DEFAULT_wxUSE_SASH=yes
1723 DEFAULT_wxUSE_SCROLLBAR=yes
1724 DEFAULT_wxUSE_SLIDER=yes
1725 DEFAULT_wxUSE_SPINBTN=yes
1726 DEFAULT_wxUSE_SPINCTRL=yes
1727 DEFAULT_wxUSE_SPLITTER=yes
1728 DEFAULT_wxUSE_STATBMP=yes
1729 DEFAULT_wxUSE_STATBOX=yes
1730 DEFAULT_wxUSE_STATLINE=yes
1731 DEFAULT_wxUSE_STATTEXT=yes
1732 DEFAULT_wxUSE_STATUSBAR=yes
1733 DEFAULT_wxUSE_TABDIALOG=no
1734 DEFAULT_wxUSE_TEXTCTRL=yes
1735 DEFAULT_wxUSE_TOGGLEBTN=yes
1736 DEFAULT_wxUSE_TOOLBAR=yes
1737 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1738 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1739 DEFAULT_wxUSE_TREECTRL=yes
1740 DEFAULT_wxUSE_POPUPWIN=yes
1741 DEFAULT_wxUSE_TIPWINDOW=yes
1742
1743 DEFAULT_wxUSE_UNICODE=no
1744 DEFAULT_wxUSE_UNICODE_MSLU=yes
1745 DEFAULT_wxUSE_WCSRTOMBS=no
1746
1747 DEFAULT_wxUSE_PALETTE=yes
1748 DEFAULT_wxUSE_IMAGE=yes
1749 DEFAULT_wxUSE_GIF=yes
1750 DEFAULT_wxUSE_PCX=yes
1751 DEFAULT_wxUSE_IFF=no
1752 DEFAULT_wxUSE_PNM=yes
1753 DEFAULT_wxUSE_XPM=yes
1754 DEFAULT_wxUSE_ICO_CUR=yes
1755 fi
1756
1757
1758
1759 for toolkit in `echo $ALL_TOOLKITS`; do
1760 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1761 if test "x$LINE" != "x" ; then
1762 has_toolkit_in_cache=1
1763 eval "DEFAULT_$LINE"
1764 eval "CACHE_$toolkit=1"
1765 fi
1766 done
1767
1768
1769
1770 enablestring=
1771 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1772 echo "configure:1773: checking for --${enablestring:-enable}-gui" >&5
1773 no_cache=0
1774 # Check whether --enable-gui or --disable-gui was given.
1775 if test "${enable_gui+set}" = set; then
1776 enableval="$enable_gui"
1777
1778 if test "$enableval" = yes; then
1779 ac_cv_use_gui='wxUSE_GUI=yes'
1780 else
1781 ac_cv_use_gui='wxUSE_GUI=no'
1782 fi
1783
1784 else
1785
1786 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1787 if test "x$LINE" != x ; then
1788 eval "DEFAULT_$LINE"
1789 else
1790 no_cache=1
1791 fi
1792
1793 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1794
1795 fi
1796
1797
1798 eval "$ac_cv_use_gui"
1799 if test "$no_cache" != 1; then
1800 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1801 fi
1802
1803 if test "$wxUSE_GUI" = yes; then
1804 echo "$ac_t""yes" 1>&6
1805 else
1806 echo "$ac_t""no" 1>&6
1807 fi
1808
1809
1810 if test "$wxUSE_GUI" = "yes"; then
1811
1812
1813 enablestring=
1814 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1815 echo "configure:1816: checking for --${enablestring:-enable}-universal" >&5
1816 no_cache=0
1817 # Check whether --enable-universal or --disable-universal was given.
1818 if test "${enable_universal+set}" = set; then
1819 enableval="$enable_universal"
1820
1821 if test "$enableval" = yes; then
1822 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1823 else
1824 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1825 fi
1826
1827 else
1828
1829 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1830 if test "x$LINE" != x ; then
1831 eval "DEFAULT_$LINE"
1832 else
1833 no_cache=1
1834 fi
1835
1836 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1837
1838 fi
1839
1840
1841 eval "$ac_cv_use_universal"
1842 if test "$no_cache" != 1; then
1843 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1844 fi
1845
1846 if test "$wxUSE_UNIVERSAL" = yes; then
1847 echo "$ac_t""yes" 1>&6
1848 else
1849 echo "$ac_t""no" 1>&6
1850 fi
1851
1852 # Check whether --with-gtk or --without-gtk was given.
1853 if test "${with_gtk+set}" = set; then
1854 withval="$with_gtk"
1855 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1856 fi
1857
1858 # Check whether --with-motif or --without-motif was given.
1859 if test "${with_motif+set}" = set; then
1860 withval="$with_motif"
1861 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1862 fi
1863
1864 # Check whether --with-mac or --without-mac was given.
1865 if test "${with_mac+set}" = set; then
1866 withval="$with_mac"
1867 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1868 fi
1869
1870 # Check whether --with-cocoa or --without-cocoa was given.
1871 if test "${with_cocoa+set}" = set; then
1872 withval="$with_cocoa"
1873 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1874 fi
1875
1876 # Check whether --with-wine or --without-wine was given.
1877 if test "${with_wine+set}" = set; then
1878 withval="$with_wine"
1879 wxUSE_WINE="$withval" CACHE_WINE=1
1880 fi
1881
1882 # Check whether --with-msw or --without-msw was given.
1883 if test "${with_msw+set}" = set; then
1884 withval="$with_msw"
1885 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1886 fi
1887
1888 # Check whether --with-pm or --without-pm was given.
1889 if test "${with_pm+set}" = set; then
1890 withval="$with_pm"
1891 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1892 fi
1893
1894 # Check whether --with-mgl or --without-mgl was given.
1895 if test "${with_mgl+set}" = set; then
1896 withval="$with_mgl"
1897 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1898 fi
1899
1900 # Check whether --with-microwin or --without-microwin was given.
1901 if test "${with_microwin+set}" = set; then
1902 withval="$with_microwin"
1903 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1904 fi
1905
1906 # Check whether --with-x11 or --without-x11 was given.
1907 if test "${with_x11+set}" = set; then
1908 withval="$with_x11"
1909 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1910 fi
1911
1912
1913 enablestring=
1914 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1915 echo "configure:1916: checking for --${enablestring:-enable}-nanox" >&5
1916 no_cache=0
1917 # Check whether --enable-nanox or --disable-nanox was given.
1918 if test "${enable_nanox+set}" = set; then
1919 enableval="$enable_nanox"
1920
1921 if test "$enableval" = yes; then
1922 ac_cv_use_nanox='wxUSE_NANOX=yes'
1923 else
1924 ac_cv_use_nanox='wxUSE_NANOX=no'
1925 fi
1926
1927 else
1928
1929 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
1936 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1937
1938 fi
1939
1940
1941 eval "$ac_cv_use_nanox"
1942 if test "$no_cache" != 1; then
1943 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1944 fi
1945
1946 if test "$wxUSE_NANOX" = yes; then
1947 echo "$ac_t""yes" 1>&6
1948 else
1949 echo "$ac_t""no" 1>&6
1950 fi
1951
1952
1953
1954 enablestring=
1955 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1956 echo "configure:1957: checking for --${enablestring:-enable}-gtk2" >&5
1957 no_cache=0
1958 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1959 if test "${enable_gtk2+set}" = set; then
1960 enableval="$enable_gtk2"
1961
1962 if test "$enableval" = yes; then
1963 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1964 else
1965 ac_cv_use_gtk2='wxUSE_GTK2=no'
1966 fi
1967
1968 else
1969
1970 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1971 if test "x$LINE" != x ; then
1972 eval "DEFAULT_$LINE"
1973 else
1974 no_cache=1
1975 fi
1976
1977 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1978
1979 fi
1980
1981
1982 eval "$ac_cv_use_gtk2"
1983 if test "$no_cache" != 1; then
1984 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1985 fi
1986
1987 if test "$wxUSE_GTK2" = yes; then
1988 echo "$ac_t""yes" 1>&6
1989 else
1990 echo "$ac_t""no" 1>&6
1991 fi
1992
1993
1994
1995 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1996 echo "configure:1997: checking for --with-libpng" >&5
1997 no_cache=0
1998 # Check whether --with-libpng or --without-libpng was given.
1999 if test "${with_libpng+set}" = set; then
2000 withval="$with_libpng"
2001
2002 if test "$withval" = yes; then
2003 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2004 elif test "$withval" = no; then
2005 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2006 elif test "$withval" = sys; then
2007 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2008 elif test "$withval" = builtin; then
2009 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2010 else
2011 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2012 fi
2013
2014 else
2015
2016 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2017 if test "x$LINE" != x ; then
2018 eval "DEFAULT_$LINE"
2019 else
2020 no_cache=1
2021 fi
2022
2023 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2024
2025 fi
2026
2027
2028 eval "$ac_cv_use_libpng"
2029 if test "$no_cache" != 1; then
2030 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2031 fi
2032
2033 if test "$wxUSE_LIBPNG" = yes; then
2034 echo "$ac_t""yes" 1>&6
2035 elif test "$wxUSE_LIBPNG" = no; then
2036 echo "$ac_t""no" 1>&6
2037 elif test "$wxUSE_LIBPNG" = sys; then
2038 echo "$ac_t""system version" 1>&6
2039 elif test "$wxUSE_LIBPNG" = builtin; then
2040 echo "$ac_t""builtin version" 1>&6
2041 else
2042 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2043 fi
2044
2045
2046 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2047 echo "configure:2048: checking for --with-libjpeg" >&5
2048 no_cache=0
2049 # Check whether --with-libjpeg or --without-libjpeg was given.
2050 if test "${with_libjpeg+set}" = set; then
2051 withval="$with_libjpeg"
2052
2053 if test "$withval" = yes; then
2054 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2055 elif test "$withval" = no; then
2056 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2057 elif test "$withval" = sys; then
2058 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2059 elif test "$withval" = builtin; then
2060 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2061 else
2062 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2063 fi
2064
2065 else
2066
2067 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2068 if test "x$LINE" != x ; then
2069 eval "DEFAULT_$LINE"
2070 else
2071 no_cache=1
2072 fi
2073
2074 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2075
2076 fi
2077
2078
2079 eval "$ac_cv_use_libjpeg"
2080 if test "$no_cache" != 1; then
2081 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2082 fi
2083
2084 if test "$wxUSE_LIBJPEG" = yes; then
2085 echo "$ac_t""yes" 1>&6
2086 elif test "$wxUSE_LIBJPEG" = no; then
2087 echo "$ac_t""no" 1>&6
2088 elif test "$wxUSE_LIBJPEG" = sys; then
2089 echo "$ac_t""system version" 1>&6
2090 elif test "$wxUSE_LIBJPEG" = builtin; then
2091 echo "$ac_t""builtin version" 1>&6
2092 else
2093 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2094 fi
2095
2096
2097 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2098 echo "configure:2099: checking for --with-libtiff" >&5
2099 no_cache=0
2100 # Check whether --with-libtiff or --without-libtiff was given.
2101 if test "${with_libtiff+set}" = set; then
2102 withval="$with_libtiff"
2103
2104 if test "$withval" = yes; then
2105 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2106 elif test "$withval" = no; then
2107 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2108 elif test "$withval" = sys; then
2109 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2110 elif test "$withval" = builtin; then
2111 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2112 else
2113 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2114 fi
2115
2116 else
2117
2118 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2119 if test "x$LINE" != x ; then
2120 eval "DEFAULT_$LINE"
2121 else
2122 no_cache=1
2123 fi
2124
2125 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2126
2127 fi
2128
2129
2130 eval "$ac_cv_use_libtiff"
2131 if test "$no_cache" != 1; then
2132 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2133 fi
2134
2135 if test "$wxUSE_LIBTIFF" = yes; then
2136 echo "$ac_t""yes" 1>&6
2137 elif test "$wxUSE_LIBTIFF" = no; then
2138 echo "$ac_t""no" 1>&6
2139 elif test "$wxUSE_LIBTIFF" = sys; then
2140 echo "$ac_t""system version" 1>&6
2141 elif test "$wxUSE_LIBTIFF" = builtin; then
2142 echo "$ac_t""builtin version" 1>&6
2143 else
2144 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2145 fi
2146
2147
2148 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2149 echo "configure:2150: checking for --with-opengl" >&5
2150 no_cache=0
2151 # Check whether --with-opengl or --without-opengl was given.
2152 if test "${with_opengl+set}" = set; then
2153 withval="$with_opengl"
2154
2155 if test "$withval" = yes; then
2156 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2157 else
2158 ac_cv_use_opengl='wxUSE_OPENGL=no'
2159 fi
2160
2161 else
2162
2163 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2164 if test "x$LINE" != x ; then
2165 eval "DEFAULT_$LINE"
2166 else
2167 no_cache=1
2168 fi
2169
2170 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2171
2172 fi
2173
2174
2175 eval "$ac_cv_use_opengl"
2176 if test "$no_cache" != 1; then
2177 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2178 fi
2179
2180 if test "$wxUSE_OPENGL" = yes; then
2181 echo "$ac_t""yes" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2184 fi
2185
2186
2187 fi
2188
2189
2190 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2191 echo "configure:2192: checking for --with-dmalloc" >&5
2192 no_cache=0
2193 # Check whether --with-dmalloc or --without-dmalloc was given.
2194 if test "${with_dmalloc+set}" = set; then
2195 withval="$with_dmalloc"
2196
2197 if test "$withval" = yes; then
2198 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2199 else
2200 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2201 fi
2202
2203 else
2204
2205 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2206 if test "x$LINE" != x ; then
2207 eval "DEFAULT_$LINE"
2208 else
2209 no_cache=1
2210 fi
2211
2212 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2213
2214 fi
2215
2216
2217 eval "$ac_cv_use_dmalloc"
2218 if test "$no_cache" != 1; then
2219 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2220 fi
2221
2222 if test "$wxUSE_DMALLOC" = yes; then
2223 echo "$ac_t""yes" 1>&6
2224 else
2225 echo "$ac_t""no" 1>&6
2226 fi
2227
2228
2229 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2230 echo "configure:2231: checking for --with-regex" >&5
2231 no_cache=0
2232 # Check whether --with-regex or --without-regex was given.
2233 if test "${with_regex+set}" = set; then
2234 withval="$with_regex"
2235
2236 if test "$withval" = yes; then
2237 ac_cv_use_regex='wxUSE_REGEX=yes'
2238 elif test "$withval" = no; then
2239 ac_cv_use_regex='wxUSE_REGEX=no'
2240 elif test "$withval" = sys; then
2241 ac_cv_use_regex='wxUSE_REGEX=sys'
2242 elif test "$withval" = builtin; then
2243 ac_cv_use_regex='wxUSE_REGEX=builtin'
2244 else
2245 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2246 fi
2247
2248 else
2249
2250 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2251 if test "x$LINE" != x ; then
2252 eval "DEFAULT_$LINE"
2253 else
2254 no_cache=1
2255 fi
2256
2257 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2258
2259 fi
2260
2261
2262 eval "$ac_cv_use_regex"
2263 if test "$no_cache" != 1; then
2264 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2265 fi
2266
2267 if test "$wxUSE_REGEX" = yes; then
2268 echo "$ac_t""yes" 1>&6
2269 elif test "$wxUSE_REGEX" = no; then
2270 echo "$ac_t""no" 1>&6
2271 elif test "$wxUSE_REGEX" = sys; then
2272 echo "$ac_t""system version" 1>&6
2273 elif test "$wxUSE_REGEX" = builtin; then
2274 echo "$ac_t""builtin version" 1>&6
2275 else
2276 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2277 fi
2278
2279
2280 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2281 echo "configure:2282: checking for --with-zlib" >&5
2282 no_cache=0
2283 # Check whether --with-zlib or --without-zlib was given.
2284 if test "${with_zlib+set}" = set; then
2285 withval="$with_zlib"
2286
2287 if test "$withval" = yes; then
2288 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2289 elif test "$withval" = no; then
2290 ac_cv_use_zlib='wxUSE_ZLIB=no'
2291 elif test "$withval" = sys; then
2292 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2293 elif test "$withval" = builtin; then
2294 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2295 else
2296 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2297 fi
2298
2299 else
2300
2301 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
2308 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2309
2310 fi
2311
2312
2313 eval "$ac_cv_use_zlib"
2314 if test "$no_cache" != 1; then
2315 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2316 fi
2317
2318 if test "$wxUSE_ZLIB" = yes; then
2319 echo "$ac_t""yes" 1>&6
2320 elif test "$wxUSE_ZLIB" = no; then
2321 echo "$ac_t""no" 1>&6
2322 elif test "$wxUSE_ZLIB" = sys; then
2323 echo "$ac_t""system version" 1>&6
2324 elif test "$wxUSE_ZLIB" = builtin; then
2325 echo "$ac_t""builtin version" 1>&6
2326 else
2327 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2328 fi
2329
2330
2331 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2332 echo "configure:2333: checking for --with-odbc" >&5
2333 no_cache=0
2334 # Check whether --with-odbc or --without-odbc was given.
2335 if test "${with_odbc+set}" = set; then
2336 withval="$with_odbc"
2337
2338 if test "$withval" = yes; then
2339 ac_cv_use_odbc='wxUSE_ODBC=yes'
2340 else
2341 ac_cv_use_odbc='wxUSE_ODBC=no'
2342 fi
2343
2344 else
2345
2346 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2354
2355 fi
2356
2357
2358 eval "$ac_cv_use_odbc"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_ODBC" = yes; then
2364 echo "$ac_t""yes" 1>&6
2365 else
2366 echo "$ac_t""no" 1>&6
2367 fi
2368
2369
2370
2371
2372 enablestring=
2373 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2374 echo "configure:2375: checking for --${enablestring:-enable}-shared" >&5
2375 no_cache=0
2376 # Check whether --enable-shared or --disable-shared was given.
2377 if test "${enable_shared+set}" = set; then
2378 enableval="$enable_shared"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_shared='wxUSE_SHARED=yes'
2382 else
2383 ac_cv_use_shared='wxUSE_SHARED=no'
2384 fi
2385
2386 else
2387
2388 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2396
2397 fi
2398
2399
2400 eval "$ac_cv_use_shared"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_SHARED" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 enablestring=
2413 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2414 echo "configure:2415: checking for --${enablestring:-enable}-soname" >&5
2415 no_cache=0
2416 # Check whether --enable-soname or --disable-soname was given.
2417 if test "${enable_soname+set}" = set; then
2418 enableval="$enable_soname"
2419
2420 if test "$enableval" = yes; then
2421 ac_cv_use_soname='wxUSE_SONAME=yes'
2422 else
2423 ac_cv_use_soname='wxUSE_SONAME=no'
2424 fi
2425
2426 else
2427
2428 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2429 if test "x$LINE" != x ; then
2430 eval "DEFAULT_$LINE"
2431 else
2432 no_cache=1
2433 fi
2434
2435 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2436
2437 fi
2438
2439
2440 eval "$ac_cv_use_soname"
2441 if test "$no_cache" != 1; then
2442 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2443 fi
2444
2445 if test "$wxUSE_SONAME" = yes; then
2446 echo "$ac_t""yes" 1>&6
2447 else
2448 echo "$ac_t""no" 1>&6
2449 fi
2450
2451
2452 enablestring=
2453 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2454 echo "configure:2455: checking for --${enablestring:-enable}-optimise" >&5
2455 no_cache=0
2456 # Check whether --enable-optimise or --disable-optimise was given.
2457 if test "${enable_optimise+set}" = set; then
2458 enableval="$enable_optimise"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2462 else
2463 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2464 fi
2465
2466 else
2467
2468 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2476
2477 fi
2478
2479
2480 eval "$ac_cv_use_optimise"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_OPTIMISE" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 enablestring=
2493 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2494 echo "configure:2495: checking for --${enablestring:-enable}-debug" >&5
2495 no_cache=0
2496 # Check whether --enable-debug or --disable-debug was given.
2497 if test "${enable_debug+set}" = set; then
2498 enableval="$enable_debug"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_debug='wxUSE_DEBUG=yes'
2502 else
2503 ac_cv_use_debug='wxUSE_DEBUG=no'
2504 fi
2505
2506 else
2507
2508 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2516
2517 fi
2518
2519
2520 eval "$ac_cv_use_debug"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_DEBUG" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
2532
2533 enablestring=
2534 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2535 echo "configure:2536: checking for --${enablestring:-enable}-precomp" >&5
2536 no_cache=0
2537 # Check whether --enable-precomp or --disable-precomp was given.
2538 if test "${enable_precomp+set}" = set; then
2539 enableval="$enable_precomp"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2543 else
2544 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2545 fi
2546
2547 else
2548
2549 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2557
2558 fi
2559
2560
2561 eval "$ac_cv_use_precomp"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_PRECOMP" = yes; then
2567 echo "$ac_t""yes" 1>&6
2568 else
2569 echo "$ac_t""no" 1>&6
2570 fi
2571
2572
2573 if test "$wxUSE_DEBUG" = "yes"; then
2574 DEFAULT_wxUSE_DEBUG_FLAG=yes
2575 DEFAULT_wxUSE_DEBUG_INFO=yes
2576 elif test "$wxUSE_DEBUG" = "no"; then
2577 DEFAULT_wxUSE_DEBUG_FLAG=no
2578 DEFAULT_wxUSE_DEBUG_INFO=no
2579 fi
2580
2581
2582 enablestring=
2583 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2584 echo "configure:2585: checking for --${enablestring:-enable}-debug_flag" >&5
2585 no_cache=0
2586 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2587 if test "${enable_debug_flag+set}" = set; then
2588 enableval="$enable_debug_flag"
2589
2590 if test "$enableval" = yes; then
2591 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2592 else
2593 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2594 fi
2595
2596 else
2597
2598 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2599 if test "x$LINE" != x ; then
2600 eval "DEFAULT_$LINE"
2601 else
2602 no_cache=1
2603 fi
2604
2605 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2606
2607 fi
2608
2609
2610 eval "$ac_cv_use_debug_flag"
2611 if test "$no_cache" != 1; then
2612 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2613 fi
2614
2615 if test "$wxUSE_DEBUG_FLAG" = yes; then
2616 echo "$ac_t""yes" 1>&6
2617 else
2618 echo "$ac_t""no" 1>&6
2619 fi
2620
2621
2622 enablestring=
2623 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2624 echo "configure:2625: checking for --${enablestring:-enable}-debug_info" >&5
2625 no_cache=0
2626 # Check whether --enable-debug_info or --disable-debug_info was given.
2627 if test "${enable_debug_info+set}" = set; then
2628 enableval="$enable_debug_info"
2629
2630 if test "$enableval" = yes; then
2631 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2632 else
2633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2634 fi
2635
2636 else
2637
2638 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2646
2647 fi
2648
2649
2650 eval "$ac_cv_use_debug_info"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxUSE_DEBUG_INFO" = yes; then
2656 echo "$ac_t""yes" 1>&6
2657 else
2658 echo "$ac_t""no" 1>&6
2659 fi
2660
2661
2662 enablestring=
2663 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2664 echo "configure:2665: checking for --${enablestring:-enable}-debug_gdb" >&5
2665 no_cache=0
2666 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2667 if test "${enable_debug_gdb+set}" = set; then
2668 enableval="$enable_debug_gdb"
2669
2670 if test "$enableval" = yes; then
2671 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2672 else
2673 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2674 fi
2675
2676 else
2677
2678 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2679 if test "x$LINE" != x ; then
2680 eval "DEFAULT_$LINE"
2681 else
2682 no_cache=1
2683 fi
2684
2685 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2686
2687 fi
2688
2689
2690 eval "$ac_cv_use_debug_gdb"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_DEBUG_GDB" = yes; then
2696 echo "$ac_t""yes" 1>&6
2697 else
2698 echo "$ac_t""no" 1>&6
2699 fi
2700
2701
2702 enablestring=
2703 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2704 echo "configure:2705: checking for --${enablestring:-enable}-debug_cntxt" >&5
2705 no_cache=0
2706 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2707 if test "${enable_debug_cntxt+set}" = set; then
2708 enableval="$enable_debug_cntxt"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2712 else
2713 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2714 fi
2715
2716 else
2717
2718 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2726
2727 fi
2728
2729
2730 eval "$ac_cv_use_debug_cntxt"
2731 if test "$no_cache" != 1; then
2732 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2733 fi
2734
2735 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2736 echo "$ac_t""yes" 1>&6
2737 else
2738 echo "$ac_t""no" 1>&6
2739 fi
2740
2741
2742 enablestring=
2743 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2744 echo "configure:2745: checking for --${enablestring:-enable}-mem_tracing" >&5
2745 no_cache=0
2746 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2747 if test "${enable_mem_tracing+set}" = set; then
2748 enableval="$enable_mem_tracing"
2749
2750 if test "$enableval" = yes; then
2751 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2752 else
2753 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2754 fi
2755
2756 else
2757
2758 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2759 if test "x$LINE" != x ; then
2760 eval "DEFAULT_$LINE"
2761 else
2762 no_cache=1
2763 fi
2764
2765 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2766
2767 fi
2768
2769
2770 eval "$ac_cv_use_mem_tracing"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_MEM_TRACING" = yes; then
2776 echo "$ac_t""yes" 1>&6
2777 else
2778 echo "$ac_t""no" 1>&6
2779 fi
2780
2781
2782 enablestring=
2783 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2784 echo "configure:2785: checking for --${enablestring:-enable}-profile" >&5
2785 no_cache=0
2786 # Check whether --enable-profile or --disable-profile was given.
2787 if test "${enable_profile+set}" = set; then
2788 enableval="$enable_profile"
2789
2790 if test "$enableval" = yes; then
2791 ac_cv_use_profile='wxUSE_PROFILE=yes'
2792 else
2793 ac_cv_use_profile='wxUSE_PROFILE=no'
2794 fi
2795
2796 else
2797
2798 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2806
2807 fi
2808
2809
2810 eval "$ac_cv_use_profile"
2811 if test "$no_cache" != 1; then
2812 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2813 fi
2814
2815 if test "$wxUSE_PROFILE" = yes; then
2816 echo "$ac_t""yes" 1>&6
2817 else
2818 echo "$ac_t""no" 1>&6
2819 fi
2820
2821
2822 enablestring=
2823 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2824 echo "configure:2825: checking for --${enablestring:-enable}-no_rtti" >&5
2825 no_cache=0
2826 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2827 if test "${enable_no_rtti+set}" = set; then
2828 enableval="$enable_no_rtti"
2829
2830 if test "$enableval" = yes; then
2831 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2832 else
2833 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2834 fi
2835
2836 else
2837
2838 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2839 if test "x$LINE" != x ; then
2840 eval "DEFAULT_$LINE"
2841 else
2842 no_cache=1
2843 fi
2844
2845 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2846
2847 fi
2848
2849
2850 eval "$ac_cv_use_no_rtti"
2851 if test "$no_cache" != 1; then
2852 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2853 fi
2854
2855 if test "$wxUSE_NO_RTTI" = yes; then
2856 echo "$ac_t""yes" 1>&6
2857 else
2858 echo "$ac_t""no" 1>&6
2859 fi
2860
2861
2862 enablestring=
2863 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2864 echo "configure:2865: checking for --${enablestring:-enable}-no_exceptions" >&5
2865 no_cache=0
2866 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2867 if test "${enable_no_exceptions+set}" = set; then
2868 enableval="$enable_no_exceptions"
2869
2870 if test "$enableval" = yes; then
2871 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2872 else
2873 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2874 fi
2875
2876 else
2877
2878 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2879 if test "x$LINE" != x ; then
2880 eval "DEFAULT_$LINE"
2881 else
2882 no_cache=1
2883 fi
2884
2885 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2886
2887 fi
2888
2889
2890 eval "$ac_cv_use_no_exceptions"
2891 if test "$no_cache" != 1; then
2892 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2893 fi
2894
2895 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2896 echo "$ac_t""yes" 1>&6
2897 else
2898 echo "$ac_t""no" 1>&6
2899 fi
2900
2901
2902 enablestring=
2903 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2904 echo "configure:2905: checking for --${enablestring:-enable}-permissive" >&5
2905 no_cache=0
2906 # Check whether --enable-permissive or --disable-permissive was given.
2907 if test "${enable_permissive+set}" = set; then
2908 enableval="$enable_permissive"
2909
2910 if test "$enableval" = yes; then
2911 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2912 else
2913 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2914 fi
2915
2916 else
2917
2918 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
2925 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2926
2927 fi
2928
2929
2930 eval "$ac_cv_use_permissive"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_PERMISSIVE" = yes; then
2936 echo "$ac_t""yes" 1>&6
2937 else
2938 echo "$ac_t""no" 1>&6
2939 fi
2940
2941
2942 enablestring=
2943 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2944 echo "configure:2945: checking for --${enablestring:-enable}-no_deps" >&5
2945 no_cache=0
2946 # Check whether --enable-no_deps or --disable-no_deps was given.
2947 if test "${enable_no_deps+set}" = set; then
2948 enableval="$enable_no_deps"
2949
2950 if test "$enableval" = yes; then
2951 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2952 else
2953 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2954 fi
2955
2956 else
2957
2958 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2959 if test "x$LINE" != x ; then
2960 eval "DEFAULT_$LINE"
2961 else
2962 no_cache=1
2963 fi
2964
2965 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2966
2967 fi
2968
2969
2970 eval "$ac_cv_use_no_deps"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_NO_DEPS" = yes; then
2976 echo "$ac_t""yes" 1>&6
2977 else
2978 echo "$ac_t""no" 1>&6
2979 fi
2980
2981
2982
2983 enablestring=
2984 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2985 echo "configure:2986: checking for --${enablestring:-enable}-compat20" >&5
2986 no_cache=0
2987 # Check whether --enable-compat20 or --disable-compat20 was given.
2988 if test "${enable_compat20+set}" = set; then
2989 enableval="$enable_compat20"
2990
2991 if test "$enableval" = yes; then
2992 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2993 else
2994 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2995 fi
2996
2997 else
2998
2999 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3000 if test "x$LINE" != x ; then
3001 eval "DEFAULT_$LINE"
3002 else
3003 no_cache=1
3004 fi
3005
3006 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3007
3008 fi
3009
3010
3011 eval "$ac_cv_use_compat20"
3012 if test "$no_cache" != 1; then
3013 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3014 fi
3015
3016 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3017 echo "$ac_t""yes" 1>&6
3018 else
3019 echo "$ac_t""no" 1>&6
3020 fi
3021
3022
3023 enablestring=
3024 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3025 echo "configure:3026: checking for --${enablestring:-enable}-compat22" >&5
3026 no_cache=0
3027 # Check whether --enable-compat22 or --disable-compat22 was given.
3028 if test "${enable_compat22+set}" = set; then
3029 enableval="$enable_compat22"
3030
3031 if test "$enableval" = yes; then
3032 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3033 else
3034 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3035 fi
3036
3037 else
3038
3039 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3047
3048 fi
3049
3050
3051 eval "$ac_cv_use_compat22"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3057 echo "$ac_t""yes" 1>&6
3058 else
3059 echo "$ac_t""no" 1>&6
3060 fi
3061
3062
3063 enablestring=disable
3064 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3065 echo "configure:3066: checking for --${enablestring:-enable}-compat24" >&5
3066 no_cache=0
3067 # Check whether --enable-compat24 or --disable-compat24 was given.
3068 if test "${enable_compat24+set}" = set; then
3069 enableval="$enable_compat24"
3070
3071 if test "$enableval" = yes; then
3072 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3073 else
3074 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3075 fi
3076
3077 else
3078
3079 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3080 if test "x$LINE" != x ; then
3081 eval "DEFAULT_$LINE"
3082 else
3083 no_cache=1
3084 fi
3085
3086 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3087
3088 fi
3089
3090
3091 eval "$ac_cv_use_compat24"
3092 if test "$no_cache" != 1; then
3093 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3094 fi
3095
3096 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3097 echo "$ac_t""yes" 1>&6
3098 else
3099 echo "$ac_t""no" 1>&6
3100 fi
3101
3102
3103 # Check whether --enable-rpath or --disable-rpath was given.
3104 if test "${enable_rpath+set}" = set; then
3105 enableval="$enable_rpath"
3106 wxRPATH_DIR="$enableval"
3107 fi
3108
3109
3110 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3111 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3112 fi
3113
3114
3115
3116
3117 enablestring=
3118 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3119 echo "configure:3120: checking for --${enablestring:-enable}-intl" >&5
3120 no_cache=0
3121 # Check whether --enable-intl or --disable-intl was given.
3122 if test "${enable_intl+set}" = set; then
3123 enableval="$enable_intl"
3124
3125 if test "$enableval" = yes; then
3126 ac_cv_use_intl='wxUSE_INTL=yes'
3127 else
3128 ac_cv_use_intl='wxUSE_INTL=no'
3129 fi
3130
3131 else
3132
3133 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3141
3142 fi
3143
3144
3145 eval "$ac_cv_use_intl"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_INTL" = yes; then
3151 echo "$ac_t""yes" 1>&6
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155
3156
3157 enablestring=
3158 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --${enablestring:-enable}-config" >&5
3160 no_cache=0
3161 # Check whether --enable-config or --disable-config was given.
3162 if test "${enable_config+set}" = set; then
3163 enableval="$enable_config"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_config='wxUSE_CONFIG=yes'
3167 else
3168 ac_cv_use_config='wxUSE_CONFIG=no'
3169 fi
3170
3171 else
3172
3173 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3181
3182 fi
3183
3184
3185 eval "$ac_cv_use_config"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_CONFIG" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197
3198 enablestring=
3199 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3200 echo "configure:3201: checking for --${enablestring:-enable}-protocols" >&5
3201 no_cache=0
3202 # Check whether --enable-protocols or --disable-protocols was given.
3203 if test "${enable_protocols+set}" = set; then
3204 enableval="$enable_protocols"
3205
3206 if test "$enableval" = yes; then
3207 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3208 else
3209 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3210 fi
3211
3212 else
3213
3214 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3215 if test "x$LINE" != x ; then
3216 eval "DEFAULT_$LINE"
3217 else
3218 no_cache=1
3219 fi
3220
3221 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3222
3223 fi
3224
3225
3226 eval "$ac_cv_use_protocols"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_PROTOCOL" = yes; then
3232 echo "$ac_t""yes" 1>&6
3233 else
3234 echo "$ac_t""no" 1>&6
3235 fi
3236
3237
3238 enablestring=
3239 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3240 echo "configure:3241: checking for --${enablestring:-enable}-ftp" >&5
3241 no_cache=0
3242 # Check whether --enable-ftp or --disable-ftp was given.
3243 if test "${enable_ftp+set}" = set; then
3244 enableval="$enable_ftp"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3248 else
3249 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3250 fi
3251
3252 else
3253
3254 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3262
3263 fi
3264
3265
3266 eval "$ac_cv_use_ftp"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
3278 enablestring=
3279 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3280 echo "configure:3281: checking for --${enablestring:-enable}-http" >&5
3281 no_cache=0
3282 # Check whether --enable-http or --disable-http was given.
3283 if test "${enable_http+set}" = set; then
3284 enableval="$enable_http"
3285
3286 if test "$enableval" = yes; then
3287 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3288 else
3289 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3290 fi
3291
3292 else
3293
3294 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3302
3303 fi
3304
3305
3306 eval "$ac_cv_use_http"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3312 echo "$ac_t""yes" 1>&6
3313 else
3314 echo "$ac_t""no" 1>&6
3315 fi
3316
3317
3318 enablestring=
3319 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3320 echo "configure:3321: checking for --${enablestring:-enable}-fileproto" >&5
3321 no_cache=0
3322 # Check whether --enable-fileproto or --disable-fileproto was given.
3323 if test "${enable_fileproto+set}" = set; then
3324 enableval="$enable_fileproto"
3325
3326 if test "$enableval" = yes; then
3327 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3328 else
3329 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3330 fi
3331
3332 else
3333
3334 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3335 if test "x$LINE" != x ; then
3336 eval "DEFAULT_$LINE"
3337 else
3338 no_cache=1
3339 fi
3340
3341 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3342
3343 fi
3344
3345
3346 eval "$ac_cv_use_fileproto"
3347 if test "$no_cache" != 1; then
3348 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3349 fi
3350
3351 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3352 echo "$ac_t""yes" 1>&6
3353 else
3354 echo "$ac_t""no" 1>&6
3355 fi
3356
3357
3358 enablestring=
3359 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3360 echo "configure:3361: checking for --${enablestring:-enable}-sockets" >&5
3361 no_cache=0
3362 # Check whether --enable-sockets or --disable-sockets was given.
3363 if test "${enable_sockets+set}" = set; then
3364 enableval="$enable_sockets"
3365
3366 if test "$enableval" = yes; then
3367 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3368 else
3369 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3370 fi
3371
3372 else
3373
3374 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3382
3383 fi
3384
3385
3386 eval "$ac_cv_use_sockets"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_SOCKETS" = yes; then
3392 echo "$ac_t""yes" 1>&6
3393 else
3394 echo "$ac_t""no" 1>&6
3395 fi
3396
3397
3398 enablestring=
3399 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3400 echo "configure:3401: checking for --${enablestring:-enable}-ole" >&5
3401 no_cache=0
3402 # Check whether --enable-ole or --disable-ole was given.
3403 if test "${enable_ole+set}" = set; then
3404 enableval="$enable_ole"
3405
3406 if test "$enableval" = yes; then
3407 ac_cv_use_ole='wxUSE_OLE=yes'
3408 else
3409 ac_cv_use_ole='wxUSE_OLE=no'
3410 fi
3411
3412 else
3413
3414 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3415 if test "x$LINE" != x ; then
3416 eval "DEFAULT_$LINE"
3417 else
3418 no_cache=1
3419 fi
3420
3421 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3422
3423 fi
3424
3425
3426 eval "$ac_cv_use_ole"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_OLE" = yes; then
3432 echo "$ac_t""yes" 1>&6
3433 else
3434 echo "$ac_t""no" 1>&6
3435 fi
3436
3437
3438 enablestring=
3439 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3440 echo "configure:3441: checking for --${enablestring:-enable}-dataobj" >&5
3441 no_cache=0
3442 # Check whether --enable-dataobj or --disable-dataobj was given.
3443 if test "${enable_dataobj+set}" = set; then
3444 enableval="$enable_dataobj"
3445
3446 if test "$enableval" = yes; then
3447 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3448 else
3449 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3450 fi
3451
3452 else
3453
3454 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3462
3463 fi
3464
3465
3466 eval "$ac_cv_use_dataobj"
3467 if test "$no_cache" != 1; then
3468 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3469 fi
3470
3471 if test "$wxUSE_DATAOBJ" = yes; then
3472 echo "$ac_t""yes" 1>&6
3473 else
3474 echo "$ac_t""no" 1>&6
3475 fi
3476
3477
3478
3479 enablestring=
3480 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3481 echo "configure:3482: checking for --${enablestring:-enable}-ipc" >&5
3482 no_cache=0
3483 # Check whether --enable-ipc or --disable-ipc was given.
3484 if test "${enable_ipc+set}" = set; then
3485 enableval="$enable_ipc"
3486
3487 if test "$enableval" = yes; then
3488 ac_cv_use_ipc='wxUSE_IPC=yes'
3489 else
3490 ac_cv_use_ipc='wxUSE_IPC=no'
3491 fi
3492
3493 else
3494
3495 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3496 if test "x$LINE" != x ; then
3497 eval "DEFAULT_$LINE"
3498 else
3499 no_cache=1
3500 fi
3501
3502 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3503
3504 fi
3505
3506
3507 eval "$ac_cv_use_ipc"
3508 if test "$no_cache" != 1; then
3509 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3510 fi
3511
3512 if test "$wxUSE_IPC" = yes; then
3513 echo "$ac_t""yes" 1>&6
3514 else
3515 echo "$ac_t""no" 1>&6
3516 fi
3517
3518
3519
3520 enablestring=
3521 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3522 echo "configure:3523: checking for --${enablestring:-enable}-cmdline" >&5
3523 no_cache=0
3524 # Check whether --enable-cmdline or --disable-cmdline was given.
3525 if test "${enable_cmdline+set}" = set; then
3526 enableval="$enable_cmdline"
3527
3528 if test "$enableval" = yes; then
3529 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3530 else
3531 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3532 fi
3533
3534 else
3535
3536 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3537 if test "x$LINE" != x ; then
3538 eval "DEFAULT_$LINE"
3539 else
3540 no_cache=1
3541 fi
3542
3543 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3544
3545 fi
3546
3547
3548 eval "$ac_cv_use_cmdline"
3549 if test "$no_cache" != 1; then
3550 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3551 fi
3552
3553 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3554 echo "$ac_t""yes" 1>&6
3555 else
3556 echo "$ac_t""no" 1>&6
3557 fi
3558
3559
3560 enablestring=
3561 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3562 echo "configure:3563: checking for --${enablestring:-enable}-datetime" >&5
3563 no_cache=0
3564 # Check whether --enable-datetime or --disable-datetime was given.
3565 if test "${enable_datetime+set}" = set; then
3566 enableval="$enable_datetime"
3567
3568 if test "$enableval" = yes; then
3569 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3570 else
3571 ac_cv_use_datetime='wxUSE_DATETIME=no'
3572 fi
3573
3574 else
3575
3576 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
3583 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3584
3585 fi
3586
3587
3588 eval "$ac_cv_use_datetime"
3589 if test "$no_cache" != 1; then
3590 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3591 fi
3592
3593 if test "$wxUSE_DATETIME" = yes; then
3594 echo "$ac_t""yes" 1>&6
3595 else
3596 echo "$ac_t""no" 1>&6
3597 fi
3598
3599
3600 enablestring=
3601 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3602 echo "configure:3603: checking for --${enablestring:-enable}-stopwatch" >&5
3603 no_cache=0
3604 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3605 if test "${enable_stopwatch+set}" = set; then
3606 enableval="$enable_stopwatch"
3607
3608 if test "$enableval" = yes; then
3609 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3610 else
3611 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3612 fi
3613
3614 else
3615
3616 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3624
3625 fi
3626
3627
3628 eval "$ac_cv_use_stopwatch"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_STOPWATCH" = yes; then
3634 echo "$ac_t""yes" 1>&6
3635 else
3636 echo "$ac_t""no" 1>&6
3637 fi
3638
3639
3640 enablestring=
3641 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3642 echo "configure:3643: checking for --${enablestring:-enable}-dialupman" >&5
3643 no_cache=0
3644 # Check whether --enable-dialupman or --disable-dialupman was given.
3645 if test "${enable_dialupman+set}" = set; then
3646 enableval="$enable_dialupman"
3647
3648 if test "$enableval" = yes; then
3649 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3650 else
3651 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3652 fi
3653
3654 else
3655
3656 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
3663 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3664
3665 fi
3666
3667
3668 eval "$ac_cv_use_dialupman"
3669 if test "$no_cache" != 1; then
3670 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3671 fi
3672
3673 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3674 echo "$ac_t""yes" 1>&6
3675 else
3676 echo "$ac_t""no" 1>&6
3677 fi
3678
3679
3680 enablestring=
3681 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3682 echo "configure:3683: checking for --${enablestring:-enable}-apple_ieee" >&5
3683 no_cache=0
3684 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3685 if test "${enable_apple_ieee+set}" = set; then
3686 enableval="$enable_apple_ieee"
3687
3688 if test "$enableval" = yes; then
3689 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3690 else
3691 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3692 fi
3693
3694 else
3695
3696 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3704
3705 fi
3706
3707
3708 eval "$ac_cv_use_apple_ieee"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$wxUSE_APPLE_IEEE" = yes; then
3714 echo "$ac_t""yes" 1>&6
3715 else
3716 echo "$ac_t""no" 1>&6
3717 fi
3718
3719
3720 enablestring=
3721 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3722 echo "configure:3723: checking for --${enablestring:-enable}-timer" >&5
3723 no_cache=0
3724 # Check whether --enable-timer or --disable-timer was given.
3725 if test "${enable_timer+set}" = set; then
3726 enableval="$enable_timer"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_timer='wxUSE_TIMER=yes'
3730 else
3731 ac_cv_use_timer='wxUSE_TIMER=no'
3732 fi
3733
3734 else
3735
3736 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3744
3745 fi
3746
3747
3748 eval "$ac_cv_use_timer"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_TIMER" = yes; then
3754 echo "$ac_t""yes" 1>&6
3755 else
3756 echo "$ac_t""no" 1>&6
3757 fi
3758
3759
3760 enablestring=
3761 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3762 echo "configure:3763: checking for --${enablestring:-enable}-wave" >&5
3763 no_cache=0
3764 # Check whether --enable-wave or --disable-wave was given.
3765 if test "${enable_wave+set}" = set; then
3766 enableval="$enable_wave"
3767
3768 if test "$enableval" = yes; then
3769 ac_cv_use_wave='wxUSE_WAVE=yes'
3770 else
3771 ac_cv_use_wave='wxUSE_WAVE=no'
3772 fi
3773
3774 else
3775
3776 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3784
3785 fi
3786
3787
3788 eval "$ac_cv_use_wave"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_WAVE" = yes; then
3794 echo "$ac_t""yes" 1>&6
3795 else
3796 echo "$ac_t""no" 1>&6
3797 fi
3798
3799
3800 enablestring=
3801 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3802 echo "configure:3803: checking for --${enablestring:-enable}-fraction" >&5
3803 no_cache=0
3804 # Check whether --enable-fraction or --disable-fraction was given.
3805 if test "${enable_fraction+set}" = set; then
3806 enableval="$enable_fraction"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3810 else
3811 ac_cv_use_fraction='wxUSE_FRACTION=no'
3812 fi
3813
3814 else
3815
3816 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3824
3825 fi
3826
3827
3828 eval "$ac_cv_use_fraction"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_FRACTION" = yes; then
3834 echo "$ac_t""yes" 1>&6
3835 else
3836 echo "$ac_t""no" 1>&6
3837 fi
3838
3839
3840 enablestring=
3841 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3842 echo "configure:3843: checking for --${enablestring:-enable}-dynlib" >&5
3843 no_cache=0
3844 # Check whether --enable-dynlib or --disable-dynlib was given.
3845 if test "${enable_dynlib+set}" = set; then
3846 enableval="$enable_dynlib"
3847
3848 if test "$enableval" = yes; then
3849 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3850 else
3851 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3852 fi
3853
3854 else
3855
3856 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3857 if test "x$LINE" != x ; then
3858 eval "DEFAULT_$LINE"
3859 else
3860 no_cache=1
3861 fi
3862
3863 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3864
3865 fi
3866
3867
3868 eval "$ac_cv_use_dynlib"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3874 echo "$ac_t""yes" 1>&6
3875 else
3876 echo "$ac_t""no" 1>&6
3877 fi
3878
3879
3880 enablestring=
3881 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3882 echo "configure:3883: checking for --${enablestring:-enable}-dynamicloader" >&5
3883 no_cache=0
3884 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3885 if test "${enable_dynamicloader+set}" = set; then
3886 enableval="$enable_dynamicloader"
3887
3888 if test "$enableval" = yes; then
3889 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3890 else
3891 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3892 fi
3893
3894 else
3895
3896 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3897 if test "x$LINE" != x ; then
3898 eval "DEFAULT_$LINE"
3899 else
3900 no_cache=1
3901 fi
3902
3903 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3904
3905 fi
3906
3907
3908 eval "$ac_cv_use_dynamicloader"
3909 if test "$no_cache" != 1; then
3910 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3911 fi
3912
3913 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3914 echo "$ac_t""yes" 1>&6
3915 else
3916 echo "$ac_t""no" 1>&6
3917 fi
3918
3919
3920 enablestring=
3921 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3922 echo "configure:3923: checking for --${enablestring:-enable}-longlong" >&5
3923 no_cache=0
3924 # Check whether --enable-longlong or --disable-longlong was given.
3925 if test "${enable_longlong+set}" = set; then
3926 enableval="$enable_longlong"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3930 else
3931 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3932 fi
3933
3934 else
3935
3936 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3944
3945 fi
3946
3947
3948 eval "$ac_cv_use_longlong"
3949 if test "$no_cache" != 1; then
3950 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3951 fi
3952
3953 if test "$wxUSE_LONGLONG" = yes; then
3954 echo "$ac_t""yes" 1>&6
3955 else
3956 echo "$ac_t""no" 1>&6
3957 fi
3958
3959
3960 enablestring=
3961 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3962 echo "configure:3963: checking for --${enablestring:-enable}-geometry" >&5
3963 no_cache=0
3964 # Check whether --enable-geometry or --disable-geometry was given.
3965 if test "${enable_geometry+set}" = set; then
3966 enableval="$enable_geometry"
3967
3968 if test "$enableval" = yes; then
3969 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3970 else
3971 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3972 fi
3973
3974 else
3975
3976 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3977 if test "x$LINE" != x ; then
3978 eval "DEFAULT_$LINE"
3979 else
3980 no_cache=1
3981 fi
3982
3983 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3984
3985 fi
3986
3987
3988 eval "$ac_cv_use_geometry"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_GEOMETRY" = yes; then
3994 echo "$ac_t""yes" 1>&6
3995 else
3996 echo "$ac_t""no" 1>&6
3997 fi
3998
3999
4000 enablestring=
4001 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4002 echo "configure:4003: checking for --${enablestring:-enable}-log" >&5
4003 no_cache=0
4004 # Check whether --enable-log or --disable-log was given.
4005 if test "${enable_log+set}" = set; then
4006 enableval="$enable_log"
4007
4008 if test "$enableval" = yes; then
4009 ac_cv_use_log='wxUSE_LOG=yes'
4010 else
4011 ac_cv_use_log='wxUSE_LOG=no'
4012 fi
4013
4014 else
4015
4016 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4017 if test "x$LINE" != x ; then
4018 eval "DEFAULT_$LINE"
4019 else
4020 no_cache=1
4021 fi
4022
4023 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4024
4025 fi
4026
4027
4028 eval "$ac_cv_use_log"
4029 if test "$no_cache" != 1; then
4030 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4031 fi
4032
4033 if test "$wxUSE_LOG" = yes; then
4034 echo "$ac_t""yes" 1>&6
4035 else
4036 echo "$ac_t""no" 1>&6
4037 fi
4038
4039
4040 enablestring=
4041 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4042 echo "configure:4043: checking for --${enablestring:-enable}-streams" >&5
4043 no_cache=0
4044 # Check whether --enable-streams or --disable-streams was given.
4045 if test "${enable_streams+set}" = set; then
4046 enableval="$enable_streams"
4047
4048 if test "$enableval" = yes; then
4049 ac_cv_use_streams='wxUSE_STREAMS=yes'
4050 else
4051 ac_cv_use_streams='wxUSE_STREAMS=no'
4052 fi
4053
4054 else
4055
4056 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4064
4065 fi
4066
4067
4068 eval "$ac_cv_use_streams"
4069 if test "$no_cache" != 1; then
4070 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4071 fi
4072
4073 if test "$wxUSE_STREAMS" = yes; then
4074 echo "$ac_t""yes" 1>&6
4075 else
4076 echo "$ac_t""no" 1>&6
4077 fi
4078
4079
4080 enablestring=
4081 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4082 echo "configure:4083: checking for --${enablestring:-enable}-file" >&5
4083 no_cache=0
4084 # Check whether --enable-file or --disable-file was given.
4085 if test "${enable_file+set}" = set; then
4086 enableval="$enable_file"
4087
4088 if test "$enableval" = yes; then
4089 ac_cv_use_file='wxUSE_FILE=yes'
4090 else
4091 ac_cv_use_file='wxUSE_FILE=no'
4092 fi
4093
4094 else
4095
4096 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4097 if test "x$LINE" != x ; then
4098 eval "DEFAULT_$LINE"
4099 else
4100 no_cache=1
4101 fi
4102
4103 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4104
4105 fi
4106
4107
4108 eval "$ac_cv_use_file"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_FILE" = yes; then
4114 echo "$ac_t""yes" 1>&6
4115 else
4116 echo "$ac_t""no" 1>&6
4117 fi
4118
4119
4120 enablestring=
4121 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4122 echo "configure:4123: checking for --${enablestring:-enable}-ffile" >&5
4123 no_cache=0
4124 # Check whether --enable-ffile or --disable-ffile was given.
4125 if test "${enable_ffile+set}" = set; then
4126 enableval="$enable_ffile"
4127
4128 if test "$enableval" = yes; then
4129 ac_cv_use_ffile='wxUSE_FFILE=yes'
4130 else
4131 ac_cv_use_ffile='wxUSE_FFILE=no'
4132 fi
4133
4134 else
4135
4136 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
4143 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4144
4145 fi
4146
4147
4148 eval "$ac_cv_use_ffile"
4149 if test "$no_cache" != 1; then
4150 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4151 fi
4152
4153 if test "$wxUSE_FFILE" = yes; then
4154 echo "$ac_t""yes" 1>&6
4155 else
4156 echo "$ac_t""no" 1>&6
4157 fi
4158
4159
4160 enablestring=
4161 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4162 echo "configure:4163: checking for --${enablestring:-enable}-textbuf" >&5
4163 no_cache=0
4164 # Check whether --enable-textbuf or --disable-textbuf was given.
4165 if test "${enable_textbuf+set}" = set; then
4166 enableval="$enable_textbuf"
4167
4168 if test "$enableval" = yes; then
4169 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4170 else
4171 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4172 fi
4173
4174 else
4175
4176 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4177 if test "x$LINE" != x ; then
4178 eval "DEFAULT_$LINE"
4179 else
4180 no_cache=1
4181 fi
4182
4183 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4184
4185 fi
4186
4187
4188 eval "$ac_cv_use_textbuf"
4189 if test "$no_cache" != 1; then
4190 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4191 fi
4192
4193 if test "$wxUSE_TEXTBUFFER" = yes; then
4194 echo "$ac_t""yes" 1>&6
4195 else
4196 echo "$ac_t""no" 1>&6
4197 fi
4198
4199
4200 enablestring=
4201 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4202 echo "configure:4203: checking for --${enablestring:-enable}-textfile" >&5
4203 no_cache=0
4204 # Check whether --enable-textfile or --disable-textfile was given.
4205 if test "${enable_textfile+set}" = set; then
4206 enableval="$enable_textfile"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4210 else
4211 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4212 fi
4213
4214 else
4215
4216 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4224
4225 fi
4226
4227
4228 eval "$ac_cv_use_textfile"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_TEXTFILE" = yes; then
4234 echo "$ac_t""yes" 1>&6
4235 else
4236 echo "$ac_t""no" 1>&6
4237 fi
4238
4239
4240 enablestring=
4241 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4242 echo "configure:4243: checking for --${enablestring:-enable}-fontmap" >&5
4243 no_cache=0
4244 # Check whether --enable-fontmap or --disable-fontmap was given.
4245 if test "${enable_fontmap+set}" = set; then
4246 enableval="$enable_fontmap"
4247
4248 if test "$enableval" = yes; then
4249 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4250 else
4251 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4252 fi
4253
4254 else
4255
4256 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
4263 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4264
4265 fi
4266
4267
4268 eval "$ac_cv_use_fontmap"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_FONTMAP" = yes; then
4274 echo "$ac_t""yes" 1>&6
4275 else
4276 echo "$ac_t""no" 1>&6
4277 fi
4278
4279
4280 enablestring=
4281 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4282 echo "configure:4283: checking for --${enablestring:-enable}-unicode" >&5
4283 no_cache=0
4284 # Check whether --enable-unicode or --disable-unicode was given.
4285 if test "${enable_unicode+set}" = set; then
4286 enableval="$enable_unicode"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4290 else
4291 ac_cv_use_unicode='wxUSE_UNICODE=no'
4292 fi
4293
4294 else
4295
4296 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4304
4305 fi
4306
4307
4308 eval "$ac_cv_use_unicode"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_UNICODE" = yes; then
4314 echo "$ac_t""yes" 1>&6
4315 else
4316 echo "$ac_t""no" 1>&6
4317 fi
4318
4319
4320 enablestring=
4321 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4322 echo "configure:4323: checking for --${enablestring:-enable}-mslu" >&5
4323 no_cache=0
4324 # Check whether --enable-mslu or --disable-mslu was given.
4325 if test "${enable_mslu+set}" = set; then
4326 enableval="$enable_mslu"
4327
4328 if test "$enableval" = yes; then
4329 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4330 else
4331 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4332 fi
4333
4334 else
4335
4336 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4337 if test "x$LINE" != x ; then
4338 eval "DEFAULT_$LINE"
4339 else
4340 no_cache=1
4341 fi
4342
4343 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4344
4345 fi
4346
4347
4348 eval "$ac_cv_use_mslu"
4349 if test "$no_cache" != 1; then
4350 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4351 fi
4352
4353 if test "$wxUSE_UNICODE_MSLU" = yes; then
4354 echo "$ac_t""yes" 1>&6
4355 else
4356 echo "$ac_t""no" 1>&6
4357 fi
4358
4359
4360 enablestring=
4361 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4362 echo "configure:4363: checking for --${enablestring:-enable}-wxprintfv" >&5
4363 no_cache=0
4364 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4365 if test "${enable_wxprintfv+set}" = set; then
4366 enableval="$enable_wxprintfv"
4367
4368 if test "$enableval" = yes; then
4369 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4370 else
4371 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4372 fi
4373
4374 else
4375
4376 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4384
4385 fi
4386
4387
4388 eval "$ac_cv_use_wxprintfv"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4394 echo "$ac_t""yes" 1>&6
4395 else
4396 echo "$ac_t""no" 1>&6
4397 fi
4398
4399
4400 enablestring=
4401 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4402 echo "configure:4403: checking for --${enablestring:-enable}-std_iostreams" >&5
4403 no_cache=0
4404 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4405 if test "${enable_std_iostreams+set}" = set; then
4406 enableval="$enable_std_iostreams"
4407
4408 if test "$enableval" = yes; then
4409 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4410 else
4411 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4412 fi
4413
4414 else
4415
4416 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4417 if test "x$LINE" != x ; then
4418 eval "DEFAULT_$LINE"
4419 else
4420 no_cache=1
4421 fi
4422
4423 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4424
4425 fi
4426
4427
4428 eval "$ac_cv_use_std_iostreams"
4429 if test "$no_cache" != 1; then
4430 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4431 fi
4432
4433 if test "$wxUSE_STD_IOSTREAM" = yes; then
4434 echo "$ac_t""yes" 1>&6
4435 else
4436 echo "$ac_t""no" 1>&6
4437 fi
4438
4439
4440 enablestring=
4441 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4442 echo "configure:4443: checking for --${enablestring:-enable}-filesystem" >&5
4443 no_cache=0
4444 # Check whether --enable-filesystem or --disable-filesystem was given.
4445 if test "${enable_filesystem+set}" = set; then
4446 enableval="$enable_filesystem"
4447
4448 if test "$enableval" = yes; then
4449 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4450 else
4451 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4452 fi
4453
4454 else
4455
4456 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4457 if test "x$LINE" != x ; then
4458 eval "DEFAULT_$LINE"
4459 else
4460 no_cache=1
4461 fi
4462
4463 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4464
4465 fi
4466
4467
4468 eval "$ac_cv_use_filesystem"
4469 if test "$no_cache" != 1; then
4470 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4471 fi
4472
4473 if test "$wxUSE_FILESYSTEM" = yes; then
4474 echo "$ac_t""yes" 1>&6
4475 else
4476 echo "$ac_t""no" 1>&6
4477 fi
4478
4479
4480 enablestring=
4481 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4482 echo "configure:4483: checking for --${enablestring:-enable}-fs_inet" >&5
4483 no_cache=0
4484 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4485 if test "${enable_fs_inet+set}" = set; then
4486 enableval="$enable_fs_inet"
4487
4488 if test "$enableval" = yes; then
4489 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4490 else
4491 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4492 fi
4493
4494 else
4495
4496 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4497 if test "x$LINE" != x ; then
4498 eval "DEFAULT_$LINE"
4499 else
4500 no_cache=1
4501 fi
4502
4503 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4504
4505 fi
4506
4507
4508 eval "$ac_cv_use_fs_inet"
4509 if test "$no_cache" != 1; then
4510 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4511 fi
4512
4513 if test "$wxUSE_FS_INET" = yes; then
4514 echo "$ac_t""yes" 1>&6
4515 else
4516 echo "$ac_t""no" 1>&6
4517 fi
4518
4519
4520 enablestring=
4521 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4522 echo "configure:4523: checking for --${enablestring:-enable}-fs_zip" >&5
4523 no_cache=0
4524 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4525 if test "${enable_fs_zip+set}" = set; then
4526 enableval="$enable_fs_zip"
4527
4528 if test "$enableval" = yes; then
4529 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4530 else
4531 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4532 fi
4533
4534 else
4535
4536 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4537 if test "x$LINE" != x ; then
4538 eval "DEFAULT_$LINE"
4539 else
4540 no_cache=1
4541 fi
4542
4543 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4544
4545 fi
4546
4547
4548 eval "$ac_cv_use_fs_zip"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_FS_ZIP" = yes; then
4554 echo "$ac_t""yes" 1>&6
4555 else
4556 echo "$ac_t""no" 1>&6
4557 fi
4558
4559
4560 enablestring=
4561 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4562 echo "configure:4563: checking for --${enablestring:-enable}-zipstream" >&5
4563 no_cache=0
4564 # Check whether --enable-zipstream or --disable-zipstream was given.
4565 if test "${enable_zipstream+set}" = set; then
4566 enableval="$enable_zipstream"
4567
4568 if test "$enableval" = yes; then
4569 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4570 else
4571 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4572 fi
4573
4574 else
4575
4576 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4577 if test "x$LINE" != x ; then
4578 eval "DEFAULT_$LINE"
4579 else
4580 no_cache=1
4581 fi
4582
4583 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4584
4585 fi
4586
4587
4588 eval "$ac_cv_use_zipstream"
4589 if test "$no_cache" != 1; then
4590 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4591 fi
4592
4593 if test "$wxUSE_ZIPSTREAM" = yes; then
4594 echo "$ac_t""yes" 1>&6
4595 else
4596 echo "$ac_t""no" 1>&6
4597 fi
4598
4599
4600
4601 enablestring=
4602 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4603 echo "configure:4604: checking for --${enablestring:-enable}-catch_segvs" >&5
4604 no_cache=0
4605 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4606 if test "${enable_catch_segvs+set}" = set; then
4607 enableval="$enable_catch_segvs"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4611 else
4612 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4613 fi
4614
4615 else
4616
4617 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4625
4626 fi
4627
4628
4629 eval "$ac_cv_use_catch_segvs"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4635 echo "$ac_t""yes" 1>&6
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641 enablestring=
4642 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4643 echo "configure:4644: checking for --${enablestring:-enable}-snglinst" >&5
4644 no_cache=0
4645 # Check whether --enable-snglinst or --disable-snglinst was given.
4646 if test "${enable_snglinst+set}" = set; then
4647 enableval="$enable_snglinst"
4648
4649 if test "$enableval" = yes; then
4650 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4651 else
4652 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4653 fi
4654
4655 else
4656
4657 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4658 if test "x$LINE" != x ; then
4659 eval "DEFAULT_$LINE"
4660 else
4661 no_cache=1
4662 fi
4663
4664 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4665
4666 fi
4667
4668
4669 eval "$ac_cv_use_snglinst"
4670 if test "$no_cache" != 1; then
4671 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4672 fi
4673
4674 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4675 echo "$ac_t""yes" 1>&6
4676 else
4677 echo "$ac_t""no" 1>&6
4678 fi
4679
4680
4681
4682 enablestring=
4683 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4684 echo "configure:4685: checking for --${enablestring:-enable}-mimetype" >&5
4685 no_cache=0
4686 # Check whether --enable-mimetype or --disable-mimetype was given.
4687 if test "${enable_mimetype+set}" = set; then
4688 enableval="$enable_mimetype"
4689
4690 if test "$enableval" = yes; then
4691 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4692 else
4693 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4694 fi
4695
4696 else
4697
4698 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4699 if test "x$LINE" != x ; then
4700 eval "DEFAULT_$LINE"
4701 else
4702 no_cache=1
4703 fi
4704
4705 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4706
4707 fi
4708
4709
4710 eval "$ac_cv_use_mimetype"
4711 if test "$no_cache" != 1; then
4712 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4713 fi
4714
4715 if test "$wxUSE_MIMETYPE" = yes; then
4716 echo "$ac_t""yes" 1>&6
4717 else
4718 echo "$ac_t""no" 1>&6
4719 fi
4720
4721
4722 enablestring=
4723 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4724 echo "configure:4725: checking for --${enablestring:-enable}-system_options" >&5
4725 no_cache=0
4726 # Check whether --enable-system_options or --disable-system_options was given.
4727 if test "${enable_system_options+set}" = set; then
4728 enableval="$enable_system_options"
4729
4730 if test "$enableval" = yes; then
4731 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4732 else
4733 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4734 fi
4735
4736 else
4737
4738 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4746
4747 fi
4748
4749
4750 eval "$ac_cv_use_system_options"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4756 echo "$ac_t""yes" 1>&6
4757 else
4758 echo "$ac_t""no" 1>&6
4759 fi
4760
4761
4762
4763 enablestring=
4764 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4765 echo "configure:4766: checking for --${enablestring:-enable}-url" >&5
4766 no_cache=0
4767 # Check whether --enable-url or --disable-url was given.
4768 if test "${enable_url+set}" = set; then
4769 enableval="$enable_url"
4770
4771 if test "$enableval" = yes; then
4772 ac_cv_use_url='wxUSE_URL=yes'
4773 else
4774 ac_cv_use_url='wxUSE_URL=no'
4775 fi
4776
4777 else
4778
4779 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
4786 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4787
4788 fi
4789
4790
4791 eval "$ac_cv_use_url"
4792 if test "$no_cache" != 1; then
4793 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4794 fi
4795
4796 if test "$wxUSE_URL" = yes; then
4797 echo "$ac_t""yes" 1>&6
4798 else
4799 echo "$ac_t""no" 1>&6
4800 fi
4801
4802
4803 enablestring=
4804 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4805 echo "configure:4806: checking for --${enablestring:-enable}-protocol" >&5
4806 no_cache=0
4807 # Check whether --enable-protocol or --disable-protocol was given.
4808 if test "${enable_protocol+set}" = set; then
4809 enableval="$enable_protocol"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4813 else
4814 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4815 fi
4816
4817 else
4818
4819 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4827
4828 fi
4829
4830
4831 eval "$ac_cv_use_protocol"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_PROTOCOL" = yes; then
4837 echo "$ac_t""yes" 1>&6
4838 else
4839 echo "$ac_t""no" 1>&6
4840 fi
4841
4842
4843 enablestring=
4844 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4845 echo "configure:4846: checking for --${enablestring:-enable}-protocol_http" >&5
4846 no_cache=0
4847 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4848 if test "${enable_protocol_http+set}" = set; then
4849 enableval="$enable_protocol_http"
4850
4851 if test "$enableval" = yes; then
4852 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4853 else
4854 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4855 fi
4856
4857 else
4858
4859 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4867
4868 fi
4869
4870
4871 eval "$ac_cv_use_protocol_http"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4877 echo "$ac_t""yes" 1>&6
4878 else
4879 echo "$ac_t""no" 1>&6
4880 fi
4881
4882
4883 enablestring=
4884 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4885 echo "configure:4886: checking for --${enablestring:-enable}-protocol_ftp" >&5
4886 no_cache=0
4887 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4888 if test "${enable_protocol_ftp+set}" = set; then
4889 enableval="$enable_protocol_ftp"
4890
4891 if test "$enableval" = yes; then
4892 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4893 else
4894 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4895 fi
4896
4897 else
4898
4899 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
4906 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4907
4908 fi
4909
4910
4911 eval "$ac_cv_use_protocol_ftp"
4912 if test "$no_cache" != 1; then
4913 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4914 fi
4915
4916 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4917 echo "$ac_t""yes" 1>&6
4918 else
4919 echo "$ac_t""no" 1>&6
4920 fi
4921
4922
4923 enablestring=
4924 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4925 echo "configure:4926: checking for --${enablestring:-enable}-protocol_file" >&5
4926 no_cache=0
4927 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4928 if test "${enable_protocol_file+set}" = set; then
4929 enableval="$enable_protocol_file"
4930
4931 if test "$enableval" = yes; then
4932 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4933 else
4934 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4935 fi
4936
4937 else
4938
4939 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4947
4948 fi
4949
4950
4951 eval "$ac_cv_use_protocol_file"
4952 if test "$no_cache" != 1; then
4953 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4954 fi
4955
4956 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4957 echo "$ac_t""yes" 1>&6
4958 else
4959 echo "$ac_t""no" 1>&6
4960 fi
4961
4962
4963
4964
4965
4966 enablestring=
4967 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4968 echo "configure:4969: checking for --${enablestring:-enable}-threads" >&5
4969 no_cache=0
4970 # Check whether --enable-threads or --disable-threads was given.
4971 if test "${enable_threads+set}" = set; then
4972 enableval="$enable_threads"
4973
4974 if test "$enableval" = yes; then
4975 ac_cv_use_threads='wxUSE_THREADS=yes'
4976 else
4977 ac_cv_use_threads='wxUSE_THREADS=no'
4978 fi
4979
4980 else
4981
4982 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4983 if test "x$LINE" != x ; then
4984 eval "DEFAULT_$LINE"
4985 else
4986 no_cache=1
4987 fi
4988
4989 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4990
4991 fi
4992
4993
4994 eval "$ac_cv_use_threads"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_THREADS" = yes; then
5000 echo "$ac_t""yes" 1>&6
5001 else
5002 echo "$ac_t""no" 1>&6
5003 fi
5004
5005
5006 if test "$wxUSE_GUI" = "yes"; then
5007
5008
5009
5010 enablestring=
5011 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5012 echo "configure:5013: checking for --${enablestring:-enable}-docview" >&5
5013 no_cache=0
5014 # Check whether --enable-docview or --disable-docview was given.
5015 if test "${enable_docview+set}" = set; then
5016 enableval="$enable_docview"
5017
5018 if test "$enableval" = yes; then
5019 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5020 else
5021 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5022 fi
5023
5024 else
5025
5026 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5027 if test "x$LINE" != x ; then
5028 eval "DEFAULT_$LINE"
5029 else
5030 no_cache=1
5031 fi
5032
5033 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5034
5035 fi
5036
5037
5038 eval "$ac_cv_use_docview"
5039 if test "$no_cache" != 1; then
5040 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5041 fi
5042
5043 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5044 echo "$ac_t""yes" 1>&6
5045 else
5046 echo "$ac_t""no" 1>&6
5047 fi
5048
5049
5050 enablestring=
5051 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5052 echo "configure:5053: checking for --${enablestring:-enable}-help" >&5
5053 no_cache=0
5054 # Check whether --enable-help or --disable-help was given.
5055 if test "${enable_help+set}" = set; then
5056 enableval="$enable_help"
5057
5058 if test "$enableval" = yes; then
5059 ac_cv_use_help='wxUSE_HELP=yes'
5060 else
5061 ac_cv_use_help='wxUSE_HELP=no'
5062 fi
5063
5064 else
5065
5066 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5074
5075 fi
5076
5077
5078 eval "$ac_cv_use_help"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_HELP" = yes; then
5084 echo "$ac_t""yes" 1>&6
5085 else
5086 echo "$ac_t""no" 1>&6
5087 fi
5088
5089
5090 enablestring=
5091 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5092 echo "configure:5093: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5093 no_cache=0
5094 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5095 if test "${enable_mshtmlhelp+set}" = set; then
5096 enableval="$enable_mshtmlhelp"
5097
5098 if test "$enableval" = yes; then
5099 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5100 else
5101 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5102 fi
5103
5104 else
5105
5106 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5107 if test "x$LINE" != x ; then
5108 eval "DEFAULT_$LINE"
5109 else
5110 no_cache=1
5111 fi
5112
5113 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5114
5115 fi
5116
5117
5118 eval "$ac_cv_use_mshtmlhelp"
5119 if test "$no_cache" != 1; then
5120 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5121 fi
5122
5123 if test "$wxUSE_MS_HTML_HELP" = yes; then
5124 echo "$ac_t""yes" 1>&6
5125 else
5126 echo "$ac_t""no" 1>&6
5127 fi
5128
5129
5130 enablestring=
5131 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5132 echo "configure:5133: checking for --${enablestring:-enable}-html" >&5
5133 no_cache=0
5134 # Check whether --enable-html or --disable-html was given.
5135 if test "${enable_html+set}" = set; then
5136 enableval="$enable_html"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_html='wxUSE_HTML=yes'
5140 else
5141 ac_cv_use_html='wxUSE_HTML=no'
5142 fi
5143
5144 else
5145
5146 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5154
5155 fi
5156
5157
5158 eval "$ac_cv_use_html"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_HTML" = yes; then
5164 echo "$ac_t""yes" 1>&6
5165 else
5166 echo "$ac_t""no" 1>&6
5167 fi
5168
5169
5170 enablestring=
5171 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5172 echo "configure:5173: checking for --${enablestring:-enable}-htmlhelp" >&5
5173 no_cache=0
5174 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5175 if test "${enable_htmlhelp+set}" = set; then
5176 enableval="$enable_htmlhelp"
5177
5178 if test "$enableval" = yes; then
5179 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5180 else
5181 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5182 fi
5183
5184 else
5185
5186 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5194
5195 fi
5196
5197
5198 eval "$ac_cv_use_htmlhelp"
5199 if test "$no_cache" != 1; then
5200 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5201 fi
5202
5203 if test "$wxUSE_WXHTML_HELP" = yes; then
5204 echo "$ac_t""yes" 1>&6
5205 else
5206 echo "$ac_t""no" 1>&6
5207 fi
5208
5209
5210 enablestring=
5211 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5212 echo "configure:5213: checking for --${enablestring:-enable}-constraints" >&5
5213 no_cache=0
5214 # Check whether --enable-constraints or --disable-constraints was given.
5215 if test "${enable_constraints+set}" = set; then
5216 enableval="$enable_constraints"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5220 else
5221 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5222 fi
5223
5224 else
5225
5226 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5234
5235 fi
5236
5237
5238 eval "$ac_cv_use_constraints"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_CONSTRAINTS" = yes; then
5244 echo "$ac_t""yes" 1>&6
5245 else
5246 echo "$ac_t""no" 1>&6
5247 fi
5248
5249
5250 enablestring=
5251 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5252 echo "configure:5253: checking for --${enablestring:-enable}-printarch" >&5
5253 no_cache=0
5254 # Check whether --enable-printarch or --disable-printarch was given.
5255 if test "${enable_printarch+set}" = set; then
5256 enableval="$enable_printarch"
5257
5258 if test "$enableval" = yes; then
5259 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5260 else
5261 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5262 fi
5263
5264 else
5265
5266 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5274
5275 fi
5276
5277
5278 eval "$ac_cv_use_printarch"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5284 echo "$ac_t""yes" 1>&6
5285 else
5286 echo "$ac_t""no" 1>&6
5287 fi
5288
5289
5290 enablestring=
5291 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5292 echo "configure:5293: checking for --${enablestring:-enable}-mdi" >&5
5293 no_cache=0
5294 # Check whether --enable-mdi or --disable-mdi was given.
5295 if test "${enable_mdi+set}" = set; then
5296 enableval="$enable_mdi"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5300 else
5301 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5302 fi
5303
5304 else
5305
5306 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5314
5315 fi
5316
5317
5318 eval "$ac_cv_use_mdi"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330 enablestring=
5331 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5332 echo "configure:5333: checking for --${enablestring:-enable}-loggui" >&5
5333 no_cache=0
5334 # Check whether --enable-loggui or --disable-loggui was given.
5335 if test "${enable_loggui+set}" = set; then
5336 enableval="$enable_loggui"
5337
5338 if test "$enableval" = yes; then
5339 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5340 else
5341 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5342 fi
5343
5344 else
5345
5346 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5354
5355 fi
5356
5357
5358 eval "$ac_cv_use_loggui"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_LOGGUI" = yes; then
5364 echo "$ac_t""yes" 1>&6
5365 else
5366 echo "$ac_t""no" 1>&6
5367 fi
5368
5369
5370 enablestring=
5371 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5372 echo "configure:5373: checking for --${enablestring:-enable}-logwin" >&5
5373 no_cache=0
5374 # Check whether --enable-logwin or --disable-logwin was given.
5375 if test "${enable_logwin+set}" = set; then
5376 enableval="$enable_logwin"
5377
5378 if test "$enableval" = yes; then
5379 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5380 else
5381 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5382 fi
5383
5384 else
5385
5386 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5387 if test "x$LINE" != x ; then
5388 eval "DEFAULT_$LINE"
5389 else
5390 no_cache=1
5391 fi
5392
5393 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5394
5395 fi
5396
5397
5398 eval "$ac_cv_use_logwin"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_LOGWINDOW" = yes; then
5404 echo "$ac_t""yes" 1>&6
5405 else
5406 echo "$ac_t""no" 1>&6
5407 fi
5408
5409
5410 enablestring=
5411 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5412 echo "configure:5413: checking for --${enablestring:-enable}-logdialog" >&5
5413 no_cache=0
5414 # Check whether --enable-logdialog or --disable-logdialog was given.
5415 if test "${enable_logdialog+set}" = set; then
5416 enableval="$enable_logdialog"
5417
5418 if test "$enableval" = yes; then
5419 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5420 else
5421 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5422 fi
5423
5424 else
5425
5426 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5434
5435 fi
5436
5437
5438 eval "$ac_cv_use_logdialog"
5439 if test "$no_cache" != 1; then
5440 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5441 fi
5442
5443 if test "$wxUSE_LOGDIALOG" = yes; then
5444 echo "$ac_t""yes" 1>&6
5445 else
5446 echo "$ac_t""no" 1>&6
5447 fi
5448
5449
5450
5451 enablestring=
5452 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5453 echo "configure:5454: checking for --${enablestring:-enable}-postscript" >&5
5454 no_cache=0
5455 # Check whether --enable-postscript or --disable-postscript was given.
5456 if test "${enable_postscript+set}" = set; then
5457 enableval="$enable_postscript"
5458
5459 if test "$enableval" = yes; then
5460 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5461 else
5462 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5463 fi
5464
5465 else
5466
5467 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5475
5476 fi
5477
5478
5479 eval "$ac_cv_use_postscript"
5480 if test "$no_cache" != 1; then
5481 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5482 fi
5483
5484 if test "$wxUSE_POSTSCRIPT" = yes; then
5485 echo "$ac_t""yes" 1>&6
5486 else
5487 echo "$ac_t""no" 1>&6
5488 fi
5489
5490
5491
5492
5493
5494 enablestring=
5495 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5496 echo "configure:5497: checking for --${enablestring:-enable}-prologio" >&5
5497 no_cache=0
5498 # Check whether --enable-prologio or --disable-prologio was given.
5499 if test "${enable_prologio+set}" = set; then
5500 enableval="$enable_prologio"
5501
5502 if test "$enableval" = yes; then
5503 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5504 else
5505 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5506 fi
5507
5508 else
5509
5510 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5511 if test "x$LINE" != x ; then
5512 eval "DEFAULT_$LINE"
5513 else
5514 no_cache=1
5515 fi
5516
5517 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5518
5519 fi
5520
5521
5522 eval "$ac_cv_use_prologio"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_PROLOGIO" = yes; then
5528 echo "$ac_t""yes" 1>&6
5529 else
5530 echo "$ac_t""no" 1>&6
5531 fi
5532
5533
5534 enablestring=
5535 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5536 echo "configure:5537: checking for --${enablestring:-enable}-resources" >&5
5537 no_cache=0
5538 # Check whether --enable-resources or --disable-resources was given.
5539 if test "${enable_resources+set}" = set; then
5540 enableval="$enable_resources"
5541
5542 if test "$enableval" = yes; then
5543 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5544 else
5545 ac_cv_use_resources='wxUSE_RESOURCES=no'
5546 fi
5547
5548 else
5549
5550 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5551 if test "x$LINE" != x ; then
5552 eval "DEFAULT_$LINE"
5553 else
5554 no_cache=1
5555 fi
5556
5557 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5558
5559 fi
5560
5561
5562 eval "$ac_cv_use_resources"
5563 if test "$no_cache" != 1; then
5564 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5565 fi
5566
5567 if test "$wxUSE_RESOURCES" = yes; then
5568 echo "$ac_t""yes" 1>&6
5569 else
5570 echo "$ac_t""no" 1>&6
5571 fi
5572
5573
5574
5575 enablestring=
5576 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5577 echo "configure:5578: checking for --${enablestring:-enable}-xresources" >&5
5578 no_cache=0
5579 # Check whether --enable-xresources or --disable-xresources was given.
5580 if test "${enable_xresources+set}" = set; then
5581 enableval="$enable_xresources"
5582
5583 if test "$enableval" = yes; then
5584 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5585 else
5586 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5587 fi
5588
5589 else
5590
5591 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5592 if test "x$LINE" != x ; then
5593 eval "DEFAULT_$LINE"
5594 else
5595 no_cache=1
5596 fi
5597
5598 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5599
5600 fi
5601
5602
5603 eval "$ac_cv_use_xresources"
5604 if test "$no_cache" != 1; then
5605 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5606 fi
5607
5608 if test "$wxUSE_X_RESOURCES" = yes; then
5609 echo "$ac_t""yes" 1>&6
5610 else
5611 echo "$ac_t""no" 1>&6
5612 fi
5613
5614
5615
5616
5617 enablestring=
5618 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5619 echo "configure:5620: checking for --${enablestring:-enable}-clipboard" >&5
5620 no_cache=0
5621 # Check whether --enable-clipboard or --disable-clipboard was given.
5622 if test "${enable_clipboard+set}" = set; then
5623 enableval="$enable_clipboard"
5624
5625 if test "$enableval" = yes; then
5626 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5627 else
5628 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5629 fi
5630
5631 else
5632
5633 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5634 if test "x$LINE" != x ; then
5635 eval "DEFAULT_$LINE"
5636 else
5637 no_cache=1
5638 fi
5639
5640 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5641
5642 fi
5643
5644
5645 eval "$ac_cv_use_clipboard"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_CLIPBOARD" = yes; then
5651 echo "$ac_t""yes" 1>&6
5652 else
5653 echo "$ac_t""no" 1>&6
5654 fi
5655
5656
5657 enablestring=
5658 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5659 echo "configure:5660: checking for --${enablestring:-enable}-dnd" >&5
5660 no_cache=0
5661 # Check whether --enable-dnd or --disable-dnd was given.
5662 if test "${enable_dnd+set}" = set; then
5663 enableval="$enable_dnd"
5664
5665 if test "$enableval" = yes; then
5666 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5667 else
5668 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5669 fi
5670
5671 else
5672
5673 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5674 if test "x$LINE" != x ; then
5675 eval "DEFAULT_$LINE"
5676 else
5677 no_cache=1
5678 fi
5679
5680 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5681
5682 fi
5683
5684
5685 eval "$ac_cv_use_dnd"
5686 if test "$no_cache" != 1; then
5687 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5688 fi
5689
5690 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5691 echo "$ac_t""yes" 1>&6
5692 else
5693 echo "$ac_t""no" 1>&6
5694 fi
5695
5696
5697 enablestring=
5698 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5699 echo "configure:5700: checking for --${enablestring:-enable}-metafile" >&5
5700 no_cache=0
5701 # Check whether --enable-metafile or --disable-metafile was given.
5702 if test "${enable_metafile+set}" = set; then
5703 enableval="$enable_metafile"
5704
5705 if test "$enableval" = yes; then
5706 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5707 else
5708 ac_cv_use_metafile='wxUSE_METAFILE=no'
5709 fi
5710
5711 else
5712
5713 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5714 if test "x$LINE" != x ; then
5715 eval "DEFAULT_$LINE"
5716 else
5717 no_cache=1
5718 fi
5719
5720 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5721
5722 fi
5723
5724
5725 eval "$ac_cv_use_metafile"
5726 if test "$no_cache" != 1; then
5727 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5728 fi
5729
5730 if test "$wxUSE_METAFILE" = yes; then
5731 echo "$ac_t""yes" 1>&6
5732 else
5733 echo "$ac_t""no" 1>&6
5734 fi
5735
5736
5737
5738 enablestring=
5739 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5740 echo "configure:5741: checking for --${enablestring:-enable}-treelayout" >&5
5741 no_cache=0
5742 # Check whether --enable-treelayout or --disable-treelayout was given.
5743 if test "${enable_treelayout+set}" = set; then
5744 enableval="$enable_treelayout"
5745
5746 if test "$enableval" = yes; then
5747 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5748 else
5749 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5750 fi
5751
5752 else
5753
5754 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5755 if test "x$LINE" != x ; then
5756 eval "DEFAULT_$LINE"
5757 else
5758 no_cache=1
5759 fi
5760
5761 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5762
5763 fi
5764
5765
5766 eval "$ac_cv_use_treelayout"
5767 if test "$no_cache" != 1; then
5768 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5769 fi
5770
5771 if test "$wxUSE_TREELAYOUT" = yes; then
5772 echo "$ac_t""yes" 1>&6
5773 else
5774 echo "$ac_t""no" 1>&6
5775 fi
5776
5777
5778
5779
5780 enablestring=
5781 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5782 echo "configure:5783: checking for --${enablestring:-enable}-controls" >&5
5783 no_cache=0
5784 # Check whether --enable-controls or --disable-controls was given.
5785 if test "${enable_controls+set}" = set; then
5786 enableval="$enable_controls"
5787
5788 if test "$enableval" = yes; then
5789 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5790 else
5791 ac_cv_use_controls='wxUSE_CONTROLS=no'
5792 fi
5793
5794 else
5795
5796 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5797 if test "x$LINE" != x ; then
5798 eval "DEFAULT_$LINE"
5799 else
5800 no_cache=1
5801 fi
5802
5803 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5804
5805 fi
5806
5807
5808 eval "$ac_cv_use_controls"
5809 if test "$no_cache" != 1; then
5810 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5811 fi
5812
5813 if test "$wxUSE_CONTROLS" = yes; then
5814 echo "$ac_t""yes" 1>&6
5815 else
5816 echo "$ac_t""no" 1>&6
5817 fi
5818
5819
5820 if test "$wxUSE_CONTROLS" = "yes"; then
5821 DEFAULT_wxUSE_ACCEL=yes
5822 DEFAULT_wxUSE_BMPBUTTON=yes
5823 DEFAULT_wxUSE_BUTTON=yes
5824 DEFAULT_wxUSE_CALCTRL=no
5825 DEFAULT_wxUSE_CARET=yes
5826 DEFAULT_wxUSE_COMBOBOX=yes
5827 DEFAULT_wxUSE_CHECKBOX=yes
5828 DEFAULT_wxUSE_CHECKLISTBOX=yes
5829 DEFAULT_wxUSE_CHOICE=yes
5830 DEFAULT_wxUSE_GAUGE=yes
5831 DEFAULT_wxUSE_GRID=yes
5832 DEFAULT_wxUSE_IMAGLIST=yes
5833 DEFAULT_wxUSE_LISTBOX=yes
5834 DEFAULT_wxUSE_LISTCTRL=yes
5835 DEFAULT_wxUSE_NOTEBOOK=yes
5836 DEFAULT_wxUSE_PROPSHEET=yes
5837 DEFAULT_wxUSE_RADIOBOX=yes
5838 DEFAULT_wxUSE_RADIOBTN=yes
5839 DEFAULT_wxUSE_SASH=yes
5840 DEFAULT_wxUSE_SCROLLBAR=yes
5841 DEFAULT_wxUSE_SLIDER=yes
5842 DEFAULT_wxUSE_SPINBTN=yes
5843 DEFAULT_wxUSE_SPINCTRL=yes
5844 DEFAULT_wxUSE_SPLITTER=yes
5845 DEFAULT_wxUSE_STATBMP=yes
5846 DEFAULT_wxUSE_STATBOX=yes
5847 DEFAULT_wxUSE_STATLINE=yes
5848 DEFAULT_wxUSE_STATUSBAR=yes
5849 DEFAULT_wxUSE_TAB_DIALOG=yes
5850 DEFAULT_wxUSE_TOGGLEBTN=yes
5851 DEFAULT_wxUSE_TOOLBAR=yes
5852 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5853 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5854 DEFAULT_wxUSE_TOOLTIPS=yes
5855 DEFAULT_wxUSE_TREECTRL=yes
5856 DEFAULT_wxUSE_POPUPWIN=yes
5857 DEFAULT_wxUSE_TIPWINDOW=yes
5858 elif test "$wxUSE_CONTROLS" = "no"; then
5859 DEFAULT_wxUSE_ACCEL=no
5860 DEFAULT_wxUSE_BMPBUTTON=no
5861 DEFAULT_wxUSE_BUTTON=no
5862 DEFAULT_wxUSE_CALCTRL=no
5863 DEFAULT_wxUSE_CARET=no
5864 DEFAULT_wxUSE_COMBOBOX=no
5865 DEFAULT_wxUSE_CHECKBOX=no
5866 DEFAULT_wxUSE_CHECKLISTBOX=no
5867 DEFAULT_wxUSE_CHOICE=no
5868 DEFAULT_wxUSE_GAUGE=no
5869 DEFAULT_wxUSE_GRID=no
5870 DEFAULT_wxUSE_IMAGLIST=no
5871 DEFAULT_wxUSE_LISTBOX=no
5872 DEFAULT_wxUSE_LISTCTRL=no
5873 DEFAULT_wxUSE_NOTEBOOK=no
5874 DEFAULT_wxUSE_PROPSHEET=no
5875 DEFAULT_wxUSE_RADIOBOX=no
5876 DEFAULT_wxUSE_RADIOBTN=no
5877 DEFAULT_wxUSE_SASH=no
5878 DEFAULT_wxUSE_SCROLLBAR=no
5879 DEFAULT_wxUSE_SLIDER=no
5880 DEFAULT_wxUSE_SPINBTN=no
5881 DEFAULT_wxUSE_SPINCTRL=no
5882 DEFAULT_wxUSE_SPLITTER=no
5883 DEFAULT_wxUSE_STATBMP=no
5884 DEFAULT_wxUSE_STATBOX=no
5885 DEFAULT_wxUSE_STATLINE=no
5886 DEFAULT_wxUSE_STATUSBAR=no
5887 DEFAULT_wxUSE_TAB_DIALOG=no
5888 DEFAULT_wxUSE_TOGGLEBTN=no
5889 DEFAULT_wxUSE_TOOLBAR=no
5890 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5891 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5892 DEFAULT_wxUSE_TOOLTIPS=no
5893 DEFAULT_wxUSE_TREECTRL=no
5894 DEFAULT_wxUSE_POPUPWIN=no
5895 DEFAULT_wxUSE_TIPWINDOW=no
5896 fi
5897
5898 ## FIXME: This is a blatant hack
5899 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5900 wxUSE_PRINTING_ARCHITECTURE=no
5901 wxUSE_HELP=no
5902 wxUSE_CLIPBOARD=no
5903 wxUSE_DRAG_AND_DROP=no
5904 wxUSE_DATAOBJ=no
5905 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5906 DEFAULT_wxUSE_TEXTDLG=no
5907 DEFAULT_wxUSE_GAUGE=no
5908 DEFAULT_wxUSE_SCROLLBAR=no
5909 DEFAULT_wxUSE_SLIDER=no
5910 DEFAULT_wxUSE_COMBOBOX=no
5911 DEFAULT_wxUSE_CALCTRL=no
5912 DEFAULT_wxUSE_SPINBTN=no
5913 DEFAULT_wxUSE_SPINCTRL=no
5914 DEFAULT_wxUSE_TOOLTIPS=no
5915 DEFAULT_wxUSE_COLOURDLG=no
5916 DEFAULT_wxUSE_DIRDLG=no
5917 DEFAULT_wxUSE_DRAGIMAGE=no
5918 DEFAULT_wxUSE_FINDREPLDLG=no
5919 DEFAULT_wxUSE_FONTDLG=no
5920 DEFAULT_wxUSE_GRID=no
5921 DEFAULT_wxUSE_NUMBERDLG=no
5922 DEFAULT_wxUSE_PROGRESSDLG=no
5923 DEFAULT_wxUSE_PROPSHEET=no
5924 DEFAULT_wxUSE_SASH=no
5925 DEFAULT_wxUSE_SPLITTER=no
5926 DEFAULT_wxUSE_WIZARDDLG=no
5927 DEFAULT_wxUSE_SPLITTER=no
5928 DEFAULT_wxUSE_STARTUP_TIPS=no
5929 DEFAULT_wxUSE_TREECTRL=no
5930 fi
5931
5932
5933 enablestring=
5934 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5935 echo "configure:5936: checking for --${enablestring:-enable}-accel" >&5
5936 no_cache=0
5937 # Check whether --enable-accel or --disable-accel was given.
5938 if test "${enable_accel+set}" = set; then
5939 enableval="$enable_accel"
5940
5941 if test "$enableval" = yes; then
5942 ac_cv_use_accel='wxUSE_ACCEL=yes'
5943 else
5944 ac_cv_use_accel='wxUSE_ACCEL=no'
5945 fi
5946
5947 else
5948
5949 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5950 if test "x$LINE" != x ; then
5951 eval "DEFAULT_$LINE"
5952 else
5953 no_cache=1
5954 fi
5955
5956 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5957
5958 fi
5959
5960
5961 eval "$ac_cv_use_accel"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_ACCEL" = yes; then
5967 echo "$ac_t""yes" 1>&6
5968 else
5969 echo "$ac_t""no" 1>&6
5970 fi
5971
5972
5973 enablestring=
5974 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5975 echo "configure:5976: checking for --${enablestring:-enable}-button" >&5
5976 no_cache=0
5977 # Check whether --enable-button or --disable-button was given.
5978 if test "${enable_button+set}" = set; then
5979 enableval="$enable_button"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_button='wxUSE_BUTTON=yes'
5983 else
5984 ac_cv_use_button='wxUSE_BUTTON=no'
5985 fi
5986
5987 else
5988
5989 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5997
5998 fi
5999
6000
6001 eval "$ac_cv_use_button"
6002 if test "$no_cache" != 1; then
6003 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6004 fi
6005
6006 if test "$wxUSE_BUTTON" = yes; then
6007 echo "$ac_t""yes" 1>&6
6008 else
6009 echo "$ac_t""no" 1>&6
6010 fi
6011
6012
6013 enablestring=
6014 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
6015 echo "configure:6016: checking for --${enablestring:-enable}-bmpbutton" >&5
6016 no_cache=0
6017 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6018 if test "${enable_bmpbutton+set}" = set; then
6019 enableval="$enable_bmpbutton"
6020
6021 if test "$enableval" = yes; then
6022 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6023 else
6024 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6025 fi
6026
6027 else
6028
6029 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6030 if test "x$LINE" != x ; then
6031 eval "DEFAULT_$LINE"
6032 else
6033 no_cache=1
6034 fi
6035
6036 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6037
6038 fi
6039
6040
6041 eval "$ac_cv_use_bmpbutton"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_BMPBUTTON" = yes; then
6047 echo "$ac_t""yes" 1>&6
6048 else
6049 echo "$ac_t""no" 1>&6
6050 fi
6051
6052
6053 enablestring=
6054 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6055 echo "configure:6056: checking for --${enablestring:-enable}-calendar" >&5
6056 no_cache=0
6057 # Check whether --enable-calendar or --disable-calendar was given.
6058 if test "${enable_calendar+set}" = set; then
6059 enableval="$enable_calendar"
6060
6061 if test "$enableval" = yes; then
6062 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6063 else
6064 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6065 fi
6066
6067 else
6068
6069 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6070 if test "x$LINE" != x ; then
6071 eval "DEFAULT_$LINE"
6072 else
6073 no_cache=1
6074 fi
6075
6076 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6077
6078 fi
6079
6080
6081 eval "$ac_cv_use_calendar"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_CALCTRL" = yes; then
6087 echo "$ac_t""yes" 1>&6
6088 else
6089 echo "$ac_t""no" 1>&6
6090 fi
6091
6092
6093 enablestring=
6094 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6095 echo "configure:6096: checking for --${enablestring:-enable}-caret" >&5
6096 no_cache=0
6097 # Check whether --enable-caret or --disable-caret was given.
6098 if test "${enable_caret+set}" = set; then
6099 enableval="$enable_caret"
6100
6101 if test "$enableval" = yes; then
6102 ac_cv_use_caret='wxUSE_CARET=yes'
6103 else
6104 ac_cv_use_caret='wxUSE_CARET=no'
6105 fi
6106
6107 else
6108
6109 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6117
6118 fi
6119
6120
6121 eval "$ac_cv_use_caret"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_CARET" = yes; then
6127 echo "$ac_t""yes" 1>&6
6128 else
6129 echo "$ac_t""no" 1>&6
6130 fi
6131
6132
6133 enablestring=
6134 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6135 echo "configure:6136: checking for --${enablestring:-enable}-checkbox" >&5
6136 no_cache=0
6137 # Check whether --enable-checkbox or --disable-checkbox was given.
6138 if test "${enable_checkbox+set}" = set; then
6139 enableval="$enable_checkbox"
6140
6141 if test "$enableval" = yes; then
6142 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6143 else
6144 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6145 fi
6146
6147 else
6148
6149 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6150 if test "x$LINE" != x ; then
6151 eval "DEFAULT_$LINE"
6152 else
6153 no_cache=1
6154 fi
6155
6156 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6157
6158 fi
6159
6160
6161 eval "$ac_cv_use_checkbox"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_CHECKBOX" = yes; then
6167 echo "$ac_t""yes" 1>&6
6168 else
6169 echo "$ac_t""no" 1>&6
6170 fi
6171
6172
6173 enablestring=
6174 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6175 echo "configure:6176: checking for --${enablestring:-enable}-checklst" >&5
6176 no_cache=0
6177 # Check whether --enable-checklst or --disable-checklst was given.
6178 if test "${enable_checklst+set}" = set; then
6179 enableval="$enable_checklst"
6180
6181 if test "$enableval" = yes; then
6182 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6183 else
6184 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6185 fi
6186
6187 else
6188
6189 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6197
6198 fi
6199
6200
6201 eval "$ac_cv_use_checklst"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_CHECKLST" = yes; then
6207 echo "$ac_t""yes" 1>&6
6208 else
6209 echo "$ac_t""no" 1>&6
6210 fi
6211
6212
6213 enablestring=
6214 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6215 echo "configure:6216: checking for --${enablestring:-enable}-choice" >&5
6216 no_cache=0
6217 # Check whether --enable-choice or --disable-choice was given.
6218 if test "${enable_choice+set}" = set; then
6219 enableval="$enable_choice"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_choice='wxUSE_CHOICE=yes'
6223 else
6224 ac_cv_use_choice='wxUSE_CHOICE=no'
6225 fi
6226
6227 else
6228
6229 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6237
6238 fi
6239
6240
6241 eval "$ac_cv_use_choice"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_CHOICE" = yes; then
6247 echo "$ac_t""yes" 1>&6
6248 else
6249 echo "$ac_t""no" 1>&6
6250 fi
6251
6252
6253 enablestring=
6254 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6255 echo "configure:6256: checking for --${enablestring:-enable}-combobox" >&5
6256 no_cache=0
6257 # Check whether --enable-combobox or --disable-combobox was given.
6258 if test "${enable_combobox+set}" = set; then
6259 enableval="$enable_combobox"
6260
6261 if test "$enableval" = yes; then
6262 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6263 else
6264 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6265 fi
6266
6267 else
6268
6269 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
6276 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6277
6278 fi
6279
6280
6281 eval "$ac_cv_use_combobox"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_COMBOBOX" = yes; then
6287 echo "$ac_t""yes" 1>&6
6288 else
6289 echo "$ac_t""no" 1>&6
6290 fi
6291
6292
6293 enablestring=
6294 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6295 echo "configure:6296: checking for --${enablestring:-enable}-display" >&5
6296 no_cache=0
6297 # Check whether --enable-display or --disable-display was given.
6298 if test "${enable_display+set}" = set; then
6299 enableval="$enable_display"
6300
6301 if test "$enableval" = yes; then
6302 ac_cv_use_display='wxUSE_DISPLAY=yes'
6303 else
6304 ac_cv_use_display='wxUSE_DISPLAY=no'
6305 fi
6306
6307 else
6308
6309 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6310 if test "x$LINE" != x ; then
6311 eval "DEFAULT_$LINE"
6312 else
6313 no_cache=1
6314 fi
6315
6316 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6317
6318 fi
6319
6320
6321 eval "$ac_cv_use_display"
6322 if test "$no_cache" != 1; then
6323 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6324 fi
6325
6326 if test "$wxUSE_DISPLAY" = yes; then
6327 echo "$ac_t""yes" 1>&6
6328 else
6329 echo "$ac_t""no" 1>&6
6330 fi
6331
6332
6333 enablestring=
6334 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6335 echo "configure:6336: checking for --${enablestring:-enable}-gauge" >&5
6336 no_cache=0
6337 # Check whether --enable-gauge or --disable-gauge was given.
6338 if test "${enable_gauge+set}" = set; then
6339 enableval="$enable_gauge"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6343 else
6344 ac_cv_use_gauge='wxUSE_GAUGE=no'
6345 fi
6346
6347 else
6348
6349 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6357
6358 fi
6359
6360
6361 eval "$ac_cv_use_gauge"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_GAUGE" = yes; then
6367 echo "$ac_t""yes" 1>&6
6368 else
6369 echo "$ac_t""no" 1>&6
6370 fi
6371
6372
6373 enablestring=
6374 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6375 echo "configure:6376: checking for --${enablestring:-enable}-grid" >&5
6376 no_cache=0
6377 # Check whether --enable-grid or --disable-grid was given.
6378 if test "${enable_grid+set}" = set; then
6379 enableval="$enable_grid"
6380
6381 if test "$enableval" = yes; then
6382 ac_cv_use_grid='wxUSE_GRID=yes'
6383 else
6384 ac_cv_use_grid='wxUSE_GRID=no'
6385 fi
6386
6387 else
6388
6389 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
6396 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6397
6398 fi
6399
6400
6401 eval "$ac_cv_use_grid"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_GRID" = yes; then
6407 echo "$ac_t""yes" 1>&6
6408 else
6409 echo "$ac_t""no" 1>&6
6410 fi
6411
6412
6413 enablestring=
6414 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6415 echo "configure:6416: checking for --${enablestring:-enable}-imaglist" >&5
6416 no_cache=0
6417 # Check whether --enable-imaglist or --disable-imaglist was given.
6418 if test "${enable_imaglist+set}" = set; then
6419 enableval="$enable_imaglist"
6420
6421 if test "$enableval" = yes; then
6422 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6423 else
6424 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6425 fi
6426
6427 else
6428
6429 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6437
6438 fi
6439
6440
6441 eval "$ac_cv_use_imaglist"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_IMAGLIST" = yes; then
6447 echo "$ac_t""yes" 1>&6
6448 else
6449 echo "$ac_t""no" 1>&6
6450 fi
6451
6452
6453 enablestring=
6454 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6455 echo "configure:6456: checking for --${enablestring:-enable}-listbox" >&5
6456 no_cache=0
6457 # Check whether --enable-listbox or --disable-listbox was given.
6458 if test "${enable_listbox+set}" = set; then
6459 enableval="$enable_listbox"
6460
6461 if test "$enableval" = yes; then
6462 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6463 else
6464 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6465 fi
6466
6467 else
6468
6469 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6470 if test "x$LINE" != x ; then
6471 eval "DEFAULT_$LINE"
6472 else
6473 no_cache=1
6474 fi
6475
6476 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6477
6478 fi
6479
6480
6481 eval "$ac_cv_use_listbox"
6482 if test "$no_cache" != 1; then
6483 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6484 fi
6485
6486 if test "$wxUSE_LISTBOX" = yes; then
6487 echo "$ac_t""yes" 1>&6
6488 else
6489 echo "$ac_t""no" 1>&6
6490 fi
6491
6492
6493 enablestring=
6494 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6495 echo "configure:6496: checking for --${enablestring:-enable}-listctrl" >&5
6496 no_cache=0
6497 # Check whether --enable-listctrl or --disable-listctrl was given.
6498 if test "${enable_listctrl+set}" = set; then
6499 enableval="$enable_listctrl"
6500
6501 if test "$enableval" = yes; then
6502 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6503 else
6504 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6505 fi
6506
6507 else
6508
6509 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6517
6518 fi
6519
6520
6521 eval "$ac_cv_use_listctrl"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_LISTCTRL" = yes; then
6527 echo "$ac_t""yes" 1>&6
6528 else
6529 echo "$ac_t""no" 1>&6
6530 fi
6531
6532
6533 enablestring=
6534 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6535 echo "configure:6536: checking for --${enablestring:-enable}-notebook" >&5
6536 no_cache=0
6537 # Check whether --enable-notebook or --disable-notebook was given.
6538 if test "${enable_notebook+set}" = set; then
6539 enableval="$enable_notebook"
6540
6541 if test "$enableval" = yes; then
6542 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6543 else
6544 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6545 fi
6546
6547 else
6548
6549 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6550 if test "x$LINE" != x ; then
6551 eval "DEFAULT_$LINE"
6552 else
6553 no_cache=1
6554 fi
6555
6556 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6557
6558 fi
6559
6560
6561 eval "$ac_cv_use_notebook"
6562 if test "$no_cache" != 1; then
6563 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6564 fi
6565
6566 if test "$wxUSE_NOTEBOOK" = yes; then
6567 echo "$ac_t""yes" 1>&6
6568 else
6569 echo "$ac_t""no" 1>&6
6570 fi
6571
6572
6573 enablestring=
6574 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6575 echo "configure:6576: checking for --${enablestring:-enable}-propsheet" >&5
6576 no_cache=0
6577 # Check whether --enable-propsheet or --disable-propsheet was given.
6578 if test "${enable_propsheet+set}" = set; then
6579 enableval="$enable_propsheet"
6580
6581 if test "$enableval" = yes; then
6582 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6583 else
6584 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6585 fi
6586
6587 else
6588
6589 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6590 if test "x$LINE" != x ; then
6591 eval "DEFAULT_$LINE"
6592 else
6593 no_cache=1
6594 fi
6595
6596 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6597
6598 fi
6599
6600
6601 eval "$ac_cv_use_propsheet"
6602 if test "$no_cache" != 1; then
6603 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6604 fi
6605
6606 if test "$wxUSE_PROPSHEET" = yes; then
6607 echo "$ac_t""yes" 1>&6
6608 else
6609 echo "$ac_t""no" 1>&6
6610 fi
6611
6612
6613 enablestring=
6614 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6615 echo "configure:6616: checking for --${enablestring:-enable}-radiobox" >&5
6616 no_cache=0
6617 # Check whether --enable-radiobox or --disable-radiobox was given.
6618 if test "${enable_radiobox+set}" = set; then
6619 enableval="$enable_radiobox"
6620
6621 if test "$enableval" = yes; then
6622 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6623 else
6624 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6625 fi
6626
6627 else
6628
6629 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6637
6638 fi
6639
6640
6641 eval "$ac_cv_use_radiobox"
6642 if test "$no_cache" != 1; then
6643 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6644 fi
6645
6646 if test "$wxUSE_RADIOBOX" = yes; then
6647 echo "$ac_t""yes" 1>&6
6648 else
6649 echo "$ac_t""no" 1>&6
6650 fi
6651
6652
6653 enablestring=
6654 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6655 echo "configure:6656: checking for --${enablestring:-enable}-radiobtn" >&5
6656 no_cache=0
6657 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6658 if test "${enable_radiobtn+set}" = set; then
6659 enableval="$enable_radiobtn"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6663 else
6664 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6665 fi
6666
6667 else
6668
6669 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6677
6678 fi
6679
6680
6681 eval "$ac_cv_use_radiobtn"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_RADIOBTN" = yes; then
6687 echo "$ac_t""yes" 1>&6
6688 else
6689 echo "$ac_t""no" 1>&6
6690 fi
6691
6692
6693 enablestring=
6694 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6695 echo "configure:6696: checking for --${enablestring:-enable}-sash" >&5
6696 no_cache=0
6697 # Check whether --enable-sash or --disable-sash was given.
6698 if test "${enable_sash+set}" = set; then
6699 enableval="$enable_sash"
6700
6701 if test "$enableval" = yes; then
6702 ac_cv_use_sash='wxUSE_SASH=yes'
6703 else
6704 ac_cv_use_sash='wxUSE_SASH=no'
6705 fi
6706
6707 else
6708
6709 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6717
6718 fi
6719
6720
6721 eval "$ac_cv_use_sash"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_SASH" = yes; then
6727 echo "$ac_t""yes" 1>&6
6728 else
6729 echo "$ac_t""no" 1>&6
6730 fi
6731
6732
6733 enablestring=
6734 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6735 echo "configure:6736: checking for --${enablestring:-enable}-scrollbar" >&5
6736 no_cache=0
6737 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6738 if test "${enable_scrollbar+set}" = set; then
6739 enableval="$enable_scrollbar"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6743 else
6744 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6745 fi
6746
6747 else
6748
6749 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6757
6758 fi
6759
6760
6761 eval "$ac_cv_use_scrollbar"
6762 if test "$no_cache" != 1; then
6763 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6764 fi
6765
6766 if test "$wxUSE_SCROLLBAR" = yes; then
6767 echo "$ac_t""yes" 1>&6
6768 else
6769 echo "$ac_t""no" 1>&6
6770 fi
6771
6772
6773 enablestring=
6774 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6775 echo "configure:6776: checking for --${enablestring:-enable}-slider" >&5
6776 no_cache=0
6777 # Check whether --enable-slider or --disable-slider was given.
6778 if test "${enable_slider+set}" = set; then
6779 enableval="$enable_slider"
6780
6781 if test "$enableval" = yes; then
6782 ac_cv_use_slider='wxUSE_SLIDER=yes'
6783 else
6784 ac_cv_use_slider='wxUSE_SLIDER=no'
6785 fi
6786
6787 else
6788
6789 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6790 if test "x$LINE" != x ; then
6791 eval "DEFAULT_$LINE"
6792 else
6793 no_cache=1
6794 fi
6795
6796 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6797
6798 fi
6799
6800
6801 eval "$ac_cv_use_slider"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_SLIDER" = yes; then
6807 echo "$ac_t""yes" 1>&6
6808 else
6809 echo "$ac_t""no" 1>&6
6810 fi
6811
6812
6813 enablestring=
6814 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6815 echo "configure:6816: checking for --${enablestring:-enable}-spinbtn" >&5
6816 no_cache=0
6817 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6818 if test "${enable_spinbtn+set}" = set; then
6819 enableval="$enable_spinbtn"
6820
6821 if test "$enableval" = yes; then
6822 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6823 else
6824 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6825 fi
6826
6827 else
6828
6829 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6837
6838 fi
6839
6840
6841 eval "$ac_cv_use_spinbtn"
6842 if test "$no_cache" != 1; then
6843 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6844 fi
6845
6846 if test "$wxUSE_SPINBTN" = yes; then
6847 echo "$ac_t""yes" 1>&6
6848 else
6849 echo "$ac_t""no" 1>&6
6850 fi
6851
6852
6853 enablestring=
6854 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6855 echo "configure:6856: checking for --${enablestring:-enable}-spinctrl" >&5
6856 no_cache=0
6857 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6858 if test "${enable_spinctrl+set}" = set; then
6859 enableval="$enable_spinctrl"
6860
6861 if test "$enableval" = yes; then
6862 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6863 else
6864 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6865 fi
6866
6867 else
6868
6869 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
6876 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6877
6878 fi
6879
6880
6881 eval "$ac_cv_use_spinctrl"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_SPINCTRL" = yes; then
6887 echo "$ac_t""yes" 1>&6
6888 else
6889 echo "$ac_t""no" 1>&6
6890 fi
6891
6892
6893 enablestring=
6894 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6895 echo "configure:6896: checking for --${enablestring:-enable}-splitter" >&5
6896 no_cache=0
6897 # Check whether --enable-splitter or --disable-splitter was given.
6898 if test "${enable_splitter+set}" = set; then
6899 enableval="$enable_splitter"
6900
6901 if test "$enableval" = yes; then
6902 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6903 else
6904 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6905 fi
6906
6907 else
6908
6909 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6910 if test "x$LINE" != x ; then
6911 eval "DEFAULT_$LINE"
6912 else
6913 no_cache=1
6914 fi
6915
6916 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6917
6918 fi
6919
6920
6921 eval "$ac_cv_use_splitter"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_SPLITTER" = yes; then
6927 echo "$ac_t""yes" 1>&6
6928 else
6929 echo "$ac_t""no" 1>&6
6930 fi
6931
6932
6933 enablestring=
6934 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6935 echo "configure:6936: checking for --${enablestring:-enable}-statbmp" >&5
6936 no_cache=0
6937 # Check whether --enable-statbmp or --disable-statbmp was given.
6938 if test "${enable_statbmp+set}" = set; then
6939 enableval="$enable_statbmp"
6940
6941 if test "$enableval" = yes; then
6942 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6943 else
6944 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6945 fi
6946
6947 else
6948
6949 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6950 if test "x$LINE" != x ; then
6951 eval "DEFAULT_$LINE"
6952 else
6953 no_cache=1
6954 fi
6955
6956 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6957
6958 fi
6959
6960
6961 eval "$ac_cv_use_statbmp"
6962 if test "$no_cache" != 1; then
6963 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6964 fi
6965
6966 if test "$wxUSE_STATBMP" = yes; then
6967 echo "$ac_t""yes" 1>&6
6968 else
6969 echo "$ac_t""no" 1>&6
6970 fi
6971
6972
6973 enablestring=
6974 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6975 echo "configure:6976: checking for --${enablestring:-enable}-statbox" >&5
6976 no_cache=0
6977 # Check whether --enable-statbox or --disable-statbox was given.
6978 if test "${enable_statbox+set}" = set; then
6979 enableval="$enable_statbox"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6983 else
6984 ac_cv_use_statbox='wxUSE_STATBOX=no'
6985 fi
6986
6987 else
6988
6989 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6997
6998 fi
6999
7000
7001 eval "$ac_cv_use_statbox"
7002 if test "$no_cache" != 1; then
7003 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7004 fi
7005
7006 if test "$wxUSE_STATBOX" = yes; then
7007 echo "$ac_t""yes" 1>&6
7008 else
7009 echo "$ac_t""no" 1>&6
7010 fi
7011
7012
7013 enablestring=
7014 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7015 echo "configure:7016: checking for --${enablestring:-enable}-statline" >&5
7016 no_cache=0
7017 # Check whether --enable-statline or --disable-statline was given.
7018 if test "${enable_statline+set}" = set; then
7019 enableval="$enable_statline"
7020
7021 if test "$enableval" = yes; then
7022 ac_cv_use_statline='wxUSE_STATLINE=yes'
7023 else
7024 ac_cv_use_statline='wxUSE_STATLINE=no'
7025 fi
7026
7027 else
7028
7029 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7030 if test "x$LINE" != x ; then
7031 eval "DEFAULT_$LINE"
7032 else
7033 no_cache=1
7034 fi
7035
7036 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7037
7038 fi
7039
7040
7041 eval "$ac_cv_use_statline"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_STATLINE" = yes; then
7047 echo "$ac_t""yes" 1>&6
7048 else
7049 echo "$ac_t""no" 1>&6
7050 fi
7051
7052
7053 enablestring=
7054 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7055 echo "configure:7056: checking for --${enablestring:-enable}-stattext" >&5
7056 no_cache=0
7057 # Check whether --enable-stattext or --disable-stattext was given.
7058 if test "${enable_stattext+set}" = set; then
7059 enableval="$enable_stattext"
7060
7061 if test "$enableval" = yes; then
7062 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7063 else
7064 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7065 fi
7066
7067 else
7068
7069 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7070 if test "x$LINE" != x ; then
7071 eval "DEFAULT_$LINE"
7072 else
7073 no_cache=1
7074 fi
7075
7076 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7077
7078 fi
7079
7080
7081 eval "$ac_cv_use_stattext"
7082 if test "$no_cache" != 1; then
7083 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7084 fi
7085
7086 if test "$wxUSE_STATTEXT" = yes; then
7087 echo "$ac_t""yes" 1>&6
7088 else
7089 echo "$ac_t""no" 1>&6
7090 fi
7091
7092
7093 enablestring=
7094 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7095 echo "configure:7096: checking for --${enablestring:-enable}-statusbar" >&5
7096 no_cache=0
7097 # Check whether --enable-statusbar or --disable-statusbar was given.
7098 if test "${enable_statusbar+set}" = set; then
7099 enableval="$enable_statusbar"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7103 else
7104 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7105 fi
7106
7107 else
7108
7109 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7117
7118 fi
7119
7120
7121 eval "$ac_cv_use_statusbar"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_STATUSBAR" = yes; then
7127 echo "$ac_t""yes" 1>&6
7128 else
7129 echo "$ac_t""no" 1>&6
7130 fi
7131
7132
7133 enablestring=
7134 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7135 echo "configure:7136: checking for --${enablestring:-enable}-tabdialog" >&5
7136 no_cache=0
7137 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7138 if test "${enable_tabdialog+set}" = set; then
7139 enableval="$enable_tabdialog"
7140
7141 if test "$enableval" = yes; then
7142 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7143 else
7144 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7145 fi
7146
7147 else
7148
7149 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7157
7158 fi
7159
7160
7161 eval "$ac_cv_use_tabdialog"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_TABDIALOG" = yes; then
7167 echo "$ac_t""yes" 1>&6
7168 else
7169 echo "$ac_t""no" 1>&6
7170 fi
7171
7172
7173 enablestring=
7174 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7175 echo "configure:7176: checking for --${enablestring:-enable}-textctrl" >&5
7176 no_cache=0
7177 # Check whether --enable-textctrl or --disable-textctrl was given.
7178 if test "${enable_textctrl+set}" = set; then
7179 enableval="$enable_textctrl"
7180
7181 if test "$enableval" = yes; then
7182 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7183 else
7184 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7185 fi
7186
7187 else
7188
7189 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7190 if test "x$LINE" != x ; then
7191 eval "DEFAULT_$LINE"
7192 else
7193 no_cache=1
7194 fi
7195
7196 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7197
7198 fi
7199
7200
7201 eval "$ac_cv_use_textctrl"
7202 if test "$no_cache" != 1; then
7203 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7204 fi
7205
7206 if test "$wxUSE_TEXTCTRL" = yes; then
7207 echo "$ac_t""yes" 1>&6
7208 else
7209 echo "$ac_t""no" 1>&6
7210 fi
7211
7212
7213 enablestring=
7214 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7215 echo "configure:7216: checking for --${enablestring:-enable}-togglebtn" >&5
7216 no_cache=0
7217 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7218 if test "${enable_togglebtn+set}" = set; then
7219 enableval="$enable_togglebtn"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7223 else
7224 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7225 fi
7226
7227 else
7228
7229 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7237
7238 fi
7239
7240
7241 eval "$ac_cv_use_togglebtn"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_TOGGLEBTN" = yes; then
7247 echo "$ac_t""yes" 1>&6
7248 else
7249 echo "$ac_t""no" 1>&6
7250 fi
7251
7252
7253 enablestring=
7254 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7255 echo "configure:7256: checking for --${enablestring:-enable}-toolbar" >&5
7256 no_cache=0
7257 # Check whether --enable-toolbar or --disable-toolbar was given.
7258 if test "${enable_toolbar+set}" = set; then
7259 enableval="$enable_toolbar"
7260
7261 if test "$enableval" = yes; then
7262 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7263 else
7264 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7265 fi
7266
7267 else
7268
7269 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7270 if test "x$LINE" != x ; then
7271 eval "DEFAULT_$LINE"
7272 else
7273 no_cache=1
7274 fi
7275
7276 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7277
7278 fi
7279
7280
7281 eval "$ac_cv_use_toolbar"
7282 if test "$no_cache" != 1; then
7283 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7284 fi
7285
7286 if test "$wxUSE_TOOLBAR" = yes; then
7287 echo "$ac_t""yes" 1>&6
7288 else
7289 echo "$ac_t""no" 1>&6
7290 fi
7291
7292
7293 enablestring=
7294 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7295 echo "configure:7296: checking for --${enablestring:-enable}-tbarnative" >&5
7296 no_cache=0
7297 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7298 if test "${enable_tbarnative+set}" = set; then
7299 enableval="$enable_tbarnative"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7303 else
7304 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7305 fi
7306
7307 else
7308
7309 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7317
7318 fi
7319
7320
7321 eval "$ac_cv_use_tbarnative"
7322 if test "$no_cache" != 1; then
7323 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7324 fi
7325
7326 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7327 echo "$ac_t""yes" 1>&6
7328 else
7329 echo "$ac_t""no" 1>&6
7330 fi
7331
7332
7333 enablestring=
7334 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7335 echo "configure:7336: checking for --${enablestring:-enable}-tbarsmpl" >&5
7336 no_cache=0
7337 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7338 if test "${enable_tbarsmpl+set}" = set; then
7339 enableval="$enable_tbarsmpl"
7340
7341 if test "$enableval" = yes; then
7342 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7343 else
7344 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7345 fi
7346
7347 else
7348
7349 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7350 if test "x$LINE" != x ; then
7351 eval "DEFAULT_$LINE"
7352 else
7353 no_cache=1
7354 fi
7355
7356 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7357
7358 fi
7359
7360
7361 eval "$ac_cv_use_tbarsmpl"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7367 echo "$ac_t""yes" 1>&6
7368 else
7369 echo "$ac_t""no" 1>&6
7370 fi
7371
7372
7373 enablestring=
7374 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7375 echo "configure:7376: checking for --${enablestring:-enable}-treectrl" >&5
7376 no_cache=0
7377 # Check whether --enable-treectrl or --disable-treectrl was given.
7378 if test "${enable_treectrl+set}" = set; then
7379 enableval="$enable_treectrl"
7380
7381 if test "$enableval" = yes; then
7382 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7383 else
7384 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7385 fi
7386
7387 else
7388
7389 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7390 if test "x$LINE" != x ; then
7391 eval "DEFAULT_$LINE"
7392 else
7393 no_cache=1
7394 fi
7395
7396 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7397
7398 fi
7399
7400
7401 eval "$ac_cv_use_treectrl"
7402 if test "$no_cache" != 1; then
7403 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7404 fi
7405
7406 if test "$wxUSE_TREECTRL" = yes; then
7407 echo "$ac_t""yes" 1>&6
7408 else
7409 echo "$ac_t""no" 1>&6
7410 fi
7411
7412
7413 enablestring=
7414 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7415 echo "configure:7416: checking for --${enablestring:-enable}-tipwindow" >&5
7416 no_cache=0
7417 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7418 if test "${enable_tipwindow+set}" = set; then
7419 enableval="$enable_tipwindow"
7420
7421 if test "$enableval" = yes; then
7422 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7423 else
7424 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7425 fi
7426
7427 else
7428
7429 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
7436 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7437
7438 fi
7439
7440
7441 eval "$ac_cv_use_tipwindow"
7442 if test "$no_cache" != 1; then
7443 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7444 fi
7445
7446 if test "$wxUSE_TIPWINDOW" = yes; then
7447 echo "$ac_t""yes" 1>&6
7448 else
7449 echo "$ac_t""no" 1>&6
7450 fi
7451
7452
7453 enablestring=
7454 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7455 echo "configure:7456: checking for --${enablestring:-enable}-popupwin" >&5
7456 no_cache=0
7457 # Check whether --enable-popupwin or --disable-popupwin was given.
7458 if test "${enable_popupwin+set}" = set; then
7459 enableval="$enable_popupwin"
7460
7461 if test "$enableval" = yes; then
7462 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7463 else
7464 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7465 fi
7466
7467 else
7468
7469 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7470 if test "x$LINE" != x ; then
7471 eval "DEFAULT_$LINE"
7472 else
7473 no_cache=1
7474 fi
7475
7476 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7477
7478 fi
7479
7480
7481 eval "$ac_cv_use_popupwin"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_POPUPWIN" = yes; then
7487 echo "$ac_t""yes" 1>&6
7488 else
7489 echo "$ac_t""no" 1>&6
7490 fi
7491
7492
7493
7494
7495 enablestring=
7496 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7497 echo "configure:7498: checking for --${enablestring:-enable}-commondlg" >&5
7498 no_cache=0
7499 # Check whether --enable-commondlg or --disable-commondlg was given.
7500 if test "${enable_commondlg+set}" = set; then
7501 enableval="$enable_commondlg"
7502
7503 if test "$enableval" = yes; then
7504 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7505 else
7506 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7507 fi
7508
7509 else
7510
7511 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7512 if test "x$LINE" != x ; then
7513 eval "DEFAULT_$LINE"
7514 else
7515 no_cache=1
7516 fi
7517
7518 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7519
7520 fi
7521
7522
7523 eval "$ac_cv_use_commondlg"
7524 if test "$no_cache" != 1; then
7525 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7526 fi
7527
7528 if test "$wxUSE_COMMONDLGS" = yes; then
7529 echo "$ac_t""yes" 1>&6
7530 else
7531 echo "$ac_t""no" 1>&6
7532 fi
7533
7534
7535 enablestring=
7536 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7537 echo "configure:7538: checking for --${enablestring:-enable}-choicedlg" >&5
7538 no_cache=0
7539 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7540 if test "${enable_choicedlg+set}" = set; then
7541 enableval="$enable_choicedlg"
7542
7543 if test "$enableval" = yes; then
7544 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7545 else
7546 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7547 fi
7548
7549 else
7550
7551 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7552 if test "x$LINE" != x ; then
7553 eval "DEFAULT_$LINE"
7554 else
7555 no_cache=1
7556 fi
7557
7558 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7559
7560 fi
7561
7562
7563 eval "$ac_cv_use_choicedlg"
7564 if test "$no_cache" != 1; then
7565 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7566 fi
7567
7568 if test "$wxUSE_CHOICEDLG" = yes; then
7569 echo "$ac_t""yes" 1>&6
7570 else
7571 echo "$ac_t""no" 1>&6
7572 fi
7573
7574
7575 enablestring=
7576 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7577 echo "configure:7578: checking for --${enablestring:-enable}-coldlg" >&5
7578 no_cache=0
7579 # Check whether --enable-coldlg or --disable-coldlg was given.
7580 if test "${enable_coldlg+set}" = set; then
7581 enableval="$enable_coldlg"
7582
7583 if test "$enableval" = yes; then
7584 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7585 else
7586 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7587 fi
7588
7589 else
7590
7591 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7592 if test "x$LINE" != x ; then
7593 eval "DEFAULT_$LINE"
7594 else
7595 no_cache=1
7596 fi
7597
7598 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7599
7600 fi
7601
7602
7603 eval "$ac_cv_use_coldlg"
7604 if test "$no_cache" != 1; then
7605 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7606 fi
7607
7608 if test "$wxUSE_COLOURDLG" = yes; then
7609 echo "$ac_t""yes" 1>&6
7610 else
7611 echo "$ac_t""no" 1>&6
7612 fi
7613
7614
7615 enablestring=
7616 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7617 echo "configure:7618: checking for --${enablestring:-enable}-filedlg" >&5
7618 no_cache=0
7619 # Check whether --enable-filedlg or --disable-filedlg was given.
7620 if test "${enable_filedlg+set}" = set; then
7621 enableval="$enable_filedlg"
7622
7623 if test "$enableval" = yes; then
7624 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7625 else
7626 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7627 fi
7628
7629 else
7630
7631 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7632 if test "x$LINE" != x ; then
7633 eval "DEFAULT_$LINE"
7634 else
7635 no_cache=1
7636 fi
7637
7638 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7639
7640 fi
7641
7642
7643 eval "$ac_cv_use_filedlg"
7644 if test "$no_cache" != 1; then
7645 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7646 fi
7647
7648 if test "$wxUSE_FILEDLG" = yes; then
7649 echo "$ac_t""yes" 1>&6
7650 else
7651 echo "$ac_t""no" 1>&6
7652 fi
7653
7654
7655 enablestring=
7656 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7657 echo "configure:7658: checking for --${enablestring:-enable}-finddlg" >&5
7658 no_cache=0
7659 # Check whether --enable-finddlg or --disable-finddlg was given.
7660 if test "${enable_finddlg+set}" = set; then
7661 enableval="$enable_finddlg"
7662
7663 if test "$enableval" = yes; then
7664 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7665 else
7666 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7667 fi
7668
7669 else
7670
7671 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7672 if test "x$LINE" != x ; then
7673 eval "DEFAULT_$LINE"
7674 else
7675 no_cache=1
7676 fi
7677
7678 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7679
7680 fi
7681
7682
7683 eval "$ac_cv_use_finddlg"
7684 if test "$no_cache" != 1; then
7685 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7686 fi
7687
7688 if test "$wxUSE_FINDREPLDLG" = yes; then
7689 echo "$ac_t""yes" 1>&6
7690 else
7691 echo "$ac_t""no" 1>&6
7692 fi
7693
7694
7695 enablestring=
7696 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7697 echo "configure:7698: checking for --${enablestring:-enable}-fontdlg" >&5
7698 no_cache=0
7699 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7700 if test "${enable_fontdlg+set}" = set; then
7701 enableval="$enable_fontdlg"
7702
7703 if test "$enableval" = yes; then
7704 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7705 else
7706 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7707 fi
7708
7709 else
7710
7711 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7712 if test "x$LINE" != x ; then
7713 eval "DEFAULT_$LINE"
7714 else
7715 no_cache=1
7716 fi
7717
7718 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7719
7720 fi
7721
7722
7723 eval "$ac_cv_use_fontdlg"
7724 if test "$no_cache" != 1; then
7725 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7726 fi
7727
7728 if test "$wxUSE_FONTDLG" = yes; then
7729 echo "$ac_t""yes" 1>&6
7730 else
7731 echo "$ac_t""no" 1>&6
7732 fi
7733
7734
7735 enablestring=
7736 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7737 echo "configure:7738: checking for --${enablestring:-enable}-dirdlg" >&5
7738 no_cache=0
7739 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7740 if test "${enable_dirdlg+set}" = set; then
7741 enableval="$enable_dirdlg"
7742
7743 if test "$enableval" = yes; then
7744 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7745 else
7746 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7747 fi
7748
7749 else
7750
7751 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7752 if test "x$LINE" != x ; then
7753 eval "DEFAULT_$LINE"
7754 else
7755 no_cache=1
7756 fi
7757
7758 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7759
7760 fi
7761
7762
7763 eval "$ac_cv_use_dirdlg"
7764 if test "$no_cache" != 1; then
7765 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7766 fi
7767
7768 if test "$wxUSE_DIRDLG" = yes; then
7769 echo "$ac_t""yes" 1>&6
7770 else
7771 echo "$ac_t""no" 1>&6
7772 fi
7773
7774
7775 enablestring=
7776 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7777 echo "configure:7778: checking for --${enablestring:-enable}-msgdlg" >&5
7778 no_cache=0
7779 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7780 if test "${enable_msgdlg+set}" = set; then
7781 enableval="$enable_msgdlg"
7782
7783 if test "$enableval" = yes; then
7784 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7785 else
7786 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7787 fi
7788
7789 else
7790
7791 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7792 if test "x$LINE" != x ; then
7793 eval "DEFAULT_$LINE"
7794 else
7795 no_cache=1
7796 fi
7797
7798 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7799
7800 fi
7801
7802
7803 eval "$ac_cv_use_msgdlg"
7804 if test "$no_cache" != 1; then
7805 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7806 fi
7807
7808 if test "$wxUSE_MSGDLG" = yes; then
7809 echo "$ac_t""yes" 1>&6
7810 else
7811 echo "$ac_t""no" 1>&6
7812 fi
7813
7814
7815 enablestring=
7816 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7817 echo "configure:7818: checking for --${enablestring:-enable}-numberdlg" >&5
7818 no_cache=0
7819 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7820 if test "${enable_numberdlg+set}" = set; then
7821 enableval="$enable_numberdlg"
7822
7823 if test "$enableval" = yes; then
7824 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7825 else
7826 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7827 fi
7828
7829 else
7830
7831 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7832 if test "x$LINE" != x ; then
7833 eval "DEFAULT_$LINE"
7834 else
7835 no_cache=1
7836 fi
7837
7838 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7839
7840 fi
7841
7842
7843 eval "$ac_cv_use_numberdlg"
7844 if test "$no_cache" != 1; then
7845 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7846 fi
7847
7848 if test "$wxUSE_NUMBERDLG" = yes; then
7849 echo "$ac_t""yes" 1>&6
7850 else
7851 echo "$ac_t""no" 1>&6
7852 fi
7853
7854
7855 enablestring=
7856 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7857 echo "configure:7858: checking for --${enablestring:-enable}-splash" >&5
7858 no_cache=0
7859 # Check whether --enable-splash or --disable-splash was given.
7860 if test "${enable_splash+set}" = set; then
7861 enableval="$enable_splash"
7862
7863 if test "$enableval" = yes; then
7864 ac_cv_use_splash='wxUSE_SPLASH=yes'
7865 else
7866 ac_cv_use_splash='wxUSE_SPLASH=no'
7867 fi
7868
7869 else
7870
7871 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7872 if test "x$LINE" != x ; then
7873 eval "DEFAULT_$LINE"
7874 else
7875 no_cache=1
7876 fi
7877
7878 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7879
7880 fi
7881
7882
7883 eval "$ac_cv_use_splash"
7884 if test "$no_cache" != 1; then
7885 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7886 fi
7887
7888 if test "$wxUSE_SPLASH" = yes; then
7889 echo "$ac_t""yes" 1>&6
7890 else
7891 echo "$ac_t""no" 1>&6
7892 fi
7893
7894
7895 enablestring=
7896 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7897 echo "configure:7898: checking for --${enablestring:-enable}-textdlg" >&5
7898 no_cache=0
7899 # Check whether --enable-textdlg or --disable-textdlg was given.
7900 if test "${enable_textdlg+set}" = set; then
7901 enableval="$enable_textdlg"
7902
7903 if test "$enableval" = yes; then
7904 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7905 else
7906 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7907 fi
7908
7909 else
7910
7911 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7912 if test "x$LINE" != x ; then
7913 eval "DEFAULT_$LINE"
7914 else
7915 no_cache=1
7916 fi
7917
7918 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7919
7920 fi
7921
7922
7923 eval "$ac_cv_use_textdlg"
7924 if test "$no_cache" != 1; then
7925 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7926 fi
7927
7928 if test "$wxUSE_TEXTDLG" = yes; then
7929 echo "$ac_t""yes" 1>&6
7930 else
7931 echo "$ac_t""no" 1>&6
7932 fi
7933
7934
7935 enablestring=
7936 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7937 echo "configure:7938: checking for --${enablestring:-enable}-tipdlg" >&5
7938 no_cache=0
7939 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7940 if test "${enable_tipdlg+set}" = set; then
7941 enableval="$enable_tipdlg"
7942
7943 if test "$enableval" = yes; then
7944 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7945 else
7946 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7947 fi
7948
7949 else
7950
7951 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7952 if test "x$LINE" != x ; then
7953 eval "DEFAULT_$LINE"
7954 else
7955 no_cache=1
7956 fi
7957
7958 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7959
7960 fi
7961
7962
7963 eval "$ac_cv_use_tipdlg"
7964 if test "$no_cache" != 1; then
7965 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7966 fi
7967
7968 if test "$wxUSE_STARTUP_TIPS" = yes; then
7969 echo "$ac_t""yes" 1>&6
7970 else
7971 echo "$ac_t""no" 1>&6
7972 fi
7973
7974
7975 enablestring=
7976 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7977 echo "configure:7978: checking for --${enablestring:-enable}-progressdlg" >&5
7978 no_cache=0
7979 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7980 if test "${enable_progressdlg+set}" = set; then
7981 enableval="$enable_progressdlg"
7982
7983 if test "$enableval" = yes; then
7984 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7985 else
7986 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7987 fi
7988
7989 else
7990
7991 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7999
8000 fi
8001
8002
8003 eval "$ac_cv_use_progressdlg"
8004 if test "$no_cache" != 1; then
8005 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8006 fi
8007
8008 if test "$wxUSE_PROGRESSDLG" = yes; then
8009 echo "$ac_t""yes" 1>&6
8010 else
8011 echo "$ac_t""no" 1>&6
8012 fi
8013
8014
8015 enablestring=
8016 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8017 echo "configure:8018: checking for --${enablestring:-enable}-wizarddlg" >&5
8018 no_cache=0
8019 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8020 if test "${enable_wizarddlg+set}" = set; then
8021 enableval="$enable_wizarddlg"
8022
8023 if test "$enableval" = yes; then
8024 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8025 else
8026 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8027 fi
8028
8029 else
8030
8031 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8032 if test "x$LINE" != x ; then
8033 eval "DEFAULT_$LINE"
8034 else
8035 no_cache=1
8036 fi
8037
8038 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8039
8040 fi
8041
8042
8043 eval "$ac_cv_use_wizarddlg"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_WIZARDDLG" = yes; then
8049 echo "$ac_t""yes" 1>&6
8050 else
8051 echo "$ac_t""no" 1>&6
8052 fi
8053
8054
8055
8056
8057 enablestring=
8058 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8059 echo "configure:8060: checking for --${enablestring:-enable}-menus" >&5
8060 no_cache=0
8061 # Check whether --enable-menus or --disable-menus was given.
8062 if test "${enable_menus+set}" = set; then
8063 enableval="$enable_menus"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_menus='wxUSE_MENUS=yes'
8067 else
8068 ac_cv_use_menus='wxUSE_MENUS=no'
8069 fi
8070
8071 else
8072
8073 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8081
8082 fi
8083
8084
8085 eval "$ac_cv_use_menus"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_MENUS" = yes; then
8091 echo "$ac_t""yes" 1>&6
8092 else
8093 echo "$ac_t""no" 1>&6
8094 fi
8095
8096
8097 enablestring=
8098 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8099 echo "configure:8100: checking for --${enablestring:-enable}-miniframe" >&5
8100 no_cache=0
8101 # Check whether --enable-miniframe or --disable-miniframe was given.
8102 if test "${enable_miniframe+set}" = set; then
8103 enableval="$enable_miniframe"
8104
8105 if test "$enableval" = yes; then
8106 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8107 else
8108 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8109 fi
8110
8111 else
8112
8113 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8114 if test "x$LINE" != x ; then
8115 eval "DEFAULT_$LINE"
8116 else
8117 no_cache=1
8118 fi
8119
8120 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8121
8122 fi
8123
8124
8125 eval "$ac_cv_use_miniframe"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_MINIFRAME" = yes; then
8131 echo "$ac_t""yes" 1>&6
8132 else
8133 echo "$ac_t""no" 1>&6
8134 fi
8135
8136
8137 enablestring=
8138 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8139 echo "configure:8140: checking for --${enablestring:-enable}-tooltips" >&5
8140 no_cache=0
8141 # Check whether --enable-tooltips or --disable-tooltips was given.
8142 if test "${enable_tooltips+set}" = set; then
8143 enableval="$enable_tooltips"
8144
8145 if test "$enableval" = yes; then
8146 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8147 else
8148 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8149 fi
8150
8151 else
8152
8153 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8161
8162 fi
8163
8164
8165 eval "$ac_cv_use_tooltips"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_TOOLTIPS" = yes; then
8171 echo "$ac_t""yes" 1>&6
8172 else
8173 echo "$ac_t""no" 1>&6
8174 fi
8175
8176
8177 enablestring=
8178 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8179 echo "configure:8180: checking for --${enablestring:-enable}-splines" >&5
8180 no_cache=0
8181 # Check whether --enable-splines or --disable-splines was given.
8182 if test "${enable_splines+set}" = set; then
8183 enableval="$enable_splines"
8184
8185 if test "$enableval" = yes; then
8186 ac_cv_use_splines='wxUSE_SPLINES=yes'
8187 else
8188 ac_cv_use_splines='wxUSE_SPLINES=no'
8189 fi
8190
8191 else
8192
8193 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8194 if test "x$LINE" != x ; then
8195 eval "DEFAULT_$LINE"
8196 else
8197 no_cache=1
8198 fi
8199
8200 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8201
8202 fi
8203
8204
8205 eval "$ac_cv_use_splines"
8206 if test "$no_cache" != 1; then
8207 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8208 fi
8209
8210 if test "$wxUSE_SPLINES" = yes; then
8211 echo "$ac_t""yes" 1>&6
8212 else
8213 echo "$ac_t""no" 1>&6
8214 fi
8215
8216
8217 enablestring=
8218 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8219 echo "configure:8220: checking for --${enablestring:-enable}-validators" >&5
8220 no_cache=0
8221 # Check whether --enable-validators or --disable-validators was given.
8222 if test "${enable_validators+set}" = set; then
8223 enableval="$enable_validators"
8224
8225 if test "$enableval" = yes; then
8226 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8227 else
8228 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8229 fi
8230
8231 else
8232
8233 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8234 if test "x$LINE" != x ; then
8235 eval "DEFAULT_$LINE"
8236 else
8237 no_cache=1
8238 fi
8239
8240 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8241
8242 fi
8243
8244
8245 eval "$ac_cv_use_validators"
8246 if test "$no_cache" != 1; then
8247 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8248 fi
8249
8250 if test "$wxUSE_VALIDATORS" = yes; then
8251 echo "$ac_t""yes" 1>&6
8252 else
8253 echo "$ac_t""no" 1>&6
8254 fi
8255
8256
8257 enablestring=
8258 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8259 echo "configure:8260: checking for --${enablestring:-enable}-busyinfo" >&5
8260 no_cache=0
8261 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8262 if test "${enable_busyinfo+set}" = set; then
8263 enableval="$enable_busyinfo"
8264
8265 if test "$enableval" = yes; then
8266 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8267 else
8268 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8269 fi
8270
8271 else
8272
8273 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8274 if test "x$LINE" != x ; then
8275 eval "DEFAULT_$LINE"
8276 else
8277 no_cache=1
8278 fi
8279
8280 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8281
8282 fi
8283
8284
8285 eval "$ac_cv_use_busyinfo"
8286 if test "$no_cache" != 1; then
8287 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8288 fi
8289
8290 if test "$wxUSE_BUSYINFO" = yes; then
8291 echo "$ac_t""yes" 1>&6
8292 else
8293 echo "$ac_t""no" 1>&6
8294 fi
8295
8296
8297 enablestring=
8298 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8299 echo "configure:8300: checking for --${enablestring:-enable}-joystick" >&5
8300 no_cache=0
8301 # Check whether --enable-joystick or --disable-joystick was given.
8302 if test "${enable_joystick+set}" = set; then
8303 enableval="$enable_joystick"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8307 else
8308 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8309 fi
8310
8311 else
8312
8313 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8321
8322 fi
8323
8324
8325 eval "$ac_cv_use_joystick"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_JOYSTICK" = yes; then
8331 echo "$ac_t""yes" 1>&6
8332 else
8333 echo "$ac_t""no" 1>&6
8334 fi
8335
8336
8337 enablestring=
8338 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8339 echo "configure:8340: checking for --${enablestring:-enable}-metafile" >&5
8340 no_cache=0
8341 # Check whether --enable-metafile or --disable-metafile was given.
8342 if test "${enable_metafile+set}" = set; then
8343 enableval="$enable_metafile"
8344
8345 if test "$enableval" = yes; then
8346 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8347 else
8348 ac_cv_use_metafile='wxUSE_METAFILE=no'
8349 fi
8350
8351 else
8352
8353 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8354 if test "x$LINE" != x ; then
8355 eval "DEFAULT_$LINE"
8356 else
8357 no_cache=1
8358 fi
8359
8360 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8361
8362 fi
8363
8364
8365 eval "$ac_cv_use_metafile"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_METAFILE" = yes; then
8371 echo "$ac_t""yes" 1>&6
8372 else
8373 echo "$ac_t""no" 1>&6
8374 fi
8375
8376
8377 enablestring=
8378 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8379 echo "configure:8380: checking for --${enablestring:-enable}-dragimage" >&5
8380 no_cache=0
8381 # Check whether --enable-dragimage or --disable-dragimage was given.
8382 if test "${enable_dragimage+set}" = set; then
8383 enableval="$enable_dragimage"
8384
8385 if test "$enableval" = yes; then
8386 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8387 else
8388 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8389 fi
8390
8391 else
8392
8393 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8394 if test "x$LINE" != x ; then
8395 eval "DEFAULT_$LINE"
8396 else
8397 no_cache=1
8398 fi
8399
8400 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8401
8402 fi
8403
8404
8405 eval "$ac_cv_use_dragimage"
8406 if test "$no_cache" != 1; then
8407 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8408 fi
8409
8410 if test "$wxUSE_DRAGIMAGE" = yes; then
8411 echo "$ac_t""yes" 1>&6
8412 else
8413 echo "$ac_t""no" 1>&6
8414 fi
8415
8416
8417
8418
8419 enablestring=
8420 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8421 echo "configure:8422: checking for --${enablestring:-enable}-palette" >&5
8422 no_cache=0
8423 # Check whether --enable-palette or --disable-palette was given.
8424 if test "${enable_palette+set}" = set; then
8425 enableval="$enable_palette"
8426
8427 if test "$enableval" = yes; then
8428 ac_cv_use_palette='wxUSE_PALETTE=yes'
8429 else
8430 ac_cv_use_palette='wxUSE_PALETTE=no'
8431 fi
8432
8433 else
8434
8435 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8436 if test "x$LINE" != x ; then
8437 eval "DEFAULT_$LINE"
8438 else
8439 no_cache=1
8440 fi
8441
8442 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8443
8444 fi
8445
8446
8447 eval "$ac_cv_use_palette"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_PALETTE" = yes; then
8453 echo "$ac_t""yes" 1>&6
8454 else
8455 echo "$ac_t""no" 1>&6
8456 fi
8457
8458
8459 enablestring=
8460 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8461 echo "configure:8462: checking for --${enablestring:-enable}-image" >&5
8462 no_cache=0
8463 # Check whether --enable-image or --disable-image was given.
8464 if test "${enable_image+set}" = set; then
8465 enableval="$enable_image"
8466
8467 if test "$enableval" = yes; then
8468 ac_cv_use_image='wxUSE_IMAGE=yes'
8469 else
8470 ac_cv_use_image='wxUSE_IMAGE=no'
8471 fi
8472
8473 else
8474
8475 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8476 if test "x$LINE" != x ; then
8477 eval "DEFAULT_$LINE"
8478 else
8479 no_cache=1
8480 fi
8481
8482 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8483
8484 fi
8485
8486
8487 eval "$ac_cv_use_image"
8488 if test "$no_cache" != 1; then
8489 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8490 fi
8491
8492 if test "$wxUSE_IMAGE" = yes; then
8493 echo "$ac_t""yes" 1>&6
8494 else
8495 echo "$ac_t""no" 1>&6
8496 fi
8497
8498
8499 enablestring=
8500 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8501 echo "configure:8502: checking for --${enablestring:-enable}-gif" >&5
8502 no_cache=0
8503 # Check whether --enable-gif or --disable-gif was given.
8504 if test "${enable_gif+set}" = set; then
8505 enableval="$enable_gif"
8506
8507 if test "$enableval" = yes; then
8508 ac_cv_use_gif='wxUSE_GIF=yes'
8509 else
8510 ac_cv_use_gif='wxUSE_GIF=no'
8511 fi
8512
8513 else
8514
8515 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8516 if test "x$LINE" != x ; then
8517 eval "DEFAULT_$LINE"
8518 else
8519 no_cache=1
8520 fi
8521
8522 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8523
8524 fi
8525
8526
8527 eval "$ac_cv_use_gif"
8528 if test "$no_cache" != 1; then
8529 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8530 fi
8531
8532 if test "$wxUSE_GIF" = yes; then
8533 echo "$ac_t""yes" 1>&6
8534 else
8535 echo "$ac_t""no" 1>&6
8536 fi
8537
8538
8539 enablestring=
8540 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8541 echo "configure:8542: checking for --${enablestring:-enable}-pcx" >&5
8542 no_cache=0
8543 # Check whether --enable-pcx or --disable-pcx was given.
8544 if test "${enable_pcx+set}" = set; then
8545 enableval="$enable_pcx"
8546
8547 if test "$enableval" = yes; then
8548 ac_cv_use_pcx='wxUSE_PCX=yes'
8549 else
8550 ac_cv_use_pcx='wxUSE_PCX=no'
8551 fi
8552
8553 else
8554
8555 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
8562 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8563
8564 fi
8565
8566
8567 eval "$ac_cv_use_pcx"
8568 if test "$no_cache" != 1; then
8569 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8570 fi
8571
8572 if test "$wxUSE_PCX" = yes; then
8573 echo "$ac_t""yes" 1>&6
8574 else
8575 echo "$ac_t""no" 1>&6
8576 fi
8577
8578
8579 enablestring=
8580 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8581 echo "configure:8582: checking for --${enablestring:-enable}-iff" >&5
8582 no_cache=0
8583 # Check whether --enable-iff or --disable-iff was given.
8584 if test "${enable_iff+set}" = set; then
8585 enableval="$enable_iff"
8586
8587 if test "$enableval" = yes; then
8588 ac_cv_use_iff='wxUSE_IFF=yes'
8589 else
8590 ac_cv_use_iff='wxUSE_IFF=no'
8591 fi
8592
8593 else
8594
8595 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8596 if test "x$LINE" != x ; then
8597 eval "DEFAULT_$LINE"
8598 else
8599 no_cache=1
8600 fi
8601
8602 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8603
8604 fi
8605
8606
8607 eval "$ac_cv_use_iff"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_IFF" = yes; then
8613 echo "$ac_t""yes" 1>&6
8614 else
8615 echo "$ac_t""no" 1>&6
8616 fi
8617
8618
8619 enablestring=
8620 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8621 echo "configure:8622: checking for --${enablestring:-enable}-pnm" >&5
8622 no_cache=0
8623 # Check whether --enable-pnm or --disable-pnm was given.
8624 if test "${enable_pnm+set}" = set; then
8625 enableval="$enable_pnm"
8626
8627 if test "$enableval" = yes; then
8628 ac_cv_use_pnm='wxUSE_PNM=yes'
8629 else
8630 ac_cv_use_pnm='wxUSE_PNM=no'
8631 fi
8632
8633 else
8634
8635 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8636 if test "x$LINE" != x ; then
8637 eval "DEFAULT_$LINE"
8638 else
8639 no_cache=1
8640 fi
8641
8642 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8643
8644 fi
8645
8646
8647 eval "$ac_cv_use_pnm"
8648 if test "$no_cache" != 1; then
8649 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8650 fi
8651
8652 if test "$wxUSE_PNM" = yes; then
8653 echo "$ac_t""yes" 1>&6
8654 else
8655 echo "$ac_t""no" 1>&6
8656 fi
8657
8658
8659 enablestring=
8660 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8661 echo "configure:8662: checking for --${enablestring:-enable}-xpm" >&5
8662 no_cache=0
8663 # Check whether --enable-xpm or --disable-xpm was given.
8664 if test "${enable_xpm+set}" = set; then
8665 enableval="$enable_xpm"
8666
8667 if test "$enableval" = yes; then
8668 ac_cv_use_xpm='wxUSE_XPM=yes'
8669 else
8670 ac_cv_use_xpm='wxUSE_XPM=no'
8671 fi
8672
8673 else
8674
8675 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8676 if test "x$LINE" != x ; then
8677 eval "DEFAULT_$LINE"
8678 else
8679 no_cache=1
8680 fi
8681
8682 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8683
8684 fi
8685
8686
8687 eval "$ac_cv_use_xpm"
8688 if test "$no_cache" != 1; then
8689 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8690 fi
8691
8692 if test "$wxUSE_XPM" = yes; then
8693 echo "$ac_t""yes" 1>&6
8694 else
8695 echo "$ac_t""no" 1>&6
8696 fi
8697
8698
8699 enablestring=
8700 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8701 echo "configure:8702: checking for --${enablestring:-enable}-ico_cur" >&5
8702 no_cache=0
8703 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8704 if test "${enable_ico_cur+set}" = set; then
8705 enableval="$enable_ico_cur"
8706
8707 if test "$enableval" = yes; then
8708 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8709 else
8710 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8711 fi
8712
8713 else
8714
8715 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8716 if test "x$LINE" != x ; then
8717 eval "DEFAULT_$LINE"
8718 else
8719 no_cache=1
8720 fi
8721
8722 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8723
8724 fi
8725
8726
8727 eval "$ac_cv_use_ico_cur"
8728 if test "$no_cache" != 1; then
8729 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8730 fi
8731
8732 if test "$wxUSE_ICO_CUR" = yes; then
8733 echo "$ac_t""yes" 1>&6
8734 else
8735 echo "$ac_t""no" 1>&6
8736 fi
8737
8738
8739 fi
8740
8741 case "${host}" in
8742 *-pc-os2_emx | *-pc-os2-emx )
8743 PATH_IFS=';'
8744 LEX_STEM="lexyy"
8745 ;;
8746 *)
8747 PATH_IFS=':'
8748 LEX_STEM="lex.yy"
8749 ;;
8750 esac
8751
8752
8753
8754 echo "saving argument cache $wx_arg_cache_file"
8755 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8756
8757
8758
8759 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8760 echo "configure:8761: checking for toolkit" >&5
8761
8762 # In Wine, we need to default to MSW, not GTK or MOTIF
8763 if test "$wxUSE_WINE" = "yes"; then
8764 DEFAULT_DEFAULT_wxUSE_GTK=0
8765 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8766 DEFAULT_DEFAULT_wxUSE_MSW=1
8767 fi
8768
8769 if test "$wxUSE_GUI" = "yes"; then
8770
8771 if test "$USE_BEOS" = 1; then
8772 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8773 fi
8774
8775 if test "$TOOLKIT_GIVEN" = 1; then
8776 for toolkit in `echo $ALL_TOOLKITS`; do
8777 var=wxUSE_$toolkit
8778 eval "value=\$${var}"
8779 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8780 done
8781 else
8782 for toolkit in `echo $ALL_TOOLKITS`; do
8783 if test "$has_toolkit_in_cache" != 1; then
8784 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8785 else
8786 var=DEFAULT_wxUSE_$toolkit
8787 fi
8788 eval "wxUSE_$toolkit=\$${var}"
8789 done
8790 fi
8791
8792 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8793 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8794 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8795
8796 case "${host}" in
8797 *-pc-os2_emx | *-pc-os2-emx )
8798 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8799 esac
8800
8801 case "$NUM_TOOLKITS" in
8802 1)
8803 ;;
8804 0)
8805 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8806 ;;
8807 *)
8808 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8809 esac
8810
8811 for toolkit in `echo $ALL_TOOLKITS`; do
8812 var=wxUSE_$toolkit
8813 eval "value=\$${var}"
8814 if test "x$value" != x; then
8815 cache_var=CACHE_$toolkit
8816 eval "cache=\$${cache_var}"
8817 if test "$cache" = 1; then
8818 echo "$var=$value" >> ${wx_arg_cache_file}
8819 fi
8820 if test "$value" = 1; then
8821 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8822 echo "$ac_t""$toolkit_echo" 1>&6
8823 fi
8824 fi
8825 done
8826 else
8827 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8828 fi
8829
8830 wants_win32=0
8831 doesnt_want_win32=0
8832 case "${host}" in
8833 *-*-cygwin*)
8834 if test "$wxUSE_MSW" = 1 ; then
8835 wants_win32=1
8836 else
8837 doesnt_want_win32=1
8838 fi
8839 ;;
8840 *-*-mingw*)
8841 wants_win32=1
8842 ;;
8843 esac
8844
8845 if test "$wxUSE_WINE" = "yes"; then
8846 wants_win32=1
8847 CC=winegcc
8848 CXX=wineg++
8849 RESCOMP=wrc
8850 fi
8851
8852 if test "$wants_win32" = 1 ; then
8853 USE_UNIX=0
8854 USE_WIN32=1
8855 cat >> confdefs.h <<\EOF
8856 #define __WIN32__ 1
8857 EOF
8858
8859 cat >> confdefs.h <<\EOF
8860 #define __WIN95__ 1
8861 EOF
8862
8863 cat >> confdefs.h <<\EOF
8864 #define __WINDOWS__ 1
8865 EOF
8866
8867 cat >> confdefs.h <<\EOF
8868 #define __GNUWIN32__ 1
8869 EOF
8870
8871 cat >> confdefs.h <<\EOF
8872 #define STRICT 1
8873 EOF
8874
8875 cat >> confdefs.h <<\EOF
8876 #define WINVER 0x0400
8877 EOF
8878
8879 fi
8880 if test "$doesnt_want_win32" = 1 ; then
8881 USE_UNIX=1
8882 USE_WIN32=0
8883 fi
8884
8885 if test "$USE_UNIX" = 1 ; then
8886 wxUSE_UNIX=yes
8887 cat >> confdefs.h <<\EOF
8888 #define __UNIX__ 1
8889 EOF
8890
8891 fi
8892
8893
8894 cat > confcache <<\EOF
8895 # This file is a shell script that caches the results of configure
8896 # tests run on this system so they can be shared between configure
8897 # scripts and configure runs. It is not useful on other systems.
8898 # If it contains results you don't want to keep, you may remove or edit it.
8899 #
8900 # By default, configure uses ./config.cache as the cache file,
8901 # creating it if it does not exist already. You can give configure
8902 # the --cache-file=FILE option to use a different cache file; that is
8903 # what configure does when it calls configure scripts in
8904 # subdirectories, so they share the cache.
8905 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8906 # config.status only pays attention to the cache file if you give it the
8907 # --recheck option to rerun configure.
8908 #
8909 EOF
8910 # The following way of writing the cache mishandles newlines in values,
8911 # but we know of no workaround that is simple, portable, and efficient.
8912 # So, don't put newlines in cache variables' values.
8913 # Ultrix sh set writes to stderr and can't be redirected directly,
8914 # and sets the high bit in the cache file unless we assign to the vars.
8915 (set) 2>&1 |
8916 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8917 *ac_space=\ *)
8918 # `set' does not quote correctly, so add quotes (double-quote substitution
8919 # turns \\\\ into \\, and sed turns \\ into \).
8920 sed -n \
8921 -e "s/'/'\\\\''/g" \
8922 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8923 ;;
8924 *)
8925 # `set' quotes correctly as required by POSIX, so do not add quotes.
8926 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8927 ;;
8928 esac >> confcache
8929 if cmp -s $cache_file confcache; then
8930 :
8931 else
8932 if test -w $cache_file; then
8933 echo "updating cache $cache_file"
8934 cat confcache > $cache_file
8935 else
8936 echo "not updating unwritable cache $cache_file"
8937 fi
8938 fi
8939 rm -f confcache
8940
8941
8942 if test "$build" != "$host" ; then
8943 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8944 CC=$host_alias-gcc
8945 CXX=$host_alias-c++
8946 AR=$host_alias-ar
8947 RANLIB=$host_alias-ranlib
8948 DLLTOOL=$host_alias-dlltool
8949 RESCOMP=$host_alias-windres
8950 LD=$host_alias-ld
8951 NM=$host_alias-nm
8952 STRIP=$host_alias-strip
8953 else
8954 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8955 fi
8956 fi
8957
8958 CFLAGS=${CFLAGS:=}
8959 # Extract the first word of "gcc", so it can be a program name with args.
8960 set dummy gcc; ac_word=$2
8961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8962 echo "configure:8963: checking for $ac_word" >&5
8963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8965 else
8966 if test -n "$CC"; then
8967 ac_cv_prog_CC="$CC" # Let the user override the test.
8968 else
8969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8970 ac_dummy="$PATH"
8971 for ac_dir in $ac_dummy; do
8972 test -z "$ac_dir" && ac_dir=.
8973 if test -f $ac_dir/$ac_word; then
8974 ac_cv_prog_CC="gcc"
8975 break
8976 fi
8977 done
8978 IFS="$ac_save_ifs"
8979 fi
8980 fi
8981 CC="$ac_cv_prog_CC"
8982 if test -n "$CC"; then
8983 echo "$ac_t""$CC" 1>&6
8984 else
8985 echo "$ac_t""no" 1>&6
8986 fi
8987
8988 if test -z "$CC"; then
8989 # Extract the first word of "cc", so it can be a program name with args.
8990 set dummy cc; ac_word=$2
8991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8992 echo "configure:8993: checking for $ac_word" >&5
8993 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8994 echo $ac_n "(cached) $ac_c" 1>&6
8995 else
8996 if test -n "$CC"; then
8997 ac_cv_prog_CC="$CC" # Let the user override the test.
8998 else
8999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9000 ac_prog_rejected=no
9001 ac_dummy="$PATH"
9002 for ac_dir in $ac_dummy; do
9003 test -z "$ac_dir" && ac_dir=.
9004 if test -f $ac_dir/$ac_word; then
9005 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9006 ac_prog_rejected=yes
9007 continue
9008 fi
9009 ac_cv_prog_CC="cc"
9010 break
9011 fi
9012 done
9013 IFS="$ac_save_ifs"
9014 if test $ac_prog_rejected = yes; then
9015 # We found a bogon in the path, so make sure we never use it.
9016 set dummy $ac_cv_prog_CC
9017 shift
9018 if test $# -gt 0; then
9019 # We chose a different compiler from the bogus one.
9020 # However, it has the same basename, so the bogon will be chosen
9021 # first if we set CC to just the basename; use the full file name.
9022 shift
9023 set dummy "$ac_dir/$ac_word" "$@"
9024 shift
9025 ac_cv_prog_CC="$@"
9026 fi
9027 fi
9028 fi
9029 fi
9030 CC="$ac_cv_prog_CC"
9031 if test -n "$CC"; then
9032 echo "$ac_t""$CC" 1>&6
9033 else
9034 echo "$ac_t""no" 1>&6
9035 fi
9036
9037 if test -z "$CC"; then
9038 case "`uname -s`" in
9039 *win32* | *WIN32*)
9040 # Extract the first word of "cl", so it can be a program name with args.
9041 set dummy cl; ac_word=$2
9042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9043 echo "configure:9044: checking for $ac_word" >&5
9044 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9046 else
9047 if test -n "$CC"; then
9048 ac_cv_prog_CC="$CC" # Let the user override the test.
9049 else
9050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9051 ac_dummy="$PATH"
9052 for ac_dir in $ac_dummy; do
9053 test -z "$ac_dir" && ac_dir=.
9054 if test -f $ac_dir/$ac_word; then
9055 ac_cv_prog_CC="cl"
9056 break
9057 fi
9058 done
9059 IFS="$ac_save_ifs"
9060 fi
9061 fi
9062 CC="$ac_cv_prog_CC"
9063 if test -n "$CC"; then
9064 echo "$ac_t""$CC" 1>&6
9065 else
9066 echo "$ac_t""no" 1>&6
9067 fi
9068 ;;
9069 esac
9070 fi
9071 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9072 fi
9073
9074 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9075 echo "configure:9076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9076
9077 ac_ext=c
9078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9079 ac_cpp='$CPP $CPPFLAGS'
9080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9082 cross_compiling=$ac_cv_prog_cc_cross
9083
9084 cat > conftest.$ac_ext << EOF
9085
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9088
9089 main(){return(0);}
9090 EOF
9091 if { (eval echo configure:9092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9092 ac_cv_prog_cc_works=yes
9093 # If we can't run a trivial program, we are probably using a cross compiler.
9094 if (./conftest; exit) 2>/dev/null; then
9095 ac_cv_prog_cc_cross=no
9096 else
9097 ac_cv_prog_cc_cross=yes
9098 fi
9099 else
9100 echo "configure: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9102 ac_cv_prog_cc_works=no
9103 fi
9104 rm -fr conftest*
9105 ac_ext=c
9106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9110 cross_compiling=$ac_cv_prog_cc_cross
9111
9112 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9113 if test $ac_cv_prog_cc_works = no; then
9114 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9115 fi
9116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9117 echo "configure:9118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9118 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9119 cross_compiling=$ac_cv_prog_cc_cross
9120
9121 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9122 echo "configure:9123: checking whether we are using GNU C" >&5
9123 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9124 echo $ac_n "(cached) $ac_c" 1>&6
9125 else
9126 cat > conftest.c <<EOF
9127 #ifdef __GNUC__
9128 yes;
9129 #endif
9130 EOF
9131 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9132 ac_cv_prog_gcc=yes
9133 else
9134 ac_cv_prog_gcc=no
9135 fi
9136 fi
9137
9138 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9139
9140 if test $ac_cv_prog_gcc = yes; then
9141 GCC=yes
9142 else
9143 GCC=
9144 fi
9145
9146 ac_test_CFLAGS="${CFLAGS+set}"
9147 ac_save_CFLAGS="$CFLAGS"
9148 CFLAGS=
9149 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9150 echo "configure:9151: checking whether ${CC-cc} accepts -g" >&5
9151 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9153 else
9154 echo 'void f(){}' > conftest.c
9155 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9156 ac_cv_prog_cc_g=yes
9157 else
9158 ac_cv_prog_cc_g=no
9159 fi
9160 rm -f conftest*
9161
9162 fi
9163
9164 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9165 if test "$ac_test_CFLAGS" = set; then
9166 CFLAGS="$ac_save_CFLAGS"
9167 elif test $ac_cv_prog_cc_g = yes; then
9168 if test "$GCC" = yes; then
9169 CFLAGS="-g -O2"
9170 else
9171 CFLAGS="-g"
9172 fi
9173 else
9174 if test "$GCC" = yes; then
9175 CFLAGS="-O2"
9176 else
9177 CFLAGS=
9178 fi
9179 fi
9180
9181
9182 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9183 echo "configure:9184: checking how to run the C preprocessor" >&5
9184 # On Suns, sometimes $CPP names a directory.
9185 if test -n "$CPP" && test -d "$CPP"; then
9186 CPP=
9187 fi
9188 if test -z "$CPP"; then
9189 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9190 echo $ac_n "(cached) $ac_c" 1>&6
9191 else
9192 # This must be in double quotes, not single quotes, because CPP may get
9193 # substituted into the Makefile and "${CC-cc}" will confuse make.
9194 CPP="${CC-cc} -E"
9195 # On the NeXT, cc -E runs the code through the compiler's parser,
9196 # not just through cpp.
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9200 #include <assert.h>
9201 Syntax Error
9202 EOF
9203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9204 { (eval echo configure:9205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9206 if test -z "$ac_err"; then
9207 :
9208 else
9209 echo "$ac_err" >&5
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 rm -rf conftest*
9213 CPP="${CC-cc} -E -traditional-cpp"
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 #include <assert.h>
9218 Syntax Error
9219 EOF
9220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9221 { (eval echo configure:9222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9223 if test -z "$ac_err"; then
9224 :
9225 else
9226 echo "$ac_err" >&5
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 rm -rf conftest*
9230 CPP="${CC-cc} -nologo -E"
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 #include <assert.h>
9235 Syntax Error
9236 EOF
9237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9238 { (eval echo configure:9239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9240 if test -z "$ac_err"; then
9241 :
9242 else
9243 echo "$ac_err" >&5
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 rm -rf conftest*
9247 CPP=/lib/cpp
9248 fi
9249 rm -f conftest*
9250 fi
9251 rm -f conftest*
9252 fi
9253 rm -f conftest*
9254 ac_cv_prog_CPP="$CPP"
9255 fi
9256 CPP="$ac_cv_prog_CPP"
9257 else
9258 ac_cv_prog_CPP="$CPP"
9259 fi
9260 echo "$ac_t""$CPP" 1>&6
9261
9262 if test $ac_cv_prog_gcc = yes; then
9263 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9264 echo "configure:9265: checking whether ${CC-cc} needs -traditional" >&5
9265 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9266 echo $ac_n "(cached) $ac_c" 1>&6
9267 else
9268 ac_pattern="Autoconf.*'x'"
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9272 #include <sgtty.h>
9273 Autoconf TIOCGETP
9274 EOF
9275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9276 egrep "$ac_pattern" >/dev/null 2>&1; then
9277 rm -rf conftest*
9278 ac_cv_prog_gcc_traditional=yes
9279 else
9280 rm -rf conftest*
9281 ac_cv_prog_gcc_traditional=no
9282 fi
9283 rm -f conftest*
9284
9285
9286 if test $ac_cv_prog_gcc_traditional = no; then
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 #include <termio.h>
9291 Autoconf TCGETA
9292 EOF
9293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9294 egrep "$ac_pattern" >/dev/null 2>&1; then
9295 rm -rf conftest*
9296 ac_cv_prog_gcc_traditional=yes
9297 fi
9298 rm -f conftest*
9299
9300 fi
9301 fi
9302
9303 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9304 if test $ac_cv_prog_gcc_traditional = yes; then
9305 CC="$CC -traditional"
9306 fi
9307 fi
9308
9309
9310
9311 ac_ext=C
9312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9313 ac_cpp='$CXXCPP $CPPFLAGS'
9314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9316 cross_compiling=$ac_cv_prog_cxx_cross
9317
9318
9319 CXXFLAGS=${CXXFLAGS:=}
9320 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9321 do
9322 # Extract the first word of "$ac_prog", so it can be a program name with args.
9323 set dummy $ac_prog; ac_word=$2
9324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9325 echo "configure:9326: checking for $ac_word" >&5
9326 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328 else
9329 if test -n "$CXX"; then
9330 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9331 else
9332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9333 ac_dummy="$PATH"
9334 for ac_dir in $ac_dummy; do
9335 test -z "$ac_dir" && ac_dir=.
9336 if test -f $ac_dir/$ac_word; then
9337 ac_cv_prog_CXX="$ac_prog"
9338 break
9339 fi
9340 done
9341 IFS="$ac_save_ifs"
9342 fi
9343 fi
9344 CXX="$ac_cv_prog_CXX"
9345 if test -n "$CXX"; then
9346 echo "$ac_t""$CXX" 1>&6
9347 else
9348 echo "$ac_t""no" 1>&6
9349 fi
9350
9351 test -n "$CXX" && break
9352 done
9353 test -n "$CXX" || CXX="gcc"
9354
9355
9356 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9357 echo "configure:9358: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9358
9359 ac_ext=C
9360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9361 ac_cpp='$CXXCPP $CPPFLAGS'
9362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9364 cross_compiling=$ac_cv_prog_cxx_cross
9365
9366 cat > conftest.$ac_ext << EOF
9367
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9370
9371 int main(){return(0);}
9372 EOF
9373 if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9374 ac_cv_prog_cxx_works=yes
9375 # If we can't run a trivial program, we are probably using a cross compiler.
9376 if (./conftest; exit) 2>/dev/null; then
9377 ac_cv_prog_cxx_cross=no
9378 else
9379 ac_cv_prog_cxx_cross=yes
9380 fi
9381 else
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 ac_cv_prog_cxx_works=no
9385 fi
9386 rm -fr conftest*
9387 ac_ext=C
9388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9389 ac_cpp='$CXXCPP $CPPFLAGS'
9390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9392 cross_compiling=$ac_cv_prog_cxx_cross
9393
9394 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9395 if test $ac_cv_prog_cxx_works = no; then
9396 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9397 fi
9398 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9399 echo "configure:9400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9400 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9401 cross_compiling=$ac_cv_prog_cxx_cross
9402
9403 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9404 echo "configure:9405: checking whether we are using GNU C++" >&5
9405 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407 else
9408 cat > conftest.C <<EOF
9409 #ifdef __GNUC__
9410 yes;
9411 #endif
9412 EOF
9413 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9414 ac_cv_prog_gxx=yes
9415 else
9416 ac_cv_prog_gxx=no
9417 fi
9418 fi
9419
9420 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9421
9422 if test $ac_cv_prog_gxx = yes; then
9423 GXX=yes
9424 else
9425 GXX=
9426 fi
9427
9428 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9429 ac_save_CXXFLAGS="$CXXFLAGS"
9430 CXXFLAGS=
9431 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9432 echo "configure:9433: checking whether ${CXX-g++} accepts -g" >&5
9433 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9435 else
9436 echo 'void f(){}' > conftest.cc
9437 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9438 ac_cv_prog_cxx_g=yes
9439 else
9440 ac_cv_prog_cxx_g=no
9441 fi
9442 rm -f conftest*
9443
9444 fi
9445
9446 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9447 if test "$ac_test_CXXFLAGS" = set; then
9448 CXXFLAGS="$ac_save_CXXFLAGS"
9449 elif test $ac_cv_prog_cxx_g = yes; then
9450 if test "$GXX" = yes; then
9451 CXXFLAGS="-g -O2"
9452 else
9453 CXXFLAGS="-g"
9454 fi
9455 else
9456 if test "$GXX" = yes; then
9457 CXXFLAGS="-O2"
9458 else
9459 CXXFLAGS=
9460 fi
9461 fi
9462
9463
9464 ac_ext=c
9465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9466 ac_cpp='$CPP $CPPFLAGS'
9467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9469 cross_compiling=$ac_cv_prog_cc_cross
9470
9471
9472 # Extract the first word of "ranlib", so it can be a program name with args.
9473 set dummy ranlib; ac_word=$2
9474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9475 echo "configure:9476: checking for $ac_word" >&5
9476 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478 else
9479 if test -n "$RANLIB"; then
9480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9481 else
9482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9483 ac_dummy="$PATH"
9484 for ac_dir in $ac_dummy; do
9485 test -z "$ac_dir" && ac_dir=.
9486 if test -f $ac_dir/$ac_word; then
9487 ac_cv_prog_RANLIB="ranlib"
9488 break
9489 fi
9490 done
9491 IFS="$ac_save_ifs"
9492 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9493 fi
9494 fi
9495 RANLIB="$ac_cv_prog_RANLIB"
9496 if test -n "$RANLIB"; then
9497 echo "$ac_t""$RANLIB" 1>&6
9498 else
9499 echo "$ac_t""no" 1>&6
9500 fi
9501
9502
9503 # Extract the first word of "ar", so it can be a program name with args.
9504 set dummy ar; ac_word=$2
9505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9506 echo "configure:9507: checking for $ac_word" >&5
9507 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9509 else
9510 if test -n "$AR"; then
9511 ac_cv_prog_AR="$AR" # Let the user override the test.
9512 else
9513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9514 ac_dummy="$PATH"
9515 for ac_dir in $ac_dummy; do
9516 test -z "$ac_dir" && ac_dir=.
9517 if test -f $ac_dir/$ac_word; then
9518 ac_cv_prog_AR="ar"
9519 break
9520 fi
9521 done
9522 IFS="$ac_save_ifs"
9523 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9524 fi
9525 fi
9526 AR="$ac_cv_prog_AR"
9527 if test -n "$AR"; then
9528 echo "$ac_t""$AR" 1>&6
9529 else
9530 echo "$ac_t""no" 1>&6
9531 fi
9532
9533
9534 # Find a good install program. We prefer a C program (faster),
9535 # so one script is as good as another. But avoid the broken or
9536 # incompatible versions:
9537 # SysV /etc/install, /usr/sbin/install
9538 # SunOS /usr/etc/install
9539 # IRIX /sbin/install
9540 # AIX /bin/install
9541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9544 # ./install, which can be erroneously created by make from ./install.sh.
9545 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9546 echo "configure:9547: checking for a BSD compatible install" >&5
9547 if test -z "$INSTALL"; then
9548 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9550 else
9551 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9552 for ac_dir in $PATH; do
9553 # Account for people who put trailing slashes in PATH elements.
9554 case "$ac_dir/" in
9555 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9556 *)
9557 # OSF1 and SCO ODT 3.0 have their own names for install.
9558 # Don't use installbsd from OSF since it installs stuff as root
9559 # by default.
9560 for ac_prog in ginstall scoinst install; do
9561 if test -f $ac_dir/$ac_prog; then
9562 if test $ac_prog = install &&
9563 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9564 # AIX install. It has an incompatible calling convention.
9565 :
9566 else
9567 ac_cv_path_install="$ac_dir/$ac_prog -c"
9568 break 2
9569 fi
9570 fi
9571 done
9572 ;;
9573 esac
9574 done
9575 IFS="$ac_save_IFS"
9576
9577 fi
9578 if test "${ac_cv_path_install+set}" = set; then
9579 INSTALL="$ac_cv_path_install"
9580 else
9581 # As a last resort, use the slow shell script. We don't cache a
9582 # path for INSTALL within a source directory, because that will
9583 # break other packages using the cache if that directory is
9584 # removed, or if the path is relative.
9585 INSTALL="$ac_install_sh"
9586 fi
9587 fi
9588 echo "$ac_t""$INSTALL" 1>&6
9589
9590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9591 # It thinks the first close brace ends the variable substitution.
9592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9593
9594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9595
9596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9597
9598
9599 case ${INSTALL} in
9600 /* ) # Absolute
9601 ;;
9602 ?:* ) # Drive letter, considered as absolute.
9603 ;;
9604 *)
9605 INSTALL=`pwd`/${INSTALL} ;;
9606 esac
9607
9608 case ${host} in
9609 *-hp-hpux* )
9610 INSTALL_DIR="mkdir"
9611 ;;
9612
9613 *) INSTALL_DIR="$INSTALL -d"
9614 ;;
9615 esac
9616
9617
9618 case "${host}" in
9619
9620 powerpc-*-darwin* )
9621 INSTALL_PROGRAM="cp -fp"
9622 INSTALL_DATA="cp -fp"
9623 ;;
9624 *)
9625 ;;
9626 esac
9627
9628 # Extract the first word of "strip", so it can be a program name with args.
9629 set dummy strip; ac_word=$2
9630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9631 echo "configure:9632: checking for $ac_word" >&5
9632 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9634 else
9635 if test -n "$STRIP"; then
9636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9637 else
9638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9639 ac_dummy="$PATH"
9640 for ac_dir in $ac_dummy; do
9641 test -z "$ac_dir" && ac_dir=.
9642 if test -f $ac_dir/$ac_word; then
9643 ac_cv_prog_STRIP="strip"
9644 break
9645 fi
9646 done
9647 IFS="$ac_save_ifs"
9648 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9649 fi
9650 fi
9651 STRIP="$ac_cv_prog_STRIP"
9652 if test -n "$STRIP"; then
9653 echo "$ac_t""$STRIP" 1>&6
9654 else
9655 echo "$ac_t""no" 1>&6
9656 fi
9657
9658
9659 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9660 echo "configure:9661: checking if make is GNU make" >&5
9661 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9663 else
9664
9665 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9666 egrep -s GNU > /dev/null); then
9667 wx_cv_prog_makeisgnu="yes"
9668 else
9669 wx_cv_prog_makeisgnu="no"
9670 fi
9671
9672 fi
9673
9674 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9675
9676 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9677 IF_GNU_MAKE=""
9678 else
9679 IF_GNU_MAKE="#"
9680 fi
9681
9682
9683
9684 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9685 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9686 echo "configure:9687: checking if make supports VPATH" >&5
9687 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
9689 else
9690
9691 cat - << EOF > confMake
9692 check : file
9693 cp \$? \$@
9694 cp \$? final_file
9695 EOF
9696
9697 if test ! -d sub ; then
9698 mkdir sub
9699 fi
9700 echo dummy > sub/file
9701 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9702 RESULT=$?
9703 rm -f sub/file check final_file confMake
9704 rmdir sub
9705 if test "$RESULT" = 0; then
9706 wx_cv_prog_makevpath="yes"
9707 else
9708 wx_cv_prog_makevpath="no"
9709 fi
9710
9711 fi
9712
9713 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9714
9715 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9716 { echo "configure: error:
9717 You need a make-utility that is able to use the variable
9718 VPATH correctly.
9719 If your version of make does not support VPATH correctly,
9720 please install GNU-make (possibly as gmake), and start
9721 configure with the following command:
9722 export MAKE=gmake; ./configure for sh-type shells
9723 setenv MAKE gmake; ./configure for csh-type shells
9724 Also please do remember to use gmake in this case every time
9725 you are trying to compile.
9726 " 1>&2; exit 1; }
9727 fi fi
9728 for ac_prog in 'bison -y' byacc
9729 do
9730 # Extract the first word of "$ac_prog", so it can be a program name with args.
9731 set dummy $ac_prog; ac_word=$2
9732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9733 echo "configure:9734: checking for $ac_word" >&5
9734 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9735 echo $ac_n "(cached) $ac_c" 1>&6
9736 else
9737 if test -n "$YACC"; then
9738 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9739 else
9740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9741 ac_dummy="$PATH"
9742 for ac_dir in $ac_dummy; do
9743 test -z "$ac_dir" && ac_dir=.
9744 if test -f $ac_dir/$ac_word; then
9745 ac_cv_prog_YACC="$ac_prog"
9746 break
9747 fi
9748 done
9749 IFS="$ac_save_ifs"
9750 fi
9751 fi
9752 YACC="$ac_cv_prog_YACC"
9753 if test -n "$YACC"; then
9754 echo "$ac_t""$YACC" 1>&6
9755 else
9756 echo "$ac_t""no" 1>&6
9757 fi
9758
9759 test -n "$YACC" && break
9760 done
9761 test -n "$YACC" || YACC="yacc"
9762
9763
9764 # Extract the first word of "flex", so it can be a program name with args.
9765 set dummy flex; ac_word=$2
9766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9767 echo "configure:9768: checking for $ac_word" >&5
9768 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9770 else
9771 if test -n "$LEX"; then
9772 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9773 else
9774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9775 ac_dummy="$PATH"
9776 for ac_dir in $ac_dummy; do
9777 test -z "$ac_dir" && ac_dir=.
9778 if test -f $ac_dir/$ac_word; then
9779 ac_cv_prog_LEX="flex"
9780 break
9781 fi
9782 done
9783 IFS="$ac_save_ifs"
9784 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9785 fi
9786 fi
9787 LEX="$ac_cv_prog_LEX"
9788 if test -n "$LEX"; then
9789 echo "$ac_t""$LEX" 1>&6
9790 else
9791 echo "$ac_t""no" 1>&6
9792 fi
9793
9794 if test -z "$LEXLIB"
9795 then
9796 case "$LEX" in
9797 flex*) ac_lib=fl ;;
9798 *) ac_lib=l ;;
9799 esac
9800 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9801 echo "configure:9802: checking for yywrap in -l$ac_lib" >&5
9802 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9806 ac_save_LIBS="$LIBS"
9807 LIBS="-l$ac_lib $LIBS"
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 /* Override any gcc2 internal prototype to avoid an error. */
9812 /* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9814 char yywrap();
9815
9816 int main() {
9817 yywrap()
9818 ; return 0; }
9819 EOF
9820 if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9821 rm -rf conftest*
9822 eval "ac_cv_lib_$ac_lib_var=yes"
9823 else
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 eval "ac_cv_lib_$ac_lib_var=no"
9828 fi
9829 rm -f conftest*
9830 LIBS="$ac_save_LIBS"
9831
9832 fi
9833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9834 echo "$ac_t""yes" 1>&6
9835 LEXLIB="-l$ac_lib"
9836 else
9837 echo "$ac_t""no" 1>&6
9838 fi
9839
9840 fi
9841
9842
9843 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9844 echo "configure:9845: checking whether ln -s works" >&5
9845 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9847 else
9848 rm -f conftestdata
9849 if ln -s X conftestdata 2>/dev/null
9850 then
9851 rm -f conftestdata
9852 ac_cv_prog_LN_S="ln -s"
9853 else
9854 ac_cv_prog_LN_S=ln
9855 fi
9856 fi
9857 LN_S="$ac_cv_prog_LN_S"
9858 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9859 echo "$ac_t""yes" 1>&6
9860 else
9861 echo "$ac_t""no" 1>&6
9862 fi
9863
9864
9865 case "${host}" in
9866 *-pc-os2_emx | *-pc-os2-emx )
9867 LIBS="$LIBS -lstdcpp"
9868 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9869 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9870 echo "configure:9871: checking for drand48 in -lcExt" >&5
9871 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9874 else
9875 ac_save_LIBS="$LIBS"
9876 LIBS="-lcExt $LIBS"
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9883 char drand48();
9884
9885 int main() {
9886 drand48()
9887 ; return 0; }
9888 EOF
9889 if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9890 rm -rf conftest*
9891 eval "ac_cv_lib_$ac_lib_var=yes"
9892 else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -rf conftest*
9896 eval "ac_cv_lib_$ac_lib_var=no"
9897 fi
9898 rm -f conftest*
9899 LIBS="$ac_save_LIBS"
9900
9901 fi
9902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9903 echo "$ac_t""yes" 1>&6
9904 LIBS="$LIBS -lcExt"
9905 else
9906 echo "$ac_t""no" 1>&6
9907 fi
9908
9909 else
9910 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9911 fi
9912 ;;
9913 esac
9914
9915
9916 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9917 for ac_hdr in strings.h
9918 do
9919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9921 echo "configure:9922: checking for $ac_hdr" >&5
9922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924 else
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9928 #include <$ac_hdr>
9929 EOF
9930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9931 { (eval echo configure:9932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9933 if test -z "$ac_err"; then
9934 rm -rf conftest*
9935 eval "ac_cv_header_$ac_safe=yes"
9936 else
9937 echo "$ac_err" >&5
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 eval "ac_cv_header_$ac_safe=no"
9942 fi
9943 rm -f conftest*
9944 fi
9945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9946 echo "$ac_t""yes" 1>&6
9947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9948 cat >> confdefs.h <<EOF
9949 #define $ac_tr_hdr 1
9950 EOF
9951
9952 else
9953 echo "$ac_t""no" 1>&6
9954 fi
9955 done
9956
9957 fi
9958
9959 for ac_hdr in stdlib.h
9960 do
9961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9963 echo "configure:9964: checking for $ac_hdr" >&5
9964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9966 else
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9970 #include <$ac_hdr>
9971 EOF
9972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9973 { (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9975 if test -z "$ac_err"; then
9976 rm -rf conftest*
9977 eval "ac_cv_header_$ac_safe=yes"
9978 else
9979 echo "$ac_err" >&5
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 rm -rf conftest*
9983 eval "ac_cv_header_$ac_safe=no"
9984 fi
9985 rm -f conftest*
9986 fi
9987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9990 cat >> confdefs.h <<EOF
9991 #define $ac_tr_hdr 1
9992 EOF
9993
9994 else
9995 echo "$ac_t""no" 1>&6
9996 fi
9997 done
9998
9999 for ac_hdr in malloc.h
10000 do
10001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10003 echo "configure:10004: checking for $ac_hdr" >&5
10004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10006 else
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 #include <$ac_hdr>
10011 EOF
10012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10013 { (eval echo configure:10014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10015 if test -z "$ac_err"; then
10016 rm -rf conftest*
10017 eval "ac_cv_header_$ac_safe=yes"
10018 else
10019 echo "$ac_err" >&5
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 rm -rf conftest*
10023 eval "ac_cv_header_$ac_safe=no"
10024 fi
10025 rm -f conftest*
10026 fi
10027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10028 echo "$ac_t""yes" 1>&6
10029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10030 cat >> confdefs.h <<EOF
10031 #define $ac_tr_hdr 1
10032 EOF
10033
10034 else
10035 echo "$ac_t""no" 1>&6
10036 fi
10037 done
10038
10039 for ac_hdr in unistd.h
10040 do
10041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10043 echo "configure:10044: checking for $ac_hdr" >&5
10044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10046 else
10047 cat > conftest.$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 #include <$ac_hdr>
10051 EOF
10052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10053 { (eval echo configure:10054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10055 if test -z "$ac_err"; then
10056 rm -rf conftest*
10057 eval "ac_cv_header_$ac_safe=yes"
10058 else
10059 echo "$ac_err" >&5
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 rm -rf conftest*
10063 eval "ac_cv_header_$ac_safe=no"
10064 fi
10065 rm -f conftest*
10066 fi
10067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10068 echo "$ac_t""yes" 1>&6
10069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10070 cat >> confdefs.h <<EOF
10071 #define $ac_tr_hdr 1
10072 EOF
10073
10074 else
10075 echo "$ac_t""no" 1>&6
10076 fi
10077 done
10078
10079 for ac_hdr in wchar.h
10080 do
10081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10083 echo "configure:10084: checking for $ac_hdr" >&5
10084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10085 echo $ac_n "(cached) $ac_c" 1>&6
10086 else
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <$ac_hdr>
10091 EOF
10092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10093 { (eval echo configure:10094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10095 if test -z "$ac_err"; then
10096 rm -rf conftest*
10097 eval "ac_cv_header_$ac_safe=yes"
10098 else
10099 echo "$ac_err" >&5
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103 eval "ac_cv_header_$ac_safe=no"
10104 fi
10105 rm -f conftest*
10106 fi
10107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10108 echo "$ac_t""yes" 1>&6
10109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10110 cat >> confdefs.h <<EOF
10111 #define $ac_tr_hdr 1
10112 EOF
10113
10114 else
10115 echo "$ac_t""no" 1>&6
10116 fi
10117 done
10118
10119
10120 if test "$ac_cv_header_wchar_h" != "yes"; then
10121 for ac_hdr in wcstr.h
10122 do
10123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10125 echo "configure:10126: checking for $ac_hdr" >&5
10126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128 else
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 #include <$ac_hdr>
10133 EOF
10134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10135 { (eval echo configure:10136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10137 if test -z "$ac_err"; then
10138 rm -rf conftest*
10139 eval "ac_cv_header_$ac_safe=yes"
10140 else
10141 echo "$ac_err" >&5
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 rm -rf conftest*
10145 eval "ac_cv_header_$ac_safe=no"
10146 fi
10147 rm -f conftest*
10148 fi
10149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10152 cat >> confdefs.h <<EOF
10153 #define $ac_tr_hdr 1
10154 EOF
10155
10156 else
10157 echo "$ac_t""no" 1>&6
10158 fi
10159 done
10160
10161 fi
10162
10163 for ac_hdr in fnmatch.h
10164 do
10165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10167 echo "configure:10168: checking for $ac_hdr" >&5
10168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10170 else
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include <$ac_hdr>
10175 EOF
10176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10177 { (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179 if test -z "$ac_err"; then
10180 rm -rf conftest*
10181 eval "ac_cv_header_$ac_safe=yes"
10182 else
10183 echo "$ac_err" >&5
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 rm -rf conftest*
10187 eval "ac_cv_header_$ac_safe=no"
10188 fi
10189 rm -f conftest*
10190 fi
10191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10194 cat >> confdefs.h <<EOF
10195 #define $ac_tr_hdr 1
10196 EOF
10197
10198 else
10199 echo "$ac_t""no" 1>&6
10200 fi
10201 done
10202
10203
10204 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10205 for ac_func in fnmatch
10206 do
10207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10208 echo "configure:10209: checking for $ac_func" >&5
10209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10211 else
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 /* System header to define __stub macros and hopefully few prototypes,
10216 which can conflict with char $ac_func(); below. */
10217 #include <assert.h>
10218 /* Override any gcc2 internal prototype to avoid an error. */
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221 char $ac_func();
10222
10223 int main() {
10224
10225 /* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10229 choke me
10230 #else
10231 $ac_func();
10232 #endif
10233
10234 ; return 0; }
10235 EOF
10236 if { (eval echo configure:10237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10237 rm -rf conftest*
10238 eval "ac_cv_func_$ac_func=yes"
10239 else
10240 echo "configure: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10242 rm -rf conftest*
10243 eval "ac_cv_func_$ac_func=no"
10244 fi
10245 rm -f conftest*
10246 fi
10247
10248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10249 echo "$ac_t""yes" 1>&6
10250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10251 cat >> confdefs.h <<EOF
10252 #define $ac_tr_func 1
10253 EOF
10254
10255 else
10256 echo "$ac_t""no" 1>&6
10257 fi
10258 done
10259
10260 fi
10261
10262 for ac_hdr in langinfo.h
10263 do
10264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10266 echo "configure:10267: checking for $ac_hdr" >&5
10267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10269 else
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 #include <$ac_hdr>
10274 EOF
10275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10276 { (eval echo configure:10277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10278 if test -z "$ac_err"; then
10279 rm -rf conftest*
10280 eval "ac_cv_header_$ac_safe=yes"
10281 else
10282 echo "$ac_err" >&5
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 rm -rf conftest*
10286 eval "ac_cv_header_$ac_safe=no"
10287 fi
10288 rm -f conftest*
10289 fi
10290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10293 cat >> confdefs.h <<EOF
10294 #define $ac_tr_hdr 1
10295 EOF
10296
10297 else
10298 echo "$ac_t""no" 1>&6
10299 fi
10300 done
10301
10302
10303 case "${host}" in
10304 *-pc-os2_emx | *-pc-os2-emx )
10305 if test $ac_cv_header_langinfo_h = "yes"; then
10306 LIBS="$LIBS -lintl"
10307 fi
10308 ;;
10309 esac
10310
10311 if test "$wxUSE_GUI" = "yes"; then
10312 if test "$wxUSE_UNIX" = "yes"; then
10313 for ac_hdr in X11/XKBlib.h
10314 do
10315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10317 echo "configure:10318: checking for $ac_hdr" >&5
10318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10320 else
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10324 #include <$ac_hdr>
10325 EOF
10326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10327 { (eval echo configure:10328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10329 if test -z "$ac_err"; then
10330 rm -rf conftest*
10331 eval "ac_cv_header_$ac_safe=yes"
10332 else
10333 echo "$ac_err" >&5
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 eval "ac_cv_header_$ac_safe=no"
10338 fi
10339 rm -f conftest*
10340 fi
10341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6
10343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10344 cat >> confdefs.h <<EOF
10345 #define $ac_tr_hdr 1
10346 EOF
10347
10348 else
10349 echo "$ac_t""no" 1>&6
10350 fi
10351 done
10352
10353 fi
10354 fi
10355
10356
10357 echo $ac_n "checking for working const""... $ac_c" 1>&6
10358 echo "configure:10359: checking for working const" >&5
10359 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10360 echo $ac_n "(cached) $ac_c" 1>&6
10361 else
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10365
10366 int main() {
10367
10368 /* Ultrix mips cc rejects this. */
10369 typedef int charset[2]; const charset x;
10370 /* SunOS 4.1.1 cc rejects this. */
10371 char const *const *ccp;
10372 char **p;
10373 /* NEC SVR4.0.2 mips cc rejects this. */
10374 struct point {int x, y;};
10375 static struct point const zero = {0,0};
10376 /* AIX XL C 1.02.0.0 rejects this.
10377 It does not let you subtract one const X* pointer from another in an arm
10378 of an if-expression whose if-part is not a constant expression */
10379 const char *g = "string";
10380 ccp = &g + (g ? g-g : 0);
10381 /* HPUX 7.0 cc rejects these. */
10382 ++ccp;
10383 p = (char**) ccp;
10384 ccp = (char const *const *) p;
10385 { /* SCO 3.2v4 cc rejects this. */
10386 char *t;
10387 char const *s = 0 ? (char *) 0 : (char const *) 0;
10388
10389 *t++ = 0;
10390 }
10391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10392 int x[] = {25, 17};
10393 const int *foo = &x[0];
10394 ++foo;
10395 }
10396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10397 typedef const int *iptr;
10398 iptr p = 0;
10399 ++p;
10400 }
10401 { /* AIX XL C 1.02.0.0 rejects this saying
10402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10403 struct s { int j; const int *ap[3]; };
10404 struct s *b; b->j = 5;
10405 }
10406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10407 const int foo = 10;
10408 }
10409
10410 ; return 0; }
10411 EOF
10412 if { (eval echo configure:10413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10413 rm -rf conftest*
10414 ac_cv_c_const=yes
10415 else
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 rm -rf conftest*
10419 ac_cv_c_const=no
10420 fi
10421 rm -f conftest*
10422 fi
10423
10424 echo "$ac_t""$ac_cv_c_const" 1>&6
10425 if test $ac_cv_c_const = no; then
10426 cat >> confdefs.h <<\EOF
10427 #define const
10428 EOF
10429
10430 fi
10431
10432 echo $ac_n "checking for inline""... $ac_c" 1>&6
10433 echo "configure:10434: checking for inline" >&5
10434 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10436 else
10437 ac_cv_c_inline=no
10438 for ac_kw in inline __inline__ __inline; do
10439 cat > conftest.$ac_ext <<EOF
10440 #line 10441 "configure"
10441 #include "confdefs.h"
10442
10443 int main() {
10444 } $ac_kw foo() {
10445 ; return 0; }
10446 EOF
10447 if { (eval echo configure:10448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10448 rm -rf conftest*
10449 ac_cv_c_inline=$ac_kw; break
10450 else
10451 echo "configure: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10453 fi
10454 rm -f conftest*
10455 done
10456
10457 fi
10458
10459 echo "$ac_t""$ac_cv_c_inline" 1>&6
10460 case "$ac_cv_c_inline" in
10461 inline | yes) ;;
10462 no) cat >> confdefs.h <<\EOF
10463 #define inline
10464 EOF
10465 ;;
10466 *) cat >> confdefs.h <<EOF
10467 #define inline $ac_cv_c_inline
10468 EOF
10469 ;;
10470 esac
10471
10472
10473 echo $ac_n "checking size of char""... $ac_c" 1>&6
10474 echo "configure:10475: checking size of char" >&5
10475 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10477 else
10478 if test "$cross_compiling" = yes; then
10479 ac_cv_sizeof_char=1
10480 else
10481 cat > conftest.$ac_ext <<EOF
10482 #line 10483 "configure"
10483 #include "confdefs.h"
10484 #include <stdio.h>
10485 main()
10486 {
10487 FILE *f=fopen("conftestval", "w");
10488 if (!f) exit(1);
10489 fprintf(f, "%d\n", sizeof(char));
10490 exit(0);
10491 }
10492 EOF
10493 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10494 then
10495 ac_cv_sizeof_char=`cat conftestval`
10496 else
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 rm -fr conftest*
10500 ac_cv_sizeof_char=0
10501 fi
10502 rm -fr conftest*
10503 fi
10504
10505 fi
10506 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10507 cat >> confdefs.h <<EOF
10508 #define SIZEOF_CHAR $ac_cv_sizeof_char
10509 EOF
10510
10511
10512 echo $ac_n "checking size of short""... $ac_c" 1>&6
10513 echo "configure:10514: checking size of short" >&5
10514 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10516 else
10517 if test "$cross_compiling" = yes; then
10518 ac_cv_sizeof_short=2
10519 else
10520 cat > conftest.$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10523 #include <stdio.h>
10524 main()
10525 {
10526 FILE *f=fopen("conftestval", "w");
10527 if (!f) exit(1);
10528 fprintf(f, "%d\n", sizeof(short));
10529 exit(0);
10530 }
10531 EOF
10532 if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10533 then
10534 ac_cv_sizeof_short=`cat conftestval`
10535 else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 rm -fr conftest*
10539 ac_cv_sizeof_short=0
10540 fi
10541 rm -fr conftest*
10542 fi
10543
10544 fi
10545 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10546 cat >> confdefs.h <<EOF
10547 #define SIZEOF_SHORT $ac_cv_sizeof_short
10548 EOF
10549
10550
10551 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10552 echo "configure:10553: checking size of void *" >&5
10553 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10555 else
10556 if test "$cross_compiling" = yes; then
10557 ac_cv_sizeof_void_p=4
10558 else
10559 cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure"
10561 #include "confdefs.h"
10562 #include <stdio.h>
10563 main()
10564 {
10565 FILE *f=fopen("conftestval", "w");
10566 if (!f) exit(1);
10567 fprintf(f, "%d\n", sizeof(void *));
10568 exit(0);
10569 }
10570 EOF
10571 if { (eval echo configure:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10572 then
10573 ac_cv_sizeof_void_p=`cat conftestval`
10574 else
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 rm -fr conftest*
10578 ac_cv_sizeof_void_p=0
10579 fi
10580 rm -fr conftest*
10581 fi
10582
10583 fi
10584 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10585 cat >> confdefs.h <<EOF
10586 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10587 EOF
10588
10589
10590 echo $ac_n "checking size of int""... $ac_c" 1>&6
10591 echo "configure:10592: checking size of int" >&5
10592 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10593 echo $ac_n "(cached) $ac_c" 1>&6
10594 else
10595 if test "$cross_compiling" = yes; then
10596 ac_cv_sizeof_int=4
10597 else
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 #include <stdio.h>
10602 main()
10603 {
10604 FILE *f=fopen("conftestval", "w");
10605 if (!f) exit(1);
10606 fprintf(f, "%d\n", sizeof(int));
10607 exit(0);
10608 }
10609 EOF
10610 if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10611 then
10612 ac_cv_sizeof_int=`cat conftestval`
10613 else
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -fr conftest*
10617 ac_cv_sizeof_int=0
10618 fi
10619 rm -fr conftest*
10620 fi
10621
10622 fi
10623 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10624 cat >> confdefs.h <<EOF
10625 #define SIZEOF_INT $ac_cv_sizeof_int
10626 EOF
10627
10628
10629 echo $ac_n "checking size of long""... $ac_c" 1>&6
10630 echo "configure:10631: checking size of long" >&5
10631 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10632 echo $ac_n "(cached) $ac_c" 1>&6
10633 else
10634 if test "$cross_compiling" = yes; then
10635 ac_cv_sizeof_long=4
10636 else
10637 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure"
10639 #include "confdefs.h"
10640 #include <stdio.h>
10641 main()
10642 {
10643 FILE *f=fopen("conftestval", "w");
10644 if (!f) exit(1);
10645 fprintf(f, "%d\n", sizeof(long));
10646 exit(0);
10647 }
10648 EOF
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10650 then
10651 ac_cv_sizeof_long=`cat conftestval`
10652 else
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 rm -fr conftest*
10656 ac_cv_sizeof_long=0
10657 fi
10658 rm -fr conftest*
10659 fi
10660
10661 fi
10662 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10663 cat >> confdefs.h <<EOF
10664 #define SIZEOF_LONG $ac_cv_sizeof_long
10665 EOF
10666
10667
10668
10669 case "${host}" in
10670 arm-*-linux* )
10671 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10672 echo "configure:10673: checking size of long long" >&5
10673 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10675 else
10676 if test "$cross_compiling" = yes; then
10677 ac_cv_sizeof_long_long=8
10678 else
10679 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10682 #include <stdio.h>
10683 main()
10684 {
10685 FILE *f=fopen("conftestval", "w");
10686 if (!f) exit(1);
10687 fprintf(f, "%d\n", sizeof(long long));
10688 exit(0);
10689 }
10690 EOF
10691 if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10692 then
10693 ac_cv_sizeof_long_long=`cat conftestval`
10694 else
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 rm -fr conftest*
10698 ac_cv_sizeof_long_long=0
10699 fi
10700 rm -fr conftest*
10701 fi
10702
10703 fi
10704 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10705 cat >> confdefs.h <<EOF
10706 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10707 EOF
10708
10709
10710 ;;
10711 *-hp-hpux* )
10712 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10713 echo "configure:10714: checking size of long long" >&5
10714 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10716 else
10717 if test "$cross_compiling" = yes; then
10718 ac_cv_sizeof_long_long=0
10719 else
10720 cat > conftest.$ac_ext <<EOF
10721 #line 10722 "configure"
10722 #include "confdefs.h"
10723 #include <stdio.h>
10724 main()
10725 {
10726 FILE *f=fopen("conftestval", "w");
10727 if (!f) exit(1);
10728 fprintf(f, "%d\n", sizeof(long long));
10729 exit(0);
10730 }
10731 EOF
10732 if { (eval echo configure:10733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10733 then
10734 ac_cv_sizeof_long_long=`cat conftestval`
10735 else
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
10738 rm -fr conftest*
10739 ac_cv_sizeof_long_long=0
10740 fi
10741 rm -fr conftest*
10742 fi
10743
10744 fi
10745 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10746 cat >> confdefs.h <<EOF
10747 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10748 EOF
10749
10750
10751 if test "$ac_cv_sizeof_long_long" != "0"; then
10752 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10753 fi
10754 ;;
10755 * )
10756 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10757 echo "configure:10758: checking size of long long" >&5
10758 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760 else
10761 if test "$cross_compiling" = yes; then
10762 ac_cv_sizeof_long_long=0
10763 else
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10767 #include <stdio.h>
10768 main()
10769 {
10770 FILE *f=fopen("conftestval", "w");
10771 if (!f) exit(1);
10772 fprintf(f, "%d\n", sizeof(long long));
10773 exit(0);
10774 }
10775 EOF
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10777 then
10778 ac_cv_sizeof_long_long=`cat conftestval`
10779 else
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -fr conftest*
10783 ac_cv_sizeof_long_long=0
10784 fi
10785 rm -fr conftest*
10786 fi
10787
10788 fi
10789 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10790 cat >> confdefs.h <<EOF
10791 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10792 EOF
10793
10794
10795 esac
10796
10797 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10798 echo "configure:10799: checking size of wchar_t" >&5
10799 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
10801 else
10802
10803 if test "$cross_compiling" = yes; then
10804
10805 case "${host}" in
10806 *-pc-msdosdjgpp )
10807 wx_cv_sizeof_wchar_t=0
10808 ;;
10809 * )
10810 wx_cv_sizeof_wchar_t=4
10811 ;;
10812 esac
10813
10814
10815 else
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819
10820 /* DJGPP only has fake wchar_t: */
10821 #ifdef __DJGPP__
10822 # error "fake wchar_t"
10823 #endif
10824 #ifdef HAVE_WCHAR_H
10825 # ifdef __CYGWIN__
10826 # include <stddef.h>
10827 # endif
10828 # include <wchar.h>
10829 #endif
10830 #ifdef HAVE_STDLIB_H
10831 # include <stdlib.h>
10832 #endif
10833 #include <stdio.h>
10834 int main()
10835 {
10836 FILE *f=fopen("conftestval", "w");
10837 if (!f) exit(1);
10838 fprintf(f, "%i", sizeof(wchar_t));
10839 exit(0);
10840 }
10841
10842 EOF
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10844 then
10845 wx_cv_sizeof_wchar_t=`cat conftestval`
10846 else
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 rm -fr conftest*
10850 wx_cv_sizeof_wchar_t=0
10851 fi
10852 rm -fr conftest*
10853 fi
10854
10855
10856 fi
10857
10858 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10859
10860 cat >> confdefs.h <<EOF
10861 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10862 EOF
10863
10864
10865 # Check whether --enable-largefile or --disable-largefile was given.
10866 if test "${enable_largefile+set}" = set; then
10867 enableval="$enable_largefile"
10868 :
10869 fi
10870
10871 if test "$enable_largefile" != no; then
10872 wx_largefile=no
10873
10874 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10875 echo "configure:10876: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10876 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10877 echo $ac_n "(cached) $ac_c" 1>&6
10878 else
10879
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 #define _FILE_OFFSET_BITS 64
10884 #include <sys/types.h>
10885 int main() {
10886 typedef struct {
10887 unsigned int field: sizeof(off_t) == 8;
10888 } wxlf;
10889
10890 ; return 0; }
10891 EOF
10892 if { (eval echo configure:10893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10893 rm -rf conftest*
10894 ac_cv_sys_file_offset_bits=64
10895 else
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 rm -rf conftest*
10899 ac_cv_sys_file_offset_bits=no
10900 fi
10901 rm -f conftest*
10902
10903
10904 fi
10905
10906 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10907
10908 if test "$ac_cv_sys_file_offset_bits" != no; then
10909 wx_largefile=yes
10910 cat >> confdefs.h <<EOF
10911 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10912 EOF
10913
10914 fi
10915
10916 if test "x$wx_largefile" != "xyes"; then
10917
10918 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10919 echo "configure:10920: checking for _LARGE_FILES value needed for large files" >&5
10920 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10921 echo $ac_n "(cached) $ac_c" 1>&6
10922 else
10923
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 #define _LARGE_FILES 1
10928 #include <sys/types.h>
10929 int main() {
10930 typedef struct {
10931 unsigned int field: sizeof(off_t) == 8;
10932 } wxlf;
10933
10934 ; return 0; }
10935 EOF
10936 if { (eval echo configure:10937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10937 rm -rf conftest*
10938 ac_cv_sys_large_files=1
10939 else
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10942 rm -rf conftest*
10943 ac_cv_sys_large_files=no
10944 fi
10945 rm -f conftest*
10946
10947
10948 fi
10949
10950 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10951
10952 if test "$ac_cv_sys_large_files" != no; then
10953 wx_largefile=yes
10954 cat >> confdefs.h <<EOF
10955 #define _LARGE_FILES $ac_cv_sys_large_files
10956 EOF
10957
10958 fi
10959
10960 fi
10961
10962 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10963 echo "configure:10964: checking if large file support is available" >&5
10964 if test "x$wx_largefile" = "xyes"; then
10965 cat >> confdefs.h <<\EOF
10966 #define HAVE_LARGEFILE_SUPPORT 1
10967 EOF
10968
10969 fi
10970 echo "$ac_t""$wx_largefile" 1>&6
10971 fi
10972
10973
10974 if test "x$wx_largefile" = "xyes"; then
10975 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10976 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10977 else
10978 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10979 fi
10980 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10981 fi
10982
10983 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10984 echo "configure:10985: checking whether byte ordering is bigendian" >&5
10985 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10988 ac_cv_c_bigendian=unknown
10989 # See if sys/param.h defines the BYTE_ORDER macro.
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 #include <sys/types.h>
10994 #include <sys/param.h>
10995 int main() {
10996
10997 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10998 bogus endian macros
10999 #endif
11000 ; return 0; }
11001 EOF
11002 if { (eval echo configure:11003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11003 rm -rf conftest*
11004 # It does; now see whether it defined to BIG_ENDIAN or not.
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 #include <sys/types.h>
11009 #include <sys/param.h>
11010 int main() {
11011
11012 #if BYTE_ORDER != BIG_ENDIAN
11013 not big endian
11014 #endif
11015 ; return 0; }
11016 EOF
11017 if { (eval echo configure:11018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11018 rm -rf conftest*
11019 ac_cv_c_bigendian=yes
11020 else
11021 echo "configure: failed program was:" >&5
11022 cat conftest.$ac_ext >&5
11023 rm -rf conftest*
11024 ac_cv_c_bigendian=no
11025 fi
11026 rm -f conftest*
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 fi
11031 rm -f conftest*
11032 if test $ac_cv_c_bigendian = unknown; then
11033 if test "$cross_compiling" = yes; then
11034 ac_cv_c_bigendian=unknown
11035 else
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 main () {
11040 /* Are we little or big endian? From Harbison&Steele. */
11041 union
11042 {
11043 long l;
11044 char c[sizeof (long)];
11045 } u;
11046 u.l = 1;
11047 exit (u.c[sizeof (long) - 1] == 1);
11048 }
11049 EOF
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11051 then
11052 ac_cv_c_bigendian=no
11053 else
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11056 rm -fr conftest*
11057 ac_cv_c_bigendian=yes
11058 fi
11059 rm -fr conftest*
11060 fi
11061
11062 fi
11063 fi
11064
11065 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11066 if test $ac_cv_c_bigendian = unknown; then
11067 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
11068 fi
11069 if test $ac_cv_c_bigendian = yes; then
11070 cat >> confdefs.h <<\EOF
11071 #define WORDS_BIGENDIAN 1
11072 EOF
11073
11074 fi
11075
11076
11077 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11078 echo "configure:11079: checking how to run the C++ preprocessor" >&5
11079 if test -z "$CXXCPP"; then
11080 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11082 else
11083 ac_ext=C
11084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11085 ac_cpp='$CXXCPP $CPPFLAGS'
11086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11088 cross_compiling=$ac_cv_prog_cxx_cross
11089 CXXCPP="${CXX-g++} -E"
11090 cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #include <stdlib.h>
11094 EOF
11095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11096 { (eval echo configure:11097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11098 if test -z "$ac_err"; then
11099 :
11100 else
11101 echo "$ac_err" >&5
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11104 rm -rf conftest*
11105 CXXCPP=/lib/cpp
11106 fi
11107 rm -f conftest*
11108 ac_cv_prog_CXXCPP="$CXXCPP"
11109 ac_ext=C
11110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11111 ac_cpp='$CXXCPP $CPPFLAGS'
11112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11114 cross_compiling=$ac_cv_prog_cxx_cross
11115 fi
11116 fi
11117 CXXCPP="$ac_cv_prog_CXXCPP"
11118 echo "$ac_t""$CXXCPP" 1>&6
11119
11120
11121 if test "$cross_compiling" = "yes"; then
11122 cat >> confdefs.h <<\EOF
11123 #define wxUSE_IOSTREAMH 1
11124 EOF
11125
11126 else
11127
11128 ac_ext=C
11129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11130 ac_cpp='$CXXCPP $CPPFLAGS'
11131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11133 cross_compiling=$ac_cv_prog_cxx_cross
11134
11135
11136 for ac_hdr in iostream
11137 do
11138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11140 echo "configure:11141: checking for $ac_hdr" >&5
11141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11143 else
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 #include <$ac_hdr>
11148 EOF
11149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11150 { (eval echo configure:11151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11152 if test -z "$ac_err"; then
11153 rm -rf conftest*
11154 eval "ac_cv_header_$ac_safe=yes"
11155 else
11156 echo "$ac_err" >&5
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 rm -rf conftest*
11160 eval "ac_cv_header_$ac_safe=no"
11161 fi
11162 rm -f conftest*
11163 fi
11164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11165 echo "$ac_t""yes" 1>&6
11166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11167 cat >> confdefs.h <<EOF
11168 #define $ac_tr_hdr 1
11169 EOF
11170
11171 else
11172 echo "$ac_t""no" 1>&6
11173 fi
11174 done
11175
11176
11177 if test "$ac_cv_header_iostream" = "yes" ; then
11178 :
11179 else
11180 cat >> confdefs.h <<\EOF
11181 #define wxUSE_IOSTREAMH 1
11182 EOF
11183
11184 fi
11185
11186 ac_ext=c
11187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11188 ac_cpp='$CPP $CPPFLAGS'
11189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11191 cross_compiling=$ac_cv_prog_cc_cross
11192
11193 fi
11194
11195
11196
11197 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11198 echo "configure:11199: checking if C++ compiler supports bool" >&5
11199 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11200 echo $ac_n "(cached) $ac_c" 1>&6
11201 else
11202
11203
11204 ac_ext=C
11205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11206 ac_cpp='$CXXCPP $CPPFLAGS'
11207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11209 cross_compiling=$ac_cv_prog_cxx_cross
11210
11211
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215
11216
11217 int main() {
11218
11219 bool b = true;
11220
11221 return 0;
11222
11223 ; return 0; }
11224 EOF
11225 if { (eval echo configure:11226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11226 rm -rf conftest*
11227
11228 wx_cv_cpp_bool=yes
11229
11230 else
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 rm -rf conftest*
11234
11235 wx_cv_cpp_bool=no
11236
11237
11238 fi
11239 rm -f conftest*
11240
11241 ac_ext=c
11242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11243 ac_cpp='$CPP $CPPFLAGS'
11244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11246 cross_compiling=$ac_cv_prog_cc_cross
11247
11248
11249 fi
11250
11251 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11252
11253 if test "$wx_cv_cpp_bool" = "yes"; then
11254 cat >> confdefs.h <<\EOF
11255 #define HAVE_BOOL 1
11256 EOF
11257
11258 fi
11259
11260
11261
11262 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11263 echo "configure:11264: checking if C++ compiler supports the explicit keyword" >&5
11264 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266 else
11267
11268
11269 ac_ext=C
11270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11271 ac_cpp='$CXXCPP $CPPFLAGS'
11272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11274 cross_compiling=$ac_cv_prog_cxx_cross
11275
11276
11277 cat > conftest.$ac_ext <<EOF
11278 #line 11279 "configure"
11279 #include "confdefs.h"
11280
11281 class Foo { public: explicit Foo(int) {} };
11282
11283 int main() {
11284
11285 return 0;
11286
11287 ; return 0; }
11288 EOF
11289 if { (eval echo configure:11290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11290 rm -rf conftest*
11291
11292 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure"
11294 #include "confdefs.h"
11295
11296 class Foo { public: explicit Foo(int) {} };
11297 static void TakeFoo(const Foo& foo) { }
11298
11299 int main() {
11300
11301 TakeFoo(17);
11302 return 0;
11303
11304 ; return 0; }
11305 EOF
11306 if { (eval echo configure:11307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11307 rm -rf conftest*
11308 wx_cv_explicit=no
11309 else
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11312 rm -rf conftest*
11313 wx_cv_explicit=yes
11314
11315 fi
11316 rm -f conftest*
11317
11318 else
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
11322 wx_cv_explicit=no
11323
11324 fi
11325 rm -f conftest*
11326
11327 ac_ext=c
11328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11329 ac_cpp='$CPP $CPPFLAGS'
11330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11332 cross_compiling=$ac_cv_prog_cc_cross
11333
11334
11335 fi
11336
11337 echo "$ac_t""$wx_cv_explicit" 1>&6
11338
11339 if test "$wx_cv_explicit" = "yes"; then
11340 cat >> confdefs.h <<\EOF
11341 #define HAVE_EXPLICIT 1
11342 EOF
11343
11344 fi
11345
11346
11347 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11348 echo "configure:11349: checking whether the compiler supports const_cast<>" >&5
11349 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11350 echo $ac_n "(cached) $ac_c" 1>&6
11351 else
11352
11353 ac_ext=C
11354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11355 ac_cpp='$CXXCPP $CPPFLAGS'
11356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11358 cross_compiling=$ac_cv_prog_cxx_cross
11359
11360 cat > conftest.$ac_ext <<EOF
11361 #line 11362 "configure"
11362 #include "confdefs.h"
11363
11364 int main() {
11365 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11366 ; return 0; }
11367 EOF
11368 if { (eval echo configure:11369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11369 rm -rf conftest*
11370 ac_cv_cxx_const_cast=yes
11371 else
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11374 rm -rf conftest*
11375 ac_cv_cxx_const_cast=no
11376 fi
11377 rm -f conftest*
11378 ac_ext=c
11379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11380 ac_cpp='$CPP $CPPFLAGS'
11381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11383 cross_compiling=$ac_cv_prog_cc_cross
11384
11385
11386 fi
11387
11388 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11389 if test "$ac_cv_cxx_const_cast" = yes; then
11390 cat >> confdefs.h <<\EOF
11391 #define HAVE_CONST_CAST
11392 EOF
11393
11394 fi
11395
11396
11397
11398 SEARCH_INCLUDE="\
11399 /usr/local/include \
11400 \
11401 /usr/Motif-1.2/include \
11402 /usr/Motif-2.1/include \
11403 \
11404 /usr/include/Motif1.2 \
11405 /opt/xpm/include/X11 \
11406 /opt/GBxpm/include/ \
11407 /opt/GBxpm/X11/include/ \
11408 \
11409 /usr/Motif1.2/include \
11410 /usr/dt/include \
11411 /usr/openwin/include \
11412 \
11413 /usr/include/Xm \
11414 \
11415 /usr/X11R6/include \
11416 /usr/X11R6.4/include \
11417 /usr/X11R5/include \
11418 /usr/X11R4/include \
11419 \
11420 /usr/include/X11R6 \
11421 /usr/include/X11R5 \
11422 /usr/include/X11R4 \
11423 \
11424 /usr/local/X11R6/include \
11425 /usr/local/X11R5/include \
11426 /usr/local/X11R4/include \
11427 \
11428 /usr/local/include/X11R6 \
11429 /usr/local/include/X11R5 \
11430 /usr/local/include/X11R4 \
11431 \
11432 /usr/X11/include \
11433 /usr/include/X11 \
11434 /usr/local/X11/include \
11435 /usr/local/include/X11 \
11436 \
11437 /usr/X386/include \
11438 /usr/x386/include \
11439 /usr/XFree86/include/X11 \
11440 \
11441 X:/XFree86/include \
11442 X:/XFree86/include/X11 \
11443 \
11444 /usr/include/gtk \
11445 /usr/local/include/gtk \
11446 /usr/include/glib \
11447 /usr/local/include/glib \
11448 \
11449 /usr/include/qt \
11450 /usr/local/include/qt \
11451 \
11452 /usr/include/windows \
11453 /usr/include/wine \
11454 /usr/local/include/wine \
11455 \
11456 /usr/unsupported/include \
11457 /usr/athena/include \
11458 /usr/local/x11r5/include \
11459 /usr/lpp/Xamples/include \
11460 \
11461 /usr/openwin/share/include"
11462
11463 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11464
11465
11466 cat > confcache <<\EOF
11467 # This file is a shell script that caches the results of configure
11468 # tests run on this system so they can be shared between configure
11469 # scripts and configure runs. It is not useful on other systems.
11470 # If it contains results you don't want to keep, you may remove or edit it.
11471 #
11472 # By default, configure uses ./config.cache as the cache file,
11473 # creating it if it does not exist already. You can give configure
11474 # the --cache-file=FILE option to use a different cache file; that is
11475 # what configure does when it calls configure scripts in
11476 # subdirectories, so they share the cache.
11477 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11478 # config.status only pays attention to the cache file if you give it the
11479 # --recheck option to rerun configure.
11480 #
11481 EOF
11482 # The following way of writing the cache mishandles newlines in values,
11483 # but we know of no workaround that is simple, portable, and efficient.
11484 # So, don't put newlines in cache variables' values.
11485 # Ultrix sh set writes to stderr and can't be redirected directly,
11486 # and sets the high bit in the cache file unless we assign to the vars.
11487 (set) 2>&1 |
11488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11489 *ac_space=\ *)
11490 # `set' does not quote correctly, so add quotes (double-quote substitution
11491 # turns \\\\ into \\, and sed turns \\ into \).
11492 sed -n \
11493 -e "s/'/'\\\\''/g" \
11494 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11495 ;;
11496 *)
11497 # `set' quotes correctly as required by POSIX, so do not add quotes.
11498 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11499 ;;
11500 esac >> confcache
11501 if cmp -s $cache_file confcache; then
11502 :
11503 else
11504 if test -w $cache_file; then
11505 echo "updating cache $cache_file"
11506 cat confcache > $cache_file
11507 else
11508 echo "not updating unwritable cache $cache_file"
11509 fi
11510 fi
11511 rm -f confcache
11512
11513
11514 if test "$USE_LINUX" = 1; then
11515 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11516 echo "configure:11517: checking for glibc 2.1 or later" >&5
11517 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11519 else
11520
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 #include <features.h>
11525 int main() {
11526
11527 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11528 #error not glibc2.1
11529 #endif
11530
11531 ; return 0; }
11532 EOF
11533 if { (eval echo configure:11534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11534 rm -rf conftest*
11535
11536 wx_cv_lib_glibc21=yes
11537
11538 else
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542
11543 wx_cv_lib_glibc21=no
11544
11545
11546 fi
11547 rm -f conftest*
11548
11549 fi
11550
11551 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11552 if test "$wx_cv_lib_glibc21" = "yes"; then
11553 cat >> confdefs.h <<\EOF
11554 #define wxHAVE_GLIBC2 1
11555 EOF
11556
11557 fi
11558 fi
11559
11560 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11561 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11562 cat >> confdefs.h <<\EOF
11563 #define _GNU_SOURCE 1
11564 EOF
11565
11566 fi
11567 fi
11568
11569
11570
11571 REGEX_INCLUDE=
11572 if test "$wxUSE_REGEX" != "no"; then
11573 cat >> confdefs.h <<\EOF
11574 #define wxUSE_REGEX 1
11575 EOF
11576
11577
11578 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11579 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11580 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11581 echo "configure:11582: checking for regex.h" >&5
11582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11584 else
11585 cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11588 #include <regex.h>
11589 EOF
11590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11591 { (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11593 if test -z "$ac_err"; then
11594 rm -rf conftest*
11595 eval "ac_cv_header_$ac_safe=yes"
11596 else
11597 echo "$ac_err" >&5
11598 echo "configure: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11600 rm -rf conftest*
11601 eval "ac_cv_header_$ac_safe=no"
11602 fi
11603 rm -f conftest*
11604 fi
11605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11606 echo "$ac_t""yes" 1>&6
11607 for ac_func in regcomp
11608 do
11609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11610 echo "configure:11611: checking for $ac_func" >&5
11611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
11613 else
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11616 "configure"
11616 #include "confdefs.h"
11617 /* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func(); below. */
11619 #include <assert.h>
11620 /* Override any gcc2 internal prototype to avoid an error. */
11621 /* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11623 char $ac_func();
11624
11625 int main() {
11626
11627 /* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11631 choke me
11632 #else
11633 $ac_func();
11634 #endif
11635
11636 ; return 0; }
11637 EOF
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11639 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=yes"
11641 else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 eval "ac_cv_func_$ac_func=no"
11646 fi
11647 rm -f conftest*
11648 fi
11649
11650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11653 cat >> confdefs.h <<EOF
11654 #define $ac_tr_func 1
11655 EOF
11656
11657 else
11658 echo "$ac_t""no" 1>&6
11659 fi
11660 done
11661
11662 else
11663 echo "$ac_t""no" 1>&6
11664 fi
11665
11666
11667 if test "x$ac_cv_func_regcomp" != "xyes"; then
11668 if test "$wxUSE_REGEX" = "sys" ; then
11669 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11670 else
11671 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11672 wxUSE_REGEX=builtin
11673 fi
11674 else
11675 wxUSE_REGEX=sys
11676 fi
11677 fi
11678
11679 if test "$wxUSE_REGEX" = "builtin" ; then
11680 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11681 fi
11682 fi
11683
11684
11685 ZLIB_INCLUDE=
11686 ZLIB_LINK=
11687 if test "$wxUSE_ZLIB" != "no" ; then
11688 cat >> confdefs.h <<\EOF
11689 #define wxUSE_ZLIB 1
11690 EOF
11691
11692
11693 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11694 if test "$USE_DARWIN" = 1; then
11695 system_zlib_h_ok="yes"
11696 else
11697 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11698 echo "configure:11699: checking for zlib.h >= 1.1.4" >&5
11699 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11700 echo $ac_n "(cached) $ac_c" 1>&6
11701 else
11702 if test "$cross_compiling" = yes; then
11703 unset ac_cv_header_zlib_h
11704
11705 else
11706 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure"
11708 #include "confdefs.h"
11709
11710 #include <zlib.h>
11711 #include <stdio.h>
11712
11713
11714 int main()
11715 {
11716 FILE *f=fopen("conftestval", "w");
11717 if (!f) exit(1);
11718 fprintf(f, "%s",
11719 ZLIB_VERSION[0] == '1' &&
11720 (ZLIB_VERSION[2] > '1' ||
11721 (ZLIB_VERSION[2] == '1' &&
11722 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11723 exit(0);
11724 }
11725
11726
11727 EOF
11728 if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11729 then
11730 ac_cv_header_zlib_h=`cat conftestval`
11731 else
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -fr conftest*
11735 ac_cv_header_zlib_h=no
11736 fi
11737 rm -fr conftest*
11738 fi
11739
11740
11741 fi
11742
11743 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11744 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11745 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11746 echo "configure:11747: checking for zlib.h" >&5
11747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11748 echo $ac_n "(cached) $ac_c" 1>&6
11749 else
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 #include <zlib.h>
11754 EOF
11755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11756 { (eval echo configure:11757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11758 if test -z "$ac_err"; then
11759 rm -rf conftest*
11760 eval "ac_cv_header_$ac_safe=yes"
11761 else
11762 echo "$ac_err" >&5
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 eval "ac_cv_header_$ac_safe=no"
11767 fi
11768 rm -f conftest*
11769 fi
11770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11771 echo "$ac_t""yes" 1>&6
11772 :
11773 else
11774 echo "$ac_t""no" 1>&6
11775 fi
11776
11777
11778 system_zlib_h_ok=$ac_cv_header_zlib_h
11779 fi
11780
11781 if test "$system_zlib_h_ok" = "yes"; then
11782 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11783 echo "configure:11784: checking for deflate in -lz" >&5
11784 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11786 echo $ac_n "(cached) $ac_c" 1>&6
11787 else
11788 ac_save_LIBS="$LIBS"
11789 LIBS="-lz $LIBS"
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11793 /* Override any gcc2 internal prototype to avoid an error. */
11794 /* We use char because int might match the return type of a gcc2
11795 builtin and then its argument prototype would still apply. */
11796 char deflate();
11797
11798 int main() {
11799 deflate()
11800 ; return 0; }
11801 EOF
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803 rm -rf conftest*
11804 eval "ac_cv_lib_$ac_lib_var=yes"
11805 else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_lib_$ac_lib_var=no"
11810 fi
11811 rm -f conftest*
11812 LIBS="$ac_save_LIBS"
11813
11814 fi
11815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11816 echo "$ac_t""yes" 1>&6
11817 ZLIB_LINK=" -lz"
11818 else
11819 echo "$ac_t""no" 1>&6
11820 fi
11821
11822 fi
11823
11824 if test "x$ZLIB_LINK" = "x" ; then
11825 if test "$wxUSE_ZLIB" = "sys" ; then
11826 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11827 else
11828 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11829 wxUSE_ZLIB=builtin
11830 fi
11831 else
11832 wxUSE_ZLIB=sys
11833 fi
11834 fi
11835
11836 if test "$wxUSE_ZLIB" = "builtin" ; then
11837 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11838 fi
11839 fi
11840
11841
11842 PNG_INCLUDE=
11843 PNG_LINK=
11844 if test "$wxUSE_LIBPNG" != "no" ; then
11845 cat >> confdefs.h <<\EOF
11846 #define wxUSE_LIBPNG 1
11847 EOF
11848
11849
11850 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11851 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11852 wxUSE_LIBPNG=sys
11853 fi
11854
11855 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11856 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11857 wxUSE_LIBPNG=builtin
11858 fi
11859
11860 if test "$wxUSE_MGL" != 1 ; then
11861 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11862 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11863 echo "configure:11864: checking for png.h > 0.90" >&5
11864 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11866 else
11867 if test "$cross_compiling" = yes; then
11868 unset ac_cv_header_png_h
11869
11870 else
11871 cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11874
11875 #include <png.h>
11876 #include <stdio.h>
11877
11878 int main()
11879 {
11880 FILE *f=fopen("conftestval", "w");
11881 if (!f) exit(1);
11882 fprintf(f, "%s",
11883 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11884 exit(0);
11885 }
11886
11887 EOF
11888 if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11889 then
11890 ac_cv_header_png_h=`cat conftestval`
11891 else
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11894 rm -fr conftest*
11895 ac_cv_header_png_h=no
11896 fi
11897 rm -fr conftest*
11898 fi
11899
11900
11901 fi
11902
11903 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11904 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11905 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11906 echo "configure:11907: checking for png.h" >&5
11907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11909 else
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11913 #include <png.h>
11914 EOF
11915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11916 { (eval echo configure:11917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11918 if test -z "$ac_err"; then
11919 rm -rf conftest*
11920 eval "ac_cv_header_$ac_safe=yes"
11921 else
11922 echo "$ac_err" >&5
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -rf conftest*
11926 eval "ac_cv_header_$ac_safe=no"
11927 fi
11928 rm -f conftest*
11929 fi
11930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11931 echo "$ac_t""yes" 1>&6
11932 :
11933 else
11934 echo "$ac_t""no" 1>&6
11935 fi
11936
11937
11938 if test "$ac_cv_header_png_h" = "yes"; then
11939 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11940 echo "configure:11941: checking for png_check_sig in -lpng" >&5
11941 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11944 else
11945 ac_save_LIBS="$LIBS"
11946 LIBS="-lpng -lz -lm $LIBS"
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950 /* Override any gcc2 internal prototype to avoid an error. */
11951 /* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */
11953 char png_check_sig();
11954
11955 int main() {
11956 png_check_sig()
11957 ; return 0; }
11958 EOF
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11960 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=yes"
11962 else
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 rm -rf conftest*
11966 eval "ac_cv_lib_$ac_lib_var=no"
11967 fi
11968 rm -f conftest*
11969 LIBS="$ac_save_LIBS"
11970
11971 fi
11972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11973 echo "$ac_t""yes" 1>&6
11974 PNG_LINK=" -lpng"
11975 else
11976 echo "$ac_t""no" 1>&6
11977 fi
11978
11979 fi
11980
11981 if test "x$PNG_LINK" = "x" ; then
11982 if test "$wxUSE_LIBPNG" = "sys" ; then
11983 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11984 else
11985 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11986 wxUSE_LIBPNG=builtin
11987 fi
11988 else
11989 wxUSE_LIBPNG=sys
11990 fi
11991 fi
11992 fi
11993
11994 if test "$wxUSE_LIBPNG" = "builtin" ; then
11995 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11996 fi
11997
11998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11999 fi
12000
12001
12002 JPEG_INCLUDE=
12003 JPEG_LINK=
12004 if test "$wxUSE_LIBJPEG" != "no" ; then
12005 cat >> confdefs.h <<\EOF
12006 #define wxUSE_LIBJPEG 1
12007 EOF
12008
12009
12010 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
12011 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
12012 wxUSE_LIBJPEG=sys
12013 fi
12014
12015 if test "$wxUSE_MGL" != 1 ; then
12016 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
12017 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
12018 echo "configure:12019: checking for jpeglib.h" >&5
12019 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12021 else
12022 cat > conftest.$ac_ext <<EOF
12023 #line 12024 "configure"
12024 #include "confdefs.h"
12025
12026 #undef HAVE_STDLIB_H
12027 #include <stdio.h>
12028 #include <jpeglib.h>
12029
12030 int main() {
12031
12032
12033 ; return 0; }
12034 EOF
12035 if { (eval echo configure:12036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12036 rm -rf conftest*
12037 ac_cv_header_jpeglib_h=yes
12038 else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 ac_cv_header_jpeglib_h=no
12043
12044 fi
12045 rm -f conftest*
12046
12047 fi
12048
12049 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
12050
12051 if test "$ac_cv_header_jpeglib_h" = "yes"; then
12052 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
12053 echo "configure:12054: checking for jpeg_read_header in -ljpeg" >&5
12054 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12057 else
12058 ac_save_LIBS="$LIBS"
12059 LIBS="-ljpeg $LIBS"
12060 cat > conftest.$ac_ext <<EOF
12061 #line 12062 "configure"
12062 #include "confdefs.h"
12063 /* Override any gcc2 internal prototype to avoid an error. */
12064 /* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12066 char jpeg_read_header();
12067
12068 int main() {
12069 jpeg_read_header()
12070 ; return 0; }
12071 EOF
12072 if { (eval echo configure:12073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 rm -rf conftest*
12074 eval "ac_cv_lib_$ac_lib_var=yes"
12075 else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 eval "ac_cv_lib_$ac_lib_var=no"
12080 fi
12081 rm -f conftest*
12082 LIBS="$ac_save_LIBS"
12083
12084 fi
12085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
12087 JPEG_LINK=" -ljpeg"
12088 else
12089 echo "$ac_t""no" 1>&6
12090 fi
12091
12092 fi
12093
12094 if test "x$JPEG_LINK" = "x" ; then
12095 if test "$wxUSE_LIBJPEG" = "sys" ; then
12096 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12097 else
12098 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12099 wxUSE_LIBJPEG=builtin
12100 fi
12101 else
12102 wxUSE_LIBJPEG=sys
12103 fi
12104 fi
12105 fi
12106
12107 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12108 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12109 fi
12110 fi
12111
12112
12113 TIFF_INCLUDE=
12114 TIFF_LINK=
12115 TIFF_PREREQ_LINKS=-lm
12116 if test "$wxUSE_LIBTIFF" != "no" ; then
12117 cat >> confdefs.h <<\EOF
12118 #define wxUSE_LIBTIFF 1
12119 EOF
12120
12121
12122 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12123 if test "$wxUSE_LIBJPEG" = "sys"; then
12124 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12125 fi
12126 if test "$wxUSE_ZLIB" = "sys"; then
12127 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12128 fi
12129 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12130 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12131 echo "configure:12132: checking for tiffio.h" >&5
12132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134 else
12135 cat > conftest.$ac_ext <<EOF
12136 #line 12137 "configure"
12137 #include "confdefs.h"
12138 #include <tiffio.h>
12139 EOF
12140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12141 { (eval echo configure:12142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12143 if test -z "$ac_err"; then
12144 rm -rf conftest*
12145 eval "ac_cv_header_$ac_safe=yes"
12146 else
12147 echo "$ac_err" >&5
12148 echo "configure: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 rm -rf conftest*
12151 eval "ac_cv_header_$ac_safe=no"
12152 fi
12153 rm -f conftest*
12154 fi
12155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12156 echo "$ac_t""yes" 1>&6
12157 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12158 echo "configure:12159: checking for TIFFError in -ltiff" >&5
12159 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12162 else
12163 ac_save_LIBS="$LIBS"
12164 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12165 cat > conftest.$ac_ext <<EOF
12166 #line 12167 "configure"
12167 #include "confdefs.h"
12168 /* Override any gcc2 internal prototype to avoid an error. */
12169 /* We use char because int might match the return type of a gcc2
12170 builtin and then its argument prototype would still apply. */
12171 char TIFFError();
12172
12173 int main() {
12174 TIFFError()
12175 ; return 0; }
12176 EOF
12177 if { (eval echo configure:12178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12178 rm -rf conftest*
12179 eval "ac_cv_lib_$ac_lib_var=yes"
12180 else
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 rm -rf conftest*
12184 eval "ac_cv_lib_$ac_lib_var=no"
12185 fi
12186 rm -f conftest*
12187 LIBS="$ac_save_LIBS"
12188
12189 fi
12190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12191 echo "$ac_t""yes" 1>&6
12192 TIFF_LINK=" -ltiff"
12193 else
12194 echo "$ac_t""no" 1>&6
12195 fi
12196
12197
12198 else
12199 echo "$ac_t""no" 1>&6
12200 fi
12201
12202
12203 if test "x$TIFF_LINK" = "x" ; then
12204 if test "$wxUSE_LIBTIFF" = "sys" ; then
12205 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12206 else
12207 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12208 wxUSE_LIBTIFF=builtin
12209 fi
12210 else
12211 wxUSE_LIBTIFF=sys
12212 fi
12213 fi
12214
12215 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12216 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12217 fi
12218 fi
12219
12220
12221 AFMINSTALL=
12222 WIN32INSTALL=
12223
12224 TOOLKIT=
12225 TOOLKIT_INCLUDE=
12226 WIDGET_SET=
12227
12228 if test "$USE_WIN32" = 1 ; then
12229 for ac_hdr in w32api.h
12230 do
12231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12233 echo "configure:12234: checking for $ac_hdr" >&5
12234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12235 echo $ac_n "(cached) $ac_c" 1>&6
12236 else
12237 cat > conftest.$ac_ext <<EOF
12238 #line 12239 "configure"
12239 #include "confdefs.h"
12240 #include <$ac_hdr>
12241 EOF
12242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12243 { (eval echo configure:12244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12245 if test -z "$ac_err"; then
12246 rm -rf conftest*
12247 eval "ac_cv_header_$ac_safe=yes"
12248 else
12249 echo "$ac_err" >&5
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 rm -rf conftest*
12253 eval "ac_cv_header_$ac_safe=no"
12254 fi
12255 rm -f conftest*
12256 fi
12257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12258 echo "$ac_t""yes" 1>&6
12259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12260 cat >> confdefs.h <<EOF
12261 #define $ac_tr_hdr 1
12262 EOF
12263
12264 else
12265 echo "$ac_t""no" 1>&6
12266 fi
12267 done
12268
12269 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12270 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12271 echo "configure:12272: checking for windows.h" >&5
12272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12273 echo $ac_n "(cached) $ac_c" 1>&6
12274 else
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278 #include <windows.h>
12279 EOF
12280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12281 { (eval echo configure:12282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12283 if test -z "$ac_err"; then
12284 rm -rf conftest*
12285 eval "ac_cv_header_$ac_safe=yes"
12286 else
12287 echo "$ac_err" >&5
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12290 rm -rf conftest*
12291 eval "ac_cv_header_$ac_safe=no"
12292 fi
12293 rm -f conftest*
12294 fi
12295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12296 echo "$ac_t""yes" 1>&6
12297 :
12298 else
12299 echo "$ac_t""no" 1>&6
12300
12301 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12302
12303 fi
12304
12305
12306 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12307 echo "configure:12308: checking if w32api has good enough MSIE support" >&5
12308 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
12310 else
12311
12312 cat > conftest.$ac_ext <<EOF
12313 #line 12314 "configure"
12314 #include "confdefs.h"
12315 #include <w32api.h>
12316 int main() {
12317
12318 #define wxCHECK_W32API_VERSION( major, minor ) \
12319 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12320 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12321 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12322
12323 #if !wxCHECK_W32API_VERSION(1,1)
12324 #error You need w32api 1.1 or newer
12325 #endif
12326
12327 ; return 0; }
12328 EOF
12329 if { (eval echo configure:12330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12330 rm -rf conftest*
12331
12332 wx_cv_w32api_win32_ie=yes
12333
12334 else
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12337 rm -rf conftest*
12338
12339 wx_cv_w32api_win32_ie=no
12340
12341 fi
12342 rm -f conftest*
12343
12344 fi
12345
12346 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12347 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12348 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12349 fi
12350
12351 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12352
12353 case "${host}" in
12354 *-*-cygwin* )
12355 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12356 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12357 esac
12358
12359 if test "$wxUSE_ODBC" = "yes" ; then
12360 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12361 fi
12362
12363 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12364 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12365
12366 WIN32INSTALL=win32install
12367 fi
12368
12369 if test "$USE_DARWIN" = 1; then
12370 if test "$wxUSE_PRECOMP" = "yes"; then
12371 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12372 else
12373 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12374 fi
12375 fi
12376
12377 if test "$wxUSE_GUI" = "yes"; then
12378 USE_GUI=1
12379
12380 GUI_TK_LIBRARY=
12381
12382 WXGTK12=
12383 WXGTK127=
12384 WXGTK20=
12385
12386 if test "$wxUSE_MSW" = 1 ; then
12387 TOOLKIT=MSW
12388 GUIDIST=MSW_DIST
12389
12390 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12391 fi
12392
12393 if test "$wxUSE_GTK" = 1; then
12394 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12395 echo "configure:12396: checking for GTK+ version" >&5
12396
12397 gtk_version_cached=1
12398 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12399 echo $ac_n "(cached) $ac_c" 1>&6
12400 else
12401
12402 gtk_version_cached=0
12403 echo "$ac_t""" 1>&6
12404
12405 GTK_MODULES=
12406 if test "$wxUSE_THREADS" = "yes"; then
12407 GTK_MODULES=gthread
12408 fi
12409
12410 wx_cv_lib_gtk=
12411 if test "x$wxUSE_GTK2" = "xyes"; then
12412 # Check whether --enable-gtktest or --disable-gtktest was given.
12413 if test "${enable_gtktest+set}" = set; then
12414 enableval="$enable_gtktest"
12415 :
12416 else
12417 enable_gtktest=yes
12418 fi
12419
12420
12421 pkg_config_args=gtk+-2.0
12422 for module in . $GTK_MODULES
12423 do
12424 case "$module" in
12425 gthread)
12426 pkg_config_args="$pkg_config_args gthread-2.0"
12427 ;;
12428 esac
12429 done
12430
12431 no_gtk=""
12432
12433 # Extract the first word of "pkg-config", so it can be a program name with args.
12434 set dummy pkg-config; ac_word=$2
12435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12436 echo "configure:12437: checking for $ac_word" >&5
12437 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
12439 else
12440 case "$PKG_CONFIG" in
12441 /*)
12442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12443 ;;
12444 ?:/*)
12445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12446 ;;
12447 *)
12448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12449 ac_dummy="$PATH"
12450 for ac_dir in $ac_dummy; do
12451 test -z "$ac_dir" && ac_dir=.
12452 if test -f $ac_dir/$ac_word; then
12453 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12454 break
12455 fi
12456 done
12457 IFS="$ac_save_ifs"
12458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12459 ;;
12460 esac
12461 fi
12462 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12463 if test -n "$PKG_CONFIG"; then
12464 echo "$ac_t""$PKG_CONFIG" 1>&6
12465 else
12466 echo "$ac_t""no" 1>&6
12467 fi
12468
12469
12470 if test x$PKG_CONFIG != xno ; then
12471 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12472 :
12473 else
12474 echo *** pkg-config too old; version 0.7 or better required.
12475 no_gtk=yes
12476 PKG_CONFIG=no
12477 fi
12478 else
12479 no_gtk=yes
12480 fi
12481
12482 min_gtk_version=2.0.0
12483 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12484 echo "configure:12485: checking for GTK+ - version >= $min_gtk_version" >&5
12485
12486 if test x$PKG_CONFIG != xno ; then
12487 ## don't try to run the test against uninstalled libtool libs
12488 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12489 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12490 enable_gtktest=no
12491 fi
12492
12493 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12494 :
12495 else
12496 no_gtk=yes
12497 fi
12498 fi
12499
12500 if test x"$no_gtk" = x ; then
12501 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12502 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12503 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12505 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12507 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12509 if test "x$enable_gtktest" = "xyes" ; then
12510 ac_save_CFLAGS="$CFLAGS"
12511 ac_save_LIBS="$LIBS"
12512 CFLAGS="$CFLAGS $GTK_CFLAGS"
12513 LIBS="$GTK_LIBS $LIBS"
12514 rm -f conf.gtktest
12515 if test "$cross_compiling" = yes; then
12516 echo $ac_n "cross compiling; assumed OK... $ac_c"
12517 else
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521
12522 #include <gtk/gtk.h>
12523 #include <stdio.h>
12524 #include <stdlib.h>
12525
12526 int
12527 main ()
12528 {
12529 int major, minor, micro;
12530 char *tmp_version;
12531
12532 system ("touch conf.gtktest");
12533
12534 /* HP/UX 9 (%@#!) writes to sscanf strings */
12535 tmp_version = g_strdup("$min_gtk_version");
12536 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12537 printf("%s, bad version string\n", "$min_gtk_version");
12538 exit(1);
12539 }
12540
12541 if ((gtk_major_version != $gtk_config_major_version) ||
12542 (gtk_minor_version != $gtk_config_minor_version) ||
12543 (gtk_micro_version != $gtk_config_micro_version))
12544 {
12545 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12546 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12547 gtk_major_version, gtk_minor_version, gtk_micro_version);
12548 printf ("*** was found! If pkg-config was correct, then it is best\n");
12549 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12550 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12551 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12552 printf("*** required on your system.\n");
12553 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12554 printf("*** to point to the correct configuration files\n");
12555 }
12556 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12557 (gtk_minor_version != GTK_MINOR_VERSION) ||
12558 (gtk_micro_version != GTK_MICRO_VERSION))
12559 {
12560 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12561 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12562 printf("*** library (version %d.%d.%d)\n",
12563 gtk_major_version, gtk_minor_version, gtk_micro_version);
12564 }
12565 else
12566 {
12567 if ((gtk_major_version > major) ||
12568 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12569 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12570 {
12571 return 0;
12572 }
12573 else
12574 {
12575 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12576 gtk_major_version, gtk_minor_version, gtk_micro_version);
12577 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12578 major, minor, micro);
12579 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12580 printf("***\n");
12581 printf("*** If you have already installed a sufficiently new version, this error\n");
12582 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12583 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12584 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12585 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12586 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12587 printf("*** so that the correct libraries are found at run-time))\n");
12588 }
12589 }
12590 return 1;
12591 }
12592
12593 EOF
12594 if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12595 then
12596 :
12597 else
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 rm -fr conftest*
12601 no_gtk=yes
12602 fi
12603 rm -fr conftest*
12604 fi
12605
12606 CFLAGS="$ac_save_CFLAGS"
12607 LIBS="$ac_save_LIBS"
12608 fi
12609 fi
12610 if test "x$no_gtk" = x ; then
12611 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12612 wx_cv_lib_gtk=2.0
12613 else
12614 echo "$ac_t""no" 1>&6
12615 if test "$PKG_CONFIG" = "no" ; then
12616 echo "*** A new enough version of pkg-config was not found."
12617 echo "*** See http://pkgconfig.sourceforge.net"
12618 else
12619 if test -f conf.gtktest ; then
12620 :
12621 else
12622 echo "*** Could not run GTK+ test program, checking why..."
12623 ac_save_CFLAGS="$CFLAGS"
12624 ac_save_LIBS="$LIBS"
12625 CFLAGS="$CFLAGS $GTK_CFLAGS"
12626 LIBS="$LIBS $GTK_LIBS"
12627 cat > conftest.$ac_ext <<EOF
12628 #line 12629 "configure"
12629 #include "confdefs.h"
12630
12631 #include <gtk/gtk.h>
12632 #include <stdio.h>
12633
12634 int main() {
12635 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12636 ; return 0; }
12637 EOF
12638 if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12639 rm -rf conftest*
12640 echo "*** The test program compiled, but did not run. This usually means"
12641 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12642 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12643 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12644 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12645 echo "*** is required on your system"
12646 echo "***"
12647 echo "*** If you have an old version installed, it is best to remove it, although"
12648 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12649 else
12650 echo "configure: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12652 rm -rf conftest*
12653 echo "*** The test program failed to compile or link. See the file config.log for the"
12654 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12655 fi
12656 rm -f conftest*
12657 CFLAGS="$ac_save_CFLAGS"
12658 LIBS="$ac_save_LIBS"
12659 fi
12660 fi
12661 GTK_CFLAGS=""
12662 GTK_LIBS=""
12663 :
12664 fi
12665
12666
12667 rm -f conf.gtktest
12668
12669 else
12670 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12671 if test "${with_gtk_prefix+set}" = set; then
12672 withval="$with_gtk_prefix"
12673 gtk_config_prefix="$withval"
12674 else
12675 gtk_config_prefix=""
12676 fi
12677
12678 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12679 if test "${with_gtk_exec_prefix+set}" = set; then
12680 withval="$with_gtk_exec_prefix"
12681 gtk_config_exec_prefix="$withval"
12682 else
12683 gtk_config_exec_prefix=""
12684 fi
12685
12686 # Check whether --enable-gtktest or --disable-gtktest was given.
12687 if test "${enable_gtktest+set}" = set; then
12688 enableval="$enable_gtktest"
12689 :
12690 else
12691 enable_gtktest=yes
12692 fi
12693
12694
12695 for module in . $GTK_MODULES
12696 do
12697 case "$module" in
12698 gthread)
12699 gtk_config_args="$gtk_config_args gthread"
12700 ;;
12701 esac
12702 done
12703
12704 if test x$gtk_config_exec_prefix != x ; then
12705 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12706 if test x${GTK_CONFIG+set} != xset ; then
12707 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12708 fi
12709 fi
12710 if test x$gtk_config_prefix != x ; then
12711 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12712 if test x${GTK_CONFIG+set} != xset ; then
12713 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12714 fi
12715 fi
12716
12717 # Extract the first word of "gtk-config", so it can be a program name with args.
12718 set dummy gtk-config; ac_word=$2
12719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12720 echo "configure:12721: checking for $ac_word" >&5
12721 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12723 else
12724 case "$GTK_CONFIG" in
12725 /*)
12726 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12727 ;;
12728 ?:/*)
12729 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12730 ;;
12731 *)
12732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12733 ac_dummy="$PATH"
12734 for ac_dir in $ac_dummy; do
12735 test -z "$ac_dir" && ac_dir=.
12736 if test -f $ac_dir/$ac_word; then
12737 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12738 break
12739 fi
12740 done
12741 IFS="$ac_save_ifs"
12742 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12743 ;;
12744 esac
12745 fi
12746 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12747 if test -n "$GTK_CONFIG"; then
12748 echo "$ac_t""$GTK_CONFIG" 1>&6
12749 else
12750 echo "$ac_t""no" 1>&6
12751 fi
12752
12753 min_gtk_version=1.2.7
12754 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12755 echo "configure:12756: checking for GTK - version >= $min_gtk_version" >&5
12756 no_gtk=""
12757 if test "$GTK_CONFIG" = "no" ; then
12758 no_gtk=yes
12759 else
12760 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12761 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12762 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12764 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12766 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12768 if test "x$enable_gtktest" = "xyes" ; then
12769 ac_save_CFLAGS="$CFLAGS"
12770 ac_save_LIBS="$LIBS"
12771 CFLAGS="$CFLAGS $GTK_CFLAGS"
12772 LIBS="$GTK_LIBS $LIBS"
12773 rm -f conf.gtktest
12774 if test "$cross_compiling" = yes; then
12775 echo $ac_n "cross compiling; assumed OK... $ac_c"
12776 else
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780
12781 #include <gtk/gtk.h>
12782 #include <stdio.h>
12783 #include <stdlib.h>
12784
12785 int
12786 main ()
12787 {
12788 int major, minor, micro;
12789 char *tmp_version;
12790
12791 system ("touch conf.gtktest");
12792
12793 /* HP/UX 9 (%@#!) writes to sscanf strings */
12794 tmp_version = g_strdup("$min_gtk_version");
12795 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12796 printf("%s, bad version string\n", "$min_gtk_version");
12797 exit(1);
12798 }
12799
12800 if ((gtk_major_version != $gtk_config_major_version) ||
12801 (gtk_minor_version != $gtk_config_minor_version) ||
12802 (gtk_micro_version != $gtk_config_micro_version))
12803 {
12804 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12805 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12806 gtk_major_version, gtk_minor_version, gtk_micro_version);
12807 printf ("*** was found! If gtk-config was correct, then it is best\n");
12808 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12809 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12810 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12811 printf("*** required on your system.\n");
12812 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12813 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12814 printf("*** before re-running configure\n");
12815 }
12816 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12817 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12818 (gtk_minor_version != GTK_MINOR_VERSION) ||
12819 (gtk_micro_version != GTK_MICRO_VERSION))
12820 {
12821 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12822 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12823 printf("*** library (version %d.%d.%d)\n",
12824 gtk_major_version, gtk_minor_version, gtk_micro_version);
12825 }
12826 #endif /* defined (GTK_MAJOR_VERSION) ... */
12827 else
12828 {
12829 if ((gtk_major_version > major) ||
12830 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12831 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12832 {
12833 return 0;
12834 }
12835 else
12836 {
12837 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12838 gtk_major_version, gtk_minor_version, gtk_micro_version);
12839 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12840 major, minor, micro);
12841 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12842 printf("***\n");
12843 printf("*** If you have already installed a sufficiently new version, this error\n");
12844 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12845 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12846 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12847 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12848 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12849 printf("*** so that the correct libraries are found at run-time))\n");
12850 }
12851 }
12852 return 1;
12853 }
12854
12855 EOF
12856 if { (eval echo configure:12857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12857 then
12858 :
12859 else
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 rm -fr conftest*
12863 no_gtk=yes
12864 fi
12865 rm -fr conftest*
12866 fi
12867
12868 CFLAGS="$ac_save_CFLAGS"
12869 LIBS="$ac_save_LIBS"
12870 fi
12871 fi
12872 if test "x$no_gtk" = x ; then
12873 echo "$ac_t""yes" 1>&6
12874 wx_cv_lib_gtk=1.2.7
12875 else
12876 echo "$ac_t""no" 1>&6
12877 if test "$GTK_CONFIG" = "no" ; then
12878 echo "*** The gtk-config script installed by GTK could not be found"
12879 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12880 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12881 echo "*** full path to gtk-config."
12882 else
12883 if test -f conf.gtktest ; then
12884 :
12885 else
12886 echo "*** Could not run GTK test program, checking why..."
12887 CFLAGS="$CFLAGS $GTK_CFLAGS"
12888 LIBS="$LIBS $GTK_LIBS"
12889 cat > conftest.$ac_ext <<EOF
12890 #line 12891 "configure"
12891 #include "confdefs.h"
12892
12893 #include <gtk/gtk.h>
12894 #include <stdio.h>
12895
12896 int main() {
12897 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12898 ; return 0; }
12899 EOF
12900 if { (eval echo configure:12901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12901 rm -rf conftest*
12902 echo "*** The test program compiled, but did not run. This usually means"
12903 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12904 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12905 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12906 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12907 echo "*** is required on your system"
12908 echo "***"
12909 echo "*** If you have an old version installed, it is best to remove it, although"
12910 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12911 echo "***"
12912 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12913 echo "*** came with the system with the command"
12914 echo "***"
12915 echo "*** rpm --erase --nodeps gtk gtk-devel"
12916 else
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 rm -rf conftest*
12920 echo "*** The test program failed to compile or link. See the file config.log for the"
12921 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12922 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12923 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12924 fi
12925 rm -f conftest*
12926 CFLAGS="$ac_save_CFLAGS"
12927 LIBS="$ac_save_LIBS"
12928 fi
12929 fi
12930 GTK_CFLAGS=""
12931 GTK_LIBS=""
12932 :
12933 fi
12934
12935
12936 rm -f conf.gtktest
12937
12938
12939 if test -z "$wx_cv_lib_gtk"; then
12940 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12941 if test "${with_gtk_prefix+set}" = set; then
12942 withval="$with_gtk_prefix"
12943 gtk_config_prefix="$withval"
12944 else
12945 gtk_config_prefix=""
12946 fi
12947
12948 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12949 if test "${with_gtk_exec_prefix+set}" = set; then
12950 withval="$with_gtk_exec_prefix"
12951 gtk_config_exec_prefix="$withval"
12952 else
12953 gtk_config_exec_prefix=""
12954 fi
12955
12956 # Check whether --enable-gtktest or --disable-gtktest was given.
12957 if test "${enable_gtktest+set}" = set; then
12958 enableval="$enable_gtktest"
12959 :
12960 else
12961 enable_gtktest=yes
12962 fi
12963
12964
12965 for module in . $GTK_MODULES
12966 do
12967 case "$module" in
12968 gthread)
12969 gtk_config_args="$gtk_config_args gthread"
12970 ;;
12971 esac
12972 done
12973
12974 if test x$gtk_config_exec_prefix != x ; then
12975 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12976 if test x${GTK_CONFIG+set} != xset ; then
12977 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12978 fi
12979 fi
12980 if test x$gtk_config_prefix != x ; then
12981 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12982 if test x${GTK_CONFIG+set} != xset ; then
12983 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12984 fi
12985 fi
12986
12987 # Extract the first word of "gtk-config", so it can be a program name with args.
12988 set dummy gtk-config; ac_word=$2
12989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12990 echo "configure:12991: checking for $ac_word" >&5
12991 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12992 echo $ac_n "(cached) $ac_c" 1>&6
12993 else
12994 case "$GTK_CONFIG" in
12995 /*)
12996 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12997 ;;
12998 ?:/*)
12999 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
13000 ;;
13001 *)
13002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13003 ac_dummy="$PATH"
13004 for ac_dir in $ac_dummy; do
13005 test -z "$ac_dir" && ac_dir=.
13006 if test -f $ac_dir/$ac_word; then
13007 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13008 break
13009 fi
13010 done
13011 IFS="$ac_save_ifs"
13012 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13013 ;;
13014 esac
13015 fi
13016 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
13017 if test -n "$GTK_CONFIG"; then
13018 echo "$ac_t""$GTK_CONFIG" 1>&6
13019 else
13020 echo "$ac_t""no" 1>&6
13021 fi
13022
13023 min_gtk_version=1.2.3
13024 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
13025 echo "configure:13026: checking for GTK - version >= $min_gtk_version" >&5
13026 no_gtk=""
13027 if test "$GTK_CONFIG" = "no" ; then
13028 no_gtk=yes
13029 else
13030 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13031 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13032 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13034 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13036 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13038 if test "x$enable_gtktest" = "xyes" ; then
13039 ac_save_CFLAGS="$CFLAGS"
13040 ac_save_LIBS="$LIBS"
13041 CFLAGS="$CFLAGS $GTK_CFLAGS"
13042 LIBS="$GTK_LIBS $LIBS"
13043 rm -f conf.gtktest
13044 if test "$cross_compiling" = yes; then
13045 echo $ac_n "cross compiling; assumed OK... $ac_c"
13046 else
13047 cat > conftest.$ac_ext <<EOF
13048 #line 13049 "configure"
13049 #include "confdefs.h"
13050
13051 #include <gtk/gtk.h>
13052 #include <stdio.h>
13053 #include <stdlib.h>
13054
13055 int
13056 main ()
13057 {
13058 int major, minor, micro;
13059 char *tmp_version;
13060
13061 system ("touch conf.gtktest");
13062
13063 /* HP/UX 9 (%@#!) writes to sscanf strings */
13064 tmp_version = g_strdup("$min_gtk_version");
13065 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13066 printf("%s, bad version string\n", "$min_gtk_version");
13067 exit(1);
13068 }
13069
13070 if ((gtk_major_version != $gtk_config_major_version) ||
13071 (gtk_minor_version != $gtk_config_minor_version) ||
13072 (gtk_micro_version != $gtk_config_micro_version))
13073 {
13074 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13075 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13076 gtk_major_version, gtk_minor_version, gtk_micro_version);
13077 printf ("*** was found! If gtk-config was correct, then it is best\n");
13078 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13079 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13080 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13081 printf("*** required on your system.\n");
13082 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13083 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13084 printf("*** before re-running configure\n");
13085 }
13086 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13087 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13088 (gtk_minor_version != GTK_MINOR_VERSION) ||
13089 (gtk_micro_version != GTK_MICRO_VERSION))
13090 {
13091 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13092 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13093 printf("*** library (version %d.%d.%d)\n",
13094 gtk_major_version, gtk_minor_version, gtk_micro_version);
13095 }
13096 #endif /* defined (GTK_MAJOR_VERSION) ... */
13097 else
13098 {
13099 if ((gtk_major_version > major) ||
13100 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13101 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13102 {
13103 return 0;
13104 }
13105 else
13106 {
13107 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13108 gtk_major_version, gtk_minor_version, gtk_micro_version);
13109 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13110 major, minor, micro);
13111 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13112 printf("***\n");
13113 printf("*** If you have already installed a sufficiently new version, this error\n");
13114 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13115 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13116 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13117 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13118 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13119 printf("*** so that the correct libraries are found at run-time))\n");
13120 }
13121 }
13122 return 1;
13123 }
13124
13125 EOF
13126 if { (eval echo configure:13127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13127 then
13128 :
13129 else
13130 echo "configure: failed program was:" >&5
13131 cat conftest.$ac_ext >&5
13132 rm -fr conftest*
13133 no_gtk=yes
13134 fi
13135 rm -fr conftest*
13136 fi
13137
13138 CFLAGS="$ac_save_CFLAGS"
13139 LIBS="$ac_save_LIBS"
13140 fi
13141 fi
13142 if test "x$no_gtk" = x ; then
13143 echo "$ac_t""yes" 1>&6
13144 wx_cv_lib_gtk=1.2.3
13145 else
13146 echo "$ac_t""no" 1>&6
13147 if test "$GTK_CONFIG" = "no" ; then
13148 echo "*** The gtk-config script installed by GTK could not be found"
13149 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13150 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13151 echo "*** full path to gtk-config."
13152 else
13153 if test -f conf.gtktest ; then
13154 :
13155 else
13156 echo "*** Could not run GTK test program, checking why..."
13157 CFLAGS="$CFLAGS $GTK_CFLAGS"
13158 LIBS="$LIBS $GTK_LIBS"
13159 cat > conftest.$ac_ext <<EOF
13160 #line 13161 "configure"
13161 #include "confdefs.h"
13162
13163 #include <gtk/gtk.h>
13164 #include <stdio.h>
13165
13166 int main() {
13167 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13168 ; return 0; }
13169 EOF
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13171 rm -rf conftest*
13172 echo "*** The test program compiled, but did not run. This usually means"
13173 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13174 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13175 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13176 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13177 echo "*** is required on your system"
13178 echo "***"
13179 echo "*** If you have an old version installed, it is best to remove it, although"
13180 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13181 echo "***"
13182 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13183 echo "*** came with the system with the command"
13184 echo "***"
13185 echo "*** rpm --erase --nodeps gtk gtk-devel"
13186 else
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13189 rm -rf conftest*
13190 echo "*** The test program failed to compile or link. See the file config.log for the"
13191 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13192 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13193 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13194 fi
13195 rm -f conftest*
13196 CFLAGS="$ac_save_CFLAGS"
13197 LIBS="$ac_save_LIBS"
13198 fi
13199 fi
13200 GTK_CFLAGS=""
13201 GTK_LIBS=""
13202 :
13203 fi
13204
13205
13206 rm -f conf.gtktest
13207
13208 fi
13209 fi
13210
13211 if test -z "$wx_cv_lib_gtk"; then
13212 wx_cv_lib_gtk=none
13213 else
13214 wx_cv_cflags_gtk=$GTK_CFLAGS
13215 wx_cv_libs_gtk=$GTK_LIBS
13216 fi
13217
13218
13219 fi
13220
13221
13222 if test "$gtk_version_cached" = 1; then
13223 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13224 fi
13225
13226 case "$wx_cv_lib_gtk" in
13227 2.0) WXGTK20=1
13228 TOOLKIT_VERSION=2
13229 ;;
13230 1.2.7) WXGTK127=1
13231 WXGTK12=1
13232 ;;
13233 1.2.3) WXGTK12=1
13234 ;;
13235 *) { echo "configure: error:
13236 Please check that gtk-config is in path, the directory
13237 where GTK+ libraries are installed (returned by
13238 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13239 equivalent variable and GTK+ is version 1.2.3 or above.
13240 " 1>&2; exit 1; }
13241 ;;
13242 esac
13243
13244 if test "$WXGTK20" = 1; then
13245 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13246
13247 succeeded=no
13248
13249 if test -z "$PKG_CONFIG"; then
13250 # Extract the first word of "pkg-config", so it can be a program name with args.
13251 set dummy pkg-config; ac_word=$2
13252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13253 echo "configure:13254: checking for $ac_word" >&5
13254 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13255 echo $ac_n "(cached) $ac_c" 1>&6
13256 else
13257 case "$PKG_CONFIG" in
13258 /*)
13259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13260 ;;
13261 ?:/*)
13262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13263 ;;
13264 *)
13265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13266 ac_dummy="$PATH"
13267 for ac_dir in $ac_dummy; do
13268 test -z "$ac_dir" && ac_dir=.
13269 if test -f $ac_dir/$ac_word; then
13270 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13271 break
13272 fi
13273 done
13274 IFS="$ac_save_ifs"
13275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13276 ;;
13277 esac
13278 fi
13279 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13280 if test -n "$PKG_CONFIG"; then
13281 echo "$ac_t""$PKG_CONFIG" 1>&6
13282 else
13283 echo "$ac_t""no" 1>&6
13284 fi
13285
13286 fi
13287
13288 if test "$PKG_CONFIG" = "no" ; then
13289 echo "*** The pkg-config script could not be found. Make sure it is"
13290 echo "*** in your path, or set the PKG_CONFIG environment variable"
13291 echo "*** to the full path to pkg-config."
13292 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13293 else
13294 PKG_CONFIG_MIN_VERSION=0.9.0
13295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13296 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13297 echo "configure:13298: checking for pangoft2" >&5
13298
13299 if $PKG_CONFIG --exists "pangoft2" ; then
13300 echo "$ac_t""yes" 1>&6
13301 succeeded=yes
13302
13303 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13304 echo "configure:13305: checking PANGOFT2_CFLAGS" >&5
13305 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13306 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13307
13308 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13309 echo "configure:13310: checking PANGOFT2_LIBS" >&5
13310 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13311 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13312 else
13313 PANGOFT2_CFLAGS=""
13314 PANGOFT2_LIBS=""
13315 ## If we have a custom action on failure, don't print errors, but
13316 ## do set a variable so people can do so.
13317 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13318
13319 fi
13320
13321
13322
13323 else
13324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13326 fi
13327 fi
13328
13329 if test $succeeded = yes; then
13330
13331 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13332 LIBS="$LIBS $PANGOFT2_LIBS"
13333
13334 else
13335
13336 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13337 wxUSE_PRINTING_ARCHITECTURE="no"
13338
13339
13340 fi
13341
13342 fi
13343 else
13344 if test "$wxUSE_UNICODE" = "yes"; then
13345 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13346 wxUSE_UNICODE=no
13347 fi
13348 fi
13349
13350 if test "$USE_DARWIN" != 1; then
13351 for ac_func in poll
13352 do
13353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13354 echo "configure:13355: checking for $ac_func" >&5
13355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357 else
13358 cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13361 /* System header to define __stub macros and hopefully few prototypes,
13362 which can conflict with char $ac_func(); below. */
13363 #include <assert.h>
13364 /* Override any gcc2 internal prototype to avoid an error. */
13365 /* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13367 char $ac_func();
13368
13369 int main() {
13370
13371 /* The GNU C library defines this for functions which it implements
13372 to always fail with ENOSYS. Some functions are actually named
13373 something starting with __ and the normal name is an alias. */
13374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13375 choke me
13376 #else
13377 $ac_func();
13378 #endif
13379
13380 ; return 0; }
13381 EOF
13382 if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13383 rm -rf conftest*
13384 eval "ac_cv_func_$ac_func=yes"
13385 else
13386 echo "configure: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13388 rm -rf conftest*
13389 eval "ac_cv_func_$ac_func=no"
13390 fi
13391 rm -f conftest*
13392 fi
13393
13394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13395 echo "$ac_t""yes" 1>&6
13396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13397 cat >> confdefs.h <<EOF
13398 #define $ac_tr_func 1
13399 EOF
13400
13401 else
13402 echo "$ac_t""no" 1>&6
13403 fi
13404 done
13405
13406 fi
13407
13408 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13409 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13410
13411 AFMINSTALL=afminstall
13412 TOOLKIT=GTK
13413 GUIDIST=GTK_DIST
13414
13415 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13416 echo "configure:13417: checking for gdk_im_open in -lgdk" >&5
13417 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
13420 else
13421 ac_save_LIBS="$LIBS"
13422 LIBS="-lgdk $LIBS"
13423 cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 /* Override any gcc2 internal prototype to avoid an error. */
13427 /* We use char because int might match the return type of a gcc2
13428 builtin and then its argument prototype would still apply. */
13429 char gdk_im_open();
13430
13431 int main() {
13432 gdk_im_open()
13433 ; return 0; }
13434 EOF
13435 if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13436 rm -rf conftest*
13437 eval "ac_cv_lib_$ac_lib_var=yes"
13438 else
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13441 rm -rf conftest*
13442 eval "ac_cv_lib_$ac_lib_var=no"
13443 fi
13444 rm -f conftest*
13445 LIBS="$ac_save_LIBS"
13446
13447 fi
13448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13450 cat >> confdefs.h <<\EOF
13451 #define HAVE_XIM 1
13452 EOF
13453
13454 else
13455 echo "$ac_t""no" 1>&6
13456 fi
13457
13458 fi
13459
13460 if test "$wxUSE_MGL" = 1; then
13461 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13462 echo "configure:13463: checking for SciTech MGL library" >&5
13463 if test "x$MGL_ROOT" = x ; then
13464 echo "$ac_t""not found" 1>&6
13465 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13466 else
13467 echo "$ac_t""$MGL_ROOT" 1>&6
13468 fi
13469
13470 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13471 echo "configure:13472: checking for libmgl location" >&5
13472 case "${host}" in
13473 *-*-linux* )
13474 if test "x$wxUSE_SHARED" = xyes ; then
13475 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13476 else
13477 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13478 fi
13479 ;;
13480 *-pc-msdosdjgpp )
13481 mgl_os_candidates="dos32/dj2"
13482 ;;
13483 *)
13484 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13485 esac
13486
13487 mgl_lib_type=""
13488 mgl_os=""
13489
13490 for mgl_os_i in $mgl_os_candidates ; do
13491 if test "x$mgl_os" = x ; then
13492 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13493 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13494 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13495 mgl_lib_type=debug
13496 mgl_os=$mgl_os_i
13497 fi
13498 fi
13499 if test "x$mgl_lib_type" = x ; then
13500 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13501 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13502 mgl_lib_type=release
13503 mgl_os=$mgl_os_i
13504 fi
13505 fi
13506 fi
13507 done
13508
13509 if test "x$mgl_os" = x ; then
13510 echo "$ac_t""not found" 1>&6
13511 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13512 fi
13513 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13514
13515 wxUSE_UNIVERSAL="yes"
13516
13517 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13518 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13519
13520 AFMINSTALL=afminstall
13521 TOOLKIT=MGL
13522 GUIDIST=MGL_DIST
13523 fi
13524
13525 if test "$wxUSE_MICROWIN" = 1; then
13526 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13527 echo "configure:13528: checking for MicroWindows" >&5
13528 if test "x$MICROWINDOWS" = x ; then
13529 echo "$ac_t""not found" 1>&6
13530 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13531 else
13532 echo "$ac_t""$MICROWINDOWS" 1>&6
13533 fi
13534
13535 if test -f $MICROWINDOWS/lib/libmwin.a; then
13536 echo "$ac_t""MicroWindows' libraries found." 1>&6
13537 else
13538 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13539 fi
13540
13541 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13542 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13543
13544 wxUSE_UNIVERSAL="yes"
13545
13546 AFMINSTALL=afminstall
13547 TOOLKIT=MICROWIN
13548 GUIDIST=MICROWIN_DIST
13549
13550 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13551 fi
13552
13553 if test "$wxUSE_X11" = 1; then
13554 # If we find X, set shell vars x_includes and x_libraries to the
13555 # paths, otherwise set no_x=yes.
13556 # Uses ac_ vars as temps to allow command line to override cache and checks.
13557 # --without-x overrides everything else, but does not touch the cache.
13558 echo $ac_n "checking for X""... $ac_c" 1>&6
13559 echo "configure:13560: checking for X" >&5
13560
13561 # Check whether --with-x or --without-x was given.
13562 if test "${with_x+set}" = set; then
13563 withval="$with_x"
13564 :
13565 fi
13566
13567 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13568 if test "x$with_x" = xno; then
13569 # The user explicitly disabled X.
13570 have_x=disabled
13571 else
13572 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13573 # Both variables are already set.
13574 have_x=yes
13575 else
13576 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13577 echo $ac_n "(cached) $ac_c" 1>&6
13578 else
13579 # One or both of the vars are not set, and there is no cached value.
13580 ac_x_includes=NO ac_x_libraries=NO
13581 rm -fr conftestdir
13582 if mkdir conftestdir; then
13583 cd conftestdir
13584 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13585 cat > Imakefile <<'EOF'
13586 acfindx:
13587 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13588 EOF
13589 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13591 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13592 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13593 for ac_extension in a so sl; do
13594 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13595 test -f $ac_im_libdir/libX11.$ac_extension; then
13596 ac_im_usrlibdir=$ac_im_libdir; break
13597 fi
13598 done
13599 # Screen out bogus values from the imake configuration. They are
13600 # bogus both because they are the default anyway, and because
13601 # using them would break gcc on systems where it needs fixed includes.
13602 case "$ac_im_incroot" in
13603 /usr/include) ;;
13604 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13605 esac
13606 case "$ac_im_usrlibdir" in
13607 /usr/lib | /lib) ;;
13608 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13609 esac
13610 fi
13611 cd ..
13612 rm -fr conftestdir
13613 fi
13614
13615 if test "$ac_x_includes" = NO; then
13616 # Guess where to find include files, by looking for this one X11 .h file.
13617 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13618
13619 # First, try using that file with no special directory specified.
13620 cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 #include <$x_direct_test_include>
13624 EOF
13625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13626 { (eval echo configure:13627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13628 if test -z "$ac_err"; then
13629 rm -rf conftest*
13630 # We can compile using X headers with no special include directory.
13631 ac_x_includes=
13632 else
13633 echo "$ac_err" >&5
13634 echo "configure: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13636 rm -rf conftest*
13637 # Look for the header file in a standard set of common directories.
13638 # Check X11 before X11Rn because it is often a symlink to the current release.
13639 for ac_dir in \
13640 /usr/X11/include \
13641 /usr/X11R6/include \
13642 /usr/X11R5/include \
13643 /usr/X11R4/include \
13644 \
13645 /usr/include/X11 \
13646 /usr/include/X11R6 \
13647 /usr/include/X11R5 \
13648 /usr/include/X11R4 \
13649 \
13650 /usr/local/X11/include \
13651 /usr/local/X11R6/include \
13652 /usr/local/X11R5/include \
13653 /usr/local/X11R4/include \
13654 \
13655 /usr/local/include/X11 \
13656 /usr/local/include/X11R6 \
13657 /usr/local/include/X11R5 \
13658 /usr/local/include/X11R4 \
13659 \
13660 /usr/X386/include \
13661 /usr/x386/include \
13662 /usr/XFree86/include/X11 \
13663 \
13664 /usr/include \
13665 /usr/local/include \
13666 /usr/unsupported/include \
13667 /usr/athena/include \
13668 /usr/local/x11r5/include \
13669 /usr/lpp/Xamples/include \
13670 \
13671 /usr/openwin/include \
13672 /usr/openwin/share/include \
13673 ; \
13674 do
13675 if test -r "$ac_dir/$x_direct_test_include"; then
13676 ac_x_includes=$ac_dir
13677 break
13678 fi
13679 done
13680 fi
13681 rm -f conftest*
13682 fi # $ac_x_includes = NO
13683
13684 if test "$ac_x_libraries" = NO; then
13685 # Check for the libraries.
13686
13687 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13688 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13689
13690 # See if we find them without any special options.
13691 # Don't add to $LIBS permanently.
13692 ac_save_LIBS="$LIBS"
13693 LIBS="-l$x_direct_test_library $LIBS"
13694 cat > conftest.$ac_ext <<EOF
13695 #line 13696 "configure"
13696 #include "confdefs.h"
13697
13698 int main() {
13699 ${x_direct_test_function}()
13700 ; return 0; }
13701 EOF
13702 if { (eval echo configure:13703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13703 rm -rf conftest*
13704 LIBS="$ac_save_LIBS"
13705 # We can link X programs with no special library path.
13706 ac_x_libraries=
13707 else
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 LIBS="$ac_save_LIBS"
13712 # First see if replacing the include by lib works.
13713 # Check X11 before X11Rn because it is often a symlink to the current release.
13714 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13715 /usr/X11/lib \
13716 /usr/X11R6/lib \
13717 /usr/X11R5/lib \
13718 /usr/X11R4/lib \
13719 \
13720 /usr/lib/X11 \
13721 /usr/lib/X11R6 \
13722 /usr/lib/X11R5 \
13723 /usr/lib/X11R4 \
13724 \
13725 /usr/local/X11/lib \
13726 /usr/local/X11R6/lib \
13727 /usr/local/X11R5/lib \
13728 /usr/local/X11R4/lib \
13729 \
13730 /usr/local/lib/X11 \
13731 /usr/local/lib/X11R6 \
13732 /usr/local/lib/X11R5 \
13733 /usr/local/lib/X11R4 \
13734 \
13735 /usr/X386/lib \
13736 /usr/x386/lib \
13737 /usr/XFree86/lib/X11 \
13738 \
13739 /usr/lib \
13740 /usr/local/lib \
13741 /usr/unsupported/lib \
13742 /usr/athena/lib \
13743 /usr/local/x11r5/lib \
13744 /usr/lpp/Xamples/lib \
13745 /lib/usr/lib/X11 \
13746 \
13747 /usr/openwin/lib \
13748 /usr/openwin/share/lib \
13749 ; \
13750 do
13751 for ac_extension in a so sl; do
13752 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13753 ac_x_libraries=$ac_dir
13754 break 2
13755 fi
13756 done
13757 done
13758 fi
13759 rm -f conftest*
13760 fi # $ac_x_libraries = NO
13761
13762 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13763 # Didn't find X anywhere. Cache the known absence of X.
13764 ac_cv_have_x="have_x=no"
13765 else
13766 # Record where we found X for the cache.
13767 ac_cv_have_x="have_x=yes \
13768 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13769 fi
13770 fi
13771 fi
13772 eval "$ac_cv_have_x"
13773 fi # $with_x != no
13774
13775 if test "$have_x" != yes; then
13776 echo "$ac_t""$have_x" 1>&6
13777 no_x=yes
13778 else
13779 # If each of the values was on the command line, it overrides each guess.
13780 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13781 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13782 # Update the cache value to reflect the command line values.
13783 ac_cv_have_x="have_x=yes \
13784 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13785 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13786 fi
13787
13788 if test "$no_x" = yes; then
13789 # Not all programs may use this symbol, but it does not hurt to define it.
13790 cat >> confdefs.h <<\EOF
13791 #define X_DISPLAY_MISSING 1
13792 EOF
13793
13794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13795 else
13796 if test -n "$x_includes"; then
13797 X_CFLAGS="$X_CFLAGS -I$x_includes"
13798 fi
13799
13800 # It would also be nice to do this for all -L options, not just this one.
13801 if test -n "$x_libraries"; then
13802 X_LIBS="$X_LIBS -L$x_libraries"
13803 # For Solaris; some versions of Sun CC require a space after -R and
13804 # others require no space. Words are not sufficient . . . .
13805 case "`(uname -sr) 2>/dev/null`" in
13806 "SunOS 5"*)
13807 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13808 echo "configure:13809: checking whether -R must be followed by a space" >&5
13809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13810 cat > conftest.$ac_ext <<EOF
13811 #line 13812 "configure"
13812 #include "confdefs.h"
13813
13814 int main() {
13815
13816 ; return 0; }
13817 EOF
13818 if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13819 rm -rf conftest*
13820 ac_R_nospace=yes
13821 else
13822 echo "configure: failed program was:" >&5
13823 cat conftest.$ac_ext >&5
13824 rm -rf conftest*
13825 ac_R_nospace=no
13826 fi
13827 rm -f conftest*
13828 if test $ac_R_nospace = yes; then
13829 echo "$ac_t""no" 1>&6
13830 X_LIBS="$X_LIBS -R$x_libraries"
13831 else
13832 LIBS="$ac_xsave_LIBS -R $x_libraries"
13833 cat > conftest.$ac_ext <<EOF
13834 #line 13835 "configure"
13835 #include "confdefs.h"
13836
13837 int main() {
13838
13839 ; return 0; }
13840 EOF
13841 if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13842 rm -rf conftest*
13843 ac_R_space=yes
13844 else
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 rm -rf conftest*
13848 ac_R_space=no
13849 fi
13850 rm -f conftest*
13851 if test $ac_R_space = yes; then
13852 echo "$ac_t""yes" 1>&6
13853 X_LIBS="$X_LIBS -R $x_libraries"
13854 else
13855 echo "$ac_t""neither works" 1>&6
13856 fi
13857 fi
13858 LIBS="$ac_xsave_LIBS"
13859 esac
13860 fi
13861
13862 # Check for system-dependent libraries X programs must link with.
13863 # Do this before checking for the system-independent R6 libraries
13864 # (-lICE), since we may need -lsocket or whatever for X linking.
13865
13866 if test "$ISC" = yes; then
13867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13868 else
13869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13870 # libraries were built with DECnet support. And karl@cs.umb.edu says
13871 # the Alpha needs dnet_stub (dnet does not exist).
13872 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13873 echo "configure:13874: checking for dnet_ntoa in -ldnet" >&5
13874 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13877 else
13878 ac_save_LIBS="$LIBS"
13879 LIBS="-ldnet $LIBS"
13880 cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13883 /* Override any gcc2 internal prototype to avoid an error. */
13884 /* We use char because int might match the return type of a gcc2
13885 builtin and then its argument prototype would still apply. */
13886 char dnet_ntoa();
13887
13888 int main() {
13889 dnet_ntoa()
13890 ; return 0; }
13891 EOF
13892 if { (eval echo configure:13893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13893 rm -rf conftest*
13894 eval "ac_cv_lib_$ac_lib_var=yes"
13895 else
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 rm -rf conftest*
13899 eval "ac_cv_lib_$ac_lib_var=no"
13900 fi
13901 rm -f conftest*
13902 LIBS="$ac_save_LIBS"
13903
13904 fi
13905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13906 echo "$ac_t""yes" 1>&6
13907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13908 else
13909 echo "$ac_t""no" 1>&6
13910 fi
13911
13912 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13913 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13914 echo "configure:13915: checking for dnet_ntoa in -ldnet_stub" >&5
13915 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13917 echo $ac_n "(cached) $ac_c" 1>&6
13918 else
13919 ac_save_LIBS="$LIBS"
13920 LIBS="-ldnet_stub $LIBS"
13921 cat > conftest.$ac_ext <<EOF
13922 #line 13923 "configure"
13923 #include "confdefs.h"
13924 /* Override any gcc2 internal prototype to avoid an error. */
13925 /* We use char because int might match the return type of a gcc2
13926 builtin and then its argument prototype would still apply. */
13927 char dnet_ntoa();
13928
13929 int main() {
13930 dnet_ntoa()
13931 ; return 0; }
13932 EOF
13933 if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13934 rm -rf conftest*
13935 eval "ac_cv_lib_$ac_lib_var=yes"
13936 else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940 eval "ac_cv_lib_$ac_lib_var=no"
13941 fi
13942 rm -f conftest*
13943 LIBS="$ac_save_LIBS"
13944
13945 fi
13946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13947 echo "$ac_t""yes" 1>&6
13948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13949 else
13950 echo "$ac_t""no" 1>&6
13951 fi
13952
13953 fi
13954
13955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13956 # to get the SysV transport functions.
13957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13958 # needs -lnsl.
13959 # The nsl library prevents programs from opening the X display
13960 # on Irix 5.2, according to dickey@clark.net.
13961 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13962 echo "configure:13963: checking for gethostbyname" >&5
13963 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13965 else
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 /* System header to define __stub macros and hopefully few prototypes,
13970 which can conflict with char gethostbyname(); below. */
13971 #include <assert.h>
13972 /* Override any gcc2 internal prototype to avoid an error. */
13973 /* We use char because int might match the return type of a gcc2
13974 builtin and then its argument prototype would still apply. */
13975 char gethostbyname();
13976
13977 int main() {
13978
13979 /* The GNU C library defines this for functions which it implements
13980 to always fail with ENOSYS. Some functions are actually named
13981 something starting with __ and the normal name is an alias. */
13982 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13983 choke me
13984 #else
13985 gethostbyname();
13986 #endif
13987
13988 ; return 0; }
13989 EOF
13990 if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13991 rm -rf conftest*
13992 eval "ac_cv_func_gethostbyname=yes"
13993 else
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 rm -rf conftest*
13997 eval "ac_cv_func_gethostbyname=no"
13998 fi
13999 rm -f conftest*
14000 fi
14001
14002 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14003 echo "$ac_t""yes" 1>&6
14004 :
14005 else
14006 echo "$ac_t""no" 1>&6
14007 fi
14008
14009 if test $ac_cv_func_gethostbyname = no; then
14010 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14011 echo "configure:14012: checking for gethostbyname in -lnsl" >&5
14012 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14014 echo $ac_n "(cached) $ac_c" 1>&6
14015 else
14016 ac_save_LIBS="$LIBS"
14017 LIBS="-lnsl $LIBS"
14018 cat > conftest.$ac_ext <<EOF
14019 #line 14020 "configure"
14020 #include "confdefs.h"
14021 /* Override any gcc2 internal prototype to avoid an error. */
14022 /* We use char because int might match the return type of a gcc2
14023 builtin and then its argument prototype would still apply. */
14024 char gethostbyname();
14025
14026 int main() {
14027 gethostbyname()
14028 ; return 0; }
14029 EOF
14030 if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14031 rm -rf conftest*
14032 eval "ac_cv_lib_$ac_lib_var=yes"
14033 else
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14036 rm -rf conftest*
14037 eval "ac_cv_lib_$ac_lib_var=no"
14038 fi
14039 rm -f conftest*
14040 LIBS="$ac_save_LIBS"
14041
14042 fi
14043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14046 else
14047 echo "$ac_t""no" 1>&6
14048 fi
14049
14050 fi
14051
14052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14053 # socket/setsockopt and other routines are undefined under SCO ODT
14054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14055 # on later versions), says simon@lia.di.epfl.ch: it contains
14056 # gethostby* variants that don't use the nameserver (or something).
14057 # -lsocket must be given before -lnsl if both are needed.
14058 # We assume that if connect needs -lnsl, so does gethostbyname.
14059 echo $ac_n "checking for connect""... $ac_c" 1>&6
14060 echo "configure:14061: checking for connect" >&5
14061 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063 else
14064 cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 /* System header to define __stub macros and hopefully few prototypes,
14068 which can conflict with char connect(); below. */
14069 #include <assert.h>
14070 /* Override any gcc2 internal prototype to avoid an error. */
14071 /* We use char because int might match the return type of a gcc2
14072 builtin and then its argument prototype would still apply. */
14073 char connect();
14074
14075 int main() {
14076
14077 /* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080 #if defined (__stub_connect) || defined (__stub___connect)
14081 choke me
14082 #else
14083 connect();
14084 #endif
14085
14086 ; return 0; }
14087 EOF
14088 if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14089 rm -rf conftest*
14090 eval "ac_cv_func_connect=yes"
14091 else
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 rm -rf conftest*
14095 eval "ac_cv_func_connect=no"
14096 fi
14097 rm -f conftest*
14098 fi
14099
14100 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14101 echo "$ac_t""yes" 1>&6
14102 :
14103 else
14104 echo "$ac_t""no" 1>&6
14105 fi
14106
14107 if test $ac_cv_func_connect = no; then
14108 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14109 echo "configure:14110: checking for connect in -lsocket" >&5
14110 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
14113 else
14114 ac_save_LIBS="$LIBS"
14115 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14116 cat > conftest.$ac_ext <<EOF
14117 #line 14118 "configure"
14118 #include "confdefs.h"
14119 /* Override any gcc2 internal prototype to avoid an error. */
14120 /* We use char because int might match the return type of a gcc2
14121 builtin and then its argument prototype would still apply. */
14122 char connect();
14123
14124 int main() {
14125 connect()
14126 ; return 0; }
14127 EOF
14128 if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14129 rm -rf conftest*
14130 eval "ac_cv_lib_$ac_lib_var=yes"
14131 else
14132 echo "configure: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 rm -rf conftest*
14135 eval "ac_cv_lib_$ac_lib_var=no"
14136 fi
14137 rm -f conftest*
14138 LIBS="$ac_save_LIBS"
14139
14140 fi
14141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14142 echo "$ac_t""yes" 1>&6
14143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14144 else
14145 echo "$ac_t""no" 1>&6
14146 fi
14147
14148 fi
14149
14150 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14151 echo $ac_n "checking for remove""... $ac_c" 1>&6
14152 echo "configure:14153: checking for remove" >&5
14153 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14154 echo $ac_n "(cached) $ac_c" 1>&6
14155 else
14156 cat > conftest.$ac_ext <<EOF
14157 #line 14158 "configure"
14158 #include "confdefs.h"
14159 /* System header to define __stub macros and hopefully few prototypes,
14160 which can conflict with char remove(); below. */
14161 #include <assert.h>
14162 /* Override any gcc2 internal prototype to avoid an error. */
14163 /* We use char because int might match the return type of a gcc2
14164 builtin and then its argument prototype would still apply. */
14165 char remove();
14166
14167 int main() {
14168
14169 /* The GNU C library defines this for functions which it implements
14170 to always fail with ENOSYS. Some functions are actually named
14171 something starting with __ and the normal name is an alias. */
14172 #if defined (__stub_remove) || defined (__stub___remove)
14173 choke me
14174 #else
14175 remove();
14176 #endif
14177
14178 ; return 0; }
14179 EOF
14180 if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14181 rm -rf conftest*
14182 eval "ac_cv_func_remove=yes"
14183 else
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14186 rm -rf conftest*
14187 eval "ac_cv_func_remove=no"
14188 fi
14189 rm -f conftest*
14190 fi
14191
14192 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14193 echo "$ac_t""yes" 1>&6
14194 :
14195 else
14196 echo "$ac_t""no" 1>&6
14197 fi
14198
14199 if test $ac_cv_func_remove = no; then
14200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14201 echo "configure:14202: checking for remove in -lposix" >&5
14202 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14204 echo $ac_n "(cached) $ac_c" 1>&6
14205 else
14206 ac_save_LIBS="$LIBS"
14207 LIBS="-lposix $LIBS"
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14211 /* Override any gcc2 internal prototype to avoid an error. */
14212 /* We use char because int might match the return type of a gcc2
14213 builtin and then its argument prototype would still apply. */
14214 char remove();
14215
14216 int main() {
14217 remove()
14218 ; return 0; }
14219 EOF
14220 if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14221 rm -rf conftest*
14222 eval "ac_cv_lib_$ac_lib_var=yes"
14223 else
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -rf conftest*
14227 eval "ac_cv_lib_$ac_lib_var=no"
14228 fi
14229 rm -f conftest*
14230 LIBS="$ac_save_LIBS"
14231
14232 fi
14233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14234 echo "$ac_t""yes" 1>&6
14235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14236 else
14237 echo "$ac_t""no" 1>&6
14238 fi
14239
14240 fi
14241
14242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14243 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14244 echo "configure:14245: checking for shmat" >&5
14245 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14246 echo $ac_n "(cached) $ac_c" 1>&6
14247 else
14248 cat > conftest.$ac_ext <<EOF
14249 #line 14250 "configure"
14250 #include "confdefs.h"
14251 /* System header to define __stub macros and hopefully few prototypes,
14252 which can conflict with char shmat(); below. */
14253 #include <assert.h>
14254 /* Override any gcc2 internal prototype to avoid an error. */
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14257 char shmat();
14258
14259 int main() {
14260
14261 /* The GNU C library defines this for functions which it implements
14262 to always fail with ENOSYS. Some functions are actually named
14263 something starting with __ and the normal name is an alias. */
14264 #if defined (__stub_shmat) || defined (__stub___shmat)
14265 choke me
14266 #else
14267 shmat();
14268 #endif
14269
14270 ; return 0; }
14271 EOF
14272 if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14273 rm -rf conftest*
14274 eval "ac_cv_func_shmat=yes"
14275 else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279 eval "ac_cv_func_shmat=no"
14280 fi
14281 rm -f conftest*
14282 fi
14283
14284 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14285 echo "$ac_t""yes" 1>&6
14286 :
14287 else
14288 echo "$ac_t""no" 1>&6
14289 fi
14290
14291 if test $ac_cv_func_shmat = no; then
14292 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14293 echo "configure:14294: checking for shmat in -lipc" >&5
14294 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14297 else
14298 ac_save_LIBS="$LIBS"
14299 LIBS="-lipc $LIBS"
14300 cat > conftest.$ac_ext <<EOF
14301 #line 14302 "configure"
14302 #include "confdefs.h"
14303 /* Override any gcc2 internal prototype to avoid an error. */
14304 /* We use char because int might match the return type of a gcc2
14305 builtin and then its argument prototype would still apply. */
14306 char shmat();
14307
14308 int main() {
14309 shmat()
14310 ; return 0; }
14311 EOF
14312 if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14313 rm -rf conftest*
14314 eval "ac_cv_lib_$ac_lib_var=yes"
14315 else
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14318 rm -rf conftest*
14319 eval "ac_cv_lib_$ac_lib_var=no"
14320 fi
14321 rm -f conftest*
14322 LIBS="$ac_save_LIBS"
14323
14324 fi
14325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
14327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14328 else
14329 echo "$ac_t""no" 1>&6
14330 fi
14331
14332 fi
14333 fi
14334
14335 # Check for libraries that X11R6 Xt/Xaw programs need.
14336 ac_save_LDFLAGS="$LDFLAGS"
14337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14339 # check for ICE first), but we must link in the order -lSM -lICE or
14340 # we get undefined symbols. So assume we have SM if we have ICE.
14341 # These have to be linked with before -lX11, unlike the other
14342 # libraries we check for below, so use a different variable.
14343 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14344 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14345 echo "configure:14346: checking for IceConnectionNumber in -lICE" >&5
14346 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349 else
14350 ac_save_LIBS="$LIBS"
14351 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14352 cat > conftest.$ac_ext <<EOF
14353 #line 14354 "configure"
14354 #include "confdefs.h"
14355 /* Override any gcc2 internal prototype to avoid an error. */
14356 /* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14358 char IceConnectionNumber();
14359
14360 int main() {
14361 IceConnectionNumber()
14362 ; return 0; }
14363 EOF
14364 if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14365 rm -rf conftest*
14366 eval "ac_cv_lib_$ac_lib_var=yes"
14367 else
14368 echo "configure: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 rm -rf conftest*
14371 eval "ac_cv_lib_$ac_lib_var=no"
14372 fi
14373 rm -f conftest*
14374 LIBS="$ac_save_LIBS"
14375
14376 fi
14377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14378 echo "$ac_t""yes" 1>&6
14379 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14380 else
14381 echo "$ac_t""no" 1>&6
14382 fi
14383
14384 LDFLAGS="$ac_save_LDFLAGS"
14385
14386 fi
14387
14388
14389 if test "$no_x" = "yes"; then
14390 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14391 fi
14392
14393 GUI_TK_LIBRARY="$X_LIBS"
14394 TOOLKIT_INCLUDE="$X_CFLAGS"
14395 AFMINSTALL=afminstall
14396 COMPILED_X_PROGRAM=0
14397
14398 if test "$wxUSE_NANOX" = "yes"; then
14399 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14400 echo "configure:14401: checking for MicroWindows/NanoX distribution" >&5
14401 if test "x$MICROWIN" = x ; then
14402 echo "$ac_t""not found" 1>&6
14403 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14404 else
14405 echo "$ac_t""$MICROWIN" 1>&6
14406 cat >> confdefs.h <<\EOF
14407 #define wxUSE_NANOX 1
14408 EOF
14409
14410 fi
14411 fi
14412
14413 xpm_link=
14414 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14415 echo "configure:14416: checking for Xpm library" >&5
14416
14417 ac_find_libraries=
14418 for ac_dir in $SEARCH_LIB /usr/lib;
14419 do
14420 for ac_extension in a so sl dylib; do
14421 if test -f "$ac_dir/libXpm.$ac_extension"; then
14422 ac_find_libraries=$ac_dir
14423 break 2
14424 fi
14425 done
14426 done
14427
14428 if test "$ac_find_libraries" != "" ; then
14429
14430 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14431 result=$?
14432 if test $result = 0; then
14433 ac_path_to_link=""
14434 else
14435 ac_path_to_link=" -L$ac_find_libraries"
14436 fi
14437
14438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14439 xpm_link=" -lXpm"
14440 cat >> confdefs.h <<\EOF
14441 #define wxHAVE_LIB_XPM 1
14442 EOF
14443
14444 echo "$ac_t""found at $ac_find_libraries" 1>&6
14445 else
14446 cat > conftest.$ac_ext <<EOF
14447 #line 14448 "configure"
14448 #include "confdefs.h"
14449
14450 #include <X11/xpm.h>
14451
14452 int main() {
14453
14454 int version;
14455 version = XpmLibraryVersion();
14456
14457 ; return 0; }
14458 EOF
14459 if { (eval echo configure:14460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14460 rm -rf conftest*
14461
14462 xpm_link=" -lXpm"
14463 cat >> confdefs.h <<\EOF
14464 #define wxHAVE_LIB_XPM 1
14465 EOF
14466
14467 echo "$ac_t""found in default search path" 1>&6
14468 COMPILED_X_PROGRAM=0
14469
14470 else
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14473 rm -rf conftest*
14474
14475 echo "$ac_t""no" 1>&6
14476 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14477
14478
14479 fi
14480 rm -f conftest*
14481 fi
14482
14483 if test "$wxUSE_UNICODE" = "yes"; then
14484
14485 succeeded=no
14486
14487 if test -z "$PKG_CONFIG"; then
14488 # Extract the first word of "pkg-config", so it can be a program name with args.
14489 set dummy pkg-config; ac_word=$2
14490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14491 echo "configure:14492: checking for $ac_word" >&5
14492 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14493 echo $ac_n "(cached) $ac_c" 1>&6
14494 else
14495 case "$PKG_CONFIG" in
14496 /*)
14497 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14498 ;;
14499 ?:/*)
14500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14501 ;;
14502 *)
14503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14504 ac_dummy="$PATH"
14505 for ac_dir in $ac_dummy; do
14506 test -z "$ac_dir" && ac_dir=.
14507 if test -f $ac_dir/$ac_word; then
14508 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14509 break
14510 fi
14511 done
14512 IFS="$ac_save_ifs"
14513 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14514 ;;
14515 esac
14516 fi
14517 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14518 if test -n "$PKG_CONFIG"; then
14519 echo "$ac_t""$PKG_CONFIG" 1>&6
14520 else
14521 echo "$ac_t""no" 1>&6
14522 fi
14523
14524 fi
14525
14526 if test "$PKG_CONFIG" = "no" ; then
14527 echo "*** The pkg-config script could not be found. Make sure it is"
14528 echo "*** in your path, or set the PKG_CONFIG environment variable"
14529 echo "*** to the full path to pkg-config."
14530 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14531 else
14532 PKG_CONFIG_MIN_VERSION=0.9.0
14533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14534 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14535 echo "configure:14536: checking for pangox" >&5
14536
14537 if $PKG_CONFIG --exists "pangox" ; then
14538 echo "$ac_t""yes" 1>&6
14539 succeeded=yes
14540
14541 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14542 echo "configure:14543: checking PANGOX_CFLAGS" >&5
14543 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14544 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14545
14546 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14547 echo "configure:14548: checking PANGOX_LIBS" >&5
14548 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14549 echo "$ac_t""$PANGOX_LIBS" 1>&6
14550 else
14551 PANGOX_CFLAGS=""
14552 PANGOX_LIBS=""
14553 ## If we have a custom action on failure, don't print errors, but
14554 ## do set a variable so people can do so.
14555 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14556
14557 fi
14558
14559
14560
14561 else
14562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14564 fi
14565 fi
14566
14567 if test $succeeded = yes; then
14568
14569 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14570 LIBS="$LIBS $PANGOX_LIBS"
14571
14572 else
14573
14574 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14575
14576
14577 fi
14578
14579
14580 succeeded=no
14581
14582 if test -z "$PKG_CONFIG"; then
14583 # Extract the first word of "pkg-config", so it can be a program name with args.
14584 set dummy pkg-config; ac_word=$2
14585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14586 echo "configure:14587: checking for $ac_word" >&5
14587 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14589 else
14590 case "$PKG_CONFIG" in
14591 /*)
14592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14593 ;;
14594 ?:/*)
14595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14596 ;;
14597 *)
14598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14599 ac_dummy="$PATH"
14600 for ac_dir in $ac_dummy; do
14601 test -z "$ac_dir" && ac_dir=.
14602 if test -f $ac_dir/$ac_word; then
14603 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14604 break
14605 fi
14606 done
14607 IFS="$ac_save_ifs"
14608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14609 ;;
14610 esac
14611 fi
14612 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14613 if test -n "$PKG_CONFIG"; then
14614 echo "$ac_t""$PKG_CONFIG" 1>&6
14615 else
14616 echo "$ac_t""no" 1>&6
14617 fi
14618
14619 fi
14620
14621 if test "$PKG_CONFIG" = "no" ; then
14622 echo "*** The pkg-config script could not be found. Make sure it is"
14623 echo "*** in your path, or set the PKG_CONFIG environment variable"
14624 echo "*** to the full path to pkg-config."
14625 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14626 else
14627 PKG_CONFIG_MIN_VERSION=0.9.0
14628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14629 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14630 echo "configure:14631: checking for pangoft2" >&5
14631
14632 if $PKG_CONFIG --exists "pangoft2" ; then
14633 echo "$ac_t""yes" 1>&6
14634 succeeded=yes
14635
14636 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14637 echo "configure:14638: checking PANGOFT2_CFLAGS" >&5
14638 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14639 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14640
14641 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14642 echo "configure:14643: checking PANGOFT2_LIBS" >&5
14643 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14644 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14645 else
14646 PANGOFT2_CFLAGS=""
14647 PANGOFT2_LIBS=""
14648 ## If we have a custom action on failure, don't print errors, but
14649 ## do set a variable so people can do so.
14650 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14651
14652 fi
14653
14654
14655
14656 else
14657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14659 fi
14660 fi
14661
14662 if test $succeeded = yes; then
14663
14664 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14665 LIBS="$LIBS $PANGOFT2_LIBS"
14666
14667 else
14668
14669 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14670 wxUSE_PRINTING_ARCHITECTURE="no"
14671
14672
14673 fi
14674
14675
14676 succeeded=no
14677
14678 if test -z "$PKG_CONFIG"; then
14679 # Extract the first word of "pkg-config", so it can be a program name with args.
14680 set dummy pkg-config; ac_word=$2
14681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14682 echo "configure:14683: checking for $ac_word" >&5
14683 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14684 echo $ac_n "(cached) $ac_c" 1>&6
14685 else
14686 case "$PKG_CONFIG" in
14687 /*)
14688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14689 ;;
14690 ?:/*)
14691 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14692 ;;
14693 *)
14694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14695 ac_dummy="$PATH"
14696 for ac_dir in $ac_dummy; do
14697 test -z "$ac_dir" && ac_dir=.
14698 if test -f $ac_dir/$ac_word; then
14699 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14700 break
14701 fi
14702 done
14703 IFS="$ac_save_ifs"
14704 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14705 ;;
14706 esac
14707 fi
14708 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14709 if test -n "$PKG_CONFIG"; then
14710 echo "$ac_t""$PKG_CONFIG" 1>&6
14711 else
14712 echo "$ac_t""no" 1>&6
14713 fi
14714
14715 fi
14716
14717 if test "$PKG_CONFIG" = "no" ; then
14718 echo "*** The pkg-config script could not be found. Make sure it is"
14719 echo "*** in your path, or set the PKG_CONFIG environment variable"
14720 echo "*** to the full path to pkg-config."
14721 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14722 else
14723 PKG_CONFIG_MIN_VERSION=0.9.0
14724 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14725 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14726 echo "configure:14727: checking for pangoxft" >&5
14727
14728 if $PKG_CONFIG --exists "pangoxft" ; then
14729 echo "$ac_t""yes" 1>&6
14730 succeeded=yes
14731
14732 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14733 echo "configure:14734: checking PANGOXFT_CFLAGS" >&5
14734 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14735 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14736
14737 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14738 echo "configure:14739: checking PANGOXFT_LIBS" >&5
14739 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14740 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14741 else
14742 PANGOXFT_CFLAGS=""
14743 PANGOXFT_LIBS=""
14744 ## If we have a custom action on failure, don't print errors, but
14745 ## do set a variable so people can do so.
14746 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14747
14748 fi
14749
14750
14751
14752 else
14753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14755 fi
14756 fi
14757
14758 if test $succeeded = yes; then
14759
14760 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14761 LIBS="$LIBS $PANGOXFT_LIBS"
14762
14763 else
14764
14765 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14766
14767
14768 fi
14769
14770 fi
14771
14772 wxUSE_UNIVERSAL="yes"
14773
14774 if test "$wxUSE_NANOX" = "yes"; then
14775 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14776 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14777 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14778 else
14779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14780 fi
14781
14782 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14783 TOOLKIT=X11
14784 GUIDIST=X11_DIST
14785 fi
14786
14787 if test "$wxUSE_MOTIF" = 1; then
14788 if test "$no_x" = yes; then
14789 # Not all programs may use this symbol, but it does not hurt to define it.
14790 cat >> confdefs.h <<\EOF
14791 #define X_DISPLAY_MISSING 1
14792 EOF
14793
14794 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14795 else
14796 if test -n "$x_includes"; then
14797 X_CFLAGS="$X_CFLAGS -I$x_includes"
14798 fi
14799
14800 # It would also be nice to do this for all -L options, not just this one.
14801 if test -n "$x_libraries"; then
14802 X_LIBS="$X_LIBS -L$x_libraries"
14803 # For Solaris; some versions of Sun CC require a space after -R and
14804 # others require no space. Words are not sufficient . . . .
14805 case "`(uname -sr) 2>/dev/null`" in
14806 "SunOS 5"*)
14807 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14808 echo "configure:14809: checking whether -R must be followed by a space" >&5
14809 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14810 cat > conftest.$ac_ext <<EOF
14811 #line 14812 "configure"
14812 #include "confdefs.h"
14813
14814 int main() {
14815
14816 ; return 0; }
14817 EOF
14818 if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14819 rm -rf conftest*
14820 ac_R_nospace=yes
14821 else
14822 echo "configure: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 rm -rf conftest*
14825 ac_R_nospace=no
14826 fi
14827 rm -f conftest*
14828 if test $ac_R_nospace = yes; then
14829 echo "$ac_t""no" 1>&6
14830 X_LIBS="$X_LIBS -R$x_libraries"
14831 else
14832 LIBS="$ac_xsave_LIBS -R $x_libraries"
14833 cat > conftest.$ac_ext <<EOF
14834 #line 14835 "configure"
14835 #include "confdefs.h"
14836
14837 int main() {
14838
14839 ; return 0; }
14840 EOF
14841 if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14842 rm -rf conftest*
14843 ac_R_space=yes
14844 else
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 ac_R_space=no
14849 fi
14850 rm -f conftest*
14851 if test $ac_R_space = yes; then
14852 echo "$ac_t""yes" 1>&6
14853 X_LIBS="$X_LIBS -R $x_libraries"
14854 else
14855 echo "$ac_t""neither works" 1>&6
14856 fi
14857 fi
14858 LIBS="$ac_xsave_LIBS"
14859 esac
14860 fi
14861
14862 # Check for system-dependent libraries X programs must link with.
14863 # Do this before checking for the system-independent R6 libraries
14864 # (-lICE), since we may need -lsocket or whatever for X linking.
14865
14866 if test "$ISC" = yes; then
14867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14868 else
14869 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14870 # libraries were built with DECnet support. And karl@cs.umb.edu says
14871 # the Alpha needs dnet_stub (dnet does not exist).
14872 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14873 echo "configure:14874: checking for dnet_ntoa in -ldnet" >&5
14874 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14877 else
14878 ac_save_LIBS="$LIBS"
14879 LIBS="-ldnet $LIBS"
14880 cat > conftest.$ac_ext <<EOF
14881 #line 14882 "configure"
14882 #include "confdefs.h"
14883 /* Override any gcc2 internal prototype to avoid an error. */
14884 /* We use char because int might match the return type of a gcc2
14885 builtin and then its argument prototype would still apply. */
14886 char dnet_ntoa();
14887
14888 int main() {
14889 dnet_ntoa()
14890 ; return 0; }
14891 EOF
14892 if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14893 rm -rf conftest*
14894 eval "ac_cv_lib_$ac_lib_var=yes"
14895 else
14896 echo "configure: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14898 rm -rf conftest*
14899 eval "ac_cv_lib_$ac_lib_var=no"
14900 fi
14901 rm -f conftest*
14902 LIBS="$ac_save_LIBS"
14903
14904 fi
14905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14906 echo "$ac_t""yes" 1>&6
14907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14908 else
14909 echo "$ac_t""no" 1>&6
14910 fi
14911
14912 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14913 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14914 echo "configure:14915: checking for dnet_ntoa in -ldnet_stub" >&5
14915 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14919 ac_save_LIBS="$LIBS"
14920 LIBS="-ldnet_stub $LIBS"
14921 cat > conftest.$ac_ext <<EOF
14922 #line 14923 "configure"
14923 #include "confdefs.h"
14924 /* Override any gcc2 internal prototype to avoid an error. */
14925 /* We use char because int might match the return type of a gcc2
14926 builtin and then its argument prototype would still apply. */
14927 char dnet_ntoa();
14928
14929 int main() {
14930 dnet_ntoa()
14931 ; return 0; }
14932 EOF
14933 if { (eval echo configure:14934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14934 rm -rf conftest*
14935 eval "ac_cv_lib_$ac_lib_var=yes"
14936 else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940 eval "ac_cv_lib_$ac_lib_var=no"
14941 fi
14942 rm -f conftest*
14943 LIBS="$ac_save_LIBS"
14944
14945 fi
14946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14947 echo "$ac_t""yes" 1>&6
14948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14949 else
14950 echo "$ac_t""no" 1>&6
14951 fi
14952
14953 fi
14954
14955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14956 # to get the SysV transport functions.
14957 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14958 # needs -lnsl.
14959 # The nsl library prevents programs from opening the X display
14960 # on Irix 5.2, according to dickey@clark.net.
14961 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14962 echo "configure:14963: checking for gethostbyname" >&5
14963 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14964 echo $ac_n "(cached) $ac_c" 1>&6
14965 else
14966 cat > conftest.$ac_ext <<EOF
14967 #line 14968 "configure"
14968 #include "confdefs.h"
14969 /* System header to define __stub macros and hopefully few prototypes,
14970 which can conflict with char gethostbyname(); below. */
14971 #include <assert.h>
14972 /* Override any gcc2 internal prototype to avoid an error. */
14973 /* We use char because int might match the return type of a gcc2
14974 builtin and then its argument prototype would still apply. */
14975 char gethostbyname();
14976
14977 int main() {
14978
14979 /* The GNU C library defines this for functions which it implements
14980 to always fail with ENOSYS. Some functions are actually named
14981 something starting with __ and the normal name is an alias. */
14982 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14983 choke me
14984 #else
14985 gethostbyname();
14986 #endif
14987
14988 ; return 0; }
14989 EOF
14990 if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14991 rm -rf conftest*
14992 eval "ac_cv_func_gethostbyname=yes"
14993 else
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 rm -rf conftest*
14997 eval "ac_cv_func_gethostbyname=no"
14998 fi
14999 rm -f conftest*
15000 fi
15001
15002 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15003 echo "$ac_t""yes" 1>&6
15004 :
15005 else
15006 echo "$ac_t""no" 1>&6
15007 fi
15008
15009 if test $ac_cv_func_gethostbyname = no; then
15010 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
15011 echo "configure:15012: checking for gethostbyname in -lnsl" >&5
15012 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15014 echo $ac_n "(cached) $ac_c" 1>&6
15015 else
15016 ac_save_LIBS="$LIBS"
15017 LIBS="-lnsl $LIBS"
15018 cat > conftest.$ac_ext <<EOF
15019 #line 15020 "configure"
15020 #include "confdefs.h"
15021 /* Override any gcc2 internal prototype to avoid an error. */
15022 /* We use char because int might match the return type of a gcc2
15023 builtin and then its argument prototype would still apply. */
15024 char gethostbyname();
15025
15026 int main() {
15027 gethostbyname()
15028 ; return 0; }
15029 EOF
15030 if { (eval echo configure:15031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15031 rm -rf conftest*
15032 eval "ac_cv_lib_$ac_lib_var=yes"
15033 else
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 rm -rf conftest*
15037 eval "ac_cv_lib_$ac_lib_var=no"
15038 fi
15039 rm -f conftest*
15040 LIBS="$ac_save_LIBS"
15041
15042 fi
15043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15044 echo "$ac_t""yes" 1>&6
15045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15046 else
15047 echo "$ac_t""no" 1>&6
15048 fi
15049
15050 fi
15051
15052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15053 # socket/setsockopt and other routines are undefined under SCO ODT
15054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15055 # on later versions), says simon@lia.di.epfl.ch: it contains
15056 # gethostby* variants that don't use the nameserver (or something).
15057 # -lsocket must be given before -lnsl if both are needed.
15058 # We assume that if connect needs -lnsl, so does gethostbyname.
15059 echo $ac_n "checking for connect""... $ac_c" 1>&6
15060 echo "configure:15061: checking for connect" >&5
15061 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15062 echo $ac_n "(cached) $ac_c" 1>&6
15063 else
15064 cat > conftest.$ac_ext <<EOF
15065 #line 15066 "configure"
15066 #include "confdefs.h"
15067 /* System header to define __stub macros and hopefully few prototypes,
15068 which can conflict with char connect(); below. */
15069 #include <assert.h>
15070 /* Override any gcc2 internal prototype to avoid an error. */
15071 /* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15073 char connect();
15074
15075 int main() {
15076
15077 /* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080 #if defined (__stub_connect) || defined (__stub___connect)
15081 choke me
15082 #else
15083 connect();
15084 #endif
15085
15086 ; return 0; }
15087 EOF
15088 if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15089 rm -rf conftest*
15090 eval "ac_cv_func_connect=yes"
15091 else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 eval "ac_cv_func_connect=no"
15096 fi
15097 rm -f conftest*
15098 fi
15099
15100 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15101 echo "$ac_t""yes" 1>&6
15102 :
15103 else
15104 echo "$ac_t""no" 1>&6
15105 fi
15106
15107 if test $ac_cv_func_connect = no; then
15108 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15109 echo "configure:15110: checking for connect in -lsocket" >&5
15110 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15112 echo $ac_n "(cached) $ac_c" 1>&6
15113 else
15114 ac_save_LIBS="$LIBS"
15115 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15116 cat > conftest.$ac_ext <<EOF
15117 #line 15118 "configure"
15118 #include "confdefs.h"
15119 /* Override any gcc2 internal prototype to avoid an error. */
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122 char connect();
15123
15124 int main() {
15125 connect()
15126 ; return 0; }
15127 EOF
15128 if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15129 rm -rf conftest*
15130 eval "ac_cv_lib_$ac_lib_var=yes"
15131 else
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15134 rm -rf conftest*
15135 eval "ac_cv_lib_$ac_lib_var=no"
15136 fi
15137 rm -f conftest*
15138 LIBS="$ac_save_LIBS"
15139
15140 fi
15141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15142 echo "$ac_t""yes" 1>&6
15143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15144 else
15145 echo "$ac_t""no" 1>&6
15146 fi
15147
15148 fi
15149
15150 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15151 echo $ac_n "checking for remove""... $ac_c" 1>&6
15152 echo "configure:15153: checking for remove" >&5
15153 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15155 else
15156 cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15159 /* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char remove(); below. */
15161 #include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error. */
15163 /* We use char because int might match the return type of a gcc2
15164 builtin and then its argument prototype would still apply. */
15165 char remove();
15166
15167 int main() {
15168
15169 /* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172 #if defined (__stub_remove) || defined (__stub___remove)
15173 choke me
15174 #else
15175 remove();
15176 #endif
15177
15178 ; return 0; }
15179 EOF
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 rm -rf conftest*
15182 eval "ac_cv_func_remove=yes"
15183 else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_func_remove=no"
15188 fi
15189 rm -f conftest*
15190 fi
15191
15192 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 :
15195 else
15196 echo "$ac_t""no" 1>&6
15197 fi
15198
15199 if test $ac_cv_func_remove = no; then
15200 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15201 echo "configure:15202: checking for remove in -lposix" >&5
15202 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15204 echo $ac_n "(cached) $ac_c" 1>&6
15205 else
15206 ac_save_LIBS="$LIBS"
15207 LIBS="-lposix $LIBS"
15208 cat > conftest.$ac_ext <<EOF
15209 #line 15210 "configure"
15210 #include "confdefs.h"
15211 /* Override any gcc2 internal prototype to avoid an error. */
15212 /* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15214 char remove();
15215
15216 int main() {
15217 remove()
15218 ; return 0; }
15219 EOF
15220 if { (eval echo configure:15221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15221 rm -rf conftest*
15222 eval "ac_cv_lib_$ac_lib_var=yes"
15223 else
15224 echo "configure: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15226 rm -rf conftest*
15227 eval "ac_cv_lib_$ac_lib_var=no"
15228 fi
15229 rm -f conftest*
15230 LIBS="$ac_save_LIBS"
15231
15232 fi
15233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15234 echo "$ac_t""yes" 1>&6
15235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15236 else
15237 echo "$ac_t""no" 1>&6
15238 fi
15239
15240 fi
15241
15242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15243 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15244 echo "configure:15245: checking for shmat" >&5
15245 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15246 echo $ac_n "(cached) $ac_c" 1>&6
15247 else
15248 cat > conftest.$ac_ext <<EOF
15249 #line 15250 "configure"
15250 #include "confdefs.h"
15251 /* System header to define __stub macros and hopefully few prototypes,
15252 which can conflict with char shmat(); below. */
15253 #include <assert.h>
15254 /* Override any gcc2 internal prototype to avoid an error. */
15255 /* We use char because int might match the return type of a gcc2
15256 builtin and then its argument prototype would still apply. */
15257 char shmat();
15258
15259 int main() {
15260
15261 /* The GNU C library defines this for functions which it implements
15262 to always fail with ENOSYS. Some functions are actually named
15263 something starting with __ and the normal name is an alias. */
15264 #if defined (__stub_shmat) || defined (__stub___shmat)
15265 choke me
15266 #else
15267 shmat();
15268 #endif
15269
15270 ; return 0; }
15271 EOF
15272 if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15273 rm -rf conftest*
15274 eval "ac_cv_func_shmat=yes"
15275 else
15276 echo "configure: failed program was:" >&5
15277 cat conftest.$ac_ext >&5
15278 rm -rf conftest*
15279 eval "ac_cv_func_shmat=no"
15280 fi
15281 rm -f conftest*
15282 fi
15283
15284 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15285 echo "$ac_t""yes" 1>&6
15286 :
15287 else
15288 echo "$ac_t""no" 1>&6
15289 fi
15290
15291 if test $ac_cv_func_shmat = no; then
15292 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15293 echo "configure:15294: checking for shmat in -lipc" >&5
15294 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15296 echo $ac_n "(cached) $ac_c" 1>&6
15297 else
15298 ac_save_LIBS="$LIBS"
15299 LIBS="-lipc $LIBS"
15300 cat > conftest.$ac_ext <<EOF
15301 #line 15302 "configure"
15302 #include "confdefs.h"
15303 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15306 char shmat();
15307
15308 int main() {
15309 shmat()
15310 ; return 0; }
15311 EOF
15312 if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15313 rm -rf conftest*
15314 eval "ac_cv_lib_$ac_lib_var=yes"
15315 else
15316 echo "configure: failed program was:" >&5
15317 cat conftest.$ac_ext >&5
15318 rm -rf conftest*
15319 eval "ac_cv_lib_$ac_lib_var=no"
15320 fi
15321 rm -f conftest*
15322 LIBS="$ac_save_LIBS"
15323
15324 fi
15325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15326 echo "$ac_t""yes" 1>&6
15327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15328 else
15329 echo "$ac_t""no" 1>&6
15330 fi
15331
15332 fi
15333 fi
15334
15335 # Check for libraries that X11R6 Xt/Xaw programs need.
15336 ac_save_LDFLAGS="$LDFLAGS"
15337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15339 # check for ICE first), but we must link in the order -lSM -lICE or
15340 # we get undefined symbols. So assume we have SM if we have ICE.
15341 # These have to be linked with before -lX11, unlike the other
15342 # libraries we check for below, so use a different variable.
15343 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15344 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15345 echo "configure:15346: checking for IceConnectionNumber in -lICE" >&5
15346 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15348 echo $ac_n "(cached) $ac_c" 1>&6
15349 else
15350 ac_save_LIBS="$LIBS"
15351 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15352 cat > conftest.$ac_ext <<EOF
15353 #line 15354 "configure"
15354 #include "confdefs.h"
15355 /* Override any gcc2 internal prototype to avoid an error. */
15356 /* We use char because int might match the return type of a gcc2
15357 builtin and then its argument prototype would still apply. */
15358 char IceConnectionNumber();
15359
15360 int main() {
15361 IceConnectionNumber()
15362 ; return 0; }
15363 EOF
15364 if { (eval echo configure:15365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15365 rm -rf conftest*
15366 eval "ac_cv_lib_$ac_lib_var=yes"
15367 else
15368 echo "configure: failed program was:" >&5
15369 cat conftest.$ac_ext >&5
15370 rm -rf conftest*
15371 eval "ac_cv_lib_$ac_lib_var=no"
15372 fi
15373 rm -f conftest*
15374 LIBS="$ac_save_LIBS"
15375
15376 fi
15377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15378 echo "$ac_t""yes" 1>&6
15379 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15380 else
15381 echo "$ac_t""no" 1>&6
15382 fi
15383
15384 LDFLAGS="$ac_save_LDFLAGS"
15385
15386 fi
15387
15388
15389 if test "$no_x" = "yes"; then
15390 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15391 fi
15392
15393 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15394 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15395 AFMINSTALL=afminstall
15396 COMPILED_X_PROGRAM=0
15397
15398 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15399 echo "configure:15400: checking for Motif/Lesstif headers" >&5
15400
15401 ac_find_includes=
15402 for ac_dir in $SEARCH_INCLUDE /usr/include;
15403 do
15404 if test -f "$ac_dir/Xm/Xm.h"; then
15405 ac_find_includes=$ac_dir
15406 break
15407 fi
15408 done
15409
15410 if test "$ac_find_includes" != "" ; then
15411 echo "$ac_t""found in $ac_find_includes" 1>&6
15412
15413 if test "x$ac_find_includes" = "x/usr/include"; then
15414 ac_path_to_include=""
15415 else
15416 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15417 result=$?
15418 if test $result = 0; then
15419 ac_path_to_include=""
15420 else
15421 ac_path_to_include=" -I$ac_find_includes"
15422 fi
15423 fi
15424
15425 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15426 else
15427 cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430
15431 #include <Xm/Xm.h>
15432
15433 int main() {
15434
15435 int version;
15436 version = xmUseVersion;
15437
15438 ; return 0; }
15439 EOF
15440 if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15441 rm -rf conftest*
15442
15443 echo "$ac_t""found in default search path" 1>&6
15444 COMPILED_X_PROGRAM=1
15445
15446 else
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15449 rm -rf conftest*
15450
15451 echo "$ac_t""no" 1>&6
15452 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15453
15454
15455 fi
15456 rm -f conftest*
15457 fi
15458
15459 if test "$COMPILED_X_PROGRAM" = 0; then
15460 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15461 echo "configure:15462: checking for Motif/Lesstif library" >&5
15462
15463 ac_find_libraries=
15464 for ac_dir in $SEARCH_LIB /usr/lib;
15465 do
15466 for ac_extension in a so sl dylib; do
15467 if test -f "$ac_dir/libXm.$ac_extension"; then
15468 ac_find_libraries=$ac_dir
15469 break 2
15470 fi
15471 done
15472 done
15473
15474 if test "$ac_find_libraries" != "" ; then
15475 echo "$ac_t""found at $ac_find_libraries" 1>&6
15476
15477
15478 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15479 result=$?
15480 if test $result = 0; then
15481 ac_path_to_link=""
15482 else
15483 ac_path_to_link=" -L$ac_find_libraries"
15484 fi
15485
15486 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15487 else
15488 save_CFLAGS=$CFLAGS
15489 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15490
15491 cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494
15495 #include <Xm/Xm.h>
15496
15497 int main() {
15498
15499 int version;
15500 version = xmUseVersion;
15501
15502 ; return 0; }
15503 EOF
15504 if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15505 rm -rf conftest*
15506
15507 echo "$ac_t""found in default search path" 1>&6
15508 COMPILED_X_PROGRAM=1
15509
15510 else
15511 echo "configure: failed program was:" >&5
15512 cat conftest.$ac_ext >&5
15513 rm -rf conftest*
15514
15515 echo "$ac_t""no" 1>&6
15516 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15517
15518
15519 fi
15520 rm -f conftest*
15521
15522 CFLAGS=$save_CFLAGS
15523 fi
15524 fi
15525
15526 xpm_link=
15527 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15528 echo "configure:15529: checking for Xpm library" >&5
15529
15530 ac_find_libraries=
15531 for ac_dir in $SEARCH_LIB /usr/lib;
15532 do
15533 for ac_extension in a so sl dylib; do
15534 if test -f "$ac_dir/libXpm.$ac_extension"; then
15535 ac_find_libraries=$ac_dir
15536 break 2
15537 fi
15538 done
15539 done
15540
15541 if test "$ac_find_libraries" != "" ; then
15542
15543 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15544 result=$?
15545 if test $result = 0; then
15546 ac_path_to_link=""
15547 else
15548 ac_path_to_link=" -L$ac_find_libraries"
15549 fi
15550
15551 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15552
15553 xpm_link=" -lXpm"
15554 cat >> confdefs.h <<\EOF
15555 #define wxHAVE_LIB_XPM 1
15556 EOF
15557
15558 echo "$ac_t""found at $ac_find_libraries" 1>&6
15559 else
15560 save_CFLAGS=$CFLAGS
15561 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15562
15563 cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15566
15567 #include <X11/xpm.h>
15568
15569 int main() {
15570
15571 int version;
15572 version = XpmLibraryVersion();
15573
15574 ; return 0; }
15575 EOF
15576 if { (eval echo configure:15577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15577 rm -rf conftest*
15578
15579 xpm_link=" -lXpm"
15580 cat >> confdefs.h <<\EOF
15581 #define wxHAVE_LIB_XPM 1
15582 EOF
15583
15584 echo "$ac_t""found in default search path" 1>&6
15585 COMPILED_X_PROGRAM=0
15586
15587 else
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 rm -rf conftest*
15591
15592 echo "$ac_t""no" 1>&6
15593 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15594
15595
15596 fi
15597 rm -f conftest*
15598
15599 CFLAGS=$save_CFLAGS
15600 fi
15601
15602 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15603 echo "configure:15604: checking if we need -lXp and/or -lSM -lICE" >&5
15604 libp_link=""
15605 libsm_ice_link=""
15606 libs_found=0
15607 for libp in "" " -lXp"; do
15608 if test "$libs_found" = "0"; then
15609 for libsm_ice in " -lSM -lICE"; do
15610 if test "$libs_found" = "0"; then
15611 save_LIBS="$LIBS"
15612 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15613 save_CFLAGS=$CFLAGS
15614 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15615
15616 cat > conftest.$ac_ext <<EOF
15617 #line 15618 "configure"
15618 #include "confdefs.h"
15619
15620 #include <Xm/Xm.h>
15621 #include <Xm/List.h>
15622
15623 int main() {
15624
15625 XmString string = NULL;
15626 Widget w = NULL;
15627 int position = 0;
15628 XmListAddItem(w, string, position);
15629
15630 ; return 0; }
15631 EOF
15632 if { (eval echo configure:15633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15633 rm -rf conftest*
15634
15635 libp_link="$libp"
15636 libsm_ice_link="$libsm_ice"
15637 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15638 libs_found=1
15639
15640 else
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644
15645
15646 fi
15647 rm -f conftest*
15648
15649 LIBS="$save_LIBS"
15650 CFLAGS=$save_CFLAGS
15651 fi
15652 done
15653 fi
15654 done
15655
15656 if test "$libs_found" = "0"; then
15657 echo "$ac_t""can't find the right libraries" 1>&6
15658 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15659 fi
15660
15661 save_CFLAGS=$CFLAGS
15662 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15663 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15664 echo "configure:15665: checking for Motif 2" >&5
15665 cat > conftest.$ac_ext <<EOF
15666 #line 15667 "configure"
15667 #include "confdefs.h"
15668
15669 #include <Xm/Xm.h>
15670
15671 int main() {
15672
15673 #if XmVersion < 2000
15674 #error "Not Motif 2"
15675 #endif
15676
15677 ; return 0; }
15678 EOF
15679 if { (eval echo configure:15680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15680 rm -rf conftest*
15681
15682 cat >> confdefs.h <<\EOF
15683 #define __WXMOTIF20__ 1
15684 EOF
15685
15686 echo "$ac_t""found" 1>&6
15687
15688 else
15689 echo "configure: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 rm -rf conftest*
15692
15693 cat >> confdefs.h <<\EOF
15694 #define __WXMOTIF20__ 0
15695 EOF
15696
15697 echo "$ac_t""not found" 1>&6
15698
15699 fi
15700 rm -f conftest*
15701 CFLAGS=$save_CFLAGS
15702
15703 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15704 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15705 TOOLKIT=MOTIF
15706 GUIDIST=MOTIF_DIST
15707 fi
15708
15709 if test "$wxUSE_MAC" = 1; then
15710 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15711
15712 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15713 TOOLKIT=MAC
15714 GUIDIST=MACX_DIST
15715 fi
15716
15717 if test "$wxUSE_COCOA" = 1; then
15718 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15719 TOOLKIT=COCOA
15720 GUIDIST=COCOA_DIST
15721 fi
15722
15723 if test "$wxUSE_PM" = 1; then
15724 TOOLKIT=PM
15725 GUIDIST=GTK_DIST
15726 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15727 wxUSE_PROLOGIO="yes"
15728 wxUSE_RESOURCES="yes"
15729 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15730 wxUSE_THREADS="no"
15731 fi
15732
15733 if test "$TOOLKIT" = "PM" ; then
15734 TOOLKIT_DIR="os2"
15735 else
15736 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15737 fi
15738
15739 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15740
15741 if test "$wxUSE_UNIVERSAL" = "yes"; then
15742 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15743
15744 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15745 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15746
15747 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15748 if test "$wxUSE_X11" = 1; then
15749 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15750 else
15751 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15752 fi
15753 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15754 WIDGET_SET=univ
15755 else
15756 ALL_OBJECTS="\$(GUIOBJS)"
15757 ALL_SOURCES="\$(ALL_SOURCES)"
15758 ALL_HEADERS="\$(ALL_HEADERS)"
15759 fi
15760
15761 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15762
15763 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15764 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15765 fi
15766
15767 if test "$wxUSE_HTML" = "yes"; then
15768 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15769 fi
15770
15771 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15772 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15773 fi
15774 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15775 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15776 fi
15777 if test "$wxUSE_LIBPNG" = "builtin" ; then
15778 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15779 fi
15780
15781 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15782 DISTDIR="wx\$(TOOLKIT)"
15783 else
15784 USE_GUI=0
15785
15786 TOOLKIT_DIR="base"
15787
15788 if test "$USE_WIN32" = 1 ; then
15789 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15790 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15791
15792 TOOLKIT="MSW"
15793 else
15794 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15795 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15796 fi
15797
15798 ALL_SOURCES="\$(ALL_SOURCES)"
15799 ALL_HEADERS="\$(ALL_HEADERS)"
15800
15801 PORT_FILES="\${top_srcdir}/src/files.lst"
15802
15803 GUIDIST="BASE_DIST"
15804 DISTDIR="wxBase"
15805 fi
15806
15807
15808 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15809 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15810 fi
15811
15812 if test "$wxUSE_REGEX" = "builtin" ; then
15813 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15814 fi
15815 if test "$wxUSE_ZLIB" = "builtin" ; then
15816 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15817 fi
15818
15819
15820 if test "$wxUSE_OPENGL" = "yes"; then
15821 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15822 OPENGL_LIBS="-framework OpenGL -framework AGL"
15823 elif test "$wxUSE_MSW" = 1; then
15824 OPENGL_LIBS="-lopengl32 -lglu32"
15825 else
15826 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15827 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15828 echo "configure:15829: checking for GL/gl.h" >&5
15829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15830 echo $ac_n "(cached) $ac_c" 1>&6
15831 else
15832 cat > conftest.$ac_ext <<EOF
15833 #line 15834 "configure"
15834 #include "confdefs.h"
15835 #include <GL/gl.h>
15836 EOF
15837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15838 { (eval echo configure:15839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15840 if test -z "$ac_err"; then
15841 rm -rf conftest*
15842 eval "ac_cv_header_$ac_safe=yes"
15843 else
15844 echo "$ac_err" >&5
15845 echo "configure: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15847 rm -rf conftest*
15848 eval "ac_cv_header_$ac_safe=no"
15849 fi
15850 rm -f conftest*
15851 fi
15852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15853 echo "$ac_t""yes" 1>&6
15854
15855 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15856 echo "configure:15857: checking for -lGL" >&5
15857
15858 ac_find_libraries=
15859 for ac_dir in $SEARCH_LIB /usr/lib;
15860 do
15861 for ac_extension in a so sl dylib; do
15862 if test -f "$ac_dir/libGL.$ac_extension"; then
15863 ac_find_libraries=$ac_dir
15864 break 2
15865 fi
15866 done
15867 done
15868
15869 if test "$ac_find_libraries" != "" ; then
15870
15871 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15872 result=$?
15873 if test $result = 0; then
15874 ac_path_to_link=""
15875 else
15876 ac_path_to_link=" -L$ac_find_libraries"
15877 fi
15878
15879 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15880 LDFLAGS_GL="$LDFLAGS"
15881 else
15882 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15883 fi
15884 OPENGL_LIBS="-lGL -lGLU"
15885 echo "$ac_t""yes" 1>&6
15886 else
15887 echo "$ac_t""no" 1>&6
15888 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15889 echo "configure:15890: checking for -lMesaGL" >&5
15890
15891 ac_find_libraries=
15892 for ac_dir in $SEARCH_LIB /usr/lib;
15893 do
15894 for ac_extension in a so sl dylib; do
15895 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15896 ac_find_libraries=$ac_dir
15897 break 2
15898 fi
15899 done
15900 done
15901
15902 if test "$ac_find_libraries" != "" ; then
15903
15904 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15905 result=$?
15906 if test $result = 0; then
15907 ac_path_to_link=""
15908 else
15909 ac_path_to_link=" -L$ac_find_libraries"
15910 fi
15911
15912 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15913 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15914 echo "$ac_t""yes" 1>&6
15915 else
15916 echo "$ac_t""no" 1>&6
15917 fi
15918 fi
15919
15920 else
15921 echo "$ac_t""no" 1>&6
15922 fi
15923
15924
15925 if test "x$OPENGL_LIBS" = "x"; then
15926 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15927 fi
15928 fi
15929
15930 if test "$wxUSE_OPENGL" = "yes"; then
15931 cat >> confdefs.h <<\EOF
15932 #define wxUSE_OPENGL 1
15933 EOF
15934
15935 cat >> confdefs.h <<\EOF
15936 #define wxUSE_GLCANVAS 1
15937 EOF
15938
15939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15940 fi
15941 fi
15942
15943 if test -z "$TOOLKIT_VPATH" ; then
15944 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15945 fi
15946
15947 if test -n "$TOOLKIT" ; then
15948 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15949 fi
15950
15951 lib_unicode_suffix=
15952 if test "$wxUSE_UNICODE" = "yes"; then
15953 lib_unicode_suffix=u
15954 fi
15955
15956 lib_debug_suffix=
15957 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15958 lib_debug_suffix=d
15959 fi
15960
15961 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15962
15963 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15964 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15965
15966 if test "$cross_compiling" = "yes"; then
15967 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15968 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15969 fi
15970
15971 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15972 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15973 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15974
15975 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15976 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15977
15978 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15979 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15980 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15981 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15982
15983 case "${host}" in
15984 *-*-cygwin* | *-*-mingw32* )
15985
15986
15987
15988 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15989 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15990 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15991 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15992 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15993 else
15994 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15995 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15996 fi
15997 ;;
15998
15999 *-*-darwin* )
16000
16001 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16002 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16003
16004 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16005 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16006 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16007 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16008
16009 if test "$wxUSE_MAC" = 1; then
16010 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16011 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16012 fi
16013 ;;
16014 esac
16015
16016 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16017 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16018
16019 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16020 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16021
16022 if test "$wxUSE_OPENGL" = "yes"; then
16023 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16024 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16025 fi
16026
16027
16028
16029 if test "$wxUSE_SHARED" = "yes"; then
16030 case "${host}" in
16031 *-pc-os2_emx | *-pc-os2-emx | \
16032 *-pc-msdosdjgpp )
16033 wxUSE_SHARED=no
16034 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16035 ;;
16036 esac
16037 fi
16038
16039 if test "$wxUSE_SHARED" = "yes"; then
16040
16041 if test "$wxUSE_OPENGL" = "yes"; then
16042 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16043 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16044 else
16045 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16046 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16047 fi
16048
16049 if test "$GCC" = "yes"; then
16050 PIC_FLAG="-fPIC"
16051 fi
16052
16053
16054
16055 found_versioning=no
16056
16057
16058 if test $found_versioning = no ; then
16059 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16060 echo "configure:16061: checking if the linker accepts --version-script" >&5
16061 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16063 else
16064
16065 echo "VER_1 { *; };" >conftest.sym
16066 echo "int main() { return 0; }" >conftest.cpp
16067
16068 if { ac_try='
16069 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16070 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16071 if test -s conftest.stderr ; then
16072 wx_cv_version_script=no
16073 else
16074 wx_cv_version_script=yes
16075 fi
16076 else
16077 wx_cv_version_script=no
16078 fi
16079 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16080
16081 fi
16082
16083 echo "$ac_t""$wx_cv_version_script" 1>&6
16084 if test $wx_cv_version_script = yes ; then
16085 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16086 fi
16087 fi
16088
16089
16090 SHARED_LD="${CXX} -shared -o"
16091
16092 case "${host}" in
16093 *-hp-hpux* )
16094 if test "$GCC" = "yes"; then
16095 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16096 else
16097 LDFLAGS="$LDFLAGS -L/usr/lib"
16098
16099 SHARED_LD="${CXX} -b -o"
16100 PIC_FLAG="+Z"
16101 fi
16102
16103 if test "$wxUSE_OPENGL" = "yes"; then
16104 WX_ALL_INSTALLED="preinstall_gl"
16105 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16106 else
16107 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16108 fi
16109 ;;
16110
16111 *-*-linux* )
16112 if test "$GCC" != "yes"; then
16113 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16114 echo "configure:16115: checking for Intel compiler" >&5
16115 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16116 echo $ac_n "(cached) $ac_c" 1>&6
16117 else
16118
16119 cat > conftest.$ac_ext <<EOF
16120 #line 16121 "configure"
16121 #include "confdefs.h"
16122
16123 int main() {
16124
16125 #ifndef __INTEL_COMPILER
16126 #error Not icc
16127 #endif
16128
16129 ; return 0; }
16130 EOF
16131 if { (eval echo configure:16132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16132 rm -rf conftest*
16133 wx_cv_prog_icc=yes
16134 else
16135 echo "configure: failed program was:" >&5
16136 cat conftest.$ac_ext >&5
16137 rm -rf conftest*
16138 wx_cv_prog_icc=no
16139
16140 fi
16141 rm -f conftest*
16142
16143 fi
16144
16145 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16146 if test "$wx_cv_prog_icc" = "yes"; then
16147 PIC_FLAG="-KPIC"
16148 fi
16149 fi
16150
16151 if test "$wxUSE_SONAME" = "yes" ; then
16152 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16153 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16154 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16155 fi
16156 ;;
16157
16158 *-*-solaris2* )
16159 if test "$GCC" = yes ; then
16160 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16161 else
16162 SHARED_LD="${CXX} -G -o"
16163 PIC_FLAG="-KPIC"
16164 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16165 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16166 fi
16167 ;;
16168
16169 *-*-darwin* )
16170 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16171 CFLAGS="$CFLAGS -fno-common"
16172 CXXFLAGS="$CXXFLAGS -fno-common"
16173 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16174 PIC_FLAG="-dynamic -fPIC"
16175 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16176 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16177 ;;
16178
16179 *-*-aix* )
16180 if test "$GCC" != "yes"; then
16181 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16182 set dummy makeC++SharedLib; ac_word=$2
16183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16184 echo "configure:16185: checking for $ac_word" >&5
16185 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16186 echo $ac_n "(cached) $ac_c" 1>&6
16187 else
16188 if test -n "$AIX_CXX_LD"; then
16189 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16190 else
16191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16192 ac_dummy="$PATH"
16193 for ac_dir in $ac_dummy; do
16194 test -z "$ac_dir" && ac_dir=.
16195 if test -f $ac_dir/$ac_word; then
16196 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16197 break
16198 fi
16199 done
16200 IFS="$ac_save_ifs"
16201 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16202 fi
16203 fi
16204 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16205 if test -n "$AIX_CXX_LD"; then
16206 echo "$ac_t""$AIX_CXX_LD" 1>&6
16207 else
16208 echo "$ac_t""no" 1>&6
16209 fi
16210
16211
16212 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16213 fi
16214 ;;
16215
16216 *-*-cygwin* | *-*-mingw32* )
16217 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16218
16219 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16220 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16221
16222 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16223
16224 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16225 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16226
16227 if test "$wxUSE_OPENGL" = "yes"; then
16228 LIBS="${LIBS} ${OPENGL_LIBS}"
16229 fi
16230 ;;
16231
16232 *-*-beos* )
16233 SHARED_LD="${LD} -shared -o"
16234 ;;
16235
16236 *-*-irix* )
16237 if test "$GCC" != "yes"; then
16238 PIC_FLAG="-KPIC"
16239 fi
16240 ;;
16241
16242 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16243 *-*-sunos4* | \
16244 *-*-osf* | \
16245 *-*-dgux5* | \
16246 *-*-sysv5* )
16247 ;;
16248
16249 *)
16250 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16251 esac
16252
16253 if test "x$WX_TARGET_LIBRARY" = "x"; then
16254 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16255 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16256 fi
16257
16258 WX_TARGET_LIBRARY_TYPE="so"
16259 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16260 fi
16261
16262 if test "$wxUSE_SHARED" = "no"; then
16263
16264 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16265 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16266 fi
16267
16268 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16269 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16270 fi
16271
16272 if test "$wxUSE_OPENGL" = "yes"; then
16273 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16274 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16275 else
16276 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16277 fi
16278
16279 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16280 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16281
16282 WX_TARGET_LIBRARY_TYPE="a"
16283 INSTALL_LIBRARY='$(INSTALL_DATA)'
16284
16285 STATIC_FLAG="yes"
16286 else
16287 STATIC_FLAG="no"
16288 fi
16289
16290 MACRESCOMP="@#"
16291 MACSETFILE="@#"
16292 MACRESWXCONFIG="#"
16293 if test "$wxUSE_MAC" = 1; then
16294 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16295 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16296 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16297 # Extract the first word of "Rez", so it can be a program name with args.
16298 set dummy Rez; ac_word=$2
16299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16300 echo "configure:16301: checking for $ac_word" >&5
16301 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16302 echo $ac_n "(cached) $ac_c" 1>&6
16303 else
16304 if test -n "$RESCOMP"; then
16305 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16306 else
16307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16308 ac_dummy="$PATH"
16309 for ac_dir in $ac_dummy; do
16310 test -z "$ac_dir" && ac_dir=.
16311 if test -f $ac_dir/$ac_word; then
16312 ac_cv_prog_RESCOMP="Rez"
16313 break
16314 fi
16315 done
16316 IFS="$ac_save_ifs"
16317 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16318 fi
16319 fi
16320 RESCOMP="$ac_cv_prog_RESCOMP"
16321 if test -n "$RESCOMP"; then
16322 echo "$ac_t""$RESCOMP" 1>&6
16323 else
16324 echo "$ac_t""no" 1>&6
16325 fi
16326
16327 # Extract the first word of "DeRez", so it can be a program name with args.
16328 set dummy DeRez; ac_word=$2
16329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16330 echo "configure:16331: checking for $ac_word" >&5
16331 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16332 echo $ac_n "(cached) $ac_c" 1>&6
16333 else
16334 if test -n "$DEREZ"; then
16335 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16336 else
16337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16338 ac_dummy="$PATH"
16339 for ac_dir in $ac_dummy; do
16340 test -z "$ac_dir" && ac_dir=.
16341 if test -f $ac_dir/$ac_word; then
16342 ac_cv_prog_DEREZ="DeRez"
16343 break
16344 fi
16345 done
16346 IFS="$ac_save_ifs"
16347 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16348 fi
16349 fi
16350 DEREZ="$ac_cv_prog_DEREZ"
16351 if test -n "$DEREZ"; then
16352 echo "$ac_t""$DEREZ" 1>&6
16353 else
16354 echo "$ac_t""no" 1>&6
16355 fi
16356
16357 # Extract the first word of "SetFile", so it can be a program name with args.
16358 set dummy SetFile; ac_word=$2
16359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16360 echo "configure:16361: checking for $ac_word" >&5
16361 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16362 echo $ac_n "(cached) $ac_c" 1>&6
16363 else
16364 if test -n "$SETFILE"; then
16365 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16366 else
16367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16368 ac_dummy="$PATH"
16369 for ac_dir in $ac_dummy; do
16370 test -z "$ac_dir" && ac_dir=.
16371 if test -f $ac_dir/$ac_word; then
16372 ac_cv_prog_SETFILE="SetFile"
16373 break
16374 fi
16375 done
16376 IFS="$ac_save_ifs"
16377 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16378 fi
16379 fi
16380 SETFILE="$ac_cv_prog_SETFILE"
16381 if test -n "$SETFILE"; then
16382 echo "$ac_t""$SETFILE" 1>&6
16383 else
16384 echo "$ac_t""no" 1>&6
16385 fi
16386
16387 MACOSX_BUNDLE="bundle"
16388 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16389 MACSETFILE="\$(SETFILE)"
16390 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16391 else
16392 if test "$wxUSE_PM" = 1; then
16393 MACRESCOMP="emxbind -ep"
16394 fi
16395 fi
16396
16397
16398 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16399 echo "configure:16400: checking for ANSI C header files" >&5
16400 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16401 echo $ac_n "(cached) $ac_c" 1>&6
16402 else
16403 cat > conftest.$ac_ext <<EOF
16404 #line 16405 "configure"
16405 #include "confdefs.h"
16406 #include <stdlib.h>
16407 #include <stdarg.h>
16408 #include <string.h>
16409 #include <float.h>
16410 EOF
16411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16412 { (eval echo configure:16413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16414 if test -z "$ac_err"; then
16415 rm -rf conftest*
16416 ac_cv_header_stdc=yes
16417 else
16418 echo "$ac_err" >&5
16419 echo "configure: failed program was:" >&5
16420 cat conftest.$ac_ext >&5
16421 rm -rf conftest*
16422 ac_cv_header_stdc=no
16423 fi
16424 rm -f conftest*
16425
16426 if test $ac_cv_header_stdc = yes; then
16427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16428 cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16431 #include <string.h>
16432 EOF
16433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16434 egrep "memchr" >/dev/null 2>&1; then
16435 :
16436 else
16437 rm -rf conftest*
16438 ac_cv_header_stdc=no
16439 fi
16440 rm -f conftest*
16441
16442 fi
16443
16444 if test $ac_cv_header_stdc = yes; then
16445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16446 cat > conftest.$ac_ext <<EOF
16447 #line 16448 "configure"
16448 #include "confdefs.h"
16449 #include <stdlib.h>
16450 EOF
16451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16452 egrep "free" >/dev/null 2>&1; then
16453 :
16454 else
16455 rm -rf conftest*
16456 ac_cv_header_stdc=no
16457 fi
16458 rm -f conftest*
16459
16460 fi
16461
16462 if test $ac_cv_header_stdc = yes; then
16463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16464 if test "$cross_compiling" = yes; then
16465 :
16466 else
16467 cat > conftest.$ac_ext <<EOF
16468 #line 16469 "configure"
16469 #include "confdefs.h"
16470 #include <ctype.h>
16471 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16472 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16474 int main () { int i; for (i = 0; i < 256; i++)
16475 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16476 exit (0); }
16477
16478 EOF
16479 if { (eval echo configure:16480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16480 then
16481 :
16482 else
16483 echo "configure: failed program was:" >&5
16484 cat conftest.$ac_ext >&5
16485 rm -fr conftest*
16486 ac_cv_header_stdc=no
16487 fi
16488 rm -fr conftest*
16489 fi
16490
16491 fi
16492 fi
16493
16494 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16495 if test $ac_cv_header_stdc = yes; then
16496 cat >> confdefs.h <<\EOF
16497 #define STDC_HEADERS 1
16498 EOF
16499
16500 fi
16501
16502 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16503 echo "configure:16504: checking for mode_t" >&5
16504 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16505 echo $ac_n "(cached) $ac_c" 1>&6
16506 else
16507 cat > conftest.$ac_ext <<EOF
16508 #line 16509 "configure"
16509 #include "confdefs.h"
16510 #include <sys/types.h>
16511 #if STDC_HEADERS
16512 #include <stdlib.h>
16513 #include <stddef.h>
16514 #endif
16515 EOF
16516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16517 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16518 rm -rf conftest*
16519 ac_cv_type_mode_t=yes
16520 else
16521 rm -rf conftest*
16522 ac_cv_type_mode_t=no
16523 fi
16524 rm -f conftest*
16525
16526 fi
16527 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16528 if test $ac_cv_type_mode_t = no; then
16529 cat >> confdefs.h <<\EOF
16530 #define mode_t int
16531 EOF
16532
16533 fi
16534
16535 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16536 echo "configure:16537: checking for off_t" >&5
16537 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16538 echo $ac_n "(cached) $ac_c" 1>&6
16539 else
16540 cat > conftest.$ac_ext <<EOF
16541 #line 16542 "configure"
16542 #include "confdefs.h"
16543 #include <sys/types.h>
16544 #if STDC_HEADERS
16545 #include <stdlib.h>
16546 #include <stddef.h>
16547 #endif
16548 EOF
16549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16550 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16551 rm -rf conftest*
16552 ac_cv_type_off_t=yes
16553 else
16554 rm -rf conftest*
16555 ac_cv_type_off_t=no
16556 fi
16557 rm -f conftest*
16558
16559 fi
16560 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16561 if test $ac_cv_type_off_t = no; then
16562 cat >> confdefs.h <<\EOF
16563 #define off_t long
16564 EOF
16565
16566 fi
16567
16568 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16569 echo "configure:16570: checking for pid_t" >&5
16570 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16571 echo $ac_n "(cached) $ac_c" 1>&6
16572 else
16573 cat > conftest.$ac_ext <<EOF
16574 #line 16575 "configure"
16575 #include "confdefs.h"
16576 #include <sys/types.h>
16577 #if STDC_HEADERS
16578 #include <stdlib.h>
16579 #include <stddef.h>
16580 #endif
16581 EOF
16582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16583 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16584 rm -rf conftest*
16585 ac_cv_type_pid_t=yes
16586 else
16587 rm -rf conftest*
16588 ac_cv_type_pid_t=no
16589 fi
16590 rm -f conftest*
16591
16592 fi
16593 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16594 if test $ac_cv_type_pid_t = no; then
16595 cat >> confdefs.h <<\EOF
16596 #define pid_t int
16597 EOF
16598
16599 fi
16600
16601 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16602 echo "configure:16603: checking for size_t" >&5
16603 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16604 echo $ac_n "(cached) $ac_c" 1>&6
16605 else
16606 cat > conftest.$ac_ext <<EOF
16607 #line 16608 "configure"
16608 #include "confdefs.h"
16609 #include <sys/types.h>
16610 #if STDC_HEADERS
16611 #include <stdlib.h>
16612 #include <stddef.h>
16613 #endif
16614 EOF
16615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16616 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16617 rm -rf conftest*
16618 ac_cv_type_size_t=yes
16619 else
16620 rm -rf conftest*
16621 ac_cv_type_size_t=no
16622 fi
16623 rm -f conftest*
16624
16625 fi
16626 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16627 if test $ac_cv_type_size_t = no; then
16628 cat >> confdefs.h <<\EOF
16629 #define size_t unsigned
16630 EOF
16631
16632 fi
16633
16634 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16635 echo "configure:16636: checking for uid_t in sys/types.h" >&5
16636 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16637 echo $ac_n "(cached) $ac_c" 1>&6
16638 else
16639 cat > conftest.$ac_ext <<EOF
16640 #line 16641 "configure"
16641 #include "confdefs.h"
16642 #include <sys/types.h>
16643 EOF
16644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16645 egrep "uid_t" >/dev/null 2>&1; then
16646 rm -rf conftest*
16647 ac_cv_type_uid_t=yes
16648 else
16649 rm -rf conftest*
16650 ac_cv_type_uid_t=no
16651 fi
16652 rm -f conftest*
16653
16654 fi
16655
16656 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16657 if test $ac_cv_type_uid_t = no; then
16658 cat >> confdefs.h <<\EOF
16659 #define uid_t int
16660 EOF
16661
16662 cat >> confdefs.h <<\EOF
16663 #define gid_t int
16664 EOF
16665
16666 fi
16667
16668
16669
16670 ac_ext=C
16671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16672 ac_cpp='$CXXCPP $CPPFLAGS'
16673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16675 cross_compiling=$ac_cv_prog_cxx_cross
16676
16677 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16678 echo "configure:16679: checking if size_t is unsigned int" >&5
16679 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16680 echo $ac_n "(cached) $ac_c" 1>&6
16681 else
16682 cat > conftest.$ac_ext <<EOF
16683 #line 16684 "configure"
16684 #include "confdefs.h"
16685 #include <stddef.h>
16686 int main() {
16687
16688 return 0; }
16689
16690 struct Foo { void foo(size_t); void foo(unsigned int); };
16691
16692 int bar() {
16693
16694 ; return 0; }
16695 EOF
16696 if { (eval echo configure:16697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16697 rm -rf conftest*
16698 wx_cv_size_t_is_uint=no
16699 else
16700 echo "configure: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16702 rm -rf conftest*
16703 wx_cv_size_t_is_uint=yes
16704
16705 fi
16706 rm -f conftest*
16707
16708 fi
16709
16710 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16711
16712 if test "$wx_cv_size_t_is_uint" = "yes"; then
16713 cat >> confdefs.h <<\EOF
16714 #define wxSIZE_T_IS_UINT 1
16715 EOF
16716
16717 else
16718 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16719 echo "configure:16720: checking if size_t is unsigned long" >&5
16720 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16721 echo $ac_n "(cached) $ac_c" 1>&6
16722 else
16723 cat > conftest.$ac_ext <<EOF
16724 #line 16725 "configure"
16725 #include "confdefs.h"
16726 #include <stddef.h>
16727 int main() {
16728
16729 return 0; }
16730
16731 struct Foo { void foo(size_t); void foo(unsigned long); };
16732
16733 int bar() {
16734
16735 ; return 0; }
16736 EOF
16737 if { (eval echo configure:16738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16738 rm -rf conftest*
16739 wx_cv_size_t_is_ulong=no
16740 else
16741 echo "configure: failed program was:" >&5
16742 cat conftest.$ac_ext >&5
16743 rm -rf conftest*
16744 wx_cv_size_t_is_ulong=yes
16745
16746 fi
16747 rm -f conftest*
16748
16749 fi
16750
16751 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16752
16753 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16754 cat >> confdefs.h <<\EOF
16755 #define wxSIZE_T_IS_ULONG 1
16756 EOF
16757
16758 fi
16759 fi
16760
16761 ac_ext=c
16762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16763 ac_cpp='$CPP $CPPFLAGS'
16764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16766 cross_compiling=$ac_cv_prog_cc_cross
16767
16768
16769
16770 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16771 echo "configure:16772: checking for pw_gecos in struct passwd" >&5
16772 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16773 echo $ac_n "(cached) $ac_c" 1>&6
16774 else
16775
16776 cat > conftest.$ac_ext <<EOF
16777 #line 16778 "configure"
16778 #include "confdefs.h"
16779 #include <pwd.h>
16780 int main() {
16781
16782 char *p;
16783 struct passwd *pw;
16784 p = pw->pw_gecos;
16785
16786 ; return 0; }
16787 EOF
16788 if { (eval echo configure:16789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16789 rm -rf conftest*
16790
16791 wx_cv_struct_pw_gecos=yes
16792
16793 else
16794 echo "configure: failed program was:" >&5
16795 cat conftest.$ac_ext >&5
16796 rm -rf conftest*
16797
16798 wx_cv_struct_pw_gecos=no
16799
16800
16801 fi
16802 rm -f conftest*
16803
16804
16805 fi
16806
16807 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16808
16809 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16810 cat >> confdefs.h <<\EOF
16811 #define HAVE_PW_GECOS 1
16812 EOF
16813
16814 fi
16815
16816
16817 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16818 cat >> confdefs.h <<\EOF
16819 #define wxUSE_WCHAR_T 1
16820 EOF
16821
16822
16823 WCSLEN_FOUND=0
16824 WCHAR_LINK=
16825 for ac_func in wcslen
16826 do
16827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16828 echo "configure:16829: checking for $ac_func" >&5
16829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16830 echo $ac_n "(cached) $ac_c" 1>&6
16831 else
16832 cat > conftest.$ac_ext <<EOF
16833 #line 16834 "configure"
16834 #include "confdefs.h"
16835 /* System header to define __stub macros and hopefully few prototypes,
16836 which can conflict with char $ac_func(); below. */
16837 #include <assert.h>
16838 /* Override any gcc2 internal prototype to avoid an error. */
16839 /* We use char because int might match the return type of a gcc2
16840 builtin and then its argument prototype would still apply. */
16841 char $ac_func();
16842
16843 int main() {
16844
16845 /* The GNU C library defines this for functions which it implements
16846 to always fail with ENOSYS. Some functions are actually named
16847 something starting with __ and the normal name is an alias. */
16848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16849 choke me
16850 #else
16851 $ac_func();
16852 #endif
16853
16854 ; return 0; }
16855 EOF
16856 if { (eval echo configure:16857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16857 rm -rf conftest*
16858 eval "ac_cv_func_$ac_func=yes"
16859 else
16860 echo "configure: failed program was:" >&5
16861 cat conftest.$ac_ext >&5
16862 rm -rf conftest*
16863 eval "ac_cv_func_$ac_func=no"
16864 fi
16865 rm -f conftest*
16866 fi
16867
16868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16869 echo "$ac_t""yes" 1>&6
16870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16871 cat >> confdefs.h <<EOF
16872 #define $ac_tr_func 1
16873 EOF
16874 WCSLEN_FOUND=1
16875 else
16876 echo "$ac_t""no" 1>&6
16877 fi
16878 done
16879
16880
16881 if test "$WCSLEN_FOUND" = 0; then
16882 if test "$TOOLKIT" = "MSW"; then
16883 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16884 echo "configure:16885: checking for wcslen in -lmsvcrt" >&5
16885 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
16888 else
16889 ac_save_LIBS="$LIBS"
16890 LIBS="-lmsvcrt $LIBS"
16891 cat > conftest.$ac_ext <<EOF
16892 #line 16893 "configure"
16893 #include "confdefs.h"
16894 /* Override any gcc2 internal prototype to avoid an error. */
16895 /* We use char because int might match the return type of a gcc2
16896 builtin and then its argument prototype would still apply. */
16897 char wcslen();
16898
16899 int main() {
16900 wcslen()
16901 ; return 0; }
16902 EOF
16903 if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16904 rm -rf conftest*
16905 eval "ac_cv_lib_$ac_lib_var=yes"
16906 else
16907 echo "configure: failed program was:" >&5
16908 cat conftest.$ac_ext >&5
16909 rm -rf conftest*
16910 eval "ac_cv_lib_$ac_lib_var=no"
16911 fi
16912 rm -f conftest*
16913 LIBS="$ac_save_LIBS"
16914
16915 fi
16916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16917 echo "$ac_t""yes" 1>&6
16918 WCHAR_OK=1
16919 else
16920 echo "$ac_t""no" 1>&6
16921 fi
16922
16923 else
16924 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16925 echo "configure:16926: checking for wcslen in -lw" >&5
16926 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16928 echo $ac_n "(cached) $ac_c" 1>&6
16929 else
16930 ac_save_LIBS="$LIBS"
16931 LIBS="-lw $LIBS"
16932 cat > conftest.$ac_ext <<EOF
16933 #line 16934 "configure"
16934 #include "confdefs.h"
16935 /* Override any gcc2 internal prototype to avoid an error. */
16936 /* We use char because int might match the return type of a gcc2
16937 builtin and then its argument prototype would still apply. */
16938 char wcslen();
16939
16940 int main() {
16941 wcslen()
16942 ; return 0; }
16943 EOF
16944 if { (eval echo configure:16945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16945 rm -rf conftest*
16946 eval "ac_cv_lib_$ac_lib_var=yes"
16947 else
16948 echo "configure: failed program was:" >&5
16949 cat conftest.$ac_ext >&5
16950 rm -rf conftest*
16951 eval "ac_cv_lib_$ac_lib_var=no"
16952 fi
16953 rm -f conftest*
16954 LIBS="$ac_save_LIBS"
16955
16956 fi
16957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16958 echo "$ac_t""yes" 1>&6
16959
16960 WCHAR_LINK=" -lw"
16961 WCSLEN_FOUND=1
16962
16963 else
16964 echo "$ac_t""no" 1>&6
16965 fi
16966
16967 fi
16968 fi
16969
16970 if test "$WCSLEN_FOUND" = 1; then
16971 cat >> confdefs.h <<\EOF
16972 #define HAVE_WCSLEN 1
16973 EOF
16974
16975 fi
16976
16977 for ac_func in wcsrtombs
16978 do
16979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16980 echo "configure:16981: checking for $ac_func" >&5
16981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16982 echo $ac_n "(cached) $ac_c" 1>&6
16983 else
16984 cat > conftest.$ac_ext <<EOF
16985 #line 16986 "configure"
16986 #include "confdefs.h"
16987 /* System header to define __stub macros and hopefully few prototypes,
16988 which can conflict with char $ac_func(); below. */
16989 #include <assert.h>
16990 /* Override any gcc2 internal prototype to avoid an error. */
16991 /* We use char because int might match the return type of a gcc2
16992 builtin and then its argument prototype would still apply. */
16993 char $ac_func();
16994
16995 int main() {
16996
16997 /* The GNU C library defines this for functions which it implements
16998 to always fail with ENOSYS. Some functions are actually named
16999 something starting with __ and the normal name is an alias. */
17000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17001 choke me
17002 #else
17003 $ac_func();
17004 #endif
17005
17006 ; return 0; }
17007 EOF
17008 if { (eval echo configure:17009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17009 rm -rf conftest*
17010 eval "ac_cv_func_$ac_func=yes"
17011 else
17012 echo "configure: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17014 rm -rf conftest*
17015 eval "ac_cv_func_$ac_func=no"
17016 fi
17017 rm -f conftest*
17018 fi
17019
17020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17021 echo "$ac_t""yes" 1>&6
17022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17023 cat >> confdefs.h <<EOF
17024 #define $ac_tr_func 1
17025 EOF
17026
17027 else
17028 echo "$ac_t""no" 1>&6
17029 fi
17030 done
17031
17032 else
17033 echo "configure: warning: Wide character support is unavailable" 1>&2
17034 fi
17035
17036
17037 ac_ext=C
17038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17039 ac_cpp='$CXXCPP $CPPFLAGS'
17040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17042 cross_compiling=$ac_cv_prog_cxx_cross
17043
17044
17045 for ac_func in vsnprintf
17046 do
17047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17048 echo "configure:17049: checking for $ac_func" >&5
17049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17050 echo $ac_n "(cached) $ac_c" 1>&6
17051 else
17052 cat > conftest.$ac_ext <<EOF
17053 #line 17054 "configure"
17054 #include "confdefs.h"
17055 /* System header to define __stub macros and hopefully few prototypes,
17056 which can conflict with char $ac_func(); below. */
17057 #include <assert.h>
17058 /* Override any gcc2 internal prototype to avoid an error. */
17059 #ifdef __cplusplus
17060 extern "C"
17061 #endif
17062 /* We use char because int might match the return type of a gcc2
17063 builtin and then its argument prototype would still apply. */
17064 char $ac_func();
17065
17066 int main() {
17067
17068 /* The GNU C library defines this for functions which it implements
17069 to always fail with ENOSYS. Some functions are actually named
17070 something starting with __ and the normal name is an alias. */
17071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17072 choke me
17073 #else
17074 $ac_func();
17075 #endif
17076
17077 ; return 0; }
17078 EOF
17079 if { (eval echo configure:17080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17080 rm -rf conftest*
17081 eval "ac_cv_func_$ac_func=yes"
17082 else
17083 echo "configure: failed program was:" >&5
17084 cat conftest.$ac_ext >&5
17085 rm -rf conftest*
17086 eval "ac_cv_func_$ac_func=no"
17087 fi
17088 rm -f conftest*
17089 fi
17090
17091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17092 echo "$ac_t""yes" 1>&6
17093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17094 cat >> confdefs.h <<EOF
17095 #define $ac_tr_func 1
17096 EOF
17097
17098 else
17099 echo "$ac_t""no" 1>&6
17100 fi
17101 done
17102
17103
17104 if test "$ac_cv_func_vsnprintf" = "yes"; then
17105 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17106 echo "configure:17107: checking for vsnprintf declaration" >&5
17107 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17108 echo $ac_n "(cached) $ac_c" 1>&6
17109 else
17110
17111 cat > conftest.$ac_ext <<EOF
17112 #line 17113 "configure"
17113 #include "confdefs.h"
17114
17115 #include <stdio.h>
17116 #include <stdarg.h>
17117
17118 int main() {
17119
17120 char *buf;
17121 va_list ap;
17122 vsnprintf(buf, 10u, "%s", ap);
17123
17124 ; return 0; }
17125 EOF
17126 if { (eval echo configure:17127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17127 rm -rf conftest*
17128 wx_cv_func_vsnprintf_decl=yes
17129 else
17130 echo "configure: failed program was:" >&5
17131 cat conftest.$ac_ext >&5
17132 rm -rf conftest*
17133 wx_cv_func_vsnprintf_decl=no
17134
17135 fi
17136 rm -f conftest*
17137
17138
17139 fi
17140
17141 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17142
17143 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17144 cat >> confdefs.h <<\EOF
17145 #define HAVE_VSNPRINTF_DECL 1
17146 EOF
17147
17148 fi
17149 fi
17150
17151 if test "$wxUSE_UNICODE" = yes; then
17152 for ac_func in fputwc wprintf vswprintf
17153 do
17154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17155 echo "configure:17156: checking for $ac_func" >&5
17156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17157 echo $ac_n "(cached) $ac_c" 1>&6
17158 else
17159 cat > conftest.$ac_ext <<EOF
17160 #line 17161 "configure"
17161 #include "confdefs.h"
17162 /* System header to define __stub macros and hopefully few prototypes,
17163 which can conflict with char $ac_func(); below. */
17164 #include <assert.h>
17165 /* Override any gcc2 internal prototype to avoid an error. */
17166 #ifdef __cplusplus
17167 extern "C"
17168 #endif
17169 /* We use char because int might match the return type of a gcc2
17170 builtin and then its argument prototype would still apply. */
17171 char $ac_func();
17172
17173 int main() {
17174
17175 /* The GNU C library defines this for functions which it implements
17176 to always fail with ENOSYS. Some functions are actually named
17177 something starting with __ and the normal name is an alias. */
17178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17179 choke me
17180 #else
17181 $ac_func();
17182 #endif
17183
17184 ; return 0; }
17185 EOF
17186 if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17187 rm -rf conftest*
17188 eval "ac_cv_func_$ac_func=yes"
17189 else
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
17192 rm -rf conftest*
17193 eval "ac_cv_func_$ac_func=no"
17194 fi
17195 rm -f conftest*
17196 fi
17197
17198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17199 echo "$ac_t""yes" 1>&6
17200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17201 cat >> confdefs.h <<EOF
17202 #define $ac_tr_func 1
17203 EOF
17204
17205 else
17206 echo "$ac_t""no" 1>&6
17207 fi
17208 done
17209
17210
17211 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17212 echo "configure:17213: checking for _vsnwprintf" >&5
17213 cat > conftest.$ac_ext <<EOF
17214 #line 17215 "configure"
17215 #include "confdefs.h"
17216 #include <wchar.h>
17217 int main() {
17218 &_vsnwprintf;
17219 ; return 0; }
17220 EOF
17221 if { (eval echo configure:17222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17222 rm -rf conftest*
17223 echo "$ac_t""yes" 1>&6
17224 cat >> confdefs.h <<\EOF
17225 #define HAVE__VSNWPRINTF 1
17226 EOF
17227
17228 else
17229 echo "configure: failed program was:" >&5
17230 cat conftest.$ac_ext >&5
17231 rm -rf conftest*
17232 echo "$ac_t""no" 1>&6
17233 fi
17234 rm -f conftest*;
17235 fi
17236
17237 ac_ext=c
17238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17239 ac_cpp='$CPP $CPPFLAGS'
17240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17242 cross_compiling=$ac_cv_prog_cc_cross
17243
17244
17245
17246
17247 if test "$TOOLKIT" != "MSW"; then
17248
17249
17250
17251 ac_ext=C
17252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17253 ac_cpp='$CXXCPP $CPPFLAGS'
17254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17256 cross_compiling=$ac_cv_prog_cxx_cross
17257
17258
17259
17260 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17261 if test "${with_libiconv_prefix+set}" = set; then
17262 withval="$with_libiconv_prefix"
17263
17264 for dir in `echo "$withval" | tr : ' '`; do
17265 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17266 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17267 done
17268
17269 fi
17270
17271
17272 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17273 echo "configure:17274: checking for iconv" >&5
17274 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17275 echo $ac_n "(cached) $ac_c" 1>&6
17276 else
17277
17278 am_cv_func_iconv="no, consider installing GNU libiconv"
17279 am_cv_lib_iconv=no
17280 cat > conftest.$ac_ext <<EOF
17281 #line 17282 "configure"
17282 #include "confdefs.h"
17283 #include <stdlib.h>
17284 #include <iconv.h>
17285 int main() {
17286 iconv_t cd = iconv_open("","");
17287 iconv(cd,NULL,NULL,NULL,NULL);
17288 iconv_close(cd);
17289 ; return 0; }
17290 EOF
17291 if { (eval echo configure:17292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17292 rm -rf conftest*
17293 am_cv_func_iconv=yes
17294 else
17295 echo "configure: failed program was:" >&5
17296 cat conftest.$ac_ext >&5
17297 fi
17298 rm -f conftest*
17299 if test "$am_cv_func_iconv" != yes; then
17300 am_save_LIBS="$LIBS"
17301 LIBS="$LIBS -liconv"
17302 cat > conftest.$ac_ext <<EOF
17303 #line 17304 "configure"
17304 #include "confdefs.h"
17305 #include <stdlib.h>
17306 #include <iconv.h>
17307 int main() {
17308 iconv_t cd = iconv_open("","");
17309 iconv(cd,NULL,NULL,NULL,NULL);
17310 iconv_close(cd);
17311 ; return 0; }
17312 EOF
17313 if { (eval echo configure:17314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17314 rm -rf conftest*
17315 am_cv_lib_iconv=yes
17316 am_cv_func_iconv=yes
17317 else
17318 echo "configure: failed program was:" >&5
17319 cat conftest.$ac_ext >&5
17320 fi
17321 rm -f conftest*
17322 LIBS="$am_save_LIBS"
17323 fi
17324
17325 fi
17326
17327 echo "$ac_t""$am_cv_func_iconv" 1>&6
17328 if test "$am_cv_func_iconv" = yes; then
17329 cat >> confdefs.h <<\EOF
17330 #define HAVE_ICONV 1
17331 EOF
17332
17333 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17334 echo "configure:17335: checking if iconv needs const" >&5
17335 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17336 echo $ac_n "(cached) $ac_c" 1>&6
17337 else
17338 cat > conftest.$ac_ext <<EOF
17339 #line 17340 "configure"
17340 #include "confdefs.h"
17341
17342 #include <stdlib.h>
17343 #include <iconv.h>
17344 extern
17345 #ifdef __cplusplus
17346 "C"
17347 #endif
17348 #if defined(__STDC__) || defined(__cplusplus)
17349 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17350 #else
17351 size_t iconv();
17352 #endif
17353
17354 int main() {
17355
17356 ; return 0; }
17357 EOF
17358 if { (eval echo configure:17359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17359 rm -rf conftest*
17360 wx_cv_func_iconv_const="no"
17361 else
17362 echo "configure: failed program was:" >&5
17363 cat conftest.$ac_ext >&5
17364 rm -rf conftest*
17365 wx_cv_func_iconv_const="yes"
17366
17367 fi
17368 rm -f conftest*
17369
17370 fi
17371
17372 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17373
17374 iconv_const=
17375 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17376 iconv_const="const"
17377 fi
17378
17379 cat >> confdefs.h <<EOF
17380 #define ICONV_CONST $iconv_const
17381 EOF
17382
17383 fi
17384 LIBICONV=
17385 if test "$am_cv_lib_iconv" = yes; then
17386 LIBICONV="-liconv"
17387 fi
17388
17389
17390 LIBS="$LIBICONV $LIBS"
17391 ac_ext=c
17392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17393 ac_cpp='$CPP $CPPFLAGS'
17394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17396 cross_compiling=$ac_cv_prog_cc_cross
17397
17398
17399 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17400 for ac_func in sigaction
17401 do
17402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17403 echo "configure:17404: checking for $ac_func" >&5
17404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17405 echo $ac_n "(cached) $ac_c" 1>&6
17406 else
17407 cat > conftest.$ac_ext <<EOF
17408 #line 17409 "configure"
17409 #include "confdefs.h"
17410 /* System header to define __stub macros and hopefully few prototypes,
17411 which can conflict with char $ac_func(); below. */
17412 #include <assert.h>
17413 /* Override any gcc2 internal prototype to avoid an error. */
17414 /* We use char because int might match the return type of a gcc2
17415 builtin and then its argument prototype would still apply. */
17416 char $ac_func();
17417
17418 int main() {
17419
17420 /* The GNU C library defines this for functions which it implements
17421 to always fail with ENOSYS. Some functions are actually named
17422 something starting with __ and the normal name is an alias. */
17423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17424 choke me
17425 #else
17426 $ac_func();
17427 #endif
17428
17429 ; return 0; }
17430 EOF
17431 if { (eval echo configure:17432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17432 rm -rf conftest*
17433 eval "ac_cv_func_$ac_func=yes"
17434 else
17435 echo "configure: failed program was:" >&5
17436 cat conftest.$ac_ext >&5
17437 rm -rf conftest*
17438 eval "ac_cv_func_$ac_func=no"
17439 fi
17440 rm -f conftest*
17441 fi
17442
17443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17444 echo "$ac_t""yes" 1>&6
17445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17446 cat >> confdefs.h <<EOF
17447 #define $ac_tr_func 1
17448 EOF
17449
17450 else
17451 echo "$ac_t""no" 1>&6
17452 fi
17453 done
17454
17455
17456 if test "$ac_cv_func_sigaction" = "no"; then
17457 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17458 wxUSE_ON_FATAL_EXCEPTION=no
17459 fi
17460
17461 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17462
17463 ac_ext=C
17464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17465 ac_cpp='$CXXCPP $CPPFLAGS'
17466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17468 cross_compiling=$ac_cv_prog_cxx_cross
17469
17470
17471 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17472 echo "configure:17473: checking for sa_handler type" >&5
17473 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17474 echo $ac_n "(cached) $ac_c" 1>&6
17475 else
17476
17477 cat > conftest.$ac_ext <<EOF
17478 #line 17479 "configure"
17479 #include "confdefs.h"
17480 #include <signal.h>
17481 int main() {
17482
17483 extern void testSigHandler(int);
17484
17485 struct sigaction sa;
17486 sa.sa_handler = testSigHandler;
17487
17488 ; return 0; }
17489 EOF
17490 if { (eval echo configure:17491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17491 rm -rf conftest*
17492
17493 wx_cv_type_sa_handler=int
17494
17495 else
17496 echo "configure: failed program was:" >&5
17497 cat conftest.$ac_ext >&5
17498 rm -rf conftest*
17499
17500 wx_cv_type_sa_handler=void
17501
17502 fi
17503 rm -f conftest*
17504
17505 fi
17506
17507 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17508
17509 ac_ext=c
17510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17511 ac_cpp='$CPP $CPPFLAGS'
17512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17514 cross_compiling=$ac_cv_prog_cc_cross
17515
17516
17517 cat >> confdefs.h <<EOF
17518 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17519 EOF
17520
17521 fi
17522 fi
17523
17524 for ac_func in mkstemp mktemp
17525 do
17526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17527 echo "configure:17528: checking for $ac_func" >&5
17528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17529 echo $ac_n "(cached) $ac_c" 1>&6
17530 else
17531 cat > conftest.$ac_ext <<EOF
17532 #line 17533 "configure"
17533 #include "confdefs.h"
17534 /* System header to define __stub macros and hopefully few prototypes,
17535 which can conflict with char $ac_func(); below. */
17536 #include <assert.h>
17537 /* Override any gcc2 internal prototype to avoid an error. */
17538 /* We use char because int might match the return type of a gcc2
17539 builtin and then its argument prototype would still apply. */
17540 char $ac_func();
17541
17542 int main() {
17543
17544 /* The GNU C library defines this for functions which it implements
17545 to always fail with ENOSYS. Some functions are actually named
17546 something starting with __ and the normal name is an alias. */
17547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17548 choke me
17549 #else
17550 $ac_func();
17551 #endif
17552
17553 ; return 0; }
17554 EOF
17555 if { (eval echo configure:17556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17556 rm -rf conftest*
17557 eval "ac_cv_func_$ac_func=yes"
17558 else
17559 echo "configure: failed program was:" >&5
17560 cat conftest.$ac_ext >&5
17561 rm -rf conftest*
17562 eval "ac_cv_func_$ac_func=no"
17563 fi
17564 rm -f conftest*
17565 fi
17566
17567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17568 echo "$ac_t""yes" 1>&6
17569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17570 cat >> confdefs.h <<EOF
17571 #define $ac_tr_func 1
17572 EOF
17573 break
17574 else
17575 echo "$ac_t""no" 1>&6
17576 fi
17577 done
17578
17579
17580 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17581 echo "configure:17582: checking for statfs" >&5
17582 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17583 echo $ac_n "(cached) $ac_c" 1>&6
17584 else
17585 cat > conftest.$ac_ext <<EOF
17586 #line 17587 "configure"
17587 #include "confdefs.h"
17588
17589 #if defined(__BSD__)
17590 #include <sys/param.h>
17591 #include <sys/mount.h>
17592 #else
17593 #include <sys/vfs.h>
17594 #endif
17595
17596 int main() {
17597
17598 long l;
17599 struct statfs fs;
17600 statfs("/", &fs);
17601 l = fs.f_bsize;
17602 l += fs.f_blocks;
17603 l += fs.f_bavail;
17604
17605 ; return 0; }
17606 EOF
17607 if { (eval echo configure:17608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17608 rm -rf conftest*
17609
17610 wx_cv_func_statfs=yes
17611
17612 else
17613 echo "configure: failed program was:" >&5
17614 cat conftest.$ac_ext >&5
17615 rm -rf conftest*
17616
17617 wx_cv_func_statfs=no
17618
17619
17620 fi
17621 rm -f conftest*
17622
17623 fi
17624
17625 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17626
17627 if test "$wx_cv_func_statfs" = "yes"; then
17628 wx_cv_type_statvfs_t="struct statfs"
17629 cat >> confdefs.h <<\EOF
17630 #define HAVE_STATFS 1
17631 EOF
17632
17633 else
17634 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17635 echo "configure:17636: checking for statvfs" >&5
17636 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17637 echo $ac_n "(cached) $ac_c" 1>&6
17638 else
17639 cat > conftest.$ac_ext <<EOF
17640 #line 17641 "configure"
17641 #include "confdefs.h"
17642
17643 #include <stddef.h>
17644 #include <sys/statvfs.h>
17645
17646 int main() {
17647
17648 statvfs("/", NULL);
17649
17650 ; return 0; }
17651 EOF
17652 if { (eval echo configure:17653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17653 rm -rf conftest*
17654 wx_cv_func_statvfs=yes
17655 else
17656 echo "configure: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17658 rm -rf conftest*
17659 wx_cv_func_statvfs=no
17660
17661 fi
17662 rm -f conftest*
17663
17664 fi
17665
17666 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17667
17668 if test "$wx_cv_func_statvfs" = "yes"; then
17669
17670 ac_ext=C
17671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17672 ac_cpp='$CXXCPP $CPPFLAGS'
17673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17675 cross_compiling=$ac_cv_prog_cxx_cross
17676
17677
17678 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17679 echo "configure:17680: checking for statvfs argument type" >&5
17680 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17681 echo $ac_n "(cached) $ac_c" 1>&6
17682 else
17683 cat > conftest.$ac_ext <<EOF
17684 #line 17685 "configure"
17685 #include "confdefs.h"
17686
17687 #include <sys/statvfs.h>
17688
17689 int main() {
17690
17691 long l;
17692 statvfs_t fs;
17693 statvfs("/", &fs);
17694 l = fs.f_bsize;
17695 l += fs.f_blocks;
17696 l += fs.f_bavail;
17697
17698 ; return 0; }
17699 EOF
17700 if { (eval echo configure:17701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17701 rm -rf conftest*
17702 wx_cv_type_statvfs_t=statvfs_t
17703 else
17704 echo "configure: failed program was:" >&5
17705 cat conftest.$ac_ext >&5
17706 rm -rf conftest*
17707
17708 cat > conftest.$ac_ext <<EOF
17709 #line 17710 "configure"
17710 #include "confdefs.h"
17711
17712 #include <sys/statvfs.h>
17713
17714 int main() {
17715
17716 long l;
17717 struct statvfs fs;
17718 statvfs("/", &fs);
17719 l = fs.f_bsize;
17720 l += fs.f_blocks;
17721 l += fs.f_bavail;
17722
17723 ; return 0; }
17724 EOF
17725 if { (eval echo configure:17726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17726 rm -rf conftest*
17727 wx_cv_type_statvfs_t="struct statvfs"
17728 else
17729 echo "configure: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17731 rm -rf conftest*
17732 wx_cv_type_statvfs_t="unknown"
17733
17734 fi
17735 rm -f conftest*
17736
17737
17738 fi
17739 rm -f conftest*
17740
17741 fi
17742
17743 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17744
17745 ac_ext=c
17746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17747 ac_cpp='$CPP $CPPFLAGS'
17748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17750 cross_compiling=$ac_cv_prog_cc_cross
17751
17752
17753 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17754 cat >> confdefs.h <<\EOF
17755 #define HAVE_STATVFS 1
17756 EOF
17757
17758 fi
17759 else
17760 wx_cv_type_statvfs_t="unknown"
17761 fi
17762 fi
17763
17764 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17765 cat >> confdefs.h <<EOF
17766 #define WX_STATFS_T $wx_cv_type_statvfs_t
17767 EOF
17768
17769 else
17770 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17771 fi
17772
17773 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17774 for ac_func in fcntl flock
17775 do
17776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17777 echo "configure:17778: checking for $ac_func" >&5
17778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17779 echo $ac_n "(cached) $ac_c" 1>&6
17780 else
17781 cat > conftest.$ac_ext <<EOF
17782 #line 17783 "configure"
17783 #include "confdefs.h"
17784 /* System header to define __stub macros and hopefully few prototypes,
17785 which can conflict with char $ac_func(); below. */
17786 #include <assert.h>
17787 /* Override any gcc2 internal prototype to avoid an error. */
17788 /* We use char because int might match the return type of a gcc2
17789 builtin and then its argument prototype would still apply. */
17790 char $ac_func();
17791
17792 int main() {
17793
17794 /* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17798 choke me
17799 #else
17800 $ac_func();
17801 #endif
17802
17803 ; return 0; }
17804 EOF
17805 if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17806 rm -rf conftest*
17807 eval "ac_cv_func_$ac_func=yes"
17808 else
17809 echo "configure: failed program was:" >&5
17810 cat conftest.$ac_ext >&5
17811 rm -rf conftest*
17812 eval "ac_cv_func_$ac_func=no"
17813 fi
17814 rm -f conftest*
17815 fi
17816
17817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17818 echo "$ac_t""yes" 1>&6
17819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17820 cat >> confdefs.h <<EOF
17821 #define $ac_tr_func 1
17822 EOF
17823 break
17824 else
17825 echo "$ac_t""no" 1>&6
17826 fi
17827 done
17828
17829
17830 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17831 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17832 wxUSE_SNGLINST_CHECKER=no
17833 fi
17834 fi
17835
17836 for ac_func in timegm
17837 do
17838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17839 echo "configure:17840: checking for $ac_func" >&5
17840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17841 echo $ac_n "(cached) $ac_c" 1>&6
17842 else
17843 cat > conftest.$ac_ext <<EOF
17844 #line 17845 "configure"
17845 #include "confdefs.h"
17846 /* System header to define __stub macros and hopefully few prototypes,
17847 which can conflict with char $ac_func(); below. */
17848 #include <assert.h>
17849 /* Override any gcc2 internal prototype to avoid an error. */
17850 /* We use char because int might match the return type of a gcc2
17851 builtin and then its argument prototype would still apply. */
17852 char $ac_func();
17853
17854 int main() {
17855
17856 /* The GNU C library defines this for functions which it implements
17857 to always fail with ENOSYS. Some functions are actually named
17858 something starting with __ and the normal name is an alias. */
17859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17860 choke me
17861 #else
17862 $ac_func();
17863 #endif
17864
17865 ; return 0; }
17866 EOF
17867 if { (eval echo configure:17868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17868 rm -rf conftest*
17869 eval "ac_cv_func_$ac_func=yes"
17870 else
17871 echo "configure: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 rm -rf conftest*
17874 eval "ac_cv_func_$ac_func=no"
17875 fi
17876 rm -f conftest*
17877 fi
17878
17879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17880 echo "$ac_t""yes" 1>&6
17881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17882 cat >> confdefs.h <<EOF
17883 #define $ac_tr_func 1
17884 EOF
17885
17886 else
17887 echo "$ac_t""no" 1>&6
17888 fi
17889 done
17890
17891
17892 for ac_func in putenv setenv
17893 do
17894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17895 echo "configure:17896: checking for $ac_func" >&5
17896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17897 echo $ac_n "(cached) $ac_c" 1>&6
17898 else
17899 cat > conftest.$ac_ext <<EOF
17900 #line 17901 "configure"
17901 #include "confdefs.h"
17902 /* System header to define __stub macros and hopefully few prototypes,
17903 which can conflict with char $ac_func(); below. */
17904 #include <assert.h>
17905 /* Override any gcc2 internal prototype to avoid an error. */
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17908 char $ac_func();
17909
17910 int main() {
17911
17912 /* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17916 choke me
17917 #else
17918 $ac_func();
17919 #endif
17920
17921 ; return 0; }
17922 EOF
17923 if { (eval echo configure:17924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17924 rm -rf conftest*
17925 eval "ac_cv_func_$ac_func=yes"
17926 else
17927 echo "configure: failed program was:" >&5
17928 cat conftest.$ac_ext >&5
17929 rm -rf conftest*
17930 eval "ac_cv_func_$ac_func=no"
17931 fi
17932 rm -f conftest*
17933 fi
17934
17935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17936 echo "$ac_t""yes" 1>&6
17937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17938 cat >> confdefs.h <<EOF
17939 #define $ac_tr_func 1
17940 EOF
17941 break
17942 else
17943 echo "$ac_t""no" 1>&6
17944 fi
17945 done
17946
17947
17948 HAVE_SOME_SLEEP_FUNC=0
17949 if test "$USE_BEOS" = 1; then
17950 cat >> confdefs.h <<\EOF
17951 #define HAVE_SLEEP 1
17952 EOF
17953
17954 HAVE_SOME_SLEEP_FUNC=1
17955 fi
17956
17957 if test "$USE_DARWIN" = 1; then
17958 cat >> confdefs.h <<\EOF
17959 #define HAVE_USLEEP 1
17960 EOF
17961
17962 HAVE_SOME_SLEEP_FUNC=1
17963 fi
17964
17965 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17966 POSIX4_LINK=
17967 for ac_func in nanosleep
17968 do
17969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17970 echo "configure:17971: checking for $ac_func" >&5
17971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17972 echo $ac_n "(cached) $ac_c" 1>&6
17973 else
17974 cat > conftest.$ac_ext <<EOF
17975 #line 17976 "configure"
17976 #include "confdefs.h"
17977 /* System header to define __stub macros and hopefully few prototypes,
17978 which can conflict with char $ac_func(); below. */
17979 #include <assert.h>
17980 /* Override any gcc2 internal prototype to avoid an error. */
17981 /* We use char because int might match the return type of a gcc2
17982 builtin and then its argument prototype would still apply. */
17983 char $ac_func();
17984
17985 int main() {
17986
17987 /* The GNU C library defines this for functions which it implements
17988 to always fail with ENOSYS. Some functions are actually named
17989 something starting with __ and the normal name is an alias. */
17990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17991 choke me
17992 #else
17993 $ac_func();
17994 #endif
17995
17996 ; return 0; }
17997 EOF
17998 if { (eval echo configure:17999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17999 rm -rf conftest*
18000 eval "ac_cv_func_$ac_func=yes"
18001 else
18002 echo "configure: failed program was:" >&5
18003 cat conftest.$ac_ext >&5
18004 rm -rf conftest*
18005 eval "ac_cv_func_$ac_func=no"
18006 fi
18007 rm -f conftest*
18008 fi
18009
18010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18011 echo "$ac_t""yes" 1>&6
18012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18013 cat >> confdefs.h <<EOF
18014 #define $ac_tr_func 1
18015 EOF
18016 cat >> confdefs.h <<\EOF
18017 #define HAVE_NANOSLEEP 1
18018 EOF
18019
18020 else
18021 echo "$ac_t""no" 1>&6
18022 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18023 echo "configure:18024: checking for nanosleep in -lposix4" >&5
18024 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18026 echo $ac_n "(cached) $ac_c" 1>&6
18027 else
18028 ac_save_LIBS="$LIBS"
18029 LIBS="-lposix4 $LIBS"
18030 cat > conftest.$ac_ext <<EOF
18031 #line 18032 "configure"
18032 #include "confdefs.h"
18033 /* Override any gcc2 internal prototype to avoid an error. */
18034 /* We use char because int might match the return type of a gcc2
18035 builtin and then its argument prototype would still apply. */
18036 char nanosleep();
18037
18038 int main() {
18039 nanosleep()
18040 ; return 0; }
18041 EOF
18042 if { (eval echo configure:18043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18043 rm -rf conftest*
18044 eval "ac_cv_lib_$ac_lib_var=yes"
18045 else
18046 echo "configure: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18048 rm -rf conftest*
18049 eval "ac_cv_lib_$ac_lib_var=no"
18050 fi
18051 rm -f conftest*
18052 LIBS="$ac_save_LIBS"
18053
18054 fi
18055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18056 echo "$ac_t""yes" 1>&6
18057
18058 cat >> confdefs.h <<\EOF
18059 #define HAVE_NANOSLEEP 1
18060 EOF
18061
18062 POSIX4_LINK=" -lposix4"
18063
18064 else
18065 echo "$ac_t""no" 1>&6
18066
18067 for ac_func in usleep
18068 do
18069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18070 echo "configure:18071: checking for $ac_func" >&5
18071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18072 echo $ac_n "(cached) $ac_c" 1>&6
18073 else
18074 cat > conftest.$ac_ext <<EOF
18075 #line 18076 "configure"
18076 #include "confdefs.h"
18077 /* System header to define __stub macros and hopefully few prototypes,
18078 which can conflict with char $ac_func(); below. */
18079 #include <assert.h>
18080 /* Override any gcc2 internal prototype to avoid an error. */
18081 /* We use char because int might match the return type of a gcc2
18082 builtin and then its argument prototype would still apply. */
18083 char $ac_func();
18084
18085 int main() {
18086
18087 /* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18091 choke me
18092 #else
18093 $ac_func();
18094 #endif
18095
18096 ; return 0; }
18097 EOF
18098 if { (eval echo configure:18099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18099 rm -rf conftest*
18100 eval "ac_cv_func_$ac_func=yes"
18101 else
18102 echo "configure: failed program was:" >&5
18103 cat conftest.$ac_ext >&5
18104 rm -rf conftest*
18105 eval "ac_cv_func_$ac_func=no"
18106 fi
18107 rm -f conftest*
18108 fi
18109
18110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18111 echo "$ac_t""yes" 1>&6
18112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18113 cat >> confdefs.h <<EOF
18114 #define $ac_tr_func 1
18115 EOF
18116 cat >> confdefs.h <<\EOF
18117 #define HAVE_USLEEP 1
18118 EOF
18119
18120 else
18121 echo "$ac_t""no" 1>&6
18122 echo "configure: warning: wxSleep() function will not work" 1>&2
18123
18124 fi
18125 done
18126
18127
18128
18129 fi
18130
18131
18132
18133 fi
18134 done
18135
18136 fi
18137
18138 for ac_func in uname gethostname
18139 do
18140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18141 echo "configure:18142: checking for $ac_func" >&5
18142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18143 echo $ac_n "(cached) $ac_c" 1>&6
18144 else
18145 cat > conftest.$ac_ext <<EOF
18146 #line 18147 "configure"
18147 #include "confdefs.h"
18148 /* System header to define __stub macros and hopefully few prototypes,
18149 which can conflict with char $ac_func(); below. */
18150 #include <assert.h>
18151 /* Override any gcc2 internal prototype to avoid an error. */
18152 /* We use char because int might match the return type of a gcc2
18153 builtin and then its argument prototype would still apply. */
18154 char $ac_func();
18155
18156 int main() {
18157
18158 /* The GNU C library defines this for functions which it implements
18159 to always fail with ENOSYS. Some functions are actually named
18160 something starting with __ and the normal name is an alias. */
18161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18162 choke me
18163 #else
18164 $ac_func();
18165 #endif
18166
18167 ; return 0; }
18168 EOF
18169 if { (eval echo configure:18170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18170 rm -rf conftest*
18171 eval "ac_cv_func_$ac_func=yes"
18172 else
18173 echo "configure: failed program was:" >&5
18174 cat conftest.$ac_ext >&5
18175 rm -rf conftest*
18176 eval "ac_cv_func_$ac_func=no"
18177 fi
18178 rm -f conftest*
18179 fi
18180
18181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18182 echo "$ac_t""yes" 1>&6
18183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18184 cat >> confdefs.h <<EOF
18185 #define $ac_tr_func 1
18186 EOF
18187 break
18188 else
18189 echo "$ac_t""no" 1>&6
18190 fi
18191 done
18192
18193
18194
18195 ac_ext=C
18196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18197 ac_cpp='$CXXCPP $CPPFLAGS'
18198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18200 cross_compiling=$ac_cv_prog_cxx_cross
18201
18202
18203 for ac_func in strtok_r
18204 do
18205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18206 echo "configure:18207: checking for $ac_func" >&5
18207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18208 echo $ac_n "(cached) $ac_c" 1>&6
18209 else
18210 cat > conftest.$ac_ext <<EOF
18211 #line 18212 "configure"
18212 #include "confdefs.h"
18213 /* System header to define __stub macros and hopefully few prototypes,
18214 which can conflict with char $ac_func(); below. */
18215 #include <assert.h>
18216 /* Override any gcc2 internal prototype to avoid an error. */
18217 #ifdef __cplusplus
18218 extern "C"
18219 #endif
18220 /* We use char because int might match the return type of a gcc2
18221 builtin and then its argument prototype would still apply. */
18222 char $ac_func();
18223
18224 int main() {
18225
18226 /* The GNU C library defines this for functions which it implements
18227 to always fail with ENOSYS. Some functions are actually named
18228 something starting with __ and the normal name is an alias. */
18229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18230 choke me
18231 #else
18232 $ac_func();
18233 #endif
18234
18235 ; return 0; }
18236 EOF
18237 if { (eval echo configure:18238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18238 rm -rf conftest*
18239 eval "ac_cv_func_$ac_func=yes"
18240 else
18241 echo "configure: failed program was:" >&5
18242 cat conftest.$ac_ext >&5
18243 rm -rf conftest*
18244 eval "ac_cv_func_$ac_func=no"
18245 fi
18246 rm -f conftest*
18247 fi
18248
18249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18250 echo "$ac_t""yes" 1>&6
18251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18252 cat >> confdefs.h <<EOF
18253 #define $ac_tr_func 1
18254 EOF
18255
18256 else
18257 echo "$ac_t""no" 1>&6
18258 fi
18259 done
18260
18261
18262 ac_ext=c
18263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18264 ac_cpp='$CPP $CPPFLAGS'
18265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18267 cross_compiling=$ac_cv_prog_cc_cross
18268
18269
18270 INET_LINK=
18271 for ac_func in inet_addr
18272 do
18273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18274 echo "configure:18275: checking for $ac_func" >&5
18275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18276 echo $ac_n "(cached) $ac_c" 1>&6
18277 else
18278 cat > conftest.$ac_ext <<EOF
18279 #line 18280 "configure"
18280 #include "confdefs.h"
18281 /* System header to define __stub macros and hopefully few prototypes,
18282 which can conflict with char $ac_func(); below. */
18283 #include <assert.h>
18284 /* Override any gcc2 internal prototype to avoid an error. */
18285 /* We use char because int might match the return type of a gcc2
18286 builtin and then its argument prototype would still apply. */
18287 char $ac_func();
18288
18289 int main() {
18290
18291 /* The GNU C library defines this for functions which it implements
18292 to always fail with ENOSYS. Some functions are actually named
18293 something starting with __ and the normal name is an alias. */
18294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18295 choke me
18296 #else
18297 $ac_func();
18298 #endif
18299
18300 ; return 0; }
18301 EOF
18302 if { (eval echo configure:18303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18303 rm -rf conftest*
18304 eval "ac_cv_func_$ac_func=yes"
18305 else
18306 echo "configure: failed program was:" >&5
18307 cat conftest.$ac_ext >&5
18308 rm -rf conftest*
18309 eval "ac_cv_func_$ac_func=no"
18310 fi
18311 rm -f conftest*
18312 fi
18313
18314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18315 echo "$ac_t""yes" 1>&6
18316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18317 cat >> confdefs.h <<EOF
18318 #define $ac_tr_func 1
18319 EOF
18320 cat >> confdefs.h <<\EOF
18321 #define HAVE_INET_ADDR 1
18322 EOF
18323
18324 else
18325 echo "$ac_t""no" 1>&6
18326 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18327 echo "configure:18328: checking for inet_addr in -lnsl" >&5
18328 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18330 echo $ac_n "(cached) $ac_c" 1>&6
18331 else
18332 ac_save_LIBS="$LIBS"
18333 LIBS="-lnsl $LIBS"
18334 cat > conftest.$ac_ext <<EOF
18335 #line 18336 "configure"
18336 #include "confdefs.h"
18337 /* Override any gcc2 internal prototype to avoid an error. */
18338 /* We use char because int might match the return type of a gcc2
18339 builtin and then its argument prototype would still apply. */
18340 char inet_addr();
18341
18342 int main() {
18343 inet_addr()
18344 ; return 0; }
18345 EOF
18346 if { (eval echo configure:18347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18347 rm -rf conftest*
18348 eval "ac_cv_lib_$ac_lib_var=yes"
18349 else
18350 echo "configure: failed program was:" >&5
18351 cat conftest.$ac_ext >&5
18352 rm -rf conftest*
18353 eval "ac_cv_lib_$ac_lib_var=no"
18354 fi
18355 rm -f conftest*
18356 LIBS="$ac_save_LIBS"
18357
18358 fi
18359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18360 echo "$ac_t""yes" 1>&6
18361 INET_LINK="nsl"
18362 else
18363 echo "$ac_t""no" 1>&6
18364 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18365 echo "configure:18366: checking for inet_addr in -lresolv" >&5
18366 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18368 echo $ac_n "(cached) $ac_c" 1>&6
18369 else
18370 ac_save_LIBS="$LIBS"
18371 LIBS="-lresolv $LIBS"
18372 cat > conftest.$ac_ext <<EOF
18373 #line 18374 "configure"
18374 #include "confdefs.h"
18375 /* Override any gcc2 internal prototype to avoid an error. */
18376 /* We use char because int might match the return type of a gcc2
18377 builtin and then its argument prototype would still apply. */
18378 char inet_addr();
18379
18380 int main() {
18381 inet_addr()
18382 ; return 0; }
18383 EOF
18384 if { (eval echo configure:18385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18385 rm -rf conftest*
18386 eval "ac_cv_lib_$ac_lib_var=yes"
18387 else
18388 echo "configure: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18390 rm -rf conftest*
18391 eval "ac_cv_lib_$ac_lib_var=no"
18392 fi
18393 rm -f conftest*
18394 LIBS="$ac_save_LIBS"
18395
18396 fi
18397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18398 echo "$ac_t""yes" 1>&6
18399 INET_LINK="resolv"
18400 else
18401 echo "$ac_t""no" 1>&6
18402 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18403 echo "configure:18404: checking for inet_addr in -lsocket" >&5
18404 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18406 echo $ac_n "(cached) $ac_c" 1>&6
18407 else
18408 ac_save_LIBS="$LIBS"
18409 LIBS="-lsocket $LIBS"
18410 cat > conftest.$ac_ext <<EOF
18411 #line 18412 "configure"
18412 #include "confdefs.h"
18413 /* Override any gcc2 internal prototype to avoid an error. */
18414 /* We use char because int might match the return type of a gcc2
18415 builtin and then its argument prototype would still apply. */
18416 char inet_addr();
18417
18418 int main() {
18419 inet_addr()
18420 ; return 0; }
18421 EOF
18422 if { (eval echo configure:18423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18423 rm -rf conftest*
18424 eval "ac_cv_lib_$ac_lib_var=yes"
18425 else
18426 echo "configure: failed program was:" >&5
18427 cat conftest.$ac_ext >&5
18428 rm -rf conftest*
18429 eval "ac_cv_lib_$ac_lib_var=no"
18430 fi
18431 rm -f conftest*
18432 LIBS="$ac_save_LIBS"
18433
18434 fi
18435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18436 echo "$ac_t""yes" 1>&6
18437 INET_LINK="socket"
18438
18439 else
18440 echo "$ac_t""no" 1>&6
18441 fi
18442
18443
18444 fi
18445
18446
18447 fi
18448
18449
18450
18451 fi
18452 done
18453
18454
18455 for ac_func in inet_aton
18456 do
18457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18458 echo "configure:18459: checking for $ac_func" >&5
18459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18460 echo $ac_n "(cached) $ac_c" 1>&6
18461 else
18462 cat > conftest.$ac_ext <<EOF
18463 #line 18464 "configure"
18464 #include "confdefs.h"
18465 /* System header to define __stub macros and hopefully few prototypes,
18466 which can conflict with char $ac_func(); below. */
18467 #include <assert.h>
18468 /* Override any gcc2 internal prototype to avoid an error. */
18469 /* We use char because int might match the return type of a gcc2
18470 builtin and then its argument prototype would still apply. */
18471 char $ac_func();
18472
18473 int main() {
18474
18475 /* The GNU C library defines this for functions which it implements
18476 to always fail with ENOSYS. Some functions are actually named
18477 something starting with __ and the normal name is an alias. */
18478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18479 choke me
18480 #else
18481 $ac_func();
18482 #endif
18483
18484 ; return 0; }
18485 EOF
18486 if { (eval echo configure:18487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18487 rm -rf conftest*
18488 eval "ac_cv_func_$ac_func=yes"
18489 else
18490 echo "configure: failed program was:" >&5
18491 cat conftest.$ac_ext >&5
18492 rm -rf conftest*
18493 eval "ac_cv_func_$ac_func=no"
18494 fi
18495 rm -f conftest*
18496 fi
18497
18498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18499 echo "$ac_t""yes" 1>&6
18500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18501 cat >> confdefs.h <<EOF
18502 #define $ac_tr_func 1
18503 EOF
18504 cat >> confdefs.h <<\EOF
18505 #define HAVE_INET_ATON 1
18506 EOF
18507
18508 else
18509 echo "$ac_t""no" 1>&6
18510 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18511 echo "configure:18512: checking for inet_aton in -l$INET_LINK" >&5
18512 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18514 echo $ac_n "(cached) $ac_c" 1>&6
18515 else
18516 ac_save_LIBS="$LIBS"
18517 LIBS="-l$INET_LINK $LIBS"
18518 cat > conftest.$ac_ext <<EOF
18519 #line 18520 "configure"
18520 #include "confdefs.h"
18521 /* Override any gcc2 internal prototype to avoid an error. */
18522 /* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18524 char inet_aton();
18525
18526 int main() {
18527 inet_aton()
18528 ; return 0; }
18529 EOF
18530 if { (eval echo configure:18531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18531 rm -rf conftest*
18532 eval "ac_cv_lib_$ac_lib_var=yes"
18533 else
18534 echo "configure: failed program was:" >&5
18535 cat conftest.$ac_ext >&5
18536 rm -rf conftest*
18537 eval "ac_cv_lib_$ac_lib_var=no"
18538 fi
18539 rm -f conftest*
18540 LIBS="$ac_save_LIBS"
18541
18542 fi
18543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18544 echo "$ac_t""yes" 1>&6
18545 cat >> confdefs.h <<\EOF
18546 #define HAVE_INET_ATON 1
18547 EOF
18548
18549 else
18550 echo "$ac_t""no" 1>&6
18551 fi
18552
18553
18554 fi
18555 done
18556
18557
18558 if test "x$INET_LINK" != "x"; then
18559 cat >> confdefs.h <<\EOF
18560 #define HAVE_INET_ADDR 1
18561 EOF
18562
18563 INET_LINK=" -l$INET_LINK"
18564 fi
18565
18566 fi
18567
18568
18569 cat > confcache <<\EOF
18570 # This file is a shell script that caches the results of configure
18571 # tests run on this system so they can be shared between configure
18572 # scripts and configure runs. It is not useful on other systems.
18573 # If it contains results you don't want to keep, you may remove or edit it.
18574 #
18575 # By default, configure uses ./config.cache as the cache file,
18576 # creating it if it does not exist already. You can give configure
18577 # the --cache-file=FILE option to use a different cache file; that is
18578 # what configure does when it calls configure scripts in
18579 # subdirectories, so they share the cache.
18580 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18581 # config.status only pays attention to the cache file if you give it the
18582 # --recheck option to rerun configure.
18583 #
18584 EOF
18585 # The following way of writing the cache mishandles newlines in values,
18586 # but we know of no workaround that is simple, portable, and efficient.
18587 # So, don't put newlines in cache variables' values.
18588 # Ultrix sh set writes to stderr and can't be redirected directly,
18589 # and sets the high bit in the cache file unless we assign to the vars.
18590 (set) 2>&1 |
18591 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18592 *ac_space=\ *)
18593 # `set' does not quote correctly, so add quotes (double-quote substitution
18594 # turns \\\\ into \\, and sed turns \\ into \).
18595 sed -n \
18596 -e "s/'/'\\\\''/g" \
18597 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18598 ;;
18599 *)
18600 # `set' quotes correctly as required by POSIX, so do not add quotes.
18601 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18602 ;;
18603 esac >> confcache
18604 if cmp -s $cache_file confcache; then
18605 :
18606 else
18607 if test -w $cache_file; then
18608 echo "updating cache $cache_file"
18609 cat confcache > $cache_file
18610 else
18611 echo "not updating unwritable cache $cache_file"
18612 fi
18613 fi
18614 rm -f confcache
18615
18616
18617
18618 CPP_MT_FLAG=
18619 if test "$TOOLKIT" != "MSW"; then
18620
18621
18622 THREADS_LINK=
18623 THREADS_CFLAGS=
18624
18625 if test "$wxUSE_THREADS" = "yes" ; then
18626 if test "$USE_BEOS" = 1; then
18627 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18628 wxUSE_THREADS="no"
18629 fi
18630 fi
18631
18632 if test "$wxUSE_THREADS" = "yes" ; then
18633
18634
18635 THREAD_OPTS="-pthread"
18636 case "${host}" in
18637 *-*-solaris2* | *-*-sunos4* )
18638 if test "x$GCC" = "xyes"; then
18639 THREAD_OPTS="-pthreads $THREAD_OPTS"
18640 else
18641 THREAD_OPTS="-mt $THREAD_OPTS"
18642 fi
18643 ;;
18644 *-*-freebsd*)
18645 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18646 ;;
18647 *-*-darwin* | *-*-cygwin* )
18648 THREAD_OPTS=""
18649 ;;
18650 *-*-aix*)
18651 THREAD_OPTS="pthreads"
18652 ;;
18653 *-hp-hpux* )
18654 if test "x$GCC" != "xyes"; then
18655 THREAD_OPTS=""
18656 fi
18657 esac
18658
18659 THREAD_OPTS="$THREAD_OPTS pthread none"
18660
18661 THREADS_OK=no
18662 for flag in $THREAD_OPTS; do
18663 case $flag in
18664 none)
18665 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18666 echo "configure:18667: checking whether pthreads work without any flags" >&5
18667 ;;
18668
18669 -*)
18670 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18671 echo "configure:18672: checking whether pthreads work with $flag" >&5
18672 THREADS_CFLAGS="$flag"
18673 ;;
18674
18675 *)
18676 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18677 echo "configure:18678: checking for the pthreads library -l$flag" >&5
18678 THREADS_LINK="-l$flag"
18679 ;;
18680 esac
18681
18682 save_LIBS="$LIBS"
18683 save_CFLAGS="$CFLAGS"
18684 LIBS="$THREADS_LINK $LIBS"
18685 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18686
18687 cat > conftest.$ac_ext <<EOF
18688 #line 18689 "configure"
18689 #include "confdefs.h"
18690 #include <pthread.h>
18691 int main() {
18692 pthread_create(0,0,0,0);
18693 ; return 0; }
18694 EOF
18695 if { (eval echo configure:18696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18696 rm -rf conftest*
18697 THREADS_OK=yes
18698 else
18699 echo "configure: failed program was:" >&5
18700 cat conftest.$ac_ext >&5
18701 fi
18702 rm -f conftest*
18703
18704 LIBS="$save_LIBS"
18705 CFLAGS="$save_CFLAGS"
18706
18707 echo "$ac_t""$THREADS_OK" 1>&6
18708 if test "x$THREADS_OK" = "xyes"; then
18709 break;
18710 fi
18711
18712 THREADS_LINK=""
18713 THREADS_CFLAGS=""
18714 done
18715
18716 if test "x$THREADS_OK" != "xyes"; then
18717 wxUSE_THREADS=no
18718 echo "configure: warning: No thread support on this system... disabled" 1>&2
18719 else
18720 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18721 LIBS="$THREADS_LINK $LIBS"
18722
18723 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18724 echo "configure:18725: checking if more special flags are required for pthreads" >&5
18725 flag=no
18726 case "${host}" in
18727 *-aix*)
18728 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18729 flag="-D_THREAD_SAFE"
18730 ;;
18731 *-freebsd*)
18732 flag="-D_THREAD_SAFE"
18733 ;;
18734 *-hp-hpux* )
18735 flag="-D_REENTRANT"
18736 if test "x$GCC" != "xyes"; then
18737 flag="$flag -D_RWSTD_MULTI_THREAD"
18738 fi
18739 ;;
18740 *solaris* | alpha*-osf*)
18741 flag="-D_REENTRANT"
18742 ;;
18743 esac
18744 echo "$ac_t""${flag}" 1>&6
18745 if test "x$flag" != xno; then
18746 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18747 fi
18748
18749 if test "x$THREADS_CFLAGS" != "x"; then
18750 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18751 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18752 fi
18753 fi
18754 fi
18755
18756 if test "$wxUSE_THREADS" = "yes" ; then
18757 for ac_func in thr_setconcurrency
18758 do
18759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18760 echo "configure:18761: checking for $ac_func" >&5
18761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18762 echo $ac_n "(cached) $ac_c" 1>&6
18763 else
18764 cat > conftest.$ac_ext <<EOF
18765 #line 18766 "configure"
18766 #include "confdefs.h"
18767 /* System header to define __stub macros and hopefully few prototypes,
18768 which can conflict with char $ac_func(); below. */
18769 #include <assert.h>
18770 /* Override any gcc2 internal prototype to avoid an error. */
18771 /* We use char because int might match the return type of a gcc2
18772 builtin and then its argument prototype would still apply. */
18773 char $ac_func();
18774
18775 int main() {
18776
18777 /* The GNU C library defines this for functions which it implements
18778 to always fail with ENOSYS. Some functions are actually named
18779 something starting with __ and the normal name is an alias. */
18780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18781 choke me
18782 #else
18783 $ac_func();
18784 #endif
18785
18786 ; return 0; }
18787 EOF
18788 if { (eval echo configure:18789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18789 rm -rf conftest*
18790 eval "ac_cv_func_$ac_func=yes"
18791 else
18792 echo "configure: failed program was:" >&5
18793 cat conftest.$ac_ext >&5
18794 rm -rf conftest*
18795 eval "ac_cv_func_$ac_func=no"
18796 fi
18797 rm -f conftest*
18798 fi
18799
18800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18801 echo "$ac_t""yes" 1>&6
18802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18803 cat >> confdefs.h <<EOF
18804 #define $ac_tr_func 1
18805 EOF
18806
18807 else
18808 echo "$ac_t""no" 1>&6
18809 fi
18810 done
18811
18812
18813 for ac_hdr in sched.h
18814 do
18815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18817 echo "configure:18818: checking for $ac_hdr" >&5
18818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18819 echo $ac_n "(cached) $ac_c" 1>&6
18820 else
18821 cat > conftest.$ac_ext <<EOF
18822 #line 18823 "configure"
18823 #include "confdefs.h"
18824 #include <$ac_hdr>
18825 EOF
18826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18827 { (eval echo configure:18828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18829 if test -z "$ac_err"; then
18830 rm -rf conftest*
18831 eval "ac_cv_header_$ac_safe=yes"
18832 else
18833 echo "$ac_err" >&5
18834 echo "configure: failed program was:" >&5
18835 cat conftest.$ac_ext >&5
18836 rm -rf conftest*
18837 eval "ac_cv_header_$ac_safe=no"
18838 fi
18839 rm -f conftest*
18840 fi
18841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18842 echo "$ac_t""yes" 1>&6
18843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18844 cat >> confdefs.h <<EOF
18845 #define $ac_tr_hdr 1
18846 EOF
18847
18848 else
18849 echo "$ac_t""no" 1>&6
18850 fi
18851 done
18852
18853 if test "$ac_cv_header_sched_h" = "yes"; then
18854 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18855 echo "configure:18856: checking for sched_yield" >&5
18856 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18857 echo $ac_n "(cached) $ac_c" 1>&6
18858 else
18859 cat > conftest.$ac_ext <<EOF
18860 #line 18861 "configure"
18861 #include "confdefs.h"
18862 /* System header to define __stub macros and hopefully few prototypes,
18863 which can conflict with char sched_yield(); below. */
18864 #include <assert.h>
18865 /* Override any gcc2 internal prototype to avoid an error. */
18866 /* We use char because int might match the return type of a gcc2
18867 builtin and then its argument prototype would still apply. */
18868 char sched_yield();
18869
18870 int main() {
18871
18872 /* The GNU C library defines this for functions which it implements
18873 to always fail with ENOSYS. Some functions are actually named
18874 something starting with __ and the normal name is an alias. */
18875 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18876 choke me
18877 #else
18878 sched_yield();
18879 #endif
18880
18881 ; return 0; }
18882 EOF
18883 if { (eval echo configure:18884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18884 rm -rf conftest*
18885 eval "ac_cv_func_sched_yield=yes"
18886 else
18887 echo "configure: failed program was:" >&5
18888 cat conftest.$ac_ext >&5
18889 rm -rf conftest*
18890 eval "ac_cv_func_sched_yield=no"
18891 fi
18892 rm -f conftest*
18893 fi
18894
18895 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18896 echo "$ac_t""yes" 1>&6
18897 cat >> confdefs.h <<\EOF
18898 #define HAVE_SCHED_YIELD 1
18899 EOF
18900
18901 else
18902 echo "$ac_t""no" 1>&6
18903
18904 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18905 echo "configure:18906: checking for sched_yield in -lposix4" >&5
18906 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18908 echo $ac_n "(cached) $ac_c" 1>&6
18909 else
18910 ac_save_LIBS="$LIBS"
18911 LIBS="-lposix4 $LIBS"
18912 cat > conftest.$ac_ext <<EOF
18913 #line 18914 "configure"
18914 #include "confdefs.h"
18915 /* Override any gcc2 internal prototype to avoid an error. */
18916 /* We use char because int might match the return type of a gcc2
18917 builtin and then its argument prototype would still apply. */
18918 char sched_yield();
18919
18920 int main() {
18921 sched_yield()
18922 ; return 0; }
18923 EOF
18924 if { (eval echo configure:18925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18925 rm -rf conftest*
18926 eval "ac_cv_lib_$ac_lib_var=yes"
18927 else
18928 echo "configure: failed program was:" >&5
18929 cat conftest.$ac_ext >&5
18930 rm -rf conftest*
18931 eval "ac_cv_lib_$ac_lib_var=no"
18932 fi
18933 rm -f conftest*
18934 LIBS="$ac_save_LIBS"
18935
18936 fi
18937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18938 echo "$ac_t""yes" 1>&6
18939 cat >> confdefs.h <<\EOF
18940 #define HAVE_SCHED_YIELD 1
18941 EOF
18942 POSIX4_LINK=" -lposix4"
18943 else
18944 echo "$ac_t""no" 1>&6
18945 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18946
18947 fi
18948
18949
18950
18951 fi
18952
18953 fi
18954
18955 HAVE_PRIOR_FUNCS=0
18956 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18957 echo "configure:18958: checking for pthread_attr_getschedpolicy" >&5
18958 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18959 echo $ac_n "(cached) $ac_c" 1>&6
18960 else
18961 cat > conftest.$ac_ext <<EOF
18962 #line 18963 "configure"
18963 #include "confdefs.h"
18964 /* System header to define __stub macros and hopefully few prototypes,
18965 which can conflict with char pthread_attr_getschedpolicy(); below. */
18966 #include <assert.h>
18967 /* Override any gcc2 internal prototype to avoid an error. */
18968 /* We use char because int might match the return type of a gcc2
18969 builtin and then its argument prototype would still apply. */
18970 char pthread_attr_getschedpolicy();
18971
18972 int main() {
18973
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18978 choke me
18979 #else
18980 pthread_attr_getschedpolicy();
18981 #endif
18982
18983 ; return 0; }
18984 EOF
18985 if { (eval echo configure:18986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18986 rm -rf conftest*
18987 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18988 else
18989 echo "configure: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
18991 rm -rf conftest*
18992 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18993 fi
18994 rm -f conftest*
18995 fi
18996
18997 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18998 echo "$ac_t""yes" 1>&6
18999 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19000 echo "configure:19001: checking for pthread_attr_setschedparam" >&5
19001 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19002 echo $ac_n "(cached) $ac_c" 1>&6
19003 else
19004 cat > conftest.$ac_ext <<EOF
19005 #line 19006 "configure"
19006 #include "confdefs.h"
19007 /* System header to define __stub macros and hopefully few prototypes,
19008 which can conflict with char pthread_attr_setschedparam(); below. */
19009 #include <assert.h>
19010 /* Override any gcc2 internal prototype to avoid an error. */
19011 /* We use char because int might match the return type of a gcc2
19012 builtin and then its argument prototype would still apply. */
19013 char pthread_attr_setschedparam();
19014
19015 int main() {
19016
19017 /* The GNU C library defines this for functions which it implements
19018 to always fail with ENOSYS. Some functions are actually named
19019 something starting with __ and the normal name is an alias. */
19020 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19021 choke me
19022 #else
19023 pthread_attr_setschedparam();
19024 #endif
19025
19026 ; return 0; }
19027 EOF
19028 if { (eval echo configure:19029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19029 rm -rf conftest*
19030 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19031 else
19032 echo "configure: failed program was:" >&5
19033 cat conftest.$ac_ext >&5
19034 rm -rf conftest*
19035 eval "ac_cv_func_pthread_attr_setschedparam=no"
19036 fi
19037 rm -f conftest*
19038 fi
19039
19040 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19041 echo "$ac_t""yes" 1>&6
19042 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19043 echo "configure:19044: checking for sched_get_priority_max" >&5
19044 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19045 echo $ac_n "(cached) $ac_c" 1>&6
19046 else
19047 cat > conftest.$ac_ext <<EOF
19048 #line 19049 "configure"
19049 #include "confdefs.h"
19050 /* System header to define __stub macros and hopefully few prototypes
19051 else
19052 echo "$ac_t""no" 1>&6
19053 which can conflict with char sched_get_priority_max(); below. */
19054 #include <assert.h>
19055 /* Override any gcc2 internal prototype to avoid an error. */
19056 /* We use char because int might match the return type of a gcc2
19057 builtin and then its argument prototype would still apply. */
19058 char sched_get_priority_max();
19059
19060 int main() {
19061
19062 /* The GNU C library defines this for functions which it implements
19063 to always fail with ENOSYS. Some functions are actually named
19064 something starting with __ and the normal name is an alias. */
19065 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19066 choke me
19067 #else
19068 sched_get_priority_max();
19069 #endif
19070
19071 ; return 0; }
19072 EOF
19073 if { (eval echo configure:19074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19074 rm -rf conftest*
19075 eval "ac_cv_func_sched_get_priority_max=yes"
19076 else
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080 eval "ac_cv_func_sched_get_priority_max=no"
19081 fi
19082 rm -f conftest*
19083 fi
19084
19085 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19086 echo "$ac_t""yes" 1>&6
19087 HAVE_PRIOR_FUNCS=1
19088 else
19089 echo "$ac_t""no" 1>&6
19090 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19091 echo "configure:19092: checking for sched_get_priority_max in -lposix4" >&5
19092 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19094 echo $ac_n "(cached) $ac_c" 1>&6
19095 else
19096 ac_save_LIBS="$LIBS"
19097 LIBS="-lposix4 $LIBS"
19098 cat > conftest.$ac_ext <<EOF
19099 #line 19100 "configure"
19100 #include "confdefs.h"
19101 /* Override any gcc2 internal prototype to avoid an error. */
19102 /* We use char because int might match the return type of a gcc2
19103 builtin and then its argument prototype would still apply. */
19104 char sched_get_priority_max();
19105
19106 int main() {
19107 sched_get_priority_max()
19108 ; return 0; }
19109 EOF
19110 if { (eval echo configure:19111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19111 rm -rf conftest*
19112 eval "ac_cv_lib_$ac_lib_var=yes"
19113 else
19114 echo "configure: failed program was:" >&5
19115 cat conftest.$ac_ext >&5
19116 rm -rf conftest*
19117 eval "ac_cv_lib_$ac_lib_var=no"
19118 fi
19119 rm -f conftest*
19120 LIBS="$ac_save_LIBS"
19121
19122 fi
19123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19124 echo "$ac_t""yes" 1>&6
19125
19126 HAVE_PRIOR_FUNCS=1
19127 POSIX4_LINK=" -lposix4"
19128
19129 else
19130 echo "$ac_t""no" 1>&6
19131 fi
19132
19133
19134 fi
19135
19136
19137 else
19138 echo "$ac_t""no" 1>&6
19139 fi
19140
19141
19142 fi
19143
19144
19145 if test "$HAVE_PRIOR_FUNCS" = 1; then
19146 cat >> confdefs.h <<\EOF
19147 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19148 EOF
19149
19150 else
19151 echo "configure: warning: Setting thread priority will not work" 1>&2
19152 fi
19153
19154 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19155 echo "configure:19156: checking for pthread_cancel" >&5
19156 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19157 echo $ac_n "(cached) $ac_c" 1>&6
19158 else
19159 cat > conftest.$ac_ext <<EOF
19160 #line 19161 "configure"
19161 #include "confdefs.h"
19162 /* System header to define __stub macros and hopefully few prototypes,
19163 which can conflict with char pthread_cancel(); below. */
19164 #include <assert.h>
19165 /* Override any gcc2 internal prototype to avoid an error. */
19166 /* We use char because int might match the return type of a gcc2
19167 builtin and then its argument prototype would still apply. */
19168 char pthread_cancel();
19169
19170 int main() {
19171
19172 /* The GNU C library defines this for functions which it implements
19173 to always fail with ENOSYS. Some functions are actually named
19174 something starting with __ and the normal name is an alias. */
19175 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19176 choke me
19177 #else
19178 pthread_cancel();
19179 #endif
19180
19181 ; return 0; }
19182 EOF
19183 if { (eval echo configure:19184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19184 rm -rf conftest*
19185 eval "ac_cv_func_pthread_cancel=yes"
19186 else
19187 echo "configure: failed program was:" >&5
19188 cat conftest.$ac_ext >&5
19189 rm -rf conftest*
19190 eval "ac_cv_func_pthread_cancel=no"
19191 fi
19192 rm -f conftest*
19193 fi
19194
19195 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19196 echo "$ac_t""yes" 1>&6
19197 cat >> confdefs.h <<\EOF
19198 #define HAVE_PTHREAD_CANCEL 1
19199 EOF
19200
19201 else
19202 echo "$ac_t""no" 1>&6
19203 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19204 fi
19205
19206
19207 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19208 echo "configure:19209: checking for pthread_cleanup_push/pop" >&5
19209 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19210 echo $ac_n "(cached) $ac_c" 1>&6
19211 else
19212
19213 cat > conftest.$ac_ext <<EOF
19214 #line 19215 "configure"
19215 #include "confdefs.h"
19216 #include <pthread.h>
19217 int main() {
19218
19219 pthread_cleanup_push(NULL, NULL);
19220 pthread_cleanup_pop(0);
19221
19222 ; return 0; }
19223 EOF
19224 if { (eval echo configure:19225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19225 rm -rf conftest*
19226
19227 wx_cv_func_pthread_cleanup_push=yes
19228
19229 else
19230 echo "configure: failed program was:" >&5
19231 cat conftest.$ac_ext >&5
19232 rm -rf conftest*
19233
19234 wx_cv_func_pthread_cleanup_push=no
19235
19236 fi
19237 rm -f conftest*
19238
19239 fi
19240
19241 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19242
19243 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19244 cat >> confdefs.h <<\EOF
19245 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19246 EOF
19247
19248 fi
19249
19250
19251 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19252 echo "configure:19253: checking for pthread_mutexattr_t" >&5
19253 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19254 echo $ac_n "(cached) $ac_c" 1>&6
19255 else
19256
19257 cat > conftest.$ac_ext <<EOF
19258 #line 19259 "configure"
19259 #include "confdefs.h"
19260 #include <pthread.h>
19261 int main() {
19262
19263 pthread_mutexattr_t attr;
19264 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19265
19266 ; return 0; }
19267 EOF
19268 if { (eval echo configure:19269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19269 rm -rf conftest*
19270
19271 wx_cv_type_pthread_mutexattr_t=yes
19272
19273 else
19274 echo "configure: failed program was:" >&5
19275 cat conftest.$ac_ext >&5
19276 rm -rf conftest*
19277
19278 wx_cv_type_pthread_mutexattr_t=no
19279
19280
19281 fi
19282 rm -f conftest*
19283
19284 fi
19285
19286 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19287
19288 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19289 cat >> confdefs.h <<\EOF
19290 #define HAVE_PTHREAD_MUTEXATTR_T 1
19291 EOF
19292
19293 else
19294 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19295 echo "configure:19296: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19296 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19297 echo $ac_n "(cached) $ac_c" 1>&6
19298 else
19299
19300 cat > conftest.$ac_ext <<EOF
19301 #line 19302 "configure"
19302 #include "confdefs.h"
19303 #include <pthread.h>
19304 int main() {
19305
19306 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19307
19308 ; return 0; }
19309 EOF
19310 if { (eval echo configure:19311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19311 rm -rf conftest*
19312
19313 wx_cv_type_pthread_rec_mutex_init=yes
19314
19315 else
19316 echo "configure: failed program was:" >&5
19317 cat conftest.$ac_ext >&5
19318 rm -rf conftest*
19319
19320 wx_cv_type_pthread_rec_mutex_init=no
19321
19322
19323 fi
19324 rm -f conftest*
19325
19326 fi
19327
19328 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19329 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19330 cat >> confdefs.h <<\EOF
19331 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19332 EOF
19333
19334 else
19335 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19336 fi
19337 fi
19338 fi
19339
19340 else
19341 if test "$wxUSE_THREADS" = "yes" ; then
19342 case "${host}" in
19343 *-*-mingw32* )
19344 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19345 echo "configure:19346: checking if compiler supports -mthreads" >&5
19346 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19347 echo $ac_n "(cached) $ac_c" 1>&6
19348 else
19349
19350 CFLAGS_OLD="$CFLAGS"
19351 CFLAGS="$CFLAGS -mthreads"
19352 cat > conftest.$ac_ext <<EOF
19353 #line 19354 "configure"
19354 #include "confdefs.h"
19355
19356 int main() {
19357
19358 ; return 0; }
19359 EOF
19360 if { (eval echo configure:19361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19361 rm -rf conftest*
19362 wx_cv_cflags_mthread=yes
19363 else
19364 echo "configure: failed program was:" >&5
19365 cat conftest.$ac_ext >&5
19366 rm -rf conftest*
19367 wx_cv_cflags_mthread=no
19368
19369 fi
19370 rm -f conftest*
19371
19372
19373 fi
19374
19375 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19376
19377 if test "$wx_cv_cflags_mthread" = "yes"; then
19378 CXXFLAGS="$CXXFLAGS -mthreads"
19379 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19380 LDFLAGS="$LDFLAGS -mthreads"
19381 else
19382 CFLAGS="$CFLAGS_OLD"
19383 fi
19384 ;;
19385 esac
19386 fi
19387 fi
19388
19389 if test "$wxUSE_THREADS" = "yes"; then
19390 cat >> confdefs.h <<\EOF
19391 #define wxUSE_THREADS 1
19392 EOF
19393
19394
19395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19396 else
19397 if test "$ac_cv_func_strtok_r" = "yes"; then
19398 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19399 echo "configure:19400: checking if -D_REENTRANT is needed" >&5
19400 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19401 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19402 echo "$ac_t""yes" 1>&6
19403 else
19404 echo "$ac_t""no" 1>&6
19405 fi
19406 fi
19407 fi
19408
19409 if test "$WXGTK20" = 1 ; then
19410 cat >> confdefs.h <<EOF
19411 #define __WXGTK20__ $WXGTK20
19412 EOF
19413
19414 WXGTK12=1
19415 fi
19416
19417 if test "$WXGTK12" = 1 ; then
19418 cat >> confdefs.h <<EOF
19419 #define __WXGTK12__ $WXGTK12
19420 EOF
19421
19422 fi
19423
19424 if test "$WXGTK127" = 1 ; then
19425 cat >> confdefs.h <<EOF
19426 #define __WXGTK127__ $WXGTK127
19427 EOF
19428
19429 fi
19430
19431 WXDEBUG=
19432
19433 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19434 WXDEBUG="-g"
19435 wxUSE_OPTIMISE=no
19436 fi
19437
19438 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19439 wxUSE_DEBUG_INFO=yes
19440 WXDEBUG="-ggdb"
19441 fi
19442
19443 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19444 cat >> confdefs.h <<\EOF
19445 #define WXDEBUG 1
19446 EOF
19447
19448 WXDEBUG_DEFINE="-D__WXDEBUG__"
19449 else
19450 if test "$wxUSE_GTK" = 1 ; then
19451 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19452 fi
19453 fi
19454
19455 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19456 cat >> confdefs.h <<\EOF
19457 #define wxUSE_MEMORY_TRACING 1
19458 EOF
19459
19460 cat >> confdefs.h <<\EOF
19461 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19462 EOF
19463
19464 cat >> confdefs.h <<\EOF
19465 #define wxUSE_DEBUG_NEW_ALWAYS 1
19466 EOF
19467
19468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19469 fi
19470
19471 if test "$wxUSE_DMALLOC" = "yes" ; then
19472 DMALLOC_LIBS="-ldmalloc"
19473 fi
19474
19475 PROFILE=
19476 if test "$wxUSE_PROFILE" = "yes" ; then
19477 PROFILE=" -pg"
19478 fi
19479
19480 CODE_GEN_FLAGS=
19481 CODE_GEN_FLAGS_CXX=
19482 if test "$GCC" = "yes" ; then
19483 if test "$wxUSE_NO_RTTI" = "yes" ; then
19484 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19485 fi
19486 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19487 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19488 fi
19489 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19490 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19491 fi
19492 if test "$USE_WIN32" = 1 ; then
19493 # I'm not even really sure what this was ever added to solve,
19494 # but someone added it for mingw native builds, so I guess
19495 # they had a reason, right??
19496 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19497 fi
19498
19499 case "${host}" in
19500 powerpc*-*-aix* )
19501 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19502 ;;
19503 *-hppa* )
19504 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19505 ;;
19506 esac
19507 fi
19508
19509 OPTIMISE=
19510 if test "$wxUSE_OPTIMISE" = "no" ; then
19511 if test "$GCC" = yes ; then
19512 OPTIMISE="-O0"
19513 fi
19514 else
19515 if test "$GCC" = yes ; then
19516 OPTIMISE="-O2"
19517
19518 case "${host}" in
19519 i586-*-*|i686-*-* )
19520 OPTIMISE="${OPTIMISE} "
19521 ;;
19522 esac
19523 else
19524 OPTIMISE="-O"
19525 fi
19526 fi
19527
19528
19529 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19530 cat >> confdefs.h <<\EOF
19531 #define WXWIN_COMPATIBILITY_2 1
19532 EOF
19533
19534
19535 WXWIN_COMPATIBILITY_2_2="yes"
19536 fi
19537
19538 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19539 cat >> confdefs.h <<\EOF
19540 #define WXWIN_COMPATIBILITY_2_2 1
19541 EOF
19542
19543
19544 WXWIN_COMPATIBILITY_2_4="yes"
19545 fi
19546
19547 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19548 cat >> confdefs.h <<\EOF
19549 #define WXWIN_COMPATIBILITY_2_4 1
19550 EOF
19551
19552 fi
19553
19554
19555 if test "$wxUSE_GUI" = "yes"; then
19556 cat >> confdefs.h <<\EOF
19557 #define wxUSE_GUI 1
19558 EOF
19559
19560
19561 else
19562 cat >> confdefs.h <<\EOF
19563 #define wxUSE_NOGUI 1
19564 EOF
19565
19566 fi
19567
19568
19569 if test "$wxUSE_UNIX" = "yes"; then
19570 cat >> confdefs.h <<\EOF
19571 #define wxUSE_UNIX 1
19572 EOF
19573
19574 fi
19575
19576
19577 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19578 cat >> confdefs.h <<\EOF
19579 #define wxUSE_APPLE_IEEE 1
19580 EOF
19581
19582 fi
19583
19584 if test "$wxUSE_TIMER" = "yes"; then
19585 cat >> confdefs.h <<\EOF
19586 #define wxUSE_TIMER 1
19587 EOF
19588
19589 fi
19590
19591 if test "$wxUSE_WAVE" = "yes"; then
19592 cat >> confdefs.h <<\EOF
19593 #define wxUSE_WAVE 1
19594 EOF
19595
19596 fi
19597
19598 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19599 cat >> confdefs.h <<\EOF
19600 #define wxUSE_CMDLINE_PARSER 1
19601 EOF
19602
19603 fi
19604
19605 if test "$wxUSE_STOPWATCH" = "yes"; then
19606 cat >> confdefs.h <<\EOF
19607 #define wxUSE_STOPWATCH 1
19608 EOF
19609
19610 fi
19611
19612 if test "$wxUSE_DATETIME" = "yes"; then
19613 cat >> confdefs.h <<\EOF
19614 #define wxUSE_DATETIME 1
19615 EOF
19616
19617 fi
19618
19619 if test "$wxUSE_FILE" = "yes"; then
19620 cat >> confdefs.h <<\EOF
19621 #define wxUSE_FILE 1
19622 EOF
19623
19624 fi
19625
19626 if test "$wxUSE_FFILE" = "yes"; then
19627 cat >> confdefs.h <<\EOF
19628 #define wxUSE_FFILE 1
19629 EOF
19630
19631 fi
19632
19633 if test "$wxUSE_FILESYSTEM" = "yes"; then
19634 cat >> confdefs.h <<\EOF
19635 #define wxUSE_FILESYSTEM 1
19636 EOF
19637
19638 fi
19639
19640 if test "$wxUSE_FS_INET" = "yes"; then
19641 cat >> confdefs.h <<\EOF
19642 #define wxUSE_FS_INET 1
19643 EOF
19644
19645 fi
19646
19647 if test "$wxUSE_FS_ZIP" = "yes"; then
19648 cat >> confdefs.h <<\EOF
19649 #define wxUSE_FS_ZIP 1
19650 EOF
19651
19652 fi
19653
19654 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19655 cat >> confdefs.h <<\EOF
19656 #define wxUSE_ZIPSTREAM 1
19657 EOF
19658
19659 fi
19660
19661 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19662 cat >> confdefs.h <<\EOF
19663 #define wxUSE_ON_FATAL_EXCEPTION 1
19664 EOF
19665
19666 fi
19667
19668 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19669 cat >> confdefs.h <<\EOF
19670 #define wxUSE_SNGLINST_CHECKER 1
19671 EOF
19672
19673 fi
19674
19675 if test "$wxUSE_BUSYINFO" = "yes"; then
19676 cat >> confdefs.h <<\EOF
19677 #define wxUSE_BUSYINFO 1
19678 EOF
19679
19680 fi
19681
19682 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19683 cat >> confdefs.h <<\EOF
19684 #define wxUSE_STD_IOSTREAM 1
19685 EOF
19686
19687 fi
19688
19689 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19690 cat >> confdefs.h <<\EOF
19691 #define wxUSE_TEXTBUFFER 1
19692 EOF
19693
19694 fi
19695
19696 if test "$wxUSE_TEXTFILE" = "yes"; then
19697 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19698 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19699 else
19700 cat >> confdefs.h <<\EOF
19701 #define wxUSE_TEXTFILE 1
19702 EOF
19703
19704 fi
19705 fi
19706
19707 if test "$wxUSE_CONFIG" = "yes" ; then
19708 if test "$wxUSE_TEXTFILE" != "yes"; then
19709 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19710 else
19711 cat >> confdefs.h <<\EOF
19712 #define wxUSE_CONFIG 1
19713 EOF
19714
19715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19716 fi
19717 fi
19718
19719 if test "$wxUSE_INTL" = "yes" ; then
19720 if test "$wxUSE_FILE" != "yes"; then
19721 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19722 else
19723 cat >> confdefs.h <<\EOF
19724 #define wxUSE_INTL 1
19725 EOF
19726
19727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19728 GUIDIST="$GUIDIST INTL_DIST"
19729 fi
19730 fi
19731
19732 if test "$wxUSE_LOG" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734 #define wxUSE_LOG 1
19735 EOF
19736
19737
19738 if test "$wxUSE_LOGGUI" = "yes"; then
19739 cat >> confdefs.h <<\EOF
19740 #define wxUSE_LOGGUI 1
19741 EOF
19742
19743 fi
19744
19745 if test "$wxUSE_LOGWINDOW" = "yes"; then
19746 cat >> confdefs.h <<\EOF
19747 #define wxUSE_LOGWINDOW 1
19748 EOF
19749
19750 fi
19751
19752 if test "$wxUSE_LOGDIALOG" = "yes"; then
19753 cat >> confdefs.h <<\EOF
19754 #define wxUSE_LOG_DIALOG 1
19755 EOF
19756
19757 fi
19758 fi
19759
19760 if test "$wxUSE_LONGLONG" = "yes"; then
19761 cat >> confdefs.h <<\EOF
19762 #define wxUSE_LONGLONG 1
19763 EOF
19764
19765 fi
19766
19767 if test "$wxUSE_GEOMETRY" = "yes"; then
19768 cat >> confdefs.h <<\EOF
19769 #define wxUSE_GEOMETRY 1
19770 EOF
19771
19772 fi
19773
19774 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19775 cat >> confdefs.h <<\EOF
19776 #define wxUSE_DIALUP_MANAGER 1
19777 EOF
19778
19779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19780 fi
19781
19782 if test "$wxUSE_STREAMS" = "yes" ; then
19783 cat >> confdefs.h <<\EOF
19784 #define wxUSE_STREAMS 1
19785 EOF
19786
19787 fi
19788
19789
19790 if test "$wxUSE_DATETIME" = "yes"; then
19791 for ac_func in strptime
19792 do
19793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19794 echo "configure:19795: checking for $ac_func" >&5
19795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19796 echo $ac_n "(cached) $ac_c" 1>&6
19797 else
19798 cat > conftest.$ac_ext <<EOF
19799 #line 19800 "configure"
19800 #include "confdefs.h"
19801 /* System header to define __stub macros and hopefully few prototypes,
19802 which can conflict with char $ac_func(); below. */
19803 #include <assert.h>
19804 /* Override any gcc2 internal prototype to avoid an error. */
19805 /* We use char because int might match the return type of a gcc2
19806 builtin and then its argument prototype would still apply. */
19807 char $ac_func();
19808
19809 int main() {
19810
19811 /* The GNU C library defines this for functions which it implements
19812 to always fail with ENOSYS. Some functions are actually named
19813 something starting with __ and the normal name is an alias. */
19814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19815 choke me
19816 #else
19817 $ac_func();
19818 #endif
19819
19820 ; return 0; }
19821 EOF
19822 if { (eval echo configure:19823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19823 rm -rf conftest*
19824 eval "ac_cv_func_$ac_func=yes"
19825 else
19826 echo "configure: failed program was:" >&5
19827 cat conftest.$ac_ext >&5
19828 rm -rf conftest*
19829 eval "ac_cv_func_$ac_func=no"
19830 fi
19831 rm -f conftest*
19832 fi
19833
19834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19835 echo "$ac_t""yes" 1>&6
19836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19837 cat >> confdefs.h <<EOF
19838 #define $ac_tr_func 1
19839 EOF
19840
19841 else
19842 echo "$ac_t""no" 1>&6
19843 fi
19844 done
19845
19846
19847 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19848 echo "configure:19849: checking for timezone variable in <time.h>" >&5
19849 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19850 echo $ac_n "(cached) $ac_c" 1>&6
19851 else
19852
19853 cat > conftest.$ac_ext <<EOF
19854 #line 19855 "configure"
19855 #include "confdefs.h"
19856
19857 #include <time.h>
19858
19859 int main() {
19860
19861 int tz;
19862 tz = timezone;
19863
19864 ; return 0; }
19865 EOF
19866 if { (eval echo configure:19867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19867 rm -rf conftest*
19868
19869 wx_cv_var_timezone=timezone
19870
19871 else
19872 echo "configure: failed program was:" >&5
19873 cat conftest.$ac_ext >&5
19874 rm -rf conftest*
19875
19876 cat > conftest.$ac_ext <<EOF
19877 #line 19878 "configure"
19878 #include "confdefs.h"
19879
19880 #include <time.h>
19881
19882 int main() {
19883
19884 int tz;
19885 tz = _timezone;
19886
19887 ; return 0; }
19888 EOF
19889 if { (eval echo configure:19890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19890 rm -rf conftest*
19891
19892 wx_cv_var_timezone=_timezone
19893
19894 else
19895 echo "configure: failed program was:" >&5
19896 cat conftest.$ac_ext >&5
19897 rm -rf conftest*
19898
19899 cat > conftest.$ac_ext <<EOF
19900 #line 19901 "configure"
19901 #include "confdefs.h"
19902
19903 #include <time.h>
19904
19905 int main() {
19906
19907 int tz;
19908 tz = __timezone;
19909
19910 ; return 0; }
19911 EOF
19912 if { (eval echo configure:19913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19913 rm -rf conftest*
19914
19915 wx_cv_var_timezone=__timezone
19916
19917 else
19918 echo "configure: failed program was:" >&5
19919 cat conftest.$ac_ext >&5
19920 rm -rf conftest*
19921
19922 if test "$USE_DOS" = 0 ; then
19923 echo "configure: warning: no timezone variable" 1>&2
19924 fi
19925
19926
19927 fi
19928 rm -f conftest*
19929
19930
19931 fi
19932 rm -f conftest*
19933
19934
19935 fi
19936 rm -f conftest*
19937
19938
19939 fi
19940
19941 echo "$ac_t""$wx_cv_var_timezone" 1>&6
19942
19943 if test "x$wx_cv_var_timezone" != x ; then
19944 cat >> confdefs.h <<EOF
19945 #define WX_TIMEZONE $wx_cv_var_timezone
19946 EOF
19947
19948 fi
19949
19950 for ac_func in localtime
19951 do
19952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19953 echo "configure:19954: checking for $ac_func" >&5
19954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19955 echo $ac_n "(cached) $ac_c" 1>&6
19956 else
19957 cat > conftest.$ac_ext <<EOF
19958 #line 19959 "configure"
19959 #include "confdefs.h"
19960 /* System header to define __stub macros and hopefully few prototypes,
19961 which can conflict with char $ac_func(); below. */
19962 #include <assert.h>
19963 /* Override any gcc2 internal prototype to avoid an error. */
19964 /* We use char because int might match the return type of a gcc2
19965 builtin and then its argument prototype would still apply. */
19966 char $ac_func();
19967
19968 int main() {
19969
19970 /* The GNU C library defines this for functions which it implements
19971 to always fail with ENOSYS. Some functions are actually named
19972 something starting with __ and the normal name is an alias. */
19973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19974 choke me
19975 #else
19976 $ac_func();
19977 #endif
19978
19979 ; return 0; }
19980 EOF
19981 if { (eval echo configure:19982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19982 rm -rf conftest*
19983 eval "ac_cv_func_$ac_func=yes"
19984 else
19985 echo "configure: failed program was:" >&5
19986 cat conftest.$ac_ext >&5
19987 rm -rf conftest*
19988 eval "ac_cv_func_$ac_func=no"
19989 fi
19990 rm -f conftest*
19991 fi
19992
19993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19994 echo "$ac_t""yes" 1>&6
19995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19996 cat >> confdefs.h <<EOF
19997 #define $ac_tr_func 1
19998 EOF
19999
20000 else
20001 echo "$ac_t""no" 1>&6
20002 fi
20003 done
20004
20005
20006 if test "$ac_cv_func_localtime" = "yes"; then
20007 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20008 echo "configure:20009: checking for tm_gmtoff in struct tm" >&5
20009 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20010 echo $ac_n "(cached) $ac_c" 1>&6
20011 else
20012
20013 cat > conftest.$ac_ext <<EOF
20014 #line 20015 "configure"
20015 #include "confdefs.h"
20016
20017 #include <time.h>
20018
20019 int main() {
20020
20021 struct tm tm;
20022 tm.tm_gmtoff++;
20023
20024 ; return 0; }
20025 EOF
20026 if { (eval echo configure:20027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20027 rm -rf conftest*
20028
20029 wx_cv_struct_tm_has_gmtoff=yes
20030
20031 else
20032 echo "configure: failed program was:" >&5
20033 cat conftest.$ac_ext >&5
20034 rm -rf conftest*
20035 wx_cv_struct_tm_has_gmtoff=no
20036
20037 fi
20038 rm -f conftest*
20039
20040 fi
20041
20042 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20043 fi
20044
20045 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20046 cat >> confdefs.h <<\EOF
20047 #define WX_GMTOFF_IN_TM 1
20048 EOF
20049
20050 fi
20051
20052 for ac_func in gettimeofday ftime
20053 do
20054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20055 echo "configure:20056: checking for $ac_func" >&5
20056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20057 echo $ac_n "(cached) $ac_c" 1>&6
20058 else
20059 cat > conftest.$ac_ext <<EOF
20060 #line 20061 "configure"
20061 #include "confdefs.h"
20062 /* System header to define __stub macros and hopefully few prototypes,
20063 which can conflict with char $ac_func(); below. */
20064 #include <assert.h>
20065 /* Override any gcc2 internal prototype to avoid an error. */
20066 /* We use char because int might match the return type of a gcc2
20067 builtin and then its argument prototype would still apply. */
20068 char $ac_func();
20069
20070 int main() {
20071
20072 /* The GNU C library defines this for functions which it implements
20073 to always fail with ENOSYS. Some functions are actually named
20074 something starting with __ and the normal name is an alias. */
20075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20076 choke me
20077 #else
20078 $ac_func();
20079 #endif
20080
20081 ; return 0; }
20082 EOF
20083 if { (eval echo configure:20084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20084 rm -rf conftest*
20085 eval "ac_cv_func_$ac_func=yes"
20086 else
20087 echo "configure: failed program was:" >&5
20088 cat conftest.$ac_ext >&5
20089 rm -rf conftest*
20090 eval "ac_cv_func_$ac_func=no"
20091 fi
20092 rm -f conftest*
20093 fi
20094
20095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20096 echo "$ac_t""yes" 1>&6
20097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20098 cat >> confdefs.h <<EOF
20099 #define $ac_tr_func 1
20100 EOF
20101 break
20102 else
20103 echo "$ac_t""no" 1>&6
20104 fi
20105 done
20106
20107
20108 if test "$ac_cv_func_gettimeofday" = "yes"; then
20109 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20110 echo "configure:20111: checking whether gettimeofday takes two arguments" >&5
20111 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20112 echo $ac_n "(cached) $ac_c" 1>&6
20113 else
20114
20115
20116 ac_ext=C
20117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20118 ac_cpp='$CXXCPP $CPPFLAGS'
20119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20121 cross_compiling=$ac_cv_prog_cxx_cross
20122
20123
20124 cat > conftest.$ac_ext <<EOF
20125 #line 20126 "configure"
20126 #include "confdefs.h"
20127
20128 #include <sys/time.h>
20129 #include <unistd.h>
20130
20131 int main() {
20132
20133 struct timeval tv;
20134 gettimeofday(&tv, NULL);
20135
20136 ; return 0; }
20137 EOF
20138 if { (eval echo configure:20139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20139 rm -rf conftest*
20140 wx_cv_func_gettimeofday_has_2_args=yes
20141 else
20142 echo "configure: failed program was:" >&5
20143 cat conftest.$ac_ext >&5
20144 rm -rf conftest*
20145 cat > conftest.$ac_ext <<EOF
20146 #line 20147 "configure"
20147 #include "confdefs.h"
20148
20149 #include <sys/time.h>
20150 #include <unistd.h>
20151
20152 int main() {
20153
20154 struct timeval tv;
20155 gettimeofday(&tv);
20156
20157 ; return 0; }
20158 EOF
20159 if { (eval echo configure:20160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20160 rm -rf conftest*
20161 wx_cv_func_gettimeofday_has_2_args=no
20162 else
20163 echo "configure: failed program was:" >&5
20164 cat conftest.$ac_ext >&5
20165 rm -rf conftest*
20166
20167 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20168 wx_cv_func_gettimeofday_has_2_args=unknown
20169
20170
20171 fi
20172 rm -f conftest*
20173
20174 fi
20175 rm -f conftest*
20176 ac_ext=c
20177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20178 ac_cpp='$CPP $CPPFLAGS'
20179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20181 cross_compiling=$ac_cv_prog_cc_cross
20182
20183
20184 fi
20185
20186 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20187
20188 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20189 cat >> confdefs.h <<\EOF
20190 #define WX_GETTIMEOFDAY_NO_TZ 1
20191 EOF
20192
20193 fi
20194 fi
20195
20196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20197 fi
20198
20199
20200 if test "$wxUSE_SOCKETS" = "yes"; then
20201 if test "$wxUSE_MGL" = "1"; then
20202 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20203 wxUSE_SOCKETS="no"
20204 fi
20205 fi
20206
20207 if test "$wxUSE_SOCKETS" = "yes"; then
20208 if test "$TOOLKIT" != "MSW"; then
20209 echo $ac_n "checking for socket""... $ac_c" 1>&6
20210 echo "configure:20211: checking for socket" >&5
20211 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20212 echo $ac_n "(cached) $ac_c" 1>&6
20213 else
20214 cat > conftest.$ac_ext <<EOF
20215 #line 20216 "configure"
20216 #include "confdefs.h"
20217 /* System header to define __stub macros and hopefully few prototypes,
20218 which can conflict with char socket(); below. */
20219 #include <assert.h>
20220 /* Override any gcc2 internal prototype to avoid an error. */
20221 /* We use char because int might match the return type of a gcc2
20222 builtin and then its argument prototype would still apply. */
20223 char socket();
20224
20225 int main() {
20226
20227 /* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230 #if defined (__stub_socket) || defined (__stub___socket)
20231 choke me
20232 #else
20233 socket();
20234 #endif
20235
20236 ; return 0; }
20237 EOF
20238 if { (eval echo configure:20239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20239 rm -rf conftest*
20240 eval "ac_cv_func_socket=yes"
20241 else
20242 echo "configure: failed program was:" >&5
20243 cat conftest.$ac_ext >&5
20244 rm -rf conftest*
20245 eval "ac_cv_func_socket=no"
20246 fi
20247 rm -f conftest*
20248 fi
20249
20250 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20251 echo "$ac_t""yes" 1>&6
20252 :
20253 else
20254 echo "$ac_t""no" 1>&6
20255 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20256 echo "configure:20257: checking for socket in -lsocket" >&5
20257 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20259 echo $ac_n "(cached) $ac_c" 1>&6
20260 else
20261 ac_save_LIBS="$LIBS"
20262 LIBS="-lsocket $LIBS"
20263 cat > conftest.$ac_ext <<EOF
20264 #line 20265 "configure"
20265 #include "confdefs.h"
20266 /* Override any gcc2 internal prototype to avoid an error. */
20267 /* We use char because int might match the return type of a gcc2
20268 builtin and then its argument prototype would still apply. */
20269 char socket();
20270
20271 int main() {
20272 socket()
20273 ; return 0; }
20274 EOF
20275 if { (eval echo configure:20276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20276 rm -rf conftest*
20277 eval "ac_cv_lib_$ac_lib_var=yes"
20278 else
20279 echo "configure: failed program was:" >&5
20280 cat conftest.$ac_ext >&5
20281 rm -rf conftest*
20282 eval "ac_cv_lib_$ac_lib_var=no"
20283 fi
20284 rm -f conftest*
20285 LIBS="$ac_save_LIBS"
20286
20287 fi
20288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20289 echo "$ac_t""yes" 1>&6
20290 if test "$INET_LINK" != " -lsocket"; then
20291 INET_LINK="$INET_LINK -lsocket"
20292 fi
20293 else
20294 echo "$ac_t""no" 1>&6
20295
20296 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20297 wxUSE_SOCKETS=no
20298
20299
20300 fi
20301
20302
20303 fi
20304
20305 fi
20306 fi
20307
20308 if test "$wxUSE_SOCKETS" = "yes" ; then
20309 if test "$TOOLKIT" != "MSW"; then
20310 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20311 echo "configure:20312: checking what is the type of the third argument of getsockname" >&5
20312 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20313 echo $ac_n "(cached) $ac_c" 1>&6
20314 else
20315
20316
20317 ac_ext=C
20318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20319 ac_cpp='$CXXCPP $CPPFLAGS'
20320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20322 cross_compiling=$ac_cv_prog_cxx_cross
20323
20324
20325 cat > conftest.$ac_ext <<EOF
20326 #line 20327 "configure"
20327 #include "confdefs.h"
20328
20329 #include <sys/types.h>
20330 #include <sys/socket.h>
20331
20332 int main() {
20333
20334 socklen_t len;
20335 getsockname(0, 0, &len);
20336
20337 ; return 0; }
20338 EOF
20339 if { (eval echo configure:20340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20340 rm -rf conftest*
20341 wx_cv_type_getsockname3=socklen_t
20342 else
20343 echo "configure: failed program was:" >&5
20344 cat conftest.$ac_ext >&5
20345 rm -rf conftest*
20346 cat > conftest.$ac_ext <<EOF
20347 #line 20348 "configure"
20348 #include "confdefs.h"
20349
20350 #include <sys/types.h>
20351 #include <sys/socket.h>
20352
20353 int main() {
20354
20355 size_t len;
20356 getsockname(0, 0, &len);
20357
20358 ; return 0; }
20359 EOF
20360 if { (eval echo configure:20361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20361 rm -rf conftest*
20362 wx_cv_type_getsockname3=size_t
20363 else
20364 echo "configure: failed program was:" >&5
20365 cat conftest.$ac_ext >&5
20366 rm -rf conftest*
20367 cat > conftest.$ac_ext <<EOF
20368 #line 20369 "configure"
20369 #include "confdefs.h"
20370
20371 #include <sys/types.h>
20372 #include <sys/socket.h>
20373
20374 int main() {
20375
20376 int len;
20377 getsockname(0, 0, &len);
20378
20379 ; return 0; }
20380 EOF
20381 if { (eval echo configure:20382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20382 rm -rf conftest*
20383 wx_cv_type_getsockname3=int
20384 else
20385 echo "configure: failed program was:" >&5
20386 cat conftest.$ac_ext >&5
20387 rm -rf conftest*
20388 wx_cv_type_getsockname3=unknown
20389
20390 fi
20391 rm -f conftest*
20392
20393 fi
20394 rm -f conftest*
20395
20396 fi
20397 rm -f conftest*
20398
20399 ac_ext=c
20400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20401 ac_cpp='$CPP $CPPFLAGS'
20402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20404 cross_compiling=$ac_cv_prog_cc_cross
20405
20406
20407 fi
20408
20409 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20410
20411 if test "$wx_cv_type_getsockname3" = "unknown"; then
20412 wxUSE_SOCKETS=no
20413 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20414 else
20415 cat >> confdefs.h <<EOF
20416 #define SOCKLEN_T $wx_cv_type_getsockname3
20417 EOF
20418
20419 fi
20420 fi
20421 fi
20422
20423 if test "$wxUSE_SOCKETS" = "yes" ; then
20424 cat >> confdefs.h <<\EOF
20425 #define wxUSE_SOCKETS 1
20426 EOF
20427
20428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20429 fi
20430
20431
20432 if test "$wxUSE_GUI" = "yes"; then
20433
20434 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20435 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20436 wxUSE_JOYSTICK=no
20437 fi
20438 if test "$TOOLKIT" = "MOTIF"; then
20439 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20440 wxUSE_JOYSTICK=no
20441 fi
20442 if test "$TOOLKIT" = "X11"; then
20443 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20444 wxUSE_JOYSTICK=no
20445 fi
20446
20447 if test "$TOOLKIT" != "MSW"; then
20448 if test "$wxUSE_JOYSTICK" = "yes"; then
20449 for ac_hdr in linux/joystick.h
20450 do
20451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20453 echo "configure:20454: checking for $ac_hdr" >&5
20454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20455 echo $ac_n "(cached) $ac_c" 1>&6
20456 else
20457 cat > conftest.$ac_ext <<EOF
20458 #line 20459 "configure"
20459 #include "confdefs.h"
20460 #include <$ac_hdr>
20461 EOF
20462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20463 { (eval echo configure:20464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20465 if test -z "$ac_err"; then
20466 rm -rf conftest*
20467 eval "ac_cv_header_$ac_safe=yes"
20468 else
20469 echo "$ac_err" >&5
20470 echo "configure: failed program was:" >&5
20471 cat conftest.$ac_ext >&5
20472 rm -rf conftest*
20473 eval "ac_cv_header_$ac_safe=no"
20474 fi
20475 rm -f conftest*
20476 fi
20477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20478 echo "$ac_t""yes" 1>&6
20479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20480 cat >> confdefs.h <<EOF
20481 #define $ac_tr_hdr 1
20482 EOF
20483
20484 else
20485 echo "$ac_t""no" 1>&6
20486 fi
20487 done
20488
20489 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20490 wxUSE_JOYSTICK=no
20491 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20492 fi
20493 fi
20494 fi
20495
20496 if test "$wxUSE_JOYSTICK" = "yes"; then
20497 cat >> confdefs.h <<\EOF
20498 #define wxUSE_JOYSTICK 1
20499 EOF
20500
20501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20502 fi
20503 fi
20504
20505
20506 if test "$TOOLKIT" != "MSW"; then
20507
20508 HAVE_DL_FUNCS=0
20509 HAVE_SHL_FUNCS=0
20510 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20511 if test "$USE_DARWIN" = 1; then
20512 HAVE_DL_FUNCS=1
20513 else
20514 for ac_func in dlopen
20515 do
20516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20517 echo "configure:20518: checking for $ac_func" >&5
20518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20519 echo $ac_n "(cached) $ac_c" 1>&6
20520 else
20521 cat > conftest.$ac_ext <<EOF
20522 #line 20523 "configure"
20523 #include "confdefs.h"
20524 /* System header to define __stub macros and hopefully few prototypes,
20525 which can conflict with char $ac_func(); below. */
20526 #include <assert.h>
20527 /* Override any gcc2 internal prototype to avoid an error. */
20528 /* We use char because int might match the return type of a gcc2
20529 builtin and then its argument prototype would still apply. */
20530 char $ac_func();
20531
20532 int main() {
20533
20534 /* The GNU C library defines this for functions which it implements
20535 to always fail with ENOSYS. Some functions are actually named
20536 something starting with __ and the normal name is an alias. */
20537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20538 choke me
20539 #else
20540 $ac_func();
20541 #endif
20542
20543 ; return 0; }
20544 EOF
20545 if { (eval echo configure:20546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20546 rm -rf conftest*
20547 eval "ac_cv_func_$ac_func=yes"
20548 else
20549 echo "configure: failed program was:" >&5
20550 cat conftest.$ac_ext >&5
20551 rm -rf conftest*
20552 eval "ac_cv_func_$ac_func=no"
20553 fi
20554 rm -f conftest*
20555 fi
20556
20557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20558 echo "$ac_t""yes" 1>&6
20559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20560 cat >> confdefs.h <<EOF
20561 #define $ac_tr_func 1
20562 EOF
20563
20564 cat >> confdefs.h <<\EOF
20565 #define HAVE_DLOPEN 1
20566 EOF
20567
20568 HAVE_DL_FUNCS=1
20569
20570 else
20571 echo "$ac_t""no" 1>&6
20572 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20573 echo "configure:20574: checking for dlopen in -ldl" >&5
20574 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20576 echo $ac_n "(cached) $ac_c" 1>&6
20577 else
20578 ac_save_LIBS="$LIBS"
20579 LIBS="-ldl $LIBS"
20580 cat > conftest.$ac_ext <<EOF
20581 #line 20582 "configure"
20582 #include "confdefs.h"
20583 /* Override any gcc2 internal prototype to avoid an error. */
20584 /* We use char because int might match the return type of a gcc2
20585 builtin and then its argument prototype would still apply. */
20586 char dlopen();
20587
20588 int main() {
20589 dlopen()
20590 ; return 0; }
20591 EOF
20592 if { (eval echo configure:20593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20593 rm -rf conftest*
20594 eval "ac_cv_lib_$ac_lib_var=yes"
20595 else
20596 echo "configure: failed program was:" >&5
20597 cat conftest.$ac_ext >&5
20598 rm -rf conftest*
20599 eval "ac_cv_lib_$ac_lib_var=no"
20600 fi
20601 rm -f conftest*
20602 LIBS="$ac_save_LIBS"
20603
20604 fi
20605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20606 echo "$ac_t""yes" 1>&6
20607
20608 cat >> confdefs.h <<\EOF
20609 #define HAVE_DLOPEN 1
20610 EOF
20611
20612 HAVE_DL_FUNCS=1
20613 DL_LINK=" -ldl$DL_LINK"
20614
20615 else
20616 echo "$ac_t""no" 1>&6
20617
20618 for ac_func in shl_load
20619 do
20620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20621 echo "configure:20622: checking for $ac_func" >&5
20622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20623 echo $ac_n "(cached) $ac_c" 1>&6
20624 else
20625 cat > conftest.$ac_ext <<EOF
20626 #line 20627 "configure"
20627 #include "confdefs.h"
20628 /* System header to define __stub macros and hopefully few prototypes,
20629 which can conflict with char $ac_func(); below. */
20630 #include <assert.h>
20631 /* Override any gcc2 internal prototype to avoid an error. */
20632 /* We use char because int might match the return type of a gcc2
20633 builtin and then its argument prototype would still apply. */
20634 char $ac_func();
20635
20636 int main() {
20637
20638 /* The GNU C library defines this for functions which it implements
20639 to always fail with ENOSYS. Some functions are actually named
20640 something starting with __ and the normal name is an alias. */
20641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20642 choke me
20643 #else
20644 $ac_func();
20645 #endif
20646
20647 ; return 0; }
20648 EOF
20649 if { (eval echo configure:20650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20650 rm -rf conftest*
20651 eval "ac_cv_func_$ac_func=yes"
20652 else
20653 echo "configure: failed program was:" >&5
20654 cat conftest.$ac_ext >&5
20655 rm -rf conftest*
20656 eval "ac_cv_func_$ac_func=no"
20657 fi
20658 rm -f conftest*
20659 fi
20660
20661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20662 echo "$ac_t""yes" 1>&6
20663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20664 cat >> confdefs.h <<EOF
20665 #define $ac_tr_func 1
20666 EOF
20667
20668 cat >> confdefs.h <<\EOF
20669 #define HAVE_SHL_LOAD 1
20670 EOF
20671
20672 HAVE_SHL_FUNCS=1
20673
20674 else
20675 echo "$ac_t""no" 1>&6
20676 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20677 echo "configure:20678: checking for dld in -lshl_load" >&5
20678 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20680 echo $ac_n "(cached) $ac_c" 1>&6
20681 else
20682 ac_save_LIBS="$LIBS"
20683 LIBS="-lshl_load $LIBS"
20684 cat > conftest.$ac_ext <<EOF
20685 #line 20686 "configure"
20686 #include "confdefs.h"
20687 /* Override any gcc2 internal prototype to avoid an error. */
20688 /* We use char because int might match the return type of a gcc2
20689 builtin and then its argument prototype would still apply. */
20690 char dld();
20691
20692 int main() {
20693 dld()
20694 ; return 0; }
20695 EOF
20696 if { (eval echo configure:20697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20697 rm -rf conftest*
20698 eval "ac_cv_lib_$ac_lib_var=yes"
20699 else
20700 echo "configure: failed program was:" >&5
20701 cat conftest.$ac_ext >&5
20702 rm -rf conftest*
20703 eval "ac_cv_lib_$ac_lib_var=no"
20704 fi
20705 rm -f conftest*
20706 LIBS="$ac_save_LIBS"
20707
20708 fi
20709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20710 echo "$ac_t""yes" 1>&6
20711
20712 HAVE_SHL_FUNCS=1
20713 DL_LINK=" -ldld$DL_LINK"
20714
20715 else
20716 echo "$ac_t""no" 1>&6
20717 fi
20718
20719
20720 fi
20721 done
20722
20723
20724 fi
20725
20726
20727 fi
20728 done
20729
20730
20731 if test "$HAVE_DL_FUNCS" = 1; then
20732 for ac_func in dlerror
20733 do
20734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20735 echo "configure:20736: checking for $ac_func" >&5
20736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20737 echo $ac_n "(cached) $ac_c" 1>&6
20738 else
20739 cat > conftest.$ac_ext <<EOF
20740 #line 20741 "configure"
20741 #include "confdefs.h"
20742 /* System header to define __stub macros and hopefully few prototypes,
20743 which can conflict with char $ac_func(); below. */
20744 #include <assert.h>
20745 /* Override any gcc2 internal prototype to avoid an error. */
20746 /* We use char because int might match the return type of a gcc2
20747 builtin and then its argument prototype would still apply. */
20748 char $ac_func();
20749
20750 int main() {
20751
20752 /* The GNU C library defines this for functions which it implements
20753 to always fail with ENOSYS. Some functions are actually named
20754 something starting with __ and the normal name is an alias. */
20755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20756 choke me
20757 #else
20758 $ac_func();
20759 #endif
20760
20761 ; return 0; }
20762 EOF
20763 if { (eval echo configure:20764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20764 rm -rf conftest*
20765 eval "ac_cv_func_$ac_func=yes"
20766 else
20767 echo "configure: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20769 rm -rf conftest*
20770 eval "ac_cv_func_$ac_func=no"
20771 fi
20772 rm -f conftest*
20773 fi
20774
20775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20776 echo "$ac_t""yes" 1>&6
20777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20778 cat >> confdefs.h <<EOF
20779 #define $ac_tr_func 1
20780 EOF
20781 cat >> confdefs.h <<\EOF
20782 #define HAVE_DLERROR 1
20783 EOF
20784
20785 else
20786 echo "$ac_t""no" 1>&6
20787 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20788 echo "configure:20789: checking for dlerror in -ldl" >&5
20789 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20791 echo $ac_n "(cached) $ac_c" 1>&6
20792 else
20793 ac_save_LIBS="$LIBS"
20794 LIBS="-ldl $LIBS"
20795 cat > conftest.$ac_ext <<EOF
20796 #line 20797 "configure"
20797 #include "confdefs.h"
20798 /* Override any gcc2 internal prototype to avoid an error. */
20799 /* We use char because int might match the return type of a gcc2
20800 builtin and then its argument prototype would still apply. */
20801 char dlerror();
20802
20803 int main() {
20804 dlerror()
20805 ; return 0; }
20806 EOF
20807 if { (eval echo configure:20808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20808 rm -rf conftest*
20809 eval "ac_cv_lib_$ac_lib_var=yes"
20810 else
20811 echo "configure: failed program was:" >&5
20812 cat conftest.$ac_ext >&5
20813 rm -rf conftest*
20814 eval "ac_cv_lib_$ac_lib_var=no"
20815 fi
20816 rm -f conftest*
20817 LIBS="$ac_save_LIBS"
20818
20819 fi
20820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20821 echo "$ac_t""yes" 1>&6
20822 cat >> confdefs.h <<\EOF
20823 #define HAVE_DLERROR 1
20824 EOF
20825
20826 else
20827 echo "$ac_t""no" 1>&6
20828 fi
20829
20830 fi
20831 done
20832
20833 fi
20834 fi
20835
20836 if test "$HAVE_DL_FUNCS" = 0; then
20837 if test "$HAVE_SHL_FUNCS" = 0; then
20838 if test "$USE_UNIX" = 1; then
20839 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20840 wxUSE_DYNAMIC_LOADER=no
20841 wxUSE_DYNLIB_CLASS=no
20842 else
20843 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20844 fi
20845 fi
20846 fi
20847 fi
20848 fi
20849
20850 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20851 cat >> confdefs.h <<\EOF
20852 #define wxUSE_DYNAMIC_LOADER 1
20853 EOF
20854
20855 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20856 cat >> confdefs.h <<\EOF
20857 #define wxUSE_DYNLIB_CLASS 1
20858 EOF
20859
20860 fi
20861
20862
20863 if test "$wxUSE_FONTMAP" = "yes" ; then
20864 cat >> confdefs.h <<\EOF
20865 #define wxUSE_FONTMAP 1
20866 EOF
20867
20868 fi
20869
20870 if test "$wxUSE_UNICODE" = "yes" ; then
20871 cat >> confdefs.h <<\EOF
20872 #define wxUSE_UNICODE 1
20873 EOF
20874
20875
20876 if test "$wxUSE_MSW" != 1; then
20877 wxUSE_UNICODE_MSLU=no
20878 fi
20879
20880 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20881 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20882 echo "configure:20883: checking for main in -lunicows" >&5
20883 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20885 echo $ac_n "(cached) $ac_c" 1>&6
20886 else
20887 ac_save_LIBS="$LIBS"
20888 LIBS="-lunicows $LIBS"
20889 cat > conftest.$ac_ext <<EOF
20890 #line 20891 "configure"
20891 #include "confdefs.h"
20892
20893 int main() {
20894 main()
20895 ; return 0; }
20896 EOF
20897 if { (eval echo configure:20898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20898 rm -rf conftest*
20899 eval "ac_cv_lib_$ac_lib_var=yes"
20900 else
20901 echo "configure: failed program was:" >&5
20902 cat conftest.$ac_ext >&5
20903 rm -rf conftest*
20904 eval "ac_cv_lib_$ac_lib_var=no"
20905 fi
20906 rm -f conftest*
20907 LIBS="$ac_save_LIBS"
20908
20909 fi
20910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20911 echo "$ac_t""yes" 1>&6
20912
20913 cat >> confdefs.h <<\EOF
20914 #define wxUSE_UNICODE_MSLU 1
20915 EOF
20916
20917
20918 else
20919 echo "$ac_t""no" 1>&6
20920
20921 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20922 Applications will only run on Windows NT/2000/XP!" 1>&2
20923 wxUSE_UNICODE_MSLU=no
20924
20925 fi
20926
20927 fi
20928 fi
20929
20930 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20931 cat >> confdefs.h <<\EOF
20932 #define wxUSE_EXPERIMENTAL_PRINTF 1
20933 EOF
20934
20935 fi
20936
20937
20938
20939 IODBC_C_SRC=""
20940 if test "$wxUSE_ODBC" = "yes" ; then
20941 cat >> confdefs.h <<\EOF
20942 #define wxUSE_ODBC 1
20943 EOF
20944
20945 WXODBCFLAG="-D_IODBC_"
20946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20947 fi
20948
20949
20950 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20951 cat >> confdefs.h <<\EOF
20952 #define wxUSE_POSTSCRIPT 1
20953 EOF
20954
20955 fi
20956
20957 cat >> confdefs.h <<\EOF
20958 #define wxUSE_AFM_FOR_POSTSCRIPT 1
20959 EOF
20960
20961
20962 cat >> confdefs.h <<\EOF
20963 #define wxUSE_NORMALIZED_PS_FONTS 1
20964 EOF
20965
20966
20967
20968 if test "$wxUSE_CONSTRAINTS" = "yes"; then
20969 cat >> confdefs.h <<\EOF
20970 #define wxUSE_CONSTRAINTS 1
20971 EOF
20972
20973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20974 fi
20975
20976 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20977
20978
20979 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20980 cat >> confdefs.h <<\EOF
20981 #define wxUSE_MDI_ARCHITECTURE 1
20982 EOF
20983
20984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20985 fi
20986 fi
20987
20988 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20989 cat >> confdefs.h <<\EOF
20990 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
20991 EOF
20992
20993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20994 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20996 fi
20997 fi
20998
20999 if test "$wxUSE_HELP" = "yes"; then
21000 cat >> confdefs.h <<\EOF
21001 #define wxUSE_HELP 1
21002 EOF
21003
21004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21005
21006 if test "$wxUSE_MSW" = 1; then
21007 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21008 cat >> confdefs.h <<\EOF
21009 #define wxUSE_MS_HTML_HELP 1
21010 EOF
21011
21012 fi
21013 fi
21014
21015 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21016 if test "$wxUSE_HTML" = "yes"; then
21017 cat >> confdefs.h <<\EOF
21018 #define wxUSE_WXHTML_HELP 1
21019 EOF
21020
21021 else
21022 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21023 wxUSE_WXHTML_HELP=no
21024 fi
21025 fi
21026 fi
21027
21028 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21029 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21030 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21031 else
21032 cat >> confdefs.h <<\EOF
21033 #define wxUSE_PRINTING_ARCHITECTURE 1
21034 EOF
21035
21036 fi
21037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21038 fi
21039
21040 if test "$wxUSE_PROLOGIO" = "yes" ; then
21041 cat >> confdefs.h <<\EOF
21042 #define wxUSE_PROLOGIO 1
21043 EOF
21044
21045 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21046 fi
21047
21048 if test "$wxUSE_RESOURCES" = "yes" ; then
21049 if test "$wxUSE_NANOX" = "yes"; then
21050 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
21051 else
21052 cat >> confdefs.h <<\EOF
21053 #define wxUSE_RESOURCES 1
21054 EOF
21055
21056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
21057 fi
21058 if test "$wxUSE_PROLOGIO" != "yes" ; then
21059 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21060 fi
21061 fi
21062
21063 if test "$wxUSE_X_RESOURCES" = "yes"; then
21064 cat >> confdefs.h <<\EOF
21065 #define wxUSE_X_RESOURCES 1
21066 EOF
21067
21068 fi
21069
21070
21071 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21072 -o "$wxUSE_CLIPBOARD" = "yes" \
21073 -o "$wxUSE_OLE" = "yes" \
21074 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21075 for ac_hdr in ole2.h
21076 do
21077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21079 echo "configure:21080: checking for $ac_hdr" >&5
21080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21081 echo $ac_n "(cached) $ac_c" 1>&6
21082 else
21083 cat > conftest.$ac_ext <<EOF
21084 #line 21085 "configure"
21085 #include "confdefs.h"
21086 #include <$ac_hdr>
21087 EOF
21088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21089 { (eval echo configure:21090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21091 if test -z "$ac_err"; then
21092 rm -rf conftest*
21093 eval "ac_cv_header_$ac_safe=yes"
21094 else
21095 echo "$ac_err" >&5
21096 echo "configure: failed program was:" >&5
21097 cat conftest.$ac_ext >&5
21098 rm -rf conftest*
21099 eval "ac_cv_header_$ac_safe=no"
21100 fi
21101 rm -f conftest*
21102 fi
21103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21104 echo "$ac_t""yes" 1>&6
21105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21106 cat >> confdefs.h <<EOF
21107 #define $ac_tr_hdr 1
21108 EOF
21109
21110 else
21111 echo "$ac_t""no" 1>&6
21112 fi
21113 done
21114
21115
21116 if test "$ac_cv_header_ole2_h" = "yes" ; then
21117 if test "$GCC" = yes ; then
21118
21119 ac_ext=C
21120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21121 ac_cpp='$CXXCPP $CPPFLAGS'
21122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21124 cross_compiling=$ac_cv_prog_cxx_cross
21125
21126
21127 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21128 echo "configure:21129: checking if g++ requires -fvtable-thunks" >&5
21129 cat > conftest.$ac_ext <<EOF
21130 #line 21131 "configure"
21131 #include "confdefs.h"
21132 #include <windows.h>
21133 #include <ole2.h>
21134 int main() {
21135
21136 ; return 0; }
21137 EOF
21138 if { (eval echo configure:21139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21139 rm -rf conftest*
21140 echo "$ac_t""no" 1>&6
21141 else
21142 echo "configure: failed program was:" >&5
21143 cat conftest.$ac_ext >&5
21144 rm -rf conftest*
21145 echo "$ac_t""yes" 1>&6
21146 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21147 fi
21148 rm -f conftest*
21149 ac_ext=c
21150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21151 ac_cpp='$CPP $CPPFLAGS'
21152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21154 cross_compiling=$ac_cv_prog_cc_cross
21155
21156 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21157 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21158 cat >> confdefs.h <<\EOF
21159 #define wxUSE_OLE 1
21160 EOF
21161
21162
21163 fi
21164
21165 cat >> confdefs.h <<\EOF
21166 #define wxUSE_DATAOBJ 1
21167 EOF
21168
21169 else
21170 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21171
21172 wxUSE_CLIPBOARD=no
21173 wxUSE_DRAG_AND_DROP=no
21174 wxUSE_DATAOBJ=no
21175 wxUSE_OLE=no
21176 fi
21177
21178 if test "$wxUSE_METAFILE" = "yes"; then
21179 cat >> confdefs.h <<\EOF
21180 #define wxUSE_METAFILE 1
21181 EOF
21182
21183
21184 cat >> confdefs.h <<\EOF
21185 #define wxUSE_ENH_METAFILE 1
21186 EOF
21187
21188 fi
21189 fi
21190
21191 if test "$wxUSE_IPC" = "yes"; then
21192 if test "$wxUSE_SOCKETS" != "yes"; then
21193 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21194 fi
21195
21196 cat >> confdefs.h <<\EOF
21197 #define wxUSE_IPC 1
21198 EOF
21199
21200 fi
21201
21202 if test "$wxUSE_CLIPBOARD" = "yes"; then
21203 if test "$wxUSE_MGL" = 1; then
21204 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21205 wxUSE_CLIPBOARD=no
21206 fi
21207
21208 if test "$wxUSE_CLIPBOARD" = "yes"; then
21209 cat >> confdefs.h <<\EOF
21210 #define wxUSE_CLIPBOARD 1
21211 EOF
21212
21213
21214 cat >> confdefs.h <<\EOF
21215 #define wxUSE_DATAOBJ 1
21216 EOF
21217
21218 fi
21219 fi
21220
21221 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21222 if test "$wxUSE_GTK" = 1; then
21223 if test "$WXGTK12" != 1; then
21224 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21225 wxUSE_DRAG_AND_DROP=no
21226 fi
21227 fi
21228
21229 if test "$wxUSE_MOTIF" = 1; then
21230 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21231 wxUSE_DRAG_AND_DROP=no
21232 fi
21233
21234 if test "$wxUSE_X11" = 1; then
21235 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21236 wxUSE_DRAG_AND_DROP=no
21237 fi
21238
21239 if test "$wxUSE_MGL" = 1; then
21240 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21241 wxUSE_DRAG_AND_DROP=no
21242 fi
21243
21244 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21245 cat >> confdefs.h <<\EOF
21246 #define wxUSE_DRAG_AND_DROP 1
21247 EOF
21248
21249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21250 fi
21251
21252 fi
21253
21254 if test "$wxUSE_SPLINES" = "yes" ; then
21255 cat >> confdefs.h <<\EOF
21256 #define wxUSE_SPLINES 1
21257 EOF
21258
21259 fi
21260
21261
21262 USES_CONTROLS=0
21263 if test "$wxUSE_CONTROLS" = "yes"; then
21264 USES_CONTROLS=1
21265 fi
21266
21267 if test "$wxUSE_ACCEL" = "yes"; then
21268 cat >> confdefs.h <<\EOF
21269 #define wxUSE_ACCEL 1
21270 EOF
21271
21272 USES_CONTROLS=1
21273 fi
21274
21275 if test "$wxUSE_BUTTON" = "yes"; then
21276 cat >> confdefs.h <<\EOF
21277 #define wxUSE_BUTTON 1
21278 EOF
21279
21280 USES_CONTROLS=1
21281 fi
21282
21283 if test "$wxUSE_BMPBUTTON" = "yes"; then
21284 cat >> confdefs.h <<\EOF
21285 #define wxUSE_BMPBUTTON 1
21286 EOF
21287
21288 USES_CONTROLS=1
21289 fi
21290
21291 if test "$wxUSE_CALCTRL" = "yes"; then
21292 cat >> confdefs.h <<\EOF
21293 #define wxUSE_CALENDARCTRL 1
21294 EOF
21295
21296 USES_CONTROLS=1
21297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21298 fi
21299
21300 if test "$wxUSE_CARET" = "yes"; then
21301 cat >> confdefs.h <<\EOF
21302 #define wxUSE_CARET 1
21303 EOF
21304
21305 USES_CONTROLS=1
21306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21307 fi
21308
21309 if test "$wxUSE_COMBOBOX" = "yes"; then
21310 cat >> confdefs.h <<\EOF
21311 #define wxUSE_COMBOBOX 1
21312 EOF
21313
21314 USES_CONTROLS=1
21315 fi
21316
21317 if test "$wxUSE_CHOICE" = "yes"; then
21318 cat >> confdefs.h <<\EOF
21319 #define wxUSE_CHOICE 1
21320 EOF
21321
21322 USES_CONTROLS=1
21323 fi
21324
21325 if test "$wxUSE_CHECKBOX" = "yes"; then
21326 cat >> confdefs.h <<\EOF
21327 #define wxUSE_CHECKBOX 1
21328 EOF
21329
21330 USES_CONTROLS=1
21331 fi
21332
21333 if test "$wxUSE_CHECKLST" = "yes"; then
21334 cat >> confdefs.h <<\EOF
21335 #define wxUSE_CHECKLISTBOX 1
21336 EOF
21337
21338 USES_CONTROLS=1
21339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21340 fi
21341
21342 if test "$wxUSE_DISPLAY" = "yes"; then
21343 cat >> confdefs.h <<\EOF
21344 #define wxUSE_DISPLAY 1
21345 EOF
21346
21347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21348 fi
21349
21350 if test "$wxUSE_GAUGE" = "yes"; then
21351 cat >> confdefs.h <<\EOF
21352 #define wxUSE_GAUGE 1
21353 EOF
21354
21355 USES_CONTROLS=1
21356 fi
21357
21358 if test "$wxUSE_GRID" = "yes"; then
21359 cat >> confdefs.h <<\EOF
21360 #define wxUSE_GRID 1
21361 EOF
21362
21363 USES_CONTROLS=1
21364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21365 fi
21366
21367 if test "$wxUSE_IMAGLIST" = "yes"; then
21368 cat >> confdefs.h <<\EOF
21369 #define wxUSE_IMAGLIST 1
21370 EOF
21371
21372 fi
21373
21374 if test "$wxUSE_LISTBOX" = "yes"; then
21375 cat >> confdefs.h <<\EOF
21376 #define wxUSE_LISTBOX 1
21377 EOF
21378
21379 USES_CONTROLS=1
21380 fi
21381
21382 if test "$wxUSE_LISTCTRL" = "yes"; then
21383 if test "$wxUSE_IMAGLIST" = "yes"; then
21384 cat >> confdefs.h <<\EOF
21385 #define wxUSE_LISTCTRL 1
21386 EOF
21387
21388 USES_CONTROLS=1
21389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21390 else
21391 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21392 fi
21393 fi
21394
21395 if test "$wxUSE_NOTEBOOK" = "yes"; then
21396 cat >> confdefs.h <<\EOF
21397 #define wxUSE_NOTEBOOK 1
21398 EOF
21399
21400 USES_CONTROLS=1
21401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21402 fi
21403
21404 if test "$wxUSE_PROPSHEET" = "yes"; then
21405 cat >> confdefs.h <<\EOF
21406 #define wxUSE_PROPSHEET 1
21407 EOF
21408
21409 USES_CONTROLS=1
21410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21411 fi
21412
21413 if test "$wxUSE_RADIOBOX" = "yes"; then
21414 cat >> confdefs.h <<\EOF
21415 #define wxUSE_RADIOBOX 1
21416 EOF
21417
21418 USES_CONTROLS=1
21419 fi
21420
21421 if test "$wxUSE_RADIOBTN" = "yes"; then
21422 cat >> confdefs.h <<\EOF
21423 #define wxUSE_RADIOBTN 1
21424 EOF
21425
21426 USES_CONTROLS=1
21427 fi
21428
21429 if test "$wxUSE_SASH" = "yes"; then
21430 cat >> confdefs.h <<\EOF
21431 #define wxUSE_SASH 1
21432 EOF
21433
21434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21435 fi
21436
21437 if test "$wxUSE_SCROLLBAR" = "yes"; then
21438 cat >> confdefs.h <<\EOF
21439 #define wxUSE_SCROLLBAR 1
21440 EOF
21441
21442 USES_CONTROLS=1
21443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21444 fi
21445
21446 if test "$wxUSE_SLIDER" = "yes"; then
21447 cat >> confdefs.h <<\EOF
21448 #define wxUSE_SLIDER 1
21449 EOF
21450
21451 USES_CONTROLS=1
21452 fi
21453
21454 if test "$wxUSE_SPINBTN" = "yes"; then
21455 cat >> confdefs.h <<\EOF
21456 #define wxUSE_SPINBTN 1
21457 EOF
21458
21459 USES_CONTROLS=1
21460 fi
21461
21462 if test "$wxUSE_SPINCTRL" = "yes"; then
21463 cat >> confdefs.h <<\EOF
21464 #define wxUSE_SPINCTRL 1
21465 EOF
21466
21467 USES_CONTROLS=1
21468 fi
21469
21470 if test "$wxUSE_SPLITTER" = "yes"; then
21471 cat >> confdefs.h <<\EOF
21472 #define wxUSE_SPLITTER 1
21473 EOF
21474
21475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21476 fi
21477
21478 if test "$wxUSE_STATBMP" = "yes"; then
21479 cat >> confdefs.h <<\EOF
21480 #define wxUSE_STATBMP 1
21481 EOF
21482
21483 USES_CONTROLS=1
21484 fi
21485
21486 if test "$wxUSE_STATBOX" = "yes"; then
21487 cat >> confdefs.h <<\EOF
21488 #define wxUSE_STATBOX 1
21489 EOF
21490
21491 USES_CONTROLS=1
21492 fi
21493
21494 if test "$wxUSE_STATTEXT" = "yes"; then
21495 cat >> confdefs.h <<\EOF
21496 #define wxUSE_STATTEXT 1
21497 EOF
21498
21499 USES_CONTROLS=1
21500 fi
21501
21502 if test "$wxUSE_STATLINE" = "yes"; then
21503 cat >> confdefs.h <<\EOF
21504 #define wxUSE_STATLINE 1
21505 EOF
21506
21507 USES_CONTROLS=1
21508 fi
21509
21510 if test "$wxUSE_STATUSBAR" = "yes"; then
21511 cat >> confdefs.h <<\EOF
21512 #define wxUSE_STATUSBAR 1
21513 EOF
21514
21515 USES_CONTROLS=1
21516
21517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21518 fi
21519
21520 if test "$wxUSE_TABDIALOG" = "yes"; then
21521 cat >> confdefs.h <<\EOF
21522 #define wxUSE_TAB_DIALOG 1
21523 EOF
21524
21525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21526 fi
21527
21528 if test "$wxUSE_TEXTCTRL" = "yes"; then
21529 cat >> confdefs.h <<\EOF
21530 #define wxUSE_TEXTCTRL 1
21531 EOF
21532
21533 USES_CONTROLS=1
21534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21535 fi
21536
21537 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21538 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21539 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21540 wxUSE_TOGGLEBTN=no
21541 fi
21542 if test "$wxUSE_UNIVERSAL" = "yes"; then
21543 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21544 wxUSE_TOGGLEBTN=no
21545 fi
21546
21547 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21548 cat >> confdefs.h <<\EOF
21549 #define wxUSE_TOGGLEBTN 1
21550 EOF
21551
21552 USES_CONTROLS=1
21553 fi
21554 fi
21555
21556 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21557 cat >> confdefs.h <<\EOF
21558 #define wxUSE_TOOLBAR_SIMPLE 1
21559 EOF
21560
21561 wxUSE_TOOLBAR="yes"
21562 USES_CONTROLS=1
21563 fi
21564
21565 if test "$wxUSE_TOOLBAR" = "yes"; then
21566 cat >> confdefs.h <<\EOF
21567 #define wxUSE_TOOLBAR 1
21568 EOF
21569
21570 USES_CONTROLS=1
21571
21572 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21573 wxUSE_TOOLBAR_NATIVE="yes"
21574 fi
21575
21576 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21577 cat >> confdefs.h <<\EOF
21578 #define wxUSE_TOOLBAR_NATIVE 1
21579 EOF
21580
21581 USES_CONTROLS=1
21582 fi
21583
21584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21585 fi
21586
21587 if test "$wxUSE_TOOLTIPS" = "yes"; then
21588 if test "$wxUSE_MOTIF" = 1; then
21589 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21590 else
21591 if test "$wxUSE_UNIVERSAL" = "yes"; then
21592 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21593 else
21594 cat >> confdefs.h <<\EOF
21595 #define wxUSE_TOOLTIPS 1
21596 EOF
21597
21598 fi
21599 fi
21600 fi
21601
21602 if test "$wxUSE_TREECTRL" = "yes"; then
21603 if test "$wxUSE_IMAGLIST" = "yes"; then
21604 cat >> confdefs.h <<\EOF
21605 #define wxUSE_TREECTRL 1
21606 EOF
21607
21608 USES_CONTROLS=1
21609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21610 else
21611 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21612 fi
21613 fi
21614
21615 if test "$wxUSE_POPUPWIN" = "yes"; then
21616 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21617 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21618 else
21619 if test "$wxUSE_MOTIF" = 1; then
21620 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21621 else
21622 if test "$wxUSE_PM" = 1; then
21623 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21624 else
21625 cat >> confdefs.h <<\EOF
21626 #define wxUSE_POPUPWIN 1
21627 EOF
21628
21629
21630 USES_CONTROLS=1
21631 fi
21632 fi
21633 fi
21634 fi
21635
21636 if test "$wxUSE_TIPWINDOW" = "yes"; then
21637 if test "$wxUSE_PM" = 1; then
21638 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21639 else
21640 cat >> confdefs.h <<\EOF
21641 #define wxUSE_TIPWINDOW 1
21642 EOF
21643
21644 fi
21645 fi
21646
21647 if test "$USES_CONTROLS" = 1; then
21648 cat >> confdefs.h <<\EOF
21649 #define wxUSE_CONTROLS 1
21650 EOF
21651
21652 fi
21653
21654
21655 if test "$wxUSE_TREELAYOUT" = "yes"; then
21656 cat >> confdefs.h <<\EOF
21657 #define wxUSE_TREELAYOUT 1
21658 EOF
21659
21660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21661 fi
21662
21663 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21664 cat >> confdefs.h <<\EOF
21665 #define wxUSE_DRAGIMAGE 1
21666 EOF
21667
21668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21669 fi
21670
21671 if test "$wxUSE_MENUS" = "yes"; then
21672 cat >> confdefs.h <<\EOF
21673 #define wxUSE_MENUS 1
21674 EOF
21675
21676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21677 fi
21678
21679 if test "$wxUSE_METAFILE" = "yes"; then
21680 cat >> confdefs.h <<\EOF
21681 #define wxUSE_METAFILE 1
21682 EOF
21683
21684 fi
21685
21686 if test "$wxUSE_MIMETYPE" = "yes"; then
21687 cat >> confdefs.h <<\EOF
21688 #define wxUSE_MIMETYPE 1
21689 EOF
21690
21691 fi
21692
21693 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21694 cat >> confdefs.h <<\EOF
21695 #define wxUSE_SYSTEM_OPTIONS 1
21696 EOF
21697
21698 if test "$TOOLKIT" = "MSW"; then
21699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21700 fi
21701
21702 fi
21703
21704 if test "$wxUSE_PROTOCOL" = "yes"; then
21705 if test "$wxUSE_SOCKETS" != "yes"; then
21706 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21707 wxUSE_PROTOCOL=no
21708 fi
21709
21710 if test "$wxUSE_PROTOCOL" = "yes"; then
21711 cat >> confdefs.h <<\EOF
21712 #define wxUSE_PROTOCOL 1
21713 EOF
21714
21715
21716 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21717 cat >> confdefs.h <<\EOF
21718 #define wxUSE_PROTOCOL_HTTP 1
21719 EOF
21720
21721 fi
21722 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21723 cat >> confdefs.h <<\EOF
21724 #define wxUSE_PROTOCOL_FTP 1
21725 EOF
21726
21727 fi
21728 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21729 cat >> confdefs.h <<\EOF
21730 #define wxUSE_PROTOCOL_FILE 1
21731 EOF
21732
21733 fi
21734 fi
21735 fi
21736
21737 if test "$wxUSE_URL" = "yes"; then
21738 if test "$wxUSE_PROTOCOL" != "yes"; then
21739 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21740 wxUSE_URL=no
21741 fi
21742 if test "$wxUSE_URL" = "yes"; then
21743 cat >> confdefs.h <<\EOF
21744 #define wxUSE_URL 1
21745 EOF
21746
21747 fi
21748 fi
21749
21750 if test "$wxUSE_MINIFRAME" = "yes"; then
21751 cat >> confdefs.h <<\EOF
21752 #define wxUSE_MINIFRAME 1
21753 EOF
21754
21755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21756 fi
21757
21758 if test "$wxUSE_HTML" = "yes"; then
21759 cat >> confdefs.h <<\EOF
21760 #define wxUSE_HTML 1
21761 EOF
21762
21763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21764 fi
21765
21766 if test "$wxUSE_VALIDATORS" = "yes"; then
21767 cat >> confdefs.h <<\EOF
21768 #define wxUSE_VALIDATORS 1
21769 EOF
21770
21771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21772 fi
21773
21774 if test "$wxUSE_PALETTE" = "yes" ; then
21775 cat >> confdefs.h <<\EOF
21776 #define wxUSE_PALETTE 1
21777 EOF
21778
21779 fi
21780
21781 if test "$wxUSE_IMAGE" = "yes" ; then
21782 cat >> confdefs.h <<\EOF
21783 #define wxUSE_IMAGE 1
21784 EOF
21785
21786 fi
21787
21788 if test "$wxUSE_GIF" = "yes" ; then
21789 cat >> confdefs.h <<\EOF
21790 #define wxUSE_GIF 1
21791 EOF
21792
21793 fi
21794
21795 if test "$wxUSE_PCX" = "yes" ; then
21796 cat >> confdefs.h <<\EOF
21797 #define wxUSE_PCX 1
21798 EOF
21799
21800 fi
21801
21802 if test "$wxUSE_IFF" = "yes" ; then
21803 cat >> confdefs.h <<\EOF
21804 #define wxUSE_IFF 1
21805 EOF
21806
21807 fi
21808
21809 if test "$wxUSE_PNM" = "yes" ; then
21810 cat >> confdefs.h <<\EOF
21811 #define wxUSE_PNM 1
21812 EOF
21813
21814 fi
21815
21816 if test "$wxUSE_XPM" = "yes" ; then
21817 cat >> confdefs.h <<\EOF
21818 #define wxUSE_XPM 1
21819 EOF
21820
21821 fi
21822
21823 if test "$wxUSE_ICO_CUR" = "yes" ; then
21824 cat >> confdefs.h <<\EOF
21825 #define wxUSE_ICO_CUR 1
21826 EOF
21827
21828 fi
21829
21830 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21831 LIBS=" -lunicows $LIBS"
21832 fi
21833
21834
21835 if test "$wxUSE_CHOICEDLG" = "yes"; then
21836 cat >> confdefs.h <<\EOF
21837 #define wxUSE_CHOICEDLG 1
21838 EOF
21839
21840 fi
21841
21842 if test "$wxUSE_COLOURDLG" = "yes"; then
21843 cat >> confdefs.h <<\EOF
21844 #define wxUSE_COLOURDLG 1
21845 EOF
21846
21847 fi
21848
21849 if test "$wxUSE_FILEDLG" = "yes"; then
21850 cat >> confdefs.h <<\EOF
21851 #define wxUSE_FILEDLG 1
21852 EOF
21853
21854 fi
21855
21856 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21857 cat >> confdefs.h <<\EOF
21858 #define wxUSE_FINDREPLDLG 1
21859 EOF
21860
21861 fi
21862
21863 if test "$wxUSE_FONTDLG" = "yes"; then
21864 cat >> confdefs.h <<\EOF
21865 #define wxUSE_FONTDLG 1
21866 EOF
21867
21868 fi
21869
21870 if test "$wxUSE_DIRDLG" = "yes"; then
21871 if test "$wxUSE_TREECTRL" != "yes"; then
21872 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21873 else
21874 cat >> confdefs.h <<\EOF
21875 #define wxUSE_DIRDLG 1
21876 EOF
21877
21878 fi
21879 fi
21880
21881 if test "$wxUSE_MSGDLG" = "yes"; then
21882 cat >> confdefs.h <<\EOF
21883 #define wxUSE_MSGDLG 1
21884 EOF
21885
21886 fi
21887
21888 if test "$wxUSE_NUMBERDLG" = "yes"; then
21889 cat >> confdefs.h <<\EOF
21890 #define wxUSE_NUMBERDLG 1
21891 EOF
21892
21893 fi
21894
21895 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21896 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21897 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21898 else
21899 cat >> confdefs.h <<\EOF
21900 #define wxUSE_PROGRESSDLG 1
21901 EOF
21902
21903 fi
21904 fi
21905
21906 if test "$wxUSE_SPLASH" = "yes"; then
21907 cat >> confdefs.h <<\EOF
21908 #define wxUSE_SPLASH 1
21909 EOF
21910
21911 fi
21912
21913 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21914 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21915 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21916 else
21917 cat >> confdefs.h <<\EOF
21918 #define wxUSE_STARTUP_TIPS 1
21919 EOF
21920
21921 fi
21922 fi
21923
21924 if test "$wxUSE_TEXTDLG" = "yes"; then
21925 cat >> confdefs.h <<\EOF
21926 #define wxUSE_TEXTDLG 1
21927 EOF
21928
21929 fi
21930
21931 if test "$wxUSE_WIZARDDLG" = "yes"; then
21932 cat >> confdefs.h <<\EOF
21933 #define wxUSE_WIZARDDLG 1
21934 EOF
21935
21936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21937 fi
21938
21939
21940 if test "$cross_compiling" = "yes"; then
21941 OSINFO="\"$host\""
21942 else
21943 OSINFO=`uname -s -r -m`
21944 OSINFO="\"$OSINFO\""
21945 fi
21946
21947 cat >> confdefs.h <<EOF
21948 #define WXWIN_OS_DESCRIPTION $OSINFO
21949 EOF
21950
21951
21952
21953 if test "x$prefix" != "xNONE"; then
21954 wxPREFIX=$prefix
21955 else
21956 wxPREFIX=$ac_default_prefix
21957 fi
21958
21959 cat >> confdefs.h <<EOF
21960 #define wxINSTALL_PREFIX "$wxPREFIX"
21961 EOF
21962
21963
21964 top_builddir=`pwd`
21965
21966
21967
21968
21969 if test "$wxUSE_MAC" = 1 ; then
21970 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21971 fi
21972 if test "$wxUSE_COCOA" = 1 ; then
21973 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
21974 fi
21975
21976
21977 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21978
21979 have_cos=0
21980 have_floor=0
21981 for ac_func in cos
21982 do
21983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21984 echo "configure:21985: checking for $ac_func" >&5
21985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21986 echo $ac_n "(cached) $ac_c" 1>&6
21987 else
21988 cat > conftest.$ac_ext <<EOF
21989 #line 21990 "configure"
21990 #include "confdefs.h"
21991 /* System header to define __stub macros and hopefully few prototypes,
21992 which can conflict with char $ac_func(); below. */
21993 #include <assert.h>
21994 /* Override any gcc2 internal prototype to avoid an error. */
21995 /* We use char because int might match the return type of a gcc2
21996 builtin and then its argument prototype would still apply. */
21997 char $ac_func();
21998
21999 int main() {
22000
22001 /* The GNU C library defines this for functions which it implements
22002 to always fail with ENOSYS. Some functions are actually named
22003 something starting with __ and the normal name is an alias. */
22004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22005 choke me
22006 #else
22007 $ac_func();
22008 #endif
22009
22010 ; return 0; }
22011 EOF
22012 if { (eval echo configure:22013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22013 rm -rf conftest*
22014 eval "ac_cv_func_$ac_func=yes"
22015 else
22016 echo "configure: failed program was:" >&5
22017 cat conftest.$ac_ext >&5
22018 rm -rf conftest*
22019 eval "ac_cv_func_$ac_func=no"
22020 fi
22021 rm -f conftest*
22022 fi
22023
22024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22025 echo "$ac_t""yes" 1>&6
22026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22027 cat >> confdefs.h <<EOF
22028 #define $ac_tr_func 1
22029 EOF
22030 have_cos=1
22031 else
22032 echo "$ac_t""no" 1>&6
22033 fi
22034 done
22035
22036 for ac_func in floor
22037 do
22038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22039 echo "configure:22040: checking for $ac_func" >&5
22040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22041 echo $ac_n "(cached) $ac_c" 1>&6
22042 else
22043 cat > conftest.$ac_ext <<EOF
22044 #line 22045 "configure"
22045 #include "confdefs.h"
22046 /* System header to define __stub macros and hopefully few prototypes,
22047 which can conflict with char $ac_func(); below. */
22048 #include <assert.h>
22049 /* Override any gcc2 internal prototype to avoid an error. */
22050 /* We use char because int might match the return type of a gcc2
22051 builtin and then its argument prototype would still apply. */
22052 char $ac_func();
22053
22054 int main() {
22055
22056 /* The GNU C library defines this for functions which it implements
22057 to always fail with ENOSYS. Some functions are actually named
22058 something starting with __ and the normal name is an alias. */
22059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22060 choke me
22061 #else
22062 $ac_func();
22063 #endif
22064
22065 ; return 0; }
22066 EOF
22067 if { (eval echo configure:22068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22068 rm -rf conftest*
22069 eval "ac_cv_func_$ac_func=yes"
22070 else
22071 echo "configure: failed program was:" >&5
22072 cat conftest.$ac_ext >&5
22073 rm -rf conftest*
22074 eval "ac_cv_func_$ac_func=no"
22075 fi
22076 rm -f conftest*
22077 fi
22078
22079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22080 echo "$ac_t""yes" 1>&6
22081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22082 cat >> confdefs.h <<EOF
22083 #define $ac_tr_func 1
22084 EOF
22085 have_floor=1
22086 else
22087 echo "$ac_t""no" 1>&6
22088 fi
22089 done
22090
22091 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22092 echo "configure:22093: checking if floating point functions link without -lm" >&5
22093 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22094 echo "$ac_t""yes" 1>&6
22095 else
22096 echo "$ac_t""no" 1>&6
22097 LIBS="$LIBS -lm"
22098 # use different functions to avoid configure caching
22099 have_sin=0
22100 have_ceil=0
22101 for ac_func in sin
22102 do
22103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22104 echo "configure:22105: checking for $ac_func" >&5
22105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22106 echo $ac_n "(cached) $ac_c" 1>&6
22107 else
22108 cat > conftest.$ac_ext <<EOF
22109 #line 22110 "configure"
22110 #include "confdefs.h"
22111 /* System header to define __stub macros and hopefully few prototypes,
22112 which can conflict with char $ac_func(); below. */
22113 #include <assert.h>
22114 /* Override any gcc2 internal prototype to avoid an error. */
22115 /* We use char because int might match the return type of a gcc2
22116 builtin and then its argument prototype would still apply. */
22117 char $ac_func();
22118
22119 int main() {
22120
22121 /* The GNU C library defines this for functions which it implements
22122 to always fail with ENOSYS. Some functions are actually named
22123 something starting with __ and the normal name is an alias. */
22124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22125 choke me
22126 #else
22127 $ac_func();
22128 #endif
22129
22130 ; return 0; }
22131 EOF
22132 if { (eval echo configure:22133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22133 rm -rf conftest*
22134 eval "ac_cv_func_$ac_func=yes"
22135 else
22136 echo "configure: failed program was:" >&5
22137 cat conftest.$ac_ext >&5
22138 rm -rf conftest*
22139 eval "ac_cv_func_$ac_func=no"
22140 fi
22141 rm -f conftest*
22142 fi
22143
22144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22145 echo "$ac_t""yes" 1>&6
22146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22147 cat >> confdefs.h <<EOF
22148 #define $ac_tr_func 1
22149 EOF
22150 have_sin=1
22151 else
22152 echo "$ac_t""no" 1>&6
22153 fi
22154 done
22155
22156 for ac_func in ceil
22157 do
22158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22159 echo "configure:22160: checking for $ac_func" >&5
22160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22161 echo $ac_n "(cached) $ac_c" 1>&6
22162 else
22163 cat > conftest.$ac_ext <<EOF
22164 #line 22165 "configure"
22165 #include "confdefs.h"
22166 /* System header to define __stub macros and hopefully few prototypes,
22167 which can conflict with char $ac_func(); below. */
22168 #include <assert.h>
22169 /* Override any gcc2 internal prototype to avoid an error. */
22170 /* We use char because int might match the return type of a gcc2
22171 builtin and then its argument prototype would still apply. */
22172 char $ac_func();
22173
22174 int main() {
22175
22176 /* The GNU C library defines this for functions which it implements
22177 to always fail with ENOSYS. Some functions are actually named
22178 something starting with __ and the normal name is an alias. */
22179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22180 choke me
22181 #else
22182 $ac_func();
22183 #endif
22184
22185 ; return 0; }
22186 EOF
22187 if { (eval echo configure:22188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22188 rm -rf conftest*
22189 eval "ac_cv_func_$ac_func=yes"
22190 else
22191 echo "configure: failed program was:" >&5
22192 cat conftest.$ac_ext >&5
22193 rm -rf conftest*
22194 eval "ac_cv_func_$ac_func=no"
22195 fi
22196 rm -f conftest*
22197 fi
22198
22199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22200 echo "$ac_t""yes" 1>&6
22201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22202 cat >> confdefs.h <<EOF
22203 #define $ac_tr_func 1
22204 EOF
22205 have_ceil=1
22206 else
22207 echo "$ac_t""no" 1>&6
22208 fi
22209 done
22210
22211 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22212 echo "configure:22213: checking if floating point functions link with -lm" >&5
22213 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22214 echo "$ac_t""yes" 1>&6
22215 else
22216 echo "$ac_t""no" 1>&6
22217 # not sure we should warn the user, crash, etc.
22218 fi
22219 fi
22220
22221 if test "$wxUSE_GUI" = "yes"; then
22222
22223 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22224
22225
22226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22227 drawing dynamic erase event exec font image \
22228 minimal propsize rotate shaped widgets"
22229
22230 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22231 else
22232 SAMPLES_SUBDIRS="console"
22233 fi
22234
22235
22236 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22237 -I\${top_srcdir}/include \
22238 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22239 $TOOLKIT_INCLUDE"
22240
22241 if test "$wxUSE_GTK" = 1; then
22242 WXCONFIG_INCLUDE=
22243 else
22244 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22245 fi
22246
22247 if test "$GXX" = yes ; then
22248 CXXWARNINGS="-Wall"
22249
22250 if test "$wxUSE_NO_DEPS" = "no" ; then
22251 CFLAGS="-MMD $CFLAGS"
22252 CXXFLAGS="-MMD $CXXFLAGS"
22253 fi
22254 fi
22255
22256 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22257
22258 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22259 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22260 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22261 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22262
22263 LDFLAGS="$LDFLAGS $PROFILE"
22264
22265 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22368 echo "configure:22369: checking whether ${MAKE-make} sets \${MAKE}" >&5
22369 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22370 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22371 echo $ac_n "(cached) $ac_c" 1>&6
22372 else
22373 cat > conftestmake <<\EOF
22374 all:
22375 @echo 'ac_maketemp="${MAKE}"'
22376 EOF
22377 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22378 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22379 if test -n "$ac_maketemp"; then
22380 eval ac_cv_prog_make_${ac_make}_set=yes
22381 else
22382 eval ac_cv_prog_make_${ac_make}_set=no
22383 fi
22384 rm -f conftestmake
22385 fi
22386 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22387 echo "$ac_t""yes" 1>&6
22388 SET_MAKE=
22389 else
22390 echo "$ac_t""no" 1>&6
22391 SET_MAKE="MAKE=${MAKE-make}"
22392 fi
22393
22394
22395 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22396 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22397 fi
22398
22399
22400
22401 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22402 wx_cv_if_gnu_make=$IF_GNU_MAKE
22403 wx_cv_path_ifs=$PATH_IFS
22404 wx_cv_program_ext=$PROGRAM_EXT
22405 wx_cv_target_library=$WX_TARGET_LIBRARY
22406 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22407 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22408 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22409 wx_cv_release=${WX_RELEASE}
22410 wx_cv_current=${WX_CURRENT}
22411 wx_cv_revision=${WX_REVISION}
22412 wx_cv_age=${WX_AGE}
22413 wx_cv_use_gui=${USE_GUI}
22414 wx_cv_use_resources=${wxUSE_RESOURCES}
22415 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22416 wx_cv_path_ifs wx_cv_program_ext \
22417 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22418 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22419 wx_cv_use_gui wx_cv_use_resources
22420
22421 subdirs="demos samples utils contrib"
22422
22423
22424 trap '' 1 2 15
22425 cat > confcache <<\EOF
22426 # This file is a shell script that caches the results of configure
22427 # tests run on this system so they can be shared between configure
22428 # scripts and configure runs. It is not useful on other systems.
22429 # If it contains results you don't want to keep, you may remove or edit it.
22430 #
22431 # By default, configure uses ./config.cache as the cache file,
22432 # creating it if it does not exist already. You can give configure
22433 # the --cache-file=FILE option to use a different cache file; that is
22434 # what configure does when it calls configure scripts in
22435 # subdirectories, so they share the cache.
22436 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22437 # config.status only pays attention to the cache file if you give it the
22438 # --recheck option to rerun configure.
22439 #
22440 EOF
22441 # The following way of writing the cache mishandles newlines in values,
22442 # but we know of no workaround that is simple, portable, and efficient.
22443 # So, don't put newlines in cache variables' values.
22444 # Ultrix sh set writes to stderr and can't be redirected directly,
22445 # and sets the high bit in the cache file unless we assign to the vars.
22446 (set) 2>&1 |
22447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22448 *ac_space=\ *)
22449 # `set' does not quote correctly, so add quotes (double-quote substitution
22450 # turns \\\\ into \\, and sed turns \\ into \).
22451 sed -n \
22452 -e "s/'/'\\\\''/g" \
22453 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22454 ;;
22455 *)
22456 # `set' quotes correctly as required by POSIX, so do not add quotes.
22457 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22458 ;;
22459 esac >> confcache
22460 if cmp -s $cache_file confcache; then
22461 :
22462 else
22463 if test -w $cache_file; then
22464 echo "updating cache $cache_file"
22465 cat confcache > $cache_file
22466 else
22467 echo "not updating unwritable cache $cache_file"
22468 fi
22469 fi
22470 rm -f confcache
22471
22472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22473
22474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22475 # Let make expand exec_prefix.
22476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22477
22478 # Any assignment to VPATH causes Sun make to only execute
22479 # the first set of double-colon rules, so remove it if not needed.
22480 # If there is a colon in the path, we need to keep it.
22481 if test "x$srcdir" = x.; then
22482 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22483 fi
22484
22485 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22486
22487 DEFS=-DHAVE_CONFIG_H
22488
22489 # Without the "./", some shells look in PATH for config.status.
22490 : ${CONFIG_STATUS=./config.status}
22491
22492 echo creating $CONFIG_STATUS
22493 rm -f $CONFIG_STATUS
22494 cat > $CONFIG_STATUS <<EOF
22495 #! /bin/sh
22496 # Generated automatically by configure.
22497 # Run this file to recreate the current configuration.
22498 # This directory was configured as follows,
22499 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22500 #
22501 # $0 $ac_configure_args
22502 #
22503 # Compiler output produced by configure, useful for debugging
22504 # configure, is in ./config.log if it exists.
22505
22506 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22507 for ac_option
22508 do
22509 case "\$ac_option" in
22510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22511 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22512 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22513 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22514 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22515 exit 0 ;;
22516 -help | --help | --hel | --he | --h)
22517 echo "\$ac_cs_usage"; exit 0 ;;
22518 *) echo "\$ac_cs_usage"; exit 1 ;;
22519 esac
22520 done
22521
22522 ac_given_srcdir=$srcdir
22523 ac_given_INSTALL="$INSTALL"
22524
22525 trap 'rm -fr `echo "
22526 wx-config
22527 version-script
22528 src/make.env
22529 src/makeprog.env
22530 src/makelib.env
22531 Makefile
22532 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22533 EOF
22534 cat >> $CONFIG_STATUS <<EOF
22535
22536 # Protect against being on the right side of a sed subst in config.status.
22537 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22538 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22539 $ac_vpsub
22540 $extrasub
22541 s%@SHELL@%$SHELL%g
22542 s%@CFLAGS@%$CFLAGS%g
22543 s%@CPPFLAGS@%$CPPFLAGS%g
22544 s%@CXXFLAGS@%$CXXFLAGS%g
22545 s%@FFLAGS@%$FFLAGS%g
22546 s%@DEFS@%$DEFS%g
22547 s%@LDFLAGS@%$LDFLAGS%g
22548 s%@LIBS@%$LIBS%g
22549 s%@exec_prefix@%$exec_prefix%g
22550 s%@prefix@%$prefix%g
22551 s%@program_transform_name@%$program_transform_name%g
22552 s%@bindir@%$bindir%g
22553 s%@sbindir@%$sbindir%g
22554 s%@libexecdir@%$libexecdir%g
22555 s%@datadir@%$datadir%g
22556 s%@sysconfdir@%$sysconfdir%g
22557 s%@sharedstatedir@%$sharedstatedir%g
22558 s%@localstatedir@%$localstatedir%g
22559 s%@libdir@%$libdir%g
22560 s%@includedir@%$includedir%g
22561 s%@oldincludedir@%$oldincludedir%g
22562 s%@infodir@%$infodir%g
22563 s%@mandir@%$mandir%g
22564 s%@host@%$host%g
22565 s%@host_alias@%$host_alias%g
22566 s%@host_cpu@%$host_cpu%g
22567 s%@host_vendor@%$host_vendor%g
22568 s%@host_os@%$host_os%g
22569 s%@target@%$target%g
22570 s%@target_alias@%$target_alias%g
22571 s%@target_cpu@%$target_cpu%g
22572 s%@target_vendor@%$target_vendor%g
22573 s%@target_os@%$target_os%g
22574 s%@build@%$build%g
22575 s%@build_alias@%$build_alias%g
22576 s%@build_cpu@%$build_cpu%g
22577 s%@build_vendor@%$build_vendor%g
22578 s%@build_os@%$build_os%g
22579 s%@CC@%$CC%g
22580 s%@CPP@%$CPP%g
22581 s%@CXX@%$CXX%g
22582 s%@RANLIB@%$RANLIB%g
22583 s%@AR@%$AR%g
22584 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22585 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22586 s%@INSTALL_DATA@%$INSTALL_DATA%g
22587 s%@STRIP@%$STRIP%g
22588 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22589 s%@YACC@%$YACC%g
22590 s%@LEX@%$LEX%g
22591 s%@LEXLIB@%$LEXLIB%g
22592 s%@LN_S@%$LN_S%g
22593 s%@CXXCPP@%$CXXCPP%g
22594 s%@PKG_CONFIG@%$PKG_CONFIG%g
22595 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22596 s%@GTK_LIBS@%$GTK_LIBS%g
22597 s%@GTK_CONFIG@%$GTK_CONFIG%g
22598 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22599 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22600 s%@X_CFLAGS@%$X_CFLAGS%g
22601 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22602 s%@X_LIBS@%$X_LIBS%g
22603 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22604 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22605 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22606 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22607 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22608 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22609 s%@RESCOMP@%$RESCOMP%g
22610 s%@DEREZ@%$DEREZ%g
22611 s%@SETFILE@%$SETFILE%g
22612 s%@LIBICONV@%$LIBICONV%g
22613 s%@LEX_STEM@%$LEX_STEM%g
22614 s%@PATH_IFS@%$PATH_IFS%g
22615 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22616 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22617 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22618 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22619 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22620 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22621 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22622 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22623 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22624 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22625 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22626 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22627 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22628 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22629 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22630 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22631 s%@WX_ALL@%$WX_ALL%g
22632 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22633 s%@SHARED_LD@%$SHARED_LD%g
22634 s%@PIC_FLAG@%$PIC_FLAG%g
22635 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22636 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22637 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22638 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22639 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22640 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22641 s%@STATIC_FLAG@%$STATIC_FLAG%g
22642 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22643 s%@USE_GUI@%$USE_GUI%g
22644 s%@AFMINSTALL@%$AFMINSTALL%g
22645 s%@WIN32INSTALL@%$WIN32INSTALL%g
22646 s%@TOOLKIT@%$TOOLKIT%g
22647 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22648 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22649 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22650 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22651 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22652 s%@top_builddir@%$top_builddir%g
22653 s%@cross_compiling@%$cross_compiling%g
22654 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22655 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22656 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22657 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22658 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22659 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22660 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22661 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22662 s%@ALL_HEADERS@%$ALL_HEADERS%g
22663 s%@ALL_SOURCES@%$ALL_SOURCES%g
22664 s%@GUIDIST@%$GUIDIST%g
22665 s%@PORT_FILES@%$PORT_FILES%g
22666 s%@DISTDIR@%$DISTDIR%g
22667 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22668 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22669 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22670 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22671 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22672 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22673 s%@EXTRADEFS@%$EXTRADEFS%g
22674 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22675 s%@RESFLAGS@%$RESFLAGS%g
22676 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22677 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22678 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22679 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22680 s%@LIBWXMACRES@%$LIBWXMACRES%g
22681 s%@MACRESCOMP@%$MACRESCOMP%g
22682 s%@MACSETFILE@%$MACSETFILE%g
22683 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22684 s%@GCC@%$GCC%g
22685 s%@DLLTOOL@%$DLLTOOL%g
22686 s%@AS@%$AS%g
22687 s%@NM@%$NM%g
22688 s%@LD@%$LD%g
22689 s%@MAKEINFO@%$MAKEINFO%g
22690 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22691 s%@INSTALL_DIR@%$INSTALL_DIR%g
22692 s%@SET_MAKE@%$SET_MAKE%g
22693 s%@subdirs@%$subdirs%g
22694
22695 CEOF
22696 EOF
22697
22698 cat >> $CONFIG_STATUS <<\EOF
22699
22700 # Split the substitutions into bite-sized pieces for seds with
22701 # small command number limits, like on Digital OSF/1 and HP-UX.
22702 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22703 ac_file=1 # Number of current file.
22704 ac_beg=1 # First line for current file.
22705 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22706 ac_more_lines=:
22707 ac_sed_cmds=""
22708 while $ac_more_lines; do
22709 if test $ac_beg -gt 1; then
22710 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22711 else
22712 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22713 fi
22714 if test ! -s conftest.s$ac_file; then
22715 ac_more_lines=false
22716 rm -f conftest.s$ac_file
22717 else
22718 if test -z "$ac_sed_cmds"; then
22719 ac_sed_cmds="sed -f conftest.s$ac_file"
22720 else
22721 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22722 fi
22723 ac_file=`expr $ac_file + 1`
22724 ac_beg=$ac_end
22725 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22726 fi
22727 done
22728 if test -z "$ac_sed_cmds"; then
22729 ac_sed_cmds=cat
22730 fi
22731 EOF
22732
22733 cat >> $CONFIG_STATUS <<EOF
22734
22735 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22736 version-script
22737 src/make.env
22738 src/makeprog.env
22739 src/makelib.env
22740 Makefile
22741 "}
22742 EOF
22743 cat >> $CONFIG_STATUS <<\EOF
22744 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22746 case "$ac_file" in
22747 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22748 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22749 *) ac_file_in="${ac_file}.in" ;;
22750 esac
22751
22752 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22753
22754 # Remove last slash and all that follows it. Not all systems have dirname.
22755 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22756 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22757 # The file is in a subdirectory.
22758 test ! -d "$ac_dir" && mkdir "$ac_dir"
22759 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22760 # A "../" for each directory in $ac_dir_suffix.
22761 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22762 else
22763 ac_dir_suffix= ac_dots=
22764 fi
22765
22766 case "$ac_given_srcdir" in
22767 .) srcdir=.
22768 if test -z "$ac_dots"; then top_srcdir=.
22769 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22770 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22771 *) # Relative path.
22772 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22773 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22774 esac
22775
22776 case "$ac_given_INSTALL" in
22777 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22778 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22779 esac
22780
22781 echo creating "$ac_file"
22782 rm -f "$ac_file"
22783 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22784 case "$ac_file" in
22785 *Makefile*) ac_comsub="1i\\
22786 # $configure_input" ;;
22787 *) ac_comsub= ;;
22788 esac
22789
22790 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22791 sed -e "$ac_comsub
22792 s%@configure_input@%$configure_input%g
22793 s%@srcdir@%$srcdir%g
22794 s%@top_srcdir@%$top_srcdir%g
22795 s%@INSTALL@%$INSTALL%g
22796 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22797 fi; done
22798 rm -f conftest.s*
22799
22800 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22801 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22802 #
22803 # ac_d sets the value in "#define NAME VALUE" lines.
22804 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22805 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22806 ac_dC='\3'
22807 ac_dD='%g'
22808 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22809 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22810 ac_uB='\([ ]\)%\1#\2define\3'
22811 ac_uC=' '
22812 ac_uD='\4%g'
22813 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22814 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22815 ac_eB='$%\1#\2define\3'
22816 ac_eC=' '
22817 ac_eD='%g'
22818
22819 if test "${CONFIG_HEADERS+set}" != set; then
22820 EOF
22821 cat >> $CONFIG_STATUS <<EOF
22822 CONFIG_HEADERS="setup.h:setup.h.in"
22823 EOF
22824 cat >> $CONFIG_STATUS <<\EOF
22825 fi
22826 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22828 case "$ac_file" in
22829 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22830 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22831 *) ac_file_in="${ac_file}.in" ;;
22832 esac
22833
22834 echo creating $ac_file
22835
22836 rm -f conftest.frag conftest.in conftest.out
22837 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22838 cat $ac_file_inputs > conftest.in
22839
22840 EOF
22841
22842 # Transform confdefs.h into a sed script conftest.vals that substitutes
22843 # the proper values into config.h.in to produce config.h. And first:
22844 # Protect against being on the right side of a sed subst in config.status.
22845 # Protect against being in an unquoted here document in config.status.
22846 rm -f conftest.vals
22847 cat > conftest.hdr <<\EOF
22848 s/[\\&%]/\\&/g
22849 s%[\\$`]%\\&%g
22850 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22851 s%ac_d%ac_u%gp
22852 s%ac_u%ac_e%gp
22853 EOF
22854 sed -n -f conftest.hdr confdefs.h > conftest.vals
22855 rm -f conftest.hdr
22856
22857 # This sed command replaces #undef with comments. This is necessary, for
22858 # example, in the case of _POSIX_SOURCE, which is predefined and required
22859 # on some systems where configure will not decide to define it.
22860 cat >> conftest.vals <<\EOF
22861 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22862 EOF
22863
22864 # Break up conftest.vals because some shells have a limit on
22865 # the size of here documents, and old seds have small limits too.
22866
22867 rm -f conftest.tail
22868 while :
22869 do
22870 ac_lines=`grep -c . conftest.vals`
22871 # grep -c gives empty output for an empty file on some AIX systems.
22872 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22873 # Write a limited-size here document to conftest.frag.
22874 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22875 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22876 echo 'CEOF
22877 sed -f conftest.frag conftest.in > conftest.out
22878 rm -f conftest.in
22879 mv conftest.out conftest.in
22880 ' >> $CONFIG_STATUS
22881 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22882 rm -f conftest.vals
22883 mv conftest.tail conftest.vals
22884 done
22885 rm -f conftest.vals
22886
22887 cat >> $CONFIG_STATUS <<\EOF
22888 rm -f conftest.frag conftest.h
22889 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22890 cat conftest.in >> conftest.h
22891 rm -f conftest.in
22892 if cmp -s $ac_file conftest.h 2>/dev/null; then
22893 echo "$ac_file is unchanged"
22894 rm -f conftest.h
22895 else
22896 # Remove last slash and all that follows it. Not all systems have dirname.
22897 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22898 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22899 # The file is in a subdirectory.
22900 test ! -d "$ac_dir" && mkdir "$ac_dir"
22901 fi
22902 rm -f $ac_file
22903 mv conftest.h $ac_file
22904 fi
22905 fi; done
22906
22907 EOF
22908 cat >> $CONFIG_STATUS <<EOF
22909
22910 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22911 LN_S="${LN_S}"
22912
22913
22914 EOF
22915 cat >> $CONFIG_STATUS <<\EOF
22916
22917 if test ! -h wx-config; then
22918 chmod +x wx-config
22919 mv wx-config wx${TOOLCHAIN_NAME}-config
22920 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22921 fi
22922
22923 if test ! -d lib; then
22924 mkdir lib
22925 fi
22926 if test ! -d lib/wx; then
22927 mkdir lib/wx
22928 fi
22929 if test ! -d lib/wx/include; then
22930 mkdir lib/wx/include
22931 fi
22932 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22933 mkdir lib/wx/include/${TOOLCHAIN_NAME}
22934 fi
22935 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22936 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22937 fi
22938 if test -f setup.h; then
22939 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22940 fi
22941
22942 exit 0
22943 EOF
22944 chmod +x $CONFIG_STATUS
22945 rm -fr confdefs* $ac_clean_files
22946 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22947
22948 if test "$no_recursion" != yes; then
22949
22950 # Remove --cache-file and --srcdir arguments so they do not pile up.
22951 ac_sub_configure_args=
22952 ac_prev=
22953 for ac_arg in $ac_configure_args; do
22954 if test -n "$ac_prev"; then
22955 ac_prev=
22956 continue
22957 fi
22958 case "$ac_arg" in
22959 -cache-file | --cache-file | --cache-fil | --cache-fi \
22960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22961 ac_prev=cache_file ;;
22962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22964 ;;
22965 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22966 ac_prev=srcdir ;;
22967 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22968 ;;
22969 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22970 esac
22971 done
22972
22973 for ac_config_dir in demos samples utils contrib; do
22974
22975 # Do not complain, so a configure script can configure whichever
22976 # parts of a large source tree are present.
22977 if test ! -d $srcdir/$ac_config_dir; then
22978 continue
22979 fi
22980
22981 echo configuring in $ac_config_dir
22982
22983 case "$srcdir" in
22984 .) ;;
22985 *)
22986 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22987 else
22988 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22989 fi
22990 ;;
22991 esac
22992
22993 ac_popdir=`pwd`
22994 cd $ac_config_dir
22995
22996 # A "../" for each directory in /$ac_config_dir.
22997 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22998
22999 case "$srcdir" in
23000 .) # No --srcdir option. We are building in place.
23001 ac_sub_srcdir=$srcdir ;;
23002 /*) # Absolute path.
23003 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23004 *) # Relative path.
23005 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23006 esac
23007
23008 # Check for guested configure; otherwise get Cygnus style configure.
23009 if test -f $ac_sub_srcdir/configure; then
23010 ac_sub_configure=$ac_sub_srcdir/configure
23011 elif test -f $ac_sub_srcdir/configure.in; then
23012 ac_sub_configure=$ac_configure
23013 else
23014 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23015 ac_sub_configure=
23016 fi
23017
23018 # The recursion is here.
23019 if test -n "$ac_sub_configure"; then
23020
23021 # Make the cache file name correct relative to the subdirectory.
23022 case "$cache_file" in
23023 /*) ac_sub_cache_file=$cache_file ;;
23024 *) # Relative path.
23025 ac_sub_cache_file="$ac_dots$cache_file" ;;
23026 esac
23027 case "$ac_given_INSTALL" in
23028 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23029 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23030 esac
23031
23032 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23033 # The eval makes quoting arguments work.
23034 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23035 then :
23036 else
23037 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23038 fi
23039 fi
23040
23041 cd $ac_popdir
23042 done
23043 fi
23044
23045
23046 echo
23047 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23048 echo ""
23049 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23050
23051 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23052 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23053 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23054
23055 echo " What level of wxWindows compatibility should be enabled?"
23056 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23057 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23058 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23059
23060 echo " Which libraries should wxWindows use?"
23061 echo " jpeg ${wxUSE_LIBJPEG-none}"
23062 echo " png ${wxUSE_LIBPNG-none}"
23063 echo " regex ${wxUSE_REGEX}"
23064 echo " tiff ${wxUSE_LIBTIFF-none}"
23065 echo " zlib ${wxUSE_ZLIB}"
23066
23067 echo ""
23068