]> git.saurik.com Git - wxWidgets.git/blob - configure
fix reference to obsolete b32univ file
[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-timedate use obsolete wxDate/wxTime classes"
199 ac_help="$ac_help
200 --enable-stopwatch use wxStopWatch class"
201 ac_help="$ac_help
202 --enable-dialupman use dialup network classes"
203 ac_help="$ac_help
204 --enable-apple_ieee use the Apple IEEE codec"
205 ac_help="$ac_help
206 --enable-timer use wxTimer class"
207 ac_help="$ac_help
208 --enable-wave use wxWave class"
209 ac_help="$ac_help
210 --enable-fraction use wxFraction class"
211 ac_help="$ac_help
212 --enable-dynlib use wxLibrary class for DLL loading"
213 ac_help="$ac_help
214 --enable-dynamicloader use (new) wxDynamicLibrary class"
215 ac_help="$ac_help
216 --enable-longlong use wxLongLong class"
217 ac_help="$ac_help
218 --enable-geometry use geometry class"
219 ac_help="$ac_help
220 --enable-log use logging system"
221 ac_help="$ac_help
222 --enable-streams use wxStream etc classes"
223 ac_help="$ac_help
224 --enable-file use wxFile classes"
225 ac_help="$ac_help
226 --enable-ffile use wxFFile classes"
227 ac_help="$ac_help
228 --enable-textbuf use wxTextBuffer class"
229 ac_help="$ac_help
230 --enable-textfile use wxTextFile class"
231 ac_help="$ac_help
232 --enable-fontmap use font encodings conversion classes"
233 ac_help="$ac_help
234 --enable-unicode compile wxString with Unicode support"
235 ac_help="$ac_help
236 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
237 ac_help="$ac_help
238 --enable-wxprintfv use wxWindows implementation of vprintf()"
239 ac_help="$ac_help
240 --enable-std_iostreams use standard C++ stream classes"
241 ac_help="$ac_help
242 --enable-filesystem use virtual file systems classes"
243 ac_help="$ac_help
244 --enable-fs_inet use virtual HTTP/FTP filesystems"
245 ac_help="$ac_help
246 --enable-fs_zip use virtual ZIP filesystems"
247 ac_help="$ac_help
248 --enable-zipstream use wxZipInputStream"
249 ac_help="$ac_help
250 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
251 ac_help="$ac_help
252 --enable-snglinst use wxSingleInstanceChecker class"
253 ac_help="$ac_help
254 --enable-mimetype use wxMimeTypesManager"
255 ac_help="$ac_help
256 --enable-sysoptions use wxSystemOptions"
257 ac_help="$ac_help
258 --enable-url use wxURL class"
259 ac_help="$ac_help
260 --enable-protocol use wxProtocol class"
261 ac_help="$ac_help
262 --enable-protocol-http HTTP support in wxProtocol"
263 ac_help="$ac_help
264 --enable-protocol-ftp FTP support in wxProtocol"
265 ac_help="$ac_help
266 --enable-protocol-file FILE support in wxProtocol"
267 ac_help="$ac_help
268 --enable-threads use threads"
269 ac_help="$ac_help
270 --enable-docview use document view architecture"
271 ac_help="$ac_help
272 --enable-help use help subsystem"
273 ac_help="$ac_help
274 --enable-mshtmlhelp use MS HTML Help (win32)"
275 ac_help="$ac_help
276 --enable-html use wxHTML sub-library"
277 ac_help="$ac_help
278 --enable-htmlhelp use wxHTML-based help"
279 ac_help="$ac_help
280 --enable-constraints use layout-constraints system"
281 ac_help="$ac_help
282 --enable-printarch use printing architecture"
283 ac_help="$ac_help
284 --enable-mdi use multiple document interface architecture"
285 ac_help="$ac_help
286 --enable-loggui use standard GUI logger"
287 ac_help="$ac_help
288 --enable-logwin use wxLogWindow"
289 ac_help="$ac_help
290 --enable-logdialog use wxLogDialog"
291 ac_help="$ac_help
292 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
293 ac_help="$ac_help
294 --enable-prologio use Prolog IO library"
295 ac_help="$ac_help
296 --enable-resources use wxWindows resources"
297 ac_help="$ac_help
298 --enable-xresources use X resources for save (default for gtk+)"
299 ac_help="$ac_help
300 --enable-clipboard use wxClipboard class"
301 ac_help="$ac_help
302 --enable-dnd use Drag'n'Drop classes"
303 ac_help="$ac_help
304 --enable-metafile use win32 metafiles"
305 ac_help="$ac_help
306 --enable-treelayout use wxTreeLayout class"
307 ac_help="$ac_help
308 --enable-controls use all usual controls"
309 ac_help="$ac_help
310 --enable-accel use accelerators"
311 ac_help="$ac_help
312 --enable-button use wxButton class"
313 ac_help="$ac_help
314 --enable-bmpbutton use wxBitmapButton class"
315 ac_help="$ac_help
316 --enable-calendar use wxCalendarCtrl class"
317 ac_help="$ac_help
318 --enable-caret use wxCaret class"
319 ac_help="$ac_help
320 --enable-checkbox use wxCheckBox class"
321 ac_help="$ac_help
322 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
323 ac_help="$ac_help
324 --enable-choice use wxChoice class"
325 ac_help="$ac_help
326 --enable-combobox use wxComboBox class"
327 ac_help="$ac_help
328 --enable-display use wxDisplay class"
329 ac_help="$ac_help
330 --enable-gauge use wxGauge class"
331 ac_help="$ac_help
332 --enable-grid use wxGrid class"
333 ac_help="$ac_help
334 --enable-newgrid use new wxGrid class"
335 ac_help="$ac_help
336 --enable-imaglist use wxImageList class"
337 ac_help="$ac_help
338 --enable-listbox use wxListBox class"
339 ac_help="$ac_help
340 --enable-listctrl use wxListCtrl class"
341 ac_help="$ac_help
342 --enable-notebook use wxNotebook class"
343 ac_help="$ac_help
344 --enable-propsheet use wxPropertySheet class"
345 ac_help="$ac_help
346 --enable-radiobox use wxRadioBox class"
347 ac_help="$ac_help
348 --enable-radiobtn use wxRadioButton class"
349 ac_help="$ac_help
350 --enable-sash use wxSashWindow class"
351 ac_help="$ac_help
352 --enable-scrollbar use wxScrollBar class and scrollable windows"
353 ac_help="$ac_help
354 --enable-slider use wxSlider class"
355 ac_help="$ac_help
356 --enable-spinbtn use wxSpinButton class"
357 ac_help="$ac_help
358 --enable-spinctrl use wxSpinCtrl class"
359 ac_help="$ac_help
360 --enable-splitter use wxSplitterWindow class"
361 ac_help="$ac_help
362 --enable-statbmp use wxStaticBitmap class"
363 ac_help="$ac_help
364 --enable-statbox use wxStaticBox class"
365 ac_help="$ac_help
366 --enable-statline use wxStaticLine class"
367 ac_help="$ac_help
368 --enable-stattext use wxStaticText class"
369 ac_help="$ac_help
370 --enable-statusbar use wxStatusBar class"
371 ac_help="$ac_help
372 --enable-tabdialog use wxTabControl class"
373 ac_help="$ac_help
374 --enable-textctrl use wxTextCtrl class"
375 ac_help="$ac_help
376 --enable-togglebtn use wxToggleButton class"
377 ac_help="$ac_help
378 --enable-toolbar use wxToolBar class"
379 ac_help="$ac_help
380 --enable-tbarnative use native wxToolBar class"
381 ac_help="$ac_help
382 --enable-tbarsmpl use wxToolBarSimple class"
383 ac_help="$ac_help
384 --enable-treectrl use wxTreeCtrl class"
385 ac_help="$ac_help
386 --enable-tipwindow use wxTipWindow class"
387 ac_help="$ac_help
388 --enable-popupwin use wxPopUpWindow class"
389 ac_help="$ac_help
390 --enable-commondlg use all common dialogs"
391 ac_help="$ac_help
392 --enable-choicedlg use wxChoiceDialog"
393 ac_help="$ac_help
394 --enable-coldlg use wxColourDialog"
395 ac_help="$ac_help
396 --enable-filedlg use wxFileDialog"
397 ac_help="$ac_help
398 --enable-finddlg use wxFindReplaceDialog"
399 ac_help="$ac_help
400 --enable-fontdlg use wxFontDialog"
401 ac_help="$ac_help
402 --enable-dirdlg use wxDirDialog"
403 ac_help="$ac_help
404 --enable-msgdlg use wxMessageDialog"
405 ac_help="$ac_help
406 --enable-numberdlg use wxNumberEntryDialog"
407 ac_help="$ac_help
408 --enable-splash use wxSplashScreen"
409 ac_help="$ac_help
410 --enable-textdlg use wxTextDialog"
411 ac_help="$ac_help
412 --enable-tipdlg use startup tips"
413 ac_help="$ac_help
414 --enable-progressdlg use wxProgressDialog"
415 ac_help="$ac_help
416 --enable-wizarddlg use wxWizard"
417 ac_help="$ac_help
418 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
419 ac_help="$ac_help
420 --enable-miniframe use wxMiniFrame class"
421 ac_help="$ac_help
422 --enable-tooltips use wxToolTip class"
423 ac_help="$ac_help
424 --enable-splines use spline drawing code"
425 ac_help="$ac_help
426 --enable-validators use wxValidator and derived classes"
427 ac_help="$ac_help
428 --enable-busyinfo use wxBusyInfo"
429 ac_help="$ac_help
430 --enable-joystick use wxJoystick (Linux only)"
431 ac_help="$ac_help
432 --enable-metafiles use wxMetaFile (Windows only)"
433 ac_help="$ac_help
434 --enable-dragimage use wxDragImage"
435 ac_help="$ac_help
436 --enable-palette use wxPalette class"
437 ac_help="$ac_help
438 --enable-image use wxImage class"
439 ac_help="$ac_help
440 --enable-gif use gif images (GIF file format)"
441 ac_help="$ac_help
442 --enable-pcx use pcx images (PCX file format)"
443 ac_help="$ac_help
444 --enable-iff use iff images (IFF file format)"
445 ac_help="$ac_help
446 --enable-pnm use pnm images (PNM file format)"
447 ac_help="$ac_help
448 --enable-xpm use xpm images (XPM file format)"
449 ac_help="$ac_help
450 --enable-icocur use Windows ICO and CUR formats"
451 ac_help="$ac_help
452 --disable-largefile omit support for large files"
453 ac_help="$ac_help
454 --disable-gtktest do not try to compile and run a test GTK+ program"
455 ac_help="$ac_help
456 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
457 ac_help="$ac_help
458 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
459 ac_help="$ac_help
460 --disable-gtktest Do not try to compile and run a test GTK program"
461 ac_help="$ac_help
462 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
463 ac_help="$ac_help
464 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
465 ac_help="$ac_help
466 --disable-gtktest Do not try to compile and run a test GTK program"
467 ac_help="$ac_help
468 --with-x use the X Window System"
469 ac_help="$ac_help
470 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
471
472 # Initialize some variables set by options.
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 build=NONE
476 cache_file=./config.cache
477 exec_prefix=NONE
478 host=NONE
479 no_create=
480 nonopt=NONE
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 target=NONE
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 # Initialize some other variables.
507 subdirs=
508 MFLAGS= MAKEFLAGS=
509 SHELL=${CONFIG_SHELL-/bin/sh}
510 # Maximum number of lines to put in a shell here document.
511 ac_max_here_lines=12
512
513 ac_prev=
514 for ac_option
515 do
516
517 # If the previous option needs an argument, assign it.
518 if test -n "$ac_prev"; then
519 eval "$ac_prev=\$ac_option"
520 ac_prev=
521 continue
522 fi
523
524 case "$ac_option" in
525 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
526 *) ac_optarg= ;;
527 esac
528
529 # Accept the important Cygnus configure options, so we can diagnose typos.
530
531 case "$ac_option" in
532
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
534 ac_prev=bindir ;;
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536 bindir="$ac_optarg" ;;
537
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build="$ac_optarg" ;;
542
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file="$ac_optarg" ;;
549
550 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551 ac_prev=datadir ;;
552 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553 | --da=*)
554 datadir="$ac_optarg" ;;
555
556 -disable-* | --disable-*)
557 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
558 # Reject names that are not valid shell variable names.
559 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
560 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
561 fi
562 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
563 eval "enable_${ac_feature}=no" ;;
564
565 -enable-* | --enable-*)
566 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
567 # Reject names that are not valid shell variable names.
568 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
569 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
570 fi
571 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
572 case "$ac_option" in
573 *=*) ;;
574 *) ac_optarg=yes ;;
575 esac
576 eval "enable_${ac_feature}='$ac_optarg'" ;;
577
578 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580 | --exec | --exe | --ex)
581 ac_prev=exec_prefix ;;
582 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584 | --exec=* | --exe=* | --ex=*)
585 exec_prefix="$ac_optarg" ;;
586
587 -gas | --gas | --ga | --g)
588 # Obsolete; use --with-gas.
589 with_gas=yes ;;
590
591 -help | --help | --hel | --he)
592 # Omit some internal or obsolete options to make the list less imposing.
593 # This message is too long to be a string in the A/UX 3.1 sh.
594 cat << EOF
595 Usage: configure [options] [host]
596 Options: [defaults in brackets after descriptions]
597 Configuration:
598 --cache-file=FILE cache test results in FILE
599 --help print this message
600 --no-create do not create output files
601 --quiet, --silent do not print \`checking...' messages
602 --version print the version of autoconf that created configure
603 Directory and file names:
604 --prefix=PREFIX install architecture-independent files in PREFIX
605 [$ac_default_prefix]
606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
607 [same as prefix]
608 --bindir=DIR user executables in DIR [EPREFIX/bin]
609 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
610 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
611 --datadir=DIR read-only architecture-independent data in DIR
612 [PREFIX/share]
613 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
614 --sharedstatedir=DIR modifiable architecture-independent data in DIR
615 [PREFIX/com]
616 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
617 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
618 --includedir=DIR C header files in DIR [PREFIX/include]
619 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
620 --infodir=DIR info documentation in DIR [PREFIX/info]
621 --mandir=DIR man documentation in DIR [PREFIX/man]
622 --srcdir=DIR find the sources in DIR [configure dir or ..]
623 --program-prefix=PREFIX prepend PREFIX to installed program names
624 --program-suffix=SUFFIX append SUFFIX to installed program names
625 --program-transform-name=PROGRAM
626 run sed PROGRAM on installed program names
627 EOF
628 cat << EOF
629 Host type:
630 --build=BUILD configure for building on BUILD [BUILD=HOST]
631 --host=HOST configure for HOST [guessed]
632 --target=TARGET configure for TARGET [TARGET=HOST]
633 Features and packages:
634 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
635 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
638 --x-includes=DIR X include files are in DIR
639 --x-libraries=DIR X library files are in DIR
640 EOF
641 if test -n "$ac_help"; then
642 echo "--enable and --with options recognized:$ac_help"
643 fi
644 exit 0 ;;
645
646 -host | --host | --hos | --ho)
647 ac_prev=host ;;
648 -host=* | --host=* | --hos=* | --ho=*)
649 host="$ac_optarg" ;;
650
651 -includedir | --includedir | --includedi | --included | --include \
652 | --includ | --inclu | --incl | --inc)
653 ac_prev=includedir ;;
654 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
655 | --includ=* | --inclu=* | --incl=* | --inc=*)
656 includedir="$ac_optarg" ;;
657
658 -infodir | --infodir | --infodi | --infod | --info | --inf)
659 ac_prev=infodir ;;
660 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
661 infodir="$ac_optarg" ;;
662
663 -libdir | --libdir | --libdi | --libd)
664 ac_prev=libdir ;;
665 -libdir=* | --libdir=* | --libdi=* | --libd=*)
666 libdir="$ac_optarg" ;;
667
668 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
669 | --libexe | --libex | --libe)
670 ac_prev=libexecdir ;;
671 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
672 | --libexe=* | --libex=* | --libe=*)
673 libexecdir="$ac_optarg" ;;
674
675 -localstatedir | --localstatedir | --localstatedi | --localstated \
676 | --localstate | --localstat | --localsta | --localst \
677 | --locals | --local | --loca | --loc | --lo)
678 ac_prev=localstatedir ;;
679 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
680 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
681 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
682 localstatedir="$ac_optarg" ;;
683
684 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
685 ac_prev=mandir ;;
686 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
687 mandir="$ac_optarg" ;;
688
689 -nfp | --nfp | --nf)
690 # Obsolete; use --without-fp.
691 with_fp=no ;;
692
693 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
694 | --no-cr | --no-c)
695 no_create=yes ;;
696
697 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
698 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
699 no_recursion=yes ;;
700
701 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
702 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
703 | --oldin | --oldi | --old | --ol | --o)
704 ac_prev=oldincludedir ;;
705 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
706 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
707 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
708 oldincludedir="$ac_optarg" ;;
709
710 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
711 ac_prev=prefix ;;
712 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
713 prefix="$ac_optarg" ;;
714
715 -program-prefix | --program-prefix | --program-prefi | --program-pref \
716 | --program-pre | --program-pr | --program-p)
717 ac_prev=program_prefix ;;
718 -program-prefix=* | --program-prefix=* | --program-prefi=* \
719 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
720 program_prefix="$ac_optarg" ;;
721
722 -program-suffix | --program-suffix | --program-suffi | --program-suff \
723 | --program-suf | --program-su | --program-s)
724 ac_prev=program_suffix ;;
725 -program-suffix=* | --program-suffix=* | --program-suffi=* \
726 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
727 program_suffix="$ac_optarg" ;;
728
729 -program-transform-name | --program-transform-name \
730 | --program-transform-nam | --program-transform-na \
731 | --program-transform-n | --program-transform- \
732 | --program-transform | --program-transfor \
733 | --program-transfo | --program-transf \
734 | --program-trans | --program-tran \
735 | --progr-tra | --program-tr | --program-t)
736 ac_prev=program_transform_name ;;
737 -program-transform-name=* | --program-transform-name=* \
738 | --program-transform-nam=* | --program-transform-na=* \
739 | --program-transform-n=* | --program-transform-=* \
740 | --program-transform=* | --program-transfor=* \
741 | --program-transfo=* | --program-transf=* \
742 | --program-trans=* | --program-tran=* \
743 | --progr-tra=* | --program-tr=* | --program-t=*)
744 program_transform_name="$ac_optarg" ;;
745
746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
747 | -silent | --silent | --silen | --sile | --sil)
748 silent=yes ;;
749
750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
751 ac_prev=sbindir ;;
752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
753 | --sbi=* | --sb=*)
754 sbindir="$ac_optarg" ;;
755
756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
758 | --sharedst | --shareds | --shared | --share | --shar \
759 | --sha | --sh)
760 ac_prev=sharedstatedir ;;
761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
764 | --sha=* | --sh=*)
765 sharedstatedir="$ac_optarg" ;;
766
767 -site | --site | --sit)
768 ac_prev=site ;;
769 -site=* | --site=* | --sit=*)
770 site="$ac_optarg" ;;
771
772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
773 ac_prev=srcdir ;;
774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
775 srcdir="$ac_optarg" ;;
776
777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
778 | --syscon | --sysco | --sysc | --sys | --sy)
779 ac_prev=sysconfdir ;;
780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
782 sysconfdir="$ac_optarg" ;;
783
784 -target | --target | --targe | --targ | --tar | --ta | --t)
785 ac_prev=target ;;
786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
787 target="$ac_optarg" ;;
788
789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
790 verbose=yes ;;
791
792 -version | --version | --versio | --versi | --vers)
793 echo "configure generated by autoconf version 2.13"
794 exit 0 ;;
795
796 -with-* | --with-*)
797 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
798 # Reject names that are not valid shell variable names.
799 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
800 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
801 fi
802 ac_package=`echo $ac_package| sed 's/-/_/g'`
803 case "$ac_option" in
804 *=*) ;;
805 *) ac_optarg=yes ;;
806 esac
807 eval "with_${ac_package}='$ac_optarg'" ;;
808
809 -without-* | --without-*)
810 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
811 # Reject names that are not valid shell variable names.
812 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
813 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
814 fi
815 ac_package=`echo $ac_package| sed 's/-/_/g'`
816 eval "with_${ac_package}=no" ;;
817
818 --x)
819 # Obsolete; use --with-x.
820 with_x=yes ;;
821
822 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
823 | --x-incl | --x-inc | --x-in | --x-i)
824 ac_prev=x_includes ;;
825 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
826 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
827 x_includes="$ac_optarg" ;;
828
829 -x-libraries | --x-libraries | --x-librarie | --x-librari \
830 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
831 ac_prev=x_libraries ;;
832 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
833 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
834 x_libraries="$ac_optarg" ;;
835
836 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
837 ;;
838
839 *)
840 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
841 echo "configure: warning: $ac_option: invalid host type" 1>&2
842 fi
843 if test "x$nonopt" != xNONE; then
844 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
845 fi
846 nonopt="$ac_option"
847 ;;
848
849 esac
850 done
851
852 if test -n "$ac_prev"; then
853 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
854 fi
855
856 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
857
858 # File descriptor usage:
859 # 0 standard input
860 # 1 file creation
861 # 2 errors and warnings
862 # 3 some systems may open it to /dev/tty
863 # 4 used on the Kubota Titan
864 # 6 checking for... messages and results
865 # 5 compiler messages saved in config.log
866 if test "$silent" = yes; then
867 exec 6>/dev/null
868 else
869 exec 6>&1
870 fi
871 exec 5>./config.log
872
873 echo "\
874 This file contains any messages produced by compilers while
875 running configure, to aid debugging if configure makes a mistake.
876 " 1>&5
877
878 # Strip out --no-create and --no-recursion so they do not pile up.
879 # Also quote any args containing shell metacharacters.
880 ac_configure_args=
881 for ac_arg
882 do
883 case "$ac_arg" in
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c) ;;
886 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
887 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
888 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
889 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
890 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
891 esac
892 done
893
894 # NLS nuisances.
895 # Only set these to C if already set. These must not be set unconditionally
896 # because not all systems understand e.g. LANG=C (notably SCO).
897 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
898 # Non-C LC_CTYPE values break the ctype check.
899 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
900 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
901 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
902 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
903
904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
905 rm -rf conftest* confdefs.h
906 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
907 echo > confdefs.h
908
909 # A filename unique to this package, relative to the directory that
910 # configure is in, which we can look for to find out if srcdir is correct.
911 ac_unique_file=wx-config.in
912
913 # Find the source files, if location was not specified.
914 if test -z "$srcdir"; then
915 ac_srcdir_defaulted=yes
916 # Try the directory containing this script, then its parent.
917 ac_prog=$0
918 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
919 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
920 srcdir=$ac_confdir
921 if test ! -r $srcdir/$ac_unique_file; then
922 srcdir=..
923 fi
924 else
925 ac_srcdir_defaulted=no
926 fi
927 if test ! -r $srcdir/$ac_unique_file; then
928 if test "$ac_srcdir_defaulted" = yes; then
929 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
930 else
931 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
932 fi
933 fi
934 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
935
936 # Prefer explicitly selected file to automatically selected ones.
937 if test -z "$CONFIG_SITE"; then
938 if test "x$prefix" != xNONE; then
939 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
940 else
941 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
942 fi
943 fi
944 for ac_site_file in $CONFIG_SITE; do
945 if test -r "$ac_site_file"; then
946 echo "loading site script $ac_site_file"
947 . "$ac_site_file"
948 fi
949 done
950
951 if test -r "$cache_file"; then
952 echo "loading cache $cache_file"
953 . $cache_file
954 else
955 echo "creating cache $cache_file"
956 > $cache_file
957 fi
958
959 ac_ext=c
960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961 ac_cpp='$CPP $CPPFLAGS'
962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
964 cross_compiling=$ac_cv_prog_cc_cross
965
966 ac_exeext=
967 ac_objext=o
968 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
969 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
970 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
971 ac_n= ac_c='
972 ' ac_t=' '
973 else
974 ac_n=-n ac_c= ac_t=
975 fi
976 else
977 ac_n= ac_c='\c' ac_t=
978 fi
979
980
981
982 ac_aux_dir=
983 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
984 if 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 elif test -f $ac_dir/install.sh; then
989 ac_aux_dir=$ac_dir
990 ac_install_sh="$ac_aux_dir/install.sh -c"
991 break
992 fi
993 done
994 if test -z "$ac_aux_dir"; then
995 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
996 fi
997 ac_config_guess=$ac_aux_dir/config.guess
998 ac_config_sub=$ac_aux_dir/config.sub
999 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1000
1001
1002 # Do some error checking and defaulting for the host and target type.
1003 # The inputs are:
1004 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 #
1006 # The rules are:
1007 # 1. You are not allowed to specify --host, --target, and nonopt at the
1008 # same time.
1009 # 2. Host defaults to nonopt.
1010 # 3. If nonopt is not specified, then host defaults to the current host,
1011 # as determined by config.guess.
1012 # 4. Target and build default to nonopt.
1013 # 5. If nonopt is not specified, then target and build default to host.
1014
1015 # The aliases save the names the user supplied, while $host etc.
1016 # will get canonicalized.
1017 case $host---$target---$nonopt in
1018 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1019 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 esac
1021
1022
1023 # Make sure we can run config.sub.
1024 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1025 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1026 fi
1027
1028 echo $ac_n "checking host system type""... $ac_c" 1>&6
1029 echo "configure:1030: checking host system type" >&5
1030
1031 host_alias=$host
1032 case "$host_alias" in
1033 NONE)
1034 case $nonopt in
1035 NONE)
1036 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1037 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1038 fi ;;
1039 *) host_alias=$nonopt ;;
1040 esac ;;
1041 esac
1042
1043 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1044 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$ac_t""$host" 1>&6
1048
1049 echo $ac_n "checking target system type""... $ac_c" 1>&6
1050 echo "configure:1051: checking target system type" >&5
1051
1052 target_alias=$target
1053 case "$target_alias" in
1054 NONE)
1055 case $nonopt in
1056 NONE) target_alias=$host_alias ;;
1057 *) target_alias=$nonopt ;;
1058 esac ;;
1059 esac
1060
1061 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1062 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1065 echo "$ac_t""$target" 1>&6
1066
1067 echo $ac_n "checking build system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking build system type" >&5
1069
1070 build_alias=$build
1071 case "$build_alias" in
1072 NONE)
1073 case $nonopt in
1074 NONE) build_alias=$host_alias ;;
1075 *) build_alias=$nonopt ;;
1076 esac ;;
1077 esac
1078
1079 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1080 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1081 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1082 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1083 echo "$ac_t""$build" 1>&6
1084
1085 test "$host_alias" != "$target_alias" &&
1086 test "$program_prefix$program_suffix$program_transform_name" = \
1087 NONENONEs,x,x, &&
1088 program_prefix=${target_alias}-
1089
1090
1091
1092 WX_MAJOR_VERSION_NUMBER=2
1093 WX_MINOR_VERSION_NUMBER=5
1094 WX_RELEASE_NUMBER=0
1095
1096 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1097 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1098
1099 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1100
1101 WX_CURRENT=0
1102 WX_REVISION=0
1103 WX_AGE=0
1104
1105
1106
1107 USE_UNIX=1
1108 USE_WIN32=0
1109 USE_DOS=0
1110 USE_BEOS=0
1111 USE_MAC=0
1112
1113 USE_LINUX=
1114 USE_SGI=
1115 USE_HPUX=
1116 USE_SYSV=
1117 USE_SVR4=
1118 USE_AIX=
1119 USE_SUN=
1120 USE_SOLARIS=
1121 USE_SUNOS=
1122 USE_ALPHA=
1123 USE_OSF=
1124 USE_BSD=
1125 USE_DARWIN=
1126 USE_FREEBSD=
1127 USE_OPENBSD=
1128 USE_NETBSD=
1129 USE_VMS=
1130 USE_ULTRIX=
1131 USE_DATA_GENERAL=
1132
1133 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1134
1135 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1136
1137 DEFAULT_wxUSE_COCOA=0
1138 DEFAULT_wxUSE_GTK=0
1139 DEFAULT_wxUSE_MAC=0
1140 DEFAULT_wxUSE_MGL=0
1141 DEFAULT_wxUSE_MICROWIN=0
1142 DEFAULT_wxUSE_MOTIF=0
1143 DEFAULT_wxUSE_MSW=0
1144 DEFAULT_wxUSE_PM=0
1145 DEFAULT_wxUSE_X11=0
1146
1147 DEFAULT_DEFAULT_wxUSE_COCOA=0
1148 DEFAULT_DEFAULT_wxUSE_GTK=0
1149 DEFAULT_DEFAULT_wxUSE_MAC=0
1150 DEFAULT_DEFAULT_wxUSE_MGL=0
1151 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1152 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1153 DEFAULT_DEFAULT_wxUSE_MSW=0
1154 DEFAULT_DEFAULT_wxUSE_PM=0
1155 DEFAULT_DEFAULT_wxUSE_X11=0
1156
1157 PROGRAM_EXT=
1158 SO_SUFFIX=so
1159
1160 case "${host}" in
1161 *-hp-hpux* )
1162 USE_HPUX=1
1163 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1164 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1165 SO_SUFFIX=sl
1166 cat >> confdefs.h <<\EOF
1167 #define __HPUX__ 1
1168 EOF
1169
1170 ;;
1171 *-*-linux* )
1172 USE_LINUX=1
1173 cat >> confdefs.h <<\EOF
1174 #define __LINUX__ 1
1175 EOF
1176
1177 TMP=`uname -m`
1178 if test "x$TMP" = "xalpha"; then
1179 USE_ALPHA=1
1180 cat >> confdefs.h <<\EOF
1181 #define __ALPHA__ 1
1182 EOF
1183
1184 fi
1185 DEFAULT_DEFAULT_wxUSE_GTK=1
1186 ;;
1187 *-*-irix5* | *-*-irix6* )
1188 USE_SGI=1
1189 USE_SVR4=1
1190 cat >> confdefs.h <<\EOF
1191 #define __SGI__ 1
1192 EOF
1193
1194 cat >> confdefs.h <<\EOF
1195 #define __SVR4__ 1
1196 EOF
1197
1198 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1199 ;;
1200 *-*-solaris2* )
1201 USE_SUN=1
1202 USE_SOLARIS=1
1203 USE_SVR4=1
1204 cat >> confdefs.h <<\EOF
1205 #define __SUN__ 1
1206 EOF
1207
1208 cat >> confdefs.h <<\EOF
1209 #define __SOLARIS__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __SVR4__ 1
1214 EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1218 ;;
1219 *-*-sunos4* )
1220 USE_SUN=1
1221 USE_SUNOS=1
1222 USE_BSD=1
1223 cat >> confdefs.h <<\EOF
1224 #define __SUN__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __SUNOS__ 1
1229 EOF
1230
1231 cat >> confdefs.h <<\EOF
1232 #define __BSD__ 1
1233 EOF
1234
1235 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1236 ;;
1237 *-*-freebsd*)
1238 USE_BSD=1
1239 USE_FREEBSD=1
1240 cat >> confdefs.h <<\EOF
1241 #define __FREEBSD__ 1
1242 EOF
1243
1244 cat >> confdefs.h <<\EOF
1245 #define __BSD__ 1
1246 EOF
1247
1248 DEFAULT_DEFAULT_wxUSE_GTK=1
1249 ;;
1250 *-*-openbsd*)
1251 USE_BSD=1
1252 USE_OPENBSD=1
1253 cat >> confdefs.h <<\EOF
1254 #define __OPENBSD__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __BSD__ 1
1259 EOF
1260
1261 DEFAULT_DEFAULT_wxUSE_GTK=1
1262 ;;
1263 *-*-netbsd*)
1264 USE_BSD=1
1265 USE_NETBSD=1
1266 cat >> confdefs.h <<\EOF
1267 #define __NETBSD__ 1
1268 EOF
1269
1270 cat >> confdefs.h <<\EOF
1271 #define __BSD__ 1
1272 EOF
1273
1274 DEFAULT_DEFAULT_wxUSE_GTK=1
1275 ;;
1276 *-*-osf* )
1277 USE_ALPHA=1
1278 USE_OSF=1
1279 cat >> confdefs.h <<\EOF
1280 #define __ALPHA__ 1
1281 EOF
1282
1283 cat >> confdefs.h <<\EOF
1284 #define __OSF__ 1
1285 EOF
1286
1287 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1288 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1289 ;;
1290 *-*-dgux5* )
1291 USE_ALPHA=1
1292 USE_SVR4=1
1293 cat >> confdefs.h <<\EOF
1294 #define __ALPHA__ 1
1295 EOF
1296
1297 cat >> confdefs.h <<\EOF
1298 #define __SVR4__ 1
1299 EOF
1300
1301 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1302 ;;
1303 *-*-sysv5* )
1304 USE_SYSV=1
1305 USE_SVR4=1
1306 cat >> confdefs.h <<\EOF
1307 #define __SYSV__ 1
1308 EOF
1309
1310 cat >> confdefs.h <<\EOF
1311 #define __SVR4__ 1
1312 EOF
1313
1314 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1315 ;;
1316 *-*-aix* )
1317 USE_AIX=1
1318 USE_SYSV=1
1319 USE_SVR4=1
1320 SO_SUFFIX=a
1321 cat >> confdefs.h <<\EOF
1322 #define __AIX__ 1
1323 EOF
1324
1325 cat >> confdefs.h <<\EOF
1326 #define __SYSV__ 1
1327 EOF
1328
1329 cat >> confdefs.h <<\EOF
1330 #define __SVR4__ 1
1331 EOF
1332
1333 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1334 ;;
1335
1336 *-*-cygwin* | *-*-mingw32* )
1337 SO_SUFFIX=dll
1338 PROGRAM_EXT=".exe"
1339 RESCOMP=windres
1340 DEFAULT_DEFAULT_wxUSE_MSW=1
1341 ;;
1342
1343 *-pc-msdosdjgpp )
1344 USE_UNIX=0
1345 USE_DOS=1
1346 cat >> confdefs.h <<\EOF
1347 #define __DOS__ 1
1348 EOF
1349
1350 PROGRAM_EXT=".exe"
1351 DEFAULT_DEFAULT_wxUSE_MGL=1
1352 LIBS="$LIBS -lstdc++"
1353 ;;
1354
1355 *-pc-os2_emx | *-pc-os2-emx )
1356 cat >> confdefs.h <<\EOF
1357 #define __EMX__ 1
1358 EOF
1359
1360 PROGRAM_EXT=".exe"
1361 DEFAULT_DEFAULT_wxUSE_PM=1
1362 ;;
1363
1364 powerpc-*-darwin* )
1365 USE_BSD=1
1366 USE_DARWIN=1
1367 SO_SUFFIX=dylib
1368 cat >> confdefs.h <<\EOF
1369 #define __BSD__ 1
1370 EOF
1371
1372 cat >> confdefs.h <<\EOF
1373 #define __DARWIN__ 1
1374 EOF
1375
1376 cat >> confdefs.h <<\EOF
1377 #define __POWERPC__ 1
1378 EOF
1379
1380 cat >> confdefs.h <<\EOF
1381 #define TARGET_CARBON 1
1382 EOF
1383
1384 DEFAULT_DEFAULT_wxUSE_MAC=1
1385 ;;
1386
1387 *-*-beos* )
1388 USE_BEOS=1
1389 cat >> confdefs.h <<\EOF
1390 #define __BEOS__ 1
1391 EOF
1392
1393 ;;
1394
1395 *)
1396 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1397 esac
1398
1399
1400
1401
1402 wx_arg_cache_file="configarg.cache"
1403 echo "loading argument cache $wx_arg_cache_file"
1404 rm -f ${wx_arg_cache_file}.tmp
1405 touch ${wx_arg_cache_file}.tmp
1406 touch ${wx_arg_cache_file}
1407
1408
1409 DEBUG_CONFIGURE=0
1410 if test $DEBUG_CONFIGURE = 1; then
1411 DEFAULT_wxUSE_UNIVERSAL=no
1412
1413 DEFAULT_wxUSE_NANOX=no
1414
1415 DEFAULT_wxUSE_THREADS=yes
1416
1417 DEFAULT_wxUSE_SHARED=yes
1418 DEFAULT_wxUSE_SONAME=no
1419 DEFAULT_wxUSE_OPTIMISE=no
1420 DEFAULT_wxUSE_PROFILE=no
1421 DEFAULT_wxUSE_NO_DEPS=no
1422 DEFAULT_wxUSE_NO_RTTI=no
1423 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1424 DEFAULT_wxUSE_PERMISSIVE=no
1425 DEFAULT_wxUSE_DEBUG_FLAG=yes
1426 DEFAULT_wxUSE_DEBUG_INFO=yes
1427 DEFAULT_wxUSE_DEBUG_GDB=yes
1428 DEFAULT_wxUSE_MEM_TRACING=no
1429 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1430 DEFAULT_wxUSE_DMALLOC=no
1431 DEFAULT_wxUSE_PRECOMP=no
1432 DEFAULT_wxUSE_APPLE_IEEE=no
1433
1434 DEFAULT_wxUSE_LOG=yes
1435 DEFAULT_wxUSE_LOGWINDOW=no
1436 DEFAULT_wxUSE_LOGGUI=no
1437 DEFAULT_wxUSE_LOGDIALOG=no
1438
1439 DEFAULT_wxUSE_GUI=yes
1440 DEFAULT_wxUSE_CONTROLS=no
1441
1442 DEFAULT_wxUSE_REGEX=no
1443 DEFAULT_wxUSE_ZLIB=no
1444 DEFAULT_wxUSE_LIBPNG=no
1445 DEFAULT_wxUSE_LIBJPEG=no
1446 DEFAULT_wxUSE_LIBTIFF=no
1447 DEFAULT_wxUSE_ODBC=no
1448 DEFAULT_wxUSE_OPENGL=no
1449
1450 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1451 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1452 DEFAULT_wxUSE_STD_IOSTREAM=no
1453 DEFAULT_wxUSE_CMDLINE_PARSER=no
1454 DEFAULT_wxUSE_DATETIME=no
1455 DEFAULT_wxUSE_TIMEDATE=no
1456 DEFAULT_wxUSE_TIMER=no
1457 DEFAULT_wxUSE_STOPWATCH=no
1458 DEFAULT_wxUSE_FILE=no
1459 DEFAULT_wxUSE_FFILE=no
1460 DEFAULT_wxUSE_TEXTBUFFER=no
1461 DEFAULT_wxUSE_TEXTFILE=no
1462 DEFAULT_wxUSE_WAVE=no
1463 DEFAULT_wxUSE_INTL=no
1464 DEFAULT_wxUSE_CONFIG=no
1465 DEFAULT_wxUSE_FONTMAP=no
1466 DEFAULT_wxUSE_STREAMS=no
1467 DEFAULT_wxUSE_SOCKETS=no
1468 DEFAULT_wxUSE_OLE=no
1469 DEFAULT_wxUSE_DATAOBJ=no
1470 DEFAULT_wxUSE_DIALUP_MANAGER=no
1471 DEFAULT_wxUSE_JOYSTICK=no
1472 DEFAULT_wxUSE_DYNLIB_CLASS=no
1473 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1474 DEFAULT_wxUSE_LONGLONG=no
1475 DEFAULT_wxUSE_GEOMETRY=no
1476
1477 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1478 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1479 DEFAULT_wxUSE_POSTSCRIPT=no
1480
1481 DEFAULT_wxUSE_X_RESOURCES=no
1482 DEFAULT_wxUSE_CLIPBOARD=no
1483 DEFAULT_wxUSE_TOOLTIPS=no
1484 DEFAULT_wxUSE_DRAG_AND_DROP=no
1485 DEFAULT_wxUSE_DRAGIMAGE=no
1486 DEFAULT_wxUSE_SPLINES=no
1487
1488 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1489 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1490 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1491
1492 DEFAULT_wxUSE_PROLOGIO=no
1493 DEFAULT_wxUSE_RESOURCES=no
1494 DEFAULT_wxUSE_CONSTRAINTS=no
1495 DEFAULT_wxUSE_IPC=no
1496 DEFAULT_wxUSE_HELP=no
1497 DEFAULT_wxUSE_MS_HTML_HELP=no
1498 DEFAULT_wxUSE_WXHTML_HELP=no
1499 DEFAULT_wxUSE_TREELAYOUT=no
1500 DEFAULT_wxUSE_METAFILE=no
1501 DEFAULT_wxUSE_MIMETYPE=no
1502 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1503 DEFAULT_wxUSE_PROTOCOL=no
1504 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FILE=no
1507 DEFAULT_wxUSE_URL=no
1508
1509 DEFAULT_wxUSE_COMMONDLGS=no
1510 DEFAULT_wxUSE_CHOICEDLG=no
1511 DEFAULT_wxUSE_COLOURDLG=no
1512 DEFAULT_wxUSE_DIRDLG=no
1513 DEFAULT_wxUSE_FILEDLG=no
1514 DEFAULT_wxUSE_FINDREPLDLG=no
1515 DEFAULT_wxUSE_FONTDLG=no
1516 DEFAULT_wxUSE_MSGDLG=no
1517 DEFAULT_wxUSE_NUMBERDLG=no
1518 DEFAULT_wxUSE_TEXTDLG=no
1519 DEFAULT_wxUSE_SPLASH=no
1520 DEFAULT_wxUSE_STARTUP_TIPS=no
1521 DEFAULT_wxUSE_PROGRESSDLG=no
1522 DEFAULT_wxUSE_WIZARDDLG=no
1523
1524 DEFAULT_wxUSE_MENUS=no
1525 DEFAULT_wxUSE_MINIFRAME=no
1526 DEFAULT_wxUSE_HTML=no
1527 DEFAULT_wxUSE_FILESYSTEM=no
1528 DEFAULT_wxUSE_FS_INET=no
1529 DEFAULT_wxUSE_FS_ZIP=no
1530 DEFAULT_wxUSE_BUSYINFO=no
1531 DEFAULT_wxUSE_ZIPSTREAM=no
1532 DEFAULT_wxUSE_VALIDATORS=no
1533
1534 DEFAULT_wxUSE_ACCEL=no
1535 DEFAULT_wxUSE_BUTTON=no
1536 DEFAULT_wxUSE_BMPBUTTON=no
1537 DEFAULT_wxUSE_CALCTRL=no
1538 DEFAULT_wxUSE_CARET=no
1539 DEFAULT_wxUSE_CHECKBOX=no
1540 DEFAULT_wxUSE_CHECKLST=no
1541 DEFAULT_wxUSE_CHOICE=no
1542 DEFAULT_wxUSE_COMBOBOX=no
1543 DEFAULT_wxUSE_DISPLAY=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_NEW_GRID=no
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
1551 DEFAULT_wxUSE_PROPSHEET=no
1552 DEFAULT_wxUSE_RADIOBOX=no
1553 DEFAULT_wxUSE_RADIOBTN=no
1554 DEFAULT_wxUSE_SASH=no
1555 DEFAULT_wxUSE_SCROLLBAR=no
1556 DEFAULT_wxUSE_SLIDER=no
1557 DEFAULT_wxUSE_SPINBTN=no
1558 DEFAULT_wxUSE_SPINCTRL=no
1559 DEFAULT_wxUSE_SPLITTER=no
1560 DEFAULT_wxUSE_STATBMP=no
1561 DEFAULT_wxUSE_STATBOX=no
1562 DEFAULT_wxUSE_STATLINE=no
1563 DEFAULT_wxUSE_STATTEXT=no
1564 DEFAULT_wxUSE_STATUSBAR=yes
1565 DEFAULT_wxUSE_TABDIALOG=no
1566 DEFAULT_wxUSE_TEXTCTRL=no
1567 DEFAULT_wxUSE_TOGGLEBTN=no
1568 DEFAULT_wxUSE_TOOLBAR=no
1569 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1570 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1571 DEFAULT_wxUSE_TREECTRL=no
1572 DEFAULT_wxUSE_POPUPWIN=no
1573 DEFAULT_wxUSE_TIPWINDOW=no
1574
1575 DEFAULT_wxUSE_UNICODE=no
1576 DEFAULT_wxUSE_UNICODE_MSLU=no
1577 DEFAULT_wxUSE_WCSRTOMBS=no
1578
1579 DEFAULT_wxUSE_PALETTE=no
1580 DEFAULT_wxUSE_IMAGE=no
1581 DEFAULT_wxUSE_GIF=no
1582 DEFAULT_wxUSE_PCX=no
1583 DEFAULT_wxUSE_PNM=no
1584 DEFAULT_wxUSE_IFF=no
1585 DEFAULT_wxUSE_XPM=no
1586 DEFAULT_wxUSE_ICO_CUR=no
1587 else
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
1590 DEFAULT_wxUSE_NANOX=no
1591
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
1595 DEFAULT_wxUSE_SONAME=no
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
1608 DEFAULT_wxUSE_PRECOMP=no
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
1614 DEFAULT_wxUSE_LOGDIALOG=yes
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
1618 DEFAULT_wxUSE_REGEX=yes
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
1622 DEFAULT_wxUSE_LIBTIFF=yes
1623 DEFAULT_wxUSE_ODBC=no
1624 DEFAULT_wxUSE_OPENGL=no
1625
1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1631 DEFAULT_wxUSE_TIMEDATE=no
1632 DEFAULT_wxUSE_TIMER=yes
1633 DEFAULT_wxUSE_STOPWATCH=yes
1634 DEFAULT_wxUSE_FILE=yes
1635 DEFAULT_wxUSE_FFILE=yes
1636 DEFAULT_wxUSE_TEXTBUFFER=yes
1637 DEFAULT_wxUSE_TEXTFILE=yes
1638 DEFAULT_wxUSE_WAVE=no
1639 DEFAULT_wxUSE_INTL=yes
1640 DEFAULT_wxUSE_CONFIG=yes
1641 DEFAULT_wxUSE_FONTMAP=yes
1642 DEFAULT_wxUSE_STREAMS=yes
1643 DEFAULT_wxUSE_SOCKETS=yes
1644 DEFAULT_wxUSE_OLE=yes
1645 DEFAULT_wxUSE_DATAOBJ=yes
1646 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1647 DEFAULT_wxUSE_JOYSTICK=yes
1648 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1649 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1650 DEFAULT_wxUSE_LONGLONG=yes
1651 DEFAULT_wxUSE_GEOMETRY=yes
1652
1653 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1654 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1655 DEFAULT_wxUSE_POSTSCRIPT=yes
1656
1657 DEFAULT_wxUSE_X_RESOURCES=no
1658 DEFAULT_wxUSE_CLIPBOARD=yes
1659 DEFAULT_wxUSE_TOOLTIPS=yes
1660 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1661 DEFAULT_wxUSE_DRAGIMAGE=yes
1662 DEFAULT_wxUSE_SPLINES=yes
1663
1664 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1666 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1667
1668 DEFAULT_wxUSE_PROLOGIO=no
1669 DEFAULT_wxUSE_RESOURCES=no
1670 DEFAULT_wxUSE_CONSTRAINTS=yes
1671 DEFAULT_wxUSE_IPC=yes
1672 DEFAULT_wxUSE_HELP=yes
1673 DEFAULT_wxUSE_MS_HTML_HELP=yes
1674 DEFAULT_wxUSE_WXHTML_HELP=yes
1675 DEFAULT_wxUSE_TREELAYOUT=yes
1676 DEFAULT_wxUSE_METAFILE=yes
1677 DEFAULT_wxUSE_MIMETYPE=yes
1678 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1679 DEFAULT_wxUSE_PROTOCOL=yes
1680 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1681 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1682 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1683 DEFAULT_wxUSE_URL=yes
1684
1685 DEFAULT_wxUSE_COMMONDLGS=yes
1686 DEFAULT_wxUSE_CHOICEDLG=yes
1687 DEFAULT_wxUSE_COLOURDLG=yes
1688 DEFAULT_wxUSE_DIRDLG=yes
1689 DEFAULT_wxUSE_FILEDLG=yes
1690 DEFAULT_wxUSE_FINDREPLDLG=yes
1691 DEFAULT_wxUSE_FONTDLG=yes
1692 DEFAULT_wxUSE_MSGDLG=yes
1693 DEFAULT_wxUSE_NUMBERDLG=yes
1694 DEFAULT_wxUSE_TEXTDLG=yes
1695 DEFAULT_wxUSE_SPLASH=yes
1696 DEFAULT_wxUSE_STARTUP_TIPS=yes
1697 DEFAULT_wxUSE_PROGRESSDLG=yes
1698 DEFAULT_wxUSE_WIZARDDLG=yes
1699
1700 DEFAULT_wxUSE_MENUS=yes
1701 DEFAULT_wxUSE_MINIFRAME=yes
1702 DEFAULT_wxUSE_HTML=yes
1703 DEFAULT_wxUSE_FILESYSTEM=yes
1704 DEFAULT_wxUSE_FS_INET=yes
1705 DEFAULT_wxUSE_FS_ZIP=yes
1706 DEFAULT_wxUSE_BUSYINFO=yes
1707 DEFAULT_wxUSE_ZIPSTREAM=yes
1708 DEFAULT_wxUSE_VALIDATORS=yes
1709
1710 DEFAULT_wxUSE_ACCEL=yes
1711 DEFAULT_wxUSE_BUTTON=yes
1712 DEFAULT_wxUSE_BMPBUTTON=yes
1713 DEFAULT_wxUSE_CALCTRL=yes
1714 DEFAULT_wxUSE_CARET=yes
1715 DEFAULT_wxUSE_CHECKBOX=yes
1716 DEFAULT_wxUSE_CHECKLST=yes
1717 DEFAULT_wxUSE_CHOICE=yes
1718 DEFAULT_wxUSE_COMBOBOX=yes
1719 DEFAULT_wxUSE_DISPLAY=no
1720 DEFAULT_wxUSE_GAUGE=yes
1721 DEFAULT_wxUSE_GRID=yes
1722 DEFAULT_wxUSE_NEW_GRID=yes
1723 DEFAULT_wxUSE_IMAGLIST=yes
1724 DEFAULT_wxUSE_LISTBOX=yes
1725 DEFAULT_wxUSE_LISTCTRL=yes
1726 DEFAULT_wxUSE_NOTEBOOK=yes
1727 DEFAULT_wxUSE_PROPSHEET=yes
1728 DEFAULT_wxUSE_RADIOBOX=yes
1729 DEFAULT_wxUSE_RADIOBTN=yes
1730 DEFAULT_wxUSE_SASH=yes
1731 DEFAULT_wxUSE_SCROLLBAR=yes
1732 DEFAULT_wxUSE_SLIDER=yes
1733 DEFAULT_wxUSE_SPINBTN=yes
1734 DEFAULT_wxUSE_SPINCTRL=yes
1735 DEFAULT_wxUSE_SPLITTER=yes
1736 DEFAULT_wxUSE_STATBMP=yes
1737 DEFAULT_wxUSE_STATBOX=yes
1738 DEFAULT_wxUSE_STATLINE=yes
1739 DEFAULT_wxUSE_STATTEXT=yes
1740 DEFAULT_wxUSE_STATUSBAR=yes
1741 DEFAULT_wxUSE_TABDIALOG=no
1742 DEFAULT_wxUSE_TEXTCTRL=yes
1743 DEFAULT_wxUSE_TOGGLEBTN=yes
1744 DEFAULT_wxUSE_TOOLBAR=yes
1745 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1746 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1747 DEFAULT_wxUSE_TREECTRL=yes
1748 DEFAULT_wxUSE_POPUPWIN=yes
1749 DEFAULT_wxUSE_TIPWINDOW=yes
1750
1751 DEFAULT_wxUSE_UNICODE=no
1752 DEFAULT_wxUSE_UNICODE_MSLU=yes
1753 DEFAULT_wxUSE_WCSRTOMBS=no
1754
1755 DEFAULT_wxUSE_PALETTE=yes
1756 DEFAULT_wxUSE_IMAGE=yes
1757 DEFAULT_wxUSE_GIF=yes
1758 DEFAULT_wxUSE_PCX=yes
1759 DEFAULT_wxUSE_IFF=no
1760 DEFAULT_wxUSE_PNM=yes
1761 DEFAULT_wxUSE_XPM=yes
1762 DEFAULT_wxUSE_ICO_CUR=yes
1763 fi
1764
1765
1766
1767 for toolkit in `echo $ALL_TOOLKITS`; do
1768 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1769 if test "x$LINE" != "x" ; then
1770 has_toolkit_in_cache=1
1771 eval "DEFAULT_$LINE"
1772 eval "CACHE_$toolkit=1"
1773 fi
1774 done
1775
1776
1777
1778 enablestring=
1779 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1780 echo "configure:1781: checking for --${enablestring:-enable}-gui" >&5
1781 no_cache=0
1782 # Check whether --enable-gui or --disable-gui was given.
1783 if test "${enable_gui+set}" = set; then
1784 enableval="$enable_gui"
1785
1786 if test "$enableval" = yes; then
1787 ac_cv_use_gui='wxUSE_GUI=yes'
1788 else
1789 ac_cv_use_gui='wxUSE_GUI=no'
1790 fi
1791
1792 else
1793
1794 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1795 if test "x$LINE" != x ; then
1796 eval "DEFAULT_$LINE"
1797 else
1798 no_cache=1
1799 fi
1800
1801 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1802
1803 fi
1804
1805
1806 eval "$ac_cv_use_gui"
1807 if test "$no_cache" != 1; then
1808 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1809 fi
1810
1811 if test "$wxUSE_GUI" = yes; then
1812 echo "$ac_t""yes" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1815 fi
1816
1817
1818 if test "$wxUSE_GUI" = "yes"; then
1819
1820
1821 enablestring=
1822 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1823 echo "configure:1824: checking for --${enablestring:-enable}-universal" >&5
1824 no_cache=0
1825 # Check whether --enable-universal or --disable-universal was given.
1826 if test "${enable_universal+set}" = set; then
1827 enableval="$enable_universal"
1828
1829 if test "$enableval" = yes; then
1830 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1831 else
1832 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1833 fi
1834
1835 else
1836
1837 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1838 if test "x$LINE" != x ; then
1839 eval "DEFAULT_$LINE"
1840 else
1841 no_cache=1
1842 fi
1843
1844 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1845
1846 fi
1847
1848
1849 eval "$ac_cv_use_universal"
1850 if test "$no_cache" != 1; then
1851 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1852 fi
1853
1854 if test "$wxUSE_UNIVERSAL" = yes; then
1855 echo "$ac_t""yes" 1>&6
1856 else
1857 echo "$ac_t""no" 1>&6
1858 fi
1859
1860 # Check whether --with-gtk or --without-gtk was given.
1861 if test "${with_gtk+set}" = set; then
1862 withval="$with_gtk"
1863 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1864 fi
1865
1866 # Check whether --with-motif or --without-motif was given.
1867 if test "${with_motif+set}" = set; then
1868 withval="$with_motif"
1869 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1870 fi
1871
1872 # Check whether --with-mac or --without-mac was given.
1873 if test "${with_mac+set}" = set; then
1874 withval="$with_mac"
1875 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1876 fi
1877
1878 # Check whether --with-cocoa or --without-cocoa was given.
1879 if test "${with_cocoa+set}" = set; then
1880 withval="$with_cocoa"
1881 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1882 fi
1883
1884 # Check whether --with-wine or --without-wine was given.
1885 if test "${with_wine+set}" = set; then
1886 withval="$with_wine"
1887 wxUSE_WINE="$withval" CACHE_WINE=1
1888 fi
1889
1890 # Check whether --with-msw or --without-msw was given.
1891 if test "${with_msw+set}" = set; then
1892 withval="$with_msw"
1893 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1894 fi
1895
1896 # Check whether --with-pm or --without-pm was given.
1897 if test "${with_pm+set}" = set; then
1898 withval="$with_pm"
1899 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1900 fi
1901
1902 # Check whether --with-mgl or --without-mgl was given.
1903 if test "${with_mgl+set}" = set; then
1904 withval="$with_mgl"
1905 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1906 fi
1907
1908 # Check whether --with-microwin or --without-microwin was given.
1909 if test "${with_microwin+set}" = set; then
1910 withval="$with_microwin"
1911 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1912 fi
1913
1914 # Check whether --with-x11 or --without-x11 was given.
1915 if test "${with_x11+set}" = set; then
1916 withval="$with_x11"
1917 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1918 fi
1919
1920
1921 enablestring=
1922 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1923 echo "configure:1924: checking for --${enablestring:-enable}-nanox" >&5
1924 no_cache=0
1925 # Check whether --enable-nanox or --disable-nanox was given.
1926 if test "${enable_nanox+set}" = set; then
1927 enableval="$enable_nanox"
1928
1929 if test "$enableval" = yes; then
1930 ac_cv_use_nanox='wxUSE_NANOX=yes'
1931 else
1932 ac_cv_use_nanox='wxUSE_NANOX=no'
1933 fi
1934
1935 else
1936
1937 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1938 if test "x$LINE" != x ; then
1939 eval "DEFAULT_$LINE"
1940 else
1941 no_cache=1
1942 fi
1943
1944 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1945
1946 fi
1947
1948
1949 eval "$ac_cv_use_nanox"
1950 if test "$no_cache" != 1; then
1951 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1952 fi
1953
1954 if test "$wxUSE_NANOX" = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1958 fi
1959
1960
1961
1962 enablestring=
1963 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1964 echo "configure:1965: checking for --${enablestring:-enable}-gtk2" >&5
1965 no_cache=0
1966 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1967 if test "${enable_gtk2+set}" = set; then
1968 enableval="$enable_gtk2"
1969
1970 if test "$enableval" = yes; then
1971 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1972 else
1973 ac_cv_use_gtk2='wxUSE_GTK2=no'
1974 fi
1975
1976 else
1977
1978 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
1985 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1986
1987 fi
1988
1989
1990 eval "$ac_cv_use_gtk2"
1991 if test "$no_cache" != 1; then
1992 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1993 fi
1994
1995 if test "$wxUSE_GTK2" = yes; then
1996 echo "$ac_t""yes" 1>&6
1997 else
1998 echo "$ac_t""no" 1>&6
1999 fi
2000
2001
2002
2003 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2004 echo "configure:2005: checking for --with-libpng" >&5
2005 no_cache=0
2006 # Check whether --with-libpng or --without-libpng was given.
2007 if test "${with_libpng+set}" = set; then
2008 withval="$with_libpng"
2009
2010 if test "$withval" = yes; then
2011 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2012 elif test "$withval" = no; then
2013 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2014 elif test "$withval" = sys; then
2015 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2016 elif test "$withval" = builtin; then
2017 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2018 else
2019 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2020 fi
2021
2022 else
2023
2024 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2025 if test "x$LINE" != x ; then
2026 eval "DEFAULT_$LINE"
2027 else
2028 no_cache=1
2029 fi
2030
2031 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2032
2033 fi
2034
2035
2036 eval "$ac_cv_use_libpng"
2037 if test "$no_cache" != 1; then
2038 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2039 fi
2040
2041 if test "$wxUSE_LIBPNG" = yes; then
2042 echo "$ac_t""yes" 1>&6
2043 elif test "$wxUSE_LIBPNG" = no; then
2044 echo "$ac_t""no" 1>&6
2045 elif test "$wxUSE_LIBPNG" = sys; then
2046 echo "$ac_t""system version" 1>&6
2047 elif test "$wxUSE_LIBPNG" = builtin; then
2048 echo "$ac_t""builtin version" 1>&6
2049 else
2050 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2051 fi
2052
2053
2054 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2055 echo "configure:2056: checking for --with-libjpeg" >&5
2056 no_cache=0
2057 # Check whether --with-libjpeg or --without-libjpeg was given.
2058 if test "${with_libjpeg+set}" = set; then
2059 withval="$with_libjpeg"
2060
2061 if test "$withval" = yes; then
2062 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2063 elif test "$withval" = no; then
2064 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2065 elif test "$withval" = sys; then
2066 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2067 elif test "$withval" = builtin; then
2068 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2069 else
2070 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2071 fi
2072
2073 else
2074
2075 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2076 if test "x$LINE" != x ; then
2077 eval "DEFAULT_$LINE"
2078 else
2079 no_cache=1
2080 fi
2081
2082 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2083
2084 fi
2085
2086
2087 eval "$ac_cv_use_libjpeg"
2088 if test "$no_cache" != 1; then
2089 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2090 fi
2091
2092 if test "$wxUSE_LIBJPEG" = yes; then
2093 echo "$ac_t""yes" 1>&6
2094 elif test "$wxUSE_LIBJPEG" = no; then
2095 echo "$ac_t""no" 1>&6
2096 elif test "$wxUSE_LIBJPEG" = sys; then
2097 echo "$ac_t""system version" 1>&6
2098 elif test "$wxUSE_LIBJPEG" = builtin; then
2099 echo "$ac_t""builtin version" 1>&6
2100 else
2101 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2102 fi
2103
2104
2105 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2106 echo "configure:2107: checking for --with-libtiff" >&5
2107 no_cache=0
2108 # Check whether --with-libtiff or --without-libtiff was given.
2109 if test "${with_libtiff+set}" = set; then
2110 withval="$with_libtiff"
2111
2112 if test "$withval" = yes; then
2113 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2114 elif test "$withval" = no; then
2115 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2116 elif test "$withval" = sys; then
2117 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2118 elif test "$withval" = builtin; then
2119 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2120 else
2121 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2122 fi
2123
2124 else
2125
2126 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2127 if test "x$LINE" != x ; then
2128 eval "DEFAULT_$LINE"
2129 else
2130 no_cache=1
2131 fi
2132
2133 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2134
2135 fi
2136
2137
2138 eval "$ac_cv_use_libtiff"
2139 if test "$no_cache" != 1; then
2140 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2141 fi
2142
2143 if test "$wxUSE_LIBTIFF" = yes; then
2144 echo "$ac_t""yes" 1>&6
2145 elif test "$wxUSE_LIBTIFF" = no; then
2146 echo "$ac_t""no" 1>&6
2147 elif test "$wxUSE_LIBTIFF" = sys; then
2148 echo "$ac_t""system version" 1>&6
2149 elif test "$wxUSE_LIBTIFF" = builtin; then
2150 echo "$ac_t""builtin version" 1>&6
2151 else
2152 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2153 fi
2154
2155
2156 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2157 echo "configure:2158: checking for --with-opengl" >&5
2158 no_cache=0
2159 # Check whether --with-opengl or --without-opengl was given.
2160 if test "${with_opengl+set}" = set; then
2161 withval="$with_opengl"
2162
2163 if test "$withval" = yes; then
2164 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2165 else
2166 ac_cv_use_opengl='wxUSE_OPENGL=no'
2167 fi
2168
2169 else
2170
2171 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2172 if test "x$LINE" != x ; then
2173 eval "DEFAULT_$LINE"
2174 else
2175 no_cache=1
2176 fi
2177
2178 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2179
2180 fi
2181
2182
2183 eval "$ac_cv_use_opengl"
2184 if test "$no_cache" != 1; then
2185 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2186 fi
2187
2188 if test "$wxUSE_OPENGL" = yes; then
2189 echo "$ac_t""yes" 1>&6
2190 else
2191 echo "$ac_t""no" 1>&6
2192 fi
2193
2194
2195 fi
2196
2197
2198 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2199 echo "configure:2200: checking for --with-dmalloc" >&5
2200 no_cache=0
2201 # Check whether --with-dmalloc or --without-dmalloc was given.
2202 if test "${with_dmalloc+set}" = set; then
2203 withval="$with_dmalloc"
2204
2205 if test "$withval" = yes; then
2206 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2207 else
2208 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2209 fi
2210
2211 else
2212
2213 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2214 if test "x$LINE" != x ; then
2215 eval "DEFAULT_$LINE"
2216 else
2217 no_cache=1
2218 fi
2219
2220 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2221
2222 fi
2223
2224
2225 eval "$ac_cv_use_dmalloc"
2226 if test "$no_cache" != 1; then
2227 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2228 fi
2229
2230 if test "$wxUSE_DMALLOC" = yes; then
2231 echo "$ac_t""yes" 1>&6
2232 else
2233 echo "$ac_t""no" 1>&6
2234 fi
2235
2236
2237 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2238 echo "configure:2239: checking for --with-regex" >&5
2239 no_cache=0
2240 # Check whether --with-regex or --without-regex was given.
2241 if test "${with_regex+set}" = set; then
2242 withval="$with_regex"
2243
2244 if test "$withval" = yes; then
2245 ac_cv_use_regex='wxUSE_REGEX=yes'
2246 elif test "$withval" = no; then
2247 ac_cv_use_regex='wxUSE_REGEX=no'
2248 elif test "$withval" = sys; then
2249 ac_cv_use_regex='wxUSE_REGEX=sys'
2250 elif test "$withval" = builtin; then
2251 ac_cv_use_regex='wxUSE_REGEX=builtin'
2252 else
2253 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2254 fi
2255
2256 else
2257
2258 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2259 if test "x$LINE" != x ; then
2260 eval "DEFAULT_$LINE"
2261 else
2262 no_cache=1
2263 fi
2264
2265 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2266
2267 fi
2268
2269
2270 eval "$ac_cv_use_regex"
2271 if test "$no_cache" != 1; then
2272 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2273 fi
2274
2275 if test "$wxUSE_REGEX" = yes; then
2276 echo "$ac_t""yes" 1>&6
2277 elif test "$wxUSE_REGEX" = no; then
2278 echo "$ac_t""no" 1>&6
2279 elif test "$wxUSE_REGEX" = sys; then
2280 echo "$ac_t""system version" 1>&6
2281 elif test "$wxUSE_REGEX" = builtin; then
2282 echo "$ac_t""builtin version" 1>&6
2283 else
2284 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2285 fi
2286
2287
2288 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2289 echo "configure:2290: checking for --with-zlib" >&5
2290 no_cache=0
2291 # Check whether --with-zlib or --without-zlib was given.
2292 if test "${with_zlib+set}" = set; then
2293 withval="$with_zlib"
2294
2295 if test "$withval" = yes; then
2296 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2297 elif test "$withval" = no; then
2298 ac_cv_use_zlib='wxUSE_ZLIB=no'
2299 elif test "$withval" = sys; then
2300 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2301 elif test "$withval" = builtin; then
2302 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2303 else
2304 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2305 fi
2306
2307 else
2308
2309 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
2316 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2317
2318 fi
2319
2320
2321 eval "$ac_cv_use_zlib"
2322 if test "$no_cache" != 1; then
2323 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2324 fi
2325
2326 if test "$wxUSE_ZLIB" = yes; then
2327 echo "$ac_t""yes" 1>&6
2328 elif test "$wxUSE_ZLIB" = no; then
2329 echo "$ac_t""no" 1>&6
2330 elif test "$wxUSE_ZLIB" = sys; then
2331 echo "$ac_t""system version" 1>&6
2332 elif test "$wxUSE_ZLIB" = builtin; then
2333 echo "$ac_t""builtin version" 1>&6
2334 else
2335 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2336 fi
2337
2338
2339 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2340 echo "configure:2341: checking for --with-odbc" >&5
2341 no_cache=0
2342 # Check whether --with-odbc or --without-odbc was given.
2343 if test "${with_odbc+set}" = set; then
2344 withval="$with_odbc"
2345
2346 if test "$withval" = yes; then
2347 ac_cv_use_odbc='wxUSE_ODBC=yes'
2348 else
2349 ac_cv_use_odbc='wxUSE_ODBC=no'
2350 fi
2351
2352 else
2353
2354 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2355 if test "x$LINE" != x ; then
2356 eval "DEFAULT_$LINE"
2357 else
2358 no_cache=1
2359 fi
2360
2361 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2362
2363 fi
2364
2365
2366 eval "$ac_cv_use_odbc"
2367 if test "$no_cache" != 1; then
2368 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2369 fi
2370
2371 if test "$wxUSE_ODBC" = yes; then
2372 echo "$ac_t""yes" 1>&6
2373 else
2374 echo "$ac_t""no" 1>&6
2375 fi
2376
2377
2378
2379
2380 enablestring=
2381 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2382 echo "configure:2383: checking for --${enablestring:-enable}-shared" >&5
2383 no_cache=0
2384 # Check whether --enable-shared or --disable-shared was given.
2385 if test "${enable_shared+set}" = set; then
2386 enableval="$enable_shared"
2387
2388 if test "$enableval" = yes; then
2389 ac_cv_use_shared='wxUSE_SHARED=yes'
2390 else
2391 ac_cv_use_shared='wxUSE_SHARED=no'
2392 fi
2393
2394 else
2395
2396 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2397 if test "x$LINE" != x ; then
2398 eval "DEFAULT_$LINE"
2399 else
2400 no_cache=1
2401 fi
2402
2403 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2404
2405 fi
2406
2407
2408 eval "$ac_cv_use_shared"
2409 if test "$no_cache" != 1; then
2410 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2411 fi
2412
2413 if test "$wxUSE_SHARED" = yes; then
2414 echo "$ac_t""yes" 1>&6
2415 else
2416 echo "$ac_t""no" 1>&6
2417 fi
2418
2419
2420 enablestring=
2421 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2422 echo "configure:2423: checking for --${enablestring:-enable}-soname" >&5
2423 no_cache=0
2424 # Check whether --enable-soname or --disable-soname was given.
2425 if test "${enable_soname+set}" = set; then
2426 enableval="$enable_soname"
2427
2428 if test "$enableval" = yes; then
2429 ac_cv_use_soname='wxUSE_SONAME=yes'
2430 else
2431 ac_cv_use_soname='wxUSE_SONAME=no'
2432 fi
2433
2434 else
2435
2436 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2437 if test "x$LINE" != x ; then
2438 eval "DEFAULT_$LINE"
2439 else
2440 no_cache=1
2441 fi
2442
2443 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2444
2445 fi
2446
2447
2448 eval "$ac_cv_use_soname"
2449 if test "$no_cache" != 1; then
2450 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2451 fi
2452
2453 if test "$wxUSE_SONAME" = yes; then
2454 echo "$ac_t""yes" 1>&6
2455 else
2456 echo "$ac_t""no" 1>&6
2457 fi
2458
2459
2460 enablestring=
2461 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2462 echo "configure:2463: checking for --${enablestring:-enable}-optimise" >&5
2463 no_cache=0
2464 # Check whether --enable-optimise or --disable-optimise was given.
2465 if test "${enable_optimise+set}" = set; then
2466 enableval="$enable_optimise"
2467
2468 if test "$enableval" = yes; then
2469 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2470 else
2471 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2472 fi
2473
2474 else
2475
2476 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2477 if test "x$LINE" != x ; then
2478 eval "DEFAULT_$LINE"
2479 else
2480 no_cache=1
2481 fi
2482
2483 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2484
2485 fi
2486
2487
2488 eval "$ac_cv_use_optimise"
2489 if test "$no_cache" != 1; then
2490 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2491 fi
2492
2493 if test "$wxUSE_OPTIMISE" = yes; then
2494 echo "$ac_t""yes" 1>&6
2495 else
2496 echo "$ac_t""no" 1>&6
2497 fi
2498
2499
2500 enablestring=
2501 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2502 echo "configure:2503: checking for --${enablestring:-enable}-debug" >&5
2503 no_cache=0
2504 # Check whether --enable-debug or --disable-debug was given.
2505 if test "${enable_debug+set}" = set; then
2506 enableval="$enable_debug"
2507
2508 if test "$enableval" = yes; then
2509 ac_cv_use_debug='wxUSE_DEBUG=yes'
2510 else
2511 ac_cv_use_debug='wxUSE_DEBUG=no'
2512 fi
2513
2514 else
2515
2516 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2517 if test "x$LINE" != x ; then
2518 eval "DEFAULT_$LINE"
2519 else
2520 no_cache=1
2521 fi
2522
2523 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2524
2525 fi
2526
2527
2528 eval "$ac_cv_use_debug"
2529 if test "$no_cache" != 1; then
2530 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2531 fi
2532
2533 if test "$wxUSE_DEBUG" = yes; then
2534 echo "$ac_t""yes" 1>&6
2535 else
2536 echo "$ac_t""no" 1>&6
2537 fi
2538
2539
2540
2541 enablestring=
2542 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2543 echo "configure:2544: checking for --${enablestring:-enable}-precomp" >&5
2544 no_cache=0
2545 # Check whether --enable-precomp or --disable-precomp was given.
2546 if test "${enable_precomp+set}" = set; then
2547 enableval="$enable_precomp"
2548
2549 if test "$enableval" = yes; then
2550 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2551 else
2552 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2553 fi
2554
2555 else
2556
2557 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2565
2566 fi
2567
2568
2569 eval "$ac_cv_use_precomp"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_PRECOMP" = yes; then
2575 echo "$ac_t""yes" 1>&6
2576 else
2577 echo "$ac_t""no" 1>&6
2578 fi
2579
2580
2581 if test "$wxUSE_DEBUG" = "yes"; then
2582 DEFAULT_wxUSE_DEBUG_FLAG=yes
2583 DEFAULT_wxUSE_DEBUG_INFO=yes
2584 elif test "$wxUSE_DEBUG" = "no"; then
2585 DEFAULT_wxUSE_DEBUG_FLAG=no
2586 DEFAULT_wxUSE_DEBUG_INFO=no
2587 fi
2588
2589
2590 enablestring=
2591 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2592 echo "configure:2593: checking for --${enablestring:-enable}-debug_flag" >&5
2593 no_cache=0
2594 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2595 if test "${enable_debug_flag+set}" = set; then
2596 enableval="$enable_debug_flag"
2597
2598 if test "$enableval" = yes; then
2599 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2600 else
2601 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2602 fi
2603
2604 else
2605
2606 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
2613 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2614
2615 fi
2616
2617
2618 eval "$ac_cv_use_debug_flag"
2619 if test "$no_cache" != 1; then
2620 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2621 fi
2622
2623 if test "$wxUSE_DEBUG_FLAG" = yes; then
2624 echo "$ac_t""yes" 1>&6
2625 else
2626 echo "$ac_t""no" 1>&6
2627 fi
2628
2629
2630 enablestring=
2631 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2632 echo "configure:2633: checking for --${enablestring:-enable}-debug_info" >&5
2633 no_cache=0
2634 # Check whether --enable-debug_info or --disable-debug_info was given.
2635 if test "${enable_debug_info+set}" = set; then
2636 enableval="$enable_debug_info"
2637
2638 if test "$enableval" = yes; then
2639 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2640 else
2641 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2642 fi
2643
2644 else
2645
2646 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2647 if test "x$LINE" != x ; then
2648 eval "DEFAULT_$LINE"
2649 else
2650 no_cache=1
2651 fi
2652
2653 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2654
2655 fi
2656
2657
2658 eval "$ac_cv_use_debug_info"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_DEBUG_INFO" = yes; then
2664 echo "$ac_t""yes" 1>&6
2665 else
2666 echo "$ac_t""no" 1>&6
2667 fi
2668
2669
2670 enablestring=
2671 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2672 echo "configure:2673: checking for --${enablestring:-enable}-debug_gdb" >&5
2673 no_cache=0
2674 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2675 if test "${enable_debug_gdb+set}" = set; then
2676 enableval="$enable_debug_gdb"
2677
2678 if test "$enableval" = yes; then
2679 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2680 else
2681 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2682 fi
2683
2684 else
2685
2686 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2687 if test "x$LINE" != x ; then
2688 eval "DEFAULT_$LINE"
2689 else
2690 no_cache=1
2691 fi
2692
2693 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2694
2695 fi
2696
2697
2698 eval "$ac_cv_use_debug_gdb"
2699 if test "$no_cache" != 1; then
2700 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2701 fi
2702
2703 if test "$wxUSE_DEBUG_GDB" = yes; then
2704 echo "$ac_t""yes" 1>&6
2705 else
2706 echo "$ac_t""no" 1>&6
2707 fi
2708
2709
2710 enablestring=
2711 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2712 echo "configure:2713: checking for --${enablestring:-enable}-debug_cntxt" >&5
2713 no_cache=0
2714 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2715 if test "${enable_debug_cntxt+set}" = set; then
2716 enableval="$enable_debug_cntxt"
2717
2718 if test "$enableval" = yes; then
2719 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2720 else
2721 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2722 fi
2723
2724 else
2725
2726 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
2733 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2734
2735 fi
2736
2737
2738 eval "$ac_cv_use_debug_cntxt"
2739 if test "$no_cache" != 1; then
2740 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2741 fi
2742
2743 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2744 echo "$ac_t""yes" 1>&6
2745 else
2746 echo "$ac_t""no" 1>&6
2747 fi
2748
2749
2750 enablestring=
2751 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2752 echo "configure:2753: checking for --${enablestring:-enable}-mem_tracing" >&5
2753 no_cache=0
2754 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2755 if test "${enable_mem_tracing+set}" = set; then
2756 enableval="$enable_mem_tracing"
2757
2758 if test "$enableval" = yes; then
2759 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2760 else
2761 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2762 fi
2763
2764 else
2765
2766 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2767 if test "x$LINE" != x ; then
2768 eval "DEFAULT_$LINE"
2769 else
2770 no_cache=1
2771 fi
2772
2773 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2774
2775 fi
2776
2777
2778 eval "$ac_cv_use_mem_tracing"
2779 if test "$no_cache" != 1; then
2780 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2781 fi
2782
2783 if test "$wxUSE_MEM_TRACING" = yes; then
2784 echo "$ac_t""yes" 1>&6
2785 else
2786 echo "$ac_t""no" 1>&6
2787 fi
2788
2789
2790 enablestring=
2791 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2792 echo "configure:2793: checking for --${enablestring:-enable}-profile" >&5
2793 no_cache=0
2794 # Check whether --enable-profile or --disable-profile was given.
2795 if test "${enable_profile+set}" = set; then
2796 enableval="$enable_profile"
2797
2798 if test "$enableval" = yes; then
2799 ac_cv_use_profile='wxUSE_PROFILE=yes'
2800 else
2801 ac_cv_use_profile='wxUSE_PROFILE=no'
2802 fi
2803
2804 else
2805
2806 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2807 if test "x$LINE" != x ; then
2808 eval "DEFAULT_$LINE"
2809 else
2810 no_cache=1
2811 fi
2812
2813 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2814
2815 fi
2816
2817
2818 eval "$ac_cv_use_profile"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_PROFILE" = yes; then
2824 echo "$ac_t""yes" 1>&6
2825 else
2826 echo "$ac_t""no" 1>&6
2827 fi
2828
2829
2830 enablestring=
2831 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2832 echo "configure:2833: checking for --${enablestring:-enable}-no_rtti" >&5
2833 no_cache=0
2834 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2835 if test "${enable_no_rtti+set}" = set; then
2836 enableval="$enable_no_rtti"
2837
2838 if test "$enableval" = yes; then
2839 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2840 else
2841 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2842 fi
2843
2844 else
2845
2846 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2847 if test "x$LINE" != x ; then
2848 eval "DEFAULT_$LINE"
2849 else
2850 no_cache=1
2851 fi
2852
2853 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2854
2855 fi
2856
2857
2858 eval "$ac_cv_use_no_rtti"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_NO_RTTI" = yes; then
2864 echo "$ac_t""yes" 1>&6
2865 else
2866 echo "$ac_t""no" 1>&6
2867 fi
2868
2869
2870 enablestring=
2871 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2872 echo "configure:2873: checking for --${enablestring:-enable}-no_exceptions" >&5
2873 no_cache=0
2874 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2875 if test "${enable_no_exceptions+set}" = set; then
2876 enableval="$enable_no_exceptions"
2877
2878 if test "$enableval" = yes; then
2879 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2880 else
2881 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2882 fi
2883
2884 else
2885
2886 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2887 if test "x$LINE" != x ; then
2888 eval "DEFAULT_$LINE"
2889 else
2890 no_cache=1
2891 fi
2892
2893 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2894
2895 fi
2896
2897
2898 eval "$ac_cv_use_no_exceptions"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2904 echo "$ac_t""yes" 1>&6
2905 else
2906 echo "$ac_t""no" 1>&6
2907 fi
2908
2909
2910 enablestring=
2911 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2912 echo "configure:2913: checking for --${enablestring:-enable}-permissive" >&5
2913 no_cache=0
2914 # Check whether --enable-permissive or --disable-permissive was given.
2915 if test "${enable_permissive+set}" = set; then
2916 enableval="$enable_permissive"
2917
2918 if test "$enableval" = yes; then
2919 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2920 else
2921 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2922 fi
2923
2924 else
2925
2926 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2927 if test "x$LINE" != x ; then
2928 eval "DEFAULT_$LINE"
2929 else
2930 no_cache=1
2931 fi
2932
2933 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2934
2935 fi
2936
2937
2938 eval "$ac_cv_use_permissive"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_PERMISSIVE" = yes; then
2944 echo "$ac_t""yes" 1>&6
2945 else
2946 echo "$ac_t""no" 1>&6
2947 fi
2948
2949
2950 enablestring=
2951 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2952 echo "configure:2953: checking for --${enablestring:-enable}-no_deps" >&5
2953 no_cache=0
2954 # Check whether --enable-no_deps or --disable-no_deps was given.
2955 if test "${enable_no_deps+set}" = set; then
2956 enableval="$enable_no_deps"
2957
2958 if test "$enableval" = yes; then
2959 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2960 else
2961 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2962 fi
2963
2964 else
2965
2966 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2967 if test "x$LINE" != x ; then
2968 eval "DEFAULT_$LINE"
2969 else
2970 no_cache=1
2971 fi
2972
2973 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2974
2975 fi
2976
2977
2978 eval "$ac_cv_use_no_deps"
2979 if test "$no_cache" != 1; then
2980 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2981 fi
2982
2983 if test "$wxUSE_NO_DEPS" = yes; then
2984 echo "$ac_t""yes" 1>&6
2985 else
2986 echo "$ac_t""no" 1>&6
2987 fi
2988
2989
2990
2991 enablestring=
2992 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2993 echo "configure:2994: checking for --${enablestring:-enable}-compat20" >&5
2994 no_cache=0
2995 # Check whether --enable-compat20 or --disable-compat20 was given.
2996 if test "${enable_compat20+set}" = set; then
2997 enableval="$enable_compat20"
2998
2999 if test "$enableval" = yes; then
3000 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3001 else
3002 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3003 fi
3004
3005 else
3006
3007 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3015
3016 fi
3017
3018
3019 eval "$ac_cv_use_compat20"
3020 if test "$no_cache" != 1; then
3021 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3022 fi
3023
3024 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3025 echo "$ac_t""yes" 1>&6
3026 else
3027 echo "$ac_t""no" 1>&6
3028 fi
3029
3030
3031 enablestring=
3032 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3033 echo "configure:3034: checking for --${enablestring:-enable}-compat22" >&5
3034 no_cache=0
3035 # Check whether --enable-compat22 or --disable-compat22 was given.
3036 if test "${enable_compat22+set}" = set; then
3037 enableval="$enable_compat22"
3038
3039 if test "$enableval" = yes; then
3040 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3041 else
3042 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3043 fi
3044
3045 else
3046
3047 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3048 if test "x$LINE" != x ; then
3049 eval "DEFAULT_$LINE"
3050 else
3051 no_cache=1
3052 fi
3053
3054 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3055
3056 fi
3057
3058
3059 eval "$ac_cv_use_compat22"
3060 if test "$no_cache" != 1; then
3061 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3062 fi
3063
3064 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3065 echo "$ac_t""yes" 1>&6
3066 else
3067 echo "$ac_t""no" 1>&6
3068 fi
3069
3070
3071 enablestring=disable
3072 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3073 echo "configure:3074: checking for --${enablestring:-enable}-compat24" >&5
3074 no_cache=0
3075 # Check whether --enable-compat24 or --disable-compat24 was given.
3076 if test "${enable_compat24+set}" = set; then
3077 enableval="$enable_compat24"
3078
3079 if test "$enableval" = yes; then
3080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3081 else
3082 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3083 fi
3084
3085 else
3086
3087 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3088 if test "x$LINE" != x ; then
3089 eval "DEFAULT_$LINE"
3090 else
3091 no_cache=1
3092 fi
3093
3094 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3095
3096 fi
3097
3098
3099 eval "$ac_cv_use_compat24"
3100 if test "$no_cache" != 1; then
3101 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3102 fi
3103
3104 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3105 echo "$ac_t""yes" 1>&6
3106 else
3107 echo "$ac_t""no" 1>&6
3108 fi
3109
3110
3111 # Check whether --enable-rpath or --disable-rpath was given.
3112 if test "${enable_rpath+set}" = set; then
3113 enableval="$enable_rpath"
3114 wxRPATH_DIR="$enableval"
3115 fi
3116
3117
3118 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3119 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3120 fi
3121
3122
3123
3124
3125 enablestring=
3126 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3127 echo "configure:3128: checking for --${enablestring:-enable}-intl" >&5
3128 no_cache=0
3129 # Check whether --enable-intl or --disable-intl was given.
3130 if test "${enable_intl+set}" = set; then
3131 enableval="$enable_intl"
3132
3133 if test "$enableval" = yes; then
3134 ac_cv_use_intl='wxUSE_INTL=yes'
3135 else
3136 ac_cv_use_intl='wxUSE_INTL=no'
3137 fi
3138
3139 else
3140
3141 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3149
3150 fi
3151
3152
3153 eval "$ac_cv_use_intl"
3154 if test "$no_cache" != 1; then
3155 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3156 fi
3157
3158 if test "$wxUSE_INTL" = yes; then
3159 echo "$ac_t""yes" 1>&6
3160 else
3161 echo "$ac_t""no" 1>&6
3162 fi
3163
3164
3165 enablestring=
3166 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3167 echo "configure:3168: checking for --${enablestring:-enable}-config" >&5
3168 no_cache=0
3169 # Check whether --enable-config or --disable-config was given.
3170 if test "${enable_config+set}" = set; then
3171 enableval="$enable_config"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_config='wxUSE_CONFIG=yes'
3175 else
3176 ac_cv_use_config='wxUSE_CONFIG=no'
3177 fi
3178
3179 else
3180
3181 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3189
3190 fi
3191
3192
3193 eval "$ac_cv_use_config"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_CONFIG" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
3205
3206 enablestring=
3207 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3208 echo "configure:3209: checking for --${enablestring:-enable}-protocols" >&5
3209 no_cache=0
3210 # Check whether --enable-protocols or --disable-protocols was given.
3211 if test "${enable_protocols+set}" = set; then
3212 enableval="$enable_protocols"
3213
3214 if test "$enableval" = yes; then
3215 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3216 else
3217 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3218 fi
3219
3220 else
3221
3222 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3223 if test "x$LINE" != x ; then
3224 eval "DEFAULT_$LINE"
3225 else
3226 no_cache=1
3227 fi
3228
3229 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3230
3231 fi
3232
3233
3234 eval "$ac_cv_use_protocols"
3235 if test "$no_cache" != 1; then
3236 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3237 fi
3238
3239 if test "$wxUSE_PROTOCOL" = yes; then
3240 echo "$ac_t""yes" 1>&6
3241 else
3242 echo "$ac_t""no" 1>&6
3243 fi
3244
3245
3246 enablestring=
3247 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3248 echo "configure:3249: checking for --${enablestring:-enable}-ftp" >&5
3249 no_cache=0
3250 # Check whether --enable-ftp or --disable-ftp was given.
3251 if test "${enable_ftp+set}" = set; then
3252 enableval="$enable_ftp"
3253
3254 if test "$enableval" = yes; then
3255 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3256 else
3257 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3258 fi
3259
3260 else
3261
3262 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3270
3271 fi
3272
3273
3274 eval "$ac_cv_use_ftp"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3280 echo "$ac_t""yes" 1>&6
3281 else
3282 echo "$ac_t""no" 1>&6
3283 fi
3284
3285
3286 enablestring=
3287 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3288 echo "configure:3289: checking for --${enablestring:-enable}-http" >&5
3289 no_cache=0
3290 # Check whether --enable-http or --disable-http was given.
3291 if test "${enable_http+set}" = set; then
3292 enableval="$enable_http"
3293
3294 if test "$enableval" = yes; then
3295 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3296 else
3297 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3298 fi
3299
3300 else
3301
3302 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
3309 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3310
3311 fi
3312
3313
3314 eval "$ac_cv_use_http"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3320 echo "$ac_t""yes" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3323 fi
3324
3325
3326 enablestring=
3327 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3328 echo "configure:3329: checking for --${enablestring:-enable}-fileproto" >&5
3329 no_cache=0
3330 # Check whether --enable-fileproto or --disable-fileproto was given.
3331 if test "${enable_fileproto+set}" = set; then
3332 enableval="$enable_fileproto"
3333
3334 if test "$enableval" = yes; then
3335 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3336 else
3337 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3338 fi
3339
3340 else
3341
3342 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3350
3351 fi
3352
3353
3354 eval "$ac_cv_use_fileproto"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3360 echo "$ac_t""yes" 1>&6
3361 else
3362 echo "$ac_t""no" 1>&6
3363 fi
3364
3365
3366 enablestring=
3367 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3368 echo "configure:3369: checking for --${enablestring:-enable}-sockets" >&5
3369 no_cache=0
3370 # Check whether --enable-sockets or --disable-sockets was given.
3371 if test "${enable_sockets+set}" = set; then
3372 enableval="$enable_sockets"
3373
3374 if test "$enableval" = yes; then
3375 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3376 else
3377 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3378 fi
3379
3380 else
3381
3382 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3390
3391 fi
3392
3393
3394 eval "$ac_cv_use_sockets"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_SOCKETS" = yes; then
3400 echo "$ac_t""yes" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405
3406 enablestring=
3407 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3408 echo "configure:3409: checking for --${enablestring:-enable}-ole" >&5
3409 no_cache=0
3410 # Check whether --enable-ole or --disable-ole was given.
3411 if test "${enable_ole+set}" = set; then
3412 enableval="$enable_ole"
3413
3414 if test "$enableval" = yes; then
3415 ac_cv_use_ole='wxUSE_OLE=yes'
3416 else
3417 ac_cv_use_ole='wxUSE_OLE=no'
3418 fi
3419
3420 else
3421
3422 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3423 if test "x$LINE" != x ; then
3424 eval "DEFAULT_$LINE"
3425 else
3426 no_cache=1
3427 fi
3428
3429 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3430
3431 fi
3432
3433
3434 eval "$ac_cv_use_ole"
3435 if test "$no_cache" != 1; then
3436 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3437 fi
3438
3439 if test "$wxUSE_OLE" = yes; then
3440 echo "$ac_t""yes" 1>&6
3441 else
3442 echo "$ac_t""no" 1>&6
3443 fi
3444
3445
3446 enablestring=
3447 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3448 echo "configure:3449: checking for --${enablestring:-enable}-dataobj" >&5
3449 no_cache=0
3450 # Check whether --enable-dataobj or --disable-dataobj was given.
3451 if test "${enable_dataobj+set}" = set; then
3452 enableval="$enable_dataobj"
3453
3454 if test "$enableval" = yes; then
3455 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3456 else
3457 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3458 fi
3459
3460 else
3461
3462 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3470
3471 fi
3472
3473
3474 eval "$ac_cv_use_dataobj"
3475 if test "$no_cache" != 1; then
3476 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3477 fi
3478
3479 if test "$wxUSE_DATAOBJ" = yes; then
3480 echo "$ac_t""yes" 1>&6
3481 else
3482 echo "$ac_t""no" 1>&6
3483 fi
3484
3485
3486
3487 enablestring=
3488 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3489 echo "configure:3490: checking for --${enablestring:-enable}-ipc" >&5
3490 no_cache=0
3491 # Check whether --enable-ipc or --disable-ipc was given.
3492 if test "${enable_ipc+set}" = set; then
3493 enableval="$enable_ipc"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_ipc='wxUSE_IPC=yes'
3497 else
3498 ac_cv_use_ipc='wxUSE_IPC=no'
3499 fi
3500
3501 else
3502
3503 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3511
3512 fi
3513
3514
3515 eval "$ac_cv_use_ipc"
3516 if test "$no_cache" != 1; then
3517 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3518 fi
3519
3520 if test "$wxUSE_IPC" = yes; then
3521 echo "$ac_t""yes" 1>&6
3522 else
3523 echo "$ac_t""no" 1>&6
3524 fi
3525
3526
3527
3528 enablestring=
3529 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3530 echo "configure:3531: checking for --${enablestring:-enable}-cmdline" >&5
3531 no_cache=0
3532 # Check whether --enable-cmdline or --disable-cmdline was given.
3533 if test "${enable_cmdline+set}" = set; then
3534 enableval="$enable_cmdline"
3535
3536 if test "$enableval" = yes; then
3537 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3538 else
3539 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3540 fi
3541
3542 else
3543
3544 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3545 if test "x$LINE" != x ; then
3546 eval "DEFAULT_$LINE"
3547 else
3548 no_cache=1
3549 fi
3550
3551 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3552
3553 fi
3554
3555
3556 eval "$ac_cv_use_cmdline"
3557 if test "$no_cache" != 1; then
3558 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3559 fi
3560
3561 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3562 echo "$ac_t""yes" 1>&6
3563 else
3564 echo "$ac_t""no" 1>&6
3565 fi
3566
3567
3568 enablestring=
3569 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3570 echo "configure:3571: checking for --${enablestring:-enable}-datetime" >&5
3571 no_cache=0
3572 # Check whether --enable-datetime or --disable-datetime was given.
3573 if test "${enable_datetime+set}" = set; then
3574 enableval="$enable_datetime"
3575
3576 if test "$enableval" = yes; then
3577 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3578 else
3579 ac_cv_use_datetime='wxUSE_DATETIME=no'
3580 fi
3581
3582 else
3583
3584 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3585 if test "x$LINE" != x ; then
3586 eval "DEFAULT_$LINE"
3587 else
3588 no_cache=1
3589 fi
3590
3591 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3592
3593 fi
3594
3595
3596 eval "$ac_cv_use_datetime"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_DATETIME" = yes; then
3602 echo "$ac_t""yes" 1>&6
3603 else
3604 echo "$ac_t""no" 1>&6
3605 fi
3606
3607
3608 enablestring=
3609 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3610 echo "configure:3611: checking for --${enablestring:-enable}-timedate" >&5
3611 no_cache=0
3612 # Check whether --enable-timedate or --disable-timedate was given.
3613 if test "${enable_timedate+set}" = set; then
3614 enableval="$enable_timedate"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3618 else
3619 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3620 fi
3621
3622 else
3623
3624 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3632
3633 fi
3634
3635
3636 eval "$ac_cv_use_timedate"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_TIMEDATE" = yes; then
3642 echo "$ac_t""yes" 1>&6
3643 else
3644 echo "$ac_t""no" 1>&6
3645 fi
3646
3647
3648 enablestring=
3649 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3650 echo "configure:3651: checking for --${enablestring:-enable}-stopwatch" >&5
3651 no_cache=0
3652 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3653 if test "${enable_stopwatch+set}" = set; then
3654 enableval="$enable_stopwatch"
3655
3656 if test "$enableval" = yes; then
3657 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3658 else
3659 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3660 fi
3661
3662 else
3663
3664 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3672
3673 fi
3674
3675
3676 eval "$ac_cv_use_stopwatch"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_STOPWATCH" = yes; then
3682 echo "$ac_t""yes" 1>&6
3683 else
3684 echo "$ac_t""no" 1>&6
3685 fi
3686
3687
3688 enablestring=
3689 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3690 echo "configure:3691: checking for --${enablestring:-enable}-dialupman" >&5
3691 no_cache=0
3692 # Check whether --enable-dialupman or --disable-dialupman was given.
3693 if test "${enable_dialupman+set}" = set; then
3694 enableval="$enable_dialupman"
3695
3696 if test "$enableval" = yes; then
3697 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3698 else
3699 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3700 fi
3701
3702 else
3703
3704 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3705 if test "x$LINE" != x ; then
3706 eval "DEFAULT_$LINE"
3707 else
3708 no_cache=1
3709 fi
3710
3711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3712
3713 fi
3714
3715
3716 eval "$ac_cv_use_dialupman"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3722 echo "$ac_t""yes" 1>&6
3723 else
3724 echo "$ac_t""no" 1>&6
3725 fi
3726
3727
3728 enablestring=
3729 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3730 echo "configure:3731: checking for --${enablestring:-enable}-apple_ieee" >&5
3731 no_cache=0
3732 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3733 if test "${enable_apple_ieee+set}" = set; then
3734 enableval="$enable_apple_ieee"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3738 else
3739 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3740 fi
3741
3742 else
3743
3744 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3752
3753 fi
3754
3755
3756 eval "$ac_cv_use_apple_ieee"
3757 if test "$no_cache" != 1; then
3758 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3759 fi
3760
3761 if test "$wxUSE_APPLE_IEEE" = yes; then
3762 echo "$ac_t""yes" 1>&6
3763 else
3764 echo "$ac_t""no" 1>&6
3765 fi
3766
3767
3768 enablestring=
3769 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3770 echo "configure:3771: checking for --${enablestring:-enable}-timer" >&5
3771 no_cache=0
3772 # Check whether --enable-timer or --disable-timer was given.
3773 if test "${enable_timer+set}" = set; then
3774 enableval="$enable_timer"
3775
3776 if test "$enableval" = yes; then
3777 ac_cv_use_timer='wxUSE_TIMER=yes'
3778 else
3779 ac_cv_use_timer='wxUSE_TIMER=no'
3780 fi
3781
3782 else
3783
3784 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3785 if test "x$LINE" != x ; then
3786 eval "DEFAULT_$LINE"
3787 else
3788 no_cache=1
3789 fi
3790
3791 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3792
3793 fi
3794
3795
3796 eval "$ac_cv_use_timer"
3797 if test "$no_cache" != 1; then
3798 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3799 fi
3800
3801 if test "$wxUSE_TIMER" = yes; then
3802 echo "$ac_t""yes" 1>&6
3803 else
3804 echo "$ac_t""no" 1>&6
3805 fi
3806
3807
3808 enablestring=
3809 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3810 echo "configure:3811: checking for --${enablestring:-enable}-wave" >&5
3811 no_cache=0
3812 # Check whether --enable-wave or --disable-wave was given.
3813 if test "${enable_wave+set}" = set; then
3814 enableval="$enable_wave"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_wave='wxUSE_WAVE=yes'
3818 else
3819 ac_cv_use_wave='wxUSE_WAVE=no'
3820 fi
3821
3822 else
3823
3824 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3832
3833 fi
3834
3835
3836 eval "$ac_cv_use_wave"
3837 if test "$no_cache" != 1; then
3838 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3839 fi
3840
3841 if test "$wxUSE_WAVE" = yes; then
3842 echo "$ac_t""yes" 1>&6
3843 else
3844 echo "$ac_t""no" 1>&6
3845 fi
3846
3847
3848 enablestring=
3849 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3850 echo "configure:3851: checking for --${enablestring:-enable}-fraction" >&5
3851 no_cache=0
3852 # Check whether --enable-fraction or --disable-fraction was given.
3853 if test "${enable_fraction+set}" = set; then
3854 enableval="$enable_fraction"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3858 else
3859 ac_cv_use_fraction='wxUSE_FRACTION=no'
3860 fi
3861
3862 else
3863
3864 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3872
3873 fi
3874
3875
3876 eval "$ac_cv_use_fraction"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_FRACTION" = yes; then
3882 echo "$ac_t""yes" 1>&6
3883 else
3884 echo "$ac_t""no" 1>&6
3885 fi
3886
3887
3888 enablestring=
3889 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3890 echo "configure:3891: checking for --${enablestring:-enable}-dynlib" >&5
3891 no_cache=0
3892 # Check whether --enable-dynlib or --disable-dynlib was given.
3893 if test "${enable_dynlib+set}" = set; then
3894 enableval="$enable_dynlib"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3898 else
3899 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3900 fi
3901
3902 else
3903
3904 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3912
3913 fi
3914
3915
3916 eval "$ac_cv_use_dynlib"
3917 if test "$no_cache" != 1; then
3918 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3919 fi
3920
3921 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3922 echo "$ac_t""yes" 1>&6
3923 else
3924 echo "$ac_t""no" 1>&6
3925 fi
3926
3927
3928 enablestring=
3929 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3930 echo "configure:3931: checking for --${enablestring:-enable}-dynamicloader" >&5
3931 no_cache=0
3932 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3933 if test "${enable_dynamicloader+set}" = set; then
3934 enableval="$enable_dynamicloader"
3935
3936 if test "$enableval" = yes; then
3937 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3938 else
3939 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3940 fi
3941
3942 else
3943
3944 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3952
3953 fi
3954
3955
3956 eval "$ac_cv_use_dynamicloader"
3957 if test "$no_cache" != 1; then
3958 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3959 fi
3960
3961 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3962 echo "$ac_t""yes" 1>&6
3963 else
3964 echo "$ac_t""no" 1>&6
3965 fi
3966
3967
3968 enablestring=
3969 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3970 echo "configure:3971: checking for --${enablestring:-enable}-longlong" >&5
3971 no_cache=0
3972 # Check whether --enable-longlong or --disable-longlong was given.
3973 if test "${enable_longlong+set}" = set; then
3974 enableval="$enable_longlong"
3975
3976 if test "$enableval" = yes; then
3977 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3978 else
3979 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3980 fi
3981
3982 else
3983
3984 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3992
3993 fi
3994
3995
3996 eval "$ac_cv_use_longlong"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_LONGLONG" = yes; then
4002 echo "$ac_t""yes" 1>&6
4003 else
4004 echo "$ac_t""no" 1>&6
4005 fi
4006
4007
4008 enablestring=
4009 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
4010 echo "configure:4011: checking for --${enablestring:-enable}-geometry" >&5
4011 no_cache=0
4012 # Check whether --enable-geometry or --disable-geometry was given.
4013 if test "${enable_geometry+set}" = set; then
4014 enableval="$enable_geometry"
4015
4016 if test "$enableval" = yes; then
4017 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4018 else
4019 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4020 fi
4021
4022 else
4023
4024 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4025 if test "x$LINE" != x ; then
4026 eval "DEFAULT_$LINE"
4027 else
4028 no_cache=1
4029 fi
4030
4031 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4032
4033 fi
4034
4035
4036 eval "$ac_cv_use_geometry"
4037 if test "$no_cache" != 1; then
4038 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4039 fi
4040
4041 if test "$wxUSE_GEOMETRY" = yes; then
4042 echo "$ac_t""yes" 1>&6
4043 else
4044 echo "$ac_t""no" 1>&6
4045 fi
4046
4047
4048 enablestring=
4049 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4050 echo "configure:4051: checking for --${enablestring:-enable}-log" >&5
4051 no_cache=0
4052 # Check whether --enable-log or --disable-log was given.
4053 if test "${enable_log+set}" = set; then
4054 enableval="$enable_log"
4055
4056 if test "$enableval" = yes; then
4057 ac_cv_use_log='wxUSE_LOG=yes'
4058 else
4059 ac_cv_use_log='wxUSE_LOG=no'
4060 fi
4061
4062 else
4063
4064 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
4071 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4072
4073 fi
4074
4075
4076 eval "$ac_cv_use_log"
4077 if test "$no_cache" != 1; then
4078 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4079 fi
4080
4081 if test "$wxUSE_LOG" = yes; then
4082 echo "$ac_t""yes" 1>&6
4083 else
4084 echo "$ac_t""no" 1>&6
4085 fi
4086
4087
4088 enablestring=
4089 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4090 echo "configure:4091: checking for --${enablestring:-enable}-streams" >&5
4091 no_cache=0
4092 # Check whether --enable-streams or --disable-streams was given.
4093 if test "${enable_streams+set}" = set; then
4094 enableval="$enable_streams"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_streams='wxUSE_STREAMS=yes'
4098 else
4099 ac_cv_use_streams='wxUSE_STREAMS=no'
4100 fi
4101
4102 else
4103
4104 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4112
4113 fi
4114
4115
4116 eval "$ac_cv_use_streams"
4117 if test "$no_cache" != 1; then
4118 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4119 fi
4120
4121 if test "$wxUSE_STREAMS" = yes; then
4122 echo "$ac_t""yes" 1>&6
4123 else
4124 echo "$ac_t""no" 1>&6
4125 fi
4126
4127
4128 enablestring=
4129 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4130 echo "configure:4131: checking for --${enablestring:-enable}-file" >&5
4131 no_cache=0
4132 # Check whether --enable-file or --disable-file was given.
4133 if test "${enable_file+set}" = set; then
4134 enableval="$enable_file"
4135
4136 if test "$enableval" = yes; then
4137 ac_cv_use_file='wxUSE_FILE=yes'
4138 else
4139 ac_cv_use_file='wxUSE_FILE=no'
4140 fi
4141
4142 else
4143
4144 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4152
4153 fi
4154
4155
4156 eval "$ac_cv_use_file"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_FILE" = yes; then
4162 echo "$ac_t""yes" 1>&6
4163 else
4164 echo "$ac_t""no" 1>&6
4165 fi
4166
4167
4168 enablestring=
4169 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4170 echo "configure:4171: checking for --${enablestring:-enable}-ffile" >&5
4171 no_cache=0
4172 # Check whether --enable-ffile or --disable-ffile was given.
4173 if test "${enable_ffile+set}" = set; then
4174 enableval="$enable_ffile"
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_ffile='wxUSE_FFILE=yes'
4178 else
4179 ac_cv_use_ffile='wxUSE_FFILE=no'
4180 fi
4181
4182 else
4183
4184 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4192
4193 fi
4194
4195
4196 eval "$ac_cv_use_ffile"
4197 if test "$no_cache" != 1; then
4198 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4199 fi
4200
4201 if test "$wxUSE_FFILE" = yes; then
4202 echo "$ac_t""yes" 1>&6
4203 else
4204 echo "$ac_t""no" 1>&6
4205 fi
4206
4207
4208 enablestring=
4209 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4210 echo "configure:4211: checking for --${enablestring:-enable}-textbuf" >&5
4211 no_cache=0
4212 # Check whether --enable-textbuf or --disable-textbuf was given.
4213 if test "${enable_textbuf+set}" = set; then
4214 enableval="$enable_textbuf"
4215
4216 if test "$enableval" = yes; then
4217 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4218 else
4219 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4220 fi
4221
4222 else
4223
4224 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4232
4233 fi
4234
4235
4236 eval "$ac_cv_use_textbuf"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_TEXTBUFFER" = yes; then
4242 echo "$ac_t""yes" 1>&6
4243 else
4244 echo "$ac_t""no" 1>&6
4245 fi
4246
4247
4248 enablestring=
4249 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4250 echo "configure:4251: checking for --${enablestring:-enable}-textfile" >&5
4251 no_cache=0
4252 # Check whether --enable-textfile or --disable-textfile was given.
4253 if test "${enable_textfile+set}" = set; then
4254 enableval="$enable_textfile"
4255
4256 if test "$enableval" = yes; then
4257 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4258 else
4259 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4260 fi
4261
4262 else
4263
4264 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4265 if test "x$LINE" != x ; then
4266 eval "DEFAULT_$LINE"
4267 else
4268 no_cache=1
4269 fi
4270
4271 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4272
4273 fi
4274
4275
4276 eval "$ac_cv_use_textfile"
4277 if test "$no_cache" != 1; then
4278 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4279 fi
4280
4281 if test "$wxUSE_TEXTFILE" = yes; then
4282 echo "$ac_t""yes" 1>&6
4283 else
4284 echo "$ac_t""no" 1>&6
4285 fi
4286
4287
4288 enablestring=
4289 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4290 echo "configure:4291: checking for --${enablestring:-enable}-fontmap" >&5
4291 no_cache=0
4292 # Check whether --enable-fontmap or --disable-fontmap was given.
4293 if test "${enable_fontmap+set}" = set; then
4294 enableval="$enable_fontmap"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4298 else
4299 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4300 fi
4301
4302 else
4303
4304 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4312
4313 fi
4314
4315
4316 eval "$ac_cv_use_fontmap"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_FONTMAP" = yes; then
4322 echo "$ac_t""yes" 1>&6
4323 else
4324 echo "$ac_t""no" 1>&6
4325 fi
4326
4327
4328 enablestring=
4329 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4330 echo "configure:4331: checking for --${enablestring:-enable}-unicode" >&5
4331 no_cache=0
4332 # Check whether --enable-unicode or --disable-unicode was given.
4333 if test "${enable_unicode+set}" = set; then
4334 enableval="$enable_unicode"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4338 else
4339 ac_cv_use_unicode='wxUSE_UNICODE=no'
4340 fi
4341
4342 else
4343
4344 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4352
4353 fi
4354
4355
4356 eval "$ac_cv_use_unicode"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_UNICODE" = yes; then
4362 echo "$ac_t""yes" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4365 fi
4366
4367
4368 enablestring=
4369 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4370 echo "configure:4371: checking for --${enablestring:-enable}-mslu" >&5
4371 no_cache=0
4372 # Check whether --enable-mslu or --disable-mslu was given.
4373 if test "${enable_mslu+set}" = set; then
4374 enableval="$enable_mslu"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4378 else
4379 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4380 fi
4381
4382 else
4383
4384 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4392
4393 fi
4394
4395
4396 eval "$ac_cv_use_mslu"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_UNICODE_MSLU" = yes; then
4402 echo "$ac_t""yes" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4405 fi
4406
4407
4408 enablestring=
4409 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4410 echo "configure:4411: checking for --${enablestring:-enable}-wxprintfv" >&5
4411 no_cache=0
4412 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4413 if test "${enable_wxprintfv+set}" = set; then
4414 enableval="$enable_wxprintfv"
4415
4416 if test "$enableval" = yes; then
4417 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4418 else
4419 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4420 fi
4421
4422 else
4423
4424 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4425 if test "x$LINE" != x ; then
4426 eval "DEFAULT_$LINE"
4427 else
4428 no_cache=1
4429 fi
4430
4431 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4432
4433 fi
4434
4435
4436 eval "$ac_cv_use_wxprintfv"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4442 echo "$ac_t""yes" 1>&6
4443 else
4444 echo "$ac_t""no" 1>&6
4445 fi
4446
4447
4448 enablestring=
4449 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4450 echo "configure:4451: checking for --${enablestring:-enable}-std_iostreams" >&5
4451 no_cache=0
4452 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4453 if test "${enable_std_iostreams+set}" = set; then
4454 enableval="$enable_std_iostreams"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4458 else
4459 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4460 fi
4461
4462 else
4463
4464 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4472
4473 fi
4474
4475
4476 eval "$ac_cv_use_std_iostreams"
4477 if test "$no_cache" != 1; then
4478 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4479 fi
4480
4481 if test "$wxUSE_STD_IOSTREAM" = yes; then
4482 echo "$ac_t""yes" 1>&6
4483 else
4484 echo "$ac_t""no" 1>&6
4485 fi
4486
4487
4488 enablestring=
4489 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4490 echo "configure:4491: checking for --${enablestring:-enable}-filesystem" >&5
4491 no_cache=0
4492 # Check whether --enable-filesystem or --disable-filesystem was given.
4493 if test "${enable_filesystem+set}" = set; then
4494 enableval="$enable_filesystem"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4498 else
4499 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4500 fi
4501
4502 else
4503
4504 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4512
4513 fi
4514
4515
4516 eval "$ac_cv_use_filesystem"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_FILESYSTEM" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
4528 enablestring=
4529 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4530 echo "configure:4531: checking for --${enablestring:-enable}-fs_inet" >&5
4531 no_cache=0
4532 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4533 if test "${enable_fs_inet+set}" = set; then
4534 enableval="$enable_fs_inet"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4538 else
4539 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4540 fi
4541
4542 else
4543
4544 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4552
4553 fi
4554
4555
4556 eval "$ac_cv_use_fs_inet"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_FS_INET" = yes; then
4562 echo "$ac_t""yes" 1>&6
4563 else
4564 echo "$ac_t""no" 1>&6
4565 fi
4566
4567
4568 enablestring=
4569 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4570 echo "configure:4571: checking for --${enablestring:-enable}-fs_zip" >&5
4571 no_cache=0
4572 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4573 if test "${enable_fs_zip+set}" = set; then
4574 enableval="$enable_fs_zip"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4578 else
4579 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4580 fi
4581
4582 else
4583
4584 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4592
4593 fi
4594
4595
4596 eval "$ac_cv_use_fs_zip"
4597 if test "$no_cache" != 1; then
4598 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4599 fi
4600
4601 if test "$wxUSE_FS_ZIP" = yes; then
4602 echo "$ac_t""yes" 1>&6
4603 else
4604 echo "$ac_t""no" 1>&6
4605 fi
4606
4607
4608 enablestring=
4609 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4610 echo "configure:4611: checking for --${enablestring:-enable}-zipstream" >&5
4611 no_cache=0
4612 # Check whether --enable-zipstream or --disable-zipstream was given.
4613 if test "${enable_zipstream+set}" = set; then
4614 enableval="$enable_zipstream"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4618 else
4619 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4620 fi
4621
4622 else
4623
4624 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4632
4633 fi
4634
4635
4636 eval "$ac_cv_use_zipstream"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_ZIPSTREAM" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648
4649 enablestring=
4650 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4651 echo "configure:4652: checking for --${enablestring:-enable}-catch_segvs" >&5
4652 no_cache=0
4653 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4654 if test "${enable_catch_segvs+set}" = set; then
4655 enableval="$enable_catch_segvs"
4656
4657 if test "$enableval" = yes; then
4658 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4659 else
4660 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4661 fi
4662
4663 else
4664
4665 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4673
4674 fi
4675
4676
4677 eval "$ac_cv_use_catch_segvs"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4683 echo "$ac_t""yes" 1>&6
4684 else
4685 echo "$ac_t""no" 1>&6
4686 fi
4687
4688
4689 enablestring=
4690 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4691 echo "configure:4692: checking for --${enablestring:-enable}-snglinst" >&5
4692 no_cache=0
4693 # Check whether --enable-snglinst or --disable-snglinst was given.
4694 if test "${enable_snglinst+set}" = set; then
4695 enableval="$enable_snglinst"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4699 else
4700 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4701 fi
4702
4703 else
4704
4705 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4713
4714 fi
4715
4716
4717 eval "$ac_cv_use_snglinst"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729
4730 enablestring=
4731 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4732 echo "configure:4733: checking for --${enablestring:-enable}-mimetype" >&5
4733 no_cache=0
4734 # Check whether --enable-mimetype or --disable-mimetype was given.
4735 if test "${enable_mimetype+set}" = set; then
4736 enableval="$enable_mimetype"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4740 else
4741 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4742 fi
4743
4744 else
4745
4746 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4754
4755 fi
4756
4757
4758 eval "$ac_cv_use_mimetype"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_MIMETYPE" = yes; then
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4767 fi
4768
4769
4770 enablestring=
4771 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4772 echo "configure:4773: checking for --${enablestring:-enable}-system_options" >&5
4773 no_cache=0
4774 # Check whether --enable-system_options or --disable-system_options was given.
4775 if test "${enable_system_options+set}" = set; then
4776 enableval="$enable_system_options"
4777
4778 if test "$enableval" = yes; then
4779 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4780 else
4781 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4782 fi
4783
4784 else
4785
4786 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4787 if test "x$LINE" != x ; then
4788 eval "DEFAULT_$LINE"
4789 else
4790 no_cache=1
4791 fi
4792
4793 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4794
4795 fi
4796
4797
4798 eval "$ac_cv_use_system_options"
4799 if test "$no_cache" != 1; then
4800 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4801 fi
4802
4803 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4804 echo "$ac_t""yes" 1>&6
4805 else
4806 echo "$ac_t""no" 1>&6
4807 fi
4808
4809
4810
4811 enablestring=
4812 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4813 echo "configure:4814: checking for --${enablestring:-enable}-url" >&5
4814 no_cache=0
4815 # Check whether --enable-url or --disable-url was given.
4816 if test "${enable_url+set}" = set; then
4817 enableval="$enable_url"
4818
4819 if test "$enableval" = yes; then
4820 ac_cv_use_url='wxUSE_URL=yes'
4821 else
4822 ac_cv_use_url='wxUSE_URL=no'
4823 fi
4824
4825 else
4826
4827 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4828 if test "x$LINE" != x ; then
4829 eval "DEFAULT_$LINE"
4830 else
4831 no_cache=1
4832 fi
4833
4834 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4835
4836 fi
4837
4838
4839 eval "$ac_cv_use_url"
4840 if test "$no_cache" != 1; then
4841 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4842 fi
4843
4844 if test "$wxUSE_URL" = yes; then
4845 echo "$ac_t""yes" 1>&6
4846 else
4847 echo "$ac_t""no" 1>&6
4848 fi
4849
4850
4851 enablestring=
4852 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4853 echo "configure:4854: checking for --${enablestring:-enable}-protocol" >&5
4854 no_cache=0
4855 # Check whether --enable-protocol or --disable-protocol was given.
4856 if test "${enable_protocol+set}" = set; then
4857 enableval="$enable_protocol"
4858
4859 if test "$enableval" = yes; then
4860 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4861 else
4862 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4863 fi
4864
4865 else
4866
4867 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4868 if test "x$LINE" != x ; then
4869 eval "DEFAULT_$LINE"
4870 else
4871 no_cache=1
4872 fi
4873
4874 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4875
4876 fi
4877
4878
4879 eval "$ac_cv_use_protocol"
4880 if test "$no_cache" != 1; then
4881 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4882 fi
4883
4884 if test "$wxUSE_PROTOCOL" = yes; then
4885 echo "$ac_t""yes" 1>&6
4886 else
4887 echo "$ac_t""no" 1>&6
4888 fi
4889
4890
4891 enablestring=
4892 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4893 echo "configure:4894: checking for --${enablestring:-enable}-protocol_http" >&5
4894 no_cache=0
4895 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4896 if test "${enable_protocol_http+set}" = set; then
4897 enableval="$enable_protocol_http"
4898
4899 if test "$enableval" = yes; then
4900 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4901 else
4902 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4903 fi
4904
4905 else
4906
4907 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4908 if test "x$LINE" != x ; then
4909 eval "DEFAULT_$LINE"
4910 else
4911 no_cache=1
4912 fi
4913
4914 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4915
4916 fi
4917
4918
4919 eval "$ac_cv_use_protocol_http"
4920 if test "$no_cache" != 1; then
4921 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4922 fi
4923
4924 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4925 echo "$ac_t""yes" 1>&6
4926 else
4927 echo "$ac_t""no" 1>&6
4928 fi
4929
4930
4931 enablestring=
4932 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4933 echo "configure:4934: checking for --${enablestring:-enable}-protocol_ftp" >&5
4934 no_cache=0
4935 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4936 if test "${enable_protocol_ftp+set}" = set; then
4937 enableval="$enable_protocol_ftp"
4938
4939 if test "$enableval" = yes; then
4940 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4941 else
4942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4943 fi
4944
4945 else
4946
4947 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4955
4956 fi
4957
4958
4959 eval "$ac_cv_use_protocol_ftp"
4960 if test "$no_cache" != 1; then
4961 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4962 fi
4963
4964 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4965 echo "$ac_t""yes" 1>&6
4966 else
4967 echo "$ac_t""no" 1>&6
4968 fi
4969
4970
4971 enablestring=
4972 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4973 echo "configure:4974: checking for --${enablestring:-enable}-protocol_file" >&5
4974 no_cache=0
4975 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4976 if test "${enable_protocol_file+set}" = set; then
4977 enableval="$enable_protocol_file"
4978
4979 if test "$enableval" = yes; then
4980 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4981 else
4982 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4983 fi
4984
4985 else
4986
4987 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4995
4996 fi
4997
4998
4999 eval "$ac_cv_use_protocol_file"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5005 echo "$ac_t""yes" 1>&6
5006 else
5007 echo "$ac_t""no" 1>&6
5008 fi
5009
5010
5011
5012
5013
5014 enablestring=
5015 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
5016 echo "configure:5017: checking for --${enablestring:-enable}-threads" >&5
5017 no_cache=0
5018 # Check whether --enable-threads or --disable-threads was given.
5019 if test "${enable_threads+set}" = set; then
5020 enableval="$enable_threads"
5021
5022 if test "$enableval" = yes; then
5023 ac_cv_use_threads='wxUSE_THREADS=yes'
5024 else
5025 ac_cv_use_threads='wxUSE_THREADS=no'
5026 fi
5027
5028 else
5029
5030 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5031 if test "x$LINE" != x ; then
5032 eval "DEFAULT_$LINE"
5033 else
5034 no_cache=1
5035 fi
5036
5037 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5038
5039 fi
5040
5041
5042 eval "$ac_cv_use_threads"
5043 if test "$no_cache" != 1; then
5044 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5045 fi
5046
5047 if test "$wxUSE_THREADS" = yes; then
5048 echo "$ac_t""yes" 1>&6
5049 else
5050 echo "$ac_t""no" 1>&6
5051 fi
5052
5053
5054 if test "$wxUSE_GUI" = "yes"; then
5055
5056
5057
5058 enablestring=
5059 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5060 echo "configure:5061: checking for --${enablestring:-enable}-docview" >&5
5061 no_cache=0
5062 # Check whether --enable-docview or --disable-docview was given.
5063 if test "${enable_docview+set}" = set; then
5064 enableval="$enable_docview"
5065
5066 if test "$enableval" = yes; then
5067 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5068 else
5069 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5070 fi
5071
5072 else
5073
5074 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 else
5078 no_cache=1
5079 fi
5080
5081 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5082
5083 fi
5084
5085
5086 eval "$ac_cv_use_docview"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5092 echo "$ac_t""yes" 1>&6
5093 else
5094 echo "$ac_t""no" 1>&6
5095 fi
5096
5097
5098 enablestring=
5099 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5100 echo "configure:5101: checking for --${enablestring:-enable}-help" >&5
5101 no_cache=0
5102 # Check whether --enable-help or --disable-help was given.
5103 if test "${enable_help+set}" = set; then
5104 enableval="$enable_help"
5105
5106 if test "$enableval" = yes; then
5107 ac_cv_use_help='wxUSE_HELP=yes'
5108 else
5109 ac_cv_use_help='wxUSE_HELP=no'
5110 fi
5111
5112 else
5113
5114 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 else
5118 no_cache=1
5119 fi
5120
5121 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5122
5123 fi
5124
5125
5126 eval "$ac_cv_use_help"
5127 if test "$no_cache" != 1; then
5128 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5129 fi
5130
5131 if test "$wxUSE_HELP" = yes; then
5132 echo "$ac_t""yes" 1>&6
5133 else
5134 echo "$ac_t""no" 1>&6
5135 fi
5136
5137
5138 enablestring=
5139 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5140 echo "configure:5141: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5141 no_cache=0
5142 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5143 if test "${enable_mshtmlhelp+set}" = set; then
5144 enableval="$enable_mshtmlhelp"
5145
5146 if test "$enableval" = yes; then
5147 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5148 else
5149 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5150 fi
5151
5152 else
5153
5154 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5155 if test "x$LINE" != x ; then
5156 eval "DEFAULT_$LINE"
5157 else
5158 no_cache=1
5159 fi
5160
5161 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5162
5163 fi
5164
5165
5166 eval "$ac_cv_use_mshtmlhelp"
5167 if test "$no_cache" != 1; then
5168 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5169 fi
5170
5171 if test "$wxUSE_MS_HTML_HELP" = yes; then
5172 echo "$ac_t""yes" 1>&6
5173 else
5174 echo "$ac_t""no" 1>&6
5175 fi
5176
5177
5178 enablestring=
5179 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5180 echo "configure:5181: checking for --${enablestring:-enable}-html" >&5
5181 no_cache=0
5182 # Check whether --enable-html or --disable-html was given.
5183 if test "${enable_html+set}" = set; then
5184 enableval="$enable_html"
5185
5186 if test "$enableval" = yes; then
5187 ac_cv_use_html='wxUSE_HTML=yes'
5188 else
5189 ac_cv_use_html='wxUSE_HTML=no'
5190 fi
5191
5192 else
5193
5194 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5195 if test "x$LINE" != x ; then
5196 eval "DEFAULT_$LINE"
5197 else
5198 no_cache=1
5199 fi
5200
5201 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5202
5203 fi
5204
5205
5206 eval "$ac_cv_use_html"
5207 if test "$no_cache" != 1; then
5208 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5209 fi
5210
5211 if test "$wxUSE_HTML" = yes; then
5212 echo "$ac_t""yes" 1>&6
5213 else
5214 echo "$ac_t""no" 1>&6
5215 fi
5216
5217
5218 enablestring=
5219 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5220 echo "configure:5221: checking for --${enablestring:-enable}-htmlhelp" >&5
5221 no_cache=0
5222 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5223 if test "${enable_htmlhelp+set}" = set; then
5224 enableval="$enable_htmlhelp"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5228 else
5229 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5230 fi
5231
5232 else
5233
5234 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5242
5243 fi
5244
5245
5246 eval "$ac_cv_use_htmlhelp"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_WXHTML_HELP" = yes; then
5252 echo "$ac_t""yes" 1>&6
5253 else
5254 echo "$ac_t""no" 1>&6
5255 fi
5256
5257
5258 enablestring=
5259 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5260 echo "configure:5261: checking for --${enablestring:-enable}-constraints" >&5
5261 no_cache=0
5262 # Check whether --enable-constraints or --disable-constraints was given.
5263 if test "${enable_constraints+set}" = set; then
5264 enableval="$enable_constraints"
5265
5266 if test "$enableval" = yes; then
5267 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5268 else
5269 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5270 fi
5271
5272 else
5273
5274 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5275 if test "x$LINE" != x ; then
5276 eval "DEFAULT_$LINE"
5277 else
5278 no_cache=1
5279 fi
5280
5281 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5282
5283 fi
5284
5285
5286 eval "$ac_cv_use_constraints"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_CONSTRAINTS" = yes; then
5292 echo "$ac_t""yes" 1>&6
5293 else
5294 echo "$ac_t""no" 1>&6
5295 fi
5296
5297
5298 enablestring=
5299 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5300 echo "configure:5301: checking for --${enablestring:-enable}-printarch" >&5
5301 no_cache=0
5302 # Check whether --enable-printarch or --disable-printarch was given.
5303 if test "${enable_printarch+set}" = set; then
5304 enableval="$enable_printarch"
5305
5306 if test "$enableval" = yes; then
5307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5308 else
5309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5310 fi
5311
5312 else
5313
5314 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5315 if test "x$LINE" != x ; then
5316 eval "DEFAULT_$LINE"
5317 else
5318 no_cache=1
5319 fi
5320
5321 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5322
5323 fi
5324
5325
5326 eval "$ac_cv_use_printarch"
5327 if test "$no_cache" != 1; then
5328 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5329 fi
5330
5331 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5332 echo "$ac_t""yes" 1>&6
5333 else
5334 echo "$ac_t""no" 1>&6
5335 fi
5336
5337
5338 enablestring=
5339 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5340 echo "configure:5341: checking for --${enablestring:-enable}-mdi" >&5
5341 no_cache=0
5342 # Check whether --enable-mdi or --disable-mdi was given.
5343 if test "${enable_mdi+set}" = set; then
5344 enableval="$enable_mdi"
5345
5346 if test "$enableval" = yes; then
5347 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5348 else
5349 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5350 fi
5351
5352 else
5353
5354 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
5361 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5362
5363 fi
5364
5365
5366 eval "$ac_cv_use_mdi"
5367 if test "$no_cache" != 1; then
5368 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5369 fi
5370
5371 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5372 echo "$ac_t""yes" 1>&6
5373 else
5374 echo "$ac_t""no" 1>&6
5375 fi
5376
5377
5378 enablestring=
5379 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5380 echo "configure:5381: checking for --${enablestring:-enable}-loggui" >&5
5381 no_cache=0
5382 # Check whether --enable-loggui or --disable-loggui was given.
5383 if test "${enable_loggui+set}" = set; then
5384 enableval="$enable_loggui"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5388 else
5389 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5390 fi
5391
5392 else
5393
5394 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5402
5403 fi
5404
5405
5406 eval "$ac_cv_use_loggui"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_LOGGUI" = yes; then
5412 echo "$ac_t""yes" 1>&6
5413 else
5414 echo "$ac_t""no" 1>&6
5415 fi
5416
5417
5418 enablestring=
5419 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5420 echo "configure:5421: checking for --${enablestring:-enable}-logwin" >&5
5421 no_cache=0
5422 # Check whether --enable-logwin or --disable-logwin was given.
5423 if test "${enable_logwin+set}" = set; then
5424 enableval="$enable_logwin"
5425
5426 if test "$enableval" = yes; then
5427 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5428 else
5429 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5430 fi
5431
5432 else
5433
5434 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5442
5443 fi
5444
5445
5446 eval "$ac_cv_use_logwin"
5447 if test "$no_cache" != 1; then
5448 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5449 fi
5450
5451 if test "$wxUSE_LOGWINDOW" = yes; then
5452 echo "$ac_t""yes" 1>&6
5453 else
5454 echo "$ac_t""no" 1>&6
5455 fi
5456
5457
5458 enablestring=
5459 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5460 echo "configure:5461: checking for --${enablestring:-enable}-logdialog" >&5
5461 no_cache=0
5462 # Check whether --enable-logdialog or --disable-logdialog was given.
5463 if test "${enable_logdialog+set}" = set; then
5464 enableval="$enable_logdialog"
5465
5466 if test "$enableval" = yes; then
5467 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5468 else
5469 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5470 fi
5471
5472 else
5473
5474 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5482
5483 fi
5484
5485
5486 eval "$ac_cv_use_logdialog"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_LOGDIALOG" = yes; then
5492 echo "$ac_t""yes" 1>&6
5493 else
5494 echo "$ac_t""no" 1>&6
5495 fi
5496
5497
5498
5499 enablestring=
5500 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5501 echo "configure:5502: checking for --${enablestring:-enable}-postscript" >&5
5502 no_cache=0
5503 # Check whether --enable-postscript or --disable-postscript was given.
5504 if test "${enable_postscript+set}" = set; then
5505 enableval="$enable_postscript"
5506
5507 if test "$enableval" = yes; then
5508 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5509 else
5510 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5511 fi
5512
5513 else
5514
5515 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5523
5524 fi
5525
5526
5527 eval "$ac_cv_use_postscript"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_POSTSCRIPT" = yes; then
5533 echo "$ac_t""yes" 1>&6
5534 else
5535 echo "$ac_t""no" 1>&6
5536 fi
5537
5538
5539
5540
5541
5542 enablestring=
5543 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5544 echo "configure:5545: checking for --${enablestring:-enable}-prologio" >&5
5545 no_cache=0
5546 # Check whether --enable-prologio or --disable-prologio was given.
5547 if test "${enable_prologio+set}" = set; then
5548 enableval="$enable_prologio"
5549
5550 if test "$enableval" = yes; then
5551 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5552 else
5553 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5554 fi
5555
5556 else
5557
5558 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5559 if test "x$LINE" != x ; then
5560 eval "DEFAULT_$LINE"
5561 else
5562 no_cache=1
5563 fi
5564
5565 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5566
5567 fi
5568
5569
5570 eval "$ac_cv_use_prologio"
5571 if test "$no_cache" != 1; then
5572 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5573 fi
5574
5575 if test "$wxUSE_PROLOGIO" = yes; then
5576 echo "$ac_t""yes" 1>&6
5577 else
5578 echo "$ac_t""no" 1>&6
5579 fi
5580
5581
5582 enablestring=
5583 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5584 echo "configure:5585: checking for --${enablestring:-enable}-resources" >&5
5585 no_cache=0
5586 # Check whether --enable-resources or --disable-resources was given.
5587 if test "${enable_resources+set}" = set; then
5588 enableval="$enable_resources"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5592 else
5593 ac_cv_use_resources='wxUSE_RESOURCES=no'
5594 fi
5595
5596 else
5597
5598 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5606
5607 fi
5608
5609
5610 eval "$ac_cv_use_resources"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_RESOURCES" = yes; then
5616 echo "$ac_t""yes" 1>&6
5617 else
5618 echo "$ac_t""no" 1>&6
5619 fi
5620
5621
5622
5623 enablestring=
5624 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5625 echo "configure:5626: checking for --${enablestring:-enable}-xresources" >&5
5626 no_cache=0
5627 # Check whether --enable-xresources or --disable-xresources was given.
5628 if test "${enable_xresources+set}" = set; then
5629 enableval="$enable_xresources"
5630
5631 if test "$enableval" = yes; then
5632 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5633 else
5634 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5635 fi
5636
5637 else
5638
5639 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5640 if test "x$LINE" != x ; then
5641 eval "DEFAULT_$LINE"
5642 else
5643 no_cache=1
5644 fi
5645
5646 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5647
5648 fi
5649
5650
5651 eval "$ac_cv_use_xresources"
5652 if test "$no_cache" != 1; then
5653 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5654 fi
5655
5656 if test "$wxUSE_X_RESOURCES" = yes; then
5657 echo "$ac_t""yes" 1>&6
5658 else
5659 echo "$ac_t""no" 1>&6
5660 fi
5661
5662
5663
5664
5665 enablestring=
5666 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5667 echo "configure:5668: checking for --${enablestring:-enable}-clipboard" >&5
5668 no_cache=0
5669 # Check whether --enable-clipboard or --disable-clipboard was given.
5670 if test "${enable_clipboard+set}" = set; then
5671 enableval="$enable_clipboard"
5672
5673 if test "$enableval" = yes; then
5674 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5675 else
5676 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5677 fi
5678
5679 else
5680
5681 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5682 if test "x$LINE" != x ; then
5683 eval "DEFAULT_$LINE"
5684 else
5685 no_cache=1
5686 fi
5687
5688 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5689
5690 fi
5691
5692
5693 eval "$ac_cv_use_clipboard"
5694 if test "$no_cache" != 1; then
5695 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5696 fi
5697
5698 if test "$wxUSE_CLIPBOARD" = yes; then
5699 echo "$ac_t""yes" 1>&6
5700 else
5701 echo "$ac_t""no" 1>&6
5702 fi
5703
5704
5705 enablestring=
5706 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5707 echo "configure:5708: checking for --${enablestring:-enable}-dnd" >&5
5708 no_cache=0
5709 # Check whether --enable-dnd or --disable-dnd was given.
5710 if test "${enable_dnd+set}" = set; then
5711 enableval="$enable_dnd"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5715 else
5716 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5717 fi
5718
5719 else
5720
5721 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5729
5730 fi
5731
5732
5733 eval "$ac_cv_use_dnd"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5739 echo "$ac_t""yes" 1>&6
5740 else
5741 echo "$ac_t""no" 1>&6
5742 fi
5743
5744
5745 enablestring=
5746 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5747 echo "configure:5748: checking for --${enablestring:-enable}-metafile" >&5
5748 no_cache=0
5749 # Check whether --enable-metafile or --disable-metafile was given.
5750 if test "${enable_metafile+set}" = set; then
5751 enableval="$enable_metafile"
5752
5753 if test "$enableval" = yes; then
5754 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5755 else
5756 ac_cv_use_metafile='wxUSE_METAFILE=no'
5757 fi
5758
5759 else
5760
5761 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5769
5770 fi
5771
5772
5773 eval "$ac_cv_use_metafile"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_METAFILE" = yes; then
5779 echo "$ac_t""yes" 1>&6
5780 else
5781 echo "$ac_t""no" 1>&6
5782 fi
5783
5784
5785
5786 enablestring=
5787 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5788 echo "configure:5789: checking for --${enablestring:-enable}-treelayout" >&5
5789 no_cache=0
5790 # Check whether --enable-treelayout or --disable-treelayout was given.
5791 if test "${enable_treelayout+set}" = set; then
5792 enableval="$enable_treelayout"
5793
5794 if test "$enableval" = yes; then
5795 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5796 else
5797 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5798 fi
5799
5800 else
5801
5802 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5803 if test "x$LINE" != x ; then
5804 eval "DEFAULT_$LINE"
5805 else
5806 no_cache=1
5807 fi
5808
5809 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5810
5811 fi
5812
5813
5814 eval "$ac_cv_use_treelayout"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_TREELAYOUT" = yes; then
5820 echo "$ac_t""yes" 1>&6
5821 else
5822 echo "$ac_t""no" 1>&6
5823 fi
5824
5825
5826
5827
5828 enablestring=
5829 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5830 echo "configure:5831: checking for --${enablestring:-enable}-controls" >&5
5831 no_cache=0
5832 # Check whether --enable-controls or --disable-controls was given.
5833 if test "${enable_controls+set}" = set; then
5834 enableval="$enable_controls"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5838 else
5839 ac_cv_use_controls='wxUSE_CONTROLS=no'
5840 fi
5841
5842 else
5843
5844 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5852
5853 fi
5854
5855
5856 eval "$ac_cv_use_controls"
5857 if test "$no_cache" != 1; then
5858 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5859 fi
5860
5861 if test "$wxUSE_CONTROLS" = yes; then
5862 echo "$ac_t""yes" 1>&6
5863 else
5864 echo "$ac_t""no" 1>&6
5865 fi
5866
5867
5868 if test "$wxUSE_CONTROLS" = "yes"; then
5869 DEFAULT_wxUSE_ACCEL=yes
5870 DEFAULT_wxUSE_BMPBUTTON=yes
5871 DEFAULT_wxUSE_BUTTON=yes
5872 DEFAULT_wxUSE_CALCTRL=no
5873 DEFAULT_wxUSE_CARET=yes
5874 DEFAULT_wxUSE_COMBOBOX=yes
5875 DEFAULT_wxUSE_CHECKBOX=yes
5876 DEFAULT_wxUSE_CHECKLISTBOX=yes
5877 DEFAULT_wxUSE_CHOICE=yes
5878 DEFAULT_wxUSE_GAUGE=yes
5879 DEFAULT_wxUSE_GRID=yes
5880 DEFAULT_wxUSE_NEW_GRID=yes
5881 DEFAULT_wxUSE_IMAGLIST=yes
5882 DEFAULT_wxUSE_LISTBOX=yes
5883 DEFAULT_wxUSE_LISTCTRL=yes
5884 DEFAULT_wxUSE_NOTEBOOK=yes
5885 DEFAULT_wxUSE_PROPSHEET=yes
5886 DEFAULT_wxUSE_RADIOBOX=yes
5887 DEFAULT_wxUSE_RADIOBTN=yes
5888 DEFAULT_wxUSE_SASH=yes
5889 DEFAULT_wxUSE_SCROLLBAR=yes
5890 DEFAULT_wxUSE_SLIDER=yes
5891 DEFAULT_wxUSE_SPINBTN=yes
5892 DEFAULT_wxUSE_SPINCTRL=yes
5893 DEFAULT_wxUSE_SPLITTER=yes
5894 DEFAULT_wxUSE_STATBMP=yes
5895 DEFAULT_wxUSE_STATBOX=yes
5896 DEFAULT_wxUSE_STATLINE=yes
5897 DEFAULT_wxUSE_STATUSBAR=yes
5898 DEFAULT_wxUSE_TAB_DIALOG=yes
5899 DEFAULT_wxUSE_TOGGLEBTN=yes
5900 DEFAULT_wxUSE_TOOLBAR=yes
5901 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5902 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5903 DEFAULT_wxUSE_TOOLTIPS=yes
5904 DEFAULT_wxUSE_TREECTRL=yes
5905 DEFAULT_wxUSE_POPUPWIN=yes
5906 DEFAULT_wxUSE_TIPWINDOW=yes
5907 elif test "$wxUSE_CONTROLS" = "no"; then
5908 DEFAULT_wxUSE_ACCEL=no
5909 DEFAULT_wxUSE_BMPBUTTON=no
5910 DEFAULT_wxUSE_BUTTON=no
5911 DEFAULT_wxUSE_CALCTRL=no
5912 DEFAULT_wxUSE_CARET=no
5913 DEFAULT_wxUSE_COMBOBOX=no
5914 DEFAULT_wxUSE_CHECKBOX=no
5915 DEFAULT_wxUSE_CHECKLISTBOX=no
5916 DEFAULT_wxUSE_CHOICE=no
5917 DEFAULT_wxUSE_GAUGE=no
5918 DEFAULT_wxUSE_GRID=no
5919 DEFAULT_wxUSE_NEW_GRID=no
5920 DEFAULT_wxUSE_IMAGLIST=no
5921 DEFAULT_wxUSE_LISTBOX=no
5922 DEFAULT_wxUSE_LISTCTRL=no
5923 DEFAULT_wxUSE_NOTEBOOK=no
5924 DEFAULT_wxUSE_PROPSHEET=no
5925 DEFAULT_wxUSE_RADIOBOX=no
5926 DEFAULT_wxUSE_RADIOBTN=no
5927 DEFAULT_wxUSE_SASH=no
5928 DEFAULT_wxUSE_SCROLLBAR=no
5929 DEFAULT_wxUSE_SLIDER=no
5930 DEFAULT_wxUSE_SPINBTN=no
5931 DEFAULT_wxUSE_SPINCTRL=no
5932 DEFAULT_wxUSE_SPLITTER=no
5933 DEFAULT_wxUSE_STATBMP=no
5934 DEFAULT_wxUSE_STATBOX=no
5935 DEFAULT_wxUSE_STATLINE=no
5936 DEFAULT_wxUSE_STATUSBAR=no
5937 DEFAULT_wxUSE_TAB_DIALOG=no
5938 DEFAULT_wxUSE_TOGGLEBTN=no
5939 DEFAULT_wxUSE_TOOLBAR=no
5940 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5941 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5942 DEFAULT_wxUSE_TOOLTIPS=no
5943 DEFAULT_wxUSE_TREECTRL=no
5944 DEFAULT_wxUSE_POPUPWIN=no
5945 DEFAULT_wxUSE_TIPWINDOW=no
5946 fi
5947
5948 ## FIXME: This is a blatant hack
5949 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5950 wxUSE_PRINTING_ARCHITECTURE=no
5951 wxUSE_HELP=no
5952 wxUSE_CLIPBOARD=no
5953 wxUSE_DRAG_AND_DROP=no
5954 wxUSE_DATAOBJ=no
5955 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5956 DEFAULT_wxUSE_TEXTDLG=no
5957 DEFAULT_wxUSE_GAUGE=no
5958 DEFAULT_wxUSE_SCROLLBAR=no
5959 DEFAULT_wxUSE_SLIDER=no
5960 DEFAULT_wxUSE_COMBOBOX=no
5961 DEFAULT_wxUSE_CALCTRL=no
5962 DEFAULT_wxUSE_SPINBTN=no
5963 DEFAULT_wxUSE_SPINCTRL=no
5964 DEFAULT_wxUSE_TOOLTIPS=no
5965 DEFAULT_wxUSE_CHOICEDLG=no
5966 DEFAULT_wxUSE_COLOURDLG=no
5967 DEFAULT_wxUSE_DIRDLG=no
5968 DEFAULT_wxUSE_DRAGIMAGE=no
5969 DEFAULT_wxUSE_FINDREPLDLG=no
5970 DEFAULT_wxUSE_FONTDLG=no
5971 DEFAULT_wxUSE_GRID=no
5972 DEFAULT_wxUSE_NEW_GRID=no
5973 DEFAULT_wxUSE_NUMBERDLG=no
5974 DEFAULT_wxUSE_PROGRESSDLG=no
5975 DEFAULT_wxUSE_PROPSHEET=no
5976 DEFAULT_wxUSE_SASH=no
5977 DEFAULT_wxUSE_SPLITTER=no
5978 DEFAULT_wxUSE_WIZARDDLG=no
5979 DEFAULT_wxUSE_SPLITTER=no
5980 DEFAULT_wxUSE_STARTUP_TIPS=no
5981 DEFAULT_wxUSE_TREECTRL=no
5982 fi
5983
5984
5985 enablestring=
5986 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5987 echo "configure:5988: checking for --${enablestring:-enable}-accel" >&5
5988 no_cache=0
5989 # Check whether --enable-accel or --disable-accel was given.
5990 if test "${enable_accel+set}" = set; then
5991 enableval="$enable_accel"
5992
5993 if test "$enableval" = yes; then
5994 ac_cv_use_accel='wxUSE_ACCEL=yes'
5995 else
5996 ac_cv_use_accel='wxUSE_ACCEL=no'
5997 fi
5998
5999 else
6000
6001 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6002 if test "x$LINE" != x ; then
6003 eval "DEFAULT_$LINE"
6004 else
6005 no_cache=1
6006 fi
6007
6008 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6009
6010 fi
6011
6012
6013 eval "$ac_cv_use_accel"
6014 if test "$no_cache" != 1; then
6015 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6016 fi
6017
6018 if test "$wxUSE_ACCEL" = yes; then
6019 echo "$ac_t""yes" 1>&6
6020 else
6021 echo "$ac_t""no" 1>&6
6022 fi
6023
6024
6025 enablestring=
6026 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
6027 echo "configure:6028: checking for --${enablestring:-enable}-button" >&5
6028 no_cache=0
6029 # Check whether --enable-button or --disable-button was given.
6030 if test "${enable_button+set}" = set; then
6031 enableval="$enable_button"
6032
6033 if test "$enableval" = yes; then
6034 ac_cv_use_button='wxUSE_BUTTON=yes'
6035 else
6036 ac_cv_use_button='wxUSE_BUTTON=no'
6037 fi
6038
6039 else
6040
6041 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6049
6050 fi
6051
6052
6053 eval "$ac_cv_use_button"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_BUTTON" = yes; then
6059 echo "$ac_t""yes" 1>&6
6060 else
6061 echo "$ac_t""no" 1>&6
6062 fi
6063
6064
6065 enablestring=
6066 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
6067 echo "configure:6068: checking for --${enablestring:-enable}-bmpbutton" >&5
6068 no_cache=0
6069 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6070 if test "${enable_bmpbutton+set}" = set; then
6071 enableval="$enable_bmpbutton"
6072
6073 if test "$enableval" = yes; then
6074 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6075 else
6076 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6077 fi
6078
6079 else
6080
6081 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6082 if test "x$LINE" != x ; then
6083 eval "DEFAULT_$LINE"
6084 else
6085 no_cache=1
6086 fi
6087
6088 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6089
6090 fi
6091
6092
6093 eval "$ac_cv_use_bmpbutton"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_BMPBUTTON" = yes; then
6099 echo "$ac_t""yes" 1>&6
6100 else
6101 echo "$ac_t""no" 1>&6
6102 fi
6103
6104
6105 enablestring=
6106 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6107 echo "configure:6108: checking for --${enablestring:-enable}-calendar" >&5
6108 no_cache=0
6109 # Check whether --enable-calendar or --disable-calendar was given.
6110 if test "${enable_calendar+set}" = set; then
6111 enableval="$enable_calendar"
6112
6113 if test "$enableval" = yes; then
6114 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6115 else
6116 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6117 fi
6118
6119 else
6120
6121 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6129
6130 fi
6131
6132
6133 eval "$ac_cv_use_calendar"
6134 if test "$no_cache" != 1; then
6135 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6136 fi
6137
6138 if test "$wxUSE_CALCTRL" = yes; then
6139 echo "$ac_t""yes" 1>&6
6140 else
6141 echo "$ac_t""no" 1>&6
6142 fi
6143
6144
6145 enablestring=
6146 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6147 echo "configure:6148: checking for --${enablestring:-enable}-caret" >&5
6148 no_cache=0
6149 # Check whether --enable-caret or --disable-caret was given.
6150 if test "${enable_caret+set}" = set; then
6151 enableval="$enable_caret"
6152
6153 if test "$enableval" = yes; then
6154 ac_cv_use_caret='wxUSE_CARET=yes'
6155 else
6156 ac_cv_use_caret='wxUSE_CARET=no'
6157 fi
6158
6159 else
6160
6161 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6162 if test "x$LINE" != x ; then
6163 eval "DEFAULT_$LINE"
6164 else
6165 no_cache=1
6166 fi
6167
6168 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6169
6170 fi
6171
6172
6173 eval "$ac_cv_use_caret"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_CARET" = yes; then
6179 echo "$ac_t""yes" 1>&6
6180 else
6181 echo "$ac_t""no" 1>&6
6182 fi
6183
6184
6185 enablestring=
6186 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6187 echo "configure:6188: checking for --${enablestring:-enable}-checkbox" >&5
6188 no_cache=0
6189 # Check whether --enable-checkbox or --disable-checkbox was given.
6190 if test "${enable_checkbox+set}" = set; then
6191 enableval="$enable_checkbox"
6192
6193 if test "$enableval" = yes; then
6194 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6195 else
6196 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6197 fi
6198
6199 else
6200
6201 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6209
6210 fi
6211
6212
6213 eval "$ac_cv_use_checkbox"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_CHECKBOX" = yes; then
6219 echo "$ac_t""yes" 1>&6
6220 else
6221 echo "$ac_t""no" 1>&6
6222 fi
6223
6224
6225 enablestring=
6226 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6227 echo "configure:6228: checking for --${enablestring:-enable}-checklst" >&5
6228 no_cache=0
6229 # Check whether --enable-checklst or --disable-checklst was given.
6230 if test "${enable_checklst+set}" = set; then
6231 enableval="$enable_checklst"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6235 else
6236 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6237 fi
6238
6239 else
6240
6241 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6249
6250 fi
6251
6252
6253 eval "$ac_cv_use_checklst"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_CHECKLST" = yes; then
6259 echo "$ac_t""yes" 1>&6
6260 else
6261 echo "$ac_t""no" 1>&6
6262 fi
6263
6264
6265 enablestring=
6266 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6267 echo "configure:6268: checking for --${enablestring:-enable}-choice" >&5
6268 no_cache=0
6269 # Check whether --enable-choice or --disable-choice was given.
6270 if test "${enable_choice+set}" = set; then
6271 enableval="$enable_choice"
6272
6273 if test "$enableval" = yes; then
6274 ac_cv_use_choice='wxUSE_CHOICE=yes'
6275 else
6276 ac_cv_use_choice='wxUSE_CHOICE=no'
6277 fi
6278
6279 else
6280
6281 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6282 if test "x$LINE" != x ; then
6283 eval "DEFAULT_$LINE"
6284 else
6285 no_cache=1
6286 fi
6287
6288 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6289
6290 fi
6291
6292
6293 eval "$ac_cv_use_choice"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_CHOICE" = yes; then
6299 echo "$ac_t""yes" 1>&6
6300 else
6301 echo "$ac_t""no" 1>&6
6302 fi
6303
6304
6305 enablestring=
6306 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6307 echo "configure:6308: checking for --${enablestring:-enable}-combobox" >&5
6308 no_cache=0
6309 # Check whether --enable-combobox or --disable-combobox was given.
6310 if test "${enable_combobox+set}" = set; then
6311 enableval="$enable_combobox"
6312
6313 if test "$enableval" = yes; then
6314 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6315 else
6316 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6317 fi
6318
6319 else
6320
6321 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6322 if test "x$LINE" != x ; then
6323 eval "DEFAULT_$LINE"
6324 else
6325 no_cache=1
6326 fi
6327
6328 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6329
6330 fi
6331
6332
6333 eval "$ac_cv_use_combobox"
6334 if test "$no_cache" != 1; then
6335 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6336 fi
6337
6338 if test "$wxUSE_COMBOBOX" = yes; then
6339 echo "$ac_t""yes" 1>&6
6340 else
6341 echo "$ac_t""no" 1>&6
6342 fi
6343
6344
6345 enablestring=
6346 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6347 echo "configure:6348: checking for --${enablestring:-enable}-display" >&5
6348 no_cache=0
6349 # Check whether --enable-display or --disable-display was given.
6350 if test "${enable_display+set}" = set; then
6351 enableval="$enable_display"
6352
6353 if test "$enableval" = yes; then
6354 ac_cv_use_display='wxUSE_DISPLAY=yes'
6355 else
6356 ac_cv_use_display='wxUSE_DISPLAY=no'
6357 fi
6358
6359 else
6360
6361 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6369
6370 fi
6371
6372
6373 eval "$ac_cv_use_display"
6374 if test "$no_cache" != 1; then
6375 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6376 fi
6377
6378 if test "$wxUSE_DISPLAY" = yes; then
6379 echo "$ac_t""yes" 1>&6
6380 else
6381 echo "$ac_t""no" 1>&6
6382 fi
6383
6384
6385 enablestring=
6386 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6387 echo "configure:6388: checking for --${enablestring:-enable}-gauge" >&5
6388 no_cache=0
6389 # Check whether --enable-gauge or --disable-gauge was given.
6390 if test "${enable_gauge+set}" = set; then
6391 enableval="$enable_gauge"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6395 else
6396 ac_cv_use_gauge='wxUSE_GAUGE=no'
6397 fi
6398
6399 else
6400
6401 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6409
6410 fi
6411
6412
6413 eval "$ac_cv_use_gauge"
6414 if test "$no_cache" != 1; then
6415 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6416 fi
6417
6418 if test "$wxUSE_GAUGE" = yes; then
6419 echo "$ac_t""yes" 1>&6
6420 else
6421 echo "$ac_t""no" 1>&6
6422 fi
6423
6424
6425 enablestring=
6426 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6427 echo "configure:6428: checking for --${enablestring:-enable}-grid" >&5
6428 no_cache=0
6429 # Check whether --enable-grid or --disable-grid was given.
6430 if test "${enable_grid+set}" = set; then
6431 enableval="$enable_grid"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_grid='wxUSE_GRID=yes'
6435 else
6436 ac_cv_use_grid='wxUSE_GRID=no'
6437 fi
6438
6439 else
6440
6441 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6449
6450 fi
6451
6452
6453 eval "$ac_cv_use_grid"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_GRID" = yes; then
6459 echo "$ac_t""yes" 1>&6
6460 else
6461 echo "$ac_t""no" 1>&6
6462 fi
6463
6464
6465 enablestring=
6466 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6467 echo "configure:6468: checking for --${enablestring:-enable}-newgrid" >&5
6468 no_cache=0
6469 # Check whether --enable-newgrid or --disable-newgrid was given.
6470 if test "${enable_newgrid+set}" = set; then
6471 enableval="$enable_newgrid"
6472
6473 if test "$enableval" = yes; then
6474 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6475 else
6476 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6477 fi
6478
6479 else
6480
6481 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
6488 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6489
6490 fi
6491
6492
6493 eval "$ac_cv_use_newgrid"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_NEW_GRID" = yes; then
6499 echo "$ac_t""yes" 1>&6
6500 else
6501 echo "$ac_t""no" 1>&6
6502 fi
6503
6504
6505 enablestring=
6506 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6507 echo "configure:6508: checking for --${enablestring:-enable}-imaglist" >&5
6508 no_cache=0
6509 # Check whether --enable-imaglist or --disable-imaglist was given.
6510 if test "${enable_imaglist+set}" = set; then
6511 enableval="$enable_imaglist"
6512
6513 if test "$enableval" = yes; then
6514 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6515 else
6516 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6517 fi
6518
6519 else
6520
6521 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6522 if test "x$LINE" != x ; then
6523 eval "DEFAULT_$LINE"
6524 else
6525 no_cache=1
6526 fi
6527
6528 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6529
6530 fi
6531
6532
6533 eval "$ac_cv_use_imaglist"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_IMAGLIST" = yes; then
6539 echo "$ac_t""yes" 1>&6
6540 else
6541 echo "$ac_t""no" 1>&6
6542 fi
6543
6544
6545 enablestring=
6546 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6547 echo "configure:6548: checking for --${enablestring:-enable}-listbox" >&5
6548 no_cache=0
6549 # Check whether --enable-listbox or --disable-listbox was given.
6550 if test "${enable_listbox+set}" = set; then
6551 enableval="$enable_listbox"
6552
6553 if test "$enableval" = yes; then
6554 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6555 else
6556 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6557 fi
6558
6559 else
6560
6561 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6569
6570 fi
6571
6572
6573 eval "$ac_cv_use_listbox"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_LISTBOX" = yes; then
6579 echo "$ac_t""yes" 1>&6
6580 else
6581 echo "$ac_t""no" 1>&6
6582 fi
6583
6584
6585 enablestring=
6586 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6587 echo "configure:6588: checking for --${enablestring:-enable}-listctrl" >&5
6588 no_cache=0
6589 # Check whether --enable-listctrl or --disable-listctrl was given.
6590 if test "${enable_listctrl+set}" = set; then
6591 enableval="$enable_listctrl"
6592
6593 if test "$enableval" = yes; then
6594 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6595 else
6596 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6597 fi
6598
6599 else
6600
6601 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6602 if test "x$LINE" != x ; then
6603 eval "DEFAULT_$LINE"
6604 else
6605 no_cache=1
6606 fi
6607
6608 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6609
6610 fi
6611
6612
6613 eval "$ac_cv_use_listctrl"
6614 if test "$no_cache" != 1; then
6615 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6616 fi
6617
6618 if test "$wxUSE_LISTCTRL" = yes; then
6619 echo "$ac_t""yes" 1>&6
6620 else
6621 echo "$ac_t""no" 1>&6
6622 fi
6623
6624
6625 enablestring=
6626 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6627 echo "configure:6628: checking for --${enablestring:-enable}-notebook" >&5
6628 no_cache=0
6629 # Check whether --enable-notebook or --disable-notebook was given.
6630 if test "${enable_notebook+set}" = set; then
6631 enableval="$enable_notebook"
6632
6633 if test "$enableval" = yes; then
6634 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6635 else
6636 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6637 fi
6638
6639 else
6640
6641 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6642 if test "x$LINE" != x ; then
6643 eval "DEFAULT_$LINE"
6644 else
6645 no_cache=1
6646 fi
6647
6648 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6649
6650 fi
6651
6652
6653 eval "$ac_cv_use_notebook"
6654 if test "$no_cache" != 1; then
6655 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6656 fi
6657
6658 if test "$wxUSE_NOTEBOOK" = yes; then
6659 echo "$ac_t""yes" 1>&6
6660 else
6661 echo "$ac_t""no" 1>&6
6662 fi
6663
6664
6665 enablestring=
6666 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6667 echo "configure:6668: checking for --${enablestring:-enable}-propsheet" >&5
6668 no_cache=0
6669 # Check whether --enable-propsheet or --disable-propsheet was given.
6670 if test "${enable_propsheet+set}" = set; then
6671 enableval="$enable_propsheet"
6672
6673 if test "$enableval" = yes; then
6674 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6675 else
6676 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6677 fi
6678
6679 else
6680
6681 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6689
6690 fi
6691
6692
6693 eval "$ac_cv_use_propsheet"
6694 if test "$no_cache" != 1; then
6695 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6696 fi
6697
6698 if test "$wxUSE_PROPSHEET" = yes; then
6699 echo "$ac_t""yes" 1>&6
6700 else
6701 echo "$ac_t""no" 1>&6
6702 fi
6703
6704
6705 enablestring=
6706 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6707 echo "configure:6708: checking for --${enablestring:-enable}-radiobox" >&5
6708 no_cache=0
6709 # Check whether --enable-radiobox or --disable-radiobox was given.
6710 if test "${enable_radiobox+set}" = set; then
6711 enableval="$enable_radiobox"
6712
6713 if test "$enableval" = yes; then
6714 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6715 else
6716 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6717 fi
6718
6719 else
6720
6721 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6722 if test "x$LINE" != x ; then
6723 eval "DEFAULT_$LINE"
6724 else
6725 no_cache=1
6726 fi
6727
6728 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6729
6730 fi
6731
6732
6733 eval "$ac_cv_use_radiobox"
6734 if test "$no_cache" != 1; then
6735 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6736 fi
6737
6738 if test "$wxUSE_RADIOBOX" = yes; then
6739 echo "$ac_t""yes" 1>&6
6740 else
6741 echo "$ac_t""no" 1>&6
6742 fi
6743
6744
6745 enablestring=
6746 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6747 echo "configure:6748: checking for --${enablestring:-enable}-radiobtn" >&5
6748 no_cache=0
6749 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6750 if test "${enable_radiobtn+set}" = set; then
6751 enableval="$enable_radiobtn"
6752
6753 if test "$enableval" = yes; then
6754 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6755 else
6756 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6757 fi
6758
6759 else
6760
6761 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6762 if test "x$LINE" != x ; then
6763 eval "DEFAULT_$LINE"
6764 else
6765 no_cache=1
6766 fi
6767
6768 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6769
6770 fi
6771
6772
6773 eval "$ac_cv_use_radiobtn"
6774 if test "$no_cache" != 1; then
6775 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6776 fi
6777
6778 if test "$wxUSE_RADIOBTN" = yes; then
6779 echo "$ac_t""yes" 1>&6
6780 else
6781 echo "$ac_t""no" 1>&6
6782 fi
6783
6784
6785 enablestring=
6786 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6787 echo "configure:6788: checking for --${enablestring:-enable}-sash" >&5
6788 no_cache=0
6789 # Check whether --enable-sash or --disable-sash was given.
6790 if test "${enable_sash+set}" = set; then
6791 enableval="$enable_sash"
6792
6793 if test "$enableval" = yes; then
6794 ac_cv_use_sash='wxUSE_SASH=yes'
6795 else
6796 ac_cv_use_sash='wxUSE_SASH=no'
6797 fi
6798
6799 else
6800
6801 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6802 if test "x$LINE" != x ; then
6803 eval "DEFAULT_$LINE"
6804 else
6805 no_cache=1
6806 fi
6807
6808 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6809
6810 fi
6811
6812
6813 eval "$ac_cv_use_sash"
6814 if test "$no_cache" != 1; then
6815 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6816 fi
6817
6818 if test "$wxUSE_SASH" = yes; then
6819 echo "$ac_t""yes" 1>&6
6820 else
6821 echo "$ac_t""no" 1>&6
6822 fi
6823
6824
6825 enablestring=
6826 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6827 echo "configure:6828: checking for --${enablestring:-enable}-scrollbar" >&5
6828 no_cache=0
6829 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6830 if test "${enable_scrollbar+set}" = set; then
6831 enableval="$enable_scrollbar"
6832
6833 if test "$enableval" = yes; then
6834 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6835 else
6836 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6837 fi
6838
6839 else
6840
6841 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6842 if test "x$LINE" != x ; then
6843 eval "DEFAULT_$LINE"
6844 else
6845 no_cache=1
6846 fi
6847
6848 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6849
6850 fi
6851
6852
6853 eval "$ac_cv_use_scrollbar"
6854 if test "$no_cache" != 1; then
6855 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6856 fi
6857
6858 if test "$wxUSE_SCROLLBAR" = yes; then
6859 echo "$ac_t""yes" 1>&6
6860 else
6861 echo "$ac_t""no" 1>&6
6862 fi
6863
6864
6865 enablestring=
6866 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6867 echo "configure:6868: checking for --${enablestring:-enable}-slider" >&5
6868 no_cache=0
6869 # Check whether --enable-slider or --disable-slider was given.
6870 if test "${enable_slider+set}" = set; then
6871 enableval="$enable_slider"
6872
6873 if test "$enableval" = yes; then
6874 ac_cv_use_slider='wxUSE_SLIDER=yes'
6875 else
6876 ac_cv_use_slider='wxUSE_SLIDER=no'
6877 fi
6878
6879 else
6880
6881 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6882 if test "x$LINE" != x ; then
6883 eval "DEFAULT_$LINE"
6884 else
6885 no_cache=1
6886 fi
6887
6888 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6889
6890 fi
6891
6892
6893 eval "$ac_cv_use_slider"
6894 if test "$no_cache" != 1; then
6895 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6896 fi
6897
6898 if test "$wxUSE_SLIDER" = yes; then
6899 echo "$ac_t""yes" 1>&6
6900 else
6901 echo "$ac_t""no" 1>&6
6902 fi
6903
6904
6905 enablestring=
6906 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6907 echo "configure:6908: checking for --${enablestring:-enable}-spinbtn" >&5
6908 no_cache=0
6909 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6910 if test "${enable_spinbtn+set}" = set; then
6911 enableval="$enable_spinbtn"
6912
6913 if test "$enableval" = yes; then
6914 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6915 else
6916 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6917 fi
6918
6919 else
6920
6921 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6922 if test "x$LINE" != x ; then
6923 eval "DEFAULT_$LINE"
6924 else
6925 no_cache=1
6926 fi
6927
6928 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6929
6930 fi
6931
6932
6933 eval "$ac_cv_use_spinbtn"
6934 if test "$no_cache" != 1; then
6935 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6936 fi
6937
6938 if test "$wxUSE_SPINBTN" = yes; then
6939 echo "$ac_t""yes" 1>&6
6940 else
6941 echo "$ac_t""no" 1>&6
6942 fi
6943
6944
6945 enablestring=
6946 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6947 echo "configure:6948: checking for --${enablestring:-enable}-spinctrl" >&5
6948 no_cache=0
6949 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6950 if test "${enable_spinctrl+set}" = set; then
6951 enableval="$enable_spinctrl"
6952
6953 if test "$enableval" = yes; then
6954 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6955 else
6956 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6957 fi
6958
6959 else
6960
6961 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6962 if test "x$LINE" != x ; then
6963 eval "DEFAULT_$LINE"
6964 else
6965 no_cache=1
6966 fi
6967
6968 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6969
6970 fi
6971
6972
6973 eval "$ac_cv_use_spinctrl"
6974 if test "$no_cache" != 1; then
6975 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6976 fi
6977
6978 if test "$wxUSE_SPINCTRL" = yes; then
6979 echo "$ac_t""yes" 1>&6
6980 else
6981 echo "$ac_t""no" 1>&6
6982 fi
6983
6984
6985 enablestring=
6986 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6987 echo "configure:6988: checking for --${enablestring:-enable}-splitter" >&5
6988 no_cache=0
6989 # Check whether --enable-splitter or --disable-splitter was given.
6990 if test "${enable_splitter+set}" = set; then
6991 enableval="$enable_splitter"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6995 else
6996 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6997 fi
6998
6999 else
7000
7001 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7009
7010 fi
7011
7012
7013 eval "$ac_cv_use_splitter"
7014 if test "$no_cache" != 1; then
7015 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7016 fi
7017
7018 if test "$wxUSE_SPLITTER" = yes; then
7019 echo "$ac_t""yes" 1>&6
7020 else
7021 echo "$ac_t""no" 1>&6
7022 fi
7023
7024
7025 enablestring=
7026 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
7027 echo "configure:7028: checking for --${enablestring:-enable}-statbmp" >&5
7028 no_cache=0
7029 # Check whether --enable-statbmp or --disable-statbmp was given.
7030 if test "${enable_statbmp+set}" = set; then
7031 enableval="$enable_statbmp"
7032
7033 if test "$enableval" = yes; then
7034 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7035 else
7036 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7037 fi
7038
7039 else
7040
7041 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
7048 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7049
7050 fi
7051
7052
7053 eval "$ac_cv_use_statbmp"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_STATBMP" = yes; then
7059 echo "$ac_t""yes" 1>&6
7060 else
7061 echo "$ac_t""no" 1>&6
7062 fi
7063
7064
7065 enablestring=
7066 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
7067 echo "configure:7068: checking for --${enablestring:-enable}-statbox" >&5
7068 no_cache=0
7069 # Check whether --enable-statbox or --disable-statbox was given.
7070 if test "${enable_statbox+set}" = set; then
7071 enableval="$enable_statbox"
7072
7073 if test "$enableval" = yes; then
7074 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7075 else
7076 ac_cv_use_statbox='wxUSE_STATBOX=no'
7077 fi
7078
7079 else
7080
7081 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7082 if test "x$LINE" != x ; then
7083 eval "DEFAULT_$LINE"
7084 else
7085 no_cache=1
7086 fi
7087
7088 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7089
7090 fi
7091
7092
7093 eval "$ac_cv_use_statbox"
7094 if test "$no_cache" != 1; then
7095 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7096 fi
7097
7098 if test "$wxUSE_STATBOX" = yes; then
7099 echo "$ac_t""yes" 1>&6
7100 else
7101 echo "$ac_t""no" 1>&6
7102 fi
7103
7104
7105 enablestring=
7106 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7107 echo "configure:7108: checking for --${enablestring:-enable}-statline" >&5
7108 no_cache=0
7109 # Check whether --enable-statline or --disable-statline was given.
7110 if test "${enable_statline+set}" = set; then
7111 enableval="$enable_statline"
7112
7113 if test "$enableval" = yes; then
7114 ac_cv_use_statline='wxUSE_STATLINE=yes'
7115 else
7116 ac_cv_use_statline='wxUSE_STATLINE=no'
7117 fi
7118
7119 else
7120
7121 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7122 if test "x$LINE" != x ; then
7123 eval "DEFAULT_$LINE"
7124 else
7125 no_cache=1
7126 fi
7127
7128 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7129
7130 fi
7131
7132
7133 eval "$ac_cv_use_statline"
7134 if test "$no_cache" != 1; then
7135 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7136 fi
7137
7138 if test "$wxUSE_STATLINE" = yes; then
7139 echo "$ac_t""yes" 1>&6
7140 else
7141 echo "$ac_t""no" 1>&6
7142 fi
7143
7144
7145 enablestring=
7146 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7147 echo "configure:7148: checking for --${enablestring:-enable}-stattext" >&5
7148 no_cache=0
7149 # Check whether --enable-stattext or --disable-stattext was given.
7150 if test "${enable_stattext+set}" = set; then
7151 enableval="$enable_stattext"
7152
7153 if test "$enableval" = yes; then
7154 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7155 else
7156 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7157 fi
7158
7159 else
7160
7161 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7162 if test "x$LINE" != x ; then
7163 eval "DEFAULT_$LINE"
7164 else
7165 no_cache=1
7166 fi
7167
7168 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7169
7170 fi
7171
7172
7173 eval "$ac_cv_use_stattext"
7174 if test "$no_cache" != 1; then
7175 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7176 fi
7177
7178 if test "$wxUSE_STATTEXT" = yes; then
7179 echo "$ac_t""yes" 1>&6
7180 else
7181 echo "$ac_t""no" 1>&6
7182 fi
7183
7184
7185 enablestring=
7186 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7187 echo "configure:7188: checking for --${enablestring:-enable}-statusbar" >&5
7188 no_cache=0
7189 # Check whether --enable-statusbar or --disable-statusbar was given.
7190 if test "${enable_statusbar+set}" = set; then
7191 enableval="$enable_statusbar"
7192
7193 if test "$enableval" = yes; then
7194 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7195 else
7196 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7197 fi
7198
7199 else
7200
7201 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7202 if test "x$LINE" != x ; then
7203 eval "DEFAULT_$LINE"
7204 else
7205 no_cache=1
7206 fi
7207
7208 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7209
7210 fi
7211
7212
7213 eval "$ac_cv_use_statusbar"
7214 if test "$no_cache" != 1; then
7215 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7216 fi
7217
7218 if test "$wxUSE_STATUSBAR" = yes; then
7219 echo "$ac_t""yes" 1>&6
7220 else
7221 echo "$ac_t""no" 1>&6
7222 fi
7223
7224
7225 enablestring=
7226 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7227 echo "configure:7228: checking for --${enablestring:-enable}-tabdialog" >&5
7228 no_cache=0
7229 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7230 if test "${enable_tabdialog+set}" = set; then
7231 enableval="$enable_tabdialog"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7235 else
7236 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7237 fi
7238
7239 else
7240
7241 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7249
7250 fi
7251
7252
7253 eval "$ac_cv_use_tabdialog"
7254 if test "$no_cache" != 1; then
7255 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7256 fi
7257
7258 if test "$wxUSE_TABDIALOG" = yes; then
7259 echo "$ac_t""yes" 1>&6
7260 else
7261 echo "$ac_t""no" 1>&6
7262 fi
7263
7264
7265 enablestring=
7266 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7267 echo "configure:7268: checking for --${enablestring:-enable}-textctrl" >&5
7268 no_cache=0
7269 # Check whether --enable-textctrl or --disable-textctrl was given.
7270 if test "${enable_textctrl+set}" = set; then
7271 enableval="$enable_textctrl"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7275 else
7276 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7277 fi
7278
7279 else
7280
7281 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7289
7290 fi
7291
7292
7293 eval "$ac_cv_use_textctrl"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_TEXTCTRL" = yes; then
7299 echo "$ac_t""yes" 1>&6
7300 else
7301 echo "$ac_t""no" 1>&6
7302 fi
7303
7304
7305 enablestring=
7306 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7307 echo "configure:7308: checking for --${enablestring:-enable}-togglebtn" >&5
7308 no_cache=0
7309 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7310 if test "${enable_togglebtn+set}" = set; then
7311 enableval="$enable_togglebtn"
7312
7313 if test "$enableval" = yes; then
7314 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7315 else
7316 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7317 fi
7318
7319 else
7320
7321 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7322 if test "x$LINE" != x ; then
7323 eval "DEFAULT_$LINE"
7324 else
7325 no_cache=1
7326 fi
7327
7328 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7329
7330 fi
7331
7332
7333 eval "$ac_cv_use_togglebtn"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_TOGGLEBTN" = yes; then
7339 echo "$ac_t""yes" 1>&6
7340 else
7341 echo "$ac_t""no" 1>&6
7342 fi
7343
7344
7345 enablestring=
7346 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7347 echo "configure:7348: checking for --${enablestring:-enable}-toolbar" >&5
7348 no_cache=0
7349 # Check whether --enable-toolbar or --disable-toolbar was given.
7350 if test "${enable_toolbar+set}" = set; then
7351 enableval="$enable_toolbar"
7352
7353 if test "$enableval" = yes; then
7354 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7355 else
7356 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7357 fi
7358
7359 else
7360
7361 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7362 if test "x$LINE" != x ; then
7363 eval "DEFAULT_$LINE"
7364 else
7365 no_cache=1
7366 fi
7367
7368 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7369
7370 fi
7371
7372
7373 eval "$ac_cv_use_toolbar"
7374 if test "$no_cache" != 1; then
7375 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7376 fi
7377
7378 if test "$wxUSE_TOOLBAR" = yes; then
7379 echo "$ac_t""yes" 1>&6
7380 else
7381 echo "$ac_t""no" 1>&6
7382 fi
7383
7384
7385 enablestring=
7386 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7387 echo "configure:7388: checking for --${enablestring:-enable}-tbarnative" >&5
7388 no_cache=0
7389 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7390 if test "${enable_tbarnative+set}" = set; then
7391 enableval="$enable_tbarnative"
7392
7393 if test "$enableval" = yes; then
7394 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7395 else
7396 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7397 fi
7398
7399 else
7400
7401 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7402 if test "x$LINE" != x ; then
7403 eval "DEFAULT_$LINE"
7404 else
7405 no_cache=1
7406 fi
7407
7408 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7409
7410 fi
7411
7412
7413 eval "$ac_cv_use_tbarnative"
7414 if test "$no_cache" != 1; then
7415 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7416 fi
7417
7418 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7419 echo "$ac_t""yes" 1>&6
7420 else
7421 echo "$ac_t""no" 1>&6
7422 fi
7423
7424
7425 enablestring=
7426 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7427 echo "configure:7428: checking for --${enablestring:-enable}-tbarsmpl" >&5
7428 no_cache=0
7429 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7430 if test "${enable_tbarsmpl+set}" = set; then
7431 enableval="$enable_tbarsmpl"
7432
7433 if test "$enableval" = yes; then
7434 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7435 else
7436 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7437 fi
7438
7439 else
7440
7441 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7442 if test "x$LINE" != x ; then
7443 eval "DEFAULT_$LINE"
7444 else
7445 no_cache=1
7446 fi
7447
7448 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7449
7450 fi
7451
7452
7453 eval "$ac_cv_use_tbarsmpl"
7454 if test "$no_cache" != 1; then
7455 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7456 fi
7457
7458 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7459 echo "$ac_t""yes" 1>&6
7460 else
7461 echo "$ac_t""no" 1>&6
7462 fi
7463
7464
7465 enablestring=
7466 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7467 echo "configure:7468: checking for --${enablestring:-enable}-treectrl" >&5
7468 no_cache=0
7469 # Check whether --enable-treectrl or --disable-treectrl was given.
7470 if test "${enable_treectrl+set}" = set; then
7471 enableval="$enable_treectrl"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7475 else
7476 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7477 fi
7478
7479 else
7480
7481 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7489
7490 fi
7491
7492
7493 eval "$ac_cv_use_treectrl"
7494 if test "$no_cache" != 1; then
7495 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7496 fi
7497
7498 if test "$wxUSE_TREECTRL" = yes; then
7499 echo "$ac_t""yes" 1>&6
7500 else
7501 echo "$ac_t""no" 1>&6
7502 fi
7503
7504
7505 enablestring=
7506 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7507 echo "configure:7508: checking for --${enablestring:-enable}-tipwindow" >&5
7508 no_cache=0
7509 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7510 if test "${enable_tipwindow+set}" = set; then
7511 enableval="$enable_tipwindow"
7512
7513 if test "$enableval" = yes; then
7514 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7515 else
7516 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7517 fi
7518
7519 else
7520
7521 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
7528 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7529
7530 fi
7531
7532
7533 eval "$ac_cv_use_tipwindow"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_TIPWINDOW" = yes; then
7539 echo "$ac_t""yes" 1>&6
7540 else
7541 echo "$ac_t""no" 1>&6
7542 fi
7543
7544
7545 enablestring=
7546 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7547 echo "configure:7548: checking for --${enablestring:-enable}-popupwin" >&5
7548 no_cache=0
7549 # Check whether --enable-popupwin or --disable-popupwin was given.
7550 if test "${enable_popupwin+set}" = set; then
7551 enableval="$enable_popupwin"
7552
7553 if test "$enableval" = yes; then
7554 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7555 else
7556 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7557 fi
7558
7559 else
7560
7561 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7562 if test "x$LINE" != x ; then
7563 eval "DEFAULT_$LINE"
7564 else
7565 no_cache=1
7566 fi
7567
7568 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7569
7570 fi
7571
7572
7573 eval "$ac_cv_use_popupwin"
7574 if test "$no_cache" != 1; then
7575 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7576 fi
7577
7578 if test "$wxUSE_POPUPWIN" = yes; then
7579 echo "$ac_t""yes" 1>&6
7580 else
7581 echo "$ac_t""no" 1>&6
7582 fi
7583
7584
7585
7586
7587 enablestring=
7588 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7589 echo "configure:7590: checking for --${enablestring:-enable}-commondlg" >&5
7590 no_cache=0
7591 # Check whether --enable-commondlg or --disable-commondlg was given.
7592 if test "${enable_commondlg+set}" = set; then
7593 enableval="$enable_commondlg"
7594
7595 if test "$enableval" = yes; then
7596 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7597 else
7598 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7599 fi
7600
7601 else
7602
7603 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7611
7612 fi
7613
7614
7615 eval "$ac_cv_use_commondlg"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_COMMONDLGS" = yes; then
7621 echo "$ac_t""yes" 1>&6
7622 else
7623 echo "$ac_t""no" 1>&6
7624 fi
7625
7626
7627 enablestring=
7628 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7629 echo "configure:7630: checking for --${enablestring:-enable}-choicedlg" >&5
7630 no_cache=0
7631 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7632 if test "${enable_choicedlg+set}" = set; then
7633 enableval="$enable_choicedlg"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7637 else
7638 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7639 fi
7640
7641 else
7642
7643 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7651
7652 fi
7653
7654
7655 eval "$ac_cv_use_choicedlg"
7656 if test "$no_cache" != 1; then
7657 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7658 fi
7659
7660 if test "$wxUSE_CHOICEDLG" = yes; then
7661 echo "$ac_t""yes" 1>&6
7662 else
7663 echo "$ac_t""no" 1>&6
7664 fi
7665
7666
7667 enablestring=
7668 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7669 echo "configure:7670: checking for --${enablestring:-enable}-coldlg" >&5
7670 no_cache=0
7671 # Check whether --enable-coldlg or --disable-coldlg was given.
7672 if test "${enable_coldlg+set}" = set; then
7673 enableval="$enable_coldlg"
7674
7675 if test "$enableval" = yes; then
7676 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7677 else
7678 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7679 fi
7680
7681 else
7682
7683 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7691
7692 fi
7693
7694
7695 eval "$ac_cv_use_coldlg"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_COLOURDLG" = yes; then
7701 echo "$ac_t""yes" 1>&6
7702 else
7703 echo "$ac_t""no" 1>&6
7704 fi
7705
7706
7707 enablestring=
7708 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7709 echo "configure:7710: checking for --${enablestring:-enable}-filedlg" >&5
7710 no_cache=0
7711 # Check whether --enable-filedlg or --disable-filedlg was given.
7712 if test "${enable_filedlg+set}" = set; then
7713 enableval="$enable_filedlg"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7717 else
7718 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7719 fi
7720
7721 else
7722
7723 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7731
7732 fi
7733
7734
7735 eval "$ac_cv_use_filedlg"
7736 if test "$no_cache" != 1; then
7737 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7738 fi
7739
7740 if test "$wxUSE_FILEDLG" = yes; then
7741 echo "$ac_t""yes" 1>&6
7742 else
7743 echo "$ac_t""no" 1>&6
7744 fi
7745
7746
7747 enablestring=
7748 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7749 echo "configure:7750: checking for --${enablestring:-enable}-finddlg" >&5
7750 no_cache=0
7751 # Check whether --enable-finddlg or --disable-finddlg was given.
7752 if test "${enable_finddlg+set}" = set; then
7753 enableval="$enable_finddlg"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7757 else
7758 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7759 fi
7760
7761 else
7762
7763 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7771
7772 fi
7773
7774
7775 eval "$ac_cv_use_finddlg"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_FINDREPLDLG" = yes; then
7781 echo "$ac_t""yes" 1>&6
7782 else
7783 echo "$ac_t""no" 1>&6
7784 fi
7785
7786
7787 enablestring=
7788 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7789 echo "configure:7790: checking for --${enablestring:-enable}-fontdlg" >&5
7790 no_cache=0
7791 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7792 if test "${enable_fontdlg+set}" = set; then
7793 enableval="$enable_fontdlg"
7794
7795 if test "$enableval" = yes; then
7796 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7797 else
7798 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7799 fi
7800
7801 else
7802
7803 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7804 if test "x$LINE" != x ; then
7805 eval "DEFAULT_$LINE"
7806 else
7807 no_cache=1
7808 fi
7809
7810 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7811
7812 fi
7813
7814
7815 eval "$ac_cv_use_fontdlg"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_FONTDLG" = yes; then
7821 echo "$ac_t""yes" 1>&6
7822 else
7823 echo "$ac_t""no" 1>&6
7824 fi
7825
7826
7827 enablestring=
7828 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7829 echo "configure:7830: checking for --${enablestring:-enable}-dirdlg" >&5
7830 no_cache=0
7831 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7832 if test "${enable_dirdlg+set}" = set; then
7833 enableval="$enable_dirdlg"
7834
7835 if test "$enableval" = yes; then
7836 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7837 else
7838 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7839 fi
7840
7841 else
7842
7843 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7844 if test "x$LINE" != x ; then
7845 eval "DEFAULT_$LINE"
7846 else
7847 no_cache=1
7848 fi
7849
7850 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7851
7852 fi
7853
7854
7855 eval "$ac_cv_use_dirdlg"
7856 if test "$no_cache" != 1; then
7857 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7858 fi
7859
7860 if test "$wxUSE_DIRDLG" = yes; then
7861 echo "$ac_t""yes" 1>&6
7862 else
7863 echo "$ac_t""no" 1>&6
7864 fi
7865
7866
7867 enablestring=
7868 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7869 echo "configure:7870: checking for --${enablestring:-enable}-msgdlg" >&5
7870 no_cache=0
7871 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7872 if test "${enable_msgdlg+set}" = set; then
7873 enableval="$enable_msgdlg"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7877 else
7878 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7879 fi
7880
7881 else
7882
7883 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7891
7892 fi
7893
7894
7895 eval "$ac_cv_use_msgdlg"
7896 if test "$no_cache" != 1; then
7897 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7898 fi
7899
7900 if test "$wxUSE_MSGDLG" = yes; then
7901 echo "$ac_t""yes" 1>&6
7902 else
7903 echo "$ac_t""no" 1>&6
7904 fi
7905
7906
7907 enablestring=
7908 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7909 echo "configure:7910: checking for --${enablestring:-enable}-numberdlg" >&5
7910 no_cache=0
7911 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7912 if test "${enable_numberdlg+set}" = set; then
7913 enableval="$enable_numberdlg"
7914
7915 if test "$enableval" = yes; then
7916 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7917 else
7918 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7919 fi
7920
7921 else
7922
7923 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7924 if test "x$LINE" != x ; then
7925 eval "DEFAULT_$LINE"
7926 else
7927 no_cache=1
7928 fi
7929
7930 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7931
7932 fi
7933
7934
7935 eval "$ac_cv_use_numberdlg"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_NUMBERDLG" = yes; then
7941 echo "$ac_t""yes" 1>&6
7942 else
7943 echo "$ac_t""no" 1>&6
7944 fi
7945
7946
7947 enablestring=
7948 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7949 echo "configure:7950: checking for --${enablestring:-enable}-splash" >&5
7950 no_cache=0
7951 # Check whether --enable-splash or --disable-splash was given.
7952 if test "${enable_splash+set}" = set; then
7953 enableval="$enable_splash"
7954
7955 if test "$enableval" = yes; then
7956 ac_cv_use_splash='wxUSE_SPLASH=yes'
7957 else
7958 ac_cv_use_splash='wxUSE_SPLASH=no'
7959 fi
7960
7961 else
7962
7963 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7964 if test "x$LINE" != x ; then
7965 eval "DEFAULT_$LINE"
7966 else
7967 no_cache=1
7968 fi
7969
7970 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7971
7972 fi
7973
7974
7975 eval "$ac_cv_use_splash"
7976 if test "$no_cache" != 1; then
7977 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7978 fi
7979
7980 if test "$wxUSE_SPLASH" = yes; then
7981 echo "$ac_t""yes" 1>&6
7982 else
7983 echo "$ac_t""no" 1>&6
7984 fi
7985
7986
7987 enablestring=
7988 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7989 echo "configure:7990: checking for --${enablestring:-enable}-textdlg" >&5
7990 no_cache=0
7991 # Check whether --enable-textdlg or --disable-textdlg was given.
7992 if test "${enable_textdlg+set}" = set; then
7993 enableval="$enable_textdlg"
7994
7995 if test "$enableval" = yes; then
7996 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7997 else
7998 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7999 fi
8000
8001 else
8002
8003 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8011
8012 fi
8013
8014
8015 eval "$ac_cv_use_textdlg"
8016 if test "$no_cache" != 1; then
8017 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8018 fi
8019
8020 if test "$wxUSE_TEXTDLG" = yes; then
8021 echo "$ac_t""yes" 1>&6
8022 else
8023 echo "$ac_t""no" 1>&6
8024 fi
8025
8026
8027 enablestring=
8028 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
8029 echo "configure:8030: checking for --${enablestring:-enable}-tipdlg" >&5
8030 no_cache=0
8031 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8032 if test "${enable_tipdlg+set}" = set; then
8033 enableval="$enable_tipdlg"
8034
8035 if test "$enableval" = yes; then
8036 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8037 else
8038 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8039 fi
8040
8041 else
8042
8043 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8044 if test "x$LINE" != x ; then
8045 eval "DEFAULT_$LINE"
8046 else
8047 no_cache=1
8048 fi
8049
8050 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8051
8052 fi
8053
8054
8055 eval "$ac_cv_use_tipdlg"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_STARTUP_TIPS" = yes; then
8061 echo "$ac_t""yes" 1>&6
8062 else
8063 echo "$ac_t""no" 1>&6
8064 fi
8065
8066
8067 enablestring=
8068 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
8069 echo "configure:8070: checking for --${enablestring:-enable}-progressdlg" >&5
8070 no_cache=0
8071 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8072 if test "${enable_progressdlg+set}" = set; then
8073 enableval="$enable_progressdlg"
8074
8075 if test "$enableval" = yes; then
8076 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8077 else
8078 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8079 fi
8080
8081 else
8082
8083 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8084 if test "x$LINE" != x ; then
8085 eval "DEFAULT_$LINE"
8086 else
8087 no_cache=1
8088 fi
8089
8090 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8091
8092 fi
8093
8094
8095 eval "$ac_cv_use_progressdlg"
8096 if test "$no_cache" != 1; then
8097 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8098 fi
8099
8100 if test "$wxUSE_PROGRESSDLG" = yes; then
8101 echo "$ac_t""yes" 1>&6
8102 else
8103 echo "$ac_t""no" 1>&6
8104 fi
8105
8106
8107 enablestring=
8108 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8109 echo "configure:8110: checking for --${enablestring:-enable}-wizarddlg" >&5
8110 no_cache=0
8111 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8112 if test "${enable_wizarddlg+set}" = set; then
8113 enableval="$enable_wizarddlg"
8114
8115 if test "$enableval" = yes; then
8116 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8117 else
8118 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8119 fi
8120
8121 else
8122
8123 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8124 if test "x$LINE" != x ; then
8125 eval "DEFAULT_$LINE"
8126 else
8127 no_cache=1
8128 fi
8129
8130 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8131
8132 fi
8133
8134
8135 eval "$ac_cv_use_wizarddlg"
8136 if test "$no_cache" != 1; then
8137 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8138 fi
8139
8140 if test "$wxUSE_WIZARDDLG" = yes; then
8141 echo "$ac_t""yes" 1>&6
8142 else
8143 echo "$ac_t""no" 1>&6
8144 fi
8145
8146
8147
8148
8149 enablestring=
8150 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8151 echo "configure:8152: checking for --${enablestring:-enable}-menus" >&5
8152 no_cache=0
8153 # Check whether --enable-menus or --disable-menus was given.
8154 if test "${enable_menus+set}" = set; then
8155 enableval="$enable_menus"
8156
8157 if test "$enableval" = yes; then
8158 ac_cv_use_menus='wxUSE_MENUS=yes'
8159 else
8160 ac_cv_use_menus='wxUSE_MENUS=no'
8161 fi
8162
8163 else
8164
8165 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8166 if test "x$LINE" != x ; then
8167 eval "DEFAULT_$LINE"
8168 else
8169 no_cache=1
8170 fi
8171
8172 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8173
8174 fi
8175
8176
8177 eval "$ac_cv_use_menus"
8178 if test "$no_cache" != 1; then
8179 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8180 fi
8181
8182 if test "$wxUSE_MENUS" = yes; then
8183 echo "$ac_t""yes" 1>&6
8184 else
8185 echo "$ac_t""no" 1>&6
8186 fi
8187
8188
8189 enablestring=
8190 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8191 echo "configure:8192: checking for --${enablestring:-enable}-miniframe" >&5
8192 no_cache=0
8193 # Check whether --enable-miniframe or --disable-miniframe was given.
8194 if test "${enable_miniframe+set}" = set; then
8195 enableval="$enable_miniframe"
8196
8197 if test "$enableval" = yes; then
8198 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8199 else
8200 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8201 fi
8202
8203 else
8204
8205 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8206 if test "x$LINE" != x ; then
8207 eval "DEFAULT_$LINE"
8208 else
8209 no_cache=1
8210 fi
8211
8212 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8213
8214 fi
8215
8216
8217 eval "$ac_cv_use_miniframe"
8218 if test "$no_cache" != 1; then
8219 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8220 fi
8221
8222 if test "$wxUSE_MINIFRAME" = yes; then
8223 echo "$ac_t""yes" 1>&6
8224 else
8225 echo "$ac_t""no" 1>&6
8226 fi
8227
8228
8229 enablestring=
8230 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8231 echo "configure:8232: checking for --${enablestring:-enable}-tooltips" >&5
8232 no_cache=0
8233 # Check whether --enable-tooltips or --disable-tooltips was given.
8234 if test "${enable_tooltips+set}" = set; then
8235 enableval="$enable_tooltips"
8236
8237 if test "$enableval" = yes; then
8238 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8239 else
8240 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8241 fi
8242
8243 else
8244
8245 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8246 if test "x$LINE" != x ; then
8247 eval "DEFAULT_$LINE"
8248 else
8249 no_cache=1
8250 fi
8251
8252 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8253
8254 fi
8255
8256
8257 eval "$ac_cv_use_tooltips"
8258 if test "$no_cache" != 1; then
8259 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8260 fi
8261
8262 if test "$wxUSE_TOOLTIPS" = yes; then
8263 echo "$ac_t""yes" 1>&6
8264 else
8265 echo "$ac_t""no" 1>&6
8266 fi
8267
8268
8269 enablestring=
8270 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8271 echo "configure:8272: checking for --${enablestring:-enable}-splines" >&5
8272 no_cache=0
8273 # Check whether --enable-splines or --disable-splines was given.
8274 if test "${enable_splines+set}" = set; then
8275 enableval="$enable_splines"
8276
8277 if test "$enableval" = yes; then
8278 ac_cv_use_splines='wxUSE_SPLINES=yes'
8279 else
8280 ac_cv_use_splines='wxUSE_SPLINES=no'
8281 fi
8282
8283 else
8284
8285 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8286 if test "x$LINE" != x ; then
8287 eval "DEFAULT_$LINE"
8288 else
8289 no_cache=1
8290 fi
8291
8292 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8293
8294 fi
8295
8296
8297 eval "$ac_cv_use_splines"
8298 if test "$no_cache" != 1; then
8299 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8300 fi
8301
8302 if test "$wxUSE_SPLINES" = yes; then
8303 echo "$ac_t""yes" 1>&6
8304 else
8305 echo "$ac_t""no" 1>&6
8306 fi
8307
8308
8309 enablestring=
8310 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8311 echo "configure:8312: checking for --${enablestring:-enable}-validators" >&5
8312 no_cache=0
8313 # Check whether --enable-validators or --disable-validators was given.
8314 if test "${enable_validators+set}" = set; then
8315 enableval="$enable_validators"
8316
8317 if test "$enableval" = yes; then
8318 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8319 else
8320 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8321 fi
8322
8323 else
8324
8325 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8326 if test "x$LINE" != x ; then
8327 eval "DEFAULT_$LINE"
8328 else
8329 no_cache=1
8330 fi
8331
8332 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8333
8334 fi
8335
8336
8337 eval "$ac_cv_use_validators"
8338 if test "$no_cache" != 1; then
8339 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8340 fi
8341
8342 if test "$wxUSE_VALIDATORS" = yes; then
8343 echo "$ac_t""yes" 1>&6
8344 else
8345 echo "$ac_t""no" 1>&6
8346 fi
8347
8348
8349 enablestring=
8350 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8351 echo "configure:8352: checking for --${enablestring:-enable}-busyinfo" >&5
8352 no_cache=0
8353 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8354 if test "${enable_busyinfo+set}" = set; then
8355 enableval="$enable_busyinfo"
8356
8357 if test "$enableval" = yes; then
8358 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8359 else
8360 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8361 fi
8362
8363 else
8364
8365 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8366 if test "x$LINE" != x ; then
8367 eval "DEFAULT_$LINE"
8368 else
8369 no_cache=1
8370 fi
8371
8372 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8373
8374 fi
8375
8376
8377 eval "$ac_cv_use_busyinfo"
8378 if test "$no_cache" != 1; then
8379 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8380 fi
8381
8382 if test "$wxUSE_BUSYINFO" = yes; then
8383 echo "$ac_t""yes" 1>&6
8384 else
8385 echo "$ac_t""no" 1>&6
8386 fi
8387
8388
8389 enablestring=
8390 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8391 echo "configure:8392: checking for --${enablestring:-enable}-joystick" >&5
8392 no_cache=0
8393 # Check whether --enable-joystick or --disable-joystick was given.
8394 if test "${enable_joystick+set}" = set; then
8395 enableval="$enable_joystick"
8396
8397 if test "$enableval" = yes; then
8398 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8399 else
8400 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8401 fi
8402
8403 else
8404
8405 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8413
8414 fi
8415
8416
8417 eval "$ac_cv_use_joystick"
8418 if test "$no_cache" != 1; then
8419 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8420 fi
8421
8422 if test "$wxUSE_JOYSTICK" = yes; then
8423 echo "$ac_t""yes" 1>&6
8424 else
8425 echo "$ac_t""no" 1>&6
8426 fi
8427
8428
8429 enablestring=
8430 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8431 echo "configure:8432: checking for --${enablestring:-enable}-metafile" >&5
8432 no_cache=0
8433 # Check whether --enable-metafile or --disable-metafile was given.
8434 if test "${enable_metafile+set}" = set; then
8435 enableval="$enable_metafile"
8436
8437 if test "$enableval" = yes; then
8438 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8439 else
8440 ac_cv_use_metafile='wxUSE_METAFILE=no'
8441 fi
8442
8443 else
8444
8445 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8446 if test "x$LINE" != x ; then
8447 eval "DEFAULT_$LINE"
8448 else
8449 no_cache=1
8450 fi
8451
8452 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8453
8454 fi
8455
8456
8457 eval "$ac_cv_use_metafile"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_METAFILE" = yes; then
8463 echo "$ac_t""yes" 1>&6
8464 else
8465 echo "$ac_t""no" 1>&6
8466 fi
8467
8468
8469 enablestring=
8470 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8471 echo "configure:8472: checking for --${enablestring:-enable}-dragimage" >&5
8472 no_cache=0
8473 # Check whether --enable-dragimage or --disable-dragimage was given.
8474 if test "${enable_dragimage+set}" = set; then
8475 enableval="$enable_dragimage"
8476
8477 if test "$enableval" = yes; then
8478 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8479 else
8480 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8481 fi
8482
8483 else
8484
8485 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8486 if test "x$LINE" != x ; then
8487 eval "DEFAULT_$LINE"
8488 else
8489 no_cache=1
8490 fi
8491
8492 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8493
8494 fi
8495
8496
8497 eval "$ac_cv_use_dragimage"
8498 if test "$no_cache" != 1; then
8499 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8500 fi
8501
8502 if test "$wxUSE_DRAGIMAGE" = yes; then
8503 echo "$ac_t""yes" 1>&6
8504 else
8505 echo "$ac_t""no" 1>&6
8506 fi
8507
8508
8509
8510
8511 enablestring=
8512 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8513 echo "configure:8514: checking for --${enablestring:-enable}-palette" >&5
8514 no_cache=0
8515 # Check whether --enable-palette or --disable-palette was given.
8516 if test "${enable_palette+set}" = set; then
8517 enableval="$enable_palette"
8518
8519 if test "$enableval" = yes; then
8520 ac_cv_use_palette='wxUSE_PALETTE=yes'
8521 else
8522 ac_cv_use_palette='wxUSE_PALETTE=no'
8523 fi
8524
8525 else
8526
8527 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8528 if test "x$LINE" != x ; then
8529 eval "DEFAULT_$LINE"
8530 else
8531 no_cache=1
8532 fi
8533
8534 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8535
8536 fi
8537
8538
8539 eval "$ac_cv_use_palette"
8540 if test "$no_cache" != 1; then
8541 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8542 fi
8543
8544 if test "$wxUSE_PALETTE" = yes; then
8545 echo "$ac_t""yes" 1>&6
8546 else
8547 echo "$ac_t""no" 1>&6
8548 fi
8549
8550
8551 enablestring=
8552 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8553 echo "configure:8554: checking for --${enablestring:-enable}-image" >&5
8554 no_cache=0
8555 # Check whether --enable-image or --disable-image was given.
8556 if test "${enable_image+set}" = set; then
8557 enableval="$enable_image"
8558
8559 if test "$enableval" = yes; then
8560 ac_cv_use_image='wxUSE_IMAGE=yes'
8561 else
8562 ac_cv_use_image='wxUSE_IMAGE=no'
8563 fi
8564
8565 else
8566
8567 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8568 if test "x$LINE" != x ; then
8569 eval "DEFAULT_$LINE"
8570 else
8571 no_cache=1
8572 fi
8573
8574 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8575
8576 fi
8577
8578
8579 eval "$ac_cv_use_image"
8580 if test "$no_cache" != 1; then
8581 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8582 fi
8583
8584 if test "$wxUSE_IMAGE" = yes; then
8585 echo "$ac_t""yes" 1>&6
8586 else
8587 echo "$ac_t""no" 1>&6
8588 fi
8589
8590
8591 enablestring=
8592 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8593 echo "configure:8594: checking for --${enablestring:-enable}-gif" >&5
8594 no_cache=0
8595 # Check whether --enable-gif or --disable-gif was given.
8596 if test "${enable_gif+set}" = set; then
8597 enableval="$enable_gif"
8598
8599 if test "$enableval" = yes; then
8600 ac_cv_use_gif='wxUSE_GIF=yes'
8601 else
8602 ac_cv_use_gif='wxUSE_GIF=no'
8603 fi
8604
8605 else
8606
8607 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8608 if test "x$LINE" != x ; then
8609 eval "DEFAULT_$LINE"
8610 else
8611 no_cache=1
8612 fi
8613
8614 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8615
8616 fi
8617
8618
8619 eval "$ac_cv_use_gif"
8620 if test "$no_cache" != 1; then
8621 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8622 fi
8623
8624 if test "$wxUSE_GIF" = yes; then
8625 echo "$ac_t""yes" 1>&6
8626 else
8627 echo "$ac_t""no" 1>&6
8628 fi
8629
8630
8631 enablestring=
8632 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8633 echo "configure:8634: checking for --${enablestring:-enable}-pcx" >&5
8634 no_cache=0
8635 # Check whether --enable-pcx or --disable-pcx was given.
8636 if test "${enable_pcx+set}" = set; then
8637 enableval="$enable_pcx"
8638
8639 if test "$enableval" = yes; then
8640 ac_cv_use_pcx='wxUSE_PCX=yes'
8641 else
8642 ac_cv_use_pcx='wxUSE_PCX=no'
8643 fi
8644
8645 else
8646
8647 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8648 if test "x$LINE" != x ; then
8649 eval "DEFAULT_$LINE"
8650 else
8651 no_cache=1
8652 fi
8653
8654 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8655
8656 fi
8657
8658
8659 eval "$ac_cv_use_pcx"
8660 if test "$no_cache" != 1; then
8661 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8662 fi
8663
8664 if test "$wxUSE_PCX" = yes; then
8665 echo "$ac_t""yes" 1>&6
8666 else
8667 echo "$ac_t""no" 1>&6
8668 fi
8669
8670
8671 enablestring=
8672 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8673 echo "configure:8674: checking for --${enablestring:-enable}-iff" >&5
8674 no_cache=0
8675 # Check whether --enable-iff or --disable-iff was given.
8676 if test "${enable_iff+set}" = set; then
8677 enableval="$enable_iff"
8678
8679 if test "$enableval" = yes; then
8680 ac_cv_use_iff='wxUSE_IFF=yes'
8681 else
8682 ac_cv_use_iff='wxUSE_IFF=no'
8683 fi
8684
8685 else
8686
8687 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8688 if test "x$LINE" != x ; then
8689 eval "DEFAULT_$LINE"
8690 else
8691 no_cache=1
8692 fi
8693
8694 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8695
8696 fi
8697
8698
8699 eval "$ac_cv_use_iff"
8700 if test "$no_cache" != 1; then
8701 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8702 fi
8703
8704 if test "$wxUSE_IFF" = yes; then
8705 echo "$ac_t""yes" 1>&6
8706 else
8707 echo "$ac_t""no" 1>&6
8708 fi
8709
8710
8711 enablestring=
8712 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8713 echo "configure:8714: checking for --${enablestring:-enable}-pnm" >&5
8714 no_cache=0
8715 # Check whether --enable-pnm or --disable-pnm was given.
8716 if test "${enable_pnm+set}" = set; then
8717 enableval="$enable_pnm"
8718
8719 if test "$enableval" = yes; then
8720 ac_cv_use_pnm='wxUSE_PNM=yes'
8721 else
8722 ac_cv_use_pnm='wxUSE_PNM=no'
8723 fi
8724
8725 else
8726
8727 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8728 if test "x$LINE" != x ; then
8729 eval "DEFAULT_$LINE"
8730 else
8731 no_cache=1
8732 fi
8733
8734 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8735
8736 fi
8737
8738
8739 eval "$ac_cv_use_pnm"
8740 if test "$no_cache" != 1; then
8741 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8742 fi
8743
8744 if test "$wxUSE_PNM" = yes; then
8745 echo "$ac_t""yes" 1>&6
8746 else
8747 echo "$ac_t""no" 1>&6
8748 fi
8749
8750
8751 enablestring=
8752 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8753 echo "configure:8754: checking for --${enablestring:-enable}-xpm" >&5
8754 no_cache=0
8755 # Check whether --enable-xpm or --disable-xpm was given.
8756 if test "${enable_xpm+set}" = set; then
8757 enableval="$enable_xpm"
8758
8759 if test "$enableval" = yes; then
8760 ac_cv_use_xpm='wxUSE_XPM=yes'
8761 else
8762 ac_cv_use_xpm='wxUSE_XPM=no'
8763 fi
8764
8765 else
8766
8767 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8768 if test "x$LINE" != x ; then
8769 eval "DEFAULT_$LINE"
8770 else
8771 no_cache=1
8772 fi
8773
8774 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8775
8776 fi
8777
8778
8779 eval "$ac_cv_use_xpm"
8780 if test "$no_cache" != 1; then
8781 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8782 fi
8783
8784 if test "$wxUSE_XPM" = yes; then
8785 echo "$ac_t""yes" 1>&6
8786 else
8787 echo "$ac_t""no" 1>&6
8788 fi
8789
8790
8791 enablestring=
8792 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8793 echo "configure:8794: checking for --${enablestring:-enable}-ico_cur" >&5
8794 no_cache=0
8795 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8796 if test "${enable_ico_cur+set}" = set; then
8797 enableval="$enable_ico_cur"
8798
8799 if test "$enableval" = yes; then
8800 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8801 else
8802 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8803 fi
8804
8805 else
8806
8807 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8808 if test "x$LINE" != x ; then
8809 eval "DEFAULT_$LINE"
8810 else
8811 no_cache=1
8812 fi
8813
8814 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8815
8816 fi
8817
8818
8819 eval "$ac_cv_use_ico_cur"
8820 if test "$no_cache" != 1; then
8821 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8822 fi
8823
8824 if test "$wxUSE_ICO_CUR" = yes; then
8825 echo "$ac_t""yes" 1>&6
8826 else
8827 echo "$ac_t""no" 1>&6
8828 fi
8829
8830
8831 fi
8832
8833 case "${host}" in
8834 *-pc-os2_emx | *-pc-os2-emx )
8835 PATH_IFS=';'
8836 LEX_STEM="lexyy"
8837 ;;
8838 *)
8839 PATH_IFS=':'
8840 LEX_STEM="lex.yy"
8841 ;;
8842 esac
8843
8844
8845
8846 echo "saving argument cache $wx_arg_cache_file"
8847 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8848
8849
8850
8851 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8852 echo "configure:8853: checking for toolkit" >&5
8853
8854 # In Wine, we need to default to MSW, not GTK or MOTIF
8855 if test "$wxUSE_WINE" = "yes"; then
8856 DEFAULT_DEFAULT_wxUSE_GTK=0
8857 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8858 DEFAULT_DEFAULT_wxUSE_MSW=1
8859 fi
8860
8861 if test "$wxUSE_GUI" = "yes"; then
8862
8863 if test "$USE_BEOS" = 1; then
8864 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8865 fi
8866
8867 if test "$TOOLKIT_GIVEN" = 1; then
8868 for toolkit in `echo $ALL_TOOLKITS`; do
8869 var=wxUSE_$toolkit
8870 eval "value=\$${var}"
8871 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8872 done
8873 else
8874 for toolkit in `echo $ALL_TOOLKITS`; do
8875 if test "$has_toolkit_in_cache" != 1; then
8876 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8877 else
8878 var=DEFAULT_wxUSE_$toolkit
8879 fi
8880 eval "wxUSE_$toolkit=\$${var}"
8881 done
8882 fi
8883
8884 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8885 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8886 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8887
8888 case "${host}" in
8889 *-pc-os2_emx | *-pc-os2-emx )
8890 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8891 esac
8892
8893 case "$NUM_TOOLKITS" in
8894 1)
8895 ;;
8896 0)
8897 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8898 ;;
8899 *)
8900 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8901 esac
8902
8903 for toolkit in `echo $ALL_TOOLKITS`; do
8904 var=wxUSE_$toolkit
8905 eval "value=\$${var}"
8906 if test "x$value" != x; then
8907 cache_var=CACHE_$toolkit
8908 eval "cache=\$${cache_var}"
8909 if test "$cache" = 1; then
8910 echo "$var=$value" >> ${wx_arg_cache_file}
8911 fi
8912 if test "$value" = 1; then
8913 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8914 echo "$ac_t""$toolkit_echo" 1>&6
8915 fi
8916 fi
8917 done
8918 else
8919 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8920 fi
8921
8922 wants_win32=0
8923 doesnt_want_win32=0
8924 case "${host}" in
8925 *-*-cygwin*)
8926 if test "$wxUSE_MSW" = 1 ; then
8927 wants_win32=1
8928 else
8929 doesnt_want_win32=1
8930 fi
8931 ;;
8932 *-*-mingw*)
8933 wants_win32=1
8934 ;;
8935 esac
8936
8937 if test "$wxUSE_WINE" = "yes"; then
8938 wants_win32=1
8939 CC=winegcc
8940 CXX=wineg++
8941 RESCOMP=wrc
8942 fi
8943
8944 if test "$wants_win32" = 1 ; then
8945 USE_UNIX=0
8946 USE_WIN32=1
8947 cat >> confdefs.h <<\EOF
8948 #define __WIN32__ 1
8949 EOF
8950
8951 cat >> confdefs.h <<\EOF
8952 #define __WIN95__ 1
8953 EOF
8954
8955 cat >> confdefs.h <<\EOF
8956 #define __WINDOWS__ 1
8957 EOF
8958
8959 cat >> confdefs.h <<\EOF
8960 #define __GNUWIN32__ 1
8961 EOF
8962
8963 cat >> confdefs.h <<\EOF
8964 #define STRICT 1
8965 EOF
8966
8967 cat >> confdefs.h <<\EOF
8968 #define WINVER 0x0400
8969 EOF
8970
8971 fi
8972 if test "$doesnt_want_win32" = 1 ; then
8973 USE_UNIX=1
8974 USE_WIN32=0
8975 fi
8976
8977 if test "$USE_UNIX" = 1 ; then
8978 wxUSE_UNIX=yes
8979 cat >> confdefs.h <<\EOF
8980 #define __UNIX__ 1
8981 EOF
8982
8983 fi
8984
8985
8986 cat > confcache <<\EOF
8987 # This file is a shell script that caches the results of configure
8988 # tests run on this system so they can be shared between configure
8989 # scripts and configure runs. It is not useful on other systems.
8990 # If it contains results you don't want to keep, you may remove or edit it.
8991 #
8992 # By default, configure uses ./config.cache as the cache file,
8993 # creating it if it does not exist already. You can give configure
8994 # the --cache-file=FILE option to use a different cache file; that is
8995 # what configure does when it calls configure scripts in
8996 # subdirectories, so they share the cache.
8997 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8998 # config.status only pays attention to the cache file if you give it the
8999 # --recheck option to rerun configure.
9000 #
9001 EOF
9002 # The following way of writing the cache mishandles newlines in values,
9003 # but we know of no workaround that is simple, portable, and efficient.
9004 # So, don't put newlines in cache variables' values.
9005 # Ultrix sh set writes to stderr and can't be redirected directly,
9006 # and sets the high bit in the cache file unless we assign to the vars.
9007 (set) 2>&1 |
9008 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9009 *ac_space=\ *)
9010 # `set' does not quote correctly, so add quotes (double-quote substitution
9011 # turns \\\\ into \\, and sed turns \\ into \).
9012 sed -n \
9013 -e "s/'/'\\\\''/g" \
9014 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9015 ;;
9016 *)
9017 # `set' quotes correctly as required by POSIX, so do not add quotes.
9018 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9019 ;;
9020 esac >> confcache
9021 if cmp -s $cache_file confcache; then
9022 :
9023 else
9024 if test -w $cache_file; then
9025 echo "updating cache $cache_file"
9026 cat confcache > $cache_file
9027 else
9028 echo "not updating unwritable cache $cache_file"
9029 fi
9030 fi
9031 rm -f confcache
9032
9033
9034 if test "$build" != "$host" ; then
9035 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9036 CC=$host_alias-gcc
9037 CXX=$host_alias-c++
9038 AR=$host_alias-ar
9039 RANLIB=$host_alias-ranlib
9040 DLLTOOL=$host_alias-dlltool
9041 RESCOMP=$host_alias-windres
9042 LD=$host_alias-ld
9043 NM=$host_alias-nm
9044 STRIP=$host_alias-strip
9045 else
9046 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
9047 fi
9048 fi
9049
9050 CFLAGS=${CFLAGS:=}
9051 # Extract the first word of "gcc", so it can be a program name with args.
9052 set dummy gcc; ac_word=$2
9053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9054 echo "configure:9055: checking for $ac_word" >&5
9055 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9057 else
9058 if test -n "$CC"; then
9059 ac_cv_prog_CC="$CC" # Let the user override the test.
9060 else
9061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9062 ac_dummy="$PATH"
9063 for ac_dir in $ac_dummy; do
9064 test -z "$ac_dir" && ac_dir=.
9065 if test -f $ac_dir/$ac_word; then
9066 ac_cv_prog_CC="gcc"
9067 break
9068 fi
9069 done
9070 IFS="$ac_save_ifs"
9071 fi
9072 fi
9073 CC="$ac_cv_prog_CC"
9074 if test -n "$CC"; then
9075 echo "$ac_t""$CC" 1>&6
9076 else
9077 echo "$ac_t""no" 1>&6
9078 fi
9079
9080 if test -z "$CC"; then
9081 # Extract the first word of "cc", so it can be a program name with args.
9082 set dummy cc; ac_word=$2
9083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9084 echo "configure:9085: checking for $ac_word" >&5
9085 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9087 else
9088 if test -n "$CC"; then
9089 ac_cv_prog_CC="$CC" # Let the user override the test.
9090 else
9091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9092 ac_prog_rejected=no
9093 ac_dummy="$PATH"
9094 for ac_dir in $ac_dummy; do
9095 test -z "$ac_dir" && ac_dir=.
9096 if test -f $ac_dir/$ac_word; then
9097 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9098 ac_prog_rejected=yes
9099 continue
9100 fi
9101 ac_cv_prog_CC="cc"
9102 break
9103 fi
9104 done
9105 IFS="$ac_save_ifs"
9106 if test $ac_prog_rejected = yes; then
9107 # We found a bogon in the path, so make sure we never use it.
9108 set dummy $ac_cv_prog_CC
9109 shift
9110 if test $# -gt 0; then
9111 # We chose a different compiler from the bogus one.
9112 # However, it has the same basename, so the bogon will be chosen
9113 # first if we set CC to just the basename; use the full file name.
9114 shift
9115 set dummy "$ac_dir/$ac_word" "$@"
9116 shift
9117 ac_cv_prog_CC="$@"
9118 fi
9119 fi
9120 fi
9121 fi
9122 CC="$ac_cv_prog_CC"
9123 if test -n "$CC"; then
9124 echo "$ac_t""$CC" 1>&6
9125 else
9126 echo "$ac_t""no" 1>&6
9127 fi
9128
9129 if test -z "$CC"; then
9130 case "`uname -s`" in
9131 *win32* | *WIN32*)
9132 # Extract the first word of "cl", so it can be a program name with args.
9133 set dummy cl; ac_word=$2
9134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9135 echo "configure:9136: checking for $ac_word" >&5
9136 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9137 echo $ac_n "(cached) $ac_c" 1>&6
9138 else
9139 if test -n "$CC"; then
9140 ac_cv_prog_CC="$CC" # Let the user override the test.
9141 else
9142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9143 ac_dummy="$PATH"
9144 for ac_dir in $ac_dummy; do
9145 test -z "$ac_dir" && ac_dir=.
9146 if test -f $ac_dir/$ac_word; then
9147 ac_cv_prog_CC="cl"
9148 break
9149 fi
9150 done
9151 IFS="$ac_save_ifs"
9152 fi
9153 fi
9154 CC="$ac_cv_prog_CC"
9155 if test -n "$CC"; then
9156 echo "$ac_t""$CC" 1>&6
9157 else
9158 echo "$ac_t""no" 1>&6
9159 fi
9160 ;;
9161 esac
9162 fi
9163 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9164 fi
9165
9166 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9167 echo "configure:9168: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9168
9169 ac_ext=c
9170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9171 ac_cpp='$CPP $CPPFLAGS'
9172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9174 cross_compiling=$ac_cv_prog_cc_cross
9175
9176 cat > conftest.$ac_ext << EOF
9177
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180
9181 main(){return(0);}
9182 EOF
9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9184 ac_cv_prog_cc_works=yes
9185 # If we can't run a trivial program, we are probably using a cross compiler.
9186 if (./conftest; exit) 2>/dev/null; then
9187 ac_cv_prog_cc_cross=no
9188 else
9189 ac_cv_prog_cc_cross=yes
9190 fi
9191 else
9192 echo "configure: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 ac_cv_prog_cc_works=no
9195 fi
9196 rm -fr conftest*
9197 ac_ext=c
9198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9199 ac_cpp='$CPP $CPPFLAGS'
9200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9202 cross_compiling=$ac_cv_prog_cc_cross
9203
9204 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9205 if test $ac_cv_prog_cc_works = no; then
9206 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9207 fi
9208 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9209 echo "configure:9210: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9210 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9211 cross_compiling=$ac_cv_prog_cc_cross
9212
9213 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9214 echo "configure:9215: checking whether we are using GNU C" >&5
9215 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217 else
9218 cat > conftest.c <<EOF
9219 #ifdef __GNUC__
9220 yes;
9221 #endif
9222 EOF
9223 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9224 ac_cv_prog_gcc=yes
9225 else
9226 ac_cv_prog_gcc=no
9227 fi
9228 fi
9229
9230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9231
9232 if test $ac_cv_prog_gcc = yes; then
9233 GCC=yes
9234 else
9235 GCC=
9236 fi
9237
9238 ac_test_CFLAGS="${CFLAGS+set}"
9239 ac_save_CFLAGS="$CFLAGS"
9240 CFLAGS=
9241 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9242 echo "configure:9243: checking whether ${CC-cc} accepts -g" >&5
9243 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9244 echo $ac_n "(cached) $ac_c" 1>&6
9245 else
9246 echo 'void f(){}' > conftest.c
9247 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9248 ac_cv_prog_cc_g=yes
9249 else
9250 ac_cv_prog_cc_g=no
9251 fi
9252 rm -f conftest*
9253
9254 fi
9255
9256 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9257 if test "$ac_test_CFLAGS" = set; then
9258 CFLAGS="$ac_save_CFLAGS"
9259 elif test $ac_cv_prog_cc_g = yes; then
9260 if test "$GCC" = yes; then
9261 CFLAGS="-g -O2"
9262 else
9263 CFLAGS="-g"
9264 fi
9265 else
9266 if test "$GCC" = yes; then
9267 CFLAGS="-O2"
9268 else
9269 CFLAGS=
9270 fi
9271 fi
9272
9273
9274 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9275 echo "configure:9276: checking how to run the C preprocessor" >&5
9276 # On Suns, sometimes $CPP names a directory.
9277 if test -n "$CPP" && test -d "$CPP"; then
9278 CPP=
9279 fi
9280 if test -z "$CPP"; then
9281 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9283 else
9284 # This must be in double quotes, not single quotes, because CPP may get
9285 # substituted into the Makefile and "${CC-cc}" will confuse make.
9286 CPP="${CC-cc} -E"
9287 # On the NeXT, cc -E runs the code through the compiler's parser,
9288 # not just through cpp.
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 #include <assert.h>
9293 Syntax Error
9294 EOF
9295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9296 { (eval echo configure:9297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9298 if test -z "$ac_err"; then
9299 :
9300 else
9301 echo "$ac_err" >&5
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 rm -rf conftest*
9305 CPP="${CC-cc} -E -traditional-cpp"
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 #include <assert.h>
9310 Syntax Error
9311 EOF
9312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9313 { (eval echo configure:9314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9315 if test -z "$ac_err"; then
9316 :
9317 else
9318 echo "$ac_err" >&5
9319 echo "configure: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9321 rm -rf conftest*
9322 CPP="${CC-cc} -nologo -E"
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9326 #include <assert.h>
9327 Syntax Error
9328 EOF
9329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9330 { (eval echo configure:9331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9332 if test -z "$ac_err"; then
9333 :
9334 else
9335 echo "$ac_err" >&5
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9338 rm -rf conftest*
9339 CPP=/lib/cpp
9340 fi
9341 rm -f conftest*
9342 fi
9343 rm -f conftest*
9344 fi
9345 rm -f conftest*
9346 ac_cv_prog_CPP="$CPP"
9347 fi
9348 CPP="$ac_cv_prog_CPP"
9349 else
9350 ac_cv_prog_CPP="$CPP"
9351 fi
9352 echo "$ac_t""$CPP" 1>&6
9353
9354 if test $ac_cv_prog_gcc = yes; then
9355 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9356 echo "configure:9357: checking whether ${CC-cc} needs -traditional" >&5
9357 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9359 else
9360 ac_pattern="Autoconf.*'x'"
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 #include <sgtty.h>
9365 Autoconf TIOCGETP
9366 EOF
9367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9368 egrep "$ac_pattern" >/dev/null 2>&1; then
9369 rm -rf conftest*
9370 ac_cv_prog_gcc_traditional=yes
9371 else
9372 rm -rf conftest*
9373 ac_cv_prog_gcc_traditional=no
9374 fi
9375 rm -f conftest*
9376
9377
9378 if test $ac_cv_prog_gcc_traditional = no; then
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 #include <termio.h>
9383 Autoconf TCGETA
9384 EOF
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 egrep "$ac_pattern" >/dev/null 2>&1; then
9387 rm -rf conftest*
9388 ac_cv_prog_gcc_traditional=yes
9389 fi
9390 rm -f conftest*
9391
9392 fi
9393 fi
9394
9395 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9396 if test $ac_cv_prog_gcc_traditional = yes; then
9397 CC="$CC -traditional"
9398 fi
9399 fi
9400
9401
9402
9403 ac_ext=C
9404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9405 ac_cpp='$CXXCPP $CPPFLAGS'
9406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9408 cross_compiling=$ac_cv_prog_cxx_cross
9409
9410
9411 CXXFLAGS=${CXXFLAGS:=}
9412 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9413 do
9414 # Extract the first word of "$ac_prog", so it can be a program name with args.
9415 set dummy $ac_prog; ac_word=$2
9416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9417 echo "configure:9418: checking for $ac_word" >&5
9418 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420 else
9421 if test -n "$CXX"; then
9422 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9423 else
9424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9425 ac_dummy="$PATH"
9426 for ac_dir in $ac_dummy; do
9427 test -z "$ac_dir" && ac_dir=.
9428 if test -f $ac_dir/$ac_word; then
9429 ac_cv_prog_CXX="$ac_prog"
9430 break
9431 fi
9432 done
9433 IFS="$ac_save_ifs"
9434 fi
9435 fi
9436 CXX="$ac_cv_prog_CXX"
9437 if test -n "$CXX"; then
9438 echo "$ac_t""$CXX" 1>&6
9439 else
9440 echo "$ac_t""no" 1>&6
9441 fi
9442
9443 test -n "$CXX" && break
9444 done
9445 test -n "$CXX" || CXX="gcc"
9446
9447
9448 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9449 echo "configure:9450: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9450
9451 ac_ext=C
9452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9453 ac_cpp='$CXXCPP $CPPFLAGS'
9454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9456 cross_compiling=$ac_cv_prog_cxx_cross
9457
9458 cat > conftest.$ac_ext << EOF
9459
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462
9463 int main(){return(0);}
9464 EOF
9465 if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9466 ac_cv_prog_cxx_works=yes
9467 # If we can't run a trivial program, we are probably using a cross compiler.
9468 if (./conftest; exit) 2>/dev/null; then
9469 ac_cv_prog_cxx_cross=no
9470 else
9471 ac_cv_prog_cxx_cross=yes
9472 fi
9473 else
9474 echo "configure: failed program was:" >&5
9475 cat conftest.$ac_ext >&5
9476 ac_cv_prog_cxx_works=no
9477 fi
9478 rm -fr conftest*
9479 ac_ext=C
9480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9481 ac_cpp='$CXXCPP $CPPFLAGS'
9482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9484 cross_compiling=$ac_cv_prog_cxx_cross
9485
9486 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9487 if test $ac_cv_prog_cxx_works = no; then
9488 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9489 fi
9490 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9491 echo "configure:9492: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9492 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9493 cross_compiling=$ac_cv_prog_cxx_cross
9494
9495 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9496 echo "configure:9497: checking whether we are using GNU C++" >&5
9497 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9499 else
9500 cat > conftest.C <<EOF
9501 #ifdef __GNUC__
9502 yes;
9503 #endif
9504 EOF
9505 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9506 ac_cv_prog_gxx=yes
9507 else
9508 ac_cv_prog_gxx=no
9509 fi
9510 fi
9511
9512 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9513
9514 if test $ac_cv_prog_gxx = yes; then
9515 GXX=yes
9516 else
9517 GXX=
9518 fi
9519
9520 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9521 ac_save_CXXFLAGS="$CXXFLAGS"
9522 CXXFLAGS=
9523 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9524 echo "configure:9525: checking whether ${CXX-g++} accepts -g" >&5
9525 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9527 else
9528 echo 'void f(){}' > conftest.cc
9529 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9530 ac_cv_prog_cxx_g=yes
9531 else
9532 ac_cv_prog_cxx_g=no
9533 fi
9534 rm -f conftest*
9535
9536 fi
9537
9538 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9539 if test "$ac_test_CXXFLAGS" = set; then
9540 CXXFLAGS="$ac_save_CXXFLAGS"
9541 elif test $ac_cv_prog_cxx_g = yes; then
9542 if test "$GXX" = yes; then
9543 CXXFLAGS="-g -O2"
9544 else
9545 CXXFLAGS="-g"
9546 fi
9547 else
9548 if test "$GXX" = yes; then
9549 CXXFLAGS="-O2"
9550 else
9551 CXXFLAGS=
9552 fi
9553 fi
9554
9555
9556 ac_ext=c
9557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9558 ac_cpp='$CPP $CPPFLAGS'
9559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9561 cross_compiling=$ac_cv_prog_cc_cross
9562
9563
9564 # Extract the first word of "ranlib", so it can be a program name with args.
9565 set dummy ranlib; ac_word=$2
9566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9567 echo "configure:9568: checking for $ac_word" >&5
9568 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9569 echo $ac_n "(cached) $ac_c" 1>&6
9570 else
9571 if test -n "$RANLIB"; then
9572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9573 else
9574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9575 ac_dummy="$PATH"
9576 for ac_dir in $ac_dummy; do
9577 test -z "$ac_dir" && ac_dir=.
9578 if test -f $ac_dir/$ac_word; then
9579 ac_cv_prog_RANLIB="ranlib"
9580 break
9581 fi
9582 done
9583 IFS="$ac_save_ifs"
9584 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9585 fi
9586 fi
9587 RANLIB="$ac_cv_prog_RANLIB"
9588 if test -n "$RANLIB"; then
9589 echo "$ac_t""$RANLIB" 1>&6
9590 else
9591 echo "$ac_t""no" 1>&6
9592 fi
9593
9594
9595 # Extract the first word of "ar", so it can be a program name with args.
9596 set dummy ar; ac_word=$2
9597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9598 echo "configure:9599: checking for $ac_word" >&5
9599 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9601 else
9602 if test -n "$AR"; then
9603 ac_cv_prog_AR="$AR" # Let the user override the test.
9604 else
9605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9606 ac_dummy="$PATH"
9607 for ac_dir in $ac_dummy; do
9608 test -z "$ac_dir" && ac_dir=.
9609 if test -f $ac_dir/$ac_word; then
9610 ac_cv_prog_AR="ar"
9611 break
9612 fi
9613 done
9614 IFS="$ac_save_ifs"
9615 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9616 fi
9617 fi
9618 AR="$ac_cv_prog_AR"
9619 if test -n "$AR"; then
9620 echo "$ac_t""$AR" 1>&6
9621 else
9622 echo "$ac_t""no" 1>&6
9623 fi
9624
9625
9626 # Find a good install program. We prefer a C program (faster),
9627 # so one script is as good as another. But avoid the broken or
9628 # incompatible versions:
9629 # SysV /etc/install, /usr/sbin/install
9630 # SunOS /usr/etc/install
9631 # IRIX /sbin/install
9632 # AIX /bin/install
9633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9636 # ./install, which can be erroneously created by make from ./install.sh.
9637 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9638 echo "configure:9639: checking for a BSD compatible install" >&5
9639 if test -z "$INSTALL"; then
9640 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9642 else
9643 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9644 for ac_dir in $PATH; do
9645 # Account for people who put trailing slashes in PATH elements.
9646 case "$ac_dir/" in
9647 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9648 *)
9649 # OSF1 and SCO ODT 3.0 have their own names for install.
9650 # Don't use installbsd from OSF since it installs stuff as root
9651 # by default.
9652 for ac_prog in ginstall scoinst install; do
9653 if test -f $ac_dir/$ac_prog; then
9654 if test $ac_prog = install &&
9655 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9656 # AIX install. It has an incompatible calling convention.
9657 :
9658 else
9659 ac_cv_path_install="$ac_dir/$ac_prog -c"
9660 break 2
9661 fi
9662 fi
9663 done
9664 ;;
9665 esac
9666 done
9667 IFS="$ac_save_IFS"
9668
9669 fi
9670 if test "${ac_cv_path_install+set}" = set; then
9671 INSTALL="$ac_cv_path_install"
9672 else
9673 # As a last resort, use the slow shell script. We don't cache a
9674 # path for INSTALL within a source directory, because that will
9675 # break other packages using the cache if that directory is
9676 # removed, or if the path is relative.
9677 INSTALL="$ac_install_sh"
9678 fi
9679 fi
9680 echo "$ac_t""$INSTALL" 1>&6
9681
9682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9683 # It thinks the first close brace ends the variable substitution.
9684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9685
9686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9687
9688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9689
9690
9691 case ${INSTALL} in
9692 /* ) # Absolute
9693 ;;
9694 ?:* ) # Drive letter, considered as absolute.
9695 ;;
9696 *)
9697 INSTALL=`pwd`/${INSTALL} ;;
9698 esac
9699
9700 case ${host} in
9701 *-hp-hpux* )
9702 INSTALL_DIR="mkdir"
9703 ;;
9704
9705 *) INSTALL_DIR="$INSTALL -d"
9706 ;;
9707 esac
9708
9709
9710 case "${host}" in
9711
9712 powerpc-*-darwin* )
9713 INSTALL_PROGRAM="cp -fp"
9714 INSTALL_DATA="cp -fp"
9715 ;;
9716 *)
9717 ;;
9718 esac
9719
9720 # Extract the first word of "strip", so it can be a program name with args.
9721 set dummy strip; ac_word=$2
9722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9723 echo "configure:9724: checking for $ac_word" >&5
9724 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9726 else
9727 if test -n "$STRIP"; then
9728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9729 else
9730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9731 ac_dummy="$PATH"
9732 for ac_dir in $ac_dummy; do
9733 test -z "$ac_dir" && ac_dir=.
9734 if test -f $ac_dir/$ac_word; then
9735 ac_cv_prog_STRIP="strip"
9736 break
9737 fi
9738 done
9739 IFS="$ac_save_ifs"
9740 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9741 fi
9742 fi
9743 STRIP="$ac_cv_prog_STRIP"
9744 if test -n "$STRIP"; then
9745 echo "$ac_t""$STRIP" 1>&6
9746 else
9747 echo "$ac_t""no" 1>&6
9748 fi
9749
9750
9751 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9752 echo "configure:9753: checking if make is GNU make" >&5
9753 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9755 else
9756
9757 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9758 egrep -s GNU > /dev/null); then
9759 wx_cv_prog_makeisgnu="yes"
9760 else
9761 wx_cv_prog_makeisgnu="no"
9762 fi
9763
9764 fi
9765
9766 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9767
9768 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9769 IF_GNU_MAKE=""
9770 else
9771 IF_GNU_MAKE="#"
9772 fi
9773
9774
9775
9776 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9777 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9778 echo "configure:9779: checking if make supports VPATH" >&5
9779 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9781 else
9782
9783 cat - << EOF > confMake
9784 check : file
9785 cp \$? \$@
9786 cp \$? final_file
9787 EOF
9788
9789 if test ! -d sub ; then
9790 mkdir sub
9791 fi
9792 echo dummy > sub/file
9793 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9794 RESULT=$?
9795 rm -f sub/file check final_file confMake
9796 rmdir sub
9797 if test "$RESULT" = 0; then
9798 wx_cv_prog_makevpath="yes"
9799 else
9800 wx_cv_prog_makevpath="no"
9801 fi
9802
9803 fi
9804
9805 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9806
9807 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9808 { echo "configure: error:
9809 You need a make-utility that is able to use the variable
9810 VPATH correctly.
9811 If your version of make does not support VPATH correctly,
9812 please install GNU-make (possibly as gmake), and start
9813 configure with the following command:
9814 export MAKE=gmake; ./configure for sh-type shells
9815 setenv MAKE gmake; ./configure for csh-type shells
9816 Also please do remember to use gmake in this case every time
9817 you are trying to compile.
9818 " 1>&2; exit 1; }
9819 fi fi
9820 for ac_prog in 'bison -y' byacc
9821 do
9822 # Extract the first word of "$ac_prog", so it can be a program name with args.
9823 set dummy $ac_prog; ac_word=$2
9824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9825 echo "configure:9826: checking for $ac_word" >&5
9826 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9828 else
9829 if test -n "$YACC"; then
9830 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9831 else
9832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9833 ac_dummy="$PATH"
9834 for ac_dir in $ac_dummy; do
9835 test -z "$ac_dir" && ac_dir=.
9836 if test -f $ac_dir/$ac_word; then
9837 ac_cv_prog_YACC="$ac_prog"
9838 break
9839 fi
9840 done
9841 IFS="$ac_save_ifs"
9842 fi
9843 fi
9844 YACC="$ac_cv_prog_YACC"
9845 if test -n "$YACC"; then
9846 echo "$ac_t""$YACC" 1>&6
9847 else
9848 echo "$ac_t""no" 1>&6
9849 fi
9850
9851 test -n "$YACC" && break
9852 done
9853 test -n "$YACC" || YACC="yacc"
9854
9855
9856 # Extract the first word of "flex", so it can be a program name with args.
9857 set dummy flex; ac_word=$2
9858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9859 echo "configure:9860: checking for $ac_word" >&5
9860 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862 else
9863 if test -n "$LEX"; then
9864 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9865 else
9866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9867 ac_dummy="$PATH"
9868 for ac_dir in $ac_dummy; do
9869 test -z "$ac_dir" && ac_dir=.
9870 if test -f $ac_dir/$ac_word; then
9871 ac_cv_prog_LEX="flex"
9872 break
9873 fi
9874 done
9875 IFS="$ac_save_ifs"
9876 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9877 fi
9878 fi
9879 LEX="$ac_cv_prog_LEX"
9880 if test -n "$LEX"; then
9881 echo "$ac_t""$LEX" 1>&6
9882 else
9883 echo "$ac_t""no" 1>&6
9884 fi
9885
9886 if test -z "$LEXLIB"
9887 then
9888 case "$LEX" in
9889 flex*) ac_lib=fl ;;
9890 *) ac_lib=l ;;
9891 esac
9892 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9893 echo "configure:9894: checking for yywrap in -l$ac_lib" >&5
9894 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9897 else
9898 ac_save_LIBS="$LIBS"
9899 LIBS="-l$ac_lib $LIBS"
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9902 "configure"
9902 #include "confdefs.h"
9903 /* Override any gcc2 internal prototype to avoid an error. */
9904 /* We use char because int might match the return type of a gcc2
9905 builtin and then its argument prototype would still apply. */
9906 char yywrap();
9907
9908 int main() {
9909 yywrap()
9910 ; return 0; }
9911 EOF
9912 if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9913 rm -rf conftest*
9914 eval "ac_cv_lib_$ac_lib_var=yes"
9915 else
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 rm -rf conftest*
9919 eval "ac_cv_lib_$ac_lib_var=no"
9920 fi
9921 rm -f conftest*
9922 LIBS="$ac_save_LIBS"
9923
9924 fi
9925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9926 echo "$ac_t""yes" 1>&6
9927 LEXLIB="-l$ac_lib"
9928 else
9929 echo "$ac_t""no" 1>&6
9930 fi
9931
9932 fi
9933
9934
9935 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9936 echo "configure:9937: checking whether ln -s works" >&5
9937 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9938 echo $ac_n "(cached) $ac_c" 1>&6
9939 else
9940 rm -f conftestdata
9941 if ln -s X conftestdata 2>/dev/null
9942 then
9943 rm -f conftestdata
9944 ac_cv_prog_LN_S="ln -s"
9945 else
9946 ac_cv_prog_LN_S=ln
9947 fi
9948 fi
9949 LN_S="$ac_cv_prog_LN_S"
9950 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9951 echo "$ac_t""yes" 1>&6
9952 else
9953 echo "$ac_t""no" 1>&6
9954 fi
9955
9956
9957 case "${host}" in
9958 *-pc-os2_emx | *-pc-os2-emx )
9959 LIBS="$LIBS -lstdcpp"
9960 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9961 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9962 echo "configure:9963: checking for drand48 in -lcExt" >&5
9963 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9966 else
9967 ac_save_LIBS="$LIBS"
9968 LIBS="-lcExt $LIBS"
9969 cat > conftest.$ac_ext <<EOF
9970 #line 9971 "configure"
9971 #include "confdefs.h"
9972 /* Override any gcc2 internal prototype to avoid an error. */
9973 /* We use char because int might match the return type of a gcc2
9974 builtin and then its argument prototype would still apply. */
9975 char drand48();
9976
9977 int main() {
9978 drand48()
9979 ; return 0; }
9980 EOF
9981 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9982 rm -rf conftest*
9983 eval "ac_cv_lib_$ac_lib_var=yes"
9984 else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988 eval "ac_cv_lib_$ac_lib_var=no"
9989 fi
9990 rm -f conftest*
9991 LIBS="$ac_save_LIBS"
9992
9993 fi
9994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9995 echo "$ac_t""yes" 1>&6
9996 LIBS="$LIBS -lcExt"
9997 else
9998 echo "$ac_t""no" 1>&6
9999 fi
10000
10001 else
10002 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
10003 fi
10004 ;;
10005 esac
10006
10007
10008 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
10009 for ac_hdr in strings.h
10010 do
10011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10013 echo "configure:10014: checking for $ac_hdr" >&5
10014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10016 else
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 #include <$ac_hdr>
10021 EOF
10022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10023 { (eval echo configure:10024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10025 if test -z "$ac_err"; then
10026 rm -rf conftest*
10027 eval "ac_cv_header_$ac_safe=yes"
10028 else
10029 echo "$ac_err" >&5
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10032 rm -rf conftest*
10033 eval "ac_cv_header_$ac_safe=no"
10034 fi
10035 rm -f conftest*
10036 fi
10037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10038 echo "$ac_t""yes" 1>&6
10039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10040 cat >> confdefs.h <<EOF
10041 #define $ac_tr_hdr 1
10042 EOF
10043
10044 else
10045 echo "$ac_t""no" 1>&6
10046 fi
10047 done
10048
10049 fi
10050
10051 for ac_hdr in stdlib.h
10052 do
10053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10055 echo "configure:10056: checking for $ac_hdr" >&5
10056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058 else
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 #include <$ac_hdr>
10063 EOF
10064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10065 { (eval echo configure:10066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10067 if test -z "$ac_err"; then
10068 rm -rf conftest*
10069 eval "ac_cv_header_$ac_safe=yes"
10070 else
10071 echo "$ac_err" >&5
10072 echo "configure: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10074 rm -rf conftest*
10075 eval "ac_cv_header_$ac_safe=no"
10076 fi
10077 rm -f conftest*
10078 fi
10079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10080 echo "$ac_t""yes" 1>&6
10081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10082 cat >> confdefs.h <<EOF
10083 #define $ac_tr_hdr 1
10084 EOF
10085
10086 else
10087 echo "$ac_t""no" 1>&6
10088 fi
10089 done
10090
10091 for ac_hdr in malloc.h
10092 do
10093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10095 echo "configure:10096: checking for $ac_hdr" >&5
10096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098 else
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <$ac_hdr>
10103 EOF
10104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10105 { (eval echo configure:10106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10107 if test -z "$ac_err"; then
10108 rm -rf conftest*
10109 eval "ac_cv_header_$ac_safe=yes"
10110 else
10111 echo "$ac_err" >&5
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 rm -rf conftest*
10115 eval "ac_cv_header_$ac_safe=no"
10116 fi
10117 rm -f conftest*
10118 fi
10119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10120 echo "$ac_t""yes" 1>&6
10121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10122 cat >> confdefs.h <<EOF
10123 #define $ac_tr_hdr 1
10124 EOF
10125
10126 else
10127 echo "$ac_t""no" 1>&6
10128 fi
10129 done
10130
10131 for ac_hdr in unistd.h
10132 do
10133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10135 echo "configure:10136: checking for $ac_hdr" >&5
10136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10138 else
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include <$ac_hdr>
10143 EOF
10144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10145 { (eval echo configure:10146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10147 if test -z "$ac_err"; then
10148 rm -rf conftest*
10149 eval "ac_cv_header_$ac_safe=yes"
10150 else
10151 echo "$ac_err" >&5
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 rm -rf conftest*
10155 eval "ac_cv_header_$ac_safe=no"
10156 fi
10157 rm -f conftest*
10158 fi
10159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10160 echo "$ac_t""yes" 1>&6
10161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10162 cat >> confdefs.h <<EOF
10163 #define $ac_tr_hdr 1
10164 EOF
10165
10166 else
10167 echo "$ac_t""no" 1>&6
10168 fi
10169 done
10170
10171 for ac_hdr in wchar.h
10172 do
10173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10175 echo "configure:10176: checking for $ac_hdr" >&5
10176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10178 else
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 #include <$ac_hdr>
10183 EOF
10184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10185 { (eval echo configure:10186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10187 if test -z "$ac_err"; then
10188 rm -rf conftest*
10189 eval "ac_cv_header_$ac_safe=yes"
10190 else
10191 echo "$ac_err" >&5
10192 echo "configure: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10194 rm -rf conftest*
10195 eval "ac_cv_header_$ac_safe=no"
10196 fi
10197 rm -f conftest*
10198 fi
10199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10200 echo "$ac_t""yes" 1>&6
10201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10202 cat >> confdefs.h <<EOF
10203 #define $ac_tr_hdr 1
10204 EOF
10205
10206 else
10207 echo "$ac_t""no" 1>&6
10208 fi
10209 done
10210
10211
10212 if test "$ac_cv_header_wchar_h" != "yes"; then
10213 for ac_hdr in wcstr.h
10214 do
10215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10217 echo "configure:10218: checking for $ac_hdr" >&5
10218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10220 else
10221 cat > conftest.$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10224 #include <$ac_hdr>
10225 EOF
10226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10227 { (eval echo configure:10228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10229 if test -z "$ac_err"; then
10230 rm -rf conftest*
10231 eval "ac_cv_header_$ac_safe=yes"
10232 else
10233 echo "$ac_err" >&5
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 rm -rf conftest*
10237 eval "ac_cv_header_$ac_safe=no"
10238 fi
10239 rm -f conftest*
10240 fi
10241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
10243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10244 cat >> confdefs.h <<EOF
10245 #define $ac_tr_hdr 1
10246 EOF
10247
10248 else
10249 echo "$ac_t""no" 1>&6
10250 fi
10251 done
10252
10253 fi
10254
10255 for ac_hdr in fnmatch.h
10256 do
10257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10259 echo "configure:10260: checking for $ac_hdr" >&5
10260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10262 else
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10266 #include <$ac_hdr>
10267 EOF
10268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10269 { (eval echo configure:10270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10271 if test -z "$ac_err"; then
10272 rm -rf conftest*
10273 eval "ac_cv_header_$ac_safe=yes"
10274 else
10275 echo "$ac_err" >&5
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 rm -rf conftest*
10279 eval "ac_cv_header_$ac_safe=no"
10280 fi
10281 rm -f conftest*
10282 fi
10283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10284 echo "$ac_t""yes" 1>&6
10285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10286 cat >> confdefs.h <<EOF
10287 #define $ac_tr_hdr 1
10288 EOF
10289
10290 else
10291 echo "$ac_t""no" 1>&6
10292 fi
10293 done
10294
10295
10296 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10297 for ac_func in fnmatch
10298 do
10299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10300 echo "configure:10301: checking for $ac_func" >&5
10301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 /* System header to define __stub macros and hopefully few prototypes,
10308 which can conflict with char $ac_func(); below. */
10309 #include <assert.h>
10310 /* Override any gcc2 internal prototype to avoid an error. */
10311 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */
10313 char $ac_func();
10314
10315 int main() {
10316
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10321 choke me
10322 #else
10323 $ac_func();
10324 #endif
10325
10326 ; return 0; }
10327 EOF
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10329 rm -rf conftest*
10330 eval "ac_cv_func_$ac_func=yes"
10331 else
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 rm -rf conftest*
10335 eval "ac_cv_func_$ac_func=no"
10336 fi
10337 rm -f conftest*
10338 fi
10339
10340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10341 echo "$ac_t""yes" 1>&6
10342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10343 cat >> confdefs.h <<EOF
10344 #define $ac_tr_func 1
10345 EOF
10346
10347 else
10348 echo "$ac_t""no" 1>&6
10349 fi
10350 done
10351
10352 fi
10353
10354 for ac_hdr in langinfo.h
10355 do
10356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10358 echo "configure:10359: checking for $ac_hdr" >&5
10359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
10366 EOF
10367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10368 { (eval echo configure:10369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10370 if test -z "$ac_err"; then
10371 rm -rf conftest*
10372 eval "ac_cv_header_$ac_safe=yes"
10373 else
10374 echo "$ac_err" >&5
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 rm -rf conftest*
10378 eval "ac_cv_header_$ac_safe=no"
10379 fi
10380 rm -f conftest*
10381 fi
10382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10383 echo "$ac_t""yes" 1>&6
10384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10385 cat >> confdefs.h <<EOF
10386 #define $ac_tr_hdr 1
10387 EOF
10388
10389 else
10390 echo "$ac_t""no" 1>&6
10391 fi
10392 done
10393
10394
10395 case "${host}" in
10396 *-pc-os2_emx | *-pc-os2-emx )
10397 if test $ac_cv_header_langinfo_h = "yes"; then
10398 LIBS="$LIBS -lintl"
10399 fi
10400 ;;
10401 esac
10402
10403 if test "$wxUSE_GUI" = "yes"; then
10404 if test "$wxUSE_UNIX" = "yes"; then
10405 for ac_hdr in X11/XKBlib.h
10406 do
10407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10409 echo "configure:10410: checking for $ac_hdr" >&5
10410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10411 echo $ac_n "(cached) $ac_c" 1>&6
10412 else
10413 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10416 #include <$ac_hdr>
10417 EOF
10418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10419 { (eval echo configure:10420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10421 if test -z "$ac_err"; then
10422 rm -rf conftest*
10423 eval "ac_cv_header_$ac_safe=yes"
10424 else
10425 echo "$ac_err" >&5
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -rf conftest*
10429 eval "ac_cv_header_$ac_safe=no"
10430 fi
10431 rm -f conftest*
10432 fi
10433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10434 echo "$ac_t""yes" 1>&6
10435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10436 cat >> confdefs.h <<EOF
10437 #define $ac_tr_hdr 1
10438 EOF
10439
10440 else
10441 echo "$ac_t""no" 1>&6
10442 fi
10443 done
10444
10445 fi
10446 fi
10447
10448
10449 echo $ac_n "checking for working const""... $ac_c" 1>&6
10450 echo "configure:10451: checking for working const" >&5
10451 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10452 echo $ac_n "(cached) $ac_c" 1>&6
10453 else
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10457
10458 int main() {
10459
10460 /* Ultrix mips cc rejects this. */
10461 typedef int charset[2]; const charset x;
10462 /* SunOS 4.1.1 cc rejects this. */
10463 char const *const *ccp;
10464 char **p;
10465 /* NEC SVR4.0.2 mips cc rejects this. */
10466 struct point {int x, y;};
10467 static struct point const zero = {0,0};
10468 /* AIX XL C 1.02.0.0 rejects this.
10469 It does not let you subtract one const X* pointer from another in an arm
10470 of an if-expression whose if-part is not a constant expression */
10471 const char *g = "string";
10472 ccp = &g + (g ? g-g : 0);
10473 /* HPUX 7.0 cc rejects these. */
10474 ++ccp;
10475 p = (char**) ccp;
10476 ccp = (char const *const *) p;
10477 { /* SCO 3.2v4 cc rejects this. */
10478 char *t;
10479 char const *s = 0 ? (char *) 0 : (char const *) 0;
10480
10481 *t++ = 0;
10482 }
10483 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10484 int x[] = {25, 17};
10485 const int *foo = &x[0];
10486 ++foo;
10487 }
10488 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10489 typedef const int *iptr;
10490 iptr p = 0;
10491 ++p;
10492 }
10493 { /* AIX XL C 1.02.0.0 rejects this saying
10494 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10495 struct s { int j; const int *ap[3]; };
10496 struct s *b; b->j = 5;
10497 }
10498 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10499 const int foo = 10;
10500 }
10501
10502 ; return 0; }
10503 EOF
10504 if { (eval echo configure:10505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10505 rm -rf conftest*
10506 ac_cv_c_const=yes
10507 else
10508 echo "configure: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10510 rm -rf conftest*
10511 ac_cv_c_const=no
10512 fi
10513 rm -f conftest*
10514 fi
10515
10516 echo "$ac_t""$ac_cv_c_const" 1>&6
10517 if test $ac_cv_c_const = no; then
10518 cat >> confdefs.h <<\EOF
10519 #define const
10520 EOF
10521
10522 fi
10523
10524 echo $ac_n "checking for inline""... $ac_c" 1>&6
10525 echo "configure:10526: checking for inline" >&5
10526 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10528 else
10529 ac_cv_c_inline=no
10530 for ac_kw in inline __inline__ __inline; do
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10534
10535 int main() {
10536 } $ac_kw foo() {
10537 ; return 0; }
10538 EOF
10539 if { (eval echo configure:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10540 rm -rf conftest*
10541 ac_cv_c_inline=$ac_kw; break
10542 else
10543 echo "configure: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10545 fi
10546 rm -f conftest*
10547 done
10548
10549 fi
10550
10551 echo "$ac_t""$ac_cv_c_inline" 1>&6
10552 case "$ac_cv_c_inline" in
10553 inline | yes) ;;
10554 no) cat >> confdefs.h <<\EOF
10555 #define inline
10556 EOF
10557 ;;
10558 *) cat >> confdefs.h <<EOF
10559 #define inline $ac_cv_c_inline
10560 EOF
10561 ;;
10562 esac
10563
10564
10565 echo $ac_n "checking size of char""... $ac_c" 1>&6
10566 echo "configure:10567: checking size of char" >&5
10567 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10569 else
10570 if test "$cross_compiling" = yes; then
10571 ac_cv_sizeof_char=1
10572 else
10573 cat > conftest.$ac_ext <<EOF
10574 #line 10575 "configure"
10575 #include "confdefs.h"
10576 #include <stdio.h>
10577 main()
10578 {
10579 FILE *f=fopen("conftestval", "w");
10580 if (!f) exit(1);
10581 fprintf(f, "%d\n", sizeof(char));
10582 exit(0);
10583 }
10584 EOF
10585 if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10586 then
10587 ac_cv_sizeof_char=`cat conftestval`
10588 else
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 rm -fr conftest*
10592 ac_cv_sizeof_char=0
10593 fi
10594 rm -fr conftest*
10595 fi
10596
10597 fi
10598 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10599 cat >> confdefs.h <<EOF
10600 #define SIZEOF_CHAR $ac_cv_sizeof_char
10601 EOF
10602
10603
10604 echo $ac_n "checking size of short""... $ac_c" 1>&6
10605 echo "configure:10606: checking size of short" >&5
10606 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10608 else
10609 if test "$cross_compiling" = yes; then
10610 ac_cv_sizeof_short=2
10611 else
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 #include <stdio.h>
10616 main()
10617 {
10618 FILE *f=fopen("conftestval", "w");
10619 if (!f) exit(1);
10620 fprintf(f, "%d\n", sizeof(short));
10621 exit(0);
10622 }
10623 EOF
10624 if { (eval echo configure:10625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10625 then
10626 ac_cv_sizeof_short=`cat conftestval`
10627 else
10628 echo "configure: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10630 rm -fr conftest*
10631 ac_cv_sizeof_short=0
10632 fi
10633 rm -fr conftest*
10634 fi
10635
10636 fi
10637 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10638 cat >> confdefs.h <<EOF
10639 #define SIZEOF_SHORT $ac_cv_sizeof_short
10640 EOF
10641
10642
10643 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10644 echo "configure:10645: checking size of void *" >&5
10645 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10647 else
10648 if test "$cross_compiling" = yes; then
10649 ac_cv_sizeof_void_p=4
10650 else
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10654 #include <stdio.h>
10655 main()
10656 {
10657 FILE *f=fopen("conftestval", "w");
10658 if (!f) exit(1);
10659 fprintf(f, "%d\n", sizeof(void *));
10660 exit(0);
10661 }
10662 EOF
10663 if { (eval echo configure:10664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10664 then
10665 ac_cv_sizeof_void_p=`cat conftestval`
10666 else
10667 echo "configure: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10669 rm -fr conftest*
10670 ac_cv_sizeof_void_p=0
10671 fi
10672 rm -fr conftest*
10673 fi
10674
10675 fi
10676 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10677 cat >> confdefs.h <<EOF
10678 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10679 EOF
10680
10681
10682 echo $ac_n "checking size of int""... $ac_c" 1>&6
10683 echo "configure:10684: checking size of int" >&5
10684 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10685 echo $ac_n "(cached) $ac_c" 1>&6
10686 else
10687 if test "$cross_compiling" = yes; then
10688 ac_cv_sizeof_int=4
10689 else
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10693 #include <stdio.h>
10694 main()
10695 {
10696 FILE *f=fopen("conftestval", "w");
10697 if (!f) exit(1);
10698 fprintf(f, "%d\n", sizeof(int));
10699 exit(0);
10700 }
10701 EOF
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10703 then
10704 ac_cv_sizeof_int=`cat conftestval`
10705 else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -fr conftest*
10709 ac_cv_sizeof_int=0
10710 fi
10711 rm -fr conftest*
10712 fi
10713
10714 fi
10715 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10716 cat >> confdefs.h <<EOF
10717 #define SIZEOF_INT $ac_cv_sizeof_int
10718 EOF
10719
10720
10721 echo $ac_n "checking size of long""... $ac_c" 1>&6
10722 echo "configure:10723: checking size of long" >&5
10723 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10725 else
10726 if test "$cross_compiling" = yes; then
10727 ac_cv_sizeof_long=4
10728 else
10729 cat > conftest.$ac_ext <<EOF
10730 #line 10731 "configure"
10731 #include "confdefs.h"
10732 #include <stdio.h>
10733 main()
10734 {
10735 FILE *f=fopen("conftestval", "w");
10736 if (!f) exit(1);
10737 fprintf(f, "%d\n", sizeof(long));
10738 exit(0);
10739 }
10740 EOF
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10742 then
10743 ac_cv_sizeof_long=`cat conftestval`
10744 else
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 rm -fr conftest*
10748 ac_cv_sizeof_long=0
10749 fi
10750 rm -fr conftest*
10751 fi
10752
10753 fi
10754 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10755 cat >> confdefs.h <<EOF
10756 #define SIZEOF_LONG $ac_cv_sizeof_long
10757 EOF
10758
10759
10760
10761 case "${host}" in
10762 arm-*-linux* )
10763 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10764 echo "configure:10765: checking size of long long" >&5
10765 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10766 echo $ac_n "(cached) $ac_c" 1>&6
10767 else
10768 if test "$cross_compiling" = yes; then
10769 ac_cv_sizeof_long_long=8
10770 else
10771 cat > conftest.$ac_ext <<EOF
10772 #line 10773 "configure"
10773 #include "confdefs.h"
10774 #include <stdio.h>
10775 main()
10776 {
10777 FILE *f=fopen("conftestval", "w");
10778 if (!f) exit(1);
10779 fprintf(f, "%d\n", sizeof(long long));
10780 exit(0);
10781 }
10782 EOF
10783 if { (eval echo configure:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10784 then
10785 ac_cv_sizeof_long_long=`cat conftestval`
10786 else
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10789 rm -fr conftest*
10790 ac_cv_sizeof_long_long=0
10791 fi
10792 rm -fr conftest*
10793 fi
10794
10795 fi
10796 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10797 cat >> confdefs.h <<EOF
10798 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10799 EOF
10800
10801
10802 ;;
10803 *-hp-hpux* )
10804 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10805 echo "configure:10806: checking size of long long" >&5
10806 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10807 echo $ac_n "(cached) $ac_c" 1>&6
10808 else
10809 if test "$cross_compiling" = yes; then
10810 ac_cv_sizeof_long_long=0
10811 else
10812 cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815 #include <stdio.h>
10816 main()
10817 {
10818 FILE *f=fopen("conftestval", "w");
10819 if (!f) exit(1);
10820 fprintf(f, "%d\n", sizeof(long long));
10821 exit(0);
10822 }
10823 EOF
10824 if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10825 then
10826 ac_cv_sizeof_long_long=`cat conftestval`
10827 else
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 rm -fr conftest*
10831 ac_cv_sizeof_long_long=0
10832 fi
10833 rm -fr conftest*
10834 fi
10835
10836 fi
10837 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10838 cat >> confdefs.h <<EOF
10839 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10840 EOF
10841
10842
10843 if test "$ac_cv_sizeof_long_long" != "0"; then
10844 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10845 fi
10846 ;;
10847 * )
10848 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10849 echo "configure:10850: checking size of long long" >&5
10850 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10852 else
10853 if test "$cross_compiling" = yes; then
10854 ac_cv_sizeof_long_long=0
10855 else
10856 cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859 #include <stdio.h>
10860 main()
10861 {
10862 FILE *f=fopen("conftestval", "w");
10863 if (!f) exit(1);
10864 fprintf(f, "%d\n", sizeof(long long));
10865 exit(0);
10866 }
10867 EOF
10868 if { (eval echo configure:10869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10869 then
10870 ac_cv_sizeof_long_long=`cat conftestval`
10871 else
10872 echo "configure: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10874 rm -fr conftest*
10875 ac_cv_sizeof_long_long=0
10876 fi
10877 rm -fr conftest*
10878 fi
10879
10880 fi
10881 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10882 cat >> confdefs.h <<EOF
10883 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10884 EOF
10885
10886
10887 esac
10888
10889 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10890 echo "configure:10891: checking size of wchar_t" >&5
10891 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10893 else
10894
10895 if test "$cross_compiling" = yes; then
10896
10897 case "${host}" in
10898 *-pc-msdosdjgpp )
10899 wx_cv_sizeof_wchar_t=0
10900 ;;
10901 * )
10902 wx_cv_sizeof_wchar_t=4
10903 ;;
10904 esac
10905
10906
10907 else
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10911
10912 /* DJGPP only has fake wchar_t: */
10913 #ifdef __DJGPP__
10914 # error "fake wchar_t"
10915 #endif
10916 #ifdef HAVE_WCHAR_H
10917 # ifdef __CYGWIN__
10918 # include <stddef.h>
10919 # endif
10920 # include <wchar.h>
10921 #endif
10922 #ifdef HAVE_STDLIB_H
10923 # include <stdlib.h>
10924 #endif
10925 #include <stdio.h>
10926 int main()
10927 {
10928 FILE *f=fopen("conftestval", "w");
10929 if (!f) exit(1);
10930 fprintf(f, "%i", sizeof(wchar_t));
10931 exit(0);
10932 }
10933
10934 EOF
10935 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10936 then
10937 wx_cv_sizeof_wchar_t=`cat conftestval`
10938 else
10939 echo "configure: failed program was:" >&5
10940 cat conftest.$ac_ext >&5
10941 rm -fr conftest*
10942 wx_cv_sizeof_wchar_t=0
10943 fi
10944 rm -fr conftest*
10945 fi
10946
10947
10948 fi
10949
10950 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10951
10952 cat >> confdefs.h <<EOF
10953 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10954 EOF
10955
10956
10957 # Check whether --enable-largefile or --disable-largefile was given.
10958 if test "${enable_largefile+set}" = set; then
10959 enableval="$enable_largefile"
10960 :
10961 fi
10962
10963 if test "$enable_largefile" != no; then
10964 wx_largefile=no
10965
10966 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10967 echo "configure:10968: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10968 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10969 echo $ac_n "(cached) $ac_c" 1>&6
10970 else
10971
10972 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975 #define _FILE_OFFSET_BITS 64
10976 #include <sys/types.h>
10977 int main() {
10978 typedef struct {
10979 unsigned int field: sizeof(off_t) == 8;
10980 } wxlf;
10981
10982 ; return 0; }
10983 EOF
10984 if { (eval echo configure:10985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10985 rm -rf conftest*
10986 ac_cv_sys_file_offset_bits=64
10987 else
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10990 rm -rf conftest*
10991 ac_cv_sys_file_offset_bits=no
10992 fi
10993 rm -f conftest*
10994
10995
10996 fi
10997
10998 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10999
11000 if test "$ac_cv_sys_file_offset_bits" != no; then
11001 wx_largefile=yes
11002 cat >> confdefs.h <<EOF
11003 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11004 EOF
11005
11006 fi
11007
11008 if test "x$wx_largefile" != "xyes"; then
11009
11010 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
11011 echo "configure:11012: checking for _LARGE_FILES value needed for large files" >&5
11012 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11014 else
11015
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #define _LARGE_FILES 1
11020 #include <sys/types.h>
11021 int main() {
11022 typedef struct {
11023 unsigned int field: sizeof(off_t) == 8;
11024 } wxlf;
11025
11026 ; return 0; }
11027 EOF
11028 if { (eval echo configure:11029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11029 rm -rf conftest*
11030 ac_cv_sys_large_files=1
11031 else
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -rf conftest*
11035 ac_cv_sys_large_files=no
11036 fi
11037 rm -f conftest*
11038
11039
11040 fi
11041
11042 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
11043
11044 if test "$ac_cv_sys_large_files" != no; then
11045 wx_largefile=yes
11046 cat >> confdefs.h <<EOF
11047 #define _LARGE_FILES $ac_cv_sys_large_files
11048 EOF
11049
11050 fi
11051
11052 fi
11053
11054 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
11055 echo "configure:11056: checking if large file support is available" >&5
11056 if test "x$wx_largefile" = "xyes"; then
11057 cat >> confdefs.h <<\EOF
11058 #define HAVE_LARGEFILE_SUPPORT 1
11059 EOF
11060
11061 fi
11062 echo "$ac_t""$wx_largefile" 1>&6
11063 fi
11064
11065
11066 if test "x$wx_largefile" = "xyes"; then
11067 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
11068 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
11069 else
11070 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
11071 fi
11072 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
11073 fi
11074
11075 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11076 echo "configure:11077: checking whether byte ordering is bigendian" >&5
11077 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11079 else
11080 ac_cv_c_bigendian=unknown
11081 # See if sys/param.h defines the BYTE_ORDER macro.
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 #include <sys/types.h>
11086 #include <sys/param.h>
11087 int main() {
11088
11089 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11090 bogus endian macros
11091 #endif
11092 ; return 0; }
11093 EOF
11094 if { (eval echo configure:11095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11095 rm -rf conftest*
11096 # It does; now see whether it defined to BIG_ENDIAN or not.
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 #include <sys/types.h>
11101 #include <sys/param.h>
11102 int main() {
11103
11104 #if BYTE_ORDER != BIG_ENDIAN
11105 not big endian
11106 #endif
11107 ; return 0; }
11108 EOF
11109 if { (eval echo configure:11110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11110 rm -rf conftest*
11111 ac_cv_c_bigendian=yes
11112 else
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 ac_cv_c_bigendian=no
11117 fi
11118 rm -f conftest*
11119 else
11120 echo "configure: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 fi
11123 rm -f conftest*
11124 if test $ac_cv_c_bigendian = unknown; then
11125 if test "$cross_compiling" = yes; then
11126 ac_cv_c_bigendian=unknown
11127 else
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 main () {
11132 /* Are we little or big endian? From Harbison&Steele. */
11133 union
11134 {
11135 long l;
11136 char c[sizeof (long)];
11137 } u;
11138 u.l = 1;
11139 exit (u.c[sizeof (long) - 1] == 1);
11140 }
11141 EOF
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11143 then
11144 ac_cv_c_bigendian=no
11145 else
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11148 rm -fr conftest*
11149 ac_cv_c_bigendian=yes
11150 fi
11151 rm -fr conftest*
11152 fi
11153
11154 fi
11155 fi
11156
11157 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11158 if test $ac_cv_c_bigendian = unknown; then
11159 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
11160 fi
11161 if test $ac_cv_c_bigendian = yes; then
11162 cat >> confdefs.h <<\EOF
11163 #define WORDS_BIGENDIAN 1
11164 EOF
11165
11166 fi
11167
11168
11169 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11170 echo "configure:11171: checking how to run the C++ preprocessor" >&5
11171 if test -z "$CXXCPP"; then
11172 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11173 echo $ac_n "(cached) $ac_c" 1>&6
11174 else
11175 ac_ext=C
11176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11177 ac_cpp='$CXXCPP $CPPFLAGS'
11178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11180 cross_compiling=$ac_cv_prog_cxx_cross
11181 CXXCPP="${CXX-g++} -E"
11182 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure"
11184 #include "confdefs.h"
11185 #include <stdlib.h>
11186 EOF
11187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11188 { (eval echo configure:11189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11190 if test -z "$ac_err"; then
11191 :
11192 else
11193 echo "$ac_err" >&5
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 CXXCPP=/lib/cpp
11198 fi
11199 rm -f conftest*
11200 ac_cv_prog_CXXCPP="$CXXCPP"
11201 ac_ext=C
11202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11203 ac_cpp='$CXXCPP $CPPFLAGS'
11204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11206 cross_compiling=$ac_cv_prog_cxx_cross
11207 fi
11208 fi
11209 CXXCPP="$ac_cv_prog_CXXCPP"
11210 echo "$ac_t""$CXXCPP" 1>&6
11211
11212
11213 if test "$cross_compiling" = "yes"; then
11214 cat >> confdefs.h <<\EOF
11215 #define wxUSE_IOSTREAMH 1
11216 EOF
11217
11218 else
11219
11220 ac_ext=C
11221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11222 ac_cpp='$CXXCPP $CPPFLAGS'
11223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11225 cross_compiling=$ac_cv_prog_cxx_cross
11226
11227
11228 for ac_hdr in iostream
11229 do
11230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11232 echo "configure:11233: checking for $ac_hdr" >&5
11233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11235 else
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239 #include <$ac_hdr>
11240 EOF
11241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11242 { (eval echo configure:11243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11244 if test -z "$ac_err"; then
11245 rm -rf conftest*
11246 eval "ac_cv_header_$ac_safe=yes"
11247 else
11248 echo "$ac_err" >&5
11249 echo "configure: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11251 rm -rf conftest*
11252 eval "ac_cv_header_$ac_safe=no"
11253 fi
11254 rm -f conftest*
11255 fi
11256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11257 echo "$ac_t""yes" 1>&6
11258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11259 cat >> confdefs.h <<EOF
11260 #define $ac_tr_hdr 1
11261 EOF
11262
11263 else
11264 echo "$ac_t""no" 1>&6
11265 fi
11266 done
11267
11268
11269 if test "$ac_cv_header_iostream" = "yes" ; then
11270 :
11271 else
11272 cat >> confdefs.h <<\EOF
11273 #define wxUSE_IOSTREAMH 1
11274 EOF
11275
11276 fi
11277
11278 ac_ext=c
11279 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11280 ac_cpp='$CPP $CPPFLAGS'
11281 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11282 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11283 cross_compiling=$ac_cv_prog_cc_cross
11284
11285 fi
11286
11287
11288
11289 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11290 echo "configure:11291: checking if C++ compiler supports bool" >&5
11291 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293 else
11294
11295
11296 ac_ext=C
11297 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11298 ac_cpp='$CXXCPP $CPPFLAGS'
11299 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11300 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11301 cross_compiling=$ac_cv_prog_cxx_cross
11302
11303
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307
11308
11309 int main() {
11310
11311 bool b = true;
11312
11313 return 0;
11314
11315 ; return 0; }
11316 EOF
11317 if { (eval echo configure:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11318 rm -rf conftest*
11319
11320 wx_cv_cpp_bool=yes
11321
11322 else
11323 echo "configure: failed program was:" >&5
11324 cat conftest.$ac_ext >&5
11325 rm -rf conftest*
11326
11327 wx_cv_cpp_bool=no
11328
11329
11330 fi
11331 rm -f conftest*
11332
11333 ac_ext=c
11334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11335 ac_cpp='$CPP $CPPFLAGS'
11336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11338 cross_compiling=$ac_cv_prog_cc_cross
11339
11340
11341 fi
11342
11343 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11344
11345 if test "$wx_cv_cpp_bool" = "yes"; then
11346 cat >> confdefs.h <<\EOF
11347 #define HAVE_BOOL 1
11348 EOF
11349
11350 fi
11351
11352
11353
11354 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11355 echo "configure:11356: checking if C++ compiler supports the explicit keyword" >&5
11356 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11358 else
11359
11360
11361 ac_ext=C
11362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11363 ac_cpp='$CXXCPP $CPPFLAGS'
11364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11366 cross_compiling=$ac_cv_prog_cxx_cross
11367
11368
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11372
11373 class Foo { public: explicit Foo(int) {} };
11374
11375 int main() {
11376
11377 return 0;
11378
11379 ; return 0; }
11380 EOF
11381 if { (eval echo configure:11382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11382 rm -rf conftest*
11383
11384 cat > conftest.$ac_ext <<EOF
11385 #line 11386 "configure"
11386 #include "confdefs.h"
11387
11388 class Foo { public: explicit Foo(int) {} };
11389 static void TakeFoo(const Foo& foo) { }
11390
11391 int main() {
11392
11393 TakeFoo(17);
11394 return 0;
11395
11396 ; return 0; }
11397 EOF
11398 if { (eval echo configure:11399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11399 rm -rf conftest*
11400 wx_cv_explicit=no
11401 else
11402 echo "configure: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 rm -rf conftest*
11405 wx_cv_explicit=yes
11406
11407 fi
11408 rm -f conftest*
11409
11410 else
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11413 rm -rf conftest*
11414 wx_cv_explicit=no
11415
11416 fi
11417 rm -f conftest*
11418
11419 ac_ext=c
11420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11421 ac_cpp='$CPP $CPPFLAGS'
11422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11424 cross_compiling=$ac_cv_prog_cc_cross
11425
11426
11427 fi
11428
11429 echo "$ac_t""$wx_cv_explicit" 1>&6
11430
11431 if test "$wx_cv_explicit" = "yes"; then
11432 cat >> confdefs.h <<\EOF
11433 #define HAVE_EXPLICIT 1
11434 EOF
11435
11436 fi
11437
11438
11439 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11440 echo "configure:11441: checking whether the compiler supports const_cast<>" >&5
11441 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11442 echo $ac_n "(cached) $ac_c" 1>&6
11443 else
11444
11445 ac_ext=C
11446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11447 ac_cpp='$CXXCPP $CPPFLAGS'
11448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11450 cross_compiling=$ac_cv_prog_cxx_cross
11451
11452 cat > conftest.$ac_ext <<EOF
11453 #line 11454 "configure"
11454 #include "confdefs.h"
11455
11456 int main() {
11457 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11458 ; return 0; }
11459 EOF
11460 if { (eval echo configure:11461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11461 rm -rf conftest*
11462 ac_cv_cxx_const_cast=yes
11463 else
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 rm -rf conftest*
11467 ac_cv_cxx_const_cast=no
11468 fi
11469 rm -f conftest*
11470 ac_ext=c
11471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11472 ac_cpp='$CPP $CPPFLAGS'
11473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11475 cross_compiling=$ac_cv_prog_cc_cross
11476
11477
11478 fi
11479
11480 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11481 if test "$ac_cv_cxx_const_cast" = yes; then
11482 cat >> confdefs.h <<\EOF
11483 #define HAVE_CONST_CAST
11484 EOF
11485
11486 fi
11487
11488
11489
11490 SEARCH_INCLUDE="\
11491 /usr/local/include \
11492 \
11493 /usr/Motif-1.2/include \
11494 /usr/Motif-2.1/include \
11495 \
11496 /usr/include/Motif1.2 \
11497 /opt/xpm/include/X11 \
11498 /opt/GBxpm/include/ \
11499 /opt/GBxpm/X11/include/ \
11500 \
11501 /usr/Motif1.2/include \
11502 /usr/dt/include \
11503 /usr/openwin/include \
11504 \
11505 /usr/include/Xm \
11506 \
11507 /usr/X11R6/include \
11508 /usr/X11R6.4/include \
11509 /usr/X11R5/include \
11510 /usr/X11R4/include \
11511 \
11512 /usr/include/X11R6 \
11513 /usr/include/X11R5 \
11514 /usr/include/X11R4 \
11515 \
11516 /usr/local/X11R6/include \
11517 /usr/local/X11R5/include \
11518 /usr/local/X11R4/include \
11519 \
11520 /usr/local/include/X11R6 \
11521 /usr/local/include/X11R5 \
11522 /usr/local/include/X11R4 \
11523 \
11524 /usr/X11/include \
11525 /usr/include/X11 \
11526 /usr/local/X11/include \
11527 /usr/local/include/X11 \
11528 \
11529 /usr/X386/include \
11530 /usr/x386/include \
11531 /usr/XFree86/include/X11 \
11532 \
11533 X:/XFree86/include \
11534 X:/XFree86/include/X11 \
11535 \
11536 /usr/include/gtk \
11537 /usr/local/include/gtk \
11538 /usr/include/glib \
11539 /usr/local/include/glib \
11540 \
11541 /usr/include/qt \
11542 /usr/local/include/qt \
11543 \
11544 /usr/include/windows \
11545 /usr/include/wine \
11546 /usr/local/include/wine \
11547 \
11548 /usr/unsupported/include \
11549 /usr/athena/include \
11550 /usr/local/x11r5/include \
11551 /usr/lpp/Xamples/include \
11552 \
11553 /usr/openwin/share/include"
11554
11555 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11556
11557
11558 cat > confcache <<\EOF
11559 # This file is a shell script that caches the results of configure
11560 # tests run on this system so they can be shared between configure
11561 # scripts and configure runs. It is not useful on other systems.
11562 # If it contains results you don't want to keep, you may remove or edit it.
11563 #
11564 # By default, configure uses ./config.cache as the cache file,
11565 # creating it if it does not exist already. You can give configure
11566 # the --cache-file=FILE option to use a different cache file; that is
11567 # what configure does when it calls configure scripts in
11568 # subdirectories, so they share the cache.
11569 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11570 # config.status only pays attention to the cache file if you give it the
11571 # --recheck option to rerun configure.
11572 #
11573 EOF
11574 # The following way of writing the cache mishandles newlines in values,
11575 # but we know of no workaround that is simple, portable, and efficient.
11576 # So, don't put newlines in cache variables' values.
11577 # Ultrix sh set writes to stderr and can't be redirected directly,
11578 # and sets the high bit in the cache file unless we assign to the vars.
11579 (set) 2>&1 |
11580 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11581 *ac_space=\ *)
11582 # `set' does not quote correctly, so add quotes (double-quote substitution
11583 # turns \\\\ into \\, and sed turns \\ into \).
11584 sed -n \
11585 -e "s/'/'\\\\''/g" \
11586 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11587 ;;
11588 *)
11589 # `set' quotes correctly as required by POSIX, so do not add quotes.
11590 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11591 ;;
11592 esac >> confcache
11593 if cmp -s $cache_file confcache; then
11594 :
11595 else
11596 if test -w $cache_file; then
11597 echo "updating cache $cache_file"
11598 cat confcache > $cache_file
11599 else
11600 echo "not updating unwritable cache $cache_file"
11601 fi
11602 fi
11603 rm -f confcache
11604
11605
11606 if test "$USE_LINUX" = 1; then
11607 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11608 echo "configure:11609: checking for glibc 2.1 or later" >&5
11609 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11610 echo $ac_n "(cached) $ac_c" 1>&6
11611 else
11612
11613 cat > conftest.$ac_ext <<EOF
11614 #line 11615 "configure"
11615 #include "confdefs.h"
11616 #include <features.h>
11617 int main() {
11618
11619 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11620 #error not glibc2.1
11621 #endif
11622
11623 ; return 0; }
11624 EOF
11625 if { (eval echo configure:11626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11626 rm -rf conftest*
11627
11628 wx_cv_lib_glibc21=yes
11629
11630 else
11631 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5
11633 rm -rf conftest*
11634
11635 wx_cv_lib_glibc21=no
11636
11637
11638 fi
11639 rm -f conftest*
11640
11641 fi
11642
11643 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11644 if test "$wx_cv_lib_glibc21" = "yes"; then
11645 cat >> confdefs.h <<\EOF
11646 #define wxHAVE_GLIBC2 1
11647 EOF
11648
11649 fi
11650 fi
11651
11652 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11653 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11654 cat >> confdefs.h <<\EOF
11655 #define _GNU_SOURCE 1
11656 EOF
11657
11658 fi
11659 fi
11660
11661
11662
11663 REGEX_INCLUDE=
11664 if test "$wxUSE_REGEX" != "no"; then
11665 cat >> confdefs.h <<\EOF
11666 #define wxUSE_REGEX 1
11667 EOF
11668
11669
11670 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11671 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11672 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11673 echo "configure:11674: checking for regex.h" >&5
11674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11675 echo $ac_n "(cached) $ac_c" 1>&6
11676 else
11677 cat > conftest.$ac_ext <<EOF
11678 #line 11679 "configure"
11679 #include "confdefs.h"
11680 #include <regex.h>
11681 EOF
11682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11683 { (eval echo configure:11684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11685 if test -z "$ac_err"; then
11686 rm -rf conftest*
11687 eval "ac_cv_header_$ac_safe=yes"
11688 else
11689 echo "$ac_err" >&5
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 eval "ac_cv_header_$ac_safe=no"
11694 fi
11695 rm -f conftest*
11696 fi
11697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11698 echo "$ac_t""yes" 1>&6
11699 for ac_func in regcomp
11700 do
11701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11702 echo "configure:11703: checking for $ac_func" >&5
11703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11705 else
11706 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure"
11708 #include "confdefs.h"
11709 /* System header to define __stub macros and hopefully few prototypes,
11710 which can conflict with char $ac_func(); below. */
11711 #include <assert.h>
11712 /* Override any gcc2 internal prototype to avoid an error. */
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715 char $ac_func();
11716
11717 int main() {
11718
11719 /* The GNU C library defines this for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11723 choke me
11724 #else
11725 $ac_func();
11726 #endif
11727
11728 ; return 0; }
11729 EOF
11730 if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731 rm -rf conftest*
11732 eval "ac_cv_func_$ac_func=yes"
11733 else
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 rm -rf conftest*
11737 eval "ac_cv_func_$ac_func=no"
11738 fi
11739 rm -f conftest*
11740 fi
11741
11742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11743 echo "$ac_t""yes" 1>&6
11744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11745 cat >> confdefs.h <<EOF
11746 #define $ac_tr_func 1
11747 EOF
11748
11749 else
11750 echo "$ac_t""no" 1>&6
11751 fi
11752 done
11753
11754 else
11755 echo "$ac_t""no" 1>&6
11756 fi
11757
11758
11759 if test "x$ac_cv_func_regcomp" != "xyes"; then
11760 if test "$wxUSE_REGEX" = "sys" ; then
11761 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11762 else
11763 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11764 wxUSE_REGEX=builtin
11765 fi
11766 else
11767 wxUSE_REGEX=sys
11768 fi
11769 fi
11770
11771 if test "$wxUSE_REGEX" = "builtin" ; then
11772 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11773 fi
11774 fi
11775
11776
11777 ZLIB_INCLUDE=
11778 ZLIB_LINK=
11779 if test "$wxUSE_ZLIB" != "no" ; then
11780 cat >> confdefs.h <<\EOF
11781 #define wxUSE_ZLIB 1
11782 EOF
11783
11784
11785 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11786 if test "$USE_DARWIN" = 1; then
11787 system_zlib_h_ok="yes"
11788 else
11789 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11790 echo "configure:11791: checking for zlib.h >= 1.1.4" >&5
11791 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11793 else
11794 if test "$cross_compiling" = yes; then
11795 unset ac_cv_header_zlib_h
11796
11797 else
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801
11802 #include <zlib.h>
11803 #include <stdio.h>
11804
11805
11806 int main()
11807 {
11808 FILE *f=fopen("conftestval", "w");
11809 if (!f) exit(1);
11810 fprintf(f, "%s",
11811 ZLIB_VERSION[0] == '1' &&
11812 (ZLIB_VERSION[2] > '1' ||
11813 (ZLIB_VERSION[2] == '1' &&
11814 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11815 exit(0);
11816 }
11817
11818
11819 EOF
11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11821 then
11822 ac_cv_header_zlib_h=`cat conftestval`
11823 else
11824 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11826 rm -fr conftest*
11827 ac_cv_header_zlib_h=no
11828 fi
11829 rm -fr conftest*
11830 fi
11831
11832
11833 fi
11834
11835 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11836 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11837 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11838 echo "configure:11839: checking for zlib.h" >&5
11839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11840 echo $ac_n "(cached) $ac_c" 1>&6
11841 else
11842 cat > conftest.$ac_ext <<EOF
11843 #line 11844 "configure"
11844 #include "confdefs.h"
11845 #include <zlib.h>
11846 EOF
11847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11848 { (eval echo configure:11849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11850 if test -z "$ac_err"; then
11851 rm -rf conftest*
11852 eval "ac_cv_header_$ac_safe=yes"
11853 else
11854 echo "$ac_err" >&5
11855 echo "configure: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11857 rm -rf conftest*
11858 eval "ac_cv_header_$ac_safe=no"
11859 fi
11860 rm -f conftest*
11861 fi
11862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11863 echo "$ac_t""yes" 1>&6
11864 :
11865 else
11866 echo "$ac_t""no" 1>&6
11867 fi
11868
11869
11870 system_zlib_h_ok=$ac_cv_header_zlib_h
11871 fi
11872
11873 if test "$system_zlib_h_ok" = "yes"; then
11874 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11875 echo "configure:11876: checking for deflate in -lz" >&5
11876 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11878 echo $ac_n "(cached) $ac_c" 1>&6
11879 else
11880 ac_save_LIBS="$LIBS"
11881 LIBS="-lz $LIBS"
11882 cat > conftest.$ac_ext <<EOF
11883 #line 11884 "configure"
11884 #include "confdefs.h"
11885 /* Override any gcc2 internal prototype to avoid an error. */
11886 /* We use char because int might match the return type of a gcc2
11887 builtin and then its argument prototype would still apply. */
11888 char deflate();
11889
11890 int main() {
11891 deflate()
11892 ; return 0; }
11893 EOF
11894 if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11895 rm -rf conftest*
11896 eval "ac_cv_lib_$ac_lib_var=yes"
11897 else
11898 echo "configure: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 rm -rf conftest*
11901 eval "ac_cv_lib_$ac_lib_var=no"
11902 fi
11903 rm -f conftest*
11904 LIBS="$ac_save_LIBS"
11905
11906 fi
11907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11908 echo "$ac_t""yes" 1>&6
11909 ZLIB_LINK=" -lz"
11910 else
11911 echo "$ac_t""no" 1>&6
11912 fi
11913
11914 fi
11915
11916 if test "x$ZLIB_LINK" = "x" ; then
11917 if test "$wxUSE_ZLIB" = "sys" ; then
11918 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11919 else
11920 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11921 wxUSE_ZLIB=builtin
11922 fi
11923 else
11924 wxUSE_ZLIB=sys
11925 fi
11926 fi
11927
11928 if test "$wxUSE_ZLIB" = "builtin" ; then
11929 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11930 fi
11931 fi
11932
11933
11934 PNG_INCLUDE=
11935 PNG_LINK=
11936 if test "$wxUSE_LIBPNG" != "no" ; then
11937 cat >> confdefs.h <<\EOF
11938 #define wxUSE_LIBPNG 1
11939 EOF
11940
11941
11942 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11943 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11944 wxUSE_LIBPNG=sys
11945 fi
11946
11947 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11948 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11949 wxUSE_LIBPNG=builtin
11950 fi
11951
11952 if test "$wxUSE_MGL" != 1 ; then
11953 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11954 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11955 echo "configure:11956: checking for png.h > 0.90" >&5
11956 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11957 echo $ac_n "(cached) $ac_c" 1>&6
11958 else
11959 if test "$cross_compiling" = yes; then
11960 unset ac_cv_header_png_h
11961
11962 else
11963 cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11966
11967 #include <png.h>
11968 #include <stdio.h>
11969
11970 int main()
11971 {
11972 FILE *f=fopen("conftestval", "w");
11973 if (!f) exit(1);
11974 fprintf(f, "%s",
11975 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11976 exit(0);
11977 }
11978
11979 EOF
11980 if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11981 then
11982 ac_cv_header_png_h=`cat conftestval`
11983 else
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11986 rm -fr conftest*
11987 ac_cv_header_png_h=no
11988 fi
11989 rm -fr conftest*
11990 fi
11991
11992
11993 fi
11994
11995 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11996 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11997 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11998 echo "configure:11999: checking for png.h" >&5
11999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12000 echo $ac_n "(cached) $ac_c" 1>&6
12001 else
12002 cat > conftest.$ac_ext <<EOF
12003 #line 12004 "configure"
12004 #include "confdefs.h"
12005 #include <png.h>
12006 EOF
12007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12008 { (eval echo configure:12009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12010 if test -z "$ac_err"; then
12011 rm -rf conftest*
12012 eval "ac_cv_header_$ac_safe=yes"
12013 else
12014 echo "$ac_err" >&5
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12017 rm -rf conftest*
12018 eval "ac_cv_header_$ac_safe=no"
12019 fi
12020 rm -f conftest*
12021 fi
12022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12023 echo "$ac_t""yes" 1>&6
12024 :
12025 else
12026 echo "$ac_t""no" 1>&6
12027 fi
12028
12029
12030 if test "$ac_cv_header_png_h" = "yes"; then
12031 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
12032 echo "configure:12033: checking for png_check_sig in -lpng" >&5
12033 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12036 else
12037 ac_save_LIBS="$LIBS"
12038 LIBS="-lpng -lz -lm $LIBS"
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12042 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045 char png_check_sig();
12046
12047 int main() {
12048 png_check_sig()
12049 ; return 0; }
12050 EOF
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12052 rm -rf conftest*
12053 eval "ac_cv_lib_$ac_lib_var=yes"
12054 else
12055 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12057 rm -rf conftest*
12058 eval "ac_cv_lib_$ac_lib_var=no"
12059 fi
12060 rm -f conftest*
12061 LIBS="$ac_save_LIBS"
12062
12063 fi
12064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12065 echo "$ac_t""yes" 1>&6
12066 PNG_LINK=" -lpng"
12067 else
12068 echo "$ac_t""no" 1>&6
12069 fi
12070
12071 fi
12072
12073 if test "x$PNG_LINK" = "x" ; then
12074 if test "$wxUSE_LIBPNG" = "sys" ; then
12075 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
12076 else
12077 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
12078 wxUSE_LIBPNG=builtin
12079 fi
12080 else
12081 wxUSE_LIBPNG=sys
12082 fi
12083 fi
12084 fi
12085
12086 if test "$wxUSE_LIBPNG" = "builtin" ; then
12087 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12088 fi
12089
12090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12091 fi
12092
12093
12094 JPEG_INCLUDE=
12095 JPEG_LINK=
12096 if test "$wxUSE_LIBJPEG" != "no" ; then
12097 cat >> confdefs.h <<\EOF
12098 #define wxUSE_LIBJPEG 1
12099 EOF
12100
12101
12102 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
12103 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
12104 wxUSE_LIBJPEG=sys
12105 fi
12106
12107 if test "$wxUSE_MGL" != 1 ; then
12108 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
12109 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
12110 echo "configure:12111: checking for jpeglib.h" >&5
12111 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
12112 echo $ac_n "(cached) $ac_c" 1>&6
12113 else
12114 cat > conftest.$ac_ext <<EOF
12115 #line 12116 "configure"
12116 #include "confdefs.h"
12117
12118 #undef HAVE_STDLIB_H
12119 #include <stdio.h>
12120 #include <jpeglib.h>
12121
12122 int main() {
12123
12124
12125 ; return 0; }
12126 EOF
12127 if { (eval echo configure:12128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12128 rm -rf conftest*
12129 ac_cv_header_jpeglib_h=yes
12130 else
12131 echo "configure: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 rm -rf conftest*
12134 ac_cv_header_jpeglib_h=no
12135
12136 fi
12137 rm -f conftest*
12138
12139 fi
12140
12141 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
12142
12143 if test "$ac_cv_header_jpeglib_h" = "yes"; then
12144 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
12145 echo "configure:12146: checking for jpeg_read_header in -ljpeg" >&5
12146 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12149 else
12150 ac_save_LIBS="$LIBS"
12151 LIBS="-ljpeg $LIBS"
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12155 /* Override any gcc2 internal prototype to avoid an error. */
12156 /* We use char because int might match the return type of a gcc2
12157 builtin and then its argument prototype would still apply. */
12158 char jpeg_read_header();
12159
12160 int main() {
12161 jpeg_read_header()
12162 ; return 0; }
12163 EOF
12164 if { (eval echo configure:12165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12165 rm -rf conftest*
12166 eval "ac_cv_lib_$ac_lib_var=yes"
12167 else
12168 echo "configure: failed program was:" >&5
12169 cat conftest.$ac_ext >&5
12170 rm -rf conftest*
12171 eval "ac_cv_lib_$ac_lib_var=no"
12172 fi
12173 rm -f conftest*
12174 LIBS="$ac_save_LIBS"
12175
12176 fi
12177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12178 echo "$ac_t""yes" 1>&6
12179 JPEG_LINK=" -ljpeg"
12180 else
12181 echo "$ac_t""no" 1>&6
12182 fi
12183
12184 fi
12185
12186 if test "x$JPEG_LINK" = "x" ; then
12187 if test "$wxUSE_LIBJPEG" = "sys" ; then
12188 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12189 else
12190 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12191 wxUSE_LIBJPEG=builtin
12192 fi
12193 else
12194 wxUSE_LIBJPEG=sys
12195 fi
12196 fi
12197 fi
12198
12199 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12200 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12201 fi
12202 fi
12203
12204
12205 TIFF_INCLUDE=
12206 TIFF_LINK=
12207 TIFF_PREREQ_LINKS=-lm
12208 if test "$wxUSE_LIBTIFF" != "no" ; then
12209 cat >> confdefs.h <<\EOF
12210 #define wxUSE_LIBTIFF 1
12211 EOF
12212
12213
12214 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12215 if test "$wxUSE_LIBJPEG" = "sys"; then
12216 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12217 fi
12218 if test "$wxUSE_ZLIB" = "sys"; then
12219 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12220 fi
12221 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12222 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12223 echo "configure:12224: checking for tiffio.h" >&5
12224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12225 echo $ac_n "(cached) $ac_c" 1>&6
12226 else
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230 #include <tiffio.h>
12231 EOF
12232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12233 { (eval echo configure:12234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12235 if test -z "$ac_err"; then
12236 rm -rf conftest*
12237 eval "ac_cv_header_$ac_safe=yes"
12238 else
12239 echo "$ac_err" >&5
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 rm -rf conftest*
12243 eval "ac_cv_header_$ac_safe=no"
12244 fi
12245 rm -f conftest*
12246 fi
12247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12248 echo "$ac_t""yes" 1>&6
12249 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12250 echo "configure:12251: checking for TIFFError in -ltiff" >&5
12251 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12253 echo $ac_n "(cached) $ac_c" 1>&6
12254 else
12255 ac_save_LIBS="$LIBS"
12256 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char TIFFError();
12264
12265 int main() {
12266 TIFFError()
12267 ; return 0; }
12268 EOF
12269 if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12270 rm -rf conftest*
12271 eval "ac_cv_lib_$ac_lib_var=yes"
12272 else
12273 echo "configure: failed program was:" >&5
12274 cat conftest.$ac_ext >&5
12275 rm -rf conftest*
12276 eval "ac_cv_lib_$ac_lib_var=no"
12277 fi
12278 rm -f conftest*
12279 LIBS="$ac_save_LIBS"
12280
12281 fi
12282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12283 echo "$ac_t""yes" 1>&6
12284 TIFF_LINK=" -ltiff"
12285 else
12286 echo "$ac_t""no" 1>&6
12287 fi
12288
12289
12290 else
12291 echo "$ac_t""no" 1>&6
12292 fi
12293
12294
12295 if test "x$TIFF_LINK" = "x" ; then
12296 if test "$wxUSE_LIBTIFF" = "sys" ; then
12297 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12298 else
12299 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12300 wxUSE_LIBTIFF=builtin
12301 fi
12302 else
12303 wxUSE_LIBTIFF=sys
12304 fi
12305 fi
12306
12307 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12308 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12309 fi
12310 fi
12311
12312
12313 AFMINSTALL=
12314 WIN32INSTALL=
12315
12316 TOOLKIT=
12317 TOOLKIT_INCLUDE=
12318 WIDGET_SET=
12319
12320 if test "$USE_WIN32" = 1 ; then
12321 for ac_hdr in w32api.h
12322 do
12323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12325 echo "configure:12326: checking for $ac_hdr" >&5
12326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12327 echo $ac_n "(cached) $ac_c" 1>&6
12328 else
12329 cat > conftest.$ac_ext <<EOF
12330 #line 12331 "configure"
12331 #include "confdefs.h"
12332 #include <$ac_hdr>
12333 EOF
12334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12335 { (eval echo configure:12336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12337 if test -z "$ac_err"; then
12338 rm -rf conftest*
12339 eval "ac_cv_header_$ac_safe=yes"
12340 else
12341 echo "$ac_err" >&5
12342 echo "configure: failed program was:" >&5
12343 cat conftest.$ac_ext >&5
12344 rm -rf conftest*
12345 eval "ac_cv_header_$ac_safe=no"
12346 fi
12347 rm -f conftest*
12348 fi
12349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12350 echo "$ac_t""yes" 1>&6
12351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12352 cat >> confdefs.h <<EOF
12353 #define $ac_tr_hdr 1
12354 EOF
12355
12356 else
12357 echo "$ac_t""no" 1>&6
12358 fi
12359 done
12360
12361 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12362 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12363 echo "configure:12364: checking for windows.h" >&5
12364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12365 echo $ac_n "(cached) $ac_c" 1>&6
12366 else
12367 cat > conftest.$ac_ext <<EOF
12368 #line 12369 "configure"
12369 #include "confdefs.h"
12370 #include <windows.h>
12371 EOF
12372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12373 { (eval echo configure:12374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12375 if test -z "$ac_err"; then
12376 rm -rf conftest*
12377 eval "ac_cv_header_$ac_safe=yes"
12378 else
12379 echo "$ac_err" >&5
12380 echo "configure: failed program was:" >&5
12381 cat conftest.$ac_ext >&5
12382 rm -rf conftest*
12383 eval "ac_cv_header_$ac_safe=no"
12384 fi
12385 rm -f conftest*
12386 fi
12387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12388 echo "$ac_t""yes" 1>&6
12389 :
12390 else
12391 echo "$ac_t""no" 1>&6
12392
12393 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12394
12395 fi
12396
12397
12398 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12399 echo "configure:12400: checking if w32api has good enough MSIE support" >&5
12400 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12403
12404 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure"
12406 #include "confdefs.h"
12407 #include <w32api.h>
12408 int main() {
12409
12410 #define wxCHECK_W32API_VERSION( major, minor ) \
12411 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12412 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12413 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12414
12415 #if !wxCHECK_W32API_VERSION(1,1)
12416 #error You need w32api 1.1 or newer
12417 #endif
12418
12419 ; return 0; }
12420 EOF
12421 if { (eval echo configure:12422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12422 rm -rf conftest*
12423
12424 wx_cv_w32api_win32_ie=yes
12425
12426 else
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 rm -rf conftest*
12430
12431 wx_cv_w32api_win32_ie=no
12432
12433 fi
12434 rm -f conftest*
12435
12436 fi
12437
12438 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12439 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12440 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12441 fi
12442
12443 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12444
12445 case "${host}" in
12446 *-*-cygwin* )
12447 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12448 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12449 esac
12450
12451 if test "$wxUSE_ODBC" = "yes" ; then
12452 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12453 fi
12454
12455 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12456 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12457
12458 WIN32INSTALL=win32install
12459 fi
12460
12461 if test "$USE_DARWIN" = 1; then
12462 if test "$wxUSE_PRECOMP" = "yes"; then
12463 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12464 else
12465 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12466 fi
12467 fi
12468
12469 if test "$wxUSE_GUI" = "yes"; then
12470 USE_GUI=1
12471
12472 GUI_TK_LIBRARY=
12473
12474 WXGTK12=
12475 WXGTK127=
12476 WXGTK20=
12477
12478 if test "$wxUSE_MSW" = 1 ; then
12479 TOOLKIT=MSW
12480 GUIDIST=MSW_DIST
12481
12482 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12483 fi
12484
12485 if test "$wxUSE_GTK" = 1; then
12486 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12487 echo "configure:12488: checking for GTK+ version" >&5
12488
12489 gtk_version_cached=1
12490 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12491 echo $ac_n "(cached) $ac_c" 1>&6
12492 else
12493
12494 gtk_version_cached=0
12495 echo "$ac_t""" 1>&6
12496
12497 GTK_MODULES=
12498 if test "$wxUSE_THREADS" = "yes"; then
12499 GTK_MODULES=gthread
12500 fi
12501
12502 wx_cv_lib_gtk=
12503 if test "x$wxUSE_GTK2" = "xyes"; then
12504 # Check whether --enable-gtktest or --disable-gtktest was given.
12505 if test "${enable_gtktest+set}" = set; then
12506 enableval="$enable_gtktest"
12507 :
12508 else
12509 enable_gtktest=yes
12510 fi
12511
12512
12513 pkg_config_args=gtk+-2.0
12514 for module in . $GTK_MODULES
12515 do
12516 case "$module" in
12517 gthread)
12518 pkg_config_args="$pkg_config_args gthread-2.0"
12519 ;;
12520 esac
12521 done
12522
12523 no_gtk=""
12524
12525 # Extract the first word of "pkg-config", so it can be a program name with args.
12526 set dummy pkg-config; ac_word=$2
12527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12528 echo "configure:12529: checking for $ac_word" >&5
12529 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12530 echo $ac_n "(cached) $ac_c" 1>&6
12531 else
12532 case "$PKG_CONFIG" in
12533 /*)
12534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12535 ;;
12536 ?:/*)
12537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12538 ;;
12539 *)
12540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12541 ac_dummy="$PATH"
12542 for ac_dir in $ac_dummy; do
12543 test -z "$ac_dir" && ac_dir=.
12544 if test -f $ac_dir/$ac_word; then
12545 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12546 break
12547 fi
12548 done
12549 IFS="$ac_save_ifs"
12550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12551 ;;
12552 esac
12553 fi
12554 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12555 if test -n "$PKG_CONFIG"; then
12556 echo "$ac_t""$PKG_CONFIG" 1>&6
12557 else
12558 echo "$ac_t""no" 1>&6
12559 fi
12560
12561
12562 if test x$PKG_CONFIG != xno ; then
12563 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12564 :
12565 else
12566 echo *** pkg-config too old; version 0.7 or better required.
12567 no_gtk=yes
12568 PKG_CONFIG=no
12569 fi
12570 else
12571 no_gtk=yes
12572 fi
12573
12574 min_gtk_version=2.0.0
12575 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12576 echo "configure:12577: checking for GTK+ - version >= $min_gtk_version" >&5
12577
12578 if test x$PKG_CONFIG != xno ; then
12579 ## don't try to run the test against uninstalled libtool libs
12580 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12581 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12582 enable_gtktest=no
12583 fi
12584
12585 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12586 :
12587 else
12588 no_gtk=yes
12589 fi
12590 fi
12591
12592 if test x"$no_gtk" = x ; then
12593 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12594 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12595 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12597 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12599 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12600 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12601 if test "x$enable_gtktest" = "xyes" ; then
12602 ac_save_CFLAGS="$CFLAGS"
12603 ac_save_LIBS="$LIBS"
12604 CFLAGS="$CFLAGS $GTK_CFLAGS"
12605 LIBS="$GTK_LIBS $LIBS"
12606 rm -f conf.gtktest
12607 if test "$cross_compiling" = yes; then
12608 echo $ac_n "cross compiling; assumed OK... $ac_c"
12609 else
12610 cat > conftest.$ac_ext <<EOF
12611 #line 12612 "configure"
12612 #include "confdefs.h"
12613
12614 #include <gtk/gtk.h>
12615 #include <stdio.h>
12616 #include <stdlib.h>
12617
12618 int
12619 main ()
12620 {
12621 int major, minor, micro;
12622 char *tmp_version;
12623
12624 system ("touch conf.gtktest");
12625
12626 /* HP/UX 9 (%@#!) writes to sscanf strings */
12627 tmp_version = g_strdup("$min_gtk_version");
12628 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12629 printf("%s, bad version string\n", "$min_gtk_version");
12630 exit(1);
12631 }
12632
12633 if ((gtk_major_version != $gtk_config_major_version) ||
12634 (gtk_minor_version != $gtk_config_minor_version) ||
12635 (gtk_micro_version != $gtk_config_micro_version))
12636 {
12637 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12638 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12639 gtk_major_version, gtk_minor_version, gtk_micro_version);
12640 printf ("*** was found! If pkg-config was correct, then it is best\n");
12641 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12642 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12643 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12644 printf("*** required on your system.\n");
12645 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12646 printf("*** to point to the correct configuration files\n");
12647 }
12648 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12649 (gtk_minor_version != GTK_MINOR_VERSION) ||
12650 (gtk_micro_version != GTK_MICRO_VERSION))
12651 {
12652 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12653 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12654 printf("*** library (version %d.%d.%d)\n",
12655 gtk_major_version, gtk_minor_version, gtk_micro_version);
12656 }
12657 else
12658 {
12659 if ((gtk_major_version > major) ||
12660 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12661 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12662 {
12663 return 0;
12664 }
12665 else
12666 {
12667 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12668 gtk_major_version, gtk_minor_version, gtk_micro_version);
12669 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12670 major, minor, micro);
12671 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12672 printf("***\n");
12673 printf("*** If you have already installed a sufficiently new version, this error\n");
12674 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12675 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12676 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12677 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12678 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12679 printf("*** so that the correct libraries are found at run-time))\n");
12680 }
12681 }
12682 return 1;
12683 }
12684
12685 EOF
12686 if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12687 then
12688 :
12689 else
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12692 rm -fr conftest*
12693 no_gtk=yes
12694 fi
12695 rm -fr conftest*
12696 fi
12697
12698 CFLAGS="$ac_save_CFLAGS"
12699 LIBS="$ac_save_LIBS"
12700 fi
12701 fi
12702 if test "x$no_gtk" = x ; then
12703 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12704 wx_cv_lib_gtk=2.0
12705 else
12706 echo "$ac_t""no" 1>&6
12707 if test "$PKG_CONFIG" = "no" ; then
12708 echo "*** A new enough version of pkg-config was not found."
12709 echo "*** See http://pkgconfig.sourceforge.net"
12710 else
12711 if test -f conf.gtktest ; then
12712 :
12713 else
12714 echo "*** Could not run GTK+ test program, checking why..."
12715 ac_save_CFLAGS="$CFLAGS"
12716 ac_save_LIBS="$LIBS"
12717 CFLAGS="$CFLAGS $GTK_CFLAGS"
12718 LIBS="$LIBS $GTK_LIBS"
12719 cat > conftest.$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12722
12723 #include <gtk/gtk.h>
12724 #include <stdio.h>
12725
12726 int main() {
12727 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12728 ; return 0; }
12729 EOF
12730 if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12731 rm -rf conftest*
12732 echo "*** The test program compiled, but did not run. This usually means"
12733 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12734 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12735 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12736 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12737 echo "*** is required on your system"
12738 echo "***"
12739 echo "*** If you have an old version installed, it is best to remove it, although"
12740 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12741 else
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12744 rm -rf conftest*
12745 echo "*** The test program failed to compile or link. See the file config.log for the"
12746 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12747 fi
12748 rm -f conftest*
12749 CFLAGS="$ac_save_CFLAGS"
12750 LIBS="$ac_save_LIBS"
12751 fi
12752 fi
12753 GTK_CFLAGS=""
12754 GTK_LIBS=""
12755 :
12756 fi
12757
12758
12759 rm -f conf.gtktest
12760
12761 else
12762 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12763 if test "${with_gtk_prefix+set}" = set; then
12764 withval="$with_gtk_prefix"
12765 gtk_config_prefix="$withval"
12766 else
12767 gtk_config_prefix=""
12768 fi
12769
12770 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12771 if test "${with_gtk_exec_prefix+set}" = set; then
12772 withval="$with_gtk_exec_prefix"
12773 gtk_config_exec_prefix="$withval"
12774 else
12775 gtk_config_exec_prefix=""
12776 fi
12777
12778 # Check whether --enable-gtktest or --disable-gtktest was given.
12779 if test "${enable_gtktest+set}" = set; then
12780 enableval="$enable_gtktest"
12781 :
12782 else
12783 enable_gtktest=yes
12784 fi
12785
12786
12787 for module in . $GTK_MODULES
12788 do
12789 case "$module" in
12790 gthread)
12791 gtk_config_args="$gtk_config_args gthread"
12792 ;;
12793 esac
12794 done
12795
12796 if test x$gtk_config_exec_prefix != x ; then
12797 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12798 if test x${GTK_CONFIG+set} != xset ; then
12799 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12800 fi
12801 fi
12802 if test x$gtk_config_prefix != x ; then
12803 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12804 if test x${GTK_CONFIG+set} != xset ; then
12805 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12806 fi
12807 fi
12808
12809 # Extract the first word of "gtk-config", so it can be a program name with args.
12810 set dummy gtk-config; ac_word=$2
12811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12812 echo "configure:12813: checking for $ac_word" >&5
12813 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12814 echo $ac_n "(cached) $ac_c" 1>&6
12815 else
12816 case "$GTK_CONFIG" in
12817 /*)
12818 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12819 ;;
12820 ?:/*)
12821 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12822 ;;
12823 *)
12824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12825 ac_dummy="$PATH"
12826 for ac_dir in $ac_dummy; do
12827 test -z "$ac_dir" && ac_dir=.
12828 if test -f $ac_dir/$ac_word; then
12829 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12830 break
12831 fi
12832 done
12833 IFS="$ac_save_ifs"
12834 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12835 ;;
12836 esac
12837 fi
12838 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12839 if test -n "$GTK_CONFIG"; then
12840 echo "$ac_t""$GTK_CONFIG" 1>&6
12841 else
12842 echo "$ac_t""no" 1>&6
12843 fi
12844
12845 min_gtk_version=1.2.7
12846 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12847 echo "configure:12848: checking for GTK - version >= $min_gtk_version" >&5
12848 no_gtk=""
12849 if test "$GTK_CONFIG" = "no" ; then
12850 no_gtk=yes
12851 else
12852 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12853 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12854 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12855 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12856 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12857 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12858 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12859 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12860 if test "x$enable_gtktest" = "xyes" ; then
12861 ac_save_CFLAGS="$CFLAGS"
12862 ac_save_LIBS="$LIBS"
12863 CFLAGS="$CFLAGS $GTK_CFLAGS"
12864 LIBS="$GTK_LIBS $LIBS"
12865 rm -f conf.gtktest
12866 if test "$cross_compiling" = yes; then
12867 echo $ac_n "cross compiling; assumed OK... $ac_c"
12868 else
12869 cat > conftest.$ac_ext <<EOF
12870 #line 12871 "configure"
12871 #include "confdefs.h"
12872
12873 #include <gtk/gtk.h>
12874 #include <stdio.h>
12875 #include <stdlib.h>
12876
12877 int
12878 main ()
12879 {
12880 int major, minor, micro;
12881 char *tmp_version;
12882
12883 system ("touch conf.gtktest");
12884
12885 /* HP/UX 9 (%@#!) writes to sscanf strings */
12886 tmp_version = g_strdup("$min_gtk_version");
12887 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12888 printf("%s, bad version string\n", "$min_gtk_version");
12889 exit(1);
12890 }
12891
12892 if ((gtk_major_version != $gtk_config_major_version) ||
12893 (gtk_minor_version != $gtk_config_minor_version) ||
12894 (gtk_micro_version != $gtk_config_micro_version))
12895 {
12896 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12897 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12898 gtk_major_version, gtk_minor_version, gtk_micro_version);
12899 printf ("*** was found! If gtk-config was correct, then it is best\n");
12900 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12901 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12902 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12903 printf("*** required on your system.\n");
12904 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12905 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12906 printf("*** before re-running configure\n");
12907 }
12908 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12909 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12910 (gtk_minor_version != GTK_MINOR_VERSION) ||
12911 (gtk_micro_version != GTK_MICRO_VERSION))
12912 {
12913 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12914 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12915 printf("*** library (version %d.%d.%d)\n",
12916 gtk_major_version, gtk_minor_version, gtk_micro_version);
12917 }
12918 #endif /* defined (GTK_MAJOR_VERSION) ... */
12919 else
12920 {
12921 if ((gtk_major_version > major) ||
12922 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12923 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12924 {
12925 return 0;
12926 }
12927 else
12928 {
12929 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12930 gtk_major_version, gtk_minor_version, gtk_micro_version);
12931 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12932 major, minor, micro);
12933 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12934 printf("***\n");
12935 printf("*** If you have already installed a sufficiently new version, this error\n");
12936 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12937 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12938 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12939 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12940 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12941 printf("*** so that the correct libraries are found at run-time))\n");
12942 }
12943 }
12944 return 1;
12945 }
12946
12947 EOF
12948 if { (eval echo configure:12949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12949 then
12950 :
12951 else
12952 echo "configure: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 rm -fr conftest*
12955 no_gtk=yes
12956 fi
12957 rm -fr conftest*
12958 fi
12959
12960 CFLAGS="$ac_save_CFLAGS"
12961 LIBS="$ac_save_LIBS"
12962 fi
12963 fi
12964 if test "x$no_gtk" = x ; then
12965 echo "$ac_t""yes" 1>&6
12966 wx_cv_lib_gtk=1.2.7
12967 else
12968 echo "$ac_t""no" 1>&6
12969 if test "$GTK_CONFIG" = "no" ; then
12970 echo "*** The gtk-config script installed by GTK could not be found"
12971 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12972 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12973 echo "*** full path to gtk-config."
12974 else
12975 if test -f conf.gtktest ; then
12976 :
12977 else
12978 echo "*** Could not run GTK test program, checking why..."
12979 CFLAGS="$CFLAGS $GTK_CFLAGS"
12980 LIBS="$LIBS $GTK_LIBS"
12981 cat > conftest.$ac_ext <<EOF
12982 #line 12983 "configure"
12983 #include "confdefs.h"
12984
12985 #include <gtk/gtk.h>
12986 #include <stdio.h>
12987
12988 int main() {
12989 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12990 ; return 0; }
12991 EOF
12992 if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12993 rm -rf conftest*
12994 echo "*** The test program compiled, but did not run. This usually means"
12995 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12996 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12997 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12998 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12999 echo "*** is required on your system"
13000 echo "***"
13001 echo "*** If you have an old version installed, it is best to remove it, although"
13002 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13003 echo "***"
13004 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13005 echo "*** came with the system with the command"
13006 echo "***"
13007 echo "*** rpm --erase --nodeps gtk gtk-devel"
13008 else
13009 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13011 rm -rf conftest*
13012 echo "*** The test program failed to compile or link. See the file config.log for the"
13013 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13014 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13015 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13016 fi
13017 rm -f conftest*
13018 CFLAGS="$ac_save_CFLAGS"
13019 LIBS="$ac_save_LIBS"
13020 fi
13021 fi
13022 GTK_CFLAGS=""
13023 GTK_LIBS=""
13024 :
13025 fi
13026
13027
13028 rm -f conf.gtktest
13029
13030
13031 if test -z "$wx_cv_lib_gtk"; then
13032 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
13033 if test "${with_gtk_prefix+set}" = set; then
13034 withval="$with_gtk_prefix"
13035 gtk_config_prefix="$withval"
13036 else
13037 gtk_config_prefix=""
13038 fi
13039
13040 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
13041 if test "${with_gtk_exec_prefix+set}" = set; then
13042 withval="$with_gtk_exec_prefix"
13043 gtk_config_exec_prefix="$withval"
13044 else
13045 gtk_config_exec_prefix=""
13046 fi
13047
13048 # Check whether --enable-gtktest or --disable-gtktest was given.
13049 if test "${enable_gtktest+set}" = set; then
13050 enableval="$enable_gtktest"
13051 :
13052 else
13053 enable_gtktest=yes
13054 fi
13055
13056
13057 for module in . $GTK_MODULES
13058 do
13059 case "$module" in
13060 gthread)
13061 gtk_config_args="$gtk_config_args gthread"
13062 ;;
13063 esac
13064 done
13065
13066 if test x$gtk_config_exec_prefix != x ; then
13067 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
13068 if test x${GTK_CONFIG+set} != xset ; then
13069 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
13070 fi
13071 fi
13072 if test x$gtk_config_prefix != x ; then
13073 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
13074 if test x${GTK_CONFIG+set} != xset ; then
13075 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
13076 fi
13077 fi
13078
13079 # Extract the first word of "gtk-config", so it can be a program name with args.
13080 set dummy gtk-config; ac_word=$2
13081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13082 echo "configure:13083: checking for $ac_word" >&5
13083 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13085 else
13086 case "$GTK_CONFIG" in
13087 /*)
13088 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13089 ;;
13090 ?:/*)
13091 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
13092 ;;
13093 *)
13094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13095 ac_dummy="$PATH"
13096 for ac_dir in $ac_dummy; do
13097 test -z "$ac_dir" && ac_dir=.
13098 if test -f $ac_dir/$ac_word; then
13099 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
13100 break
13101 fi
13102 done
13103 IFS="$ac_save_ifs"
13104 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13105 ;;
13106 esac
13107 fi
13108 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
13109 if test -n "$GTK_CONFIG"; then
13110 echo "$ac_t""$GTK_CONFIG" 1>&6
13111 else
13112 echo "$ac_t""no" 1>&6
13113 fi
13114
13115 min_gtk_version=1.2.3
13116 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
13117 echo "configure:13118: checking for GTK - version >= $min_gtk_version" >&5
13118 no_gtk=""
13119 if test "$GTK_CONFIG" = "no" ; then
13120 no_gtk=yes
13121 else
13122 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
13123 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
13124 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
13125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13126 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
13127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13128 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
13129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13130 if test "x$enable_gtktest" = "xyes" ; then
13131 ac_save_CFLAGS="$CFLAGS"
13132 ac_save_LIBS="$LIBS"
13133 CFLAGS="$CFLAGS $GTK_CFLAGS"
13134 LIBS="$GTK_LIBS $LIBS"
13135 rm -f conf.gtktest
13136 if test "$cross_compiling" = yes; then
13137 echo $ac_n "cross compiling; assumed OK... $ac_c"
13138 else
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142
13143 #include <gtk/gtk.h>
13144 #include <stdio.h>
13145 #include <stdlib.h>
13146
13147 int
13148 main ()
13149 {
13150 int major, minor, micro;
13151 char *tmp_version;
13152
13153 system ("touch conf.gtktest");
13154
13155 /* HP/UX 9 (%@#!) writes to sscanf strings */
13156 tmp_version = g_strdup("$min_gtk_version");
13157 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13158 printf("%s, bad version string\n", "$min_gtk_version");
13159 exit(1);
13160 }
13161
13162 if ((gtk_major_version != $gtk_config_major_version) ||
13163 (gtk_minor_version != $gtk_config_minor_version) ||
13164 (gtk_micro_version != $gtk_config_micro_version))
13165 {
13166 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13167 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13168 gtk_major_version, gtk_minor_version, gtk_micro_version);
13169 printf ("*** was found! If gtk-config was correct, then it is best\n");
13170 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13171 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13172 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13173 printf("*** required on your system.\n");
13174 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13175 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13176 printf("*** before re-running configure\n");
13177 }
13178 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13179 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13180 (gtk_minor_version != GTK_MINOR_VERSION) ||
13181 (gtk_micro_version != GTK_MICRO_VERSION))
13182 {
13183 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13184 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13185 printf("*** library (version %d.%d.%d)\n",
13186 gtk_major_version, gtk_minor_version, gtk_micro_version);
13187 }
13188 #endif /* defined (GTK_MAJOR_VERSION) ... */
13189 else
13190 {
13191 if ((gtk_major_version > major) ||
13192 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13193 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13194 {
13195 return 0;
13196 }
13197 else
13198 {
13199 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13200 gtk_major_version, gtk_minor_version, gtk_micro_version);
13201 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13202 major, minor, micro);
13203 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13204 printf("***\n");
13205 printf("*** If you have already installed a sufficiently new version, this error\n");
13206 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13207 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13208 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13209 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13210 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13211 printf("*** so that the correct libraries are found at run-time))\n");
13212 }
13213 }
13214 return 1;
13215 }
13216
13217 EOF
13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13219 then
13220 :
13221 else
13222 echo "configure: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 rm -fr conftest*
13225 no_gtk=yes
13226 fi
13227 rm -fr conftest*
13228 fi
13229
13230 CFLAGS="$ac_save_CFLAGS"
13231 LIBS="$ac_save_LIBS"
13232 fi
13233 fi
13234 if test "x$no_gtk" = x ; then
13235 echo "$ac_t""yes" 1>&6
13236 wx_cv_lib_gtk=1.2.3
13237 else
13238 echo "$ac_t""no" 1>&6
13239 if test "$GTK_CONFIG" = "no" ; then
13240 echo "*** The gtk-config script installed by GTK could not be found"
13241 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13242 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13243 echo "*** full path to gtk-config."
13244 else
13245 if test -f conf.gtktest ; then
13246 :
13247 else
13248 echo "*** Could not run GTK test program, checking why..."
13249 CFLAGS="$CFLAGS $GTK_CFLAGS"
13250 LIBS="$LIBS $GTK_LIBS"
13251 cat > conftest.$ac_ext <<EOF
13252 #line 13253 "configure"
13253 #include "confdefs.h"
13254
13255 #include <gtk/gtk.h>
13256 #include <stdio.h>
13257
13258 int main() {
13259 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13260 ; return 0; }
13261 EOF
13262 if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13263 rm -rf conftest*
13264 echo "*** The test program compiled, but did not run. This usually means"
13265 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13266 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13267 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13268 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13269 echo "*** is required on your system"
13270 echo "***"
13271 echo "*** If you have an old version installed, it is best to remove it, although"
13272 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13273 echo "***"
13274 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13275 echo "*** came with the system with the command"
13276 echo "***"
13277 echo "*** rpm --erase --nodeps gtk gtk-devel"
13278 else
13279 echo "configure: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13281 rm -rf conftest*
13282 echo "*** The test program failed to compile or link. See the file config.log for the"
13283 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13284 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13285 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13286 fi
13287 rm -f conftest*
13288 CFLAGS="$ac_save_CFLAGS"
13289 LIBS="$ac_save_LIBS"
13290 fi
13291 fi
13292 GTK_CFLAGS=""
13293 GTK_LIBS=""
13294 :
13295 fi
13296
13297
13298 rm -f conf.gtktest
13299
13300 fi
13301 fi
13302
13303 if test -z "$wx_cv_lib_gtk"; then
13304 wx_cv_lib_gtk=none
13305 else
13306 wx_cv_cflags_gtk=$GTK_CFLAGS
13307 wx_cv_libs_gtk=$GTK_LIBS
13308 fi
13309
13310
13311 fi
13312
13313
13314 if test "$gtk_version_cached" = 1; then
13315 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13316 fi
13317
13318 case "$wx_cv_lib_gtk" in
13319 2.0) WXGTK20=1
13320 TOOLKIT_VERSION=2
13321 ;;
13322 1.2.7) WXGTK127=1
13323 WXGTK12=1
13324 ;;
13325 1.2.3) WXGTK12=1
13326 ;;
13327 *) { echo "configure: error:
13328 Please check that gtk-config is in path, the directory
13329 where GTK+ libraries are installed (returned by
13330 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13331 equivalent variable and GTK+ is version 1.2.3 or above.
13332 " 1>&2; exit 1; }
13333 ;;
13334 esac
13335
13336 if test "$WXGTK20" = 1; then
13337 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13338
13339 succeeded=no
13340
13341 if test -z "$PKG_CONFIG"; then
13342 # Extract the first word of "pkg-config", so it can be a program name with args.
13343 set dummy pkg-config; ac_word=$2
13344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13345 echo "configure:13346: checking for $ac_word" >&5
13346 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13347 echo $ac_n "(cached) $ac_c" 1>&6
13348 else
13349 case "$PKG_CONFIG" in
13350 /*)
13351 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13352 ;;
13353 ?:/*)
13354 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13355 ;;
13356 *)
13357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13358 ac_dummy="$PATH"
13359 for ac_dir in $ac_dummy; do
13360 test -z "$ac_dir" && ac_dir=.
13361 if test -f $ac_dir/$ac_word; then
13362 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13363 break
13364 fi
13365 done
13366 IFS="$ac_save_ifs"
13367 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13368 ;;
13369 esac
13370 fi
13371 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13372 if test -n "$PKG_CONFIG"; then
13373 echo "$ac_t""$PKG_CONFIG" 1>&6
13374 else
13375 echo "$ac_t""no" 1>&6
13376 fi
13377
13378 fi
13379
13380 if test "$PKG_CONFIG" = "no" ; then
13381 echo "*** The pkg-config script could not be found. Make sure it is"
13382 echo "*** in your path, or set the PKG_CONFIG environment variable"
13383 echo "*** to the full path to pkg-config."
13384 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13385 else
13386 PKG_CONFIG_MIN_VERSION=0.9.0
13387 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13388 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13389 echo "configure:13390: checking for pangoft2" >&5
13390
13391 if $PKG_CONFIG --exists "pangoft2" ; then
13392 echo "$ac_t""yes" 1>&6
13393 succeeded=yes
13394
13395 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13396 echo "configure:13397: checking PANGOFT2_CFLAGS" >&5
13397 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13398 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13399
13400 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13401 echo "configure:13402: checking PANGOFT2_LIBS" >&5
13402 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13403 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13404 else
13405 PANGOFT2_CFLAGS=""
13406 PANGOFT2_LIBS=""
13407 ## If we have a custom action on failure, don't print errors, but
13408 ## do set a variable so people can do so.
13409 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13410
13411 fi
13412
13413
13414
13415 else
13416 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13417 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13418 fi
13419 fi
13420
13421 if test $succeeded = yes; then
13422
13423 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13424 LIBS="$LIBS $PANGOFT2_LIBS"
13425
13426 else
13427
13428 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13429 wxUSE_PRINTING_ARCHITECTURE="no"
13430
13431
13432 fi
13433
13434 fi
13435 else
13436 if test "$wxUSE_UNICODE" = "yes"; then
13437 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13438 wxUSE_UNICODE=no
13439 fi
13440 fi
13441
13442 if test "$USE_DARWIN" != 1; then
13443 for ac_func in poll
13444 do
13445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13446 echo "configure:13447: checking for $ac_func" >&5
13447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13448 echo $ac_n "(cached) $ac_c" 1>&6
13449 else
13450 cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 /* System header to define __stub macros and hopefully few prototypes,
13454 which can conflict with char $ac_func(); below. */
13455 #include <assert.h>
13456 /* Override any gcc2 internal prototype to avoid an error. */
13457 /* We use char because int might match the return type of a gcc2
13458 builtin and then its argument prototype would still apply. */
13459 char $ac_func();
13460
13461 int main() {
13462
13463 /* The GNU C library defines this for functions which it implements
13464 to always fail with ENOSYS. Some functions are actually named
13465 something starting with __ and the normal name is an alias. */
13466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13467 choke me
13468 #else
13469 $ac_func();
13470 #endif
13471
13472 ; return 0; }
13473 EOF
13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13475 rm -rf conftest*
13476 eval "ac_cv_func_$ac_func=yes"
13477 else
13478 echo "configure: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13480 rm -rf conftest*
13481 eval "ac_cv_func_$ac_func=no"
13482 fi
13483 rm -f conftest*
13484 fi
13485
13486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13487 echo "$ac_t""yes" 1>&6
13488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13489 cat >> confdefs.h <<EOF
13490 #define $ac_tr_func 1
13491 EOF
13492
13493 else
13494 echo "$ac_t""no" 1>&6
13495 fi
13496 done
13497
13498 fi
13499
13500 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13501 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13502
13503 AFMINSTALL=afminstall
13504 TOOLKIT=GTK
13505 GUIDIST=GTK_DIST
13506
13507 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13508 echo "configure:13509: checking for gdk_im_open in -lgdk" >&5
13509 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13511 echo $ac_n "(cached) $ac_c" 1>&6
13512 else
13513 ac_save_LIBS="$LIBS"
13514 LIBS="-lgdk $LIBS"
13515 cat > conftest.$ac_ext <<EOF
13516 #line 13517 "configure"
13517 #include "confdefs.h"
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 /* We use char because int might match the return type of a gcc2
13520 builtin and then its argument prototype would still apply. */
13521 char gdk_im_open();
13522
13523 int main() {
13524 gdk_im_open()
13525 ; return 0; }
13526 EOF
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13528 rm -rf conftest*
13529 eval "ac_cv_lib_$ac_lib_var=yes"
13530 else
13531 echo "configure: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 rm -rf conftest*
13534 eval "ac_cv_lib_$ac_lib_var=no"
13535 fi
13536 rm -f conftest*
13537 LIBS="$ac_save_LIBS"
13538
13539 fi
13540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13541 echo "$ac_t""yes" 1>&6
13542 cat >> confdefs.h <<\EOF
13543 #define HAVE_XIM 1
13544 EOF
13545
13546 else
13547 echo "$ac_t""no" 1>&6
13548 fi
13549
13550 fi
13551
13552 if test "$wxUSE_MGL" = 1; then
13553 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13554 echo "configure:13555: checking for SciTech MGL library" >&5
13555 if test "x$MGL_ROOT" = x ; then
13556 echo "$ac_t""not found" 1>&6
13557 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13558 else
13559 echo "$ac_t""$MGL_ROOT" 1>&6
13560 fi
13561
13562 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13563 echo "configure:13564: checking for libmgl location" >&5
13564 case "${host}" in
13565 *-*-linux* )
13566 if test "x$wxUSE_SHARED" = xyes ; then
13567 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13568 else
13569 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13570 fi
13571 ;;
13572 *-pc-msdosdjgpp )
13573 mgl_os_candidates="dos32/dj2"
13574 ;;
13575 *)
13576 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13577 esac
13578
13579 mgl_lib_type=""
13580 mgl_os=""
13581
13582 for mgl_os_i in $mgl_os_candidates ; do
13583 if test "x$mgl_os" = x ; then
13584 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13585 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13586 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13587 mgl_lib_type=debug
13588 mgl_os=$mgl_os_i
13589 fi
13590 fi
13591 if test "x$mgl_lib_type" = x ; then
13592 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13593 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13594 mgl_lib_type=release
13595 mgl_os=$mgl_os_i
13596 fi
13597 fi
13598 fi
13599 done
13600
13601 if test "x$mgl_os" = x ; then
13602 echo "$ac_t""not found" 1>&6
13603 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13604 fi
13605 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13606
13607 wxUSE_UNIVERSAL="yes"
13608
13609 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13610 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13611
13612 AFMINSTALL=afminstall
13613 TOOLKIT=MGL
13614 GUIDIST=MGL_DIST
13615 fi
13616
13617 if test "$wxUSE_MICROWIN" = 1; then
13618 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13619 echo "configure:13620: checking for MicroWindows" >&5
13620 if test "x$MICROWINDOWS" = x ; then
13621 echo "$ac_t""not found" 1>&6
13622 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13623 else
13624 echo "$ac_t""$MICROWINDOWS" 1>&6
13625 fi
13626
13627 if test -f $MICROWINDOWS/lib/libmwin.a; then
13628 echo "$ac_t""MicroWindows' libraries found." 1>&6
13629 else
13630 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13631 fi
13632
13633 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13634 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13635
13636 wxUSE_UNIVERSAL="yes"
13637
13638 AFMINSTALL=afminstall
13639 TOOLKIT=MICROWIN
13640 GUIDIST=MICROWIN_DIST
13641
13642 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13643 fi
13644
13645 if test "$wxUSE_X11" = 1; then
13646 # If we find X, set shell vars x_includes and x_libraries to the
13647 # paths, otherwise set no_x=yes.
13648 # Uses ac_ vars as temps to allow command line to override cache and checks.
13649 # --without-x overrides everything else, but does not touch the cache.
13650 echo $ac_n "checking for X""... $ac_c" 1>&6
13651 echo "configure:13652: checking for X" >&5
13652
13653 # Check whether --with-x or --without-x was given.
13654 if test "${with_x+set}" = set; then
13655 withval="$with_x"
13656 :
13657 fi
13658
13659 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13660 if test "x$with_x" = xno; then
13661 # The user explicitly disabled X.
13662 have_x=disabled
13663 else
13664 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13665 # Both variables are already set.
13666 have_x=yes
13667 else
13668 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13669 echo $ac_n "(cached) $ac_c" 1>&6
13670 else
13671 # One or both of the vars are not set, and there is no cached value.
13672 ac_x_includes=NO ac_x_libraries=NO
13673 rm -fr conftestdir
13674 if mkdir conftestdir; then
13675 cd conftestdir
13676 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13677 cat > Imakefile <<'EOF'
13678 acfindx:
13679 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13680 EOF
13681 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13683 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13684 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13685 for ac_extension in a so sl; do
13686 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13687 test -f $ac_im_libdir/libX11.$ac_extension; then
13688 ac_im_usrlibdir=$ac_im_libdir; break
13689 fi
13690 done
13691 # Screen out bogus values from the imake configuration. They are
13692 # bogus both because they are the default anyway, and because
13693 # using them would break gcc on systems where it needs fixed includes.
13694 case "$ac_im_incroot" in
13695 /usr/include) ;;
13696 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13697 esac
13698 case "$ac_im_usrlibdir" in
13699 /usr/lib | /lib) ;;
13700 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13701 esac
13702 fi
13703 cd ..
13704 rm -fr conftestdir
13705 fi
13706
13707 if test "$ac_x_includes" = NO; then
13708 # Guess where to find include files, by looking for this one X11 .h file.
13709 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13710
13711 # First, try using that file with no special directory specified.
13712 cat > conftest.$ac_ext <<EOF
13713 #line 13714 "configure"
13714 #include "confdefs.h"
13715 #include <$x_direct_test_include>
13716 EOF
13717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13718 { (eval echo configure:13719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13720 if test -z "$ac_err"; then
13721 rm -rf conftest*
13722 # We can compile using X headers with no special include directory.
13723 ac_x_includes=
13724 else
13725 echo "$ac_err" >&5
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 rm -rf conftest*
13729 # Look for the header file in a standard set of common directories.
13730 # Check X11 before X11Rn because it is often a symlink to the current release.
13731 for ac_dir in \
13732 /usr/X11/include \
13733 /usr/X11R6/include \
13734 /usr/X11R5/include \
13735 /usr/X11R4/include \
13736 \
13737 /usr/include/X11 \
13738 /usr/include/X11R6 \
13739 /usr/include/X11R5 \
13740 /usr/include/X11R4 \
13741 \
13742 /usr/local/X11/include \
13743 /usr/local/X11R6/include \
13744 /usr/local/X11R5/include \
13745 /usr/local/X11R4/include \
13746 \
13747 /usr/local/include/X11 \
13748 /usr/local/include/X11R6 \
13749 /usr/local/include/X11R5 \
13750 /usr/local/include/X11R4 \
13751 \
13752 /usr/X386/include \
13753 /usr/x386/include \
13754 /usr/XFree86/include/X11 \
13755 \
13756 /usr/include \
13757 /usr/local/include \
13758 /usr/unsupported/include \
13759 /usr/athena/include \
13760 /usr/local/x11r5/include \
13761 /usr/lpp/Xamples/include \
13762 \
13763 /usr/openwin/include \
13764 /usr/openwin/share/include \
13765 ; \
13766 do
13767 if test -r "$ac_dir/$x_direct_test_include"; then
13768 ac_x_includes=$ac_dir
13769 break
13770 fi
13771 done
13772 fi
13773 rm -f conftest*
13774 fi # $ac_x_includes = NO
13775
13776 if test "$ac_x_libraries" = NO; then
13777 # Check for the libraries.
13778
13779 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13780 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13781
13782 # See if we find them without any special options.
13783 # Don't add to $LIBS permanently.
13784 ac_save_LIBS="$LIBS"
13785 LIBS="-l$x_direct_test_library $LIBS"
13786 cat > conftest.$ac_ext <<EOF
13787 #line 13788 "configure"
13788 #include "confdefs.h"
13789
13790 int main() {
13791 ${x_direct_test_function}()
13792 ; return 0; }
13793 EOF
13794 if { (eval echo configure:13795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13795 rm -rf conftest*
13796 LIBS="$ac_save_LIBS"
13797 # We can link X programs with no special library path.
13798 ac_x_libraries=
13799 else
13800 echo "configure: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13802 rm -rf conftest*
13803 LIBS="$ac_save_LIBS"
13804 # First see if replacing the include by lib works.
13805 # Check X11 before X11Rn because it is often a symlink to the current release.
13806 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13807 /usr/X11/lib \
13808 /usr/X11R6/lib \
13809 /usr/X11R5/lib \
13810 /usr/X11R4/lib \
13811 \
13812 /usr/lib/X11 \
13813 /usr/lib/X11R6 \
13814 /usr/lib/X11R5 \
13815 /usr/lib/X11R4 \
13816 \
13817 /usr/local/X11/lib \
13818 /usr/local/X11R6/lib \
13819 /usr/local/X11R5/lib \
13820 /usr/local/X11R4/lib \
13821 \
13822 /usr/local/lib/X11 \
13823 /usr/local/lib/X11R6 \
13824 /usr/local/lib/X11R5 \
13825 /usr/local/lib/X11R4 \
13826 \
13827 /usr/X386/lib \
13828 /usr/x386/lib \
13829 /usr/XFree86/lib/X11 \
13830 \
13831 /usr/lib \
13832 /usr/local/lib \
13833 /usr/unsupported/lib \
13834 /usr/athena/lib \
13835 /usr/local/x11r5/lib \
13836 /usr/lpp/Xamples/lib \
13837 /lib/usr/lib/X11 \
13838 \
13839 /usr/openwin/lib \
13840 /usr/openwin/share/lib \
13841 ; \
13842 do
13843 for ac_extension in a so sl; do
13844 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13845 ac_x_libraries=$ac_dir
13846 break 2
13847 fi
13848 done
13849 done
13850 fi
13851 rm -f conftest*
13852 fi # $ac_x_libraries = NO
13853
13854 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13855 # Didn't find X anywhere. Cache the known absence of X.
13856 ac_cv_have_x="have_x=no"
13857 else
13858 # Record where we found X for the cache.
13859 ac_cv_have_x="have_x=yes \
13860 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13861 fi
13862 fi
13863 fi
13864 eval "$ac_cv_have_x"
13865 fi # $with_x != no
13866
13867 if test "$have_x" != yes; then
13868 echo "$ac_t""$have_x" 1>&6
13869 no_x=yes
13870 else
13871 # If each of the values was on the command line, it overrides each guess.
13872 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13873 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13874 # Update the cache value to reflect the command line values.
13875 ac_cv_have_x="have_x=yes \
13876 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13877 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13878 fi
13879
13880 if test "$no_x" = yes; then
13881 # Not all programs may use this symbol, but it does not hurt to define it.
13882 cat >> confdefs.h <<\EOF
13883 #define X_DISPLAY_MISSING 1
13884 EOF
13885
13886 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13887 else
13888 if test -n "$x_includes"; then
13889 X_CFLAGS="$X_CFLAGS -I$x_includes"
13890 fi
13891
13892 # It would also be nice to do this for all -L options, not just this one.
13893 if test -n "$x_libraries"; then
13894 X_LIBS="$X_LIBS -L$x_libraries"
13895 # For Solaris; some versions of Sun CC require a space after -R and
13896 # others require no space. Words are not sufficient . . . .
13897 case "`(uname -sr) 2>/dev/null`" in
13898 "SunOS 5"*)
13899 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13900 echo "configure:13901: checking whether -R must be followed by a space" >&5
13901 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13902 cat > conftest.$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13905
13906 int main() {
13907
13908 ; return 0; }
13909 EOF
13910 if { (eval echo configure:13911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13911 rm -rf conftest*
13912 ac_R_nospace=yes
13913 else
13914 echo "configure: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 rm -rf conftest*
13917 ac_R_nospace=no
13918 fi
13919 rm -f conftest*
13920 if test $ac_R_nospace = yes; then
13921 echo "$ac_t""no" 1>&6
13922 X_LIBS="$X_LIBS -R$x_libraries"
13923 else
13924 LIBS="$ac_xsave_LIBS -R $x_libraries"
13925 cat > conftest.$ac_ext <<EOF
13926 #line 13927 "configure"
13927 #include "confdefs.h"
13928
13929 int main() {
13930
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 ac_R_space=yes
13936 else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940 ac_R_space=no
13941 fi
13942 rm -f conftest*
13943 if test $ac_R_space = yes; then
13944 echo "$ac_t""yes" 1>&6
13945 X_LIBS="$X_LIBS -R $x_libraries"
13946 else
13947 echo "$ac_t""neither works" 1>&6
13948 fi
13949 fi
13950 LIBS="$ac_xsave_LIBS"
13951 esac
13952 fi
13953
13954 # Check for system-dependent libraries X programs must link with.
13955 # Do this before checking for the system-independent R6 libraries
13956 # (-lICE), since we may need -lsocket or whatever for X linking.
13957
13958 if test "$ISC" = yes; then
13959 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13960 else
13961 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13962 # libraries were built with DECnet support. And karl@cs.umb.edu says
13963 # the Alpha needs dnet_stub (dnet does not exist).
13964 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13965 echo "configure:13966: checking for dnet_ntoa in -ldnet" >&5
13966 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13968 echo $ac_n "(cached) $ac_c" 1>&6
13969 else
13970 ac_save_LIBS="$LIBS"
13971 LIBS="-ldnet $LIBS"
13972 cat > conftest.$ac_ext <<EOF
13973 #line 13974 "configure"
13974 #include "confdefs.h"
13975 /* Override any gcc2 internal prototype to avoid an error. */
13976 /* We use char because int might match the return type of a gcc2
13977 builtin and then its argument prototype would still apply. */
13978 char dnet_ntoa();
13979
13980 int main() {
13981 dnet_ntoa()
13982 ; return 0; }
13983 EOF
13984 if { (eval echo configure:13985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13985 rm -rf conftest*
13986 eval "ac_cv_lib_$ac_lib_var=yes"
13987 else
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991 eval "ac_cv_lib_$ac_lib_var=no"
13992 fi
13993 rm -f conftest*
13994 LIBS="$ac_save_LIBS"
13995
13996 fi
13997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13998 echo "$ac_t""yes" 1>&6
13999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14000 else
14001 echo "$ac_t""no" 1>&6
14002 fi
14003
14004 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14005 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14006 echo "configure:14007: checking for dnet_ntoa in -ldnet_stub" >&5
14007 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14009 echo $ac_n "(cached) $ac_c" 1>&6
14010 else
14011 ac_save_LIBS="$LIBS"
14012 LIBS="-ldnet_stub $LIBS"
14013 cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* Override any gcc2 internal prototype to avoid an error. */
14017 /* We use char because int might match the return type of a gcc2
14018 builtin and then its argument prototype would still apply. */
14019 char dnet_ntoa();
14020
14021 int main() {
14022 dnet_ntoa()
14023 ; return 0; }
14024 EOF
14025 if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14026 rm -rf conftest*
14027 eval "ac_cv_lib_$ac_lib_var=yes"
14028 else
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14031 rm -rf conftest*
14032 eval "ac_cv_lib_$ac_lib_var=no"
14033 fi
14034 rm -f conftest*
14035 LIBS="$ac_save_LIBS"
14036
14037 fi
14038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14039 echo "$ac_t""yes" 1>&6
14040 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14041 else
14042 echo "$ac_t""no" 1>&6
14043 fi
14044
14045 fi
14046
14047 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14048 # to get the SysV transport functions.
14049 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14050 # needs -lnsl.
14051 # The nsl library prevents programs from opening the X display
14052 # on Irix 5.2, according to dickey@clark.net.
14053 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14054 echo "configure:14055: checking for gethostbyname" >&5
14055 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14056 echo $ac_n "(cached) $ac_c" 1>&6
14057 else
14058 cat > conftest.$ac_ext <<EOF
14059 #line 14060 "configure"
14060 #include "confdefs.h"
14061 /* System header to define __stub macros and hopefully few prototypes,
14062 which can conflict with char gethostbyname(); below. */
14063 #include <assert.h>
14064 /* Override any gcc2 internal prototype to avoid an error. */
14065 /* We use char because int might match the return type of a gcc2
14066 builtin and then its argument prototype would still apply. */
14067 char gethostbyname();
14068
14069 int main() {
14070
14071 /* The GNU C library defines this for functions which it implements
14072 to always fail with ENOSYS. Some functions are actually named
14073 something starting with __ and the normal name is an alias. */
14074 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14075 choke me
14076 #else
14077 gethostbyname();
14078 #endif
14079
14080 ; return 0; }
14081 EOF
14082 if { (eval echo configure:14083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14083 rm -rf conftest*
14084 eval "ac_cv_func_gethostbyname=yes"
14085 else
14086 echo "configure: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14088 rm -rf conftest*
14089 eval "ac_cv_func_gethostbyname=no"
14090 fi
14091 rm -f conftest*
14092 fi
14093
14094 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14095 echo "$ac_t""yes" 1>&6
14096 :
14097 else
14098 echo "$ac_t""no" 1>&6
14099 fi
14100
14101 if test $ac_cv_func_gethostbyname = no; then
14102 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14103 echo "configure:14104: checking for gethostbyname in -lnsl" >&5
14104 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14106 echo $ac_n "(cached) $ac_c" 1>&6
14107 else
14108 ac_save_LIBS="$LIBS"
14109 LIBS="-lnsl $LIBS"
14110 cat > conftest.$ac_ext <<EOF
14111 #line 14112 "configure"
14112 #include "confdefs.h"
14113 /* Override any gcc2 internal prototype to avoid an error. */
14114 /* We use char because int might match the return type of a gcc2
14115 builtin and then its argument prototype would still apply. */
14116 char gethostbyname();
14117
14118 int main() {
14119 gethostbyname()
14120 ; return 0; }
14121 EOF
14122 if { (eval echo configure:14123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14123 rm -rf conftest*
14124 eval "ac_cv_lib_$ac_lib_var=yes"
14125 else
14126 echo "configure: failed program was:" >&5
14127 cat conftest.$ac_ext >&5
14128 rm -rf conftest*
14129 eval "ac_cv_lib_$ac_lib_var=no"
14130 fi
14131 rm -f conftest*
14132 LIBS="$ac_save_LIBS"
14133
14134 fi
14135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14136 echo "$ac_t""yes" 1>&6
14137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14138 else
14139 echo "$ac_t""no" 1>&6
14140 fi
14141
14142 fi
14143
14144 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14145 # socket/setsockopt and other routines are undefined under SCO ODT
14146 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14147 # on later versions), says simon@lia.di.epfl.ch: it contains
14148 # gethostby* variants that don't use the nameserver (or something).
14149 # -lsocket must be given before -lnsl if both are needed.
14150 # We assume that if connect needs -lnsl, so does gethostbyname.
14151 echo $ac_n "checking for connect""... $ac_c" 1>&6
14152 echo "configure:14153: checking for connect" >&5
14153 if eval "test \"`echo '$''{'ac_cv_func_connect'+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 connect(); 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 connect();
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_connect) || defined (__stub___connect)
14173 choke me
14174 #else
14175 connect();
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_connect=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_connect=no"
14188 fi
14189 rm -f conftest*
14190 fi
14191
14192 if eval "test \"`echo '$ac_cv_func_'connect`\" = 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_connect = no; then
14200 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14201 echo "configure:14202: checking for connect in -lsocket" >&5
14202 ac_lib_var=`echo socket'_'connect | 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="-lsocket $X_EXTRA_LIBS $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 connect();
14215
14216 int main() {
14217 connect()
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="-lsocket $X_EXTRA_LIBS"
14236 else
14237 echo "$ac_t""no" 1>&6
14238 fi
14239
14240 fi
14241
14242 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14243 echo $ac_n "checking for remove""... $ac_c" 1>&6
14244 echo "configure:14245: checking for remove" >&5
14245 if eval "test \"`echo '$''{'ac_cv_func_remove'+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 remove(); 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 remove();
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_remove) || defined (__stub___remove)
14265 choke me
14266 #else
14267 remove();
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_remove=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_remove=no"
14280 fi
14281 rm -f conftest*
14282 fi
14283
14284 if eval "test \"`echo '$ac_cv_func_'remove`\" = 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_remove = no; then
14292 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14293 echo "configure:14294: checking for remove in -lposix" >&5
14294 ac_lib_var=`echo posix'_'remove | 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="-lposix $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 remove();
14307
14308 int main() {
14309 remove()
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 -lposix"
14328 else
14329 echo "$ac_t""no" 1>&6
14330 fi
14331
14332 fi
14333
14334 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14335 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14336 echo "configure:14337: checking for shmat" >&5
14337 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14338 echo $ac_n "(cached) $ac_c" 1>&6
14339 else
14340 cat > conftest.$ac_ext <<EOF
14341 #line 14342 "configure"
14342 #include "confdefs.h"
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char shmat(); below. */
14345 #include <assert.h>
14346 /* Override any gcc2 internal prototype to avoid an error. */
14347 /* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14349 char shmat();
14350
14351 int main() {
14352
14353 /* The GNU C library defines this for functions which it implements
14354 to always fail with ENOSYS. Some functions are actually named
14355 something starting with __ and the normal name is an alias. */
14356 #if defined (__stub_shmat) || defined (__stub___shmat)
14357 choke me
14358 #else
14359 shmat();
14360 #endif
14361
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_func_shmat=yes"
14367 else
14368 echo "configure: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14370 rm -rf conftest*
14371 eval "ac_cv_func_shmat=no"
14372 fi
14373 rm -f conftest*
14374 fi
14375
14376 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14377 echo "$ac_t""yes" 1>&6
14378 :
14379 else
14380 echo "$ac_t""no" 1>&6
14381 fi
14382
14383 if test $ac_cv_func_shmat = no; then
14384 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14385 echo "configure:14386: checking for shmat in -lipc" >&5
14386 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14388 echo $ac_n "(cached) $ac_c" 1>&6
14389 else
14390 ac_save_LIBS="$LIBS"
14391 LIBS="-lipc $LIBS"
14392 cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure"
14394 #include "confdefs.h"
14395 /* Override any gcc2 internal prototype to avoid an error. */
14396 /* We use char because int might match the return type of a gcc2
14397 builtin and then its argument prototype would still apply. */
14398 char shmat();
14399
14400 int main() {
14401 shmat()
14402 ; return 0; }
14403 EOF
14404 if { (eval echo configure:14405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14405 rm -rf conftest*
14406 eval "ac_cv_lib_$ac_lib_var=yes"
14407 else
14408 echo "configure: failed program was:" >&5
14409 cat conftest.$ac_ext >&5
14410 rm -rf conftest*
14411 eval "ac_cv_lib_$ac_lib_var=no"
14412 fi
14413 rm -f conftest*
14414 LIBS="$ac_save_LIBS"
14415
14416 fi
14417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14418 echo "$ac_t""yes" 1>&6
14419 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14420 else
14421 echo "$ac_t""no" 1>&6
14422 fi
14423
14424 fi
14425 fi
14426
14427 # Check for libraries that X11R6 Xt/Xaw programs need.
14428 ac_save_LDFLAGS="$LDFLAGS"
14429 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14430 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14431 # check for ICE first), but we must link in the order -lSM -lICE or
14432 # we get undefined symbols. So assume we have SM if we have ICE.
14433 # These have to be linked with before -lX11, unlike the other
14434 # libraries we check for below, so use a different variable.
14435 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14436 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14437 echo "configure:14438: checking for IceConnectionNumber in -lICE" >&5
14438 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14440 echo $ac_n "(cached) $ac_c" 1>&6
14441 else
14442 ac_save_LIBS="$LIBS"
14443 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14444 cat > conftest.$ac_ext <<EOF
14445 #line 14446 "configure"
14446 #include "confdefs.h"
14447 /* Override any gcc2 internal prototype to avoid an error. */
14448 /* We use char because int might match the return type of a gcc2
14449 builtin and then its argument prototype would still apply. */
14450 char IceConnectionNumber();
14451
14452 int main() {
14453 IceConnectionNumber()
14454 ; return 0; }
14455 EOF
14456 if { (eval echo configure:14457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14457 rm -rf conftest*
14458 eval "ac_cv_lib_$ac_lib_var=yes"
14459 else
14460 echo "configure: failed program was:" >&5
14461 cat conftest.$ac_ext >&5
14462 rm -rf conftest*
14463 eval "ac_cv_lib_$ac_lib_var=no"
14464 fi
14465 rm -f conftest*
14466 LIBS="$ac_save_LIBS"
14467
14468 fi
14469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14470 echo "$ac_t""yes" 1>&6
14471 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14472 else
14473 echo "$ac_t""no" 1>&6
14474 fi
14475
14476 LDFLAGS="$ac_save_LDFLAGS"
14477
14478 fi
14479
14480
14481 if test "$no_x" = "yes"; then
14482 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14483 fi
14484
14485 GUI_TK_LIBRARY="$X_LIBS"
14486 TOOLKIT_INCLUDE="$X_CFLAGS"
14487 AFMINSTALL=afminstall
14488 COMPILED_X_PROGRAM=0
14489
14490 if test "$wxUSE_NANOX" = "yes"; then
14491 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14492 echo "configure:14493: checking for MicroWindows/NanoX distribution" >&5
14493 if test "x$MICROWIN" = x ; then
14494 echo "$ac_t""not found" 1>&6
14495 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14496 else
14497 echo "$ac_t""$MICROWIN" 1>&6
14498 cat >> confdefs.h <<\EOF
14499 #define wxUSE_NANOX 1
14500 EOF
14501
14502 fi
14503 fi
14504
14505 xpm_link=
14506 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14507 echo "configure:14508: checking for Xpm library" >&5
14508
14509 ac_find_libraries=
14510 for ac_dir in $SEARCH_LIB /usr/lib;
14511 do
14512 for ac_extension in a so sl dylib; do
14513 if test -f "$ac_dir/libXpm.$ac_extension"; then
14514 ac_find_libraries=$ac_dir
14515 break 2
14516 fi
14517 done
14518 done
14519
14520 if test "$ac_find_libraries" != "" ; then
14521
14522 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14523 result=$?
14524 if test $result = 0; then
14525 ac_path_to_link=""
14526 else
14527 ac_path_to_link=" -L$ac_find_libraries"
14528 fi
14529
14530 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14531 xpm_link=" -lXpm"
14532 cat >> confdefs.h <<\EOF
14533 #define wxHAVE_LIB_XPM 1
14534 EOF
14535
14536 echo "$ac_t""found at $ac_find_libraries" 1>&6
14537 else
14538 cat > conftest.$ac_ext <<EOF
14539 #line 14540 "configure"
14540 #include "confdefs.h"
14541
14542 #include <X11/xpm.h>
14543
14544 int main() {
14545
14546 int version;
14547 version = XpmLibraryVersion();
14548
14549 ; return 0; }
14550 EOF
14551 if { (eval echo configure:14552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14552 rm -rf conftest*
14553
14554 xpm_link=" -lXpm"
14555 cat >> confdefs.h <<\EOF
14556 #define wxHAVE_LIB_XPM 1
14557 EOF
14558
14559 echo "$ac_t""found in default search path" 1>&6
14560 COMPILED_X_PROGRAM=0
14561
14562 else
14563 echo "configure: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14565 rm -rf conftest*
14566
14567 echo "$ac_t""no" 1>&6
14568 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14569
14570
14571 fi
14572 rm -f conftest*
14573 fi
14574
14575 if test "$wxUSE_UNICODE" = "yes"; then
14576
14577 succeeded=no
14578
14579 if test -z "$PKG_CONFIG"; then
14580 # Extract the first word of "pkg-config", so it can be a program name with args.
14581 set dummy pkg-config; ac_word=$2
14582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14583 echo "configure:14584: checking for $ac_word" >&5
14584 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14585 echo $ac_n "(cached) $ac_c" 1>&6
14586 else
14587 case "$PKG_CONFIG" in
14588 /*)
14589 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14590 ;;
14591 ?:/*)
14592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14593 ;;
14594 *)
14595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14596 ac_dummy="$PATH"
14597 for ac_dir in $ac_dummy; do
14598 test -z "$ac_dir" && ac_dir=.
14599 if test -f $ac_dir/$ac_word; then
14600 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14601 break
14602 fi
14603 done
14604 IFS="$ac_save_ifs"
14605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14606 ;;
14607 esac
14608 fi
14609 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14610 if test -n "$PKG_CONFIG"; then
14611 echo "$ac_t""$PKG_CONFIG" 1>&6
14612 else
14613 echo "$ac_t""no" 1>&6
14614 fi
14615
14616 fi
14617
14618 if test "$PKG_CONFIG" = "no" ; then
14619 echo "*** The pkg-config script could not be found. Make sure it is"
14620 echo "*** in your path, or set the PKG_CONFIG environment variable"
14621 echo "*** to the full path to pkg-config."
14622 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14623 else
14624 PKG_CONFIG_MIN_VERSION=0.9.0
14625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14626 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14627 echo "configure:14628: checking for pangox" >&5
14628
14629 if $PKG_CONFIG --exists "pangox" ; then
14630 echo "$ac_t""yes" 1>&6
14631 succeeded=yes
14632
14633 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14634 echo "configure:14635: checking PANGOX_CFLAGS" >&5
14635 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14636 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14637
14638 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14639 echo "configure:14640: checking PANGOX_LIBS" >&5
14640 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14641 echo "$ac_t""$PANGOX_LIBS" 1>&6
14642 else
14643 PANGOX_CFLAGS=""
14644 PANGOX_LIBS=""
14645 ## If we have a custom action on failure, don't print errors, but
14646 ## do set a variable so people can do so.
14647 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14648
14649 fi
14650
14651
14652
14653 else
14654 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14655 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14656 fi
14657 fi
14658
14659 if test $succeeded = yes; then
14660
14661 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14662 LIBS="$LIBS $PANGOX_LIBS"
14663
14664 else
14665
14666 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14667
14668
14669 fi
14670
14671
14672 succeeded=no
14673
14674 if test -z "$PKG_CONFIG"; then
14675 # Extract the first word of "pkg-config", so it can be a program name with args.
14676 set dummy pkg-config; ac_word=$2
14677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14678 echo "configure:14679: checking for $ac_word" >&5
14679 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14680 echo $ac_n "(cached) $ac_c" 1>&6
14681 else
14682 case "$PKG_CONFIG" in
14683 /*)
14684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14685 ;;
14686 ?:/*)
14687 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14688 ;;
14689 *)
14690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14691 ac_dummy="$PATH"
14692 for ac_dir in $ac_dummy; do
14693 test -z "$ac_dir" && ac_dir=.
14694 if test -f $ac_dir/$ac_word; then
14695 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14696 break
14697 fi
14698 done
14699 IFS="$ac_save_ifs"
14700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14701 ;;
14702 esac
14703 fi
14704 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14705 if test -n "$PKG_CONFIG"; then
14706 echo "$ac_t""$PKG_CONFIG" 1>&6
14707 else
14708 echo "$ac_t""no" 1>&6
14709 fi
14710
14711 fi
14712
14713 if test "$PKG_CONFIG" = "no" ; then
14714 echo "*** The pkg-config script could not be found. Make sure it is"
14715 echo "*** in your path, or set the PKG_CONFIG environment variable"
14716 echo "*** to the full path to pkg-config."
14717 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14718 else
14719 PKG_CONFIG_MIN_VERSION=0.9.0
14720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14721 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14722 echo "configure:14723: checking for pangoft2" >&5
14723
14724 if $PKG_CONFIG --exists "pangoft2" ; then
14725 echo "$ac_t""yes" 1>&6
14726 succeeded=yes
14727
14728 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14729 echo "configure:14730: checking PANGOFT2_CFLAGS" >&5
14730 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14731 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14732
14733 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14734 echo "configure:14735: checking PANGOFT2_LIBS" >&5
14735 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14736 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14737 else
14738 PANGOFT2_CFLAGS=""
14739 PANGOFT2_LIBS=""
14740 ## If we have a custom action on failure, don't print errors, but
14741 ## do set a variable so people can do so.
14742 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14743
14744 fi
14745
14746
14747
14748 else
14749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14751 fi
14752 fi
14753
14754 if test $succeeded = yes; then
14755
14756 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14757 LIBS="$LIBS $PANGOFT2_LIBS"
14758
14759 else
14760
14761 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14762 wxUSE_PRINTING_ARCHITECTURE="no"
14763
14764
14765 fi
14766
14767
14768 succeeded=no
14769
14770 if test -z "$PKG_CONFIG"; then
14771 # Extract the first word of "pkg-config", so it can be a program name with args.
14772 set dummy pkg-config; ac_word=$2
14773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14774 echo "configure:14775: checking for $ac_word" >&5
14775 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14776 echo $ac_n "(cached) $ac_c" 1>&6
14777 else
14778 case "$PKG_CONFIG" in
14779 /*)
14780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14781 ;;
14782 ?:/*)
14783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14784 ;;
14785 *)
14786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14787 ac_dummy="$PATH"
14788 for ac_dir in $ac_dummy; do
14789 test -z "$ac_dir" && ac_dir=.
14790 if test -f $ac_dir/$ac_word; then
14791 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14792 break
14793 fi
14794 done
14795 IFS="$ac_save_ifs"
14796 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14797 ;;
14798 esac
14799 fi
14800 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14801 if test -n "$PKG_CONFIG"; then
14802 echo "$ac_t""$PKG_CONFIG" 1>&6
14803 else
14804 echo "$ac_t""no" 1>&6
14805 fi
14806
14807 fi
14808
14809 if test "$PKG_CONFIG" = "no" ; then
14810 echo "*** The pkg-config script could not be found. Make sure it is"
14811 echo "*** in your path, or set the PKG_CONFIG environment variable"
14812 echo "*** to the full path to pkg-config."
14813 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14814 else
14815 PKG_CONFIG_MIN_VERSION=0.9.0
14816 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14817 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14818 echo "configure:14819: checking for pangoxft" >&5
14819
14820 if $PKG_CONFIG --exists "pangoxft" ; then
14821 echo "$ac_t""yes" 1>&6
14822 succeeded=yes
14823
14824 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14825 echo "configure:14826: checking PANGOXFT_CFLAGS" >&5
14826 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14827 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14828
14829 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14830 echo "configure:14831: checking PANGOXFT_LIBS" >&5
14831 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14832 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14833 else
14834 PANGOXFT_CFLAGS=""
14835 PANGOXFT_LIBS=""
14836 ## If we have a custom action on failure, don't print errors, but
14837 ## do set a variable so people can do so.
14838 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14839
14840 fi
14841
14842
14843
14844 else
14845 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14846 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14847 fi
14848 fi
14849
14850 if test $succeeded = yes; then
14851
14852 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14853 LIBS="$LIBS $PANGOXFT_LIBS"
14854
14855 else
14856
14857 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14858
14859
14860 fi
14861
14862 fi
14863
14864 wxUSE_UNIVERSAL="yes"
14865
14866 if test "$wxUSE_NANOX" = "yes"; then
14867 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14868 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"
14869 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14870 else
14871 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14872 fi
14873
14874 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14875 TOOLKIT=X11
14876 GUIDIST=X11_DIST
14877 fi
14878
14879 if test "$wxUSE_MOTIF" = 1; then
14880 if test "$no_x" = yes; then
14881 # Not all programs may use this symbol, but it does not hurt to define it.
14882 cat >> confdefs.h <<\EOF
14883 #define X_DISPLAY_MISSING 1
14884 EOF
14885
14886 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14887 else
14888 if test -n "$x_includes"; then
14889 X_CFLAGS="$X_CFLAGS -I$x_includes"
14890 fi
14891
14892 # It would also be nice to do this for all -L options, not just this one.
14893 if test -n "$x_libraries"; then
14894 X_LIBS="$X_LIBS -L$x_libraries"
14895 # For Solaris; some versions of Sun CC require a space after -R and
14896 # others require no space. Words are not sufficient . . . .
14897 case "`(uname -sr) 2>/dev/null`" in
14898 "SunOS 5"*)
14899 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14900 echo "configure:14901: checking whether -R must be followed by a space" >&5
14901 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14902 cat > conftest.$ac_ext <<EOF
14903 #line 14904 "configure"
14904 #include "confdefs.h"
14905
14906 int main() {
14907
14908 ; return 0; }
14909 EOF
14910 if { (eval echo configure:14911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14911 rm -rf conftest*
14912 ac_R_nospace=yes
14913 else
14914 echo "configure: failed program was:" >&5
14915 cat conftest.$ac_ext >&5
14916 rm -rf conftest*
14917 ac_R_nospace=no
14918 fi
14919 rm -f conftest*
14920 if test $ac_R_nospace = yes; then
14921 echo "$ac_t""no" 1>&6
14922 X_LIBS="$X_LIBS -R$x_libraries"
14923 else
14924 LIBS="$ac_xsave_LIBS -R $x_libraries"
14925 cat > conftest.$ac_ext <<EOF
14926 #line 14927 "configure"
14927 #include "confdefs.h"
14928
14929 int main() {
14930
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 ac_R_space=yes
14936 else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940 ac_R_space=no
14941 fi
14942 rm -f conftest*
14943 if test $ac_R_space = yes; then
14944 echo "$ac_t""yes" 1>&6
14945 X_LIBS="$X_LIBS -R $x_libraries"
14946 else
14947 echo "$ac_t""neither works" 1>&6
14948 fi
14949 fi
14950 LIBS="$ac_xsave_LIBS"
14951 esac
14952 fi
14953
14954 # Check for system-dependent libraries X programs must link with.
14955 # Do this before checking for the system-independent R6 libraries
14956 # (-lICE), since we may need -lsocket or whatever for X linking.
14957
14958 if test "$ISC" = yes; then
14959 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14960 else
14961 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14962 # libraries were built with DECnet support. And karl@cs.umb.edu says
14963 # the Alpha needs dnet_stub (dnet does not exist).
14964 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14965 echo "configure:14966: checking for dnet_ntoa in -ldnet" >&5
14966 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14968 echo $ac_n "(cached) $ac_c" 1>&6
14969 else
14970 ac_save_LIBS="$LIBS"
14971 LIBS="-ldnet $LIBS"
14972 cat > conftest.$ac_ext <<EOF
14973 #line 14974 "configure"
14974 #include "confdefs.h"
14975 /* Override any gcc2 internal prototype to avoid an error. */
14976 /* We use char because int might match the return type of a gcc2
14977 builtin and then its argument prototype would still apply. */
14978 char dnet_ntoa();
14979
14980 int main() {
14981 dnet_ntoa()
14982 ; return 0; }
14983 EOF
14984 if { (eval echo configure:14985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14985 rm -rf conftest*
14986 eval "ac_cv_lib_$ac_lib_var=yes"
14987 else
14988 echo "configure: failed program was:" >&5
14989 cat conftest.$ac_ext >&5
14990 rm -rf conftest*
14991 eval "ac_cv_lib_$ac_lib_var=no"
14992 fi
14993 rm -f conftest*
14994 LIBS="$ac_save_LIBS"
14995
14996 fi
14997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14998 echo "$ac_t""yes" 1>&6
14999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
15000 else
15001 echo "$ac_t""no" 1>&6
15002 fi
15003
15004 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15005 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
15006 echo "configure:15007: checking for dnet_ntoa in -ldnet_stub" >&5
15007 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
15008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15009 echo $ac_n "(cached) $ac_c" 1>&6
15010 else
15011 ac_save_LIBS="$LIBS"
15012 LIBS="-ldnet_stub $LIBS"
15013 cat > conftest.$ac_ext <<EOF
15014 #line 15015 "configure"
15015 #include "confdefs.h"
15016 /* Override any gcc2 internal prototype to avoid an error. */
15017 /* We use char because int might match the return type of a gcc2
15018 builtin and then its argument prototype would still apply. */
15019 char dnet_ntoa();
15020
15021 int main() {
15022 dnet_ntoa()
15023 ; return 0; }
15024 EOF
15025 if { (eval echo configure:15026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15026 rm -rf conftest*
15027 eval "ac_cv_lib_$ac_lib_var=yes"
15028 else
15029 echo "configure: failed program was:" >&5
15030 cat conftest.$ac_ext >&5
15031 rm -rf conftest*
15032 eval "ac_cv_lib_$ac_lib_var=no"
15033 fi
15034 rm -f conftest*
15035 LIBS="$ac_save_LIBS"
15036
15037 fi
15038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15039 echo "$ac_t""yes" 1>&6
15040 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15041 else
15042 echo "$ac_t""no" 1>&6
15043 fi
15044
15045 fi
15046
15047 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15048 # to get the SysV transport functions.
15049 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
15050 # needs -lnsl.
15051 # The nsl library prevents programs from opening the X display
15052 # on Irix 5.2, according to dickey@clark.net.
15053 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
15054 echo "configure:15055: checking for gethostbyname" >&5
15055 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
15056 echo $ac_n "(cached) $ac_c" 1>&6
15057 else
15058 cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 /* System header to define __stub macros and hopefully few prototypes,
15062 which can conflict with char gethostbyname(); below. */
15063 #include <assert.h>
15064 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15067 char gethostbyname();
15068
15069 int main() {
15070
15071 /* The GNU C library defines this for functions which it implements
15072 to always fail with ENOSYS. Some functions are actually named
15073 something starting with __ and the normal name is an alias. */
15074 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
15075 choke me
15076 #else
15077 gethostbyname();
15078 #endif
15079
15080 ; return 0; }
15081 EOF
15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15083 rm -rf conftest*
15084 eval "ac_cv_func_gethostbyname=yes"
15085 else
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15088 rm -rf conftest*
15089 eval "ac_cv_func_gethostbyname=no"
15090 fi
15091 rm -f conftest*
15092 fi
15093
15094 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
15095 echo "$ac_t""yes" 1>&6
15096 :
15097 else
15098 echo "$ac_t""no" 1>&6
15099 fi
15100
15101 if test $ac_cv_func_gethostbyname = no; then
15102 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
15103 echo "configure:15104: checking for gethostbyname in -lnsl" >&5
15104 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108 ac_save_LIBS="$LIBS"
15109 LIBS="-lnsl $LIBS"
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 /* Override any gcc2 internal prototype to avoid an error. */
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15116 char gethostbyname();
15117
15118 int main() {
15119 gethostbyname()
15120 ; return 0; }
15121 EOF
15122 if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15123 rm -rf conftest*
15124 eval "ac_cv_lib_$ac_lib_var=yes"
15125 else
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15128 rm -rf conftest*
15129 eval "ac_cv_lib_$ac_lib_var=no"
15130 fi
15131 rm -f conftest*
15132 LIBS="$ac_save_LIBS"
15133
15134 fi
15135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15136 echo "$ac_t""yes" 1>&6
15137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15138 else
15139 echo "$ac_t""no" 1>&6
15140 fi
15141
15142 fi
15143
15144 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15145 # socket/setsockopt and other routines are undefined under SCO ODT
15146 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15147 # on later versions), says simon@lia.di.epfl.ch: it contains
15148 # gethostby* variants that don't use the nameserver (or something).
15149 # -lsocket must be given before -lnsl if both are needed.
15150 # We assume that if connect needs -lnsl, so does gethostbyname.
15151 echo $ac_n "checking for connect""... $ac_c" 1>&6
15152 echo "configure:15153: checking for connect" >&5
15153 if eval "test \"`echo '$''{'ac_cv_func_connect'+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 connect(); 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 connect();
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_connect) || defined (__stub___connect)
15173 choke me
15174 #else
15175 connect();
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_connect=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_connect=no"
15188 fi
15189 rm -f conftest*
15190 fi
15191
15192 if eval "test \"`echo '$ac_cv_func_'connect`\" = 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_connect = no; then
15200 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15201 echo "configure:15202: checking for connect in -lsocket" >&5
15202 ac_lib_var=`echo socket'_'connect | 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="-lsocket $X_EXTRA_LIBS $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 connect();
15215
15216 int main() {
15217 connect()
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="-lsocket $X_EXTRA_LIBS"
15236 else
15237 echo "$ac_t""no" 1>&6
15238 fi
15239
15240 fi
15241
15242 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15243 echo $ac_n "checking for remove""... $ac_c" 1>&6
15244 echo "configure:15245: checking for remove" >&5
15245 if eval "test \"`echo '$''{'ac_cv_func_remove'+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 remove(); 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 remove();
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_remove) || defined (__stub___remove)
15265 choke me
15266 #else
15267 remove();
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_remove=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_remove=no"
15280 fi
15281 rm -f conftest*
15282 fi
15283
15284 if eval "test \"`echo '$ac_cv_func_'remove`\" = 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_remove = no; then
15292 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15293 echo "configure:15294: checking for remove in -lposix" >&5
15294 ac_lib_var=`echo posix'_'remove | 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="-lposix $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 remove();
15307
15308 int main() {
15309 remove()
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 -lposix"
15328 else
15329 echo "$ac_t""no" 1>&6
15330 fi
15331
15332 fi
15333
15334 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15335 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15336 echo "configure:15337: checking for shmat" >&5
15337 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15338 echo $ac_n "(cached) $ac_c" 1>&6
15339 else
15340 cat > conftest.$ac_ext <<EOF
15341 #line 15342 "configure"
15342 #include "confdefs.h"
15343 /* System header to define __stub macros and hopefully few prototypes,
15344 which can conflict with char shmat(); below. */
15345 #include <assert.h>
15346 /* Override any gcc2 internal prototype to avoid an error. */
15347 /* We use char because int might match the return type of a gcc2
15348 builtin and then its argument prototype would still apply. */
15349 char shmat();
15350
15351 int main() {
15352
15353 /* The GNU C library defines this for functions which it implements
15354 to always fail with ENOSYS. Some functions are actually named
15355 something starting with __ and the normal name is an alias. */
15356 #if defined (__stub_shmat) || defined (__stub___shmat)
15357 choke me
15358 #else
15359 shmat();
15360 #endif
15361
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_func_shmat=yes"
15367 else
15368 echo "configure: failed program was:" >&5
15369 cat conftest.$ac_ext >&5
15370 rm -rf conftest*
15371 eval "ac_cv_func_shmat=no"
15372 fi
15373 rm -f conftest*
15374 fi
15375
15376 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15377 echo "$ac_t""yes" 1>&6
15378 :
15379 else
15380 echo "$ac_t""no" 1>&6
15381 fi
15382
15383 if test $ac_cv_func_shmat = no; then
15384 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15385 echo "configure:15386: checking for shmat in -lipc" >&5
15386 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15388 echo $ac_n "(cached) $ac_c" 1>&6
15389 else
15390 ac_save_LIBS="$LIBS"
15391 LIBS="-lipc $LIBS"
15392 cat > conftest.$ac_ext <<EOF
15393 #line 15394 "configure"
15394 #include "confdefs.h"
15395 /* Override any gcc2 internal prototype to avoid an error. */
15396 /* We use char because int might match the return type of a gcc2
15397 builtin and then its argument prototype would still apply. */
15398 char shmat();
15399
15400 int main() {
15401 shmat()
15402 ; return 0; }
15403 EOF
15404 if { (eval echo configure:15405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15405 rm -rf conftest*
15406 eval "ac_cv_lib_$ac_lib_var=yes"
15407 else
15408 echo "configure: failed program was:" >&5
15409 cat conftest.$ac_ext >&5
15410 rm -rf conftest*
15411 eval "ac_cv_lib_$ac_lib_var=no"
15412 fi
15413 rm -f conftest*
15414 LIBS="$ac_save_LIBS"
15415
15416 fi
15417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15418 echo "$ac_t""yes" 1>&6
15419 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15420 else
15421 echo "$ac_t""no" 1>&6
15422 fi
15423
15424 fi
15425 fi
15426
15427 # Check for libraries that X11R6 Xt/Xaw programs need.
15428 ac_save_LDFLAGS="$LDFLAGS"
15429 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15430 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15431 # check for ICE first), but we must link in the order -lSM -lICE or
15432 # we get undefined symbols. So assume we have SM if we have ICE.
15433 # These have to be linked with before -lX11, unlike the other
15434 # libraries we check for below, so use a different variable.
15435 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15436 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15437 echo "configure:15438: checking for IceConnectionNumber in -lICE" >&5
15438 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15440 echo $ac_n "(cached) $ac_c" 1>&6
15441 else
15442 ac_save_LIBS="$LIBS"
15443 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15444 cat > conftest.$ac_ext <<EOF
15445 #line 15446 "configure"
15446 #include "confdefs.h"
15447 /* Override any gcc2 internal prototype to avoid an error. */
15448 /* We use char because int might match the return type of a gcc2
15449 builtin and then its argument prototype would still apply. */
15450 char IceConnectionNumber();
15451
15452 int main() {
15453 IceConnectionNumber()
15454 ; return 0; }
15455 EOF
15456 if { (eval echo configure:15457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15457 rm -rf conftest*
15458 eval "ac_cv_lib_$ac_lib_var=yes"
15459 else
15460 echo "configure: failed program was:" >&5
15461 cat conftest.$ac_ext >&5
15462 rm -rf conftest*
15463 eval "ac_cv_lib_$ac_lib_var=no"
15464 fi
15465 rm -f conftest*
15466 LIBS="$ac_save_LIBS"
15467
15468 fi
15469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15470 echo "$ac_t""yes" 1>&6
15471 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15472 else
15473 echo "$ac_t""no" 1>&6
15474 fi
15475
15476 LDFLAGS="$ac_save_LDFLAGS"
15477
15478 fi
15479
15480
15481 if test "$no_x" = "yes"; then
15482 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15483 fi
15484
15485 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15486 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15487 AFMINSTALL=afminstall
15488 COMPILED_X_PROGRAM=0
15489
15490 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15491 echo "configure:15492: checking for Motif/Lesstif headers" >&5
15492
15493 ac_find_includes=
15494 for ac_dir in $SEARCH_INCLUDE /usr/include;
15495 do
15496 if test -f "$ac_dir/Xm/Xm.h"; then
15497 ac_find_includes=$ac_dir
15498 break
15499 fi
15500 done
15501
15502 if test "$ac_find_includes" != "" ; then
15503 echo "$ac_t""found in $ac_find_includes" 1>&6
15504
15505 if test "x$ac_find_includes" = "x/usr/include"; then
15506 ac_path_to_include=""
15507 else
15508 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15509 result=$?
15510 if test $result = 0; then
15511 ac_path_to_include=""
15512 else
15513 ac_path_to_include=" -I$ac_find_includes"
15514 fi
15515 fi
15516
15517 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15518 else
15519 cat > conftest.$ac_ext <<EOF
15520 #line 15521 "configure"
15521 #include "confdefs.h"
15522
15523 #include <Xm/Xm.h>
15524
15525 int main() {
15526
15527 int version;
15528 version = xmUseVersion;
15529
15530 ; return 0; }
15531 EOF
15532 if { (eval echo configure:15533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15533 rm -rf conftest*
15534
15535 echo "$ac_t""found in default search path" 1>&6
15536 COMPILED_X_PROGRAM=1
15537
15538 else
15539 echo "configure: failed program was:" >&5
15540 cat conftest.$ac_ext >&5
15541 rm -rf conftest*
15542
15543 echo "$ac_t""no" 1>&6
15544 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15545
15546
15547 fi
15548 rm -f conftest*
15549 fi
15550
15551 if test "$COMPILED_X_PROGRAM" = 0; then
15552 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15553 echo "configure:15554: checking for Motif/Lesstif library" >&5
15554
15555 ac_find_libraries=
15556 for ac_dir in $SEARCH_LIB /usr/lib;
15557 do
15558 for ac_extension in a so sl dylib; do
15559 if test -f "$ac_dir/libXm.$ac_extension"; then
15560 ac_find_libraries=$ac_dir
15561 break 2
15562 fi
15563 done
15564 done
15565
15566 if test "$ac_find_libraries" != "" ; then
15567 echo "$ac_t""found at $ac_find_libraries" 1>&6
15568
15569
15570 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15571 result=$?
15572 if test $result = 0; then
15573 ac_path_to_link=""
15574 else
15575 ac_path_to_link=" -L$ac_find_libraries"
15576 fi
15577
15578 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15579 else
15580 save_CFLAGS=$CFLAGS
15581 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15582
15583 cat > conftest.$ac_ext <<EOF
15584 #line 15585 "configure"
15585 #include "confdefs.h"
15586
15587 #include <Xm/Xm.h>
15588
15589 int main() {
15590
15591 int version;
15592 version = xmUseVersion;
15593
15594 ; return 0; }
15595 EOF
15596 if { (eval echo configure:15597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15597 rm -rf conftest*
15598
15599 echo "$ac_t""found in default search path" 1>&6
15600 COMPILED_X_PROGRAM=1
15601
15602 else
15603 echo "configure: failed program was:" >&5
15604 cat conftest.$ac_ext >&5
15605 rm -rf conftest*
15606
15607 echo "$ac_t""no" 1>&6
15608 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15609
15610
15611 fi
15612 rm -f conftest*
15613
15614 CFLAGS=$save_CFLAGS
15615 fi
15616 fi
15617
15618 xpm_link=
15619 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15620 echo "configure:15621: checking for Xpm library" >&5
15621
15622 ac_find_libraries=
15623 for ac_dir in $SEARCH_LIB /usr/lib;
15624 do
15625 for ac_extension in a so sl dylib; do
15626 if test -f "$ac_dir/libXpm.$ac_extension"; then
15627 ac_find_libraries=$ac_dir
15628 break 2
15629 fi
15630 done
15631 done
15632
15633 if test "$ac_find_libraries" != "" ; then
15634
15635 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15636 result=$?
15637 if test $result = 0; then
15638 ac_path_to_link=""
15639 else
15640 ac_path_to_link=" -L$ac_find_libraries"
15641 fi
15642
15643 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15644
15645 xpm_link=" -lXpm"
15646 cat >> confdefs.h <<\EOF
15647 #define wxHAVE_LIB_XPM 1
15648 EOF
15649
15650 echo "$ac_t""found at $ac_find_libraries" 1>&6
15651 else
15652 save_CFLAGS=$CFLAGS
15653 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15654
15655 cat > conftest.$ac_ext <<EOF
15656 #line 15657 "configure"
15657 #include "confdefs.h"
15658
15659 #include <X11/xpm.h>
15660
15661 int main() {
15662
15663 int version;
15664 version = XpmLibraryVersion();
15665
15666 ; return 0; }
15667 EOF
15668 if { (eval echo configure:15669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15669 rm -rf conftest*
15670
15671 xpm_link=" -lXpm"
15672 cat >> confdefs.h <<\EOF
15673 #define wxHAVE_LIB_XPM 1
15674 EOF
15675
15676 echo "$ac_t""found in default search path" 1>&6
15677 COMPILED_X_PROGRAM=0
15678
15679 else
15680 echo "configure: failed program was:" >&5
15681 cat conftest.$ac_ext >&5
15682 rm -rf conftest*
15683
15684 echo "$ac_t""no" 1>&6
15685 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15686
15687
15688 fi
15689 rm -f conftest*
15690
15691 CFLAGS=$save_CFLAGS
15692 fi
15693
15694 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15695 echo "configure:15696: checking if we need -lXp and/or -lSM -lICE" >&5
15696 libp_link=""
15697 libsm_ice_link=""
15698 libs_found=0
15699 for libp in "" " -lXp"; do
15700 if test "$libs_found" = "0"; then
15701 for libsm_ice in " -lSM -lICE"; do
15702 if test "$libs_found" = "0"; then
15703 save_LIBS="$LIBS"
15704 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15705 save_CFLAGS=$CFLAGS
15706 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15707
15708 cat > conftest.$ac_ext <<EOF
15709 #line 15710 "configure"
15710 #include "confdefs.h"
15711
15712 #include <Xm/Xm.h>
15713 #include <Xm/List.h>
15714
15715 int main() {
15716
15717 XmString string = NULL;
15718 Widget w = NULL;
15719 int position = 0;
15720 XmListAddItem(w, string, position);
15721
15722 ; return 0; }
15723 EOF
15724 if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15725 rm -rf conftest*
15726
15727 libp_link="$libp"
15728 libsm_ice_link="$libsm_ice"
15729 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15730 libs_found=1
15731
15732 else
15733 echo "configure: failed program was:" >&5
15734 cat conftest.$ac_ext >&5
15735 rm -rf conftest*
15736
15737
15738 fi
15739 rm -f conftest*
15740
15741 LIBS="$save_LIBS"
15742 CFLAGS=$save_CFLAGS
15743 fi
15744 done
15745 fi
15746 done
15747
15748 if test "$libs_found" = "0"; then
15749 echo "$ac_t""can't find the right libraries" 1>&6
15750 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15751 fi
15752
15753 save_CFLAGS=$CFLAGS
15754 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15755 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15756 echo "configure:15757: checking for Motif 2" >&5
15757 cat > conftest.$ac_ext <<EOF
15758 #line 15759 "configure"
15759 #include "confdefs.h"
15760
15761 #include <Xm/Xm.h>
15762
15763 int main() {
15764
15765 #if XmVersion < 2000
15766 #error "Not Motif 2"
15767 #endif
15768
15769 ; return 0; }
15770 EOF
15771 if { (eval echo configure:15772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15772 rm -rf conftest*
15773
15774 cat >> confdefs.h <<\EOF
15775 #define __WXMOTIF20__ 1
15776 EOF
15777
15778 echo "$ac_t""found" 1>&6
15779
15780 else
15781 echo "configure: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15783 rm -rf conftest*
15784
15785 cat >> confdefs.h <<\EOF
15786 #define __WXMOTIF20__ 0
15787 EOF
15788
15789 echo "$ac_t""not found" 1>&6
15790
15791 fi
15792 rm -f conftest*
15793 CFLAGS=$save_CFLAGS
15794
15795 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15796 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15797 TOOLKIT=MOTIF
15798 GUIDIST=MOTIF_DIST
15799 fi
15800
15801 if test "$wxUSE_MAC" = 1; then
15802 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15803
15804 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15805 TOOLKIT=MAC
15806 GUIDIST=MACX_DIST
15807 fi
15808
15809 if test "$wxUSE_COCOA" = 1; then
15810 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15811 TOOLKIT=COCOA
15812 GUIDIST=COCOA_DIST
15813 fi
15814
15815 if test "$wxUSE_PM" = 1; then
15816 TOOLKIT=PM
15817 GUIDIST=GTK_DIST
15818 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15819 wxUSE_PROLOGIO="yes"
15820 wxUSE_RESOURCES="yes"
15821 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15822 wxUSE_THREADS="no"
15823 fi
15824
15825 if test "$TOOLKIT" = "PM" ; then
15826 TOOLKIT_DIR="os2"
15827 else
15828 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15829 fi
15830
15831 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15832
15833 if test "$wxUSE_UNIVERSAL" = "yes"; then
15834 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15835
15836 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15837 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15838
15839 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15840 if test "$wxUSE_X11" = 1; then
15841 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15842 else
15843 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15844 fi
15845 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15846 WIDGET_SET=univ
15847 else
15848 ALL_OBJECTS="\$(GUIOBJS)"
15849 ALL_SOURCES="\$(ALL_SOURCES)"
15850 ALL_HEADERS="\$(ALL_HEADERS)"
15851 fi
15852
15853 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15854
15855 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15856 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15857 fi
15858
15859 if test "$wxUSE_HTML" = "yes"; then
15860 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15861 fi
15862
15863 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15864 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15865 fi
15866 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15867 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15868 fi
15869 if test "$wxUSE_LIBPNG" = "builtin" ; then
15870 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15871 fi
15872
15873 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15874 DISTDIR="wx\$(TOOLKIT)"
15875 else
15876 USE_GUI=0
15877
15878 TOOLKIT_DIR="base"
15879
15880 if test "$USE_WIN32" = 1 ; then
15881 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15882 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15883
15884 TOOLKIT="MSW"
15885 else
15886 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15887 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15888 fi
15889
15890 ALL_SOURCES="\$(ALL_SOURCES)"
15891 ALL_HEADERS="\$(ALL_HEADERS)"
15892
15893 PORT_FILES="\${top_srcdir}/src/files.lst"
15894
15895 GUIDIST="BASE_DIST"
15896 DISTDIR="wxBase"
15897 fi
15898
15899
15900 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15901 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15902 fi
15903
15904 if test "$wxUSE_REGEX" = "builtin" ; then
15905 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15906 fi
15907 if test "$wxUSE_ZLIB" = "builtin" ; then
15908 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15909 fi
15910
15911
15912 if test "$wxUSE_OPENGL" = "yes"; then
15913 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15914 OPENGL_LIBS="-framework OpenGL -framework AGL"
15915 elif test "$wxUSE_MSW" = 1; then
15916 OPENGL_LIBS="-lopengl32 -lglu32"
15917 else
15918 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15919 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15920 echo "configure:15921: checking for GL/gl.h" >&5
15921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15922 echo $ac_n "(cached) $ac_c" 1>&6
15923 else
15924 cat > conftest.$ac_ext <<EOF
15925 #line 15926 "configure"
15926 #include "confdefs.h"
15927 #include <GL/gl.h>
15928 EOF
15929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15930 { (eval echo configure:15931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15932 if test -z "$ac_err"; then
15933 rm -rf conftest*
15934 eval "ac_cv_header_$ac_safe=yes"
15935 else
15936 echo "$ac_err" >&5
15937 echo "configure: failed program was:" >&5
15938 cat conftest.$ac_ext >&5
15939 rm -rf conftest*
15940 eval "ac_cv_header_$ac_safe=no"
15941 fi
15942 rm -f conftest*
15943 fi
15944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946
15947 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15948 echo "configure:15949: checking for -lGL" >&5
15949
15950 ac_find_libraries=
15951 for ac_dir in $SEARCH_LIB /usr/lib;
15952 do
15953 for ac_extension in a so sl dylib; do
15954 if test -f "$ac_dir/libGL.$ac_extension"; then
15955 ac_find_libraries=$ac_dir
15956 break 2
15957 fi
15958 done
15959 done
15960
15961 if test "$ac_find_libraries" != "" ; then
15962
15963 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15964 result=$?
15965 if test $result = 0; then
15966 ac_path_to_link=""
15967 else
15968 ac_path_to_link=" -L$ac_find_libraries"
15969 fi
15970
15971 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15972 LDFLAGS_GL="$LDFLAGS"
15973 else
15974 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15975 fi
15976 OPENGL_LIBS="-lGL -lGLU"
15977 echo "$ac_t""yes" 1>&6
15978 else
15979 echo "$ac_t""no" 1>&6
15980 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15981 echo "configure:15982: checking for -lMesaGL" >&5
15982
15983 ac_find_libraries=
15984 for ac_dir in $SEARCH_LIB /usr/lib;
15985 do
15986 for ac_extension in a so sl dylib; do
15987 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15988 ac_find_libraries=$ac_dir
15989 break 2
15990 fi
15991 done
15992 done
15993
15994 if test "$ac_find_libraries" != "" ; then
15995
15996 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15997 result=$?
15998 if test $result = 0; then
15999 ac_path_to_link=""
16000 else
16001 ac_path_to_link=" -L$ac_find_libraries"
16002 fi
16003
16004 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16005 OPENGL_LIBS="-lMesaGL -lMesaGLU"
16006 echo "$ac_t""yes" 1>&6
16007 else
16008 echo "$ac_t""no" 1>&6
16009 fi
16010 fi
16011
16012 else
16013 echo "$ac_t""no" 1>&6
16014 fi
16015
16016
16017 if test "x$OPENGL_LIBS" = "x"; then
16018 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16019 fi
16020 fi
16021
16022 if test "$wxUSE_OPENGL" = "yes"; then
16023 cat >> confdefs.h <<\EOF
16024 #define wxUSE_OPENGL 1
16025 EOF
16026
16027 cat >> confdefs.h <<\EOF
16028 #define wxUSE_GLCANVAS 1
16029 EOF
16030
16031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16032 fi
16033 fi
16034
16035 if test -z "$TOOLKIT_VPATH" ; then
16036 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16037 fi
16038
16039 if test -n "$TOOLKIT" ; then
16040 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16041 fi
16042
16043 lib_unicode_suffix=
16044 if test "$wxUSE_UNICODE" = "yes"; then
16045 lib_unicode_suffix=u
16046 fi
16047
16048 lib_debug_suffix=
16049 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16050 lib_debug_suffix=d
16051 fi
16052
16053 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16054
16055 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16056 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16057
16058 if test "$cross_compiling" = "yes"; then
16059 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16060 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16061 fi
16062
16063 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16064 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16065 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16066
16067 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16068 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16069
16070 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16071 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16072 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16073 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16074
16075 case "${host}" in
16076 *-*-cygwin* | *-*-mingw32* )
16077
16078
16079
16080 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16081 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16082 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16083 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16084 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16085 else
16086 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16087 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16088 fi
16089 ;;
16090
16091 *-*-darwin* )
16092
16093 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16094 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16095
16096 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16097 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16098 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16099 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16100
16101 if test "$wxUSE_MAC" = 1; then
16102 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16103 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16104 fi
16105 ;;
16106 esac
16107
16108 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16109 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16110
16111 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16112 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16113
16114 if test "$wxUSE_OPENGL" = "yes"; then
16115 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16116 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16117 fi
16118
16119
16120
16121 if test "$wxUSE_SHARED" = "yes"; then
16122 case "${host}" in
16123 *-pc-os2_emx | *-pc-os2-emx | \
16124 *-pc-msdosdjgpp )
16125 wxUSE_SHARED=no
16126 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16127 ;;
16128 esac
16129 fi
16130
16131 if test "$wxUSE_SHARED" = "yes"; then
16132
16133 if test "$wxUSE_OPENGL" = "yes"; then
16134 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16135 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16136 else
16137 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16138 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16139 fi
16140
16141 if test "$GCC" = "yes"; then
16142 PIC_FLAG="-fPIC"
16143 fi
16144
16145
16146
16147 found_versioning=no
16148
16149
16150 if test $found_versioning = no ; then
16151 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16152 echo "configure:16153: checking if the linker accepts --version-script" >&5
16153 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16154 echo $ac_n "(cached) $ac_c" 1>&6
16155 else
16156
16157 echo "VER_1 { *; };" >conftest.sym
16158 echo "int main() { return 0; }" >conftest.cpp
16159
16160 if { ac_try='
16161 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16162 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16163 if test -s conftest.stderr ; then
16164 wx_cv_version_script=no
16165 else
16166 wx_cv_version_script=yes
16167 fi
16168 else
16169 wx_cv_version_script=no
16170 fi
16171 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16172
16173 fi
16174
16175 echo "$ac_t""$wx_cv_version_script" 1>&6
16176 if test $wx_cv_version_script = yes ; then
16177 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16178 fi
16179 fi
16180
16181
16182 SHARED_LD="${CXX} -shared -o"
16183
16184 case "${host}" in
16185 *-hp-hpux* )
16186 if test "$GCC" = "yes"; then
16187 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16188 else
16189 LDFLAGS="$LDFLAGS -L/usr/lib"
16190
16191 SHARED_LD="${CXX} -b -o"
16192 PIC_FLAG="+Z"
16193 fi
16194
16195 if test "$wxUSE_OPENGL" = "yes"; then
16196 WX_ALL_INSTALLED="preinstall_gl"
16197 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16198 else
16199 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16200 fi
16201 ;;
16202
16203 *-*-linux* )
16204 if test "$GCC" != "yes"; then
16205 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16206 echo "configure:16207: checking for Intel compiler" >&5
16207 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16208 echo $ac_n "(cached) $ac_c" 1>&6
16209 else
16210
16211 cat > conftest.$ac_ext <<EOF
16212 #line 16213 "configure"
16213 #include "confdefs.h"
16214
16215 int main() {
16216
16217 #ifndef __INTEL_COMPILER
16218 #error Not icc
16219 #endif
16220
16221 ; return 0; }
16222 EOF
16223 if { (eval echo configure:16224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16224 rm -rf conftest*
16225 wx_cv_prog_icc=yes
16226 else
16227 echo "configure: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16229 rm -rf conftest*
16230 wx_cv_prog_icc=no
16231
16232 fi
16233 rm -f conftest*
16234
16235 fi
16236
16237 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16238 if test "$wx_cv_prog_icc" = "yes"; then
16239 PIC_FLAG="-KPIC"
16240 fi
16241 fi
16242
16243 if test "$wxUSE_SONAME" = "yes" ; then
16244 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16245 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16246 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16247 fi
16248 ;;
16249
16250 *-*-solaris2* )
16251 if test "$GCC" = yes ; then
16252 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16253 else
16254 SHARED_LD="${CXX} -G -o"
16255 PIC_FLAG="-KPIC"
16256 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16257 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16258 fi
16259 ;;
16260
16261 *-*-darwin* )
16262 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16263 CFLAGS="$CFLAGS -fno-common"
16264 CXXFLAGS="$CXXFLAGS -fno-common"
16265 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16266 PIC_FLAG="-dynamic -fPIC"
16267 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16268 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16269 ;;
16270
16271 *-*-aix* )
16272 if test "$GCC" != "yes"; then
16273 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16274 set dummy makeC++SharedLib; ac_word=$2
16275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16276 echo "configure:16277: checking for $ac_word" >&5
16277 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16279 else
16280 if test -n "$AIX_CXX_LD"; then
16281 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16282 else
16283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16284 ac_dummy="$PATH"
16285 for ac_dir in $ac_dummy; do
16286 test -z "$ac_dir" && ac_dir=.
16287 if test -f $ac_dir/$ac_word; then
16288 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16289 break
16290 fi
16291 done
16292 IFS="$ac_save_ifs"
16293 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16294 fi
16295 fi
16296 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16297 if test -n "$AIX_CXX_LD"; then
16298 echo "$ac_t""$AIX_CXX_LD" 1>&6
16299 else
16300 echo "$ac_t""no" 1>&6
16301 fi
16302
16303
16304 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16305 fi
16306 ;;
16307
16308 *-*-cygwin* | *-*-mingw32* )
16309 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16310
16311 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16312 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16313
16314 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16315
16316 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16317 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16318
16319 if test "$wxUSE_OPENGL" = "yes"; then
16320 LIBS="${LIBS} ${OPENGL_LIBS}"
16321 fi
16322 ;;
16323
16324 *-*-beos* )
16325 SHARED_LD="${LD} -shared -o"
16326 ;;
16327
16328 *-*-irix* )
16329 if test "$GCC" != "yes"; then
16330 PIC_FLAG="-KPIC"
16331 fi
16332 ;;
16333
16334 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16335 *-*-sunos4* | \
16336 *-*-osf* | \
16337 *-*-dgux5* | \
16338 *-*-sysv5* )
16339 ;;
16340
16341 *)
16342 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16343 esac
16344
16345 if test "x$WX_TARGET_LIBRARY" = "x"; then
16346 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16347 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16348 fi
16349
16350 WX_TARGET_LIBRARY_TYPE="so"
16351 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16352 fi
16353
16354 if test "$wxUSE_SHARED" = "no"; then
16355
16356 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16357 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16358 fi
16359
16360 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16361 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16362 fi
16363
16364 if test "$wxUSE_OPENGL" = "yes"; then
16365 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16366 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16367 else
16368 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16369 fi
16370
16371 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16372 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16373
16374 WX_TARGET_LIBRARY_TYPE="a"
16375 INSTALL_LIBRARY='$(INSTALL_DATA)'
16376
16377 STATIC_FLAG="yes"
16378 else
16379 STATIC_FLAG="no"
16380 fi
16381
16382 MACRESCOMP="@#"
16383 MACSETFILE="@#"
16384 MACRESWXCONFIG="#"
16385 if test "$wxUSE_MAC" = 1; then
16386 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16387 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16388 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16389 # Extract the first word of "Rez", so it can be a program name with args.
16390 set dummy Rez; ac_word=$2
16391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16392 echo "configure:16393: checking for $ac_word" >&5
16393 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16394 echo $ac_n "(cached) $ac_c" 1>&6
16395 else
16396 if test -n "$RESCOMP"; then
16397 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16398 else
16399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16400 ac_dummy="$PATH"
16401 for ac_dir in $ac_dummy; do
16402 test -z "$ac_dir" && ac_dir=.
16403 if test -f $ac_dir/$ac_word; then
16404 ac_cv_prog_RESCOMP="Rez"
16405 break
16406 fi
16407 done
16408 IFS="$ac_save_ifs"
16409 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16410 fi
16411 fi
16412 RESCOMP="$ac_cv_prog_RESCOMP"
16413 if test -n "$RESCOMP"; then
16414 echo "$ac_t""$RESCOMP" 1>&6
16415 else
16416 echo "$ac_t""no" 1>&6
16417 fi
16418
16419 # Extract the first word of "DeRez", so it can be a program name with args.
16420 set dummy DeRez; ac_word=$2
16421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16422 echo "configure:16423: checking for $ac_word" >&5
16423 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16424 echo $ac_n "(cached) $ac_c" 1>&6
16425 else
16426 if test -n "$DEREZ"; then
16427 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16428 else
16429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16430 ac_dummy="$PATH"
16431 for ac_dir in $ac_dummy; do
16432 test -z "$ac_dir" && ac_dir=.
16433 if test -f $ac_dir/$ac_word; then
16434 ac_cv_prog_DEREZ="DeRez"
16435 break
16436 fi
16437 done
16438 IFS="$ac_save_ifs"
16439 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16440 fi
16441 fi
16442 DEREZ="$ac_cv_prog_DEREZ"
16443 if test -n "$DEREZ"; then
16444 echo "$ac_t""$DEREZ" 1>&6
16445 else
16446 echo "$ac_t""no" 1>&6
16447 fi
16448
16449 # Extract the first word of "SetFile", so it can be a program name with args.
16450 set dummy SetFile; ac_word=$2
16451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16452 echo "configure:16453: checking for $ac_word" >&5
16453 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16454 echo $ac_n "(cached) $ac_c" 1>&6
16455 else
16456 if test -n "$SETFILE"; then
16457 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16458 else
16459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16460 ac_dummy="$PATH"
16461 for ac_dir in $ac_dummy; do
16462 test -z "$ac_dir" && ac_dir=.
16463 if test -f $ac_dir/$ac_word; then
16464 ac_cv_prog_SETFILE="SetFile"
16465 break
16466 fi
16467 done
16468 IFS="$ac_save_ifs"
16469 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16470 fi
16471 fi
16472 SETFILE="$ac_cv_prog_SETFILE"
16473 if test -n "$SETFILE"; then
16474 echo "$ac_t""$SETFILE" 1>&6
16475 else
16476 echo "$ac_t""no" 1>&6
16477 fi
16478
16479 MACOSX_BUNDLE="bundle"
16480 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16481 MACSETFILE="\$(SETFILE)"
16482 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16483 else
16484 if test "$wxUSE_PM" = 1; then
16485 MACRESCOMP="emxbind -ep"
16486 fi
16487 fi
16488
16489
16490 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16491 echo "configure:16492: checking for ANSI C header files" >&5
16492 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16493 echo $ac_n "(cached) $ac_c" 1>&6
16494 else
16495 cat > conftest.$ac_ext <<EOF
16496 #line 16497 "configure"
16497 #include "confdefs.h"
16498 #include <stdlib.h>
16499 #include <stdarg.h>
16500 #include <string.h>
16501 #include <float.h>
16502 EOF
16503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16504 { (eval echo configure:16505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16506 if test -z "$ac_err"; then
16507 rm -rf conftest*
16508 ac_cv_header_stdc=yes
16509 else
16510 echo "$ac_err" >&5
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514 ac_cv_header_stdc=no
16515 fi
16516 rm -f conftest*
16517
16518 if test $ac_cv_header_stdc = yes; then
16519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16520 cat > conftest.$ac_ext <<EOF
16521 #line 16522 "configure"
16522 #include "confdefs.h"
16523 #include <string.h>
16524 EOF
16525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16526 egrep "memchr" >/dev/null 2>&1; then
16527 :
16528 else
16529 rm -rf conftest*
16530 ac_cv_header_stdc=no
16531 fi
16532 rm -f conftest*
16533
16534 fi
16535
16536 if test $ac_cv_header_stdc = yes; then
16537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16538 cat > conftest.$ac_ext <<EOF
16539 #line 16540 "configure"
16540 #include "confdefs.h"
16541 #include <stdlib.h>
16542 EOF
16543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16544 egrep "free" >/dev/null 2>&1; then
16545 :
16546 else
16547 rm -rf conftest*
16548 ac_cv_header_stdc=no
16549 fi
16550 rm -f conftest*
16551
16552 fi
16553
16554 if test $ac_cv_header_stdc = yes; then
16555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16556 if test "$cross_compiling" = yes; then
16557 :
16558 else
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16562 #include <ctype.h>
16563 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16564 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16566 int main () { int i; for (i = 0; i < 256; i++)
16567 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16568 exit (0); }
16569
16570 EOF
16571 if { (eval echo configure:16572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16572 then
16573 :
16574 else
16575 echo "configure: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 rm -fr conftest*
16578 ac_cv_header_stdc=no
16579 fi
16580 rm -fr conftest*
16581 fi
16582
16583 fi
16584 fi
16585
16586 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16587 if test $ac_cv_header_stdc = yes; then
16588 cat >> confdefs.h <<\EOF
16589 #define STDC_HEADERS 1
16590 EOF
16591
16592 fi
16593
16594 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16595 echo "configure:16596: checking for mode_t" >&5
16596 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16597 echo $ac_n "(cached) $ac_c" 1>&6
16598 else
16599 cat > conftest.$ac_ext <<EOF
16600 #line 16601 "configure"
16601 #include "confdefs.h"
16602 #include <sys/types.h>
16603 #if STDC_HEADERS
16604 #include <stdlib.h>
16605 #include <stddef.h>
16606 #endif
16607 EOF
16608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16609 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16610 rm -rf conftest*
16611 ac_cv_type_mode_t=yes
16612 else
16613 rm -rf conftest*
16614 ac_cv_type_mode_t=no
16615 fi
16616 rm -f conftest*
16617
16618 fi
16619 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16620 if test $ac_cv_type_mode_t = no; then
16621 cat >> confdefs.h <<\EOF
16622 #define mode_t int
16623 EOF
16624
16625 fi
16626
16627 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16628 echo "configure:16629: checking for off_t" >&5
16629 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
16631 else
16632 cat > conftest.$ac_ext <<EOF
16633 #line 16634 "configure"
16634 #include "confdefs.h"
16635 #include <sys/types.h>
16636 #if STDC_HEADERS
16637 #include <stdlib.h>
16638 #include <stddef.h>
16639 #endif
16640 EOF
16641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16642 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16643 rm -rf conftest*
16644 ac_cv_type_off_t=yes
16645 else
16646 rm -rf conftest*
16647 ac_cv_type_off_t=no
16648 fi
16649 rm -f conftest*
16650
16651 fi
16652 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16653 if test $ac_cv_type_off_t = no; then
16654 cat >> confdefs.h <<\EOF
16655 #define off_t long
16656 EOF
16657
16658 fi
16659
16660 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16661 echo "configure:16662: checking for pid_t" >&5
16662 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16663 echo $ac_n "(cached) $ac_c" 1>&6
16664 else
16665 cat > conftest.$ac_ext <<EOF
16666 #line 16667 "configure"
16667 #include "confdefs.h"
16668 #include <sys/types.h>
16669 #if STDC_HEADERS
16670 #include <stdlib.h>
16671 #include <stddef.h>
16672 #endif
16673 EOF
16674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16675 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16676 rm -rf conftest*
16677 ac_cv_type_pid_t=yes
16678 else
16679 rm -rf conftest*
16680 ac_cv_type_pid_t=no
16681 fi
16682 rm -f conftest*
16683
16684 fi
16685 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16686 if test $ac_cv_type_pid_t = no; then
16687 cat >> confdefs.h <<\EOF
16688 #define pid_t int
16689 EOF
16690
16691 fi
16692
16693 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16694 echo "configure:16695: checking for size_t" >&5
16695 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16696 echo $ac_n "(cached) $ac_c" 1>&6
16697 else
16698 cat > conftest.$ac_ext <<EOF
16699 #line 16700 "configure"
16700 #include "confdefs.h"
16701 #include <sys/types.h>
16702 #if STDC_HEADERS
16703 #include <stdlib.h>
16704 #include <stddef.h>
16705 #endif
16706 EOF
16707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16708 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16709 rm -rf conftest*
16710 ac_cv_type_size_t=yes
16711 else
16712 rm -rf conftest*
16713 ac_cv_type_size_t=no
16714 fi
16715 rm -f conftest*
16716
16717 fi
16718 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16719 if test $ac_cv_type_size_t = no; then
16720 cat >> confdefs.h <<\EOF
16721 #define size_t unsigned
16722 EOF
16723
16724 fi
16725
16726 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16727 echo "configure:16728: checking for uid_t in sys/types.h" >&5
16728 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16729 echo $ac_n "(cached) $ac_c" 1>&6
16730 else
16731 cat > conftest.$ac_ext <<EOF
16732 #line 16733 "configure"
16733 #include "confdefs.h"
16734 #include <sys/types.h>
16735 EOF
16736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16737 egrep "uid_t" >/dev/null 2>&1; then
16738 rm -rf conftest*
16739 ac_cv_type_uid_t=yes
16740 else
16741 rm -rf conftest*
16742 ac_cv_type_uid_t=no
16743 fi
16744 rm -f conftest*
16745
16746 fi
16747
16748 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16749 if test $ac_cv_type_uid_t = no; then
16750 cat >> confdefs.h <<\EOF
16751 #define uid_t int
16752 EOF
16753
16754 cat >> confdefs.h <<\EOF
16755 #define gid_t int
16756 EOF
16757
16758 fi
16759
16760
16761
16762 ac_ext=C
16763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16764 ac_cpp='$CXXCPP $CPPFLAGS'
16765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16767 cross_compiling=$ac_cv_prog_cxx_cross
16768
16769 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16770 echo "configure:16771: checking if size_t is unsigned int" >&5
16771 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16772 echo $ac_n "(cached) $ac_c" 1>&6
16773 else
16774 cat > conftest.$ac_ext <<EOF
16775 #line 16776 "configure"
16776 #include "confdefs.h"
16777 #include <stddef.h>
16778 int main() {
16779
16780 return 0; }
16781
16782 struct Foo { void foo(size_t); void foo(unsigned int); };
16783
16784 int bar() {
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 wx_cv_size_t_is_uint=no
16791 else
16792 echo "configure: failed program was:" >&5
16793 cat conftest.$ac_ext >&5
16794 rm -rf conftest*
16795 wx_cv_size_t_is_uint=yes
16796
16797 fi
16798 rm -f conftest*
16799
16800 fi
16801
16802 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16803
16804 if test "$wx_cv_size_t_is_uint" = "yes"; then
16805 cat >> confdefs.h <<\EOF
16806 #define wxSIZE_T_IS_UINT 1
16807 EOF
16808
16809 else
16810 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16811 echo "configure:16812: checking if size_t is unsigned long" >&5
16812 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16813 echo $ac_n "(cached) $ac_c" 1>&6
16814 else
16815 cat > conftest.$ac_ext <<EOF
16816 #line 16817 "configure"
16817 #include "confdefs.h"
16818 #include <stddef.h>
16819 int main() {
16820
16821 return 0; }
16822
16823 struct Foo { void foo(size_t); void foo(unsigned long); };
16824
16825 int bar() {
16826
16827 ; return 0; }
16828 EOF
16829 if { (eval echo configure:16830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16830 rm -rf conftest*
16831 wx_cv_size_t_is_ulong=no
16832 else
16833 echo "configure: failed program was:" >&5
16834 cat conftest.$ac_ext >&5
16835 rm -rf conftest*
16836 wx_cv_size_t_is_ulong=yes
16837
16838 fi
16839 rm -f conftest*
16840
16841 fi
16842
16843 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16844
16845 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16846 cat >> confdefs.h <<\EOF
16847 #define wxSIZE_T_IS_ULONG 1
16848 EOF
16849
16850 fi
16851 fi
16852
16853 ac_ext=c
16854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16855 ac_cpp='$CPP $CPPFLAGS'
16856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16858 cross_compiling=$ac_cv_prog_cc_cross
16859
16860
16861
16862 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16863 echo "configure:16864: checking for pw_gecos in struct passwd" >&5
16864 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16865 echo $ac_n "(cached) $ac_c" 1>&6
16866 else
16867
16868 cat > conftest.$ac_ext <<EOF
16869 #line 16870 "configure"
16870 #include "confdefs.h"
16871 #include <pwd.h>
16872 int main() {
16873
16874 char *p;
16875 struct passwd *pw;
16876 p = pw->pw_gecos;
16877
16878 ; return 0; }
16879 EOF
16880 if { (eval echo configure:16881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16881 rm -rf conftest*
16882
16883 wx_cv_struct_pw_gecos=yes
16884
16885 else
16886 echo "configure: failed program was:" >&5
16887 cat conftest.$ac_ext >&5
16888 rm -rf conftest*
16889
16890 wx_cv_struct_pw_gecos=no
16891
16892
16893 fi
16894 rm -f conftest*
16895
16896
16897 fi
16898
16899 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16900
16901 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16902 cat >> confdefs.h <<\EOF
16903 #define HAVE_PW_GECOS 1
16904 EOF
16905
16906 fi
16907
16908
16909 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16910 cat >> confdefs.h <<\EOF
16911 #define wxUSE_WCHAR_T 1
16912 EOF
16913
16914
16915 WCSLEN_FOUND=0
16916 WCHAR_LINK=
16917 for ac_func in wcslen
16918 do
16919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16920 echo "configure:16921: checking for $ac_func" >&5
16921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16924 cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16927 /* System header to define __stub macros and hopefully few prototypes,
16928 which can conflict with char $ac_func(); below. */
16929 #include <assert.h>
16930 /* Override any gcc2 internal prototype to avoid an error. */
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16933 char $ac_func();
16934
16935 int main() {
16936
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16941 choke me
16942 #else
16943 $ac_func();
16944 #endif
16945
16946 ; return 0; }
16947 EOF
16948 if { (eval echo configure:16949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16949 rm -rf conftest*
16950 eval "ac_cv_func_$ac_func=yes"
16951 else
16952 echo "configure: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16954 rm -rf conftest*
16955 eval "ac_cv_func_$ac_func=no"
16956 fi
16957 rm -f conftest*
16958 fi
16959
16960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16961 echo "$ac_t""yes" 1>&6
16962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16963 cat >> confdefs.h <<EOF
16964 #define $ac_tr_func 1
16965 EOF
16966 WCSLEN_FOUND=1
16967 else
16968 echo "$ac_t""no" 1>&6
16969 fi
16970 done
16971
16972
16973 if test "$WCSLEN_FOUND" = 0; then
16974 if test "$TOOLKIT" = "MSW"; then
16975 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16976 echo "configure:16977: checking for wcslen in -lmsvcrt" >&5
16977 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16979 echo $ac_n "(cached) $ac_c" 1>&6
16980 else
16981 ac_save_LIBS="$LIBS"
16982 LIBS="-lmsvcrt $LIBS"
16983 cat > conftest.$ac_ext <<EOF
16984 #line 16985 "configure"
16985 #include "confdefs.h"
16986 /* Override any gcc2 internal prototype to avoid an error. */
16987 /* We use char because int might match the return type of a gcc2
16988 builtin and then its argument prototype would still apply. */
16989 char wcslen();
16990
16991 int main() {
16992 wcslen()
16993 ; return 0; }
16994 EOF
16995 if { (eval echo configure:16996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16996 rm -rf conftest*
16997 eval "ac_cv_lib_$ac_lib_var=yes"
16998 else
16999 echo "configure: failed program was:" >&5
17000 cat conftest.$ac_ext >&5
17001 rm -rf conftest*
17002 eval "ac_cv_lib_$ac_lib_var=no"
17003 fi
17004 rm -f conftest*
17005 LIBS="$ac_save_LIBS"
17006
17007 fi
17008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17009 echo "$ac_t""yes" 1>&6
17010 WCHAR_OK=1
17011 else
17012 echo "$ac_t""no" 1>&6
17013 fi
17014
17015 else
17016 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17017 echo "configure:17018: checking for wcslen in -lw" >&5
17018 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17020 echo $ac_n "(cached) $ac_c" 1>&6
17021 else
17022 ac_save_LIBS="$LIBS"
17023 LIBS="-lw $LIBS"
17024 cat > conftest.$ac_ext <<EOF
17025 #line 17026 "configure"
17026 #include "confdefs.h"
17027 /* Override any gcc2 internal prototype to avoid an error. */
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17030 char wcslen();
17031
17032 int main() {
17033 wcslen()
17034 ; return 0; }
17035 EOF
17036 if { (eval echo configure:17037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17037 rm -rf conftest*
17038 eval "ac_cv_lib_$ac_lib_var=yes"
17039 else
17040 echo "configure: failed program was:" >&5
17041 cat conftest.$ac_ext >&5
17042 rm -rf conftest*
17043 eval "ac_cv_lib_$ac_lib_var=no"
17044 fi
17045 rm -f conftest*
17046 LIBS="$ac_save_LIBS"
17047
17048 fi
17049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17050 echo "$ac_t""yes" 1>&6
17051
17052 WCHAR_LINK=" -lw"
17053 WCSLEN_FOUND=1
17054
17055 else
17056 echo "$ac_t""no" 1>&6
17057 fi
17058
17059 fi
17060 fi
17061
17062 if test "$WCSLEN_FOUND" = 1; then
17063 cat >> confdefs.h <<\EOF
17064 #define HAVE_WCSLEN 1
17065 EOF
17066
17067 fi
17068
17069 for ac_func in wcsrtombs
17070 do
17071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17072 echo "configure:17073: checking for $ac_func" >&5
17073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17074 echo $ac_n "(cached) $ac_c" 1>&6
17075 else
17076 cat > conftest.$ac_ext <<EOF
17077 #line 17078 "configure"
17078 #include "confdefs.h"
17079 /* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func(); below. */
17081 #include <assert.h>
17082 /* Override any gcc2 internal prototype to avoid an error. */
17083 /* We use char because int might match the return type of a gcc2
17084 builtin and then its argument prototype would still apply. */
17085 char $ac_func();
17086
17087 int main() {
17088
17089 /* The GNU C library defines this for functions which it implements
17090 to always fail with ENOSYS. Some functions are actually named
17091 something starting with __ and the normal name is an alias. */
17092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17093 choke me
17094 #else
17095 $ac_func();
17096 #endif
17097
17098 ; return 0; }
17099 EOF
17100 if { (eval echo configure:17101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17101 rm -rf conftest*
17102 eval "ac_cv_func_$ac_func=yes"
17103 else
17104 echo "configure: failed program was:" >&5
17105 cat conftest.$ac_ext >&5
17106 rm -rf conftest*
17107 eval "ac_cv_func_$ac_func=no"
17108 fi
17109 rm -f conftest*
17110 fi
17111
17112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17113 echo "$ac_t""yes" 1>&6
17114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17115 cat >> confdefs.h <<EOF
17116 #define $ac_tr_func 1
17117 EOF
17118
17119 else
17120 echo "$ac_t""no" 1>&6
17121 fi
17122 done
17123
17124 else
17125 echo "configure: warning: Wide character support is unavailable" 1>&2
17126 fi
17127
17128
17129 ac_ext=C
17130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17131 ac_cpp='$CXXCPP $CPPFLAGS'
17132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17134 cross_compiling=$ac_cv_prog_cxx_cross
17135
17136
17137 for ac_func in vsnprintf
17138 do
17139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17140 echo "configure:17141: checking for $ac_func" >&5
17141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17142 echo $ac_n "(cached) $ac_c" 1>&6
17143 else
17144 cat > conftest.$ac_ext <<EOF
17145 #line 17146 "configure"
17146 #include "confdefs.h"
17147 /* System header to define __stub macros and hopefully few prototypes,
17148 which can conflict with char $ac_func(); below. */
17149 #include <assert.h>
17150 /* Override any gcc2 internal prototype to avoid an error. */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 /* We use char because int might match the return type of a gcc2
17155 builtin and then its argument prototype would still apply. */
17156 char $ac_func();
17157
17158 int main() {
17159
17160 /* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17164 choke me
17165 #else
17166 $ac_func();
17167 #endif
17168
17169 ; return 0; }
17170 EOF
17171 if { (eval echo configure:17172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17172 rm -rf conftest*
17173 eval "ac_cv_func_$ac_func=yes"
17174 else
17175 echo "configure: failed program was:" >&5
17176 cat conftest.$ac_ext >&5
17177 rm -rf conftest*
17178 eval "ac_cv_func_$ac_func=no"
17179 fi
17180 rm -f conftest*
17181 fi
17182
17183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17184 echo "$ac_t""yes" 1>&6
17185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17186 cat >> confdefs.h <<EOF
17187 #define $ac_tr_func 1
17188 EOF
17189
17190 else
17191 echo "$ac_t""no" 1>&6
17192 fi
17193 done
17194
17195
17196 if test "$ac_cv_func_vsnprintf" = "yes"; then
17197 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17198 echo "configure:17199: checking for vsnprintf declaration" >&5
17199 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17200 echo $ac_n "(cached) $ac_c" 1>&6
17201 else
17202
17203 cat > conftest.$ac_ext <<EOF
17204 #line 17205 "configure"
17205 #include "confdefs.h"
17206
17207 #include <stdio.h>
17208 #include <stdarg.h>
17209
17210 int main() {
17211
17212 char *buf;
17213 va_list ap;
17214 vsnprintf(buf, 10u, "%s", ap);
17215
17216 ; return 0; }
17217 EOF
17218 if { (eval echo configure:17219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17219 rm -rf conftest*
17220 wx_cv_func_vsnprintf_decl=yes
17221 else
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17224 rm -rf conftest*
17225 wx_cv_func_vsnprintf_decl=no
17226
17227 fi
17228 rm -f conftest*
17229
17230
17231 fi
17232
17233 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17234
17235 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17236 cat >> confdefs.h <<\EOF
17237 #define HAVE_VSNPRINTF_DECL 1
17238 EOF
17239
17240 fi
17241 fi
17242
17243 if test "$wxUSE_UNICODE" = yes; then
17244 for ac_func in fputwc wprintf vswprintf
17245 do
17246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17247 echo "configure:17248: checking for $ac_func" >&5
17248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17249 echo $ac_n "(cached) $ac_c" 1>&6
17250 else
17251 cat > conftest.$ac_ext <<EOF
17252 #line 17253 "configure"
17253 #include "confdefs.h"
17254 /* System header to define __stub macros and hopefully few prototypes,
17255 which can conflict with char $ac_func(); below. */
17256 #include <assert.h>
17257 /* Override any gcc2 internal prototype to avoid an error. */
17258 #ifdef __cplusplus
17259 extern "C"
17260 #endif
17261 /* We use char because int might match the return type of a gcc2
17262 builtin and then its argument prototype would still apply. */
17263 char $ac_func();
17264
17265 int main() {
17266
17267 /* The GNU C library defines this for functions which it implements
17268 to always fail with ENOSYS. Some functions are actually named
17269 something starting with __ and the normal name is an alias. */
17270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17271 choke me
17272 #else
17273 $ac_func();
17274 #endif
17275
17276 ; return 0; }
17277 EOF
17278 if { (eval echo configure:17279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17279 rm -rf conftest*
17280 eval "ac_cv_func_$ac_func=yes"
17281 else
17282 echo "configure: failed program was:" >&5
17283 cat conftest.$ac_ext >&5
17284 rm -rf conftest*
17285 eval "ac_cv_func_$ac_func=no"
17286 fi
17287 rm -f conftest*
17288 fi
17289
17290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17291 echo "$ac_t""yes" 1>&6
17292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17293 cat >> confdefs.h <<EOF
17294 #define $ac_tr_func 1
17295 EOF
17296
17297 else
17298 echo "$ac_t""no" 1>&6
17299 fi
17300 done
17301
17302
17303 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17304 echo "configure:17305: checking for _vsnwprintf" >&5
17305 cat > conftest.$ac_ext <<EOF
17306 #line 17307 "configure"
17307 #include "confdefs.h"
17308 #include <wchar.h>
17309 int main() {
17310 &_vsnwprintf;
17311 ; return 0; }
17312 EOF
17313 if { (eval echo configure:17314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17314 rm -rf conftest*
17315 echo "$ac_t""yes" 1>&6
17316 cat >> confdefs.h <<\EOF
17317 #define HAVE__VSNWPRINTF 1
17318 EOF
17319
17320 else
17321 echo "configure: failed program was:" >&5
17322 cat conftest.$ac_ext >&5
17323 rm -rf conftest*
17324 echo "$ac_t""no" 1>&6
17325 fi
17326 rm -f conftest*;
17327 fi
17328
17329 ac_ext=c
17330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17331 ac_cpp='$CPP $CPPFLAGS'
17332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17334 cross_compiling=$ac_cv_prog_cc_cross
17335
17336
17337
17338
17339 if test "$TOOLKIT" != "MSW"; then
17340
17341
17342
17343 ac_ext=C
17344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17345 ac_cpp='$CXXCPP $CPPFLAGS'
17346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17348 cross_compiling=$ac_cv_prog_cxx_cross
17349
17350
17351
17352 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17353 if test "${with_libiconv_prefix+set}" = set; then
17354 withval="$with_libiconv_prefix"
17355
17356 for dir in `echo "$withval" | tr : ' '`; do
17357 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17358 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17359 done
17360
17361 fi
17362
17363
17364 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17365 echo "configure:17366: checking for iconv" >&5
17366 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17368 else
17369
17370 am_cv_func_iconv="no, consider installing GNU libiconv"
17371 am_cv_lib_iconv=no
17372 cat > conftest.$ac_ext <<EOF
17373 #line 17374 "configure"
17374 #include "confdefs.h"
17375 #include <stdlib.h>
17376 #include <iconv.h>
17377 int main() {
17378 iconv_t cd = iconv_open("","");
17379 iconv(cd,NULL,NULL,NULL,NULL);
17380 iconv_close(cd);
17381 ; return 0; }
17382 EOF
17383 if { (eval echo configure:17384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17384 rm -rf conftest*
17385 am_cv_func_iconv=yes
17386 else
17387 echo "configure: failed program was:" >&5
17388 cat conftest.$ac_ext >&5
17389 fi
17390 rm -f conftest*
17391 if test "$am_cv_func_iconv" != yes; then
17392 am_save_LIBS="$LIBS"
17393 LIBS="$LIBS -liconv"
17394 cat > conftest.$ac_ext <<EOF
17395 #line 17396 "configure"
17396 #include "confdefs.h"
17397 #include <stdlib.h>
17398 #include <iconv.h>
17399 int main() {
17400 iconv_t cd = iconv_open("","");
17401 iconv(cd,NULL,NULL,NULL,NULL);
17402 iconv_close(cd);
17403 ; return 0; }
17404 EOF
17405 if { (eval echo configure:17406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17406 rm -rf conftest*
17407 am_cv_lib_iconv=yes
17408 am_cv_func_iconv=yes
17409 else
17410 echo "configure: failed program was:" >&5
17411 cat conftest.$ac_ext >&5
17412 fi
17413 rm -f conftest*
17414 LIBS="$am_save_LIBS"
17415 fi
17416
17417 fi
17418
17419 echo "$ac_t""$am_cv_func_iconv" 1>&6
17420 if test "$am_cv_func_iconv" = yes; then
17421 cat >> confdefs.h <<\EOF
17422 #define HAVE_ICONV 1
17423 EOF
17424
17425 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17426 echo "configure:17427: checking if iconv needs const" >&5
17427 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17428 echo $ac_n "(cached) $ac_c" 1>&6
17429 else
17430 cat > conftest.$ac_ext <<EOF
17431 #line 17432 "configure"
17432 #include "confdefs.h"
17433
17434 #include <stdlib.h>
17435 #include <iconv.h>
17436 extern
17437 #ifdef __cplusplus
17438 "C"
17439 #endif
17440 #if defined(__STDC__) || defined(__cplusplus)
17441 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17442 #else
17443 size_t iconv();
17444 #endif
17445
17446 int main() {
17447
17448 ; return 0; }
17449 EOF
17450 if { (eval echo configure:17451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17451 rm -rf conftest*
17452 wx_cv_func_iconv_const="no"
17453 else
17454 echo "configure: failed program was:" >&5
17455 cat conftest.$ac_ext >&5
17456 rm -rf conftest*
17457 wx_cv_func_iconv_const="yes"
17458
17459 fi
17460 rm -f conftest*
17461
17462 fi
17463
17464 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17465
17466 iconv_const=
17467 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17468 iconv_const="const"
17469 fi
17470
17471 cat >> confdefs.h <<EOF
17472 #define ICONV_CONST $iconv_const
17473 EOF
17474
17475 fi
17476 LIBICONV=
17477 if test "$am_cv_lib_iconv" = yes; then
17478 LIBICONV="-liconv"
17479 fi
17480
17481
17482 LIBS="$LIBICONV $LIBS"
17483 ac_ext=c
17484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17485 ac_cpp='$CPP $CPPFLAGS'
17486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17488 cross_compiling=$ac_cv_prog_cc_cross
17489
17490
17491 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17492 for ac_func in sigaction
17493 do
17494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17495 echo "configure:17496: checking for $ac_func" >&5
17496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17497 echo $ac_n "(cached) $ac_c" 1>&6
17498 else
17499 cat > conftest.$ac_ext <<EOF
17500 #line 17501 "configure"
17501 #include "confdefs.h"
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func(); below. */
17504 #include <assert.h>
17505 /* Override any gcc2 internal prototype to avoid an error. */
17506 /* We use char because int might match the return type of a gcc2
17507 builtin and then its argument prototype would still apply. */
17508 char $ac_func();
17509
17510 int main() {
17511
17512 /* The GNU C library defines this for functions which it implements
17513 to always fail with ENOSYS. Some functions are actually named
17514 something starting with __ and the normal name is an alias. */
17515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17516 choke me
17517 #else
17518 $ac_func();
17519 #endif
17520
17521 ; return 0; }
17522 EOF
17523 if { (eval echo configure:17524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17524 rm -rf conftest*
17525 eval "ac_cv_func_$ac_func=yes"
17526 else
17527 echo "configure: failed program was:" >&5
17528 cat conftest.$ac_ext >&5
17529 rm -rf conftest*
17530 eval "ac_cv_func_$ac_func=no"
17531 fi
17532 rm -f conftest*
17533 fi
17534
17535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17536 echo "$ac_t""yes" 1>&6
17537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17538 cat >> confdefs.h <<EOF
17539 #define $ac_tr_func 1
17540 EOF
17541
17542 else
17543 echo "$ac_t""no" 1>&6
17544 fi
17545 done
17546
17547
17548 if test "$ac_cv_func_sigaction" = "no"; then
17549 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17550 wxUSE_ON_FATAL_EXCEPTION=no
17551 fi
17552
17553 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17554
17555 ac_ext=C
17556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17557 ac_cpp='$CXXCPP $CPPFLAGS'
17558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17560 cross_compiling=$ac_cv_prog_cxx_cross
17561
17562
17563 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17564 echo "configure:17565: checking for sa_handler type" >&5
17565 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17566 echo $ac_n "(cached) $ac_c" 1>&6
17567 else
17568
17569 cat > conftest.$ac_ext <<EOF
17570 #line 17571 "configure"
17571 #include "confdefs.h"
17572 #include <signal.h>
17573 int main() {
17574
17575 extern void testSigHandler(int);
17576
17577 struct sigaction sa;
17578 sa.sa_handler = testSigHandler;
17579
17580 ; return 0; }
17581 EOF
17582 if { (eval echo configure:17583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17583 rm -rf conftest*
17584
17585 wx_cv_type_sa_handler=int
17586
17587 else
17588 echo "configure: failed program was:" >&5
17589 cat conftest.$ac_ext >&5
17590 rm -rf conftest*
17591
17592 wx_cv_type_sa_handler=void
17593
17594 fi
17595 rm -f conftest*
17596
17597 fi
17598
17599 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17600
17601 ac_ext=c
17602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17603 ac_cpp='$CPP $CPPFLAGS'
17604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17605 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17606 cross_compiling=$ac_cv_prog_cc_cross
17607
17608
17609 cat >> confdefs.h <<EOF
17610 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17611 EOF
17612
17613 fi
17614 fi
17615
17616 for ac_func in mkstemp mktemp
17617 do
17618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17619 echo "configure:17620: checking for $ac_func" >&5
17620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17621 echo $ac_n "(cached) $ac_c" 1>&6
17622 else
17623 cat > conftest.$ac_ext <<EOF
17624 #line 17625 "configure"
17625 #include "confdefs.h"
17626 /* System header to define __stub macros and hopefully few prototypes,
17627 which can conflict with char $ac_func(); below. */
17628 #include <assert.h>
17629 /* Override any gcc2 internal prototype to avoid an error. */
17630 /* We use char because int might match the return type of a gcc2
17631 builtin and then its argument prototype would still apply. */
17632 char $ac_func();
17633
17634 int main() {
17635
17636 /* The GNU C library defines this for functions which it implements
17637 to always fail with ENOSYS. Some functions are actually named
17638 something starting with __ and the normal name is an alias. */
17639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17640 choke me
17641 #else
17642 $ac_func();
17643 #endif
17644
17645 ; return 0; }
17646 EOF
17647 if { (eval echo configure:17648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17648 rm -rf conftest*
17649 eval "ac_cv_func_$ac_func=yes"
17650 else
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17653 rm -rf conftest*
17654 eval "ac_cv_func_$ac_func=no"
17655 fi
17656 rm -f conftest*
17657 fi
17658
17659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17660 echo "$ac_t""yes" 1>&6
17661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17662 cat >> confdefs.h <<EOF
17663 #define $ac_tr_func 1
17664 EOF
17665 break
17666 else
17667 echo "$ac_t""no" 1>&6
17668 fi
17669 done
17670
17671
17672 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17673 echo "configure:17674: checking for statfs" >&5
17674 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676 else
17677 cat > conftest.$ac_ext <<EOF
17678 #line 17679 "configure"
17679 #include "confdefs.h"
17680
17681 #if defined(__BSD__)
17682 #include <sys/param.h>
17683 #include <sys/mount.h>
17684 #else
17685 #include <sys/vfs.h>
17686 #endif
17687
17688 int main() {
17689
17690 long l;
17691 struct statfs fs;
17692 statfs("/", &fs);
17693 l = fs.f_bsize;
17694 l += fs.f_blocks;
17695 l += fs.f_bavail;
17696
17697 ; return 0; }
17698 EOF
17699 if { (eval echo configure:17700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17700 rm -rf conftest*
17701
17702 wx_cv_func_statfs=yes
17703
17704 else
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17707 rm -rf conftest*
17708
17709 wx_cv_func_statfs=no
17710
17711
17712 fi
17713 rm -f conftest*
17714
17715 fi
17716
17717 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17718
17719 if test "$wx_cv_func_statfs" = "yes"; then
17720 wx_cv_type_statvfs_t="struct statfs"
17721 cat >> confdefs.h <<\EOF
17722 #define HAVE_STATFS 1
17723 EOF
17724
17725 else
17726 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17727 echo "configure:17728: checking for statvfs" >&5
17728 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17729 echo $ac_n "(cached) $ac_c" 1>&6
17730 else
17731 cat > conftest.$ac_ext <<EOF
17732 #line 17733 "configure"
17733 #include "confdefs.h"
17734
17735 #include <stddef.h>
17736 #include <sys/statvfs.h>
17737
17738 int main() {
17739
17740 statvfs("/", NULL);
17741
17742 ; return 0; }
17743 EOF
17744 if { (eval echo configure:17745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17745 rm -rf conftest*
17746 wx_cv_func_statvfs=yes
17747 else
17748 echo "configure: failed program was:" >&5
17749 cat conftest.$ac_ext >&5
17750 rm -rf conftest*
17751 wx_cv_func_statvfs=no
17752
17753 fi
17754 rm -f conftest*
17755
17756 fi
17757
17758 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17759
17760 if test "$wx_cv_func_statvfs" = "yes"; then
17761
17762 ac_ext=C
17763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17764 ac_cpp='$CXXCPP $CPPFLAGS'
17765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17767 cross_compiling=$ac_cv_prog_cxx_cross
17768
17769
17770 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17771 echo "configure:17772: checking for statvfs argument type" >&5
17772 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17773 echo $ac_n "(cached) $ac_c" 1>&6
17774 else
17775 cat > conftest.$ac_ext <<EOF
17776 #line 17777 "configure"
17777 #include "confdefs.h"
17778
17779 #include <sys/statvfs.h>
17780
17781 int main() {
17782
17783 long l;
17784 statvfs_t fs;
17785 statvfs("/", &fs);
17786 l = fs.f_bsize;
17787 l += fs.f_blocks;
17788 l += fs.f_bavail;
17789
17790 ; return 0; }
17791 EOF
17792 if { (eval echo configure:17793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17793 rm -rf conftest*
17794 wx_cv_type_statvfs_t=statvfs_t
17795 else
17796 echo "configure: failed program was:" >&5
17797 cat conftest.$ac_ext >&5
17798 rm -rf conftest*
17799
17800 cat > conftest.$ac_ext <<EOF
17801 #line 17802 "configure"
17802 #include "confdefs.h"
17803
17804 #include <sys/statvfs.h>
17805
17806 int main() {
17807
17808 long l;
17809 struct statvfs fs;
17810 statvfs("/", &fs);
17811 l = fs.f_bsize;
17812 l += fs.f_blocks;
17813 l += fs.f_bavail;
17814
17815 ; return 0; }
17816 EOF
17817 if { (eval echo configure:17818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17818 rm -rf conftest*
17819 wx_cv_type_statvfs_t="struct statvfs"
17820 else
17821 echo "configure: failed program was:" >&5
17822 cat conftest.$ac_ext >&5
17823 rm -rf conftest*
17824 wx_cv_type_statvfs_t="unknown"
17825
17826 fi
17827 rm -f conftest*
17828
17829
17830 fi
17831 rm -f conftest*
17832
17833 fi
17834
17835 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17836
17837 ac_ext=c
17838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17839 ac_cpp='$CPP $CPPFLAGS'
17840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17842 cross_compiling=$ac_cv_prog_cc_cross
17843
17844
17845 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17846 cat >> confdefs.h <<\EOF
17847 #define HAVE_STATVFS 1
17848 EOF
17849
17850 fi
17851 else
17852 wx_cv_type_statvfs_t="unknown"
17853 fi
17854 fi
17855
17856 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17857 cat >> confdefs.h <<EOF
17858 #define WX_STATFS_T $wx_cv_type_statvfs_t
17859 EOF
17860
17861 else
17862 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17863 fi
17864
17865 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17866 for ac_func in fcntl flock
17867 do
17868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17869 echo "configure:17870: checking for $ac_func" >&5
17870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17871 echo $ac_n "(cached) $ac_c" 1>&6
17872 else
17873 cat > conftest.$ac_ext <<EOF
17874 #line 17875 "configure"
17875 #include "confdefs.h"
17876 /* System header to define __stub macros and hopefully few prototypes,
17877 which can conflict with char $ac_func(); below. */
17878 #include <assert.h>
17879 /* Override any gcc2 internal prototype to avoid an error. */
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882 char $ac_func();
17883
17884 int main() {
17885
17886 /* The GNU C library defines this for functions which it implements
17887 to always fail with ENOSYS. Some functions are actually named
17888 something starting with __ and the normal name is an alias. */
17889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17890 choke me
17891 #else
17892 $ac_func();
17893 #endif
17894
17895 ; return 0; }
17896 EOF
17897 if { (eval echo configure:17898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17898 rm -rf conftest*
17899 eval "ac_cv_func_$ac_func=yes"
17900 else
17901 echo "configure: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17903 rm -rf conftest*
17904 eval "ac_cv_func_$ac_func=no"
17905 fi
17906 rm -f conftest*
17907 fi
17908
17909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17910 echo "$ac_t""yes" 1>&6
17911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17912 cat >> confdefs.h <<EOF
17913 #define $ac_tr_func 1
17914 EOF
17915 break
17916 else
17917 echo "$ac_t""no" 1>&6
17918 fi
17919 done
17920
17921
17922 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17923 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17924 wxUSE_SNGLINST_CHECKER=no
17925 fi
17926 fi
17927
17928 for ac_func in timegm
17929 do
17930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17931 echo "configure:17932: checking for $ac_func" >&5
17932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17933 echo $ac_n "(cached) $ac_c" 1>&6
17934 else
17935 cat > conftest.$ac_ext <<EOF
17936 #line 17937 "configure"
17937 #include "confdefs.h"
17938 /* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func(); below. */
17940 #include <assert.h>
17941 /* Override any gcc2 internal prototype to avoid an error. */
17942 /* We use char because int might match the return type of a gcc2
17943 builtin and then its argument prototype would still apply. */
17944 char $ac_func();
17945
17946 int main() {
17947
17948 /* The GNU C library defines this for functions which it implements
17949 to always fail with ENOSYS. Some functions are actually named
17950 something starting with __ and the normal name is an alias. */
17951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17952 choke me
17953 #else
17954 $ac_func();
17955 #endif
17956
17957 ; return 0; }
17958 EOF
17959 if { (eval echo configure:17960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17960 rm -rf conftest*
17961 eval "ac_cv_func_$ac_func=yes"
17962 else
17963 echo "configure: failed program was:" >&5
17964 cat conftest.$ac_ext >&5
17965 rm -rf conftest*
17966 eval "ac_cv_func_$ac_func=no"
17967 fi
17968 rm -f conftest*
17969 fi
17970
17971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17972 echo "$ac_t""yes" 1>&6
17973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17974 cat >> confdefs.h <<EOF
17975 #define $ac_tr_func 1
17976 EOF
17977
17978 else
17979 echo "$ac_t""no" 1>&6
17980 fi
17981 done
17982
17983
17984 for ac_func in putenv setenv
17985 do
17986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17987 echo "configure:17988: checking for $ac_func" >&5
17988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17989 echo $ac_n "(cached) $ac_c" 1>&6
17990 else
17991 cat > conftest.$ac_ext <<EOF
17992 #line 17993 "configure"
17993 #include "confdefs.h"
17994 /* System header to define __stub macros and hopefully few prototypes,
17995 which can conflict with char $ac_func(); below. */
17996 #include <assert.h>
17997 /* Override any gcc2 internal prototype to avoid an error. */
17998 /* We use char because int might match the return type of a gcc2
17999 builtin and then its argument prototype would still apply. */
18000 char $ac_func();
18001
18002 int main() {
18003
18004 /* The GNU C library defines this for functions which it implements
18005 to always fail with ENOSYS. Some functions are actually named
18006 something starting with __ and the normal name is an alias. */
18007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18008 choke me
18009 #else
18010 $ac_func();
18011 #endif
18012
18013 ; return 0; }
18014 EOF
18015 if { (eval echo configure:18016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18016 rm -rf conftest*
18017 eval "ac_cv_func_$ac_func=yes"
18018 else
18019 echo "configure: failed program was:" >&5
18020 cat conftest.$ac_ext >&5
18021 rm -rf conftest*
18022 eval "ac_cv_func_$ac_func=no"
18023 fi
18024 rm -f conftest*
18025 fi
18026
18027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18028 echo "$ac_t""yes" 1>&6
18029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18030 cat >> confdefs.h <<EOF
18031 #define $ac_tr_func 1
18032 EOF
18033 break
18034 else
18035 echo "$ac_t""no" 1>&6
18036 fi
18037 done
18038
18039
18040 HAVE_SOME_SLEEP_FUNC=0
18041 if test "$USE_BEOS" = 1; then
18042 cat >> confdefs.h <<\EOF
18043 #define HAVE_SLEEP 1
18044 EOF
18045
18046 HAVE_SOME_SLEEP_FUNC=1
18047 fi
18048
18049 if test "$USE_DARWIN" = 1; then
18050 cat >> confdefs.h <<\EOF
18051 #define HAVE_USLEEP 1
18052 EOF
18053
18054 HAVE_SOME_SLEEP_FUNC=1
18055 fi
18056
18057 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18058 POSIX4_LINK=
18059 for ac_func in nanosleep
18060 do
18061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18062 echo "configure:18063: checking for $ac_func" >&5
18063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18064 echo $ac_n "(cached) $ac_c" 1>&6
18065 else
18066 cat > conftest.$ac_ext <<EOF
18067 #line 18068 "configure"
18068 #include "confdefs.h"
18069 /* System header to define __stub macros and hopefully few prototypes,
18070 which can conflict with char $ac_func(); below. */
18071 #include <assert.h>
18072 /* Override any gcc2 internal prototype to avoid an error. */
18073 /* We use char because int might match the return type of a gcc2
18074 builtin and then its argument prototype would still apply. */
18075 char $ac_func();
18076
18077 int main() {
18078
18079 /* The GNU C library defines this for functions which it implements
18080 to always fail with ENOSYS. Some functions are actually named
18081 something starting with __ and the normal name is an alias. */
18082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18083 choke me
18084 #else
18085 $ac_func();
18086 #endif
18087
18088 ; return 0; }
18089 EOF
18090 if { (eval echo configure:18091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18091 rm -rf conftest*
18092 eval "ac_cv_func_$ac_func=yes"
18093 else
18094 echo "configure: failed program was:" >&5
18095 cat conftest.$ac_ext >&5
18096 rm -rf conftest*
18097 eval "ac_cv_func_$ac_func=no"
18098 fi
18099 rm -f conftest*
18100 fi
18101
18102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18103 echo "$ac_t""yes" 1>&6
18104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18105 cat >> confdefs.h <<EOF
18106 #define $ac_tr_func 1
18107 EOF
18108 cat >> confdefs.h <<\EOF
18109 #define HAVE_NANOSLEEP 1
18110 EOF
18111
18112 else
18113 echo "$ac_t""no" 1>&6
18114 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18115 echo "configure:18116: checking for nanosleep in -lposix4" >&5
18116 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18118 echo $ac_n "(cached) $ac_c" 1>&6
18119 else
18120 ac_save_LIBS="$LIBS"
18121 LIBS="-lposix4 $LIBS"
18122 cat > conftest.$ac_ext <<EOF
18123 #line 18124 "configure"
18124 #include "confdefs.h"
18125 /* Override any gcc2 internal prototype to avoid an error. */
18126 /* We use char because int might match the return type of a gcc2
18127 builtin and then its argument prototype would still apply. */
18128 char nanosleep();
18129
18130 int main() {
18131 nanosleep()
18132 ; return 0; }
18133 EOF
18134 if { (eval echo configure:18135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18135 rm -rf conftest*
18136 eval "ac_cv_lib_$ac_lib_var=yes"
18137 else
18138 echo "configure: failed program was:" >&5
18139 cat conftest.$ac_ext >&5
18140 rm -rf conftest*
18141 eval "ac_cv_lib_$ac_lib_var=no"
18142 fi
18143 rm -f conftest*
18144 LIBS="$ac_save_LIBS"
18145
18146 fi
18147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18148 echo "$ac_t""yes" 1>&6
18149
18150 cat >> confdefs.h <<\EOF
18151 #define HAVE_NANOSLEEP 1
18152 EOF
18153
18154 POSIX4_LINK=" -lposix4"
18155
18156 else
18157 echo "$ac_t""no" 1>&6
18158
18159 for ac_func in usleep
18160 do
18161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18162 echo "configure:18163: checking for $ac_func" >&5
18163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18164 echo $ac_n "(cached) $ac_c" 1>&6
18165 else
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18169 /* System header to define __stub macros and hopefully few prototypes,
18170 which can conflict with char $ac_func(); below. */
18171 #include <assert.h>
18172 /* Override any gcc2 internal prototype to avoid an error. */
18173 /* We use char because int might match the return type of a gcc2
18174 builtin and then its argument prototype would still apply. */
18175 char $ac_func();
18176
18177 int main() {
18178
18179 /* The GNU C library defines this for functions which it implements
18180 to always fail with ENOSYS. Some functions are actually named
18181 something starting with __ and the normal name is an alias. */
18182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18183 choke me
18184 #else
18185 $ac_func();
18186 #endif
18187
18188 ; return 0; }
18189 EOF
18190 if { (eval echo configure:18191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18191 rm -rf conftest*
18192 eval "ac_cv_func_$ac_func=yes"
18193 else
18194 echo "configure: failed program was:" >&5
18195 cat conftest.$ac_ext >&5
18196 rm -rf conftest*
18197 eval "ac_cv_func_$ac_func=no"
18198 fi
18199 rm -f conftest*
18200 fi
18201
18202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18203 echo "$ac_t""yes" 1>&6
18204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18205 cat >> confdefs.h <<EOF
18206 #define $ac_tr_func 1
18207 EOF
18208 cat >> confdefs.h <<\EOF
18209 #define HAVE_USLEEP 1
18210 EOF
18211
18212 else
18213 echo "$ac_t""no" 1>&6
18214 echo "configure: warning: wxSleep() function will not work" 1>&2
18215
18216 fi
18217 done
18218
18219
18220
18221 fi
18222
18223
18224
18225 fi
18226 done
18227
18228 fi
18229
18230 for ac_func in uname gethostname
18231 do
18232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18233 echo "configure:18234: checking for $ac_func" >&5
18234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18235 echo $ac_n "(cached) $ac_c" 1>&6
18236 else
18237 cat > conftest.$ac_ext <<EOF
18238 #line 18239 "configure"
18239 #include "confdefs.h"
18240 /* System header to define __stub macros and hopefully few prototypes,
18241 which can conflict with char $ac_func(); below. */
18242 #include <assert.h>
18243 /* Override any gcc2 internal prototype to avoid an error. */
18244 /* We use char because int might match the return type of a gcc2
18245 builtin and then its argument prototype would still apply. */
18246 char $ac_func();
18247
18248 int main() {
18249
18250 /* The GNU C library defines this for functions which it implements
18251 to always fail with ENOSYS. Some functions are actually named
18252 something starting with __ and the normal name is an alias. */
18253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18254 choke me
18255 #else
18256 $ac_func();
18257 #endif
18258
18259 ; return 0; }
18260 EOF
18261 if { (eval echo configure:18262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18262 rm -rf conftest*
18263 eval "ac_cv_func_$ac_func=yes"
18264 else
18265 echo "configure: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18267 rm -rf conftest*
18268 eval "ac_cv_func_$ac_func=no"
18269 fi
18270 rm -f conftest*
18271 fi
18272
18273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18274 echo "$ac_t""yes" 1>&6
18275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18276 cat >> confdefs.h <<EOF
18277 #define $ac_tr_func 1
18278 EOF
18279 break
18280 else
18281 echo "$ac_t""no" 1>&6
18282 fi
18283 done
18284
18285
18286
18287 ac_ext=C
18288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18289 ac_cpp='$CXXCPP $CPPFLAGS'
18290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18292 cross_compiling=$ac_cv_prog_cxx_cross
18293
18294
18295 for ac_func in strtok_r
18296 do
18297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18298 echo "configure:18299: checking for $ac_func" >&5
18299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18300 echo $ac_n "(cached) $ac_c" 1>&6
18301 else
18302 cat > conftest.$ac_ext <<EOF
18303 #line 18304 "configure"
18304 #include "confdefs.h"
18305 /* System header to define __stub macros and hopefully few prototypes,
18306 which can conflict with char $ac_func(); below. */
18307 #include <assert.h>
18308 /* Override any gcc2 internal prototype to avoid an error. */
18309 #ifdef __cplusplus
18310 extern "C"
18311 #endif
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18314 char $ac_func();
18315
18316 int main() {
18317
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18322 choke me
18323 #else
18324 $ac_func();
18325 #endif
18326
18327 ; return 0; }
18328 EOF
18329 if { (eval echo configure:18330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18330 rm -rf conftest*
18331 eval "ac_cv_func_$ac_func=yes"
18332 else
18333 echo "configure: failed program was:" >&5
18334 cat conftest.$ac_ext >&5
18335 rm -rf conftest*
18336 eval "ac_cv_func_$ac_func=no"
18337 fi
18338 rm -f conftest*
18339 fi
18340
18341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18342 echo "$ac_t""yes" 1>&6
18343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18344 cat >> confdefs.h <<EOF
18345 #define $ac_tr_func 1
18346 EOF
18347
18348 else
18349 echo "$ac_t""no" 1>&6
18350 fi
18351 done
18352
18353
18354 ac_ext=c
18355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18356 ac_cpp='$CPP $CPPFLAGS'
18357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18359 cross_compiling=$ac_cv_prog_cc_cross
18360
18361
18362 INET_LINK=
18363 for ac_func in inet_addr
18364 do
18365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18366 echo "configure:18367: checking for $ac_func" >&5
18367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18368 echo $ac_n "(cached) $ac_c" 1>&6
18369 else
18370 cat > conftest.$ac_ext <<EOF
18371 #line 18372 "configure"
18372 #include "confdefs.h"
18373 /* System header to define __stub macros and hopefully few prototypes,
18374 which can conflict with char $ac_func(); below. */
18375 #include <assert.h>
18376 /* Override any gcc2 internal prototype to avoid an error. */
18377 /* We use char because int might match the return type of a gcc2
18378 builtin and then its argument prototype would still apply. */
18379 char $ac_func();
18380
18381 int main() {
18382
18383 /* The GNU C library defines this for functions which it implements
18384 to always fail with ENOSYS. Some functions are actually named
18385 something starting with __ and the normal name is an alias. */
18386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18387 choke me
18388 #else
18389 $ac_func();
18390 #endif
18391
18392 ; return 0; }
18393 EOF
18394 if { (eval echo configure:18395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18395 rm -rf conftest*
18396 eval "ac_cv_func_$ac_func=yes"
18397 else
18398 echo "configure: failed program was:" >&5
18399 cat conftest.$ac_ext >&5
18400 rm -rf conftest*
18401 eval "ac_cv_func_$ac_func=no"
18402 fi
18403 rm -f conftest*
18404 fi
18405
18406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18407 echo "$ac_t""yes" 1>&6
18408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18409 cat >> confdefs.h <<EOF
18410 #define $ac_tr_func 1
18411 EOF
18412 cat >> confdefs.h <<\EOF
18413 #define HAVE_INET_ADDR 1
18414 EOF
18415
18416 else
18417 echo "$ac_t""no" 1>&6
18418 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18419 echo "configure:18420: checking for inet_addr in -lnsl" >&5
18420 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18422 echo $ac_n "(cached) $ac_c" 1>&6
18423 else
18424 ac_save_LIBS="$LIBS"
18425 LIBS="-lnsl $LIBS"
18426 cat > conftest.$ac_ext <<EOF
18427 #line 18428 "configure"
18428 #include "confdefs.h"
18429 /* Override any gcc2 internal prototype to avoid an error. */
18430 /* We use char because int might match the return type of a gcc2
18431 builtin and then its argument prototype would still apply. */
18432 char inet_addr();
18433
18434 int main() {
18435 inet_addr()
18436 ; return 0; }
18437 EOF
18438 if { (eval echo configure:18439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18439 rm -rf conftest*
18440 eval "ac_cv_lib_$ac_lib_var=yes"
18441 else
18442 echo "configure: failed program was:" >&5
18443 cat conftest.$ac_ext >&5
18444 rm -rf conftest*
18445 eval "ac_cv_lib_$ac_lib_var=no"
18446 fi
18447 rm -f conftest*
18448 LIBS="$ac_save_LIBS"
18449
18450 fi
18451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18452 echo "$ac_t""yes" 1>&6
18453 INET_LINK="nsl"
18454 else
18455 echo "$ac_t""no" 1>&6
18456 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18457 echo "configure:18458: checking for inet_addr in -lresolv" >&5
18458 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18460 echo $ac_n "(cached) $ac_c" 1>&6
18461 else
18462 ac_save_LIBS="$LIBS"
18463 LIBS="-lresolv $LIBS"
18464 cat > conftest.$ac_ext <<EOF
18465 #line 18466 "configure"
18466 #include "confdefs.h"
18467 /* Override any gcc2 internal prototype to avoid an error. */
18468 /* We use char because int might match the return type of a gcc2
18469 builtin and then its argument prototype would still apply. */
18470 char inet_addr();
18471
18472 int main() {
18473 inet_addr()
18474 ; return 0; }
18475 EOF
18476 if { (eval echo configure:18477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18477 rm -rf conftest*
18478 eval "ac_cv_lib_$ac_lib_var=yes"
18479 else
18480 echo "configure: failed program was:" >&5
18481 cat conftest.$ac_ext >&5
18482 rm -rf conftest*
18483 eval "ac_cv_lib_$ac_lib_var=no"
18484 fi
18485 rm -f conftest*
18486 LIBS="$ac_save_LIBS"
18487
18488 fi
18489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18490 echo "$ac_t""yes" 1>&6
18491 INET_LINK="resolv"
18492 else
18493 echo "$ac_t""no" 1>&6
18494 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18495 echo "configure:18496: checking for inet_addr in -lsocket" >&5
18496 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18498 echo $ac_n "(cached) $ac_c" 1>&6
18499 else
18500 ac_save_LIBS="$LIBS"
18501 LIBS="-lsocket $LIBS"
18502 cat > conftest.$ac_ext <<EOF
18503 #line 18504 "configure"
18504 #include "confdefs.h"
18505 /* Override any gcc2 internal prototype to avoid an error. */
18506 /* We use char because int might match the return type of a gcc2
18507 builtin and then its argument prototype would still apply. */
18508 char inet_addr();
18509
18510 int main() {
18511 inet_addr()
18512 ; return 0; }
18513 EOF
18514 if { (eval echo configure:18515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18515 rm -rf conftest*
18516 eval "ac_cv_lib_$ac_lib_var=yes"
18517 else
18518 echo "configure: failed program was:" >&5
18519 cat conftest.$ac_ext >&5
18520 rm -rf conftest*
18521 eval "ac_cv_lib_$ac_lib_var=no"
18522 fi
18523 rm -f conftest*
18524 LIBS="$ac_save_LIBS"
18525
18526 fi
18527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18528 echo "$ac_t""yes" 1>&6
18529 INET_LINK="socket"
18530
18531 else
18532 echo "$ac_t""no" 1>&6
18533 fi
18534
18535
18536 fi
18537
18538
18539 fi
18540
18541
18542
18543 fi
18544 done
18545
18546
18547 for ac_func in inet_aton
18548 do
18549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18550 echo "configure:18551: checking for $ac_func" >&5
18551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18552 echo $ac_n "(cached) $ac_c" 1>&6
18553 else
18554 cat > conftest.$ac_ext <<EOF
18555 #line 18556 "configure"
18556 #include "confdefs.h"
18557 /* System header to define __stub macros and hopefully few prototypes,
18558 which can conflict with char $ac_func(); below. */
18559 #include <assert.h>
18560 /* Override any gcc2 internal prototype to avoid an error. */
18561 /* We use char because int might match the return type of a gcc2
18562 builtin and then its argument prototype would still apply. */
18563 char $ac_func();
18564
18565 int main() {
18566
18567 /* The GNU C library defines this for functions which it implements
18568 to always fail with ENOSYS. Some functions are actually named
18569 something starting with __ and the normal name is an alias. */
18570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18571 choke me
18572 #else
18573 $ac_func();
18574 #endif
18575
18576 ; return 0; }
18577 EOF
18578 if { (eval echo configure:18579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18579 rm -rf conftest*
18580 eval "ac_cv_func_$ac_func=yes"
18581 else
18582 echo "configure: failed program was:" >&5
18583 cat conftest.$ac_ext >&5
18584 rm -rf conftest*
18585 eval "ac_cv_func_$ac_func=no"
18586 fi
18587 rm -f conftest*
18588 fi
18589
18590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18591 echo "$ac_t""yes" 1>&6
18592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18593 cat >> confdefs.h <<EOF
18594 #define $ac_tr_func 1
18595 EOF
18596 cat >> confdefs.h <<\EOF
18597 #define HAVE_INET_ATON 1
18598 EOF
18599
18600 else
18601 echo "$ac_t""no" 1>&6
18602 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18603 echo "configure:18604: checking for inet_aton in -l$INET_LINK" >&5
18604 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18606 echo $ac_n "(cached) $ac_c" 1>&6
18607 else
18608 ac_save_LIBS="$LIBS"
18609 LIBS="-l$INET_LINK $LIBS"
18610 cat > conftest.$ac_ext <<EOF
18611 #line 18612 "configure"
18612 #include "confdefs.h"
18613 /* Override any gcc2 internal prototype to avoid an error. */
18614 /* We use char because int might match the return type of a gcc2
18615 builtin and then its argument prototype would still apply. */
18616 char inet_aton();
18617
18618 int main() {
18619 inet_aton()
18620 ; return 0; }
18621 EOF
18622 if { (eval echo configure:18623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18623 rm -rf conftest*
18624 eval "ac_cv_lib_$ac_lib_var=yes"
18625 else
18626 echo "configure: failed program was:" >&5
18627 cat conftest.$ac_ext >&5
18628 rm -rf conftest*
18629 eval "ac_cv_lib_$ac_lib_var=no"
18630 fi
18631 rm -f conftest*
18632 LIBS="$ac_save_LIBS"
18633
18634 fi
18635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18636 echo "$ac_t""yes" 1>&6
18637 cat >> confdefs.h <<\EOF
18638 #define HAVE_INET_ATON 1
18639 EOF
18640
18641 else
18642 echo "$ac_t""no" 1>&6
18643 fi
18644
18645
18646 fi
18647 done
18648
18649
18650 if test "x$INET_LINK" != "x"; then
18651 cat >> confdefs.h <<\EOF
18652 #define HAVE_INET_ADDR 1
18653 EOF
18654
18655 INET_LINK=" -l$INET_LINK"
18656 fi
18657
18658 fi
18659
18660
18661 cat > confcache <<\EOF
18662 # This file is a shell script that caches the results of configure
18663 # tests run on this system so they can be shared between configure
18664 # scripts and configure runs. It is not useful on other systems.
18665 # If it contains results you don't want to keep, you may remove or edit it.
18666 #
18667 # By default, configure uses ./config.cache as the cache file,
18668 # creating it if it does not exist already. You can give configure
18669 # the --cache-file=FILE option to use a different cache file; that is
18670 # what configure does when it calls configure scripts in
18671 # subdirectories, so they share the cache.
18672 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18673 # config.status only pays attention to the cache file if you give it the
18674 # --recheck option to rerun configure.
18675 #
18676 EOF
18677 # The following way of writing the cache mishandles newlines in values,
18678 # but we know of no workaround that is simple, portable, and efficient.
18679 # So, don't put newlines in cache variables' values.
18680 # Ultrix sh set writes to stderr and can't be redirected directly,
18681 # and sets the high bit in the cache file unless we assign to the vars.
18682 (set) 2>&1 |
18683 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18684 *ac_space=\ *)
18685 # `set' does not quote correctly, so add quotes (double-quote substitution
18686 # turns \\\\ into \\, and sed turns \\ into \).
18687 sed -n \
18688 -e "s/'/'\\\\''/g" \
18689 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18690 ;;
18691 *)
18692 # `set' quotes correctly as required by POSIX, so do not add quotes.
18693 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18694 ;;
18695 esac >> confcache
18696 if cmp -s $cache_file confcache; then
18697 :
18698 else
18699 if test -w $cache_file; then
18700 echo "updating cache $cache_file"
18701 cat confcache > $cache_file
18702 else
18703 echo "not updating unwritable cache $cache_file"
18704 fi
18705 fi
18706 rm -f confcache
18707
18708
18709
18710 CPP_MT_FLAG=
18711 if test "$TOOLKIT" != "MSW"; then
18712
18713
18714 THREADS_LINK=
18715 THREADS_CFLAGS=
18716
18717 if test "$wxUSE_THREADS" = "yes" ; then
18718 if test "$USE_BEOS" = 1; then
18719 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18720 wxUSE_THREADS="no"
18721 fi
18722 fi
18723
18724 if test "$wxUSE_THREADS" = "yes" ; then
18725
18726
18727 THREAD_OPTS="-pthread"
18728 case "${host}" in
18729 *-*-solaris2* | *-*-sunos4* )
18730 if test "x$GCC" = "xyes"; then
18731 THREAD_OPTS="-pthreads $THREAD_OPTS"
18732 else
18733 THREAD_OPTS="-mt $THREAD_OPTS"
18734 fi
18735 ;;
18736 *-*-freebsd*)
18737 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18738 ;;
18739 *-*-darwin* | *-*-cygwin* )
18740 THREAD_OPTS=""
18741 ;;
18742 *-*-aix*)
18743 THREAD_OPTS="pthreads"
18744 ;;
18745 *-hp-hpux* )
18746 if test "x$GCC" != "xyes"; then
18747 THREAD_OPTS=""
18748 fi
18749 esac
18750
18751 THREAD_OPTS="$THREAD_OPTS pthread none"
18752
18753 THREADS_OK=no
18754 for flag in $THREAD_OPTS; do
18755 case $flag in
18756 none)
18757 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18758 echo "configure:18759: checking whether pthreads work without any flags" >&5
18759 ;;
18760
18761 -*)
18762 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18763 echo "configure:18764: checking whether pthreads work with $flag" >&5
18764 THREADS_CFLAGS="$flag"
18765 ;;
18766
18767 *)
18768 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18769 echo "configure:18770: checking for the pthreads library -l$flag" >&5
18770 THREADS_LINK="-l$flag"
18771 ;;
18772 esac
18773
18774 save_LIBS="$LIBS"
18775 save_CFLAGS="$CFLAGS"
18776 LIBS="$THREADS_LINK $LIBS"
18777 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18778
18779 cat > conftest.$ac_ext <<EOF
18780 #line 18781 "configure"
18781 #include "confdefs.h"
18782 #include <pthread.h>
18783 int main() {
18784 pthread_create(0,0,0,0);
18785 ; return 0; }
18786 EOF
18787 if { (eval echo configure:18788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18788 rm -rf conftest*
18789 THREADS_OK=yes
18790 else
18791 echo "configure: failed program was:" >&5
18792 cat conftest.$ac_ext >&5
18793 fi
18794 rm -f conftest*
18795
18796 LIBS="$save_LIBS"
18797 CFLAGS="$save_CFLAGS"
18798
18799 echo "$ac_t""$THREADS_OK" 1>&6
18800 if test "x$THREADS_OK" = "xyes"; then
18801 break;
18802 fi
18803
18804 THREADS_LINK=""
18805 THREADS_CFLAGS=""
18806 done
18807
18808 if test "x$THREADS_OK" != "xyes"; then
18809 wxUSE_THREADS=no
18810 echo "configure: warning: No thread support on this system... disabled" 1>&2
18811 else
18812 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18813 LIBS="$THREADS_LINK $LIBS"
18814
18815 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18816 echo "configure:18817: checking if more special flags are required for pthreads" >&5
18817 flag=no
18818 case "${host}" in
18819 *-aix*)
18820 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18821 flag="-D_THREAD_SAFE"
18822 ;;
18823 *-freebsd*)
18824 flag="-D_THREAD_SAFE"
18825 ;;
18826 *-hp-hpux* )
18827 flag="-D_REENTRANT"
18828 if test "x$GCC" != "xyes"; then
18829 flag="$flag -D_RWSTD_MULTI_THREAD"
18830 fi
18831 ;;
18832 *solaris* | alpha*-osf*)
18833 flag="-D_REENTRANT"
18834 ;;
18835 esac
18836 echo "$ac_t""${flag}" 1>&6
18837 if test "x$flag" != xno; then
18838 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18839 fi
18840
18841 if test "x$THREADS_CFLAGS" != "x"; then
18842 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18843 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18844 fi
18845 fi
18846 fi
18847
18848 if test "$wxUSE_THREADS" = "yes" ; then
18849 for ac_func in thr_setconcurrency
18850 do
18851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18852 echo "configure:18853: checking for $ac_func" >&5
18853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18854 echo $ac_n "(cached) $ac_c" 1>&6
18855 else
18856 cat > conftest.$ac_ext <<EOF
18857 #line 18858 "configure"
18858 #include "confdefs.h"
18859 /* System header to define __stub macros and hopefully few prototypes,
18860 which can conflict with char $ac_func(); below. */
18861 #include <assert.h>
18862 /* Override any gcc2 internal prototype to avoid an error. */
18863 /* We use char because int might match the return type of a gcc2
18864 builtin and then its argument prototype would still apply. */
18865 char $ac_func();
18866
18867 int main() {
18868
18869 /* The GNU C library defines this for functions which it implements
18870 to always fail with ENOSYS. Some functions are actually named
18871 something starting with __ and the normal name is an alias. */
18872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18873 choke me
18874 #else
18875 $ac_func();
18876 #endif
18877
18878 ; return 0; }
18879 EOF
18880 if { (eval echo configure:18881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18881 rm -rf conftest*
18882 eval "ac_cv_func_$ac_func=yes"
18883 else
18884 echo "configure: failed program was:" >&5
18885 cat conftest.$ac_ext >&5
18886 rm -rf conftest*
18887 eval "ac_cv_func_$ac_func=no"
18888 fi
18889 rm -f conftest*
18890 fi
18891
18892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18893 echo "$ac_t""yes" 1>&6
18894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18895 cat >> confdefs.h <<EOF
18896 #define $ac_tr_func 1
18897 EOF
18898
18899 else
18900 echo "$ac_t""no" 1>&6
18901 fi
18902 done
18903
18904
18905 for ac_hdr in sched.h
18906 do
18907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18908 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18909 echo "configure:18910: checking for $ac_hdr" >&5
18910 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18911 echo $ac_n "(cached) $ac_c" 1>&6
18912 else
18913 cat > conftest.$ac_ext <<EOF
18914 #line 18915 "configure"
18915 #include "confdefs.h"
18916 #include <$ac_hdr>
18917 EOF
18918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18919 { (eval echo configure:18920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18921 if test -z "$ac_err"; then
18922 rm -rf conftest*
18923 eval "ac_cv_header_$ac_safe=yes"
18924 else
18925 echo "$ac_err" >&5
18926 echo "configure: failed program was:" >&5
18927 cat conftest.$ac_ext >&5
18928 rm -rf conftest*
18929 eval "ac_cv_header_$ac_safe=no"
18930 fi
18931 rm -f conftest*
18932 fi
18933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18934 echo "$ac_t""yes" 1>&6
18935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18936 cat >> confdefs.h <<EOF
18937 #define $ac_tr_hdr 1
18938 EOF
18939
18940 else
18941 echo "$ac_t""no" 1>&6
18942 fi
18943 done
18944
18945 if test "$ac_cv_header_sched_h" = "yes"; then
18946 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18947 echo "configure:18948: checking for sched_yield" >&5
18948 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18949 echo $ac_n "(cached) $ac_c" 1>&6
18950 else
18951 cat > conftest.$ac_ext <<EOF
18952 #line 18953 "configure"
18953 #include "confdefs.h"
18954 /* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char sched_yield(); below. */
18956 #include <assert.h>
18957 /* Override any gcc2 internal prototype to avoid an error. */
18958 /* We use char because int might match the return type of a gcc2
18959 builtin and then its argument prototype would still apply. */
18960 char sched_yield();
18961
18962 int main() {
18963
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18968 choke me
18969 #else
18970 sched_yield();
18971 #endif
18972
18973 ; return 0; }
18974 EOF
18975 if { (eval echo configure:18976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18976 rm -rf conftest*
18977 eval "ac_cv_func_sched_yield=yes"
18978 else
18979 echo "configure: failed program was:" >&5
18980 cat conftest.$ac_ext >&5
18981 rm -rf conftest*
18982 eval "ac_cv_func_sched_yield=no"
18983 fi
18984 rm -f conftest*
18985 fi
18986
18987 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18988 echo "$ac_t""yes" 1>&6
18989 cat >> confdefs.h <<\EOF
18990 #define HAVE_SCHED_YIELD 1
18991 EOF
18992
18993 else
18994 echo "$ac_t""no" 1>&6
18995
18996 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18997 echo "configure:18998: checking for sched_yield in -lposix4" >&5
18998 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19000 echo $ac_n "(cached) $ac_c" 1>&6
19001 else
19002 ac_save_LIBS="$LIBS"
19003 LIBS="-lposix4 $LIBS"
19004 cat > conftest.$ac_ext <<EOF
19005 #line 19006 "configure"
19006 #include "confdefs.h"
19007 /* Override any gcc2 internal prototype to avoid an error. */
19008 /* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19010 char sched_yield();
19011
19012 int main() {
19013 sched_yield()
19014 ; return 0; }
19015 EOF
19016 if { (eval echo configure:19017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19017 rm -rf conftest*
19018 eval "ac_cv_lib_$ac_lib_var=yes"
19019 else
19020 echo "configure: failed program was:" >&5
19021 cat conftest.$ac_ext >&5
19022 rm -rf conftest*
19023 eval "ac_cv_lib_$ac_lib_var=no"
19024 fi
19025 rm -f conftest*
19026 LIBS="$ac_save_LIBS"
19027
19028 fi
19029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19030 echo "$ac_t""yes" 1>&6
19031 cat >> confdefs.h <<\EOF
19032 #define HAVE_SCHED_YIELD 1
19033 EOF
19034 POSIX4_LINK=" -lposix4"
19035 else
19036 echo "$ac_t""no" 1>&6
19037 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19038
19039 fi
19040
19041
19042
19043 fi
19044
19045 fi
19046
19047 HAVE_PRIOR_FUNCS=0
19048 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19049 echo "configure:19050: checking for pthread_attr_getschedpolicy" >&5
19050 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19051 echo $ac_n "(cached) $ac_c" 1>&6
19052 else
19053 cat > conftest.$ac_ext <<EOF
19054 #line 19055 "configure"
19055 #include "confdefs.h"
19056 /* System header to define __stub macros and hopefully few prototypes,
19057 which can conflict with char pthread_attr_getschedpolicy(); below. */
19058 #include <assert.h>
19059 /* Override any gcc2 internal prototype to avoid an error. */
19060 /* We use char because int might match the return type of a gcc2
19061 builtin and then its argument prototype would still apply. */
19062 char pthread_attr_getschedpolicy();
19063
19064 int main() {
19065
19066 /* The GNU C library defines this for functions which it implements
19067 to always fail with ENOSYS. Some functions are actually named
19068 something starting with __ and the normal name is an alias. */
19069 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19070 choke me
19071 #else
19072 pthread_attr_getschedpolicy();
19073 #endif
19074
19075 ; return 0; }
19076 EOF
19077 if { (eval echo configure:19078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19078 rm -rf conftest*
19079 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19080 else
19081 echo "configure: failed program was:" >&5
19082 cat conftest.$ac_ext >&5
19083 rm -rf conftest*
19084 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19085 fi
19086 rm -f conftest*
19087 fi
19088
19089 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19090 echo "$ac_t""yes" 1>&6
19091 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19092 echo "configure:19093: checking for pthread_attr_setschedparam" >&5
19093 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19094 echo $ac_n "(cached) $ac_c" 1>&6
19095 else
19096 cat > conftest.$ac_ext <<EOF
19097 #line 19098 "configure"
19098 #include "confdefs.h"
19099 /* System header to define __stub macros and hopefully few prototypes,
19100 which can conflict with char pthread_attr_setschedparam(); below. */
19101 #include <assert.h>
19102 /* Override any gcc2 internal prototype to avoid an error. */
19103 /* We use char because int might match the return type of a gcc2
19104 builtin and then its argument prototype would still apply. */
19105 char pthread_attr_setschedparam();
19106
19107 int main() {
19108
19109 /* The GNU C library defines this for functions which it implements
19110 to always fail with ENOSYS. Some functions are actually named
19111 something starting with __ and the normal name is an alias. */
19112 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19113 choke me
19114 #else
19115 pthread_attr_setschedparam();
19116 #endif
19117
19118 ; return 0; }
19119 EOF
19120 if { (eval echo configure:19121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19121 rm -rf conftest*
19122 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19123 else
19124 echo "configure: failed program was:" >&5
19125 cat conftest.$ac_ext >&5
19126 rm -rf conftest*
19127 eval "ac_cv_func_pthread_attr_setschedparam=no"
19128 fi
19129 rm -f conftest*
19130 fi
19131
19132 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19133 echo "$ac_t""yes" 1>&6
19134 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19135 echo "configure:19136: checking for sched_get_priority_max" >&5
19136 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19137 echo $ac_n "(cached) $ac_c" 1>&6
19138 else
19139 cat > conftest.$ac_ext <<EOF
19140 #line 19141 "configure"
19141 #include "confdefs.h"
19142 /* System header to define __stub macros and hopefully few prototypes
19143 else
19144 echo "$ac_t""no" 1>&6
19145 which can conflict with char sched_get_priority_max(); below. */
19146 #include <assert.h>
19147 /* Override any gcc2 internal prototype to avoid an error. */
19148 /* We use char because int might match the return type of a gcc2
19149 builtin and then its argument prototype would still apply. */
19150 char sched_get_priority_max();
19151
19152 int main() {
19153
19154 /* The GNU C library defines this for functions which it implements
19155 to always fail with ENOSYS. Some functions are actually named
19156 something starting with __ and the normal name is an alias. */
19157 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19158 choke me
19159 #else
19160 sched_get_priority_max();
19161 #endif
19162
19163 ; return 0; }
19164 EOF
19165 if { (eval echo configure:19166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19166 rm -rf conftest*
19167 eval "ac_cv_func_sched_get_priority_max=yes"
19168 else
19169 echo "configure: failed program was:" >&5
19170 cat conftest.$ac_ext >&5
19171 rm -rf conftest*
19172 eval "ac_cv_func_sched_get_priority_max=no"
19173 fi
19174 rm -f conftest*
19175 fi
19176
19177 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19178 echo "$ac_t""yes" 1>&6
19179 HAVE_PRIOR_FUNCS=1
19180 else
19181 echo "$ac_t""no" 1>&6
19182 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19183 echo "configure:19184: checking for sched_get_priority_max in -lposix4" >&5
19184 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19186 echo $ac_n "(cached) $ac_c" 1>&6
19187 else
19188 ac_save_LIBS="$LIBS"
19189 LIBS="-lposix4 $LIBS"
19190 cat > conftest.$ac_ext <<EOF
19191 #line 19192 "configure"
19192 #include "confdefs.h"
19193 /* Override any gcc2 internal prototype to avoid an error. */
19194 /* We use char because int might match the return type of a gcc2
19195 builtin and then its argument prototype would still apply. */
19196 char sched_get_priority_max();
19197
19198 int main() {
19199 sched_get_priority_max()
19200 ; return 0; }
19201 EOF
19202 if { (eval echo configure:19203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19203 rm -rf conftest*
19204 eval "ac_cv_lib_$ac_lib_var=yes"
19205 else
19206 echo "configure: failed program was:" >&5
19207 cat conftest.$ac_ext >&5
19208 rm -rf conftest*
19209 eval "ac_cv_lib_$ac_lib_var=no"
19210 fi
19211 rm -f conftest*
19212 LIBS="$ac_save_LIBS"
19213
19214 fi
19215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19216 echo "$ac_t""yes" 1>&6
19217
19218 HAVE_PRIOR_FUNCS=1
19219 POSIX4_LINK=" -lposix4"
19220
19221 else
19222 echo "$ac_t""no" 1>&6
19223 fi
19224
19225
19226 fi
19227
19228
19229 else
19230 echo "$ac_t""no" 1>&6
19231 fi
19232
19233
19234 fi
19235
19236
19237 if test "$HAVE_PRIOR_FUNCS" = 1; then
19238 cat >> confdefs.h <<\EOF
19239 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19240 EOF
19241
19242 else
19243 echo "configure: warning: Setting thread priority will not work" 1>&2
19244 fi
19245
19246 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19247 echo "configure:19248: checking for pthread_cancel" >&5
19248 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19249 echo $ac_n "(cached) $ac_c" 1>&6
19250 else
19251 cat > conftest.$ac_ext <<EOF
19252 #line 19253 "configure"
19253 #include "confdefs.h"
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char pthread_cancel(); below. */
19256 #include <assert.h>
19257 /* Override any gcc2 internal prototype to avoid an error. */
19258 /* We use char because int might match the return type of a gcc2
19259 builtin and then its argument prototype would still apply. */
19260 char pthread_cancel();
19261
19262 int main() {
19263
19264 /* The GNU C library defines this for functions which it implements
19265 to always fail with ENOSYS. Some functions are actually named
19266 something starting with __ and the normal name is an alias. */
19267 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19268 choke me
19269 #else
19270 pthread_cancel();
19271 #endif
19272
19273 ; return 0; }
19274 EOF
19275 if { (eval echo configure:19276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19276 rm -rf conftest*
19277 eval "ac_cv_func_pthread_cancel=yes"
19278 else
19279 echo "configure: failed program was:" >&5
19280 cat conftest.$ac_ext >&5
19281 rm -rf conftest*
19282 eval "ac_cv_func_pthread_cancel=no"
19283 fi
19284 rm -f conftest*
19285 fi
19286
19287 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19288 echo "$ac_t""yes" 1>&6
19289 cat >> confdefs.h <<\EOF
19290 #define HAVE_PTHREAD_CANCEL 1
19291 EOF
19292
19293 else
19294 echo "$ac_t""no" 1>&6
19295 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19296 fi
19297
19298
19299 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19300 echo "configure:19301: checking for pthread_cleanup_push/pop" >&5
19301 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19302 echo $ac_n "(cached) $ac_c" 1>&6
19303 else
19304
19305 cat > conftest.$ac_ext <<EOF
19306 #line 19307 "configure"
19307 #include "confdefs.h"
19308 #include <pthread.h>
19309 int main() {
19310
19311 pthread_cleanup_push(NULL, NULL);
19312 pthread_cleanup_pop(0);
19313
19314 ; return 0; }
19315 EOF
19316 if { (eval echo configure:19317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19317 rm -rf conftest*
19318
19319 wx_cv_func_pthread_cleanup_push=yes
19320
19321 else
19322 echo "configure: failed program was:" >&5
19323 cat conftest.$ac_ext >&5
19324 rm -rf conftest*
19325
19326 wx_cv_func_pthread_cleanup_push=no
19327
19328 fi
19329 rm -f conftest*
19330
19331 fi
19332
19333 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19334
19335 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19336 cat >> confdefs.h <<\EOF
19337 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19338 EOF
19339
19340 fi
19341
19342
19343 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19344 echo "configure:19345: checking for pthread_mutexattr_t" >&5
19345 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19346 echo $ac_n "(cached) $ac_c" 1>&6
19347 else
19348
19349 cat > conftest.$ac_ext <<EOF
19350 #line 19351 "configure"
19351 #include "confdefs.h"
19352 #include <pthread.h>
19353 int main() {
19354
19355 pthread_mutexattr_t attr;
19356 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
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
19363 wx_cv_type_pthread_mutexattr_t=yes
19364
19365 else
19366 echo "configure: failed program was:" >&5
19367 cat conftest.$ac_ext >&5
19368 rm -rf conftest*
19369
19370 wx_cv_type_pthread_mutexattr_t=no
19371
19372
19373 fi
19374 rm -f conftest*
19375
19376 fi
19377
19378 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19379
19380 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19381 cat >> confdefs.h <<\EOF
19382 #define HAVE_PTHREAD_MUTEXATTR_T 1
19383 EOF
19384
19385 else
19386 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19387 echo "configure:19388: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19388 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19389 echo $ac_n "(cached) $ac_c" 1>&6
19390 else
19391
19392 cat > conftest.$ac_ext <<EOF
19393 #line 19394 "configure"
19394 #include "confdefs.h"
19395 #include <pthread.h>
19396 int main() {
19397
19398 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19399
19400 ; return 0; }
19401 EOF
19402 if { (eval echo configure:19403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19403 rm -rf conftest*
19404
19405 wx_cv_type_pthread_rec_mutex_init=yes
19406
19407 else
19408 echo "configure: failed program was:" >&5
19409 cat conftest.$ac_ext >&5
19410 rm -rf conftest*
19411
19412 wx_cv_type_pthread_rec_mutex_init=no
19413
19414
19415 fi
19416 rm -f conftest*
19417
19418 fi
19419
19420 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19421 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19422 cat >> confdefs.h <<\EOF
19423 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19424 EOF
19425
19426 else
19427 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19428 fi
19429 fi
19430 fi
19431
19432 else
19433 if test "$wxUSE_THREADS" = "yes" ; then
19434 case "${host}" in
19435 *-*-mingw32* )
19436 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19437 echo "configure:19438: checking if compiler supports -mthreads" >&5
19438 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19439 echo $ac_n "(cached) $ac_c" 1>&6
19440 else
19441
19442 CFLAGS_OLD="$CFLAGS"
19443 CFLAGS="$CFLAGS -mthreads"
19444 cat > conftest.$ac_ext <<EOF
19445 #line 19446 "configure"
19446 #include "confdefs.h"
19447
19448 int main() {
19449
19450 ; return 0; }
19451 EOF
19452 if { (eval echo configure:19453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19453 rm -rf conftest*
19454 wx_cv_cflags_mthread=yes
19455 else
19456 echo "configure: failed program was:" >&5
19457 cat conftest.$ac_ext >&5
19458 rm -rf conftest*
19459 wx_cv_cflags_mthread=no
19460
19461 fi
19462 rm -f conftest*
19463
19464
19465 fi
19466
19467 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19468
19469 if test "$wx_cv_cflags_mthread" = "yes"; then
19470 CXXFLAGS="$CXXFLAGS -mthreads"
19471 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19472 LDFLAGS="$LDFLAGS -mthreads"
19473 else
19474 CFLAGS="$CFLAGS_OLD"
19475 fi
19476 ;;
19477 esac
19478 fi
19479 fi
19480
19481 if test "$wxUSE_THREADS" = "yes"; then
19482 cat >> confdefs.h <<\EOF
19483 #define wxUSE_THREADS 1
19484 EOF
19485
19486
19487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19488 else
19489 if test "$ac_cv_func_strtok_r" = "yes"; then
19490 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19491 echo "configure:19492: checking if -D_REENTRANT is needed" >&5
19492 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19493 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19494 echo "$ac_t""yes" 1>&6
19495 else
19496 echo "$ac_t""no" 1>&6
19497 fi
19498 fi
19499 fi
19500
19501 if test "$WXGTK20" = 1 ; then
19502 cat >> confdefs.h <<EOF
19503 #define __WXGTK20__ $WXGTK20
19504 EOF
19505
19506 WXGTK12=1
19507 fi
19508
19509 if test "$WXGTK12" = 1 ; then
19510 cat >> confdefs.h <<EOF
19511 #define __WXGTK12__ $WXGTK12
19512 EOF
19513
19514 fi
19515
19516 if test "$WXGTK127" = 1 ; then
19517 cat >> confdefs.h <<EOF
19518 #define __WXGTK127__ $WXGTK127
19519 EOF
19520
19521 fi
19522
19523 WXDEBUG=
19524
19525 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19526 WXDEBUG="-g"
19527 wxUSE_OPTIMISE=no
19528 fi
19529
19530 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19531 wxUSE_DEBUG_INFO=yes
19532 WXDEBUG="-ggdb"
19533 fi
19534
19535 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19536 cat >> confdefs.h <<\EOF
19537 #define WXDEBUG 1
19538 EOF
19539
19540 WXDEBUG_DEFINE="-D__WXDEBUG__"
19541 else
19542 if test "$wxUSE_GTK" = 1 ; then
19543 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19544 fi
19545 fi
19546
19547 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19548 cat >> confdefs.h <<\EOF
19549 #define wxUSE_MEMORY_TRACING 1
19550 EOF
19551
19552 cat >> confdefs.h <<\EOF
19553 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19554 EOF
19555
19556 cat >> confdefs.h <<\EOF
19557 #define wxUSE_DEBUG_NEW_ALWAYS 1
19558 EOF
19559
19560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19561 fi
19562
19563 if test "$wxUSE_DMALLOC" = "yes" ; then
19564 DMALLOC_LIBS="-ldmalloc"
19565 fi
19566
19567 PROFILE=
19568 if test "$wxUSE_PROFILE" = "yes" ; then
19569 PROFILE=" -pg"
19570 fi
19571
19572 CODE_GEN_FLAGS=
19573 CODE_GEN_FLAGS_CXX=
19574 if test "$GCC" = "yes" ; then
19575 if test "$wxUSE_NO_RTTI" = "yes" ; then
19576 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19577 fi
19578 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19579 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19580 fi
19581 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19582 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19583 fi
19584 if test "$USE_WIN32" = 1 ; then
19585 # I'm not even really sure what this was ever added to solve,
19586 # but someone added it for mingw native builds, so I guess
19587 # they had a reason, right??
19588 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19589 fi
19590
19591 case "${host}" in
19592 powerpc*-*-aix* )
19593 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19594 ;;
19595 *-hppa* )
19596 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19597 ;;
19598 esac
19599 fi
19600
19601 OPTIMISE=
19602 if test "$wxUSE_OPTIMISE" = "no" ; then
19603 if test "$GCC" = yes ; then
19604 OPTIMISE="-O0"
19605 fi
19606 else
19607 if test "$GCC" = yes ; then
19608 OPTIMISE="-O2"
19609
19610 case "${host}" in
19611 i586-*-*|i686-*-* )
19612 OPTIMISE="${OPTIMISE} "
19613 ;;
19614 esac
19615 else
19616 OPTIMISE="-O"
19617 fi
19618 fi
19619
19620
19621 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19622 cat >> confdefs.h <<\EOF
19623 #define WXWIN_COMPATIBILITY_2 1
19624 EOF
19625
19626
19627 WXWIN_COMPATIBILITY_2_2="yes"
19628 fi
19629
19630 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19631 cat >> confdefs.h <<\EOF
19632 #define WXWIN_COMPATIBILITY_2_2 1
19633 EOF
19634
19635
19636 WXWIN_COMPATIBILITY_2_4="yes"
19637 fi
19638
19639 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19640 cat >> confdefs.h <<\EOF
19641 #define WXWIN_COMPATIBILITY_2_4 1
19642 EOF
19643
19644 fi
19645
19646
19647 if test "$wxUSE_GUI" = "yes"; then
19648 cat >> confdefs.h <<\EOF
19649 #define wxUSE_GUI 1
19650 EOF
19651
19652
19653 else
19654 cat >> confdefs.h <<\EOF
19655 #define wxUSE_NOGUI 1
19656 EOF
19657
19658 fi
19659
19660
19661 if test "$wxUSE_UNIX" = "yes"; then
19662 cat >> confdefs.h <<\EOF
19663 #define wxUSE_UNIX 1
19664 EOF
19665
19666 fi
19667
19668
19669 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19670 cat >> confdefs.h <<\EOF
19671 #define wxUSE_APPLE_IEEE 1
19672 EOF
19673
19674 fi
19675
19676 if test "$wxUSE_TIMER" = "yes"; then
19677 cat >> confdefs.h <<\EOF
19678 #define wxUSE_TIMER 1
19679 EOF
19680
19681 fi
19682
19683 if test "$wxUSE_WAVE" = "yes"; then
19684 cat >> confdefs.h <<\EOF
19685 #define wxUSE_WAVE 1
19686 EOF
19687
19688 fi
19689
19690 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19691 cat >> confdefs.h <<\EOF
19692 #define wxUSE_CMDLINE_PARSER 1
19693 EOF
19694
19695 fi
19696
19697 if test "$wxUSE_STOPWATCH" = "yes"; then
19698 cat >> confdefs.h <<\EOF
19699 #define wxUSE_STOPWATCH 1
19700 EOF
19701
19702 fi
19703
19704 if test "$wxUSE_DATETIME" = "yes"; then
19705 cat >> confdefs.h <<\EOF
19706 #define wxUSE_DATETIME 1
19707 EOF
19708
19709 fi
19710
19711 if test "$wxUSE_TIMEDATE" = "yes"; then
19712 cat >> confdefs.h <<\EOF
19713 #define wxUSE_TIMEDATE 1
19714 EOF
19715
19716 fi
19717
19718 if test "$wxUSE_FILE" = "yes"; then
19719 cat >> confdefs.h <<\EOF
19720 #define wxUSE_FILE 1
19721 EOF
19722
19723 fi
19724
19725 if test "$wxUSE_FFILE" = "yes"; then
19726 cat >> confdefs.h <<\EOF
19727 #define wxUSE_FFILE 1
19728 EOF
19729
19730 fi
19731
19732 if test "$wxUSE_FILESYSTEM" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734 #define wxUSE_FILESYSTEM 1
19735 EOF
19736
19737 fi
19738
19739 if test "$wxUSE_FS_INET" = "yes"; then
19740 cat >> confdefs.h <<\EOF
19741 #define wxUSE_FS_INET 1
19742 EOF
19743
19744 fi
19745
19746 if test "$wxUSE_FS_ZIP" = "yes"; then
19747 cat >> confdefs.h <<\EOF
19748 #define wxUSE_FS_ZIP 1
19749 EOF
19750
19751 fi
19752
19753 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19754 cat >> confdefs.h <<\EOF
19755 #define wxUSE_ZIPSTREAM 1
19756 EOF
19757
19758 fi
19759
19760 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19761 cat >> confdefs.h <<\EOF
19762 #define wxUSE_ON_FATAL_EXCEPTION 1
19763 EOF
19764
19765 fi
19766
19767 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19768 cat >> confdefs.h <<\EOF
19769 #define wxUSE_SNGLINST_CHECKER 1
19770 EOF
19771
19772 fi
19773
19774 if test "$wxUSE_BUSYINFO" = "yes"; then
19775 cat >> confdefs.h <<\EOF
19776 #define wxUSE_BUSYINFO 1
19777 EOF
19778
19779 fi
19780
19781 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19782 cat >> confdefs.h <<\EOF
19783 #define wxUSE_STD_IOSTREAM 1
19784 EOF
19785
19786 fi
19787
19788 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19789 cat >> confdefs.h <<\EOF
19790 #define wxUSE_TEXTBUFFER 1
19791 EOF
19792
19793 fi
19794
19795 if test "$wxUSE_TEXTFILE" = "yes"; then
19796 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19797 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19798 else
19799 cat >> confdefs.h <<\EOF
19800 #define wxUSE_TEXTFILE 1
19801 EOF
19802
19803 fi
19804 fi
19805
19806 if test "$wxUSE_CONFIG" = "yes" ; then
19807 if test "$wxUSE_TEXTFILE" != "yes"; then
19808 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19809 else
19810 cat >> confdefs.h <<\EOF
19811 #define wxUSE_CONFIG 1
19812 EOF
19813
19814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19815 fi
19816 fi
19817
19818 if test "$wxUSE_INTL" = "yes" ; then
19819 if test "$wxUSE_FILE" != "yes"; then
19820 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19821 else
19822 cat >> confdefs.h <<\EOF
19823 #define wxUSE_INTL 1
19824 EOF
19825
19826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19827 GUIDIST="$GUIDIST INTL_DIST"
19828 fi
19829 fi
19830
19831 if test "$wxUSE_LOG" = "yes"; then
19832 cat >> confdefs.h <<\EOF
19833 #define wxUSE_LOG 1
19834 EOF
19835
19836
19837 if test "$wxUSE_LOGGUI" = "yes"; then
19838 cat >> confdefs.h <<\EOF
19839 #define wxUSE_LOGGUI 1
19840 EOF
19841
19842 fi
19843
19844 if test "$wxUSE_LOGWINDOW" = "yes"; then
19845 cat >> confdefs.h <<\EOF
19846 #define wxUSE_LOGWINDOW 1
19847 EOF
19848
19849 fi
19850
19851 if test "$wxUSE_LOGDIALOG" = "yes"; then
19852 cat >> confdefs.h <<\EOF
19853 #define wxUSE_LOG_DIALOG 1
19854 EOF
19855
19856 fi
19857 fi
19858
19859 if test "$wxUSE_LONGLONG" = "yes"; then
19860 cat >> confdefs.h <<\EOF
19861 #define wxUSE_LONGLONG 1
19862 EOF
19863
19864 fi
19865
19866 if test "$wxUSE_GEOMETRY" = "yes"; then
19867 cat >> confdefs.h <<\EOF
19868 #define wxUSE_GEOMETRY 1
19869 EOF
19870
19871 fi
19872
19873 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19874 cat >> confdefs.h <<\EOF
19875 #define wxUSE_DIALUP_MANAGER 1
19876 EOF
19877
19878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19879 fi
19880
19881 if test "$wxUSE_STREAMS" = "yes" ; then
19882 cat >> confdefs.h <<\EOF
19883 #define wxUSE_STREAMS 1
19884 EOF
19885
19886 fi
19887
19888
19889 if test "$wxUSE_DATETIME" = "yes"; then
19890 for ac_func in strptime
19891 do
19892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19893 echo "configure:19894: checking for $ac_func" >&5
19894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19895 echo $ac_n "(cached) $ac_c" 1>&6
19896 else
19897 cat > conftest.$ac_ext <<EOF
19898 #line 19899 "configure"
19899 #include "confdefs.h"
19900 /* System header to define __stub macros and hopefully few prototypes,
19901 which can conflict with char $ac_func(); below. */
19902 #include <assert.h>
19903 /* Override any gcc2 internal prototype to avoid an error. */
19904 /* We use char because int might match the return type of a gcc2
19905 builtin and then its argument prototype would still apply. */
19906 char $ac_func();
19907
19908 int main() {
19909
19910 /* The GNU C library defines this for functions which it implements
19911 to always fail with ENOSYS. Some functions are actually named
19912 something starting with __ and the normal name is an alias. */
19913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19914 choke me
19915 #else
19916 $ac_func();
19917 #endif
19918
19919 ; return 0; }
19920 EOF
19921 if { (eval echo configure:19922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19922 rm -rf conftest*
19923 eval "ac_cv_func_$ac_func=yes"
19924 else
19925 echo "configure: failed program was:" >&5
19926 cat conftest.$ac_ext >&5
19927 rm -rf conftest*
19928 eval "ac_cv_func_$ac_func=no"
19929 fi
19930 rm -f conftest*
19931 fi
19932
19933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19934 echo "$ac_t""yes" 1>&6
19935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19936 cat >> confdefs.h <<EOF
19937 #define $ac_tr_func 1
19938 EOF
19939
19940 else
19941 echo "$ac_t""no" 1>&6
19942 fi
19943 done
19944
19945
19946 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19947 echo "configure:19948: checking for timezone variable in <time.h>" >&5
19948 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19949 echo $ac_n "(cached) $ac_c" 1>&6
19950 else
19951
19952 cat > conftest.$ac_ext <<EOF
19953 #line 19954 "configure"
19954 #include "confdefs.h"
19955
19956 #include <time.h>
19957
19958 int main() {
19959
19960 int tz;
19961 tz = timezone;
19962
19963 ; return 0; }
19964 EOF
19965 if { (eval echo configure:19966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19966 rm -rf conftest*
19967
19968 wx_cv_var_timezone=timezone
19969
19970 else
19971 echo "configure: failed program was:" >&5
19972 cat conftest.$ac_ext >&5
19973 rm -rf conftest*
19974
19975 cat > conftest.$ac_ext <<EOF
19976 #line 19977 "configure"
19977 #include "confdefs.h"
19978
19979 #include <time.h>
19980
19981 int main() {
19982
19983 int tz;
19984 tz = _timezone;
19985
19986 ; return 0; }
19987 EOF
19988 if { (eval echo configure:19989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19989 rm -rf conftest*
19990
19991 wx_cv_var_timezone=_timezone
19992
19993 else
19994 echo "configure: failed program was:" >&5
19995 cat conftest.$ac_ext >&5
19996 rm -rf conftest*
19997
19998 cat > conftest.$ac_ext <<EOF
19999 #line 20000 "configure"
20000 #include "confdefs.h"
20001
20002 #include <time.h>
20003
20004 int main() {
20005
20006 int tz;
20007 tz = __timezone;
20008
20009 ; return 0; }
20010 EOF
20011 if { (eval echo configure:20012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20012 rm -rf conftest*
20013
20014 wx_cv_var_timezone=__timezone
20015
20016 else
20017 echo "configure: failed program was:" >&5
20018 cat conftest.$ac_ext >&5
20019 rm -rf conftest*
20020
20021 if test "$USE_DOS" = 0 ; then
20022 echo "configure: warning: no timezone variable" 1>&2
20023 fi
20024
20025
20026 fi
20027 rm -f conftest*
20028
20029
20030 fi
20031 rm -f conftest*
20032
20033
20034 fi
20035 rm -f conftest*
20036
20037
20038 fi
20039
20040 echo "$ac_t""$wx_cv_var_timezone" 1>&6
20041
20042 if test "x$wx_cv_var_timezone" != x ; then
20043 cat >> confdefs.h <<EOF
20044 #define WX_TIMEZONE $wx_cv_var_timezone
20045 EOF
20046
20047 fi
20048
20049 for ac_func in localtime
20050 do
20051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20052 echo "configure:20053: checking for $ac_func" >&5
20053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20054 echo $ac_n "(cached) $ac_c" 1>&6
20055 else
20056 cat > conftest.$ac_ext <<EOF
20057 #line 20058 "configure"
20058 #include "confdefs.h"
20059 /* System header to define __stub macros and hopefully few prototypes,
20060 which can conflict with char $ac_func(); below. */
20061 #include <assert.h>
20062 /* Override any gcc2 internal prototype to avoid an error. */
20063 /* We use char because int might match the return type of a gcc2
20064 builtin and then its argument prototype would still apply. */
20065 char $ac_func();
20066
20067 int main() {
20068
20069 /* The GNU C library defines this for functions which it implements
20070 to always fail with ENOSYS. Some functions are actually named
20071 something starting with __ and the normal name is an alias. */
20072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20073 choke me
20074 #else
20075 $ac_func();
20076 #endif
20077
20078 ; return 0; }
20079 EOF
20080 if { (eval echo configure:20081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20081 rm -rf conftest*
20082 eval "ac_cv_func_$ac_func=yes"
20083 else
20084 echo "configure: failed program was:" >&5
20085 cat conftest.$ac_ext >&5
20086 rm -rf conftest*
20087 eval "ac_cv_func_$ac_func=no"
20088 fi
20089 rm -f conftest*
20090 fi
20091
20092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20093 echo "$ac_t""yes" 1>&6
20094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20095 cat >> confdefs.h <<EOF
20096 #define $ac_tr_func 1
20097 EOF
20098
20099 else
20100 echo "$ac_t""no" 1>&6
20101 fi
20102 done
20103
20104
20105 if test "$ac_cv_func_localtime" = "yes"; then
20106 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20107 echo "configure:20108: checking for tm_gmtoff in struct tm" >&5
20108 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20109 echo $ac_n "(cached) $ac_c" 1>&6
20110 else
20111
20112 cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20115
20116 #include <time.h>
20117
20118 int main() {
20119
20120 struct tm tm;
20121 tm.tm_gmtoff++;
20122
20123 ; return 0; }
20124 EOF
20125 if { (eval echo configure:20126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20126 rm -rf conftest*
20127
20128 wx_cv_struct_tm_has_gmtoff=yes
20129
20130 else
20131 echo "configure: failed program was:" >&5
20132 cat conftest.$ac_ext >&5
20133 rm -rf conftest*
20134 wx_cv_struct_tm_has_gmtoff=no
20135
20136 fi
20137 rm -f conftest*
20138
20139 fi
20140
20141 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20142 fi
20143
20144 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20145 cat >> confdefs.h <<\EOF
20146 #define WX_GMTOFF_IN_TM 1
20147 EOF
20148
20149 fi
20150
20151 for ac_func in gettimeofday ftime
20152 do
20153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20154 echo "configure:20155: checking for $ac_func" >&5
20155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20156 echo $ac_n "(cached) $ac_c" 1>&6
20157 else
20158 cat > conftest.$ac_ext <<EOF
20159 #line 20160 "configure"
20160 #include "confdefs.h"
20161 /* System header to define __stub macros and hopefully few prototypes,
20162 which can conflict with char $ac_func(); below. */
20163 #include <assert.h>
20164 /* Override any gcc2 internal prototype to avoid an error. */
20165 /* We use char because int might match the return type of a gcc2
20166 builtin and then its argument prototype would still apply. */
20167 char $ac_func();
20168
20169 int main() {
20170
20171 /* The GNU C library defines this for functions which it implements
20172 to always fail with ENOSYS. Some functions are actually named
20173 something starting with __ and the normal name is an alias. */
20174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20175 choke me
20176 #else
20177 $ac_func();
20178 #endif
20179
20180 ; return 0; }
20181 EOF
20182 if { (eval echo configure:20183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20183 rm -rf conftest*
20184 eval "ac_cv_func_$ac_func=yes"
20185 else
20186 echo "configure: failed program was:" >&5
20187 cat conftest.$ac_ext >&5
20188 rm -rf conftest*
20189 eval "ac_cv_func_$ac_func=no"
20190 fi
20191 rm -f conftest*
20192 fi
20193
20194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20195 echo "$ac_t""yes" 1>&6
20196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20197 cat >> confdefs.h <<EOF
20198 #define $ac_tr_func 1
20199 EOF
20200 break
20201 else
20202 echo "$ac_t""no" 1>&6
20203 fi
20204 done
20205
20206
20207 if test "$ac_cv_func_gettimeofday" = "yes"; then
20208 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20209 echo "configure:20210: checking whether gettimeofday takes two arguments" >&5
20210 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20211 echo $ac_n "(cached) $ac_c" 1>&6
20212 else
20213
20214
20215 ac_ext=C
20216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20217 ac_cpp='$CXXCPP $CPPFLAGS'
20218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20220 cross_compiling=$ac_cv_prog_cxx_cross
20221
20222
20223 cat > conftest.$ac_ext <<EOF
20224 #line 20225 "configure"
20225 #include "confdefs.h"
20226
20227 #include <sys/time.h>
20228 #include <unistd.h>
20229
20230 int main() {
20231
20232 struct timeval tv;
20233 gettimeofday(&tv, NULL);
20234
20235 ; return 0; }
20236 EOF
20237 if { (eval echo configure:20238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20238 rm -rf conftest*
20239 wx_cv_func_gettimeofday_has_2_args=yes
20240 else
20241 echo "configure: failed program was:" >&5
20242 cat conftest.$ac_ext >&5
20243 rm -rf conftest*
20244 cat > conftest.$ac_ext <<EOF
20245 #line 20246 "configure"
20246 #include "confdefs.h"
20247
20248 #include <sys/time.h>
20249 #include <unistd.h>
20250
20251 int main() {
20252
20253 struct timeval tv;
20254 gettimeofday(&tv);
20255
20256 ; return 0; }
20257 EOF
20258 if { (eval echo configure:20259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20259 rm -rf conftest*
20260 wx_cv_func_gettimeofday_has_2_args=no
20261 else
20262 echo "configure: failed program was:" >&5
20263 cat conftest.$ac_ext >&5
20264 rm -rf conftest*
20265
20266 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20267 wx_cv_func_gettimeofday_has_2_args=unknown
20268
20269
20270 fi
20271 rm -f conftest*
20272
20273 fi
20274 rm -f conftest*
20275 ac_ext=c
20276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20277 ac_cpp='$CPP $CPPFLAGS'
20278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20280 cross_compiling=$ac_cv_prog_cc_cross
20281
20282
20283 fi
20284
20285 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20286
20287 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20288 cat >> confdefs.h <<\EOF
20289 #define WX_GETTIMEOFDAY_NO_TZ 1
20290 EOF
20291
20292 fi
20293 fi
20294
20295 cat >> confdefs.h <<\EOF
20296 #define wxUSE_TIMEDATE 1
20297 EOF
20298
20299 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20300 fi
20301
20302
20303 if test "$wxUSE_SOCKETS" = "yes"; then
20304 if test "$wxUSE_MGL" = "1"; then
20305 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20306 wxUSE_SOCKETS="no"
20307 fi
20308 fi
20309
20310 if test "$wxUSE_SOCKETS" = "yes"; then
20311 if test "$TOOLKIT" != "MSW"; then
20312 echo $ac_n "checking for socket""... $ac_c" 1>&6
20313 echo "configure:20314: checking for socket" >&5
20314 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20315 echo $ac_n "(cached) $ac_c" 1>&6
20316 else
20317 cat > conftest.$ac_ext <<EOF
20318 #line 20319 "configure"
20319 #include "confdefs.h"
20320 /* System header to define __stub macros and hopefully few prototypes,
20321 which can conflict with char socket(); below. */
20322 #include <assert.h>
20323 /* Override any gcc2 internal prototype to avoid an error. */
20324 /* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
20326 char socket();
20327
20328 int main() {
20329
20330 /* The GNU C library defines this for functions which it implements
20331 to always fail with ENOSYS. Some functions are actually named
20332 something starting with __ and the normal name is an alias. */
20333 #if defined (__stub_socket) || defined (__stub___socket)
20334 choke me
20335 #else
20336 socket();
20337 #endif
20338
20339 ; return 0; }
20340 EOF
20341 if { (eval echo configure:20342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20342 rm -rf conftest*
20343 eval "ac_cv_func_socket=yes"
20344 else
20345 echo "configure: failed program was:" >&5
20346 cat conftest.$ac_ext >&5
20347 rm -rf conftest*
20348 eval "ac_cv_func_socket=no"
20349 fi
20350 rm -f conftest*
20351 fi
20352
20353 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20354 echo "$ac_t""yes" 1>&6
20355 :
20356 else
20357 echo "$ac_t""no" 1>&6
20358 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20359 echo "configure:20360: checking for socket in -lsocket" >&5
20360 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20362 echo $ac_n "(cached) $ac_c" 1>&6
20363 else
20364 ac_save_LIBS="$LIBS"
20365 LIBS="-lsocket $LIBS"
20366 cat > conftest.$ac_ext <<EOF
20367 #line 20368 "configure"
20368 #include "confdefs.h"
20369 /* Override any gcc2 internal prototype to avoid an error. */
20370 /* We use char because int might match the return type of a gcc2
20371 builtin and then its argument prototype would still apply. */
20372 char socket();
20373
20374 int main() {
20375 socket()
20376 ; return 0; }
20377 EOF
20378 if { (eval echo configure:20379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20379 rm -rf conftest*
20380 eval "ac_cv_lib_$ac_lib_var=yes"
20381 else
20382 echo "configure: failed program was:" >&5
20383 cat conftest.$ac_ext >&5
20384 rm -rf conftest*
20385 eval "ac_cv_lib_$ac_lib_var=no"
20386 fi
20387 rm -f conftest*
20388 LIBS="$ac_save_LIBS"
20389
20390 fi
20391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20392 echo "$ac_t""yes" 1>&6
20393 if test "$INET_LINK" != " -lsocket"; then
20394 INET_LINK="$INET_LINK -lsocket"
20395 fi
20396 else
20397 echo "$ac_t""no" 1>&6
20398
20399 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20400 wxUSE_SOCKETS=no
20401
20402
20403 fi
20404
20405
20406 fi
20407
20408 fi
20409 fi
20410
20411 if test "$wxUSE_SOCKETS" = "yes" ; then
20412 if test "$TOOLKIT" != "MSW"; then
20413 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20414 echo "configure:20415: checking what is the type of the third argument of getsockname" >&5
20415 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20416 echo $ac_n "(cached) $ac_c" 1>&6
20417 else
20418
20419
20420 ac_ext=C
20421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20422 ac_cpp='$CXXCPP $CPPFLAGS'
20423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20425 cross_compiling=$ac_cv_prog_cxx_cross
20426
20427
20428 cat > conftest.$ac_ext <<EOF
20429 #line 20430 "configure"
20430 #include "confdefs.h"
20431
20432 #include <sys/types.h>
20433 #include <sys/socket.h>
20434
20435 int main() {
20436
20437 socklen_t len;
20438 getsockname(0, 0, &len);
20439
20440 ; return 0; }
20441 EOF
20442 if { (eval echo configure:20443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20443 rm -rf conftest*
20444 wx_cv_type_getsockname3=socklen_t
20445 else
20446 echo "configure: failed program was:" >&5
20447 cat conftest.$ac_ext >&5
20448 rm -rf conftest*
20449 cat > conftest.$ac_ext <<EOF
20450 #line 20451 "configure"
20451 #include "confdefs.h"
20452
20453 #include <sys/types.h>
20454 #include <sys/socket.h>
20455
20456 int main() {
20457
20458 size_t len;
20459 getsockname(0, 0, &len);
20460
20461 ; return 0; }
20462 EOF
20463 if { (eval echo configure:20464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20464 rm -rf conftest*
20465 wx_cv_type_getsockname3=size_t
20466 else
20467 echo "configure: failed program was:" >&5
20468 cat conftest.$ac_ext >&5
20469 rm -rf conftest*
20470 cat > conftest.$ac_ext <<EOF
20471 #line 20472 "configure"
20472 #include "confdefs.h"
20473
20474 #include <sys/types.h>
20475 #include <sys/socket.h>
20476
20477 int main() {
20478
20479 int len;
20480 getsockname(0, 0, &len);
20481
20482 ; return 0; }
20483 EOF
20484 if { (eval echo configure:20485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20485 rm -rf conftest*
20486 wx_cv_type_getsockname3=int
20487 else
20488 echo "configure: failed program was:" >&5
20489 cat conftest.$ac_ext >&5
20490 rm -rf conftest*
20491 wx_cv_type_getsockname3=unknown
20492
20493 fi
20494 rm -f conftest*
20495
20496 fi
20497 rm -f conftest*
20498
20499 fi
20500 rm -f conftest*
20501
20502 ac_ext=c
20503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20507 cross_compiling=$ac_cv_prog_cc_cross
20508
20509
20510 fi
20511
20512 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20513
20514 if test "$wx_cv_type_getsockname3" = "unknown"; then
20515 wxUSE_SOCKETS=no
20516 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20517 else
20518 cat >> confdefs.h <<EOF
20519 #define SOCKLEN_T $wx_cv_type_getsockname3
20520 EOF
20521
20522 fi
20523 fi
20524 fi
20525
20526 if test "$wxUSE_SOCKETS" = "yes" ; then
20527 cat >> confdefs.h <<\EOF
20528 #define wxUSE_SOCKETS 1
20529 EOF
20530
20531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20532 fi
20533
20534
20535 if test "$wxUSE_GUI" = "yes"; then
20536
20537 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20538 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20539 wxUSE_JOYSTICK=no
20540 fi
20541 if test "$TOOLKIT" = "MOTIF"; then
20542 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20543 wxUSE_JOYSTICK=no
20544 fi
20545 if test "$TOOLKIT" = "X11"; then
20546 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20547 wxUSE_JOYSTICK=no
20548 fi
20549
20550 if test "$TOOLKIT" != "MSW"; then
20551 if test "$wxUSE_JOYSTICK" = "yes"; then
20552 for ac_hdr in linux/joystick.h
20553 do
20554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20556 echo "configure:20557: checking for $ac_hdr" >&5
20557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20558 echo $ac_n "(cached) $ac_c" 1>&6
20559 else
20560 cat > conftest.$ac_ext <<EOF
20561 #line 20562 "configure"
20562 #include "confdefs.h"
20563 #include <$ac_hdr>
20564 EOF
20565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20566 { (eval echo configure:20567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20568 if test -z "$ac_err"; then
20569 rm -rf conftest*
20570 eval "ac_cv_header_$ac_safe=yes"
20571 else
20572 echo "$ac_err" >&5
20573 echo "configure: failed program was:" >&5
20574 cat conftest.$ac_ext >&5
20575 rm -rf conftest*
20576 eval "ac_cv_header_$ac_safe=no"
20577 fi
20578 rm -f conftest*
20579 fi
20580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20581 echo "$ac_t""yes" 1>&6
20582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20583 cat >> confdefs.h <<EOF
20584 #define $ac_tr_hdr 1
20585 EOF
20586
20587 else
20588 echo "$ac_t""no" 1>&6
20589 fi
20590 done
20591
20592 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20593 wxUSE_JOYSTICK=no
20594 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20595 fi
20596 fi
20597 fi
20598
20599 if test "$wxUSE_JOYSTICK" = "yes"; then
20600 cat >> confdefs.h <<\EOF
20601 #define wxUSE_JOYSTICK 1
20602 EOF
20603
20604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20605 fi
20606 fi
20607
20608
20609 if test "$TOOLKIT" != "MSW"; then
20610
20611 HAVE_DL_FUNCS=0
20612 HAVE_SHL_FUNCS=0
20613 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20614 if test "$USE_DARWIN" = 1; then
20615 HAVE_DL_FUNCS=1
20616 else
20617 for ac_func in dlopen
20618 do
20619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20620 echo "configure:20621: checking for $ac_func" >&5
20621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20622 echo $ac_n "(cached) $ac_c" 1>&6
20623 else
20624 cat > conftest.$ac_ext <<EOF
20625 #line 20626 "configure"
20626 #include "confdefs.h"
20627 /* System header to define __stub macros and hopefully few prototypes,
20628 which can conflict with char $ac_func(); below. */
20629 #include <assert.h>
20630 /* Override any gcc2 internal prototype to avoid an error. */
20631 /* We use char because int might match the return type of a gcc2
20632 builtin and then its argument prototype would still apply. */
20633 char $ac_func();
20634
20635 int main() {
20636
20637 /* The GNU C library defines this for functions which it implements
20638 to always fail with ENOSYS. Some functions are actually named
20639 something starting with __ and the normal name is an alias. */
20640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20641 choke me
20642 #else
20643 $ac_func();
20644 #endif
20645
20646 ; return 0; }
20647 EOF
20648 if { (eval echo configure:20649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20649 rm -rf conftest*
20650 eval "ac_cv_func_$ac_func=yes"
20651 else
20652 echo "configure: failed program was:" >&5
20653 cat conftest.$ac_ext >&5
20654 rm -rf conftest*
20655 eval "ac_cv_func_$ac_func=no"
20656 fi
20657 rm -f conftest*
20658 fi
20659
20660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20661 echo "$ac_t""yes" 1>&6
20662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20663 cat >> confdefs.h <<EOF
20664 #define $ac_tr_func 1
20665 EOF
20666
20667 cat >> confdefs.h <<\EOF
20668 #define HAVE_DLOPEN 1
20669 EOF
20670
20671 HAVE_DL_FUNCS=1
20672
20673 else
20674 echo "$ac_t""no" 1>&6
20675 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20676 echo "configure:20677: checking for dlopen in -ldl" >&5
20677 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20679 echo $ac_n "(cached) $ac_c" 1>&6
20680 else
20681 ac_save_LIBS="$LIBS"
20682 LIBS="-ldl $LIBS"
20683 cat > conftest.$ac_ext <<EOF
20684 #line 20685 "configure"
20685 #include "confdefs.h"
20686 /* Override any gcc2 internal prototype to avoid an error. */
20687 /* We use char because int might match the return type of a gcc2
20688 builtin and then its argument prototype would still apply. */
20689 char dlopen();
20690
20691 int main() {
20692 dlopen()
20693 ; return 0; }
20694 EOF
20695 if { (eval echo configure:20696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20696 rm -rf conftest*
20697 eval "ac_cv_lib_$ac_lib_var=yes"
20698 else
20699 echo "configure: failed program was:" >&5
20700 cat conftest.$ac_ext >&5
20701 rm -rf conftest*
20702 eval "ac_cv_lib_$ac_lib_var=no"
20703 fi
20704 rm -f conftest*
20705 LIBS="$ac_save_LIBS"
20706
20707 fi
20708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20709 echo "$ac_t""yes" 1>&6
20710
20711 cat >> confdefs.h <<\EOF
20712 #define HAVE_DLOPEN 1
20713 EOF
20714
20715 HAVE_DL_FUNCS=1
20716 DL_LINK=" -ldl$DL_LINK"
20717
20718 else
20719 echo "$ac_t""no" 1>&6
20720
20721 for ac_func in shl_load
20722 do
20723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20724 echo "configure:20725: checking for $ac_func" >&5
20725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20726 echo $ac_n "(cached) $ac_c" 1>&6
20727 else
20728 cat > conftest.$ac_ext <<EOF
20729 #line 20730 "configure"
20730 #include "confdefs.h"
20731 /* System header to define __stub macros and hopefully few prototypes,
20732 which can conflict with char $ac_func(); below. */
20733 #include <assert.h>
20734 /* Override any gcc2 internal prototype to avoid an error. */
20735 /* We use char because int might match the return type of a gcc2
20736 builtin and then its argument prototype would still apply. */
20737 char $ac_func();
20738
20739 int main() {
20740
20741 /* The GNU C library defines this for functions which it implements
20742 to always fail with ENOSYS. Some functions are actually named
20743 something starting with __ and the normal name is an alias. */
20744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20745 choke me
20746 #else
20747 $ac_func();
20748 #endif
20749
20750 ; return 0; }
20751 EOF
20752 if { (eval echo configure:20753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20753 rm -rf conftest*
20754 eval "ac_cv_func_$ac_func=yes"
20755 else
20756 echo "configure: failed program was:" >&5
20757 cat conftest.$ac_ext >&5
20758 rm -rf conftest*
20759 eval "ac_cv_func_$ac_func=no"
20760 fi
20761 rm -f conftest*
20762 fi
20763
20764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20765 echo "$ac_t""yes" 1>&6
20766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20767 cat >> confdefs.h <<EOF
20768 #define $ac_tr_func 1
20769 EOF
20770
20771 cat >> confdefs.h <<\EOF
20772 #define HAVE_SHL_LOAD 1
20773 EOF
20774
20775 HAVE_SHL_FUNCS=1
20776
20777 else
20778 echo "$ac_t""no" 1>&6
20779 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20780 echo "configure:20781: checking for dld in -lshl_load" >&5
20781 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20783 echo $ac_n "(cached) $ac_c" 1>&6
20784 else
20785 ac_save_LIBS="$LIBS"
20786 LIBS="-lshl_load $LIBS"
20787 cat > conftest.$ac_ext <<EOF
20788 #line 20789 "configure"
20789 #include "confdefs.h"
20790 /* Override any gcc2 internal prototype to avoid an error. */
20791 /* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20793 char dld();
20794
20795 int main() {
20796 dld()
20797 ; return 0; }
20798 EOF
20799 if { (eval echo configure:20800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20800 rm -rf conftest*
20801 eval "ac_cv_lib_$ac_lib_var=yes"
20802 else
20803 echo "configure: failed program was:" >&5
20804 cat conftest.$ac_ext >&5
20805 rm -rf conftest*
20806 eval "ac_cv_lib_$ac_lib_var=no"
20807 fi
20808 rm -f conftest*
20809 LIBS="$ac_save_LIBS"
20810
20811 fi
20812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20813 echo "$ac_t""yes" 1>&6
20814
20815 HAVE_SHL_FUNCS=1
20816 DL_LINK=" -ldld$DL_LINK"
20817
20818 else
20819 echo "$ac_t""no" 1>&6
20820 fi
20821
20822
20823 fi
20824 done
20825
20826
20827 fi
20828
20829
20830 fi
20831 done
20832
20833
20834 if test "$HAVE_DL_FUNCS" = 1; then
20835 for ac_func in dlerror
20836 do
20837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20838 echo "configure:20839: checking for $ac_func" >&5
20839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20840 echo $ac_n "(cached) $ac_c" 1>&6
20841 else
20842 cat > conftest.$ac_ext <<EOF
20843 #line 20844 "configure"
20844 #include "confdefs.h"
20845 /* System header to define __stub macros and hopefully few prototypes,
20846 which can conflict with char $ac_func(); below. */
20847 #include <assert.h>
20848 /* Override any gcc2 internal prototype to avoid an error. */
20849 /* We use char because int might match the return type of a gcc2
20850 builtin and then its argument prototype would still apply. */
20851 char $ac_func();
20852
20853 int main() {
20854
20855 /* The GNU C library defines this for functions which it implements
20856 to always fail with ENOSYS. Some functions are actually named
20857 something starting with __ and the normal name is an alias. */
20858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20859 choke me
20860 #else
20861 $ac_func();
20862 #endif
20863
20864 ; return 0; }
20865 EOF
20866 if { (eval echo configure:20867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20867 rm -rf conftest*
20868 eval "ac_cv_func_$ac_func=yes"
20869 else
20870 echo "configure: failed program was:" >&5
20871 cat conftest.$ac_ext >&5
20872 rm -rf conftest*
20873 eval "ac_cv_func_$ac_func=no"
20874 fi
20875 rm -f conftest*
20876 fi
20877
20878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20879 echo "$ac_t""yes" 1>&6
20880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20881 cat >> confdefs.h <<EOF
20882 #define $ac_tr_func 1
20883 EOF
20884 cat >> confdefs.h <<\EOF
20885 #define HAVE_DLERROR 1
20886 EOF
20887
20888 else
20889 echo "$ac_t""no" 1>&6
20890 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20891 echo "configure:20892: checking for dlerror in -ldl" >&5
20892 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20894 echo $ac_n "(cached) $ac_c" 1>&6
20895 else
20896 ac_save_LIBS="$LIBS"
20897 LIBS="-ldl $LIBS"
20898 cat > conftest.$ac_ext <<EOF
20899 #line 20900 "configure"
20900 #include "confdefs.h"
20901 /* Override any gcc2 internal prototype to avoid an error. */
20902 /* We use char because int might match the return type of a gcc2
20903 builtin and then its argument prototype would still apply. */
20904 char dlerror();
20905
20906 int main() {
20907 dlerror()
20908 ; return 0; }
20909 EOF
20910 if { (eval echo configure:20911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20911 rm -rf conftest*
20912 eval "ac_cv_lib_$ac_lib_var=yes"
20913 else
20914 echo "configure: failed program was:" >&5
20915 cat conftest.$ac_ext >&5
20916 rm -rf conftest*
20917 eval "ac_cv_lib_$ac_lib_var=no"
20918 fi
20919 rm -f conftest*
20920 LIBS="$ac_save_LIBS"
20921
20922 fi
20923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20924 echo "$ac_t""yes" 1>&6
20925 cat >> confdefs.h <<\EOF
20926 #define HAVE_DLERROR 1
20927 EOF
20928
20929 else
20930 echo "$ac_t""no" 1>&6
20931 fi
20932
20933 fi
20934 done
20935
20936 fi
20937 fi
20938
20939 if test "$HAVE_DL_FUNCS" = 0; then
20940 if test "$HAVE_SHL_FUNCS" = 0; then
20941 if test "$USE_UNIX" = 1; then
20942 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20943 wxUSE_DYNAMIC_LOADER=no
20944 wxUSE_DYNLIB_CLASS=no
20945 else
20946 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20947 fi
20948 fi
20949 fi
20950 fi
20951 fi
20952
20953 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20954 cat >> confdefs.h <<\EOF
20955 #define wxUSE_DYNAMIC_LOADER 1
20956 EOF
20957
20958 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20959 cat >> confdefs.h <<\EOF
20960 #define wxUSE_DYNLIB_CLASS 1
20961 EOF
20962
20963 fi
20964
20965
20966 if test "$wxUSE_FONTMAP" = "yes" ; then
20967 cat >> confdefs.h <<\EOF
20968 #define wxUSE_FONTMAP 1
20969 EOF
20970
20971 fi
20972
20973 if test "$wxUSE_UNICODE" = "yes" ; then
20974 cat >> confdefs.h <<\EOF
20975 #define wxUSE_UNICODE 1
20976 EOF
20977
20978
20979 if test "$wxUSE_MSW" != 1; then
20980 wxUSE_UNICODE_MSLU=no
20981 fi
20982
20983 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20984 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20985 echo "configure:20986: checking for main in -lunicows" >&5
20986 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20988 echo $ac_n "(cached) $ac_c" 1>&6
20989 else
20990 ac_save_LIBS="$LIBS"
20991 LIBS="-lunicows $LIBS"
20992 cat > conftest.$ac_ext <<EOF
20993 #line 20994 "configure"
20994 #include "confdefs.h"
20995
20996 int main() {
20997 main()
20998 ; return 0; }
20999 EOF
21000 if { (eval echo configure:21001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21001 rm -rf conftest*
21002 eval "ac_cv_lib_$ac_lib_var=yes"
21003 else
21004 echo "configure: failed program was:" >&5
21005 cat conftest.$ac_ext >&5
21006 rm -rf conftest*
21007 eval "ac_cv_lib_$ac_lib_var=no"
21008 fi
21009 rm -f conftest*
21010 LIBS="$ac_save_LIBS"
21011
21012 fi
21013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21014 echo "$ac_t""yes" 1>&6
21015
21016 cat >> confdefs.h <<\EOF
21017 #define wxUSE_UNICODE_MSLU 1
21018 EOF
21019
21020
21021 else
21022 echo "$ac_t""no" 1>&6
21023
21024 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21025 Applications will only run on Windows NT/2000/XP!" 1>&2
21026 wxUSE_UNICODE_MSLU=no
21027
21028 fi
21029
21030 fi
21031 fi
21032
21033 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21034 cat >> confdefs.h <<\EOF
21035 #define wxUSE_EXPERIMENTAL_PRINTF 1
21036 EOF
21037
21038 fi
21039
21040
21041
21042 IODBC_C_SRC=""
21043 if test "$wxUSE_ODBC" = "yes" ; then
21044 cat >> confdefs.h <<\EOF
21045 #define wxUSE_ODBC 1
21046 EOF
21047
21048 WXODBCFLAG="-D_IODBC_"
21049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
21050 fi
21051
21052
21053 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21054 cat >> confdefs.h <<\EOF
21055 #define wxUSE_POSTSCRIPT 1
21056 EOF
21057
21058 fi
21059
21060 cat >> confdefs.h <<\EOF
21061 #define wxUSE_AFM_FOR_POSTSCRIPT 1
21062 EOF
21063
21064
21065 cat >> confdefs.h <<\EOF
21066 #define wxUSE_NORMALIZED_PS_FONTS 1
21067 EOF
21068
21069
21070
21071 if test "$wxUSE_CONSTRAINTS" = "yes"; then
21072 cat >> confdefs.h <<\EOF
21073 #define wxUSE_CONSTRAINTS 1
21074 EOF
21075
21076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21077 fi
21078
21079 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21080
21081
21082 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21083 cat >> confdefs.h <<\EOF
21084 #define wxUSE_MDI_ARCHITECTURE 1
21085 EOF
21086
21087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21088 fi
21089 fi
21090
21091 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21092 cat >> confdefs.h <<\EOF
21093 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
21094 EOF
21095
21096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21097 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21099 fi
21100 fi
21101
21102 if test "$wxUSE_HELP" = "yes"; then
21103 cat >> confdefs.h <<\EOF
21104 #define wxUSE_HELP 1
21105 EOF
21106
21107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21108
21109 if test "$wxUSE_MSW" = 1; then
21110 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21111 cat >> confdefs.h <<\EOF
21112 #define wxUSE_MS_HTML_HELP 1
21113 EOF
21114
21115 fi
21116 fi
21117
21118 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21119 if test "$wxUSE_HTML" = "yes"; then
21120 cat >> confdefs.h <<\EOF
21121 #define wxUSE_WXHTML_HELP 1
21122 EOF
21123
21124 else
21125 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21126 wxUSE_WXHTML_HELP=no
21127 fi
21128 fi
21129 fi
21130
21131 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21132 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21133 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21134 else
21135 cat >> confdefs.h <<\EOF
21136 #define wxUSE_PRINTING_ARCHITECTURE 1
21137 EOF
21138
21139 fi
21140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21141 fi
21142
21143 if test "$wxUSE_PROLOGIO" = "yes" ; then
21144 cat >> confdefs.h <<\EOF
21145 #define wxUSE_PROLOGIO 1
21146 EOF
21147
21148 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21149 fi
21150
21151 if test "$wxUSE_RESOURCES" = "yes" ; then
21152 if test "$wxUSE_NANOX" = "yes"; then
21153 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
21154 else
21155 cat >> confdefs.h <<\EOF
21156 #define wxUSE_RESOURCES 1
21157 EOF
21158
21159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
21160 fi
21161 if test "$wxUSE_PROLOGIO" != "yes" ; then
21162 ALL_OBJECTS="$ALL_OBJECTS parser.o"
21163 fi
21164 fi
21165
21166 if test "$wxUSE_X_RESOURCES" = "yes"; then
21167 cat >> confdefs.h <<\EOF
21168 #define wxUSE_X_RESOURCES 1
21169 EOF
21170
21171 fi
21172
21173
21174 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21175 -o "$wxUSE_CLIPBOARD" = "yes" \
21176 -o "$wxUSE_OLE" = "yes" \
21177 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21178 for ac_hdr in ole2.h
21179 do
21180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21182 echo "configure:21183: checking for $ac_hdr" >&5
21183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21184 echo $ac_n "(cached) $ac_c" 1>&6
21185 else
21186 cat > conftest.$ac_ext <<EOF
21187 #line 21188 "configure"
21188 #include "confdefs.h"
21189 #include <$ac_hdr>
21190 EOF
21191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21192 { (eval echo configure:21193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21194 if test -z "$ac_err"; then
21195 rm -rf conftest*
21196 eval "ac_cv_header_$ac_safe=yes"
21197 else
21198 echo "$ac_err" >&5
21199 echo "configure: failed program was:" >&5
21200 cat conftest.$ac_ext >&5
21201 rm -rf conftest*
21202 eval "ac_cv_header_$ac_safe=no"
21203 fi
21204 rm -f conftest*
21205 fi
21206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21207 echo "$ac_t""yes" 1>&6
21208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21209 cat >> confdefs.h <<EOF
21210 #define $ac_tr_hdr 1
21211 EOF
21212
21213 else
21214 echo "$ac_t""no" 1>&6
21215 fi
21216 done
21217
21218
21219 if test "$ac_cv_header_ole2_h" = "yes" ; then
21220 if test "$GCC" = yes ; then
21221
21222 ac_ext=C
21223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21224 ac_cpp='$CXXCPP $CPPFLAGS'
21225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21227 cross_compiling=$ac_cv_prog_cxx_cross
21228
21229
21230 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21231 echo "configure:21232: checking if g++ requires -fvtable-thunks" >&5
21232 cat > conftest.$ac_ext <<EOF
21233 #line 21234 "configure"
21234 #include "confdefs.h"
21235 #include <windows.h>
21236 #include <ole2.h>
21237 int main() {
21238
21239 ; return 0; }
21240 EOF
21241 if { (eval echo configure:21242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21242 rm -rf conftest*
21243 echo "$ac_t""no" 1>&6
21244 else
21245 echo "configure: failed program was:" >&5
21246 cat conftest.$ac_ext >&5
21247 rm -rf conftest*
21248 echo "$ac_t""yes" 1>&6
21249 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21250 fi
21251 rm -f conftest*
21252 ac_ext=c
21253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21257 cross_compiling=$ac_cv_prog_cc_cross
21258
21259 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21260 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21261 cat >> confdefs.h <<\EOF
21262 #define wxUSE_OLE 1
21263 EOF
21264
21265
21266 fi
21267
21268 cat >> confdefs.h <<\EOF
21269 #define wxUSE_DATAOBJ 1
21270 EOF
21271
21272 else
21273 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21274
21275 wxUSE_CLIPBOARD=no
21276 wxUSE_DRAG_AND_DROP=no
21277 wxUSE_DATAOBJ=no
21278 wxUSE_OLE=no
21279 fi
21280
21281 if test "$wxUSE_METAFILE" = "yes"; then
21282 cat >> confdefs.h <<\EOF
21283 #define wxUSE_METAFILE 1
21284 EOF
21285
21286
21287 cat >> confdefs.h <<\EOF
21288 #define wxUSE_ENH_METAFILE 1
21289 EOF
21290
21291 fi
21292 fi
21293
21294 if test "$wxUSE_IPC" = "yes"; then
21295 if test "$wxUSE_SOCKETS" != "yes"; then
21296 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21297 fi
21298
21299 cat >> confdefs.h <<\EOF
21300 #define wxUSE_IPC 1
21301 EOF
21302
21303 fi
21304
21305 if test "$wxUSE_CLIPBOARD" = "yes"; then
21306 if test "$wxUSE_MGL" = 1; then
21307 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21308 wxUSE_CLIPBOARD=no
21309 fi
21310
21311 if test "$wxUSE_CLIPBOARD" = "yes"; then
21312 cat >> confdefs.h <<\EOF
21313 #define wxUSE_CLIPBOARD 1
21314 EOF
21315
21316
21317 cat >> confdefs.h <<\EOF
21318 #define wxUSE_DATAOBJ 1
21319 EOF
21320
21321 fi
21322 fi
21323
21324 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21325 if test "$wxUSE_GTK" = 1; then
21326 if test "$WXGTK12" != 1; then
21327 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21328 wxUSE_DRAG_AND_DROP=no
21329 fi
21330 fi
21331
21332 if test "$wxUSE_MOTIF" = 1; then
21333 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21334 wxUSE_DRAG_AND_DROP=no
21335 fi
21336
21337 if test "$wxUSE_X11" = 1; then
21338 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21339 wxUSE_DRAG_AND_DROP=no
21340 fi
21341
21342 if test "$wxUSE_MGL" = 1; then
21343 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21344 wxUSE_DRAG_AND_DROP=no
21345 fi
21346
21347 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21348 cat >> confdefs.h <<\EOF
21349 #define wxUSE_DRAG_AND_DROP 1
21350 EOF
21351
21352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21353 fi
21354
21355 fi
21356
21357 if test "$wxUSE_SPLINES" = "yes" ; then
21358 cat >> confdefs.h <<\EOF
21359 #define wxUSE_SPLINES 1
21360 EOF
21361
21362 fi
21363
21364
21365 USES_CONTROLS=0
21366 if test "$wxUSE_CONTROLS" = "yes"; then
21367 USES_CONTROLS=1
21368 fi
21369
21370 if test "$wxUSE_ACCEL" = "yes"; then
21371 cat >> confdefs.h <<\EOF
21372 #define wxUSE_ACCEL 1
21373 EOF
21374
21375 USES_CONTROLS=1
21376 fi
21377
21378 if test "$wxUSE_BUTTON" = "yes"; then
21379 cat >> confdefs.h <<\EOF
21380 #define wxUSE_BUTTON 1
21381 EOF
21382
21383 USES_CONTROLS=1
21384 fi
21385
21386 if test "$wxUSE_BMPBUTTON" = "yes"; then
21387 cat >> confdefs.h <<\EOF
21388 #define wxUSE_BMPBUTTON 1
21389 EOF
21390
21391 USES_CONTROLS=1
21392 fi
21393
21394 if test "$wxUSE_CALCTRL" = "yes"; then
21395 cat >> confdefs.h <<\EOF
21396 #define wxUSE_CALENDARCTRL 1
21397 EOF
21398
21399 USES_CONTROLS=1
21400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21401 fi
21402
21403 if test "$wxUSE_CARET" = "yes"; then
21404 cat >> confdefs.h <<\EOF
21405 #define wxUSE_CARET 1
21406 EOF
21407
21408 USES_CONTROLS=1
21409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21410 fi
21411
21412 if test "$wxUSE_COMBOBOX" = "yes"; then
21413 cat >> confdefs.h <<\EOF
21414 #define wxUSE_COMBOBOX 1
21415 EOF
21416
21417 USES_CONTROLS=1
21418 fi
21419
21420 if test "$wxUSE_CHOICE" = "yes"; then
21421 cat >> confdefs.h <<\EOF
21422 #define wxUSE_CHOICE 1
21423 EOF
21424
21425 USES_CONTROLS=1
21426 fi
21427
21428 if test "$wxUSE_CHECKBOX" = "yes"; then
21429 cat >> confdefs.h <<\EOF
21430 #define wxUSE_CHECKBOX 1
21431 EOF
21432
21433 USES_CONTROLS=1
21434 fi
21435
21436 if test "$wxUSE_CHECKLST" = "yes"; then
21437 cat >> confdefs.h <<\EOF
21438 #define wxUSE_CHECKLISTBOX 1
21439 EOF
21440
21441 USES_CONTROLS=1
21442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21443 fi
21444
21445 if test "$wxUSE_DISPLAY" = "yes"; then
21446 cat >> confdefs.h <<\EOF
21447 #define wxUSE_DISPLAY 1
21448 EOF
21449
21450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21451 fi
21452
21453 if test "$wxUSE_GAUGE" = "yes"; then
21454 cat >> confdefs.h <<\EOF
21455 #define wxUSE_GAUGE 1
21456 EOF
21457
21458 USES_CONTROLS=1
21459 fi
21460
21461 if test "$wxUSE_NEW_GRID" = "yes"; then
21462 wxUSE_GRID="yes"
21463 cat >> confdefs.h <<\EOF
21464 #define wxUSE_NEW_GRID 1
21465 EOF
21466
21467 USES_CONTROLS=1
21468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21469 fi
21470
21471 if test "$wxUSE_GRID" = "yes"; then
21472 cat >> confdefs.h <<\EOF
21473 #define wxUSE_GRID 1
21474 EOF
21475
21476 USES_CONTROLS=1
21477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21478 fi
21479
21480 if test "$wxUSE_IMAGLIST" = "yes"; then
21481 cat >> confdefs.h <<\EOF
21482 #define wxUSE_IMAGLIST 1
21483 EOF
21484
21485 fi
21486
21487 if test "$wxUSE_LISTBOX" = "yes"; then
21488 cat >> confdefs.h <<\EOF
21489 #define wxUSE_LISTBOX 1
21490 EOF
21491
21492 USES_CONTROLS=1
21493 fi
21494
21495 if test "$wxUSE_LISTCTRL" = "yes"; then
21496 if test "$wxUSE_IMAGLIST" = "yes"; then
21497 cat >> confdefs.h <<\EOF
21498 #define wxUSE_LISTCTRL 1
21499 EOF
21500
21501 USES_CONTROLS=1
21502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21503 else
21504 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21505 fi
21506 fi
21507
21508 if test "$wxUSE_NOTEBOOK" = "yes"; then
21509 cat >> confdefs.h <<\EOF
21510 #define wxUSE_NOTEBOOK 1
21511 EOF
21512
21513 USES_CONTROLS=1
21514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21515 fi
21516
21517 if test "$wxUSE_PROPSHEET" = "yes"; then
21518 cat >> confdefs.h <<\EOF
21519 #define wxUSE_PROPSHEET 1
21520 EOF
21521
21522 USES_CONTROLS=1
21523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21524 fi
21525
21526 if test "$wxUSE_RADIOBOX" = "yes"; then
21527 cat >> confdefs.h <<\EOF
21528 #define wxUSE_RADIOBOX 1
21529 EOF
21530
21531 USES_CONTROLS=1
21532 fi
21533
21534 if test "$wxUSE_RADIOBTN" = "yes"; then
21535 cat >> confdefs.h <<\EOF
21536 #define wxUSE_RADIOBTN 1
21537 EOF
21538
21539 USES_CONTROLS=1
21540 fi
21541
21542 if test "$wxUSE_SASH" = "yes"; then
21543 cat >> confdefs.h <<\EOF
21544 #define wxUSE_SASH 1
21545 EOF
21546
21547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21548 fi
21549
21550 if test "$wxUSE_SCROLLBAR" = "yes"; then
21551 cat >> confdefs.h <<\EOF
21552 #define wxUSE_SCROLLBAR 1
21553 EOF
21554
21555 USES_CONTROLS=1
21556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21557 fi
21558
21559 if test "$wxUSE_SLIDER" = "yes"; then
21560 cat >> confdefs.h <<\EOF
21561 #define wxUSE_SLIDER 1
21562 EOF
21563
21564 USES_CONTROLS=1
21565 fi
21566
21567 if test "$wxUSE_SPINBTN" = "yes"; then
21568 cat >> confdefs.h <<\EOF
21569 #define wxUSE_SPINBTN 1
21570 EOF
21571
21572 USES_CONTROLS=1
21573 fi
21574
21575 if test "$wxUSE_SPINCTRL" = "yes"; then
21576 cat >> confdefs.h <<\EOF
21577 #define wxUSE_SPINCTRL 1
21578 EOF
21579
21580 USES_CONTROLS=1
21581 fi
21582
21583 if test "$wxUSE_SPLITTER" = "yes"; then
21584 cat >> confdefs.h <<\EOF
21585 #define wxUSE_SPLITTER 1
21586 EOF
21587
21588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21589 fi
21590
21591 if test "$wxUSE_STATBMP" = "yes"; then
21592 cat >> confdefs.h <<\EOF
21593 #define wxUSE_STATBMP 1
21594 EOF
21595
21596 USES_CONTROLS=1
21597 fi
21598
21599 if test "$wxUSE_STATBOX" = "yes"; then
21600 cat >> confdefs.h <<\EOF
21601 #define wxUSE_STATBOX 1
21602 EOF
21603
21604 USES_CONTROLS=1
21605 fi
21606
21607 if test "$wxUSE_STATTEXT" = "yes"; then
21608 cat >> confdefs.h <<\EOF
21609 #define wxUSE_STATTEXT 1
21610 EOF
21611
21612 USES_CONTROLS=1
21613 fi
21614
21615 if test "$wxUSE_STATLINE" = "yes"; then
21616 cat >> confdefs.h <<\EOF
21617 #define wxUSE_STATLINE 1
21618 EOF
21619
21620 USES_CONTROLS=1
21621 fi
21622
21623 if test "$wxUSE_STATUSBAR" = "yes"; then
21624 cat >> confdefs.h <<\EOF
21625 #define wxUSE_STATUSBAR 1
21626 EOF
21627
21628 USES_CONTROLS=1
21629
21630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21631 fi
21632
21633 if test "$wxUSE_TABDIALOG" = "yes"; then
21634 cat >> confdefs.h <<\EOF
21635 #define wxUSE_TAB_DIALOG 1
21636 EOF
21637
21638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21639 fi
21640
21641 if test "$wxUSE_TEXTCTRL" = "yes"; then
21642 cat >> confdefs.h <<\EOF
21643 #define wxUSE_TEXTCTRL 1
21644 EOF
21645
21646 USES_CONTROLS=1
21647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21648 fi
21649
21650 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21651 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21652 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21653 wxUSE_TOGGLEBTN=no
21654 fi
21655 if test "$wxUSE_UNIVERSAL" = "yes"; then
21656 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21657 wxUSE_TOGGLEBTN=no
21658 fi
21659
21660 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21661 cat >> confdefs.h <<\EOF
21662 #define wxUSE_TOGGLEBTN 1
21663 EOF
21664
21665 USES_CONTROLS=1
21666 fi
21667 fi
21668
21669 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21670 cat >> confdefs.h <<\EOF
21671 #define wxUSE_TOOLBAR_SIMPLE 1
21672 EOF
21673
21674 wxUSE_TOOLBAR="yes"
21675 USES_CONTROLS=1
21676 fi
21677
21678 if test "$wxUSE_TOOLBAR" = "yes"; then
21679 cat >> confdefs.h <<\EOF
21680 #define wxUSE_TOOLBAR 1
21681 EOF
21682
21683 USES_CONTROLS=1
21684
21685 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21686 wxUSE_TOOLBAR_NATIVE="yes"
21687 fi
21688
21689 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21690 cat >> confdefs.h <<\EOF
21691 #define wxUSE_TOOLBAR_NATIVE 1
21692 EOF
21693
21694 USES_CONTROLS=1
21695 fi
21696
21697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21698 fi
21699
21700 if test "$wxUSE_TOOLTIPS" = "yes"; then
21701 if test "$wxUSE_MOTIF" = 1; then
21702 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21703 else
21704 if test "$wxUSE_UNIVERSAL" = "yes"; then
21705 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21706 else
21707 cat >> confdefs.h <<\EOF
21708 #define wxUSE_TOOLTIPS 1
21709 EOF
21710
21711 fi
21712 fi
21713 fi
21714
21715 if test "$wxUSE_TREECTRL" = "yes"; then
21716 if test "$wxUSE_IMAGLIST" = "yes"; then
21717 cat >> confdefs.h <<\EOF
21718 #define wxUSE_TREECTRL 1
21719 EOF
21720
21721 USES_CONTROLS=1
21722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21723 else
21724 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21725 fi
21726 fi
21727
21728 if test "$wxUSE_POPUPWIN" = "yes"; then
21729 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21730 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21731 else
21732 if test "$wxUSE_MOTIF" = 1; then
21733 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21734 else
21735 if test "$wxUSE_PM" = 1; then
21736 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21737 else
21738 cat >> confdefs.h <<\EOF
21739 #define wxUSE_POPUPWIN 1
21740 EOF
21741
21742
21743 USES_CONTROLS=1
21744 fi
21745 fi
21746 fi
21747 fi
21748
21749 if test "$wxUSE_TIPWINDOW" = "yes"; then
21750 if test "$wxUSE_PM" = 1; then
21751 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21752 else
21753 cat >> confdefs.h <<\EOF
21754 #define wxUSE_TIPWINDOW 1
21755 EOF
21756
21757 fi
21758 fi
21759
21760 if test "$USES_CONTROLS" = 1; then
21761 cat >> confdefs.h <<\EOF
21762 #define wxUSE_CONTROLS 1
21763 EOF
21764
21765 fi
21766
21767
21768 if test "$wxUSE_TREELAYOUT" = "yes"; then
21769 cat >> confdefs.h <<\EOF
21770 #define wxUSE_TREELAYOUT 1
21771 EOF
21772
21773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21774 fi
21775
21776 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21777 cat >> confdefs.h <<\EOF
21778 #define wxUSE_DRAGIMAGE 1
21779 EOF
21780
21781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21782 fi
21783
21784 if test "$wxUSE_MENUS" = "yes"; then
21785 cat >> confdefs.h <<\EOF
21786 #define wxUSE_MENUS 1
21787 EOF
21788
21789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21790 fi
21791
21792 if test "$wxUSE_METAFILE" = "yes"; then
21793 cat >> confdefs.h <<\EOF
21794 #define wxUSE_METAFILE 1
21795 EOF
21796
21797 fi
21798
21799 if test "$wxUSE_MIMETYPE" = "yes"; then
21800 cat >> confdefs.h <<\EOF
21801 #define wxUSE_MIMETYPE 1
21802 EOF
21803
21804 fi
21805
21806 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21807 cat >> confdefs.h <<\EOF
21808 #define wxUSE_SYSTEM_OPTIONS 1
21809 EOF
21810
21811 if test "$TOOLKIT" = "MSW"; then
21812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21813 fi
21814
21815 fi
21816
21817 if test "$wxUSE_PROTOCOL" = "yes"; then
21818 if test "$wxUSE_SOCKETS" != "yes"; then
21819 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21820 wxUSE_PROTOCOL=no
21821 fi
21822
21823 if test "$wxUSE_PROTOCOL" = "yes"; then
21824 cat >> confdefs.h <<\EOF
21825 #define wxUSE_PROTOCOL 1
21826 EOF
21827
21828
21829 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21830 cat >> confdefs.h <<\EOF
21831 #define wxUSE_PROTOCOL_HTTP 1
21832 EOF
21833
21834 fi
21835 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21836 cat >> confdefs.h <<\EOF
21837 #define wxUSE_PROTOCOL_FTP 1
21838 EOF
21839
21840 fi
21841 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21842 cat >> confdefs.h <<\EOF
21843 #define wxUSE_PROTOCOL_FILE 1
21844 EOF
21845
21846 fi
21847 fi
21848 fi
21849
21850 if test "$wxUSE_URL" = "yes"; then
21851 if test "$wxUSE_PROTOCOL" != "yes"; then
21852 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21853 wxUSE_URL=no
21854 fi
21855 if test "$wxUSE_URL" = "yes"; then
21856 cat >> confdefs.h <<\EOF
21857 #define wxUSE_URL 1
21858 EOF
21859
21860 fi
21861 fi
21862
21863 if test "$wxUSE_MINIFRAME" = "yes"; then
21864 cat >> confdefs.h <<\EOF
21865 #define wxUSE_MINIFRAME 1
21866 EOF
21867
21868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21869 fi
21870
21871 if test "$wxUSE_HTML" = "yes"; then
21872 cat >> confdefs.h <<\EOF
21873 #define wxUSE_HTML 1
21874 EOF
21875
21876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21877 fi
21878
21879 if test "$wxUSE_VALIDATORS" = "yes"; then
21880 cat >> confdefs.h <<\EOF
21881 #define wxUSE_VALIDATORS 1
21882 EOF
21883
21884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21885 fi
21886
21887 if test "$wxUSE_PALETTE" = "yes" ; then
21888 cat >> confdefs.h <<\EOF
21889 #define wxUSE_PALETTE 1
21890 EOF
21891
21892 fi
21893
21894 if test "$wxUSE_IMAGE" = "yes" ; then
21895 cat >> confdefs.h <<\EOF
21896 #define wxUSE_IMAGE 1
21897 EOF
21898
21899 fi
21900
21901 if test "$wxUSE_GIF" = "yes" ; then
21902 cat >> confdefs.h <<\EOF
21903 #define wxUSE_GIF 1
21904 EOF
21905
21906 fi
21907
21908 if test "$wxUSE_PCX" = "yes" ; then
21909 cat >> confdefs.h <<\EOF
21910 #define wxUSE_PCX 1
21911 EOF
21912
21913 fi
21914
21915 if test "$wxUSE_IFF" = "yes" ; then
21916 cat >> confdefs.h <<\EOF
21917 #define wxUSE_IFF 1
21918 EOF
21919
21920 fi
21921
21922 if test "$wxUSE_PNM" = "yes" ; then
21923 cat >> confdefs.h <<\EOF
21924 #define wxUSE_PNM 1
21925 EOF
21926
21927 fi
21928
21929 if test "$wxUSE_XPM" = "yes" ; then
21930 cat >> confdefs.h <<\EOF
21931 #define wxUSE_XPM 1
21932 EOF
21933
21934 fi
21935
21936 if test "$wxUSE_ICO_CUR" = "yes" ; then
21937 cat >> confdefs.h <<\EOF
21938 #define wxUSE_ICO_CUR 1
21939 EOF
21940
21941 fi
21942
21943 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21944 LIBS=" -lunicows $LIBS"
21945 fi
21946
21947
21948 if test "$wxUSE_CHOICEDLG" = "yes"; then
21949 cat >> confdefs.h <<\EOF
21950 #define wxUSE_CHOICEDLG 1
21951 EOF
21952
21953 fi
21954
21955 if test "$wxUSE_COLOURDLG" = "yes"; then
21956 cat >> confdefs.h <<\EOF
21957 #define wxUSE_COLOURDLG 1
21958 EOF
21959
21960 fi
21961
21962 if test "$wxUSE_FILEDLG" = "yes"; then
21963 cat >> confdefs.h <<\EOF
21964 #define wxUSE_FILEDLG 1
21965 EOF
21966
21967 fi
21968
21969 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21970 cat >> confdefs.h <<\EOF
21971 #define wxUSE_FINDREPLDLG 1
21972 EOF
21973
21974 fi
21975
21976 if test "$wxUSE_FONTDLG" = "yes"; then
21977 cat >> confdefs.h <<\EOF
21978 #define wxUSE_FONTDLG 1
21979 EOF
21980
21981 fi
21982
21983 if test "$wxUSE_DIRDLG" = "yes"; then
21984 if test "$wxUSE_TREECTRL" != "yes"; then
21985 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21986 else
21987 cat >> confdefs.h <<\EOF
21988 #define wxUSE_DIRDLG 1
21989 EOF
21990
21991 fi
21992 fi
21993
21994 if test "$wxUSE_MSGDLG" = "yes"; then
21995 cat >> confdefs.h <<\EOF
21996 #define wxUSE_MSGDLG 1
21997 EOF
21998
21999 fi
22000
22001 if test "$wxUSE_NUMBERDLG" = "yes"; then
22002 cat >> confdefs.h <<\EOF
22003 #define wxUSE_NUMBERDLG 1
22004 EOF
22005
22006 fi
22007
22008 if test "$wxUSE_PROGRESSDLG" = "yes"; then
22009 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22010 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22011 else
22012 cat >> confdefs.h <<\EOF
22013 #define wxUSE_PROGRESSDLG 1
22014 EOF
22015
22016 fi
22017 fi
22018
22019 if test "$wxUSE_SPLASH" = "yes"; then
22020 cat >> confdefs.h <<\EOF
22021 #define wxUSE_SPLASH 1
22022 EOF
22023
22024 fi
22025
22026 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22027 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22028 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22029 else
22030 cat >> confdefs.h <<\EOF
22031 #define wxUSE_STARTUP_TIPS 1
22032 EOF
22033
22034 fi
22035 fi
22036
22037 if test "$wxUSE_TEXTDLG" = "yes"; then
22038 cat >> confdefs.h <<\EOF
22039 #define wxUSE_TEXTDLG 1
22040 EOF
22041
22042 fi
22043
22044 if test "$wxUSE_WIZARDDLG" = "yes"; then
22045 cat >> confdefs.h <<\EOF
22046 #define wxUSE_WIZARDDLG 1
22047 EOF
22048
22049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22050 fi
22051
22052
22053 if test "$cross_compiling" = "yes"; then
22054 OSINFO="\"$host\""
22055 else
22056 OSINFO=`uname -s -r -m`
22057 OSINFO="\"$OSINFO\""
22058 fi
22059
22060 cat >> confdefs.h <<EOF
22061 #define WXWIN_OS_DESCRIPTION $OSINFO
22062 EOF
22063
22064
22065
22066 if test "x$prefix" != "xNONE"; then
22067 wxPREFIX=$prefix
22068 else
22069 wxPREFIX=$ac_default_prefix
22070 fi
22071
22072 cat >> confdefs.h <<EOF
22073 #define wxINSTALL_PREFIX "$wxPREFIX"
22074 EOF
22075
22076
22077 top_builddir=`pwd`
22078
22079
22080
22081
22082 if test "$wxUSE_MAC" = 1 ; then
22083 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22084 fi
22085 if test "$wxUSE_COCOA" = 1 ; then
22086 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22087 fi
22088
22089
22090 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22091
22092 have_cos=0
22093 have_floor=0
22094 for ac_func in cos
22095 do
22096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22097 echo "configure:22098: checking for $ac_func" >&5
22098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22099 echo $ac_n "(cached) $ac_c" 1>&6
22100 else
22101 cat > conftest.$ac_ext <<EOF
22102 #line 22103 "configure"
22103 #include "confdefs.h"
22104 /* System header to define __stub macros and hopefully few prototypes,
22105 which can conflict with char $ac_func(); below. */
22106 #include <assert.h>
22107 /* Override any gcc2 internal prototype to avoid an error. */
22108 /* We use char because int might match the return type of a gcc2
22109 builtin and then its argument prototype would still apply. */
22110 char $ac_func();
22111
22112 int main() {
22113
22114 /* The GNU C library defines this for functions which it implements
22115 to always fail with ENOSYS. Some functions are actually named
22116 something starting with __ and the normal name is an alias. */
22117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22118 choke me
22119 #else
22120 $ac_func();
22121 #endif
22122
22123 ; return 0; }
22124 EOF
22125 if { (eval echo configure:22126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22126 rm -rf conftest*
22127 eval "ac_cv_func_$ac_func=yes"
22128 else
22129 echo "configure: failed program was:" >&5
22130 cat conftest.$ac_ext >&5
22131 rm -rf conftest*
22132 eval "ac_cv_func_$ac_func=no"
22133 fi
22134 rm -f conftest*
22135 fi
22136
22137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22138 echo "$ac_t""yes" 1>&6
22139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22140 cat >> confdefs.h <<EOF
22141 #define $ac_tr_func 1
22142 EOF
22143 have_cos=1
22144 else
22145 echo "$ac_t""no" 1>&6
22146 fi
22147 done
22148
22149 for ac_func in floor
22150 do
22151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22152 echo "configure:22153: checking for $ac_func" >&5
22153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22154 echo $ac_n "(cached) $ac_c" 1>&6
22155 else
22156 cat > conftest.$ac_ext <<EOF
22157 #line 22158 "configure"
22158 #include "confdefs.h"
22159 /* System header to define __stub macros and hopefully few prototypes,
22160 which can conflict with char $ac_func(); below. */
22161 #include <assert.h>
22162 /* Override any gcc2 internal prototype to avoid an error. */
22163 /* We use char because int might match the return type of a gcc2
22164 builtin and then its argument prototype would still apply. */
22165 char $ac_func();
22166
22167 int main() {
22168
22169 /* The GNU C library defines this for functions which it implements
22170 to always fail with ENOSYS. Some functions are actually named
22171 something starting with __ and the normal name is an alias. */
22172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22173 choke me
22174 #else
22175 $ac_func();
22176 #endif
22177
22178 ; return 0; }
22179 EOF
22180 if { (eval echo configure:22181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22181 rm -rf conftest*
22182 eval "ac_cv_func_$ac_func=yes"
22183 else
22184 echo "configure: failed program was:" >&5
22185 cat conftest.$ac_ext >&5
22186 rm -rf conftest*
22187 eval "ac_cv_func_$ac_func=no"
22188 fi
22189 rm -f conftest*
22190 fi
22191
22192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22193 echo "$ac_t""yes" 1>&6
22194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22195 cat >> confdefs.h <<EOF
22196 #define $ac_tr_func 1
22197 EOF
22198 have_floor=1
22199 else
22200 echo "$ac_t""no" 1>&6
22201 fi
22202 done
22203
22204 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22205 echo "configure:22206: checking if floating point functions link without -lm" >&5
22206 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22207 echo "$ac_t""yes" 1>&6
22208 else
22209 echo "$ac_t""no" 1>&6
22210 LIBS="$LIBS -lm"
22211 # use different functions to avoid configure caching
22212 have_sin=0
22213 have_ceil=0
22214 for ac_func in sin
22215 do
22216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22217 echo "configure:22218: checking for $ac_func" >&5
22218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22219 echo $ac_n "(cached) $ac_c" 1>&6
22220 else
22221 cat > conftest.$ac_ext <<EOF
22222 #line 22223 "configure"
22223 #include "confdefs.h"
22224 /* System header to define __stub macros and hopefully few prototypes,
22225 which can conflict with char $ac_func(); below. */
22226 #include <assert.h>
22227 /* Override any gcc2 internal prototype to avoid an error. */
22228 /* We use char because int might match the return type of a gcc2
22229 builtin and then its argument prototype would still apply. */
22230 char $ac_func();
22231
22232 int main() {
22233
22234 /* The GNU C library defines this for functions which it implements
22235 to always fail with ENOSYS. Some functions are actually named
22236 something starting with __ and the normal name is an alias. */
22237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22238 choke me
22239 #else
22240 $ac_func();
22241 #endif
22242
22243 ; return 0; }
22244 EOF
22245 if { (eval echo configure:22246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22246 rm -rf conftest*
22247 eval "ac_cv_func_$ac_func=yes"
22248 else
22249 echo "configure: failed program was:" >&5
22250 cat conftest.$ac_ext >&5
22251 rm -rf conftest*
22252 eval "ac_cv_func_$ac_func=no"
22253 fi
22254 rm -f conftest*
22255 fi
22256
22257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22258 echo "$ac_t""yes" 1>&6
22259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22260 cat >> confdefs.h <<EOF
22261 #define $ac_tr_func 1
22262 EOF
22263 have_sin=1
22264 else
22265 echo "$ac_t""no" 1>&6
22266 fi
22267 done
22268
22269 for ac_func in ceil
22270 do
22271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22272 echo "configure:22273: checking for $ac_func" >&5
22273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22274 echo $ac_n "(cached) $ac_c" 1>&6
22275 else
22276 cat > conftest.$ac_ext <<EOF
22277 #line 22278 "configure"
22278 #include "confdefs.h"
22279 /* System header to define __stub macros and hopefully few prototypes,
22280 which can conflict with char $ac_func(); below. */
22281 #include <assert.h>
22282 /* Override any gcc2 internal prototype to avoid an error. */
22283 /* We use char because int might match the return type of a gcc2
22284 builtin and then its argument prototype would still apply. */
22285 char $ac_func();
22286
22287 int main() {
22288
22289 /* The GNU C library defines this for functions which it implements
22290 to always fail with ENOSYS. Some functions are actually named
22291 something starting with __ and the normal name is an alias. */
22292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22293 choke me
22294 #else
22295 $ac_func();
22296 #endif
22297
22298 ; return 0; }
22299 EOF
22300 if { (eval echo configure:22301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22301 rm -rf conftest*
22302 eval "ac_cv_func_$ac_func=yes"
22303 else
22304 echo "configure: failed program was:" >&5
22305 cat conftest.$ac_ext >&5
22306 rm -rf conftest*
22307 eval "ac_cv_func_$ac_func=no"
22308 fi
22309 rm -f conftest*
22310 fi
22311
22312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22313 echo "$ac_t""yes" 1>&6
22314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22315 cat >> confdefs.h <<EOF
22316 #define $ac_tr_func 1
22317 EOF
22318 have_ceil=1
22319 else
22320 echo "$ac_t""no" 1>&6
22321 fi
22322 done
22323
22324 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22325 echo "configure:22326: checking if floating point functions link with -lm" >&5
22326 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22327 echo "$ac_t""yes" 1>&6
22328 else
22329 echo "$ac_t""no" 1>&6
22330 # not sure we should warn the user, crash, etc.
22331 fi
22332 fi
22333
22334 if test "$wxUSE_GUI" = "yes"; then
22335
22336 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22337
22338
22339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22340 drawing dynamic erase event exec font image \
22341 minimal propsize rotate widgets"
22342
22343 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22344 else
22345 SAMPLES_SUBDIRS="console"
22346 fi
22347
22348
22349 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22350 -I\${top_srcdir}/include \
22351 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22352 $TOOLKIT_INCLUDE"
22353
22354 if test "$wxUSE_GTK" = 1; then
22355 WXCONFIG_INCLUDE=
22356 else
22357 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22358 fi
22359
22360 if test "$GXX" = yes ; then
22361 CXXWARNINGS="-Wall"
22362
22363 if test "$wxUSE_NO_DEPS" = "no" ; then
22364 CFLAGS="-MMD $CFLAGS"
22365 CXXFLAGS="-MMD $CXXFLAGS"
22366 fi
22367 fi
22368
22369 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22370
22371 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22372 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22373 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22374 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22375
22376 LDFLAGS="$LDFLAGS $PROFILE"
22377
22378 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22481 echo "configure:22482: checking whether ${MAKE-make} sets \${MAKE}" >&5
22482 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22483 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22484 echo $ac_n "(cached) $ac_c" 1>&6
22485 else
22486 cat > conftestmake <<\EOF
22487 all:
22488 @echo 'ac_maketemp="${MAKE}"'
22489 EOF
22490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22491 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22492 if test -n "$ac_maketemp"; then
22493 eval ac_cv_prog_make_${ac_make}_set=yes
22494 else
22495 eval ac_cv_prog_make_${ac_make}_set=no
22496 fi
22497 rm -f conftestmake
22498 fi
22499 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22500 echo "$ac_t""yes" 1>&6
22501 SET_MAKE=
22502 else
22503 echo "$ac_t""no" 1>&6
22504 SET_MAKE="MAKE=${MAKE-make}"
22505 fi
22506
22507
22508 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22509 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22510 fi
22511
22512
22513
22514 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22515 wx_cv_if_gnu_make=$IF_GNU_MAKE
22516 wx_cv_path_ifs=$PATH_IFS
22517 wx_cv_program_ext=$PROGRAM_EXT
22518 wx_cv_target_library=$WX_TARGET_LIBRARY
22519 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22520 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22521 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22522 wx_cv_release=${WX_RELEASE}
22523 wx_cv_current=${WX_CURRENT}
22524 wx_cv_revision=${WX_REVISION}
22525 wx_cv_age=${WX_AGE}
22526 wx_cv_use_gui=${USE_GUI}
22527 wx_cv_use_resources=${wxUSE_RESOURCES}
22528 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22529 wx_cv_path_ifs wx_cv_program_ext \
22530 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22531 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22532 wx_cv_use_gui wx_cv_use_resources
22533
22534 subdirs="demos samples utils contrib"
22535
22536
22537 trap '' 1 2 15
22538 cat > confcache <<\EOF
22539 # This file is a shell script that caches the results of configure
22540 # tests run on this system so they can be shared between configure
22541 # scripts and configure runs. It is not useful on other systems.
22542 # If it contains results you don't want to keep, you may remove or edit it.
22543 #
22544 # By default, configure uses ./config.cache as the cache file,
22545 # creating it if it does not exist already. You can give configure
22546 # the --cache-file=FILE option to use a different cache file; that is
22547 # what configure does when it calls configure scripts in
22548 # subdirectories, so they share the cache.
22549 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22550 # config.status only pays attention to the cache file if you give it the
22551 # --recheck option to rerun configure.
22552 #
22553 EOF
22554 # The following way of writing the cache mishandles newlines in values,
22555 # but we know of no workaround that is simple, portable, and efficient.
22556 # So, don't put newlines in cache variables' values.
22557 # Ultrix sh set writes to stderr and can't be redirected directly,
22558 # and sets the high bit in the cache file unless we assign to the vars.
22559 (set) 2>&1 |
22560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22561 *ac_space=\ *)
22562 # `set' does not quote correctly, so add quotes (double-quote substitution
22563 # turns \\\\ into \\, and sed turns \\ into \).
22564 sed -n \
22565 -e "s/'/'\\\\''/g" \
22566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22567 ;;
22568 *)
22569 # `set' quotes correctly as required by POSIX, so do not add quotes.
22570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22571 ;;
22572 esac >> confcache
22573 if cmp -s $cache_file confcache; then
22574 :
22575 else
22576 if test -w $cache_file; then
22577 echo "updating cache $cache_file"
22578 cat confcache > $cache_file
22579 else
22580 echo "not updating unwritable cache $cache_file"
22581 fi
22582 fi
22583 rm -f confcache
22584
22585 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22586
22587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22588 # Let make expand exec_prefix.
22589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22590
22591 # Any assignment to VPATH causes Sun make to only execute
22592 # the first set of double-colon rules, so remove it if not needed.
22593 # If there is a colon in the path, we need to keep it.
22594 if test "x$srcdir" = x.; then
22595 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22596 fi
22597
22598 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22599
22600 DEFS=-DHAVE_CONFIG_H
22601
22602 # Without the "./", some shells look in PATH for config.status.
22603 : ${CONFIG_STATUS=./config.status}
22604
22605 echo creating $CONFIG_STATUS
22606 rm -f $CONFIG_STATUS
22607 cat > $CONFIG_STATUS <<EOF
22608 #! /bin/sh
22609 # Generated automatically by configure.
22610 # Run this file to recreate the current configuration.
22611 # This directory was configured as follows,
22612 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22613 #
22614 # $0 $ac_configure_args
22615 #
22616 # Compiler output produced by configure, useful for debugging
22617 # configure, is in ./config.log if it exists.
22618
22619 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22620 for ac_option
22621 do
22622 case "\$ac_option" in
22623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22624 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22625 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22626 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22627 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22628 exit 0 ;;
22629 -help | --help | --hel | --he | --h)
22630 echo "\$ac_cs_usage"; exit 0 ;;
22631 *) echo "\$ac_cs_usage"; exit 1 ;;
22632 esac
22633 done
22634
22635 ac_given_srcdir=$srcdir
22636 ac_given_INSTALL="$INSTALL"
22637
22638 trap 'rm -fr `echo "
22639 wx-config
22640 version-script
22641 src/make.env
22642 src/makeprog.env
22643 src/makelib.env
22644 Makefile
22645 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22646 EOF
22647 cat >> $CONFIG_STATUS <<EOF
22648
22649 # Protect against being on the right side of a sed subst in config.status.
22650 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22651 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22652 $ac_vpsub
22653 $extrasub
22654 s%@SHELL@%$SHELL%g
22655 s%@CFLAGS@%$CFLAGS%g
22656 s%@CPPFLAGS@%$CPPFLAGS%g
22657 s%@CXXFLAGS@%$CXXFLAGS%g
22658 s%@FFLAGS@%$FFLAGS%g
22659 s%@DEFS@%$DEFS%g
22660 s%@LDFLAGS@%$LDFLAGS%g
22661 s%@LIBS@%$LIBS%g
22662 s%@exec_prefix@%$exec_prefix%g
22663 s%@prefix@%$prefix%g
22664 s%@program_transform_name@%$program_transform_name%g
22665 s%@bindir@%$bindir%g
22666 s%@sbindir@%$sbindir%g
22667 s%@libexecdir@%$libexecdir%g
22668 s%@datadir@%$datadir%g
22669 s%@sysconfdir@%$sysconfdir%g
22670 s%@sharedstatedir@%$sharedstatedir%g
22671 s%@localstatedir@%$localstatedir%g
22672 s%@libdir@%$libdir%g
22673 s%@includedir@%$includedir%g
22674 s%@oldincludedir@%$oldincludedir%g
22675 s%@infodir@%$infodir%g
22676 s%@mandir@%$mandir%g
22677 s%@host@%$host%g
22678 s%@host_alias@%$host_alias%g
22679 s%@host_cpu@%$host_cpu%g
22680 s%@host_vendor@%$host_vendor%g
22681 s%@host_os@%$host_os%g
22682 s%@target@%$target%g
22683 s%@target_alias@%$target_alias%g
22684 s%@target_cpu@%$target_cpu%g
22685 s%@target_vendor@%$target_vendor%g
22686 s%@target_os@%$target_os%g
22687 s%@build@%$build%g
22688 s%@build_alias@%$build_alias%g
22689 s%@build_cpu@%$build_cpu%g
22690 s%@build_vendor@%$build_vendor%g
22691 s%@build_os@%$build_os%g
22692 s%@CC@%$CC%g
22693 s%@CPP@%$CPP%g
22694 s%@CXX@%$CXX%g
22695 s%@RANLIB@%$RANLIB%g
22696 s%@AR@%$AR%g
22697 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22698 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22699 s%@INSTALL_DATA@%$INSTALL_DATA%g
22700 s%@STRIP@%$STRIP%g
22701 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22702 s%@YACC@%$YACC%g
22703 s%@LEX@%$LEX%g
22704 s%@LEXLIB@%$LEXLIB%g
22705 s%@LN_S@%$LN_S%g
22706 s%@CXXCPP@%$CXXCPP%g
22707 s%@PKG_CONFIG@%$PKG_CONFIG%g
22708 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22709 s%@GTK_LIBS@%$GTK_LIBS%g
22710 s%@GTK_CONFIG@%$GTK_CONFIG%g
22711 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22712 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22713 s%@X_CFLAGS@%$X_CFLAGS%g
22714 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22715 s%@X_LIBS@%$X_LIBS%g
22716 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22717 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22718 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22719 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22720 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22721 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22722 s%@RESCOMP@%$RESCOMP%g
22723 s%@DEREZ@%$DEREZ%g
22724 s%@SETFILE@%$SETFILE%g
22725 s%@LIBICONV@%$LIBICONV%g
22726 s%@LEX_STEM@%$LEX_STEM%g
22727 s%@PATH_IFS@%$PATH_IFS%g
22728 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22729 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22730 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22731 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22732 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22733 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22734 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22735 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22736 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22737 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22738 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22739 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22740 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22741 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22742 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22743 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22744 s%@WX_ALL@%$WX_ALL%g
22745 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22746 s%@SHARED_LD@%$SHARED_LD%g
22747 s%@PIC_FLAG@%$PIC_FLAG%g
22748 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22749 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22750 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22751 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22752 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22753 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22754 s%@STATIC_FLAG@%$STATIC_FLAG%g
22755 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22756 s%@USE_GUI@%$USE_GUI%g
22757 s%@AFMINSTALL@%$AFMINSTALL%g
22758 s%@WIN32INSTALL@%$WIN32INSTALL%g
22759 s%@TOOLKIT@%$TOOLKIT%g
22760 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22761 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22762 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22763 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22764 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22765 s%@top_builddir@%$top_builddir%g
22766 s%@cross_compiling@%$cross_compiling%g
22767 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22768 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22769 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22770 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22771 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22772 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22773 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22774 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22775 s%@ALL_HEADERS@%$ALL_HEADERS%g
22776 s%@ALL_SOURCES@%$ALL_SOURCES%g
22777 s%@GUIDIST@%$GUIDIST%g
22778 s%@PORT_FILES@%$PORT_FILES%g
22779 s%@DISTDIR@%$DISTDIR%g
22780 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22781 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22782 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22783 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22784 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22785 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22786 s%@EXTRADEFS@%$EXTRADEFS%g
22787 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22788 s%@RESFLAGS@%$RESFLAGS%g
22789 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22790 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22791 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22792 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22793 s%@LIBWXMACRES@%$LIBWXMACRES%g
22794 s%@MACRESCOMP@%$MACRESCOMP%g
22795 s%@MACSETFILE@%$MACSETFILE%g
22796 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22797 s%@GCC@%$GCC%g
22798 s%@DLLTOOL@%$DLLTOOL%g
22799 s%@AS@%$AS%g
22800 s%@NM@%$NM%g
22801 s%@LD@%$LD%g
22802 s%@MAKEINFO@%$MAKEINFO%g
22803 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22804 s%@INSTALL_DIR@%$INSTALL_DIR%g
22805 s%@SET_MAKE@%$SET_MAKE%g
22806 s%@subdirs@%$subdirs%g
22807
22808 CEOF
22809 EOF
22810
22811 cat >> $CONFIG_STATUS <<\EOF
22812
22813 # Split the substitutions into bite-sized pieces for seds with
22814 # small command number limits, like on Digital OSF/1 and HP-UX.
22815 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22816 ac_file=1 # Number of current file.
22817 ac_beg=1 # First line for current file.
22818 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22819 ac_more_lines=:
22820 ac_sed_cmds=""
22821 while $ac_more_lines; do
22822 if test $ac_beg -gt 1; then
22823 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22824 else
22825 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22826 fi
22827 if test ! -s conftest.s$ac_file; then
22828 ac_more_lines=false
22829 rm -f conftest.s$ac_file
22830 else
22831 if test -z "$ac_sed_cmds"; then
22832 ac_sed_cmds="sed -f conftest.s$ac_file"
22833 else
22834 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22835 fi
22836 ac_file=`expr $ac_file + 1`
22837 ac_beg=$ac_end
22838 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22839 fi
22840 done
22841 if test -z "$ac_sed_cmds"; then
22842 ac_sed_cmds=cat
22843 fi
22844 EOF
22845
22846 cat >> $CONFIG_STATUS <<EOF
22847
22848 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22849 version-script
22850 src/make.env
22851 src/makeprog.env
22852 src/makelib.env
22853 Makefile
22854 "}
22855 EOF
22856 cat >> $CONFIG_STATUS <<\EOF
22857 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22859 case "$ac_file" in
22860 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22861 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22862 *) ac_file_in="${ac_file}.in" ;;
22863 esac
22864
22865 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22866
22867 # Remove last slash and all that follows it. Not all systems have dirname.
22868 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22869 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22870 # The file is in a subdirectory.
22871 test ! -d "$ac_dir" && mkdir "$ac_dir"
22872 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22873 # A "../" for each directory in $ac_dir_suffix.
22874 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22875 else
22876 ac_dir_suffix= ac_dots=
22877 fi
22878
22879 case "$ac_given_srcdir" in
22880 .) srcdir=.
22881 if test -z "$ac_dots"; then top_srcdir=.
22882 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22883 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22884 *) # Relative path.
22885 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22886 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22887 esac
22888
22889 case "$ac_given_INSTALL" in
22890 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22891 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22892 esac
22893
22894 echo creating "$ac_file"
22895 rm -f "$ac_file"
22896 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22897 case "$ac_file" in
22898 *Makefile*) ac_comsub="1i\\
22899 # $configure_input" ;;
22900 *) ac_comsub= ;;
22901 esac
22902
22903 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22904 sed -e "$ac_comsub
22905 s%@configure_input@%$configure_input%g
22906 s%@srcdir@%$srcdir%g
22907 s%@top_srcdir@%$top_srcdir%g
22908 s%@INSTALL@%$INSTALL%g
22909 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22910 fi; done
22911 rm -f conftest.s*
22912
22913 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22914 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22915 #
22916 # ac_d sets the value in "#define NAME VALUE" lines.
22917 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22918 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22919 ac_dC='\3'
22920 ac_dD='%g'
22921 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22922 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22923 ac_uB='\([ ]\)%\1#\2define\3'
22924 ac_uC=' '
22925 ac_uD='\4%g'
22926 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22927 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22928 ac_eB='$%\1#\2define\3'
22929 ac_eC=' '
22930 ac_eD='%g'
22931
22932 if test "${CONFIG_HEADERS+set}" != set; then
22933 EOF
22934 cat >> $CONFIG_STATUS <<EOF
22935 CONFIG_HEADERS="setup.h:setup.h.in"
22936 EOF
22937 cat >> $CONFIG_STATUS <<\EOF
22938 fi
22939 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22941 case "$ac_file" in
22942 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22943 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22944 *) ac_file_in="${ac_file}.in" ;;
22945 esac
22946
22947 echo creating $ac_file
22948
22949 rm -f conftest.frag conftest.in conftest.out
22950 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22951 cat $ac_file_inputs > conftest.in
22952
22953 EOF
22954
22955 # Transform confdefs.h into a sed script conftest.vals that substitutes
22956 # the proper values into config.h.in to produce config.h. And first:
22957 # Protect against being on the right side of a sed subst in config.status.
22958 # Protect against being in an unquoted here document in config.status.
22959 rm -f conftest.vals
22960 cat > conftest.hdr <<\EOF
22961 s/[\\&%]/\\&/g
22962 s%[\\$`]%\\&%g
22963 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22964 s%ac_d%ac_u%gp
22965 s%ac_u%ac_e%gp
22966 EOF
22967 sed -n -f conftest.hdr confdefs.h > conftest.vals
22968 rm -f conftest.hdr
22969
22970 # This sed command replaces #undef with comments. This is necessary, for
22971 # example, in the case of _POSIX_SOURCE, which is predefined and required
22972 # on some systems where configure will not decide to define it.
22973 cat >> conftest.vals <<\EOF
22974 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22975 EOF
22976
22977 # Break up conftest.vals because some shells have a limit on
22978 # the size of here documents, and old seds have small limits too.
22979
22980 rm -f conftest.tail
22981 while :
22982 do
22983 ac_lines=`grep -c . conftest.vals`
22984 # grep -c gives empty output for an empty file on some AIX systems.
22985 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22986 # Write a limited-size here document to conftest.frag.
22987 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22988 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22989 echo 'CEOF
22990 sed -f conftest.frag conftest.in > conftest.out
22991 rm -f conftest.in
22992 mv conftest.out conftest.in
22993 ' >> $CONFIG_STATUS
22994 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22995 rm -f conftest.vals
22996 mv conftest.tail conftest.vals
22997 done
22998 rm -f conftest.vals
22999
23000 cat >> $CONFIG_STATUS <<\EOF
23001 rm -f conftest.frag conftest.h
23002 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23003 cat conftest.in >> conftest.h
23004 rm -f conftest.in
23005 if cmp -s $ac_file conftest.h 2>/dev/null; then
23006 echo "$ac_file is unchanged"
23007 rm -f conftest.h
23008 else
23009 # Remove last slash and all that follows it. Not all systems have dirname.
23010 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23011 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23012 # The file is in a subdirectory.
23013 test ! -d "$ac_dir" && mkdir "$ac_dir"
23014 fi
23015 rm -f $ac_file
23016 mv conftest.h $ac_file
23017 fi
23018 fi; done
23019
23020 EOF
23021 cat >> $CONFIG_STATUS <<EOF
23022
23023 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23024 LN_S="${LN_S}"
23025
23026
23027 EOF
23028 cat >> $CONFIG_STATUS <<\EOF
23029
23030 if test ! -h wx-config; then
23031 chmod +x wx-config
23032 mv wx-config wx${TOOLCHAIN_NAME}-config
23033 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23034 fi
23035
23036 if test ! -d lib; then
23037 mkdir lib
23038 fi
23039 if test ! -d lib/wx; then
23040 mkdir lib/wx
23041 fi
23042 if test ! -d lib/wx/include; then
23043 mkdir lib/wx/include
23044 fi
23045 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23046 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23047 fi
23048 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23049 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23050 fi
23051 if test -f setup.h; then
23052 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23053 fi
23054
23055 exit 0
23056 EOF
23057 chmod +x $CONFIG_STATUS
23058 rm -fr confdefs* $ac_clean_files
23059 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23060
23061 if test "$no_recursion" != yes; then
23062
23063 # Remove --cache-file and --srcdir arguments so they do not pile up.
23064 ac_sub_configure_args=
23065 ac_prev=
23066 for ac_arg in $ac_configure_args; do
23067 if test -n "$ac_prev"; then
23068 ac_prev=
23069 continue
23070 fi
23071 case "$ac_arg" in
23072 -cache-file | --cache-file | --cache-fil | --cache-fi \
23073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23074 ac_prev=cache_file ;;
23075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23077 ;;
23078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23079 ac_prev=srcdir ;;
23080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23081 ;;
23082 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23083 esac
23084 done
23085
23086 for ac_config_dir in demos samples utils contrib; do
23087
23088 # Do not complain, so a configure script can configure whichever
23089 # parts of a large source tree are present.
23090 if test ! -d $srcdir/$ac_config_dir; then
23091 continue
23092 fi
23093
23094 echo configuring in $ac_config_dir
23095
23096 case "$srcdir" in
23097 .) ;;
23098 *)
23099 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23100 else
23101 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23102 fi
23103 ;;
23104 esac
23105
23106 ac_popdir=`pwd`
23107 cd $ac_config_dir
23108
23109 # A "../" for each directory in /$ac_config_dir.
23110 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23111
23112 case "$srcdir" in
23113 .) # No --srcdir option. We are building in place.
23114 ac_sub_srcdir=$srcdir ;;
23115 /*) # Absolute path.
23116 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23117 *) # Relative path.
23118 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23119 esac
23120
23121 # Check for guested configure; otherwise get Cygnus style configure.
23122 if test -f $ac_sub_srcdir/configure; then
23123 ac_sub_configure=$ac_sub_srcdir/configure
23124 elif test -f $ac_sub_srcdir/configure.in; then
23125 ac_sub_configure=$ac_configure
23126 else
23127 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23128 ac_sub_configure=
23129 fi
23130
23131 # The recursion is here.
23132 if test -n "$ac_sub_configure"; then
23133
23134 # Make the cache file name correct relative to the subdirectory.
23135 case "$cache_file" in
23136 /*) ac_sub_cache_file=$cache_file ;;
23137 *) # Relative path.
23138 ac_sub_cache_file="$ac_dots$cache_file" ;;
23139 esac
23140 case "$ac_given_INSTALL" in
23141 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23142 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23143 esac
23144
23145 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23146 # The eval makes quoting arguments work.
23147 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23148 then :
23149 else
23150 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23151 fi
23152 fi
23153
23154 cd $ac_popdir
23155 done
23156 fi
23157
23158
23159 echo
23160 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23161 echo ""
23162 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23163
23164 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23165 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23166 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23167
23168 echo " What level of wxWindows compatibility should be enabled?"
23169 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23170 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23171 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23172
23173 echo " Which libraries should wxWindows use?"
23174 echo " jpeg ${wxUSE_LIBJPEG-none}"
23175 echo " png ${wxUSE_LIBPNG-none}"
23176 echo " regex ${wxUSE_REGEX}"
23177 echo " tiff ${wxUSE_LIBTIFF-none}"
23178 echo " zlib ${wxUSE_ZLIB}"
23179
23180 echo ""
23181