]> git.saurik.com Git - wxWidgets.git/blob - configure
allow TABbing into multiline text controls even if they're not editable
[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 # Configure paths for GTK+
63 # Owen Taylor 1997-2001
64
65
66
67 # Configure paths for GTK+
68 # Owen Taylor 97-11-3
69
70
71
72
73
74
75
76
77 # Guess values for system-dependent variables and create Makefiles.
78 # Generated automatically using autoconf version 2.13
79 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80 #
81 # This configure script is free software; the Free Software Foundation
82 # gives unlimited permission to copy, distribute and modify it.
83
84 # Defaults:
85 ac_help=
86 ac_default_prefix=/usr/local
87 # Any additions from configure.in:
88 ac_help="$ac_help
89 --enable-gui use GUI classes"
90 ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92 ac_help="$ac_help
93 --with-gtk use GTK+"
94 ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96 ac_help="$ac_help
97 --with-mac use Mac OS X"
98 ac_help="$ac_help
99 --with-wine use WINE"
100 ac_help="$ac_help
101 --with-msw use MS-Windows"
102 ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104 ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106 ac_help="$ac_help
107 --with-microwin use MicroWindows"
108 ac_help="$ac_help
109 --with-x11 use X11"
110 ac_help="$ac_help
111 --enable-nanox use NanoX"
112 ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114 ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116 ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118 ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120 ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122 ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124 ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126 ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128 ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130 ac_help="$ac_help
131 --enable-shared create shared library code"
132 ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134 ac_help="$ac_help
135 --enable-optimise create optimised code"
136 ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138 ac_help="$ac_help
139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
140 ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142 ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144 ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146 ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148 ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150 ac_help="$ac_help
151 --enable-profile create code with profiling information"
152 ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154 ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156 ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158 ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160 ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162 ac_help="$ac_help
163 --disable-compat22 disable wxWindows 2.2 compatibility"
164 ac_help="$ac_help
165 --enable-rpath=DIR output the rpath flag from wx-config"
166 ac_help="$ac_help
167 --enable-intl use internationalization system"
168 ac_help="$ac_help
169 --enable-config use wxConfig (and derived) classes"
170 ac_help="$ac_help
171 --enable-protocols use wxProtocol and derived classes"
172 ac_help="$ac_help
173 --enable-ftp use wxFTP (requires wxProtocol"
174 ac_help="$ac_help
175 --enable-http use wxHTTP (requires wxProtocol"
176 ac_help="$ac_help
177 --enable-fileproto use wxFileProto class (requires wxProtocol"
178 ac_help="$ac_help
179 --enable-sockets use socket/network classes"
180 ac_help="$ac_help
181 --enable-ole use OLE classes"
182 ac_help="$ac_help
183 --enable-dataobj use data object classes"
184 ac_help="$ac_help
185 --enable-ipc use interprocess communication (wxSocket etc.)"
186 ac_help="$ac_help
187 --enable-cmdline use wxCmdLineParser class"
188 ac_help="$ac_help
189 --enable-datetime use wxDateTime class"
190 ac_help="$ac_help
191 --enable-timedate use obsolete wxDate/wxTime classes"
192 ac_help="$ac_help
193 --enable-stopwatch use wxStopWatch class"
194 ac_help="$ac_help
195 --enable-dialupman use dialup network classes"
196 ac_help="$ac_help
197 --enable-apple_ieee use the Apple IEEE codec"
198 ac_help="$ac_help
199 --enable-timer use wxTimer class"
200 ac_help="$ac_help
201 --enable-wave use wxWave class"
202 ac_help="$ac_help
203 --enable-fraction use wxFraction class"
204 ac_help="$ac_help
205 --enable-dynlib use wxLibrary class for DLL loading"
206 ac_help="$ac_help
207 --enable-dynamicloader use (new) wxDynamicLibrary class"
208 ac_help="$ac_help
209 --enable-longlong use wxLongLong class"
210 ac_help="$ac_help
211 --enable-geometry use geometry class"
212 ac_help="$ac_help
213 --enable-log use logging system"
214 ac_help="$ac_help
215 --enable-streams use wxStream etc classes"
216 ac_help="$ac_help
217 --enable-file use wxFile classes"
218 ac_help="$ac_help
219 --enable-ffile use wxFFile classes"
220 ac_help="$ac_help
221 --enable-textbuf use wxTextBuffer class"
222 ac_help="$ac_help
223 --enable-textfile use wxTextFile class"
224 ac_help="$ac_help
225 --enable-fontmap use font encodings conversion classes"
226 ac_help="$ac_help
227 --enable-unicode compile wxString with Unicode support"
228 ac_help="$ac_help
229 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
230 ac_help="$ac_help
231 --enable-wxprintfv use wxWindows implementation of vprintf()"
232 ac_help="$ac_help
233 --enable-std_iostreams use standard C++ stream classes"
234 ac_help="$ac_help
235 --enable-filesystem use virtual file systems classes"
236 ac_help="$ac_help
237 --enable-fs_inet use virtual HTTP/FTP filesystems"
238 ac_help="$ac_help
239 --enable-fs_zip use virtual ZIP filesystems"
240 ac_help="$ac_help
241 --enable-zipstream use wxZipInputStream"
242 ac_help="$ac_help
243 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
244 ac_help="$ac_help
245 --enable-snglinst use wxSingleInstanceChecker class"
246 ac_help="$ac_help
247 --enable-mimetype use wxMimeTypesManager"
248 ac_help="$ac_help
249 --enable-sysoptions use wxSystemOptions"
250 ac_help="$ac_help
251 --enable-url use wxURL class"
252 ac_help="$ac_help
253 --enable-protocol use wxProtocol class"
254 ac_help="$ac_help
255 --enable-protocol-http HTTP support in wxProtocol"
256 ac_help="$ac_help
257 --enable-protocol-ftp FTP support in wxProtocol"
258 ac_help="$ac_help
259 --enable-protocol-file FILE support in wxProtocol"
260 ac_help="$ac_help
261 --enable-threads use threads"
262 ac_help="$ac_help
263 --enable-docview use document view architecture"
264 ac_help="$ac_help
265 --enable-help use help subsystem"
266 ac_help="$ac_help
267 --enable-mshtmlhelp use MS HTML Help (win32)"
268 ac_help="$ac_help
269 --enable-html use wxHTML sub-library"
270 ac_help="$ac_help
271 --enable-htmlhelp use wxHTML-based help"
272 ac_help="$ac_help
273 --enable-constraints use layout-constraints system"
274 ac_help="$ac_help
275 --enable-printarch use printing architecture"
276 ac_help="$ac_help
277 --enable-mdi use multiple document interface architecture"
278 ac_help="$ac_help
279 --enable-loggui use standard GUI logger"
280 ac_help="$ac_help
281 --enable-logwin use wxLogWindow"
282 ac_help="$ac_help
283 --enable-logdialog use wxLogDialog"
284 ac_help="$ac_help
285 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
286 ac_help="$ac_help
287 --enable-prologio use Prolog IO library"
288 ac_help="$ac_help
289 --enable-resources use wxWindows resources"
290 ac_help="$ac_help
291 --enable-xresources use X resources for save (default for gtk+)"
292 ac_help="$ac_help
293 --enable-clipboard use wxClipboard classes"
294 ac_help="$ac_help
295 --enable-dnd use Drag'n'Drop classes"
296 ac_help="$ac_help
297 --enable-metafile use win32 metafiles"
298 ac_help="$ac_help
299 --enable-treelayout use wxTreeLayout classes"
300 ac_help="$ac_help
301 --enable-controls use all usual controls"
302 ac_help="$ac_help
303 --enable-accel use accelerators"
304 ac_help="$ac_help
305 --enable-button use wxButton class"
306 ac_help="$ac_help
307 --enable-bmpbutton use wxBitmapButton class"
308 ac_help="$ac_help
309 --enable-calendar use wxCalendarCtrl class"
310 ac_help="$ac_help
311 --enable-caret use wxCaret class"
312 ac_help="$ac_help
313 --enable-checkbox use wxCheckBox class"
314 ac_help="$ac_help
315 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
316 ac_help="$ac_help
317 --enable-choice use wxChoice class"
318 ac_help="$ac_help
319 --enable-combobox use wxComboBox classes"
320 ac_help="$ac_help
321 --enable-gauge use wxGauge class"
322 ac_help="$ac_help
323 --enable-grid use wxGrid class"
324 ac_help="$ac_help
325 --enable-newgrid use new wxGrid class"
326 ac_help="$ac_help
327 --enable-imaglist use wxImageList class"
328 ac_help="$ac_help
329 --enable-listbox use wxListBox class"
330 ac_help="$ac_help
331 --enable-listctrl use wxListCtrl class"
332 ac_help="$ac_help
333 --enable-notebook use wxNotebook class"
334 ac_help="$ac_help
335 --enable-propsheet use wxPropertySheet class"
336 ac_help="$ac_help
337 --enable-radiobox use wxRadioBox class"
338 ac_help="$ac_help
339 --enable-radiobtn use wxRadioButton class"
340 ac_help="$ac_help
341 --enable-sash use wxSashWindow class"
342 ac_help="$ac_help
343 --enable-scrollbar use wxScrollBar class and scrollable windows"
344 ac_help="$ac_help
345 --enable-slider use wxSlider class"
346 ac_help="$ac_help
347 --enable-spinbtn use wxSpinButton class"
348 ac_help="$ac_help
349 --enable-spinctrl use wxSpinCtrl class"
350 ac_help="$ac_help
351 --enable-splitter use wxSplitterWindow class"
352 ac_help="$ac_help
353 --enable-statbmp use wxStaticBitmap class"
354 ac_help="$ac_help
355 --enable-statbox use wxStaticBox class"
356 ac_help="$ac_help
357 --enable-statline use wxStaticLine class"
358 ac_help="$ac_help
359 --enable-stattext use wxStaticText class"
360 ac_help="$ac_help
361 --enable-statusbar use wxStatusBar class"
362 ac_help="$ac_help
363 --enable-tabdialog use wxTabControl class"
364 ac_help="$ac_help
365 --enable-textctrl use wxTextCtrl class"
366 ac_help="$ac_help
367 --enable-togglebtn use wxToggleButton class"
368 ac_help="$ac_help
369 --enable-toolbar use wxToolBar class"
370 ac_help="$ac_help
371 --enable-tbarnative use native wxToolBar class"
372 ac_help="$ac_help
373 --enable-tbarsmpl use wxToolBarSimple class"
374 ac_help="$ac_help
375 --enable-treectrl use wxTreeCtrl class"
376 ac_help="$ac_help
377 --enable-tipwindow use wxTipWindow class"
378 ac_help="$ac_help
379 --enable-popupwin use wxPopUpWindow class"
380 ac_help="$ac_help
381 --enable-commondlg use all common dialogs"
382 ac_help="$ac_help
383 --enable-choicedlg use wxChoiceDialog"
384 ac_help="$ac_help
385 --enable-coldlg use wxColourDialog"
386 ac_help="$ac_help
387 --enable-filedlg use wxFileDialog"
388 ac_help="$ac_help
389 --enable-finddlg use wxFindReplaceDialog"
390 ac_help="$ac_help
391 --enable-fontdlg use wxFontDialog"
392 ac_help="$ac_help
393 --enable-dirdlg use wxDirDialog"
394 ac_help="$ac_help
395 --enable-msgdlg use wxMessageDialog"
396 ac_help="$ac_help
397 --enable-numberdlg use wxNumberEntryDialog"
398 ac_help="$ac_help
399 --enable-splash use wxSplashScreen"
400 ac_help="$ac_help
401 --enable-textdlg use wxTextDialog"
402 ac_help="$ac_help
403 --enable-tipdlg use startup tips"
404 ac_help="$ac_help
405 --enable-progressdlg use wxProgressDialog"
406 ac_help="$ac_help
407 --enable-wizarddlg use wxWizard"
408 ac_help="$ac_help
409 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
410 ac_help="$ac_help
411 --enable-miniframe use wxMiniFrame class"
412 ac_help="$ac_help
413 --enable-tooltips use wxToolTip class"
414 ac_help="$ac_help
415 --enable-splines use spline drawing code"
416 ac_help="$ac_help
417 --enable-validators use wxValidator and derived classes"
418 ac_help="$ac_help
419 --enable-busyinfo use wxBusyInfo"
420 ac_help="$ac_help
421 --enable-joystick use wxJoystick (Linux only)"
422 ac_help="$ac_help
423 --enable-metafiles use wxMetaFile (Windows only)"
424 ac_help="$ac_help
425 --enable-dragimage use wxDragImage"
426 ac_help="$ac_help
427 --enable-palette use wxPalette class"
428 ac_help="$ac_help
429 --enable-image use wxImage class"
430 ac_help="$ac_help
431 --enable-gif use gif images (GIF file format)"
432 ac_help="$ac_help
433 --enable-pcx use pcx images (PCX file format)"
434 ac_help="$ac_help
435 --enable-iff use iff images (IFF file format)"
436 ac_help="$ac_help
437 --enable-pnm use pnm images (PNM file format)"
438 ac_help="$ac_help
439 --enable-xpm use xpm images (XPM file format)"
440 ac_help="$ac_help
441 --enable-icocur use Windows ICO and CUR formats"
442 ac_help="$ac_help
443 --disable-largefile omit support for large files"
444 ac_help="$ac_help
445 --disable-gtktest do not try to compile and run a test GTK+ program"
446 ac_help="$ac_help
447 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
448 ac_help="$ac_help
449 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
450 ac_help="$ac_help
451 --disable-gtktest Do not try to compile and run a test GTK program"
452 ac_help="$ac_help
453 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
454 ac_help="$ac_help
455 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
456 ac_help="$ac_help
457 --disable-gtktest Do not try to compile and run a test GTK program"
458 ac_help="$ac_help
459 --with-x use the X Window System"
460 ac_help="$ac_help
461 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
462
463 # Initialize some variables set by options.
464 # The variables have the same names as the options, with
465 # dashes changed to underlines.
466 build=NONE
467 cache_file=./config.cache
468 exec_prefix=NONE
469 host=NONE
470 no_create=
471 nonopt=NONE
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 target=NONE
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
496
497 # Initialize some other variables.
498 subdirs=
499 MFLAGS= MAKEFLAGS=
500 SHELL=${CONFIG_SHELL-/bin/sh}
501 # Maximum number of lines to put in a shell here document.
502 ac_max_here_lines=12
503
504 ac_prev=
505 for ac_option
506 do
507
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
514
515 case "$ac_option" in
516 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
517 *) ac_optarg= ;;
518 esac
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case "$ac_option" in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir="$ac_optarg" ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build="$ac_optarg" ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file="$ac_optarg" ;;
540
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir="$ac_optarg" ;;
546
547 -disable-* | --disable-*)
548 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
549 # Reject names that are not valid shell variable names.
550 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
551 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
552 fi
553 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
554 eval "enable_${ac_feature}=no" ;;
555
556 -enable-* | --enable-*)
557 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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 case "$ac_option" in
564 *=*) ;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_${ac_feature}='$ac_optarg'" ;;
568
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix="$ac_optarg" ;;
577
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
581
582 -help | --help | --hel | --he)
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
585 cat << EOF
586 Usage: configure [options] [host]
587 Options: [defaults in brackets after descriptions]
588 Configuration:
589 --cache-file=FILE cache test results in FILE
590 --help print this message
591 --no-create do not create output files
592 --quiet, --silent do not print \`checking...' messages
593 --version print the version of autoconf that created configure
594 Directory and file names:
595 --prefix=PREFIX install architecture-independent files in PREFIX
596 [$ac_default_prefix]
597 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 [same as prefix]
599 --bindir=DIR user executables in DIR [EPREFIX/bin]
600 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
601 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
602 --datadir=DIR read-only architecture-independent data in DIR
603 [PREFIX/share]
604 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
605 --sharedstatedir=DIR modifiable architecture-independent data in DIR
606 [PREFIX/com]
607 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
608 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
609 --includedir=DIR C header files in DIR [PREFIX/include]
610 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
611 --infodir=DIR info documentation in DIR [PREFIX/info]
612 --mandir=DIR man documentation in DIR [PREFIX/man]
613 --srcdir=DIR find the sources in DIR [configure dir or ..]
614 --program-prefix=PREFIX prepend PREFIX to installed program names
615 --program-suffix=SUFFIX append SUFFIX to installed program names
616 --program-transform-name=PROGRAM
617 run sed PROGRAM on installed program names
618 EOF
619 cat << EOF
620 Host type:
621 --build=BUILD configure for building on BUILD [BUILD=HOST]
622 --host=HOST configure for HOST [guessed]
623 --target=TARGET configure for TARGET [TARGET=HOST]
624 Features and packages:
625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
629 --x-includes=DIR X include files are in DIR
630 --x-libraries=DIR X library files are in DIR
631 EOF
632 if test -n "$ac_help"; then
633 echo "--enable and --with options recognized:$ac_help"
634 fi
635 exit 0 ;;
636
637 -host | --host | --hos | --ho)
638 ac_prev=host ;;
639 -host=* | --host=* | --hos=* | --ho=*)
640 host="$ac_optarg" ;;
641
642 -includedir | --includedir | --includedi | --included | --include \
643 | --includ | --inclu | --incl | --inc)
644 ac_prev=includedir ;;
645 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
646 | --includ=* | --inclu=* | --incl=* | --inc=*)
647 includedir="$ac_optarg" ;;
648
649 -infodir | --infodir | --infodi | --infod | --info | --inf)
650 ac_prev=infodir ;;
651 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
652 infodir="$ac_optarg" ;;
653
654 -libdir | --libdir | --libdi | --libd)
655 ac_prev=libdir ;;
656 -libdir=* | --libdir=* | --libdi=* | --libd=*)
657 libdir="$ac_optarg" ;;
658
659 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
660 | --libexe | --libex | --libe)
661 ac_prev=libexecdir ;;
662 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
663 | --libexe=* | --libex=* | --libe=*)
664 libexecdir="$ac_optarg" ;;
665
666 -localstatedir | --localstatedir | --localstatedi | --localstated \
667 | --localstate | --localstat | --localsta | --localst \
668 | --locals | --local | --loca | --loc | --lo)
669 ac_prev=localstatedir ;;
670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
671 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
672 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
673 localstatedir="$ac_optarg" ;;
674
675 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
676 ac_prev=mandir ;;
677 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
678 mandir="$ac_optarg" ;;
679
680 -nfp | --nfp | --nf)
681 # Obsolete; use --without-fp.
682 with_fp=no ;;
683
684 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
685 | --no-cr | --no-c)
686 no_create=yes ;;
687
688 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
689 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
690 no_recursion=yes ;;
691
692 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
693 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
694 | --oldin | --oldi | --old | --ol | --o)
695 ac_prev=oldincludedir ;;
696 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
697 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
698 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
699 oldincludedir="$ac_optarg" ;;
700
701 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
702 ac_prev=prefix ;;
703 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
704 prefix="$ac_optarg" ;;
705
706 -program-prefix | --program-prefix | --program-prefi | --program-pref \
707 | --program-pre | --program-pr | --program-p)
708 ac_prev=program_prefix ;;
709 -program-prefix=* | --program-prefix=* | --program-prefi=* \
710 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
711 program_prefix="$ac_optarg" ;;
712
713 -program-suffix | --program-suffix | --program-suffi | --program-suff \
714 | --program-suf | --program-su | --program-s)
715 ac_prev=program_suffix ;;
716 -program-suffix=* | --program-suffix=* | --program-suffi=* \
717 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
718 program_suffix="$ac_optarg" ;;
719
720 -program-transform-name | --program-transform-name \
721 | --program-transform-nam | --program-transform-na \
722 | --program-transform-n | --program-transform- \
723 | --program-transform | --program-transfor \
724 | --program-transfo | --program-transf \
725 | --program-trans | --program-tran \
726 | --progr-tra | --program-tr | --program-t)
727 ac_prev=program_transform_name ;;
728 -program-transform-name=* | --program-transform-name=* \
729 | --program-transform-nam=* | --program-transform-na=* \
730 | --program-transform-n=* | --program-transform-=* \
731 | --program-transform=* | --program-transfor=* \
732 | --program-transfo=* | --program-transf=* \
733 | --program-trans=* | --program-tran=* \
734 | --progr-tra=* | --program-tr=* | --program-t=*)
735 program_transform_name="$ac_optarg" ;;
736
737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
738 | -silent | --silent | --silen | --sile | --sil)
739 silent=yes ;;
740
741 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
742 ac_prev=sbindir ;;
743 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
744 | --sbi=* | --sb=*)
745 sbindir="$ac_optarg" ;;
746
747 -sharedstatedir | --sharedstatedir | --sharedstatedi \
748 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
749 | --sharedst | --shareds | --shared | --share | --shar \
750 | --sha | --sh)
751 ac_prev=sharedstatedir ;;
752 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
753 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
754 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
755 | --sha=* | --sh=*)
756 sharedstatedir="$ac_optarg" ;;
757
758 -site | --site | --sit)
759 ac_prev=site ;;
760 -site=* | --site=* | --sit=*)
761 site="$ac_optarg" ;;
762
763 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
764 ac_prev=srcdir ;;
765 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
766 srcdir="$ac_optarg" ;;
767
768 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
769 | --syscon | --sysco | --sysc | --sys | --sy)
770 ac_prev=sysconfdir ;;
771 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
772 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
773 sysconfdir="$ac_optarg" ;;
774
775 -target | --target | --targe | --targ | --tar | --ta | --t)
776 ac_prev=target ;;
777 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
778 target="$ac_optarg" ;;
779
780 -v | -verbose | --verbose | --verbos | --verbo | --verb)
781 verbose=yes ;;
782
783 -version | --version | --versio | --versi | --vers)
784 echo "configure generated by autoconf version 2.13"
785 exit 0 ;;
786
787 -with-* | --with-*)
788 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
789 # Reject names that are not valid shell variable names.
790 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
791 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
792 fi
793 ac_package=`echo $ac_package| sed 's/-/_/g'`
794 case "$ac_option" in
795 *=*) ;;
796 *) ac_optarg=yes ;;
797 esac
798 eval "with_${ac_package}='$ac_optarg'" ;;
799
800 -without-* | --without-*)
801 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
802 # Reject names that are not valid shell variable names.
803 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
804 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
805 fi
806 ac_package=`echo $ac_package| sed 's/-/_/g'`
807 eval "with_${ac_package}=no" ;;
808
809 --x)
810 # Obsolete; use --with-x.
811 with_x=yes ;;
812
813 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
814 | --x-incl | --x-inc | --x-in | --x-i)
815 ac_prev=x_includes ;;
816 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
817 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
818 x_includes="$ac_optarg" ;;
819
820 -x-libraries | --x-libraries | --x-librarie | --x-librari \
821 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
822 ac_prev=x_libraries ;;
823 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
824 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
825 x_libraries="$ac_optarg" ;;
826
827 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
828 ;;
829
830 *)
831 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
832 echo "configure: warning: $ac_option: invalid host type" 1>&2
833 fi
834 if test "x$nonopt" != xNONE; then
835 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
836 fi
837 nonopt="$ac_option"
838 ;;
839
840 esac
841 done
842
843 if test -n "$ac_prev"; then
844 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
845 fi
846
847 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
848
849 # File descriptor usage:
850 # 0 standard input
851 # 1 file creation
852 # 2 errors and warnings
853 # 3 some systems may open it to /dev/tty
854 # 4 used on the Kubota Titan
855 # 6 checking for... messages and results
856 # 5 compiler messages saved in config.log
857 if test "$silent" = yes; then
858 exec 6>/dev/null
859 else
860 exec 6>&1
861 fi
862 exec 5>./config.log
863
864 echo "\
865 This file contains any messages produced by compilers while
866 running configure, to aid debugging if configure makes a mistake.
867 " 1>&5
868
869 # Strip out --no-create and --no-recursion so they do not pile up.
870 # Also quote any args containing shell metacharacters.
871 ac_configure_args=
872 for ac_arg
873 do
874 case "$ac_arg" in
875 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
876 | --no-cr | --no-c) ;;
877 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
878 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
879 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
880 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
881 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
882 esac
883 done
884
885 # NLS nuisances.
886 # Only set these to C if already set. These must not be set unconditionally
887 # because not all systems understand e.g. LANG=C (notably SCO).
888 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
889 # Non-C LC_CTYPE values break the ctype check.
890 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
891 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
892 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
893 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
894
895 # confdefs.h avoids OS command line length limits that DEFS can exceed.
896 rm -rf conftest* confdefs.h
897 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
898 echo > confdefs.h
899
900 # A filename unique to this package, relative to the directory that
901 # configure is in, which we can look for to find out if srcdir is correct.
902 ac_unique_file=wx-config.in
903
904 # Find the source files, if location was not specified.
905 if test -z "$srcdir"; then
906 ac_srcdir_defaulted=yes
907 # Try the directory containing this script, then its parent.
908 ac_prog=$0
909 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
910 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
911 srcdir=$ac_confdir
912 if test ! -r $srcdir/$ac_unique_file; then
913 srcdir=..
914 fi
915 else
916 ac_srcdir_defaulted=no
917 fi
918 if test ! -r $srcdir/$ac_unique_file; then
919 if test "$ac_srcdir_defaulted" = yes; then
920 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
921 else
922 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
923 fi
924 fi
925 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
926
927 # Prefer explicitly selected file to automatically selected ones.
928 if test -z "$CONFIG_SITE"; then
929 if test "x$prefix" != xNONE; then
930 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
931 else
932 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
933 fi
934 fi
935 for ac_site_file in $CONFIG_SITE; do
936 if test -r "$ac_site_file"; then
937 echo "loading site script $ac_site_file"
938 . "$ac_site_file"
939 fi
940 done
941
942 if test -r "$cache_file"; then
943 echo "loading cache $cache_file"
944 . $cache_file
945 else
946 echo "creating cache $cache_file"
947 > $cache_file
948 fi
949
950 ac_ext=c
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
956
957 ac_exeext=
958 ac_objext=o
959 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
960 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
961 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
962 ac_n= ac_c='
963 ' ac_t=' '
964 else
965 ac_n=-n ac_c= ac_t=
966 fi
967 else
968 ac_n= ac_c='\c' ac_t=
969 fi
970
971
972
973 ac_aux_dir=
974 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
975 if test -f $ac_dir/install-sh; then
976 ac_aux_dir=$ac_dir
977 ac_install_sh="$ac_aux_dir/install-sh -c"
978 break
979 elif test -f $ac_dir/install.sh; then
980 ac_aux_dir=$ac_dir
981 ac_install_sh="$ac_aux_dir/install.sh -c"
982 break
983 fi
984 done
985 if test -z "$ac_aux_dir"; then
986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
987 fi
988 ac_config_guess=$ac_aux_dir/config.guess
989 ac_config_sub=$ac_aux_dir/config.sub
990 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
991
992
993 # Do some error checking and defaulting for the host and target type.
994 # The inputs are:
995 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
996 #
997 # The rules are:
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
999 # same time.
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 # as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1005
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1011 esac
1012
1013
1014 # Make sure we can run config.sub.
1015 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1016 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1017 fi
1018
1019 echo $ac_n "checking host system type""... $ac_c" 1>&6
1020 echo "configure:1021: checking host system type" >&5
1021
1022 host_alias=$host
1023 case "$host_alias" in
1024 NONE)
1025 case $nonopt in
1026 NONE)
1027 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1029 fi ;;
1030 *) host_alias=$nonopt ;;
1031 esac ;;
1032 esac
1033
1034 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$host" 1>&6
1039
1040 echo $ac_n "checking target system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking target system type" >&5
1042
1043 target_alias=$target
1044 case "$target_alias" in
1045 NONE)
1046 case $nonopt in
1047 NONE) target_alias=$host_alias ;;
1048 *) target_alias=$nonopt ;;
1049 esac ;;
1050 esac
1051
1052 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$target" 1>&6
1057
1058 echo $ac_n "checking build system type""... $ac_c" 1>&6
1059 echo "configure:1060: checking build system type" >&5
1060
1061 build_alias=$build
1062 case "$build_alias" in
1063 NONE)
1064 case $nonopt in
1065 NONE) build_alias=$host_alias ;;
1066 *) build_alias=$nonopt ;;
1067 esac ;;
1068 esac
1069
1070 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$build" 1>&6
1075
1076 test "$host_alias" != "$target_alias" &&
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1078 NONENONEs,x,x, &&
1079 program_prefix=${target_alias}-
1080
1081
1082
1083 WX_MAJOR_VERSION_NUMBER=2
1084 WX_MINOR_VERSION_NUMBER=3
1085 WX_RELEASE_NUMBER=4
1086
1087 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1088 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1089
1090 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1091
1092 WX_CURRENT=2
1093 WX_REVISION=0
1094 WX_AGE=0
1095
1096
1097
1098 USE_UNIX=1
1099 USE_WIN32=0
1100 USE_DOS=0
1101 USE_BEOS=0
1102 USE_MAC=0
1103
1104 USE_LINUX=
1105 USE_SGI=
1106 USE_HPUX=
1107 USE_SYSV=
1108 USE_SVR4=
1109 USE_AIX=
1110 USE_SUN=
1111 USE_SOLARIS=
1112 USE_SUNOS=
1113 USE_ALPHA=
1114 USE_OSF=
1115 USE_BSD=
1116 USE_DARWIN=
1117 USE_FREEBSD=
1118 USE_OPENBSD=
1119 USE_NETBSD=
1120 USE_VMS=
1121 USE_ULTRIX=
1122 USE_DATA_GENERAL=
1123
1124 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1125
1126 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1127
1128 DEFAULT_wxUSE_GTK=0
1129 DEFAULT_wxUSE_MAC=0
1130 DEFAULT_wxUSE_MGL=0
1131 DEFAULT_wxUSE_MICROWIN=0
1132 DEFAULT_wxUSE_MOTIF=0
1133 DEFAULT_wxUSE_MSW=0
1134 DEFAULT_wxUSE_PM=0
1135 DEFAULT_wxUSE_WINE=0
1136 DEFAULT_wxUSE_X11=0
1137
1138 DEFAULT_DEFAULT_wxUSE_GTK=0
1139 DEFAULT_DEFAULT_wxUSE_MAC=0
1140 DEFAULT_DEFAULT_wxUSE_MGL=0
1141 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1143 DEFAULT_DEFAULT_wxUSE_MSW=0
1144 DEFAULT_DEFAULT_wxUSE_PM=0
1145 DEFAULT_DEFAULT_wxUSE_WINE=0
1146 DEFAULT_DEFAULT_wxUSE_X11=0
1147
1148 PROGRAM_EXT=
1149 SO_SUFFIX=so
1150
1151 case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1156 SO_SUFFIX=sl
1157 cat >> confdefs.h <<\EOF
1158 #define __HPUX__ 1
1159 EOF
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
1164 cat >> confdefs.h <<\EOF
1165 #define __LINUX__ 1
1166 EOF
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
1171 cat >> confdefs.h <<\EOF
1172 #define __ALPHA__ 1
1173 EOF
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182 #define __SGI__ 1
1183 EOF
1184
1185 cat >> confdefs.h <<\EOF
1186 #define __SVR4__ 1
1187 EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196 #define __SUN__ 1
1197 EOF
1198
1199 cat >> confdefs.h <<\EOF
1200 #define __SOLARIS__ 1
1201 EOF
1202
1203 cat >> confdefs.h <<\EOF
1204 #define __SVR4__ 1
1205 EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
1214 cat >> confdefs.h <<\EOF
1215 #define __SUN__ 1
1216 EOF
1217
1218 cat >> confdefs.h <<\EOF
1219 #define __SUNOS__ 1
1220 EOF
1221
1222 cat >> confdefs.h <<\EOF
1223 #define __BSD__ 1
1224 EOF
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
1228 *-*-freebsd*)
1229 USE_BSD=1
1230 USE_FREEBSD=1
1231 cat >> confdefs.h <<\EOF
1232 #define __FREEBSD__ 1
1233 EOF
1234
1235 cat >> confdefs.h <<\EOF
1236 #define __BSD__ 1
1237 EOF
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
1244 cat >> confdefs.h <<\EOF
1245 #define __OPENBSD__ 1
1246 EOF
1247
1248 cat >> confdefs.h <<\EOF
1249 #define __BSD__ 1
1250 EOF
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
1257 cat >> confdefs.h <<\EOF
1258 #define __NETBSD__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __BSD__ 1
1263 EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
1270 cat >> confdefs.h <<\EOF
1271 #define __ALPHA__ 1
1272 EOF
1273
1274 cat >> confdefs.h <<\EOF
1275 #define __OSF__ 1
1276 EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
1284 cat >> confdefs.h <<\EOF
1285 #define __ALPHA__ 1
1286 EOF
1287
1288 cat >> confdefs.h <<\EOF
1289 #define __SVR4__ 1
1290 EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 cat >> confdefs.h <<\EOF
1298 #define __SYSV__ 1
1299 EOF
1300
1301 cat >> confdefs.h <<\EOF
1302 #define __SVR4__ 1
1303 EOF
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
1311 SO_SUFFIX=a
1312 cat >> confdefs.h <<\EOF
1313 #define __AIX__ 1
1314 EOF
1315
1316 cat >> confdefs.h <<\EOF
1317 #define __SYSV__ 1
1318 EOF
1319
1320 cat >> confdefs.h <<\EOF
1321 #define __SVR4__ 1
1322 EOF
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1327 *-*-cygwin* | *-*-mingw32* )
1328 SO_SUFFIX=dll
1329 PROGRAM_EXT=".exe"
1330 RESCOMP=windres
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
1337 cat >> confdefs.h <<\EOF
1338 #define __DOS__ 1
1339 EOF
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
1343 LIBS="$LIBS -lstdc++"
1344 ;;
1345
1346 *-pc-os2_emx | *-pc-os2-emx )
1347 cat >> confdefs.h <<\EOF
1348 #define __EMX__ 1
1349 EOF
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_PM=1
1353 ;;
1354
1355 powerpc-*-darwin* )
1356 USE_BSD=1
1357 USE_DARWIN=1
1358 SO_SUFFIX=dylib
1359 cat >> confdefs.h <<\EOF
1360 #define __BSD__ 1
1361 EOF
1362
1363 cat >> confdefs.h <<\EOF
1364 #define __DARWIN__ 1
1365 EOF
1366
1367 cat >> confdefs.h <<\EOF
1368 #define __POWERPC__ 1
1369 EOF
1370
1371 DEFAULT_DEFAULT_wxUSE_MAC=1
1372 ;;
1373
1374 *-*-beos* )
1375 USE_BEOS=1
1376 cat >> confdefs.h <<\EOF
1377 #define __BEOS__ 1
1378 EOF
1379
1380 ;;
1381
1382 *)
1383 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1384 esac
1385
1386
1387
1388
1389 wx_arg_cache_file="configarg.cache"
1390 echo "loading argument cache $wx_arg_cache_file"
1391 rm -f ${wx_arg_cache_file}.tmp
1392 touch ${wx_arg_cache_file}.tmp
1393 touch ${wx_arg_cache_file}
1394
1395
1396 DEBUG_CONFIGURE=0
1397 if test $DEBUG_CONFIGURE = 1; then
1398 DEFAULT_wxUSE_UNIVERSAL=no
1399
1400 DEFAULT_wxUSE_NANOX=no
1401
1402 DEFAULT_wxUSE_THREADS=yes
1403
1404 DEFAULT_wxUSE_SHARED=yes
1405 DEFAULT_wxUSE_SONAME=no
1406 DEFAULT_wxUSE_OPTIMISE=no
1407 DEFAULT_wxUSE_PROFILE=no
1408 DEFAULT_wxUSE_NO_DEPS=no
1409 DEFAULT_wxUSE_NO_RTTI=no
1410 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1411 DEFAULT_wxUSE_PERMISSIVE=no
1412 DEFAULT_wxUSE_DEBUG_FLAG=yes
1413 DEFAULT_wxUSE_DEBUG_INFO=yes
1414 DEFAULT_wxUSE_DEBUG_GDB=yes
1415 DEFAULT_wxUSE_MEM_TRACING=no
1416 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1417 DEFAULT_wxUSE_DMALLOC=no
1418 DEFAULT_wxUSE_PRECOMP=no
1419 DEFAULT_wxUSE_APPLE_IEEE=no
1420
1421 DEFAULT_wxUSE_LOG=yes
1422 DEFAULT_wxUSE_LOGWINDOW=no
1423 DEFAULT_wxUSE_LOGGUI=no
1424 DEFAULT_wxUSE_LOGDIALOG=no
1425
1426 DEFAULT_wxUSE_GUI=yes
1427 DEFAULT_wxUSE_CONTROLS=no
1428
1429 DEFAULT_wxUSE_REGEX=no
1430 DEFAULT_wxUSE_ZLIB=no
1431 DEFAULT_wxUSE_LIBPNG=no
1432 DEFAULT_wxUSE_LIBJPEG=no
1433 DEFAULT_wxUSE_LIBTIFF=no
1434 DEFAULT_wxUSE_ODBC=no
1435 DEFAULT_wxUSE_OPENGL=no
1436
1437 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1438 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1439 DEFAULT_wxUSE_STD_IOSTREAM=no
1440 DEFAULT_wxUSE_CMDLINE_PARSER=no
1441 DEFAULT_wxUSE_DATETIME=no
1442 DEFAULT_wxUSE_TIMEDATE=no
1443 DEFAULT_wxUSE_TIMER=no
1444 DEFAULT_wxUSE_STOPWATCH=no
1445 DEFAULT_wxUSE_FILE=no
1446 DEFAULT_wxUSE_FFILE=no
1447 DEFAULT_wxUSE_TEXTBUFFER=no
1448 DEFAULT_wxUSE_TEXTFILE=no
1449 DEFAULT_wxUSE_WAVE=no
1450 DEFAULT_wxUSE_INTL=no
1451 DEFAULT_wxUSE_CONFIG=no
1452 DEFAULT_wxUSE_FONTMAP=no
1453 DEFAULT_wxUSE_STREAMS=no
1454 DEFAULT_wxUSE_SOCKETS=no
1455 DEFAULT_wxUSE_OLE=no
1456 DEFAULT_wxUSE_DATAOBJ=no
1457 DEFAULT_wxUSE_DIALUP_MANAGER=no
1458 DEFAULT_wxUSE_JOYSTICK=no
1459 DEFAULT_wxUSE_DYNLIB_CLASS=no
1460 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1461 DEFAULT_wxUSE_LONGLONG=no
1462 DEFAULT_wxUSE_GEOMETRY=no
1463
1464 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1465 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1466 DEFAULT_wxUSE_POSTSCRIPT=no
1467
1468 DEFAULT_wxUSE_X_RESOURCES=no
1469 DEFAULT_wxUSE_CLIPBOARD=no
1470 DEFAULT_wxUSE_TOOLTIPS=no
1471 DEFAULT_wxUSE_DRAG_AND_DROP=no
1472 DEFAULT_wxUSE_DRAGIMAGE=no
1473 DEFAULT_wxUSE_SPLINES=no
1474
1475 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1476 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1477 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1478
1479 DEFAULT_wxUSE_PROLOGIO=no
1480 DEFAULT_wxUSE_RESOURCES=no
1481 DEFAULT_wxUSE_CONSTRAINTS=no
1482 DEFAULT_wxUSE_IPC=no
1483 DEFAULT_wxUSE_HELP=no
1484 DEFAULT_wxUSE_MS_HTML_HELP=no
1485 DEFAULT_wxUSE_WXHTML_HELP=no
1486 DEFAULT_wxUSE_TREELAYOUT=no
1487 DEFAULT_wxUSE_METAFILE=no
1488 DEFAULT_wxUSE_MIMETYPE=no
1489 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1490 DEFAULT_wxUSE_PROTOCOL=no
1491 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1492 DEFAULT_wxUSE_PROTOCOL_FTP=no
1493 DEFAULT_wxUSE_PROTOCOL_FILE=no
1494 DEFAULT_wxUSE_URL=no
1495
1496 DEFAULT_wxUSE_COMMONDLGS=no
1497 DEFAULT_wxUSE_CHOICEDLG=no
1498 DEFAULT_wxUSE_COLOURDLG=no
1499 DEFAULT_wxUSE_DIRDLG=no
1500 DEFAULT_wxUSE_FILEDLG=no
1501 DEFAULT_wxUSE_FINDREPLDLG=no
1502 DEFAULT_wxUSE_FONTDLG=no
1503 DEFAULT_wxUSE_MSGDLG=no
1504 DEFAULT_wxUSE_NUMBERDLG=no
1505 DEFAULT_wxUSE_TEXTDLG=no
1506 DEFAULT_wxUSE_SPLASH=no
1507 DEFAULT_wxUSE_STARTUP_TIPS=no
1508 DEFAULT_wxUSE_PROGRESSDLG=no
1509 DEFAULT_wxUSE_WIZARDDLG=no
1510
1511 DEFAULT_wxUSE_MENUS=no
1512 DEFAULT_wxUSE_MINIFRAME=no
1513 DEFAULT_wxUSE_HTML=no
1514 DEFAULT_wxUSE_FILESYSTEM=no
1515 DEFAULT_wxUSE_FS_INET=no
1516 DEFAULT_wxUSE_FS_ZIP=no
1517 DEFAULT_wxUSE_BUSYINFO=no
1518 DEFAULT_wxUSE_ZIPSTREAM=no
1519 DEFAULT_wxUSE_VALIDATORS=no
1520
1521 DEFAULT_wxUSE_ACCEL=no
1522 DEFAULT_wxUSE_BUTTON=no
1523 DEFAULT_wxUSE_BMPBUTTON=no
1524 DEFAULT_wxUSE_CALCTRL=no
1525 DEFAULT_wxUSE_CARET=no
1526 DEFAULT_wxUSE_CHECKBOX=no
1527 DEFAULT_wxUSE_CHECKLST=no
1528 DEFAULT_wxUSE_CHOICE=no
1529 DEFAULT_wxUSE_COMBOBOX=no
1530 DEFAULT_wxUSE_GAUGE=no
1531 DEFAULT_wxUSE_GRID=no
1532 DEFAULT_wxUSE_NEW_GRID=no
1533 DEFAULT_wxUSE_IMAGLIST=no
1534 DEFAULT_wxUSE_LISTBOX=no
1535 DEFAULT_wxUSE_LISTCTRL=no
1536 DEFAULT_wxUSE_NOTEBOOK=no
1537 DEFAULT_wxUSE_PROPSHEET=no
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
1544 DEFAULT_wxUSE_SPINCTRL=no
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1549 DEFAULT_wxUSE_STATTEXT=no
1550 DEFAULT_wxUSE_STATUSBAR=yes
1551 DEFAULT_wxUSE_TABDIALOG=no
1552 DEFAULT_wxUSE_TEXTCTRL=no
1553 DEFAULT_wxUSE_TOGGLEBTN=no
1554 DEFAULT_wxUSE_TOOLBAR=no
1555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1557 DEFAULT_wxUSE_TREECTRL=no
1558 DEFAULT_wxUSE_POPUPWIN=no
1559 DEFAULT_wxUSE_TIPWINDOW=no
1560
1561 DEFAULT_wxUSE_UNICODE=no
1562 DEFAULT_wxUSE_UNICODE_MSLU=no
1563 DEFAULT_wxUSE_WCSRTOMBS=no
1564
1565 DEFAULT_wxUSE_PALETTE=no
1566 DEFAULT_wxUSE_IMAGE=no
1567 DEFAULT_wxUSE_GIF=no
1568 DEFAULT_wxUSE_PCX=no
1569 DEFAULT_wxUSE_PNM=no
1570 DEFAULT_wxUSE_IFF=no
1571 DEFAULT_wxUSE_XPM=no
1572 DEFAULT_wxUSE_ICO_CUR=no
1573 else
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
1576 DEFAULT_wxUSE_NANOX=no
1577
1578 DEFAULT_wxUSE_THREADS=yes
1579
1580 DEFAULT_wxUSE_SHARED=yes
1581 DEFAULT_wxUSE_SONAME=no
1582 DEFAULT_wxUSE_OPTIMISE=yes
1583 DEFAULT_wxUSE_PROFILE=no
1584 DEFAULT_wxUSE_NO_DEPS=no
1585 DEFAULT_wxUSE_NO_RTTI=no
1586 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1587 DEFAULT_wxUSE_PERMISSIVE=no
1588 DEFAULT_wxUSE_DEBUG_FLAG=no
1589 DEFAULT_wxUSE_DEBUG_INFO=no
1590 DEFAULT_wxUSE_DEBUG_GDB=no
1591 DEFAULT_wxUSE_MEM_TRACING=no
1592 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593 DEFAULT_wxUSE_DMALLOC=no
1594 DEFAULT_wxUSE_PRECOMP=no
1595 DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597 DEFAULT_wxUSE_LOG=yes
1598 DEFAULT_wxUSE_LOGWINDOW=yes
1599 DEFAULT_wxUSE_LOGGUI=yes
1600 DEFAULT_wxUSE_LOGDIALOG=yes
1601
1602 DEFAULT_wxUSE_GUI=yes
1603
1604 DEFAULT_wxUSE_REGEX=yes
1605 DEFAULT_wxUSE_ZLIB=yes
1606 DEFAULT_wxUSE_LIBPNG=yes
1607 DEFAULT_wxUSE_LIBJPEG=yes
1608 DEFAULT_wxUSE_LIBTIFF=yes
1609 DEFAULT_wxUSE_ODBC=no
1610 DEFAULT_wxUSE_OPENGL=no
1611
1612 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1613 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1614 DEFAULT_wxUSE_STD_IOSTREAM=no
1615 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616 DEFAULT_wxUSE_DATETIME=yes
1617 DEFAULT_wxUSE_TIMEDATE=no
1618 DEFAULT_wxUSE_TIMER=yes
1619 DEFAULT_wxUSE_STOPWATCH=yes
1620 DEFAULT_wxUSE_FILE=yes
1621 DEFAULT_wxUSE_FFILE=yes
1622 DEFAULT_wxUSE_TEXTBUFFER=yes
1623 DEFAULT_wxUSE_TEXTFILE=yes
1624 DEFAULT_wxUSE_WAVE=no
1625 DEFAULT_wxUSE_INTL=yes
1626 DEFAULT_wxUSE_CONFIG=yes
1627 DEFAULT_wxUSE_FONTMAP=yes
1628 DEFAULT_wxUSE_STREAMS=yes
1629 DEFAULT_wxUSE_SOCKETS=yes
1630 DEFAULT_wxUSE_OLE=yes
1631 DEFAULT_wxUSE_DATAOBJ=yes
1632 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1633 DEFAULT_wxUSE_JOYSTICK=yes
1634 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1635 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1636 DEFAULT_wxUSE_LONGLONG=yes
1637 DEFAULT_wxUSE_GEOMETRY=yes
1638
1639 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1640 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1641 DEFAULT_wxUSE_POSTSCRIPT=yes
1642
1643 DEFAULT_wxUSE_X_RESOURCES=no
1644 DEFAULT_wxUSE_CLIPBOARD=yes
1645 DEFAULT_wxUSE_TOOLTIPS=yes
1646 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1647 DEFAULT_wxUSE_DRAGIMAGE=yes
1648 DEFAULT_wxUSE_SPLINES=yes
1649
1650 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1651 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1652 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1653
1654 DEFAULT_wxUSE_PROLOGIO=no
1655 DEFAULT_wxUSE_RESOURCES=no
1656 DEFAULT_wxUSE_CONSTRAINTS=yes
1657 DEFAULT_wxUSE_IPC=yes
1658 DEFAULT_wxUSE_HELP=yes
1659 DEFAULT_wxUSE_MS_HTML_HELP=yes
1660 DEFAULT_wxUSE_WXHTML_HELP=yes
1661 DEFAULT_wxUSE_TREELAYOUT=yes
1662 DEFAULT_wxUSE_METAFILE=yes
1663 DEFAULT_wxUSE_MIMETYPE=yes
1664 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1665 DEFAULT_wxUSE_PROTOCOL=yes
1666 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1667 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1668 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1669 DEFAULT_wxUSE_URL=yes
1670
1671 DEFAULT_wxUSE_COMMONDLGS=yes
1672 DEFAULT_wxUSE_CHOICEDLG=yes
1673 DEFAULT_wxUSE_COLOURDLG=yes
1674 DEFAULT_wxUSE_DIRDLG=yes
1675 DEFAULT_wxUSE_FILEDLG=yes
1676 DEFAULT_wxUSE_FINDREPLDLG=yes
1677 DEFAULT_wxUSE_FONTDLG=yes
1678 DEFAULT_wxUSE_MSGDLG=yes
1679 DEFAULT_wxUSE_NUMBERDLG=yes
1680 DEFAULT_wxUSE_TEXTDLG=yes
1681 DEFAULT_wxUSE_SPLASH=yes
1682 DEFAULT_wxUSE_STARTUP_TIPS=yes
1683 DEFAULT_wxUSE_PROGRESSDLG=yes
1684 DEFAULT_wxUSE_WIZARDDLG=yes
1685
1686 DEFAULT_wxUSE_MENUS=yes
1687 DEFAULT_wxUSE_MINIFRAME=yes
1688 DEFAULT_wxUSE_HTML=yes
1689 DEFAULT_wxUSE_FILESYSTEM=yes
1690 DEFAULT_wxUSE_FS_INET=yes
1691 DEFAULT_wxUSE_FS_ZIP=yes
1692 DEFAULT_wxUSE_BUSYINFO=yes
1693 DEFAULT_wxUSE_ZIPSTREAM=yes
1694 DEFAULT_wxUSE_VALIDATORS=yes
1695
1696 DEFAULT_wxUSE_ACCEL=yes
1697 DEFAULT_wxUSE_BUTTON=yes
1698 DEFAULT_wxUSE_BMPBUTTON=yes
1699 DEFAULT_wxUSE_CALCTRL=yes
1700 DEFAULT_wxUSE_CARET=yes
1701 DEFAULT_wxUSE_CHECKBOX=yes
1702 DEFAULT_wxUSE_CHECKLST=yes
1703 DEFAULT_wxUSE_CHOICE=yes
1704 DEFAULT_wxUSE_COMBOBOX=yes
1705 DEFAULT_wxUSE_GAUGE=yes
1706 DEFAULT_wxUSE_GRID=yes
1707 DEFAULT_wxUSE_NEW_GRID=yes
1708 DEFAULT_wxUSE_IMAGLIST=yes
1709 DEFAULT_wxUSE_LISTBOX=yes
1710 DEFAULT_wxUSE_LISTCTRL=yes
1711 DEFAULT_wxUSE_NOTEBOOK=yes
1712 DEFAULT_wxUSE_PROPSHEET=yes
1713 DEFAULT_wxUSE_RADIOBOX=yes
1714 DEFAULT_wxUSE_RADIOBTN=yes
1715 DEFAULT_wxUSE_SASH=yes
1716 DEFAULT_wxUSE_SCROLLBAR=yes
1717 DEFAULT_wxUSE_SLIDER=yes
1718 DEFAULT_wxUSE_SPINBTN=yes
1719 DEFAULT_wxUSE_SPINCTRL=yes
1720 DEFAULT_wxUSE_SPLITTER=yes
1721 DEFAULT_wxUSE_STATBMP=yes
1722 DEFAULT_wxUSE_STATBOX=yes
1723 DEFAULT_wxUSE_STATLINE=yes
1724 DEFAULT_wxUSE_STATTEXT=yes
1725 DEFAULT_wxUSE_STATUSBAR=yes
1726 DEFAULT_wxUSE_TABDIALOG=no
1727 DEFAULT_wxUSE_TEXTCTRL=yes
1728 DEFAULT_wxUSE_TOGGLEBTN=yes
1729 DEFAULT_wxUSE_TOOLBAR=yes
1730 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1731 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1732 DEFAULT_wxUSE_TREECTRL=yes
1733 DEFAULT_wxUSE_POPUPWIN=yes
1734 DEFAULT_wxUSE_TIPWINDOW=yes
1735
1736 DEFAULT_wxUSE_UNICODE=no
1737 DEFAULT_wxUSE_UNICODE_MSLU=yes
1738 DEFAULT_wxUSE_WCSRTOMBS=no
1739
1740 DEFAULT_wxUSE_PALETTE=yes
1741 DEFAULT_wxUSE_IMAGE=yes
1742 DEFAULT_wxUSE_GIF=yes
1743 DEFAULT_wxUSE_PCX=yes
1744 DEFAULT_wxUSE_IFF=no
1745 DEFAULT_wxUSE_PNM=yes
1746 DEFAULT_wxUSE_XPM=yes
1747 DEFAULT_wxUSE_ICO_CUR=yes
1748 fi
1749
1750
1751
1752 for toolkit in `echo $ALL_TOOLKITS`; do
1753 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1754 if test "x$LINE" != "x" ; then
1755 has_toolkit_in_cache=1
1756 eval "DEFAULT_$LINE"
1757 eval "CACHE_$toolkit=1"
1758 fi
1759 done
1760
1761
1762
1763 enablestring=
1764 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1765 echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5
1766 no_cache=0
1767 # Check whether --enable-gui or --disable-gui was given.
1768 if test "${enable_gui+set}" = set; then
1769 enableval="$enable_gui"
1770
1771 if test "$enableval" = yes; then
1772 ac_cv_use_gui='wxUSE_GUI=yes'
1773 else
1774 ac_cv_use_gui='wxUSE_GUI=no'
1775 fi
1776
1777 else
1778
1779 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 eval "DEFAULT_$LINE"
1782 else
1783 no_cache=1
1784 fi
1785
1786 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1787
1788 fi
1789
1790
1791 eval "$ac_cv_use_gui"
1792 if test "$no_cache" != 1; then
1793 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1794 fi
1795
1796 if test "$wxUSE_GUI" = yes; then
1797 echo "$ac_t""yes" 1>&6
1798 else
1799 echo "$ac_t""no" 1>&6
1800 fi
1801
1802
1803 if test "$wxUSE_GUI" = "yes"; then
1804
1805
1806 enablestring=
1807 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1808 echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5
1809 no_cache=0
1810 # Check whether --enable-universal or --disable-universal was given.
1811 if test "${enable_universal+set}" = set; then
1812 enableval="$enable_universal"
1813
1814 if test "$enableval" = yes; then
1815 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1816 else
1817 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1818 fi
1819
1820 else
1821
1822 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1823 if test "x$LINE" != x ; then
1824 eval "DEFAULT_$LINE"
1825 else
1826 no_cache=1
1827 fi
1828
1829 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1830
1831 fi
1832
1833
1834 eval "$ac_cv_use_universal"
1835 if test "$no_cache" != 1; then
1836 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1837 fi
1838
1839 if test "$wxUSE_UNIVERSAL" = yes; then
1840 echo "$ac_t""yes" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1843 fi
1844
1845 # Check whether --with-gtk or --without-gtk was given.
1846 if test "${with_gtk+set}" = set; then
1847 withval="$with_gtk"
1848 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1849 fi
1850
1851 # Check whether --with-motif or --without-motif was given.
1852 if test "${with_motif+set}" = set; then
1853 withval="$with_motif"
1854 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1855 fi
1856
1857 # Check whether --with-mac or --without-mac was given.
1858 if test "${with_mac+set}" = set; then
1859 withval="$with_mac"
1860 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1861 fi
1862
1863 # Check whether --with-wine or --without-wine was given.
1864 if test "${with_wine+set}" = set; then
1865 withval="$with_wine"
1866 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1867 fi
1868
1869 # Check whether --with-msw or --without-msw was given.
1870 if test "${with_msw+set}" = set; then
1871 withval="$with_msw"
1872 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1873 fi
1874
1875 # Check whether --with-pm or --without-pm was given.
1876 if test "${with_pm+set}" = set; then
1877 withval="$with_pm"
1878 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1879 fi
1880
1881 # Check whether --with-mgl or --without-mgl was given.
1882 if test "${with_mgl+set}" = set; then
1883 withval="$with_mgl"
1884 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1885 fi
1886
1887 # Check whether --with-microwin or --without-microwin was given.
1888 if test "${with_microwin+set}" = set; then
1889 withval="$with_microwin"
1890 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1891 fi
1892
1893 # Check whether --with-x11 or --without-x11 was given.
1894 if test "${with_x11+set}" = set; then
1895 withval="$with_x11"
1896 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1897 fi
1898
1899
1900 enablestring=
1901 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1902 echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5
1903 no_cache=0
1904 # Check whether --enable-nanox or --disable-nanox was given.
1905 if test "${enable_nanox+set}" = set; then
1906 enableval="$enable_nanox"
1907
1908 if test "$enableval" = yes; then
1909 ac_cv_use_nanox='wxUSE_NANOX=yes'
1910 else
1911 ac_cv_use_nanox='wxUSE_NANOX=no'
1912 fi
1913
1914 else
1915
1916 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
1923 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1924
1925 fi
1926
1927
1928 eval "$ac_cv_use_nanox"
1929 if test "$no_cache" != 1; then
1930 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1931 fi
1932
1933 if test "$wxUSE_NANOX" = yes; then
1934 echo "$ac_t""yes" 1>&6
1935 else
1936 echo "$ac_t""no" 1>&6
1937 fi
1938
1939
1940
1941 enablestring=
1942 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1943 echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5
1944 no_cache=0
1945 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1946 if test "${enable_gtk2+set}" = set; then
1947 enableval="$enable_gtk2"
1948
1949 if test "$enableval" = yes; then
1950 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1951 else
1952 ac_cv_use_gtk2='wxUSE_GTK2=no'
1953 fi
1954
1955 else
1956
1957 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
1964 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1965
1966 fi
1967
1968
1969 eval "$ac_cv_use_gtk2"
1970 if test "$no_cache" != 1; then
1971 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1972 fi
1973
1974 if test "$wxUSE_GTK2" = yes; then
1975 echo "$ac_t""yes" 1>&6
1976 else
1977 echo "$ac_t""no" 1>&6
1978 fi
1979
1980
1981
1982 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1983 echo "configure:1984: checking for --with-libpng" >&5
1984 no_cache=0
1985 # Check whether --with-libpng or --without-libpng was given.
1986 if test "${with_libpng+set}" = set; then
1987 withval="$with_libpng"
1988
1989 if test "$withval" = yes; then
1990 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1991 elif test "$withval" = no; then
1992 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1993 elif test "$withval" = sys; then
1994 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1995 elif test "$withval" = builtin; then
1996 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1997 else
1998 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1999 fi
2000
2001 else
2002
2003 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2004 if test "x$LINE" != x ; then
2005 eval "DEFAULT_$LINE"
2006 else
2007 no_cache=1
2008 fi
2009
2010 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2011
2012 fi
2013
2014
2015 eval "$ac_cv_use_libpng"
2016 if test "$no_cache" != 1; then
2017 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2018 fi
2019
2020 if test "$wxUSE_LIBPNG" = yes; then
2021 echo "$ac_t""yes" 1>&6
2022 elif test "$wxUSE_LIBPNG" = no; then
2023 echo "$ac_t""no" 1>&6
2024 elif test "$wxUSE_LIBPNG" = sys; then
2025 echo "$ac_t""system version" 1>&6
2026 elif test "$wxUSE_LIBPNG" = builtin; then
2027 echo "$ac_t""builtin version" 1>&6
2028 else
2029 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2030 fi
2031
2032
2033 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2034 echo "configure:2035: checking for --with-libjpeg" >&5
2035 no_cache=0
2036 # Check whether --with-libjpeg or --without-libjpeg was given.
2037 if test "${with_libjpeg+set}" = set; then
2038 withval="$with_libjpeg"
2039
2040 if test "$withval" = yes; then
2041 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2042 elif test "$withval" = no; then
2043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2044 elif test "$withval" = sys; then
2045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2046 elif test "$withval" = builtin; then
2047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2048 else
2049 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2050 fi
2051
2052 else
2053
2054 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2062
2063 fi
2064
2065
2066 eval "$ac_cv_use_libjpeg"
2067 if test "$no_cache" != 1; then
2068 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2069 fi
2070
2071 if test "$wxUSE_LIBJPEG" = yes; then
2072 echo "$ac_t""yes" 1>&6
2073 elif test "$wxUSE_LIBJPEG" = no; then
2074 echo "$ac_t""no" 1>&6
2075 elif test "$wxUSE_LIBJPEG" = sys; then
2076 echo "$ac_t""system version" 1>&6
2077 elif test "$wxUSE_LIBJPEG" = builtin; then
2078 echo "$ac_t""builtin version" 1>&6
2079 else
2080 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2081 fi
2082
2083
2084 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2085 echo "configure:2086: checking for --with-libtiff" >&5
2086 no_cache=0
2087 # Check whether --with-libtiff or --without-libtiff was given.
2088 if test "${with_libtiff+set}" = set; then
2089 withval="$with_libtiff"
2090
2091 if test "$withval" = yes; then
2092 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2093 elif test "$withval" = no; then
2094 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2095 elif test "$withval" = sys; then
2096 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2097 elif test "$withval" = builtin; then
2098 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2099 else
2100 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2101 fi
2102
2103 else
2104
2105 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2113
2114 fi
2115
2116
2117 eval "$ac_cv_use_libtiff"
2118 if test "$no_cache" != 1; then
2119 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2120 fi
2121
2122 if test "$wxUSE_LIBTIFF" = yes; then
2123 echo "$ac_t""yes" 1>&6
2124 elif test "$wxUSE_LIBTIFF" = no; then
2125 echo "$ac_t""no" 1>&6
2126 elif test "$wxUSE_LIBTIFF" = sys; then
2127 echo "$ac_t""system version" 1>&6
2128 elif test "$wxUSE_LIBTIFF" = builtin; then
2129 echo "$ac_t""builtin version" 1>&6
2130 else
2131 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2132 fi
2133
2134
2135 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2136 echo "configure:2137: checking for --with-opengl" >&5
2137 no_cache=0
2138 # Check whether --with-opengl or --without-opengl was given.
2139 if test "${with_opengl+set}" = set; then
2140 withval="$with_opengl"
2141
2142 if test "$withval" = yes; then
2143 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2144 else
2145 ac_cv_use_opengl='wxUSE_OPENGL=no'
2146 fi
2147
2148 else
2149
2150 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2151 if test "x$LINE" != x ; then
2152 eval "DEFAULT_$LINE"
2153 else
2154 no_cache=1
2155 fi
2156
2157 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2158
2159 fi
2160
2161
2162 eval "$ac_cv_use_opengl"
2163 if test "$no_cache" != 1; then
2164 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2165 fi
2166
2167 if test "$wxUSE_OPENGL" = yes; then
2168 echo "$ac_t""yes" 1>&6
2169 else
2170 echo "$ac_t""no" 1>&6
2171 fi
2172
2173
2174 fi
2175
2176
2177 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2178 echo "configure:2179: checking for --with-dmalloc" >&5
2179 no_cache=0
2180 # Check whether --with-dmalloc or --without-dmalloc was given.
2181 if test "${with_dmalloc+set}" = set; then
2182 withval="$with_dmalloc"
2183
2184 if test "$withval" = yes; then
2185 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2186 else
2187 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2188 fi
2189
2190 else
2191
2192 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
2199 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2200
2201 fi
2202
2203
2204 eval "$ac_cv_use_dmalloc"
2205 if test "$no_cache" != 1; then
2206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2207 fi
2208
2209 if test "$wxUSE_DMALLOC" = yes; then
2210 echo "$ac_t""yes" 1>&6
2211 else
2212 echo "$ac_t""no" 1>&6
2213 fi
2214
2215
2216 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2217 echo "configure:2218: checking for --with-regex" >&5
2218 no_cache=0
2219 # Check whether --with-regex or --without-regex was given.
2220 if test "${with_regex+set}" = set; then
2221 withval="$with_regex"
2222
2223 if test "$withval" = yes; then
2224 ac_cv_use_regex='wxUSE_REGEX=yes'
2225 elif test "$withval" = no; then
2226 ac_cv_use_regex='wxUSE_REGEX=no'
2227 elif test "$withval" = sys; then
2228 ac_cv_use_regex='wxUSE_REGEX=sys'
2229 elif test "$withval" = builtin; then
2230 ac_cv_use_regex='wxUSE_REGEX=builtin'
2231 else
2232 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2233 fi
2234
2235 else
2236
2237 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2238 if test "x$LINE" != x ; then
2239 eval "DEFAULT_$LINE"
2240 else
2241 no_cache=1
2242 fi
2243
2244 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2245
2246 fi
2247
2248
2249 eval "$ac_cv_use_regex"
2250 if test "$no_cache" != 1; then
2251 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2252 fi
2253
2254 if test "$wxUSE_REGEX" = yes; then
2255 echo "$ac_t""yes" 1>&6
2256 elif test "$wxUSE_REGEX" = no; then
2257 echo "$ac_t""no" 1>&6
2258 elif test "$wxUSE_REGEX" = sys; then
2259 echo "$ac_t""system version" 1>&6
2260 elif test "$wxUSE_REGEX" = builtin; then
2261 echo "$ac_t""builtin version" 1>&6
2262 else
2263 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2264 fi
2265
2266
2267 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2268 echo "configure:2269: checking for --with-zlib" >&5
2269 no_cache=0
2270 # Check whether --with-zlib or --without-zlib was given.
2271 if test "${with_zlib+set}" = set; then
2272 withval="$with_zlib"
2273
2274 if test "$withval" = yes; then
2275 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2276 elif test "$withval" = no; then
2277 ac_cv_use_zlib='wxUSE_ZLIB=no'
2278 elif test "$withval" = sys; then
2279 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2280 elif test "$withval" = builtin; then
2281 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2282 else
2283 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2284 fi
2285
2286 else
2287
2288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
2295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2296
2297 fi
2298
2299
2300 eval "$ac_cv_use_zlib"
2301 if test "$no_cache" != 1; then
2302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2303 fi
2304
2305 if test "$wxUSE_ZLIB" = yes; then
2306 echo "$ac_t""yes" 1>&6
2307 elif test "$wxUSE_ZLIB" = no; then
2308 echo "$ac_t""no" 1>&6
2309 elif test "$wxUSE_ZLIB" = sys; then
2310 echo "$ac_t""system version" 1>&6
2311 elif test "$wxUSE_ZLIB" = builtin; then
2312 echo "$ac_t""builtin version" 1>&6
2313 else
2314 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2315 fi
2316
2317
2318 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2319 echo "configure:2320: checking for --with-odbc" >&5
2320 no_cache=0
2321 # Check whether --with-odbc or --without-odbc was given.
2322 if test "${with_odbc+set}" = set; then
2323 withval="$with_odbc"
2324
2325 if test "$withval" = yes; then
2326 ac_cv_use_odbc='wxUSE_ODBC=yes'
2327 else
2328 ac_cv_use_odbc='wxUSE_ODBC=no'
2329 fi
2330
2331 else
2332
2333 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2334 if test "x$LINE" != x ; then
2335 eval "DEFAULT_$LINE"
2336 else
2337 no_cache=1
2338 fi
2339
2340 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2341
2342 fi
2343
2344
2345 eval "$ac_cv_use_odbc"
2346 if test "$no_cache" != 1; then
2347 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2348 fi
2349
2350 if test "$wxUSE_ODBC" = yes; then
2351 echo "$ac_t""yes" 1>&6
2352 else
2353 echo "$ac_t""no" 1>&6
2354 fi
2355
2356
2357
2358
2359 enablestring=
2360 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2361 echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5
2362 no_cache=0
2363 # Check whether --enable-shared or --disable-shared was given.
2364 if test "${enable_shared+set}" = set; then
2365 enableval="$enable_shared"
2366
2367 if test "$enableval" = yes; then
2368 ac_cv_use_shared='wxUSE_SHARED=yes'
2369 else
2370 ac_cv_use_shared='wxUSE_SHARED=no'
2371 fi
2372
2373 else
2374
2375 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2376 if test "x$LINE" != x ; then
2377 eval "DEFAULT_$LINE"
2378 else
2379 no_cache=1
2380 fi
2381
2382 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2383
2384 fi
2385
2386
2387 eval "$ac_cv_use_shared"
2388 if test "$no_cache" != 1; then
2389 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2390 fi
2391
2392 if test "$wxUSE_SHARED" = yes; then
2393 echo "$ac_t""yes" 1>&6
2394 else
2395 echo "$ac_t""no" 1>&6
2396 fi
2397
2398
2399 enablestring=
2400 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2401 echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5
2402 no_cache=0
2403 # Check whether --enable-soname or --disable-soname was given.
2404 if test "${enable_soname+set}" = set; then
2405 enableval="$enable_soname"
2406
2407 if test "$enableval" = yes; then
2408 ac_cv_use_soname='wxUSE_SONAME=yes'
2409 else
2410 ac_cv_use_soname='wxUSE_SONAME=no'
2411 fi
2412
2413 else
2414
2415 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2423
2424 fi
2425
2426
2427 eval "$ac_cv_use_soname"
2428 if test "$no_cache" != 1; then
2429 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2430 fi
2431
2432 if test "$wxUSE_SONAME" = yes; then
2433 echo "$ac_t""yes" 1>&6
2434 else
2435 echo "$ac_t""no" 1>&6
2436 fi
2437
2438
2439 enablestring=
2440 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2441 echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5
2442 no_cache=0
2443 # Check whether --enable-optimise or --disable-optimise was given.
2444 if test "${enable_optimise+set}" = set; then
2445 enableval="$enable_optimise"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2449 else
2450 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2451 fi
2452
2453 else
2454
2455 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2463
2464 fi
2465
2466
2467 eval "$ac_cv_use_optimise"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_OPTIMISE" = yes; then
2473 echo "$ac_t""yes" 1>&6
2474 else
2475 echo "$ac_t""no" 1>&6
2476 fi
2477
2478
2479 enablestring=
2480 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2481 echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5
2482 no_cache=0
2483 # Check whether --enable-debug or --disable-debug was given.
2484 if test "${enable_debug+set}" = set; then
2485 enableval="$enable_debug"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_debug='wxUSE_DEBUG=yes'
2489 else
2490 ac_cv_use_debug='wxUSE_DEBUG=no'
2491 fi
2492
2493 else
2494
2495 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2503
2504 fi
2505
2506
2507 eval "$ac_cv_use_debug"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_DEBUG" = yes; then
2513 echo "$ac_t""yes" 1>&6
2514 else
2515 echo "$ac_t""no" 1>&6
2516 fi
2517
2518
2519
2520 enablestring=
2521 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2522 echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5
2523 no_cache=0
2524 # Check whether --enable-precomp or --disable-precomp was given.
2525 if test "${enable_precomp+set}" = set; then
2526 enableval="$enable_precomp"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2530 else
2531 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2532 fi
2533
2534 else
2535
2536 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2544
2545 fi
2546
2547
2548 eval "$ac_cv_use_precomp"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PRECOMP" = yes; then
2554 echo "$ac_t""yes" 1>&6
2555 else
2556 echo "$ac_t""no" 1>&6
2557 fi
2558
2559
2560 if test "$wxUSE_DEBUG" = "yes"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=yes
2562 DEFAULT_wxUSE_DEBUG_INFO=yes
2563 elif test "$wxUSE_DEBUG" = "no"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=no
2565 DEFAULT_wxUSE_DEBUG_INFO=no
2566 fi
2567
2568
2569 enablestring=
2570 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2571 echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5
2572 no_cache=0
2573 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2574 if test "${enable_debug_flag+set}" = set; then
2575 enableval="$enable_debug_flag"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2579 else
2580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2581 fi
2582
2583 else
2584
2585 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2593
2594 fi
2595
2596
2597 eval "$ac_cv_use_debug_flag"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_FLAG" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 enablestring=
2610 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2611 echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5
2612 no_cache=0
2613 # Check whether --enable-debug_info or --disable-debug_info was given.
2614 if test "${enable_debug_info+set}" = set; then
2615 enableval="$enable_debug_info"
2616
2617 if test "$enableval" = yes; then
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2619 else
2620 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2621 fi
2622
2623 else
2624
2625 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2633
2634 fi
2635
2636
2637 eval "$ac_cv_use_debug_info"
2638 if test "$no_cache" != 1; then
2639 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2640 fi
2641
2642 if test "$wxUSE_DEBUG_INFO" = yes; then
2643 echo "$ac_t""yes" 1>&6
2644 else
2645 echo "$ac_t""no" 1>&6
2646 fi
2647
2648
2649 enablestring=
2650 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2651 echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5
2652 no_cache=0
2653 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2654 if test "${enable_debug_gdb+set}" = set; then
2655 enableval="$enable_debug_gdb"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2659 else
2660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2661 fi
2662
2663 else
2664
2665 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2673
2674 fi
2675
2676
2677 eval "$ac_cv_use_debug_gdb"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_DEBUG_GDB" = yes; then
2683 echo "$ac_t""yes" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2686 fi
2687
2688
2689 enablestring=
2690 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2691 echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5
2692 no_cache=0
2693 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2694 if test "${enable_debug_cntxt+set}" = set; then
2695 enableval="$enable_debug_cntxt"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2699 else
2700 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2701 fi
2702
2703 else
2704
2705 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2713
2714 fi
2715
2716
2717 eval "$ac_cv_use_debug_cntxt"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 enablestring=
2730 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2731 echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5
2732 no_cache=0
2733 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2734 if test "${enable_mem_tracing+set}" = set; then
2735 enableval="$enable_mem_tracing"
2736
2737 if test "$enableval" = yes; then
2738 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2739 else
2740 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2741 fi
2742
2743 else
2744
2745 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2753
2754 fi
2755
2756
2757 eval "$ac_cv_use_mem_tracing"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_MEM_TRACING" = yes; then
2763 echo "$ac_t""yes" 1>&6
2764 else
2765 echo "$ac_t""no" 1>&6
2766 fi
2767
2768
2769 enablestring=
2770 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2771 echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5
2772 no_cache=0
2773 # Check whether --enable-profile or --disable-profile was given.
2774 if test "${enable_profile+set}" = set; then
2775 enableval="$enable_profile"
2776
2777 if test "$enableval" = yes; then
2778 ac_cv_use_profile='wxUSE_PROFILE=yes'
2779 else
2780 ac_cv_use_profile='wxUSE_PROFILE=no'
2781 fi
2782
2783 else
2784
2785 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2793
2794 fi
2795
2796
2797 eval "$ac_cv_use_profile"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_PROFILE" = yes; then
2803 echo "$ac_t""yes" 1>&6
2804 else
2805 echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809 enablestring=
2810 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2811 echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5
2812 no_cache=0
2813 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2814 if test "${enable_no_rtti+set}" = set; then
2815 enableval="$enable_no_rtti"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2819 else
2820 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2821 fi
2822
2823 else
2824
2825 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2833
2834 fi
2835
2836
2837 eval "$ac_cv_use_no_rtti"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_NO_RTTI" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 enablestring=
2850 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2851 echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5
2852 no_cache=0
2853 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2854 if test "${enable_no_exceptions+set}" = set; then
2855 enableval="$enable_no_exceptions"
2856
2857 if test "$enableval" = yes; then
2858 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2859 else
2860 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2861 fi
2862
2863 else
2864
2865 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2873
2874 fi
2875
2876
2877 eval "$ac_cv_use_no_exceptions"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2883 echo "$ac_t""yes" 1>&6
2884 else
2885 echo "$ac_t""no" 1>&6
2886 fi
2887
2888
2889 enablestring=
2890 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2891 echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5
2892 no_cache=0
2893 # Check whether --enable-permissive or --disable-permissive was given.
2894 if test "${enable_permissive+set}" = set; then
2895 enableval="$enable_permissive"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2899 else
2900 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2901 fi
2902
2903 else
2904
2905 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2913
2914 fi
2915
2916
2917 eval "$ac_cv_use_permissive"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_PERMISSIVE" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929 enablestring=
2930 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2931 echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5
2932 no_cache=0
2933 # Check whether --enable-no_deps or --disable-no_deps was given.
2934 if test "${enable_no_deps+set}" = set; then
2935 enableval="$enable_no_deps"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2939 else
2940 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2941 fi
2942
2943 else
2944
2945 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2953
2954 fi
2955
2956
2957 eval "$ac_cv_use_no_deps"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_NO_DEPS" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969
2970 enablestring=
2971 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2972 echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5
2973 no_cache=0
2974 # Check whether --enable-compat20 or --disable-compat20 was given.
2975 if test "${enable_compat20+set}" = set; then
2976 enableval="$enable_compat20"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2980 else
2981 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2982 fi
2983
2984 else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2994
2995 fi
2996
2997
2998 eval "$ac_cv_use_compat20"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010 enablestring=disable
3011 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3012 echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5
3013 no_cache=0
3014 # Check whether --enable-compat22 or --disable-compat22 was given.
3015 if test "${enable_compat22+set}" = set; then
3016 enableval="$enable_compat22"
3017
3018 if test "$enableval" = yes; then
3019 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3020 else
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3022 fi
3023
3024 else
3025
3026 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3034
3035 fi
3036
3037
3038 eval "$ac_cv_use_compat22"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3044 echo "$ac_t""yes" 1>&6
3045 else
3046 echo "$ac_t""no" 1>&6
3047 fi
3048
3049
3050 # Check whether --enable-rpath or --disable-rpath was given.
3051 if test "${enable_rpath+set}" = set; then
3052 enableval="$enable_rpath"
3053 wxRPATH_DIR="$enableval"
3054 fi
3055
3056
3057 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3058 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3059 fi
3060
3061
3062
3063
3064 enablestring=
3065 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3066 echo "configure:3067: checking for --${enablestring:-enable}-intl" >&5
3067 no_cache=0
3068 # Check whether --enable-intl or --disable-intl was given.
3069 if test "${enable_intl+set}" = set; then
3070 enableval="$enable_intl"
3071
3072 if test "$enableval" = yes; then
3073 ac_cv_use_intl='wxUSE_INTL=yes'
3074 else
3075 ac_cv_use_intl='wxUSE_INTL=no'
3076 fi
3077
3078 else
3079
3080 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3088
3089 fi
3090
3091
3092 eval "$ac_cv_use_intl"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$wxUSE_INTL" = yes; then
3098 echo "$ac_t""yes" 1>&6
3099 else
3100 echo "$ac_t""no" 1>&6
3101 fi
3102
3103
3104 enablestring=
3105 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3106 echo "configure:3107: checking for --${enablestring:-enable}-config" >&5
3107 no_cache=0
3108 # Check whether --enable-config or --disable-config was given.
3109 if test "${enable_config+set}" = set; then
3110 enableval="$enable_config"
3111
3112 if test "$enableval" = yes; then
3113 ac_cv_use_config='wxUSE_CONFIG=yes'
3114 else
3115 ac_cv_use_config='wxUSE_CONFIG=no'
3116 fi
3117
3118 else
3119
3120 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3121 if test "x$LINE" != x ; then
3122 eval "DEFAULT_$LINE"
3123 else
3124 no_cache=1
3125 fi
3126
3127 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3128
3129 fi
3130
3131
3132 eval "$ac_cv_use_config"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_CONFIG" = yes; then
3138 echo "$ac_t""yes" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3141 fi
3142
3143
3144
3145 enablestring=
3146 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3147 echo "configure:3148: checking for --${enablestring:-enable}-protocols" >&5
3148 no_cache=0
3149 # Check whether --enable-protocols or --disable-protocols was given.
3150 if test "${enable_protocols+set}" = set; then
3151 enableval="$enable_protocols"
3152
3153 if test "$enableval" = yes; then
3154 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3155 else
3156 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3157 fi
3158
3159 else
3160
3161 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3162 if test "x$LINE" != x ; then
3163 eval "DEFAULT_$LINE"
3164 else
3165 no_cache=1
3166 fi
3167
3168 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3169
3170 fi
3171
3172
3173 eval "$ac_cv_use_protocols"
3174 if test "$no_cache" != 1; then
3175 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3176 fi
3177
3178 if test "$wxUSE_PROTOCOL" = yes; then
3179 echo "$ac_t""yes" 1>&6
3180 else
3181 echo "$ac_t""no" 1>&6
3182 fi
3183
3184
3185 enablestring=
3186 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3187 echo "configure:3188: checking for --${enablestring:-enable}-ftp" >&5
3188 no_cache=0
3189 # Check whether --enable-ftp or --disable-ftp was given.
3190 if test "${enable_ftp+set}" = set; then
3191 enableval="$enable_ftp"
3192
3193 if test "$enableval" = yes; then
3194 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3195 else
3196 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3197 fi
3198
3199 else
3200
3201 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3209
3210 fi
3211
3212
3213 eval "$ac_cv_use_ftp"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3219 echo "$ac_t""yes" 1>&6
3220 else
3221 echo "$ac_t""no" 1>&6
3222 fi
3223
3224
3225 enablestring=
3226 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3227 echo "configure:3228: checking for --${enablestring:-enable}-http" >&5
3228 no_cache=0
3229 # Check whether --enable-http or --disable-http was given.
3230 if test "${enable_http+set}" = set; then
3231 enableval="$enable_http"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3235 else
3236 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3237 fi
3238
3239 else
3240
3241 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3249
3250 fi
3251
3252
3253 eval "$ac_cv_use_http"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
3265 enablestring=
3266 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3267 echo "configure:3268: checking for --${enablestring:-enable}-fileproto" >&5
3268 no_cache=0
3269 # Check whether --enable-fileproto or --disable-fileproto was given.
3270 if test "${enable_fileproto+set}" = set; then
3271 enableval="$enable_fileproto"
3272
3273 if test "$enableval" = yes; then
3274 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3275 else
3276 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3277 fi
3278
3279 else
3280
3281 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3289
3290 fi
3291
3292
3293 eval "$ac_cv_use_fileproto"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3299 echo "$ac_t""yes" 1>&6
3300 else
3301 echo "$ac_t""no" 1>&6
3302 fi
3303
3304
3305 enablestring=
3306 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3307 echo "configure:3308: checking for --${enablestring:-enable}-sockets" >&5
3308 no_cache=0
3309 # Check whether --enable-sockets or --disable-sockets was given.
3310 if test "${enable_sockets+set}" = set; then
3311 enableval="$enable_sockets"
3312
3313 if test "$enableval" = yes; then
3314 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3315 else
3316 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3317 fi
3318
3319 else
3320
3321 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3329
3330 fi
3331
3332
3333 eval "$ac_cv_use_sockets"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_SOCKETS" = yes; then
3339 echo "$ac_t""yes" 1>&6
3340 else
3341 echo "$ac_t""no" 1>&6
3342 fi
3343
3344
3345 enablestring=
3346 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3347 echo "configure:3348: checking for --${enablestring:-enable}-ole" >&5
3348 no_cache=0
3349 # Check whether --enable-ole or --disable-ole was given.
3350 if test "${enable_ole+set}" = set; then
3351 enableval="$enable_ole"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_ole='wxUSE_OLE=yes'
3355 else
3356 ac_cv_use_ole='wxUSE_OLE=no'
3357 fi
3358
3359 else
3360
3361 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3369
3370 fi
3371
3372
3373 eval "$ac_cv_use_ole"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_OLE" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
3385 enablestring=
3386 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3387 echo "configure:3388: checking for --${enablestring:-enable}-dataobj" >&5
3388 no_cache=0
3389 # Check whether --enable-dataobj or --disable-dataobj was given.
3390 if test "${enable_dataobj+set}" = set; then
3391 enableval="$enable_dataobj"
3392
3393 if test "$enableval" = yes; then
3394 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3395 else
3396 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3397 fi
3398
3399 else
3400
3401 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3409
3410 fi
3411
3412
3413 eval "$ac_cv_use_dataobj"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_DATAOBJ" = yes; then
3419 echo "$ac_t""yes" 1>&6
3420 else
3421 echo "$ac_t""no" 1>&6
3422 fi
3423
3424
3425
3426 enablestring=
3427 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3428 echo "configure:3429: checking for --${enablestring:-enable}-ipc" >&5
3429 no_cache=0
3430 # Check whether --enable-ipc or --disable-ipc was given.
3431 if test "${enable_ipc+set}" = set; then
3432 enableval="$enable_ipc"
3433
3434 if test "$enableval" = yes; then
3435 ac_cv_use_ipc='wxUSE_IPC=yes'
3436 else
3437 ac_cv_use_ipc='wxUSE_IPC=no'
3438 fi
3439
3440 else
3441
3442 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3443 if test "x$LINE" != x ; then
3444 eval "DEFAULT_$LINE"
3445 else
3446 no_cache=1
3447 fi
3448
3449 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3450
3451 fi
3452
3453
3454 eval "$ac_cv_use_ipc"
3455 if test "$no_cache" != 1; then
3456 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3457 fi
3458
3459 if test "$wxUSE_IPC" = yes; then
3460 echo "$ac_t""yes" 1>&6
3461 else
3462 echo "$ac_t""no" 1>&6
3463 fi
3464
3465
3466
3467 enablestring=
3468 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3469 echo "configure:3470: checking for --${enablestring:-enable}-cmdline" >&5
3470 no_cache=0
3471 # Check whether --enable-cmdline or --disable-cmdline was given.
3472 if test "${enable_cmdline+set}" = set; then
3473 enableval="$enable_cmdline"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3477 else
3478 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3479 fi
3480
3481 else
3482
3483 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3491
3492 fi
3493
3494
3495 eval "$ac_cv_use_cmdline"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
3507 enablestring=
3508 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3509 echo "configure:3510: checking for --${enablestring:-enable}-datetime" >&5
3510 no_cache=0
3511 # Check whether --enable-datetime or --disable-datetime was given.
3512 if test "${enable_datetime+set}" = set; then
3513 enableval="$enable_datetime"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3517 else
3518 ac_cv_use_datetime='wxUSE_DATETIME=no'
3519 fi
3520
3521 else
3522
3523 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3531
3532 fi
3533
3534
3535 eval "$ac_cv_use_datetime"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_DATETIME" = yes; then
3541 echo "$ac_t""yes" 1>&6
3542 else
3543 echo "$ac_t""no" 1>&6
3544 fi
3545
3546
3547 enablestring=
3548 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3549 echo "configure:3550: checking for --${enablestring:-enable}-timedate" >&5
3550 no_cache=0
3551 # Check whether --enable-timedate or --disable-timedate was given.
3552 if test "${enable_timedate+set}" = set; then
3553 enableval="$enable_timedate"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3557 else
3558 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3559 fi
3560
3561 else
3562
3563 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3571
3572 fi
3573
3574
3575 eval "$ac_cv_use_timedate"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_TIMEDATE" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 enablestring=
3588 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3589 echo "configure:3590: checking for --${enablestring:-enable}-stopwatch" >&5
3590 no_cache=0
3591 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3592 if test "${enable_stopwatch+set}" = set; then
3593 enableval="$enable_stopwatch"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3597 else
3598 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3599 fi
3600
3601 else
3602
3603 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3611
3612 fi
3613
3614
3615 eval "$ac_cv_use_stopwatch"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_STOPWATCH" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 enablestring=
3628 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3629 echo "configure:3630: checking for --${enablestring:-enable}-dialupman" >&5
3630 no_cache=0
3631 # Check whether --enable-dialupman or --disable-dialupman was given.
3632 if test "${enable_dialupman+set}" = set; then
3633 enableval="$enable_dialupman"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3637 else
3638 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3639 fi
3640
3641 else
3642
3643 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3651
3652 fi
3653
3654
3655 eval "$ac_cv_use_dialupman"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667 enablestring=
3668 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3669 echo "configure:3670: checking for --${enablestring:-enable}-apple_ieee" >&5
3670 no_cache=0
3671 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3672 if test "${enable_apple_ieee+set}" = set; then
3673 enableval="$enable_apple_ieee"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3677 else
3678 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3679 fi
3680
3681 else
3682
3683 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3691
3692 fi
3693
3694
3695 eval "$ac_cv_use_apple_ieee"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_APPLE_IEEE" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 enablestring=
3708 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3709 echo "configure:3710: checking for --${enablestring:-enable}-timer" >&5
3710 no_cache=0
3711 # Check whether --enable-timer or --disable-timer was given.
3712 if test "${enable_timer+set}" = set; then
3713 enableval="$enable_timer"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_timer='wxUSE_TIMER=yes'
3717 else
3718 ac_cv_use_timer='wxUSE_TIMER=no'
3719 fi
3720
3721 else
3722
3723 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3731
3732 fi
3733
3734
3735 eval "$ac_cv_use_timer"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_TIMER" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 enablestring=
3748 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3749 echo "configure:3750: checking for --${enablestring:-enable}-wave" >&5
3750 no_cache=0
3751 # Check whether --enable-wave or --disable-wave was given.
3752 if test "${enable_wave+set}" = set; then
3753 enableval="$enable_wave"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_wave='wxUSE_WAVE=yes'
3757 else
3758 ac_cv_use_wave='wxUSE_WAVE=no'
3759 fi
3760
3761 else
3762
3763 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3771
3772 fi
3773
3774
3775 eval "$ac_cv_use_wave"
3776 if test "$no_cache" != 1; then
3777 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3778 fi
3779
3780 if test "$wxUSE_WAVE" = yes; then
3781 echo "$ac_t""yes" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3784 fi
3785
3786
3787 enablestring=
3788 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3789 echo "configure:3790: checking for --${enablestring:-enable}-fraction" >&5
3790 no_cache=0
3791 # Check whether --enable-fraction or --disable-fraction was given.
3792 if test "${enable_fraction+set}" = set; then
3793 enableval="$enable_fraction"
3794
3795 if test "$enableval" = yes; then
3796 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3797 else
3798 ac_cv_use_fraction='wxUSE_FRACTION=no'
3799 fi
3800
3801 else
3802
3803 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3811
3812 fi
3813
3814
3815 eval "$ac_cv_use_fraction"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_FRACTION" = yes; then
3821 echo "$ac_t""yes" 1>&6
3822 else
3823 echo "$ac_t""no" 1>&6
3824 fi
3825
3826
3827 enablestring=
3828 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3829 echo "configure:3830: checking for --${enablestring:-enable}-dynlib" >&5
3830 no_cache=0
3831 # Check whether --enable-dynlib or --disable-dynlib was given.
3832 if test "${enable_dynlib+set}" = set; then
3833 enableval="$enable_dynlib"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3837 else
3838 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3839 fi
3840
3841 else
3842
3843 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3851
3852 fi
3853
3854
3855 eval "$ac_cv_use_dynlib"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867 enablestring=
3868 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3869 echo "configure:3870: checking for --${enablestring:-enable}-dynamicloader" >&5
3870 no_cache=0
3871 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3872 if test "${enable_dynamicloader+set}" = set; then
3873 enableval="$enable_dynamicloader"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3877 else
3878 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3879 fi
3880
3881 else
3882
3883 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3891
3892 fi
3893
3894
3895 eval "$ac_cv_use_dynamicloader"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3901 echo "$ac_t""yes" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3904 fi
3905
3906
3907 enablestring=
3908 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3909 echo "configure:3910: checking for --${enablestring:-enable}-longlong" >&5
3910 no_cache=0
3911 # Check whether --enable-longlong or --disable-longlong was given.
3912 if test "${enable_longlong+set}" = set; then
3913 enableval="$enable_longlong"
3914
3915 if test "$enableval" = yes; then
3916 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3917 else
3918 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3919 fi
3920
3921 else
3922
3923 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3924 if test "x$LINE" != x ; then
3925 eval "DEFAULT_$LINE"
3926 else
3927 no_cache=1
3928 fi
3929
3930 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3931
3932 fi
3933
3934
3935 eval "$ac_cv_use_longlong"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_LONGLONG" = yes; then
3941 echo "$ac_t""yes" 1>&6
3942 else
3943 echo "$ac_t""no" 1>&6
3944 fi
3945
3946
3947 enablestring=
3948 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3949 echo "configure:3950: checking for --${enablestring:-enable}-geometry" >&5
3950 no_cache=0
3951 # Check whether --enable-geometry or --disable-geometry was given.
3952 if test "${enable_geometry+set}" = set; then
3953 enableval="$enable_geometry"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3957 else
3958 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3959 fi
3960
3961 else
3962
3963 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3971
3972 fi
3973
3974
3975 eval "$ac_cv_use_geometry"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_GEOMETRY" = yes; then
3981 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987 enablestring=
3988 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
3989 echo "configure:3990: checking for --${enablestring:-enable}-log" >&5
3990 no_cache=0
3991 # Check whether --enable-log or --disable-log was given.
3992 if test "${enable_log+set}" = set; then
3993 enableval="$enable_log"
3994
3995 if test "$enableval" = yes; then
3996 ac_cv_use_log='wxUSE_LOG=yes'
3997 else
3998 ac_cv_use_log='wxUSE_LOG=no'
3999 fi
4000
4001 else
4002
4003 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4004 if test "x$LINE" != x ; then
4005 eval "DEFAULT_$LINE"
4006 else
4007 no_cache=1
4008 fi
4009
4010 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4011
4012 fi
4013
4014
4015 eval "$ac_cv_use_log"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_LOG" = yes; then
4021 echo "$ac_t""yes" 1>&6
4022 else
4023 echo "$ac_t""no" 1>&6
4024 fi
4025
4026
4027 enablestring=
4028 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4029 echo "configure:4030: checking for --${enablestring:-enable}-streams" >&5
4030 no_cache=0
4031 # Check whether --enable-streams or --disable-streams was given.
4032 if test "${enable_streams+set}" = set; then
4033 enableval="$enable_streams"
4034
4035 if test "$enableval" = yes; then
4036 ac_cv_use_streams='wxUSE_STREAMS=yes'
4037 else
4038 ac_cv_use_streams='wxUSE_STREAMS=no'
4039 fi
4040
4041 else
4042
4043 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4051
4052 fi
4053
4054
4055 eval "$ac_cv_use_streams"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_STREAMS" = yes; then
4061 echo "$ac_t""yes" 1>&6
4062 else
4063 echo "$ac_t""no" 1>&6
4064 fi
4065
4066
4067 enablestring=
4068 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4069 echo "configure:4070: checking for --${enablestring:-enable}-file" >&5
4070 no_cache=0
4071 # Check whether --enable-file or --disable-file was given.
4072 if test "${enable_file+set}" = set; then
4073 enableval="$enable_file"
4074
4075 if test "$enableval" = yes; then
4076 ac_cv_use_file='wxUSE_FILE=yes'
4077 else
4078 ac_cv_use_file='wxUSE_FILE=no'
4079 fi
4080
4081 else
4082
4083 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4091
4092 fi
4093
4094
4095 eval "$ac_cv_use_file"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_FILE" = yes; then
4101 echo "$ac_t""yes" 1>&6
4102 else
4103 echo "$ac_t""no" 1>&6
4104 fi
4105
4106
4107 enablestring=
4108 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4109 echo "configure:4110: checking for --${enablestring:-enable}-ffile" >&5
4110 no_cache=0
4111 # Check whether --enable-ffile or --disable-ffile was given.
4112 if test "${enable_ffile+set}" = set; then
4113 enableval="$enable_ffile"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_ffile='wxUSE_FFILE=yes'
4117 else
4118 ac_cv_use_ffile='wxUSE_FFILE=no'
4119 fi
4120
4121 else
4122
4123 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4131
4132 fi
4133
4134
4135 eval "$ac_cv_use_ffile"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_FFILE" = yes; then
4141 echo "$ac_t""yes" 1>&6
4142 else
4143 echo "$ac_t""no" 1>&6
4144 fi
4145
4146
4147 enablestring=
4148 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4149 echo "configure:4150: checking for --${enablestring:-enable}-textbuf" >&5
4150 no_cache=0
4151 # Check whether --enable-textbuf or --disable-textbuf was given.
4152 if test "${enable_textbuf+set}" = set; then
4153 enableval="$enable_textbuf"
4154
4155 if test "$enableval" = yes; then
4156 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4157 else
4158 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4159 fi
4160
4161 else
4162
4163 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
4170 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4171
4172 fi
4173
4174
4175 eval "$ac_cv_use_textbuf"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_TEXTBUFFER" = yes; then
4181 echo "$ac_t""yes" 1>&6
4182 else
4183 echo "$ac_t""no" 1>&6
4184 fi
4185
4186
4187 enablestring=
4188 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4189 echo "configure:4190: checking for --${enablestring:-enable}-textfile" >&5
4190 no_cache=0
4191 # Check whether --enable-textfile or --disable-textfile was given.
4192 if test "${enable_textfile+set}" = set; then
4193 enableval="$enable_textfile"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4197 else
4198 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4199 fi
4200
4201 else
4202
4203 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4211
4212 fi
4213
4214
4215 eval "$ac_cv_use_textfile"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_TEXTFILE" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
4227 enablestring=
4228 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4229 echo "configure:4230: checking for --${enablestring:-enable}-fontmap" >&5
4230 no_cache=0
4231 # Check whether --enable-fontmap or --disable-fontmap was given.
4232 if test "${enable_fontmap+set}" = set; then
4233 enableval="$enable_fontmap"
4234
4235 if test "$enableval" = yes; then
4236 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4237 else
4238 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4239 fi
4240
4241 else
4242
4243 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4251
4252 fi
4253
4254
4255 eval "$ac_cv_use_fontmap"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_FONTMAP" = yes; then
4261 echo "$ac_t""yes" 1>&6
4262 else
4263 echo "$ac_t""no" 1>&6
4264 fi
4265
4266
4267 enablestring=
4268 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4269 echo "configure:4270: checking for --${enablestring:-enable}-unicode" >&5
4270 no_cache=0
4271 # Check whether --enable-unicode or --disable-unicode was given.
4272 if test "${enable_unicode+set}" = set; then
4273 enableval="$enable_unicode"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4277 else
4278 ac_cv_use_unicode='wxUSE_UNICODE=no'
4279 fi
4280
4281 else
4282
4283 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4291
4292 fi
4293
4294
4295 eval "$ac_cv_use_unicode"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_UNICODE" = yes; then
4301 echo "$ac_t""yes" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306
4307 enablestring=
4308 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4309 echo "configure:4310: checking for --${enablestring:-enable}-mslu" >&5
4310 no_cache=0
4311 # Check whether --enable-mslu or --disable-mslu was given.
4312 if test "${enable_mslu+set}" = set; then
4313 enableval="$enable_mslu"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4317 else
4318 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4319 fi
4320
4321 else
4322
4323 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4331
4332 fi
4333
4334
4335 eval "$ac_cv_use_mslu"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_UNICODE_MSLU" = yes; then
4341 echo "$ac_t""yes" 1>&6
4342 else
4343 echo "$ac_t""no" 1>&6
4344 fi
4345
4346
4347 enablestring=
4348 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4349 echo "configure:4350: checking for --${enablestring:-enable}-wxprintfv" >&5
4350 no_cache=0
4351 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4352 if test "${enable_wxprintfv+set}" = set; then
4353 enableval="$enable_wxprintfv"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4357 else
4358 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4359 fi
4360
4361 else
4362
4363 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4371
4372 fi
4373
4374
4375 eval "$ac_cv_use_wxprintfv"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4381 echo "$ac_t""yes" 1>&6
4382 else
4383 echo "$ac_t""no" 1>&6
4384 fi
4385
4386
4387 enablestring=
4388 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4389 echo "configure:4390: checking for --${enablestring:-enable}-std_iostreams" >&5
4390 no_cache=0
4391 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4392 if test "${enable_std_iostreams+set}" = set; then
4393 enableval="$enable_std_iostreams"
4394
4395 if test "$enableval" = yes; then
4396 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4397 else
4398 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4399 fi
4400
4401 else
4402
4403 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4411
4412 fi
4413
4414
4415 eval "$ac_cv_use_std_iostreams"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_STD_IOSTREAM" = yes; then
4421 echo "$ac_t""yes" 1>&6
4422 else
4423 echo "$ac_t""no" 1>&6
4424 fi
4425
4426
4427 enablestring=
4428 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4429 echo "configure:4430: checking for --${enablestring:-enable}-filesystem" >&5
4430 no_cache=0
4431 # Check whether --enable-filesystem or --disable-filesystem was given.
4432 if test "${enable_filesystem+set}" = set; then
4433 enableval="$enable_filesystem"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4437 else
4438 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4439 fi
4440
4441 else
4442
4443 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4451
4452 fi
4453
4454
4455 eval "$ac_cv_use_filesystem"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_FILESYSTEM" = yes; then
4461 echo "$ac_t""yes" 1>&6
4462 else
4463 echo "$ac_t""no" 1>&6
4464 fi
4465
4466
4467 enablestring=
4468 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4469 echo "configure:4470: checking for --${enablestring:-enable}-fs_inet" >&5
4470 no_cache=0
4471 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4472 if test "${enable_fs_inet+set}" = set; then
4473 enableval="$enable_fs_inet"
4474
4475 if test "$enableval" = yes; then
4476 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4477 else
4478 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4479 fi
4480
4481 else
4482
4483 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4491
4492 fi
4493
4494
4495 eval "$ac_cv_use_fs_inet"
4496 if test "$no_cache" != 1; then
4497 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4498 fi
4499
4500 if test "$wxUSE_FS_INET" = yes; then
4501 echo "$ac_t""yes" 1>&6
4502 else
4503 echo "$ac_t""no" 1>&6
4504 fi
4505
4506
4507 enablestring=
4508 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4509 echo "configure:4510: checking for --${enablestring:-enable}-fs_zip" >&5
4510 no_cache=0
4511 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4512 if test "${enable_fs_zip+set}" = set; then
4513 enableval="$enable_fs_zip"
4514
4515 if test "$enableval" = yes; then
4516 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4517 else
4518 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4519 fi
4520
4521 else
4522
4523 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4531
4532 fi
4533
4534
4535 eval "$ac_cv_use_fs_zip"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_FS_ZIP" = yes; then
4541 echo "$ac_t""yes" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546
4547 enablestring=
4548 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4549 echo "configure:4550: checking for --${enablestring:-enable}-zipstream" >&5
4550 no_cache=0
4551 # Check whether --enable-zipstream or --disable-zipstream was given.
4552 if test "${enable_zipstream+set}" = set; then
4553 enableval="$enable_zipstream"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4557 else
4558 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4559 fi
4560
4561 else
4562
4563 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4571
4572 fi
4573
4574
4575 eval "$ac_cv_use_zipstream"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_ZIPSTREAM" = yes; then
4581 echo "$ac_t""yes" 1>&6
4582 else
4583 echo "$ac_t""no" 1>&6
4584 fi
4585
4586
4587
4588 enablestring=
4589 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4590 echo "configure:4591: checking for --${enablestring:-enable}-catch_segvs" >&5
4591 no_cache=0
4592 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4593 if test "${enable_catch_segvs+set}" = set; then
4594 enableval="$enable_catch_segvs"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4598 else
4599 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4600 fi
4601
4602 else
4603
4604 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4612
4613 fi
4614
4615
4616 eval "$ac_cv_use_catch_segvs"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4622 echo "$ac_t""yes" 1>&6
4623 else
4624 echo "$ac_t""no" 1>&6
4625 fi
4626
4627
4628 enablestring=
4629 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4630 echo "configure:4631: checking for --${enablestring:-enable}-snglinst" >&5
4631 no_cache=0
4632 # Check whether --enable-snglinst or --disable-snglinst was given.
4633 if test "${enable_snglinst+set}" = set; then
4634 enableval="$enable_snglinst"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4638 else
4639 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4640 fi
4641
4642 else
4643
4644 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4652
4653 fi
4654
4655
4656 eval "$ac_cv_use_snglinst"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4662 echo "$ac_t""yes" 1>&6
4663 else
4664 echo "$ac_t""no" 1>&6
4665 fi
4666
4667
4668
4669 enablestring=
4670 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4671 echo "configure:4672: checking for --${enablestring:-enable}-mimetype" >&5
4672 no_cache=0
4673 # Check whether --enable-mimetype or --disable-mimetype was given.
4674 if test "${enable_mimetype+set}" = set; then
4675 enableval="$enable_mimetype"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4679 else
4680 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4681 fi
4682
4683 else
4684
4685 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4693
4694 fi
4695
4696
4697 eval "$ac_cv_use_mimetype"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_MIMETYPE" = yes; then
4703 echo "$ac_t""yes" 1>&6
4704 else
4705 echo "$ac_t""no" 1>&6
4706 fi
4707
4708
4709 enablestring=
4710 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4711 echo "configure:4712: checking for --${enablestring:-enable}-system_options" >&5
4712 no_cache=0
4713 # Check whether --enable-system_options or --disable-system_options was given.
4714 if test "${enable_system_options+set}" = set; then
4715 enableval="$enable_system_options"
4716
4717 if test "$enableval" = yes; then
4718 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4719 else
4720 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4721 fi
4722
4723 else
4724
4725 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4733
4734 fi
4735
4736
4737 eval "$ac_cv_use_system_options"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4743 echo "$ac_t""yes" 1>&6
4744 else
4745 echo "$ac_t""no" 1>&6
4746 fi
4747
4748
4749
4750 enablestring=
4751 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4752 echo "configure:4753: checking for --${enablestring:-enable}-url" >&5
4753 no_cache=0
4754 # Check whether --enable-url or --disable-url was given.
4755 if test "${enable_url+set}" = set; then
4756 enableval="$enable_url"
4757
4758 if test "$enableval" = yes; then
4759 ac_cv_use_url='wxUSE_URL=yes'
4760 else
4761 ac_cv_use_url='wxUSE_URL=no'
4762 fi
4763
4764 else
4765
4766 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4767 if test "x$LINE" != x ; then
4768 eval "DEFAULT_$LINE"
4769 else
4770 no_cache=1
4771 fi
4772
4773 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4774
4775 fi
4776
4777
4778 eval "$ac_cv_use_url"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_URL" = yes; then
4784 echo "$ac_t""yes" 1>&6
4785 else
4786 echo "$ac_t""no" 1>&6
4787 fi
4788
4789
4790 enablestring=
4791 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4792 echo "configure:4793: checking for --${enablestring:-enable}-protocol" >&5
4793 no_cache=0
4794 # Check whether --enable-protocol or --disable-protocol was given.
4795 if test "${enable_protocol+set}" = set; then
4796 enableval="$enable_protocol"
4797
4798 if test "$enableval" = yes; then
4799 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4800 else
4801 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4802 fi
4803
4804 else
4805
4806 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4814
4815 fi
4816
4817
4818 eval "$ac_cv_use_protocol"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_PROTOCOL" = yes; then
4824 echo "$ac_t""yes" 1>&6
4825 else
4826 echo "$ac_t""no" 1>&6
4827 fi
4828
4829
4830 enablestring=
4831 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4832 echo "configure:4833: checking for --${enablestring:-enable}-protocol_http" >&5
4833 no_cache=0
4834 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4835 if test "${enable_protocol_http+set}" = set; then
4836 enableval="$enable_protocol_http"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4840 else
4841 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4842 fi
4843
4844 else
4845
4846 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4854
4855 fi
4856
4857
4858 eval "$ac_cv_use_protocol_http"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4864 echo "$ac_t""yes" 1>&6
4865 else
4866 echo "$ac_t""no" 1>&6
4867 fi
4868
4869
4870 enablestring=
4871 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4872 echo "configure:4873: checking for --${enablestring:-enable}-protocol_ftp" >&5
4873 no_cache=0
4874 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4875 if test "${enable_protocol_ftp+set}" = set; then
4876 enableval="$enable_protocol_ftp"
4877
4878 if test "$enableval" = yes; then
4879 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4880 else
4881 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4882 fi
4883
4884 else
4885
4886 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4887 if test "x$LINE" != x ; then
4888 eval "DEFAULT_$LINE"
4889 else
4890 no_cache=1
4891 fi
4892
4893 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4894
4895 fi
4896
4897
4898 eval "$ac_cv_use_protocol_ftp"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4904 echo "$ac_t""yes" 1>&6
4905 else
4906 echo "$ac_t""no" 1>&6
4907 fi
4908
4909
4910 enablestring=
4911 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4912 echo "configure:4913: checking for --${enablestring:-enable}-protocol_file" >&5
4913 no_cache=0
4914 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4915 if test "${enable_protocol_file+set}" = set; then
4916 enableval="$enable_protocol_file"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4920 else
4921 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4922 fi
4923
4924 else
4925
4926 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4934
4935 fi
4936
4937
4938 eval "$ac_cv_use_protocol_file"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4944 echo "$ac_t""yes" 1>&6
4945 else
4946 echo "$ac_t""no" 1>&6
4947 fi
4948
4949
4950
4951
4952
4953 enablestring=
4954 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4955 echo "configure:4956: checking for --${enablestring:-enable}-threads" >&5
4956 no_cache=0
4957 # Check whether --enable-threads or --disable-threads was given.
4958 if test "${enable_threads+set}" = set; then
4959 enableval="$enable_threads"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_threads='wxUSE_THREADS=yes'
4963 else
4964 ac_cv_use_threads='wxUSE_THREADS=no'
4965 fi
4966
4967 else
4968
4969 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4977
4978 fi
4979
4980
4981 eval "$ac_cv_use_threads"
4982 if test "$no_cache" != 1; then
4983 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4984 fi
4985
4986 if test "$wxUSE_THREADS" = yes; then
4987 echo "$ac_t""yes" 1>&6
4988 else
4989 echo "$ac_t""no" 1>&6
4990 fi
4991
4992
4993 if test "$wxUSE_GUI" = "yes"; then
4994
4995
4996
4997 enablestring=
4998 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
4999 echo "configure:5000: checking for --${enablestring:-enable}-docview" >&5
5000 no_cache=0
5001 # Check whether --enable-docview or --disable-docview was given.
5002 if test "${enable_docview+set}" = set; then
5003 enableval="$enable_docview"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5007 else
5008 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5009 fi
5010
5011 else
5012
5013 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5021
5022 fi
5023
5024
5025 eval "$ac_cv_use_docview"
5026 if test "$no_cache" != 1; then
5027 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5028 fi
5029
5030 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5031 echo "$ac_t""yes" 1>&6
5032 else
5033 echo "$ac_t""no" 1>&6
5034 fi
5035
5036
5037 enablestring=
5038 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5039 echo "configure:5040: checking for --${enablestring:-enable}-help" >&5
5040 no_cache=0
5041 # Check whether --enable-help or --disable-help was given.
5042 if test "${enable_help+set}" = set; then
5043 enableval="$enable_help"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_help='wxUSE_HELP=yes'
5047 else
5048 ac_cv_use_help='wxUSE_HELP=no'
5049 fi
5050
5051 else
5052
5053 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5061
5062 fi
5063
5064
5065 eval "$ac_cv_use_help"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_HELP" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 enablestring=
5078 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5079 echo "configure:5080: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5080 no_cache=0
5081 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5082 if test "${enable_mshtmlhelp+set}" = set; then
5083 enableval="$enable_mshtmlhelp"
5084
5085 if test "$enableval" = yes; then
5086 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5087 else
5088 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5089 fi
5090
5091 else
5092
5093 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5101
5102 fi
5103
5104
5105 eval "$ac_cv_use_mshtmlhelp"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_MS_HTML_HELP" = yes; then
5111 echo "$ac_t""yes" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5114 fi
5115
5116
5117 enablestring=
5118 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5119 echo "configure:5120: checking for --${enablestring:-enable}-html" >&5
5120 no_cache=0
5121 # Check whether --enable-html or --disable-html was given.
5122 if test "${enable_html+set}" = set; then
5123 enableval="$enable_html"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_html='wxUSE_HTML=yes'
5127 else
5128 ac_cv_use_html='wxUSE_HTML=no'
5129 fi
5130
5131 else
5132
5133 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5141
5142 fi
5143
5144
5145 eval "$ac_cv_use_html"
5146 if test "$no_cache" != 1; then
5147 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5148 fi
5149
5150 if test "$wxUSE_HTML" = yes; then
5151 echo "$ac_t""yes" 1>&6
5152 else
5153 echo "$ac_t""no" 1>&6
5154 fi
5155
5156
5157 enablestring=
5158 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5159 echo "configure:5160: checking for --${enablestring:-enable}-htmlhelp" >&5
5160 no_cache=0
5161 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5162 if test "${enable_htmlhelp+set}" = set; then
5163 enableval="$enable_htmlhelp"
5164
5165 if test "$enableval" = yes; then
5166 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5167 else
5168 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5169 fi
5170
5171 else
5172
5173 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5174 if test "x$LINE" != x ; then
5175 eval "DEFAULT_$LINE"
5176 else
5177 no_cache=1
5178 fi
5179
5180 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5181
5182 fi
5183
5184
5185 eval "$ac_cv_use_htmlhelp"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_WXHTML_HELP" = yes; then
5191 echo "$ac_t""yes" 1>&6
5192 else
5193 echo "$ac_t""no" 1>&6
5194 fi
5195
5196
5197 enablestring=
5198 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5199 echo "configure:5200: checking for --${enablestring:-enable}-constraints" >&5
5200 no_cache=0
5201 # Check whether --enable-constraints or --disable-constraints was given.
5202 if test "${enable_constraints+set}" = set; then
5203 enableval="$enable_constraints"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5207 else
5208 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5209 fi
5210
5211 else
5212
5213 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5221
5222 fi
5223
5224
5225 eval "$ac_cv_use_constraints"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_CONSTRAINTS" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237 enablestring=
5238 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5239 echo "configure:5240: checking for --${enablestring:-enable}-printarch" >&5
5240 no_cache=0
5241 # Check whether --enable-printarch or --disable-printarch was given.
5242 if test "${enable_printarch+set}" = set; then
5243 enableval="$enable_printarch"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5247 else
5248 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5249 fi
5250
5251 else
5252
5253 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5261
5262 fi
5263
5264
5265 eval "$ac_cv_use_printarch"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5271 echo "$ac_t""yes" 1>&6
5272 else
5273 echo "$ac_t""no" 1>&6
5274 fi
5275
5276
5277 enablestring=
5278 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5279 echo "configure:5280: checking for --${enablestring:-enable}-mdi" >&5
5280 no_cache=0
5281 # Check whether --enable-mdi or --disable-mdi was given.
5282 if test "${enable_mdi+set}" = set; then
5283 enableval="$enable_mdi"
5284
5285 if test "$enableval" = yes; then
5286 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5287 else
5288 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5289 fi
5290
5291 else
5292
5293 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5301
5302 fi
5303
5304
5305 eval "$ac_cv_use_mdi"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5311 echo "$ac_t""yes" 1>&6
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315
5316
5317 enablestring=
5318 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5319 echo "configure:5320: checking for --${enablestring:-enable}-loggui" >&5
5320 no_cache=0
5321 # Check whether --enable-loggui or --disable-loggui was given.
5322 if test "${enable_loggui+set}" = set; then
5323 enableval="$enable_loggui"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5327 else
5328 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5329 fi
5330
5331 else
5332
5333 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5341
5342 fi
5343
5344
5345 eval "$ac_cv_use_loggui"
5346 if test "$no_cache" != 1; then
5347 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5348 fi
5349
5350 if test "$wxUSE_LOGGUI" = yes; then
5351 echo "$ac_t""yes" 1>&6
5352 else
5353 echo "$ac_t""no" 1>&6
5354 fi
5355
5356
5357 enablestring=
5358 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5359 echo "configure:5360: checking for --${enablestring:-enable}-logwin" >&5
5360 no_cache=0
5361 # Check whether --enable-logwin or --disable-logwin was given.
5362 if test "${enable_logwin+set}" = set; then
5363 enableval="$enable_logwin"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5367 else
5368 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5369 fi
5370
5371 else
5372
5373 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5381
5382 fi
5383
5384
5385 eval "$ac_cv_use_logwin"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_LOGWINDOW" = yes; then
5391 echo "$ac_t""yes" 1>&6
5392 else
5393 echo "$ac_t""no" 1>&6
5394 fi
5395
5396
5397 enablestring=
5398 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5399 echo "configure:5400: checking for --${enablestring:-enable}-logdialog" >&5
5400 no_cache=0
5401 # Check whether --enable-logdialog or --disable-logdialog was given.
5402 if test "${enable_logdialog+set}" = set; then
5403 enableval="$enable_logdialog"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5407 else
5408 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5409 fi
5410
5411 else
5412
5413 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5421
5422 fi
5423
5424
5425 eval "$ac_cv_use_logdialog"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_LOGDIALOG" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437
5438 enablestring=
5439 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5440 echo "configure:5441: checking for --${enablestring:-enable}-postscript" >&5
5441 no_cache=0
5442 # Check whether --enable-postscript or --disable-postscript was given.
5443 if test "${enable_postscript+set}" = set; then
5444 enableval="$enable_postscript"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5448 else
5449 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5450 fi
5451
5452 else
5453
5454 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5462
5463 fi
5464
5465
5466 eval "$ac_cv_use_postscript"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_POSTSCRIPT" = yes; then
5472 echo "$ac_t""yes" 1>&6
5473 else
5474 echo "$ac_t""no" 1>&6
5475 fi
5476
5477
5478
5479
5480
5481 enablestring=
5482 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5483 echo "configure:5484: checking for --${enablestring:-enable}-prologio" >&5
5484 no_cache=0
5485 # Check whether --enable-prologio or --disable-prologio was given.
5486 if test "${enable_prologio+set}" = set; then
5487 enableval="$enable_prologio"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5491 else
5492 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5493 fi
5494
5495 else
5496
5497 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5505
5506 fi
5507
5508
5509 eval "$ac_cv_use_prologio"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_PROLOGIO" = yes; then
5515 echo "$ac_t""yes" 1>&6
5516 else
5517 echo "$ac_t""no" 1>&6
5518 fi
5519
5520
5521 enablestring=
5522 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5523 echo "configure:5524: checking for --${enablestring:-enable}-resources" >&5
5524 no_cache=0
5525 # Check whether --enable-resources or --disable-resources was given.
5526 if test "${enable_resources+set}" = set; then
5527 enableval="$enable_resources"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5531 else
5532 ac_cv_use_resources='wxUSE_RESOURCES=no'
5533 fi
5534
5535 else
5536
5537 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5545
5546 fi
5547
5548
5549 eval "$ac_cv_use_resources"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_RESOURCES" = yes; then
5555 echo "$ac_t""yes" 1>&6
5556 else
5557 echo "$ac_t""no" 1>&6
5558 fi
5559
5560
5561
5562 enablestring=
5563 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5564 echo "configure:5565: checking for --${enablestring:-enable}-xresources" >&5
5565 no_cache=0
5566 # Check whether --enable-xresources or --disable-xresources was given.
5567 if test "${enable_xresources+set}" = set; then
5568 enableval="$enable_xresources"
5569
5570 if test "$enableval" = yes; then
5571 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5572 else
5573 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5574 fi
5575
5576 else
5577
5578 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5586
5587 fi
5588
5589
5590 eval "$ac_cv_use_xresources"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_X_RESOURCES" = yes; then
5596 echo "$ac_t""yes" 1>&6
5597 else
5598 echo "$ac_t""no" 1>&6
5599 fi
5600
5601
5602
5603
5604 enablestring=
5605 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5606 echo "configure:5607: checking for --${enablestring:-enable}-clipboard" >&5
5607 no_cache=0
5608 # Check whether --enable-clipboard or --disable-clipboard was given.
5609 if test "${enable_clipboard+set}" = set; then
5610 enableval="$enable_clipboard"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5614 else
5615 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5616 fi
5617
5618 else
5619
5620 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5628
5629 fi
5630
5631
5632 eval "$ac_cv_use_clipboard"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_CLIPBOARD" = yes; then
5638 echo "$ac_t""yes" 1>&6
5639 else
5640 echo "$ac_t""no" 1>&6
5641 fi
5642
5643
5644 enablestring=
5645 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5646 echo "configure:5647: checking for --${enablestring:-enable}-dnd" >&5
5647 no_cache=0
5648 # Check whether --enable-dnd or --disable-dnd was given.
5649 if test "${enable_dnd+set}" = set; then
5650 enableval="$enable_dnd"
5651
5652 if test "$enableval" = yes; then
5653 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5654 else
5655 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5656 fi
5657
5658 else
5659
5660 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5668
5669 fi
5670
5671
5672 eval "$ac_cv_use_dnd"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5678 echo "$ac_t""yes" 1>&6
5679 else
5680 echo "$ac_t""no" 1>&6
5681 fi
5682
5683
5684 enablestring=
5685 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5686 echo "configure:5687: checking for --${enablestring:-enable}-metafile" >&5
5687 no_cache=0
5688 # Check whether --enable-metafile or --disable-metafile was given.
5689 if test "${enable_metafile+set}" = set; then
5690 enableval="$enable_metafile"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5694 else
5695 ac_cv_use_metafile='wxUSE_METAFILE=no'
5696 fi
5697
5698 else
5699
5700 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5708
5709 fi
5710
5711
5712 eval "$ac_cv_use_metafile"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_METAFILE" = yes; then
5718 echo "$ac_t""yes" 1>&6
5719 else
5720 echo "$ac_t""no" 1>&6
5721 fi
5722
5723
5724
5725 enablestring=
5726 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5727 echo "configure:5728: checking for --${enablestring:-enable}-treelayout" >&5
5728 no_cache=0
5729 # Check whether --enable-treelayout or --disable-treelayout was given.
5730 if test "${enable_treelayout+set}" = set; then
5731 enableval="$enable_treelayout"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5735 else
5736 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5737 fi
5738
5739 else
5740
5741 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5749
5750 fi
5751
5752
5753 eval "$ac_cv_use_treelayout"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_TREELAYOUT" = yes; then
5759 echo "$ac_t""yes" 1>&6
5760 else
5761 echo "$ac_t""no" 1>&6
5762 fi
5763
5764
5765
5766
5767 enablestring=
5768 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5769 echo "configure:5770: checking for --${enablestring:-enable}-controls" >&5
5770 no_cache=0
5771 # Check whether --enable-controls or --disable-controls was given.
5772 if test "${enable_controls+set}" = set; then
5773 enableval="$enable_controls"
5774
5775 if test "$enableval" = yes; then
5776 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5777 else
5778 ac_cv_use_controls='wxUSE_CONTROLS=no'
5779 fi
5780
5781 else
5782
5783 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5791
5792 fi
5793
5794
5795 eval "$ac_cv_use_controls"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_CONTROLS" = yes; then
5801 echo "$ac_t""yes" 1>&6
5802 else
5803 echo "$ac_t""no" 1>&6
5804 fi
5805
5806
5807 if test "$wxUSE_CONTROLS" = "yes"; then
5808 DEFAULT_wxUSE_ACCEL=yes
5809 DEFAULT_wxUSE_BMPBUTTON=yes
5810 DEFAULT_wxUSE_BUTTON=yes
5811 DEFAULT_wxUSE_CALCTRL=no
5812 DEFAULT_wxUSE_CARET=yes
5813 DEFAULT_wxUSE_COMBOBOX=yes
5814 DEFAULT_wxUSE_CHECKBOX=yes
5815 DEFAULT_wxUSE_CHECKLISTBOX=yes
5816 DEFAULT_wxUSE_CHOICE=yes
5817 DEFAULT_wxUSE_GAUGE=yes
5818 DEFAULT_wxUSE_GRID=yes
5819 DEFAULT_wxUSE_NEW_GRID=yes
5820 DEFAULT_wxUSE_IMAGLIST=yes
5821 DEFAULT_wxUSE_LISTBOX=yes
5822 DEFAULT_wxUSE_LISTCTRL=yes
5823 DEFAULT_wxUSE_NOTEBOOK=yes
5824 DEFAULT_wxUSE_PROPSHEET=yes
5825 DEFAULT_wxUSE_RADIOBOX=yes
5826 DEFAULT_wxUSE_RADIOBTN=yes
5827 DEFAULT_wxUSE_SASH=yes
5828 DEFAULT_wxUSE_SCROLLBAR=yes
5829 DEFAULT_wxUSE_SLIDER=yes
5830 DEFAULT_wxUSE_SPINBTN=yes
5831 DEFAULT_wxUSE_SPINCTRL=yes
5832 DEFAULT_wxUSE_SPLITTER=yes
5833 DEFAULT_wxUSE_STATBMP=yes
5834 DEFAULT_wxUSE_STATBOX=yes
5835 DEFAULT_wxUSE_STATLINE=yes
5836 DEFAULT_wxUSE_STATUSBAR=yes
5837 DEFAULT_wxUSE_TAB_DIALOG=yes
5838 DEFAULT_wxUSE_TOGGLEBTN=yes
5839 DEFAULT_wxUSE_TOOLBAR=yes
5840 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5841 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5842 DEFAULT_wxUSE_TOOLTIPS=yes
5843 DEFAULT_wxUSE_TREECTRL=yes
5844 DEFAULT_wxUSE_POPUPWIN=yes
5845 DEFAULT_wxUSE_TIPWINDOW=yes
5846 elif test "$wxUSE_CONTROLS" = "no"; then
5847 DEFAULT_wxUSE_ACCEL=no
5848 DEFAULT_wxUSE_BMPBUTTON=no
5849 DEFAULT_wxUSE_BUTTON=no
5850 DEFAULT_wxUSE_CALCTRL=no
5851 DEFAULT_wxUSE_CARET=no
5852 DEFAULT_wxUSE_COMBOBOX=no
5853 DEFAULT_wxUSE_CHECKBOX=no
5854 DEFAULT_wxUSE_CHECKLISTBOX=no
5855 DEFAULT_wxUSE_CHOICE=no
5856 DEFAULT_wxUSE_GAUGE=no
5857 DEFAULT_wxUSE_GRID=no
5858 DEFAULT_wxUSE_NEW_GRID=no
5859 DEFAULT_wxUSE_IMAGLIST=no
5860 DEFAULT_wxUSE_LISTBOX=no
5861 DEFAULT_wxUSE_LISTCTRL=no
5862 DEFAULT_wxUSE_NOTEBOOK=no
5863 DEFAULT_wxUSE_PROPSHEET=no
5864 DEFAULT_wxUSE_RADIOBOX=no
5865 DEFAULT_wxUSE_RADIOBTN=no
5866 DEFAULT_wxUSE_SASH=no
5867 DEFAULT_wxUSE_SCROLLBAR=no
5868 DEFAULT_wxUSE_SLIDER=no
5869 DEFAULT_wxUSE_SPINBTN=no
5870 DEFAULT_wxUSE_SPINCTRL=no
5871 DEFAULT_wxUSE_SPLITTER=no
5872 DEFAULT_wxUSE_STATBMP=no
5873 DEFAULT_wxUSE_STATBOX=no
5874 DEFAULT_wxUSE_STATLINE=no
5875 DEFAULT_wxUSE_STATUSBAR=no
5876 DEFAULT_wxUSE_TAB_DIALOG=no
5877 DEFAULT_wxUSE_TOGGLEBTN=no
5878 DEFAULT_wxUSE_TOOLBAR=no
5879 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5880 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5881 DEFAULT_wxUSE_TOOLTIPS=no
5882 DEFAULT_wxUSE_TREECTRL=no
5883 DEFAULT_wxUSE_POPUPWIN=no
5884 DEFAULT_wxUSE_TIPWINDOW=no
5885 fi
5886
5887
5888 enablestring=
5889 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5890 echo "configure:5891: checking for --${enablestring:-enable}-accel" >&5
5891 no_cache=0
5892 # Check whether --enable-accel or --disable-accel was given.
5893 if test "${enable_accel+set}" = set; then
5894 enableval="$enable_accel"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_accel='wxUSE_ACCEL=yes'
5898 else
5899 ac_cv_use_accel='wxUSE_ACCEL=no'
5900 fi
5901
5902 else
5903
5904 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5912
5913 fi
5914
5915
5916 eval "$ac_cv_use_accel"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_ACCEL" = yes; then
5922 echo "$ac_t""yes" 1>&6
5923 else
5924 echo "$ac_t""no" 1>&6
5925 fi
5926
5927
5928 enablestring=
5929 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5930 echo "configure:5931: checking for --${enablestring:-enable}-button" >&5
5931 no_cache=0
5932 # Check whether --enable-button or --disable-button was given.
5933 if test "${enable_button+set}" = set; then
5934 enableval="$enable_button"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_button='wxUSE_BUTTON=yes'
5938 else
5939 ac_cv_use_button='wxUSE_BUTTON=no'
5940 fi
5941
5942 else
5943
5944 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5952
5953 fi
5954
5955
5956 eval "$ac_cv_use_button"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_BUTTON" = yes; then
5962 echo "$ac_t""yes" 1>&6
5963 else
5964 echo "$ac_t""no" 1>&6
5965 fi
5966
5967
5968 enablestring=
5969 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5970 echo "configure:5971: checking for --${enablestring:-enable}-bmpbutton" >&5
5971 no_cache=0
5972 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5973 if test "${enable_bmpbutton+set}" = set; then
5974 enableval="$enable_bmpbutton"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5978 else
5979 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5980 fi
5981
5982 else
5983
5984 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5992
5993 fi
5994
5995
5996 eval "$ac_cv_use_bmpbutton"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_BMPBUTTON" = yes; then
6002 echo "$ac_t""yes" 1>&6
6003 else
6004 echo "$ac_t""no" 1>&6
6005 fi
6006
6007
6008 enablestring=
6009 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6010 echo "configure:6011: checking for --${enablestring:-enable}-calendar" >&5
6011 no_cache=0
6012 # Check whether --enable-calendar or --disable-calendar was given.
6013 if test "${enable_calendar+set}" = set; then
6014 enableval="$enable_calendar"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6018 else
6019 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6020 fi
6021
6022 else
6023
6024 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6032
6033 fi
6034
6035
6036 eval "$ac_cv_use_calendar"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_CALCTRL" = yes; then
6042 echo "$ac_t""yes" 1>&6
6043 else
6044 echo "$ac_t""no" 1>&6
6045 fi
6046
6047
6048 enablestring=
6049 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6050 echo "configure:6051: checking for --${enablestring:-enable}-caret" >&5
6051 no_cache=0
6052 # Check whether --enable-caret or --disable-caret was given.
6053 if test "${enable_caret+set}" = set; then
6054 enableval="$enable_caret"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_caret='wxUSE_CARET=yes'
6058 else
6059 ac_cv_use_caret='wxUSE_CARET=no'
6060 fi
6061
6062 else
6063
6064 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6072
6073 fi
6074
6075
6076 eval "$ac_cv_use_caret"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_CARET" = yes; then
6082 echo "$ac_t""yes" 1>&6
6083 else
6084 echo "$ac_t""no" 1>&6
6085 fi
6086
6087
6088 enablestring=
6089 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6090 echo "configure:6091: checking for --${enablestring:-enable}-checkbox" >&5
6091 no_cache=0
6092 # Check whether --enable-checkbox or --disable-checkbox was given.
6093 if test "${enable_checkbox+set}" = set; then
6094 enableval="$enable_checkbox"
6095
6096 if test "$enableval" = yes; then
6097 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6098 else
6099 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6100 fi
6101
6102 else
6103
6104 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6112
6113 fi
6114
6115
6116 eval "$ac_cv_use_checkbox"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_CHECKBOX" = yes; then
6122 echo "$ac_t""yes" 1>&6
6123 else
6124 echo "$ac_t""no" 1>&6
6125 fi
6126
6127
6128 enablestring=
6129 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6130 echo "configure:6131: checking for --${enablestring:-enable}-checklst" >&5
6131 no_cache=0
6132 # Check whether --enable-checklst or --disable-checklst was given.
6133 if test "${enable_checklst+set}" = set; then
6134 enableval="$enable_checklst"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6138 else
6139 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6140 fi
6141
6142 else
6143
6144 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6152
6153 fi
6154
6155
6156 eval "$ac_cv_use_checklst"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_CHECKLST" = yes; then
6162 echo "$ac_t""yes" 1>&6
6163 else
6164 echo "$ac_t""no" 1>&6
6165 fi
6166
6167
6168 enablestring=
6169 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6170 echo "configure:6171: checking for --${enablestring:-enable}-choice" >&5
6171 no_cache=0
6172 # Check whether --enable-choice or --disable-choice was given.
6173 if test "${enable_choice+set}" = set; then
6174 enableval="$enable_choice"
6175
6176 if test "$enableval" = yes; then
6177 ac_cv_use_choice='wxUSE_CHOICE=yes'
6178 else
6179 ac_cv_use_choice='wxUSE_CHOICE=no'
6180 fi
6181
6182 else
6183
6184 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6192
6193 fi
6194
6195
6196 eval "$ac_cv_use_choice"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_CHOICE" = yes; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 fi
6206
6207
6208 enablestring=
6209 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6210 echo "configure:6211: checking for --${enablestring:-enable}-combobox" >&5
6211 no_cache=0
6212 # Check whether --enable-combobox or --disable-combobox was given.
6213 if test "${enable_combobox+set}" = set; then
6214 enableval="$enable_combobox"
6215
6216 if test "$enableval" = yes; then
6217 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6218 else
6219 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6220 fi
6221
6222 else
6223
6224 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6232
6233 fi
6234
6235
6236 eval "$ac_cv_use_combobox"
6237 if test "$no_cache" != 1; then
6238 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6239 fi
6240
6241 if test "$wxUSE_COMBOBOX" = yes; then
6242 echo "$ac_t""yes" 1>&6
6243 else
6244 echo "$ac_t""no" 1>&6
6245 fi
6246
6247
6248 enablestring=
6249 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6250 echo "configure:6251: checking for --${enablestring:-enable}-gauge" >&5
6251 no_cache=0
6252 # Check whether --enable-gauge or --disable-gauge was given.
6253 if test "${enable_gauge+set}" = set; then
6254 enableval="$enable_gauge"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6258 else
6259 ac_cv_use_gauge='wxUSE_GAUGE=no'
6260 fi
6261
6262 else
6263
6264 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6272
6273 fi
6274
6275
6276 eval "$ac_cv_use_gauge"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_GAUGE" = yes; then
6282 echo "$ac_t""yes" 1>&6
6283 else
6284 echo "$ac_t""no" 1>&6
6285 fi
6286
6287
6288 enablestring=
6289 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6290 echo "configure:6291: checking for --${enablestring:-enable}-grid" >&5
6291 no_cache=0
6292 # Check whether --enable-grid or --disable-grid was given.
6293 if test "${enable_grid+set}" = set; then
6294 enableval="$enable_grid"
6295
6296 if test "$enableval" = yes; then
6297 ac_cv_use_grid='wxUSE_GRID=yes'
6298 else
6299 ac_cv_use_grid='wxUSE_GRID=no'
6300 fi
6301
6302 else
6303
6304 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6312
6313 fi
6314
6315
6316 eval "$ac_cv_use_grid"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_GRID" = yes; then
6322 echo "$ac_t""yes" 1>&6
6323 else
6324 echo "$ac_t""no" 1>&6
6325 fi
6326
6327
6328 enablestring=
6329 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6330 echo "configure:6331: checking for --${enablestring:-enable}-newgrid" >&5
6331 no_cache=0
6332 # Check whether --enable-newgrid or --disable-newgrid was given.
6333 if test "${enable_newgrid+set}" = set; then
6334 enableval="$enable_newgrid"
6335
6336 if test "$enableval" = yes; then
6337 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6338 else
6339 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6340 fi
6341
6342 else
6343
6344 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6345 if test "x$LINE" != x ; then
6346 eval "DEFAULT_$LINE"
6347 else
6348 no_cache=1
6349 fi
6350
6351 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6352
6353 fi
6354
6355
6356 eval "$ac_cv_use_newgrid"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_NEW_GRID" = yes; then
6362 echo "$ac_t""yes" 1>&6
6363 else
6364 echo "$ac_t""no" 1>&6
6365 fi
6366
6367
6368 enablestring=
6369 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6370 echo "configure:6371: checking for --${enablestring:-enable}-imaglist" >&5
6371 no_cache=0
6372 # Check whether --enable-imaglist or --disable-imaglist was given.
6373 if test "${enable_imaglist+set}" = set; then
6374 enableval="$enable_imaglist"
6375
6376 if test "$enableval" = yes; then
6377 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6378 else
6379 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6380 fi
6381
6382 else
6383
6384 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6392
6393 fi
6394
6395
6396 eval "$ac_cv_use_imaglist"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_IMAGLIST" = yes; then
6402 echo "$ac_t""yes" 1>&6
6403 else
6404 echo "$ac_t""no" 1>&6
6405 fi
6406
6407
6408 enablestring=
6409 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6410 echo "configure:6411: checking for --${enablestring:-enable}-listbox" >&5
6411 no_cache=0
6412 # Check whether --enable-listbox or --disable-listbox was given.
6413 if test "${enable_listbox+set}" = set; then
6414 enableval="$enable_listbox"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6418 else
6419 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6420 fi
6421
6422 else
6423
6424 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6432
6433 fi
6434
6435
6436 eval "$ac_cv_use_listbox"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_LISTBOX" = yes; then
6442 echo "$ac_t""yes" 1>&6
6443 else
6444 echo "$ac_t""no" 1>&6
6445 fi
6446
6447
6448 enablestring=
6449 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6450 echo "configure:6451: checking for --${enablestring:-enable}-listctrl" >&5
6451 no_cache=0
6452 # Check whether --enable-listctrl or --disable-listctrl was given.
6453 if test "${enable_listctrl+set}" = set; then
6454 enableval="$enable_listctrl"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6458 else
6459 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6460 fi
6461
6462 else
6463
6464 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6472
6473 fi
6474
6475
6476 eval "$ac_cv_use_listctrl"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_LISTCTRL" = yes; then
6482 echo "$ac_t""yes" 1>&6
6483 else
6484 echo "$ac_t""no" 1>&6
6485 fi
6486
6487
6488 enablestring=
6489 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6490 echo "configure:6491: checking for --${enablestring:-enable}-notebook" >&5
6491 no_cache=0
6492 # Check whether --enable-notebook or --disable-notebook was given.
6493 if test "${enable_notebook+set}" = set; then
6494 enableval="$enable_notebook"
6495
6496 if test "$enableval" = yes; then
6497 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6498 else
6499 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6500 fi
6501
6502 else
6503
6504 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6512
6513 fi
6514
6515
6516 eval "$ac_cv_use_notebook"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_NOTEBOOK" = yes; then
6522 echo "$ac_t""yes" 1>&6
6523 else
6524 echo "$ac_t""no" 1>&6
6525 fi
6526
6527
6528 enablestring=
6529 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6530 echo "configure:6531: checking for --${enablestring:-enable}-propsheet" >&5
6531 no_cache=0
6532 # Check whether --enable-propsheet or --disable-propsheet was given.
6533 if test "${enable_propsheet+set}" = set; then
6534 enableval="$enable_propsheet"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6538 else
6539 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6540 fi
6541
6542 else
6543
6544 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6552
6553 fi
6554
6555
6556 eval "$ac_cv_use_propsheet"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_PROPSHEET" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
6568 enablestring=
6569 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6570 echo "configure:6571: checking for --${enablestring:-enable}-radiobox" >&5
6571 no_cache=0
6572 # Check whether --enable-radiobox or --disable-radiobox was given.
6573 if test "${enable_radiobox+set}" = set; then
6574 enableval="$enable_radiobox"
6575
6576 if test "$enableval" = yes; then
6577 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6578 else
6579 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6580 fi
6581
6582 else
6583
6584 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6592
6593 fi
6594
6595
6596 eval "$ac_cv_use_radiobox"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_RADIOBOX" = yes; then
6602 echo "$ac_t""yes" 1>&6
6603 else
6604 echo "$ac_t""no" 1>&6
6605 fi
6606
6607
6608 enablestring=
6609 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6610 echo "configure:6611: checking for --${enablestring:-enable}-radiobtn" >&5
6611 no_cache=0
6612 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6613 if test "${enable_radiobtn+set}" = set; then
6614 enableval="$enable_radiobtn"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6618 else
6619 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6620 fi
6621
6622 else
6623
6624 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6632
6633 fi
6634
6635
6636 eval "$ac_cv_use_radiobtn"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_RADIOBTN" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 enablestring=
6649 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6650 echo "configure:6651: checking for --${enablestring:-enable}-sash" >&5
6651 no_cache=0
6652 # Check whether --enable-sash or --disable-sash was given.
6653 if test "${enable_sash+set}" = set; then
6654 enableval="$enable_sash"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_sash='wxUSE_SASH=yes'
6658 else
6659 ac_cv_use_sash='wxUSE_SASH=no'
6660 fi
6661
6662 else
6663
6664 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6672
6673 fi
6674
6675
6676 eval "$ac_cv_use_sash"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_SASH" = yes; then
6682 echo "$ac_t""yes" 1>&6
6683 else
6684 echo "$ac_t""no" 1>&6
6685 fi
6686
6687
6688 enablestring=
6689 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6690 echo "configure:6691: checking for --${enablestring:-enable}-scrollbar" >&5
6691 no_cache=0
6692 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6693 if test "${enable_scrollbar+set}" = set; then
6694 enableval="$enable_scrollbar"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6698 else
6699 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6700 fi
6701
6702 else
6703
6704 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6712
6713 fi
6714
6715
6716 eval "$ac_cv_use_scrollbar"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_SCROLLBAR" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 enablestring=
6729 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6730 echo "configure:6731: checking for --${enablestring:-enable}-slider" >&5
6731 no_cache=0
6732 # Check whether --enable-slider or --disable-slider was given.
6733 if test "${enable_slider+set}" = set; then
6734 enableval="$enable_slider"
6735
6736 if test "$enableval" = yes; then
6737 ac_cv_use_slider='wxUSE_SLIDER=yes'
6738 else
6739 ac_cv_use_slider='wxUSE_SLIDER=no'
6740 fi
6741
6742 else
6743
6744 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6752
6753 fi
6754
6755
6756 eval "$ac_cv_use_slider"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_SLIDER" = yes; then
6762 echo "$ac_t""yes" 1>&6
6763 else
6764 echo "$ac_t""no" 1>&6
6765 fi
6766
6767
6768 enablestring=
6769 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6770 echo "configure:6771: checking for --${enablestring:-enable}-spinbtn" >&5
6771 no_cache=0
6772 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6773 if test "${enable_spinbtn+set}" = set; then
6774 enableval="$enable_spinbtn"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6778 else
6779 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6780 fi
6781
6782 else
6783
6784 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6792
6793 fi
6794
6795
6796 eval "$ac_cv_use_spinbtn"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_SPINBTN" = yes; then
6802 echo "$ac_t""yes" 1>&6
6803 else
6804 echo "$ac_t""no" 1>&6
6805 fi
6806
6807
6808 enablestring=
6809 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6810 echo "configure:6811: checking for --${enablestring:-enable}-spinctrl" >&5
6811 no_cache=0
6812 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6813 if test "${enable_spinctrl+set}" = set; then
6814 enableval="$enable_spinctrl"
6815
6816 if test "$enableval" = yes; then
6817 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6818 else
6819 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6820 fi
6821
6822 else
6823
6824 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6832
6833 fi
6834
6835
6836 eval "$ac_cv_use_spinctrl"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_SPINCTRL" = yes; then
6842 echo "$ac_t""yes" 1>&6
6843 else
6844 echo "$ac_t""no" 1>&6
6845 fi
6846
6847
6848 enablestring=
6849 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6850 echo "configure:6851: checking for --${enablestring:-enable}-splitter" >&5
6851 no_cache=0
6852 # Check whether --enable-splitter or --disable-splitter was given.
6853 if test "${enable_splitter+set}" = set; then
6854 enableval="$enable_splitter"
6855
6856 if test "$enableval" = yes; then
6857 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6858 else
6859 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6860 fi
6861
6862 else
6863
6864 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6872
6873 fi
6874
6875
6876 eval "$ac_cv_use_splitter"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_SPLITTER" = yes; then
6882 echo "$ac_t""yes" 1>&6
6883 else
6884 echo "$ac_t""no" 1>&6
6885 fi
6886
6887
6888 enablestring=
6889 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6890 echo "configure:6891: checking for --${enablestring:-enable}-statbmp" >&5
6891 no_cache=0
6892 # Check whether --enable-statbmp or --disable-statbmp was given.
6893 if test "${enable_statbmp+set}" = set; then
6894 enableval="$enable_statbmp"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6898 else
6899 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6900 fi
6901
6902 else
6903
6904 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6912
6913 fi
6914
6915
6916 eval "$ac_cv_use_statbmp"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_STATBMP" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
6928 enablestring=
6929 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6930 echo "configure:6931: checking for --${enablestring:-enable}-statbox" >&5
6931 no_cache=0
6932 # Check whether --enable-statbox or --disable-statbox was given.
6933 if test "${enable_statbox+set}" = set; then
6934 enableval="$enable_statbox"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6938 else
6939 ac_cv_use_statbox='wxUSE_STATBOX=no'
6940 fi
6941
6942 else
6943
6944 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6952
6953 fi
6954
6955
6956 eval "$ac_cv_use_statbox"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_STATBOX" = yes; then
6962 echo "$ac_t""yes" 1>&6
6963 else
6964 echo "$ac_t""no" 1>&6
6965 fi
6966
6967
6968 enablestring=
6969 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6970 echo "configure:6971: checking for --${enablestring:-enable}-statline" >&5
6971 no_cache=0
6972 # Check whether --enable-statline or --disable-statline was given.
6973 if test "${enable_statline+set}" = set; then
6974 enableval="$enable_statline"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_statline='wxUSE_STATLINE=yes'
6978 else
6979 ac_cv_use_statline='wxUSE_STATLINE=no'
6980 fi
6981
6982 else
6983
6984 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6992
6993 fi
6994
6995
6996 eval "$ac_cv_use_statline"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATLINE" = yes; then
7002 echo "$ac_t""yes" 1>&6
7003 else
7004 echo "$ac_t""no" 1>&6
7005 fi
7006
7007
7008 enablestring=
7009 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7010 echo "configure:7011: checking for --${enablestring:-enable}-stattext" >&5
7011 no_cache=0
7012 # Check whether --enable-stattext or --disable-stattext was given.
7013 if test "${enable_stattext+set}" = set; then
7014 enableval="$enable_stattext"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7018 else
7019 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7020 fi
7021
7022 else
7023
7024 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7032
7033 fi
7034
7035
7036 eval "$ac_cv_use_stattext"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STATTEXT" = yes; then
7042 echo "$ac_t""yes" 1>&6
7043 else
7044 echo "$ac_t""no" 1>&6
7045 fi
7046
7047
7048 enablestring=
7049 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7050 echo "configure:7051: checking for --${enablestring:-enable}-statusbar" >&5
7051 no_cache=0
7052 # Check whether --enable-statusbar or --disable-statusbar was given.
7053 if test "${enable_statusbar+set}" = set; then
7054 enableval="$enable_statusbar"
7055
7056 if test "$enableval" = yes; then
7057 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7058 else
7059 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7060 fi
7061
7062 else
7063
7064 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7072
7073 fi
7074
7075
7076 eval "$ac_cv_use_statusbar"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_STATUSBAR" = yes; then
7082 echo "$ac_t""yes" 1>&6
7083 else
7084 echo "$ac_t""no" 1>&6
7085 fi
7086
7087
7088 enablestring=
7089 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7090 echo "configure:7091: checking for --${enablestring:-enable}-tabdialog" >&5
7091 no_cache=0
7092 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7093 if test "${enable_tabdialog+set}" = set; then
7094 enableval="$enable_tabdialog"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7098 else
7099 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7100 fi
7101
7102 else
7103
7104 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7112
7113 fi
7114
7115
7116 eval "$ac_cv_use_tabdialog"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_TABDIALOG" = yes; then
7122 echo "$ac_t""yes" 1>&6
7123 else
7124 echo "$ac_t""no" 1>&6
7125 fi
7126
7127
7128 enablestring=
7129 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7130 echo "configure:7131: checking for --${enablestring:-enable}-textctrl" >&5
7131 no_cache=0
7132 # Check whether --enable-textctrl or --disable-textctrl was given.
7133 if test "${enable_textctrl+set}" = set; then
7134 enableval="$enable_textctrl"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7138 else
7139 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7140 fi
7141
7142 else
7143
7144 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7152
7153 fi
7154
7155
7156 eval "$ac_cv_use_textctrl"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_TEXTCTRL" = yes; then
7162 echo "$ac_t""yes" 1>&6
7163 else
7164 echo "$ac_t""no" 1>&6
7165 fi
7166
7167
7168 enablestring=
7169 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7170 echo "configure:7171: checking for --${enablestring:-enable}-togglebtn" >&5
7171 no_cache=0
7172 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7173 if test "${enable_togglebtn+set}" = set; then
7174 enableval="$enable_togglebtn"
7175
7176 if test "$enableval" = yes; then
7177 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7178 else
7179 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7180 fi
7181
7182 else
7183
7184 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7192
7193 fi
7194
7195
7196 eval "$ac_cv_use_togglebtn"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_TOGGLEBTN" = yes; then
7202 echo "$ac_t""yes" 1>&6
7203 else
7204 echo "$ac_t""no" 1>&6
7205 fi
7206
7207
7208 enablestring=
7209 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7210 echo "configure:7211: checking for --${enablestring:-enable}-toolbar" >&5
7211 no_cache=0
7212 # Check whether --enable-toolbar or --disable-toolbar was given.
7213 if test "${enable_toolbar+set}" = set; then
7214 enableval="$enable_toolbar"
7215
7216 if test "$enableval" = yes; then
7217 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7218 else
7219 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7220 fi
7221
7222 else
7223
7224 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7232
7233 fi
7234
7235
7236 eval "$ac_cv_use_toolbar"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_TOOLBAR" = yes; then
7242 echo "$ac_t""yes" 1>&6
7243 else
7244 echo "$ac_t""no" 1>&6
7245 fi
7246
7247
7248 enablestring=
7249 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7250 echo "configure:7251: checking for --${enablestring:-enable}-tbarnative" >&5
7251 no_cache=0
7252 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7253 if test "${enable_tbarnative+set}" = set; then
7254 enableval="$enable_tbarnative"
7255
7256 if test "$enableval" = yes; then
7257 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7258 else
7259 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7260 fi
7261
7262 else
7263
7264 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7272
7273 fi
7274
7275
7276 eval "$ac_cv_use_tbarnative"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7282 echo "$ac_t""yes" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 fi
7286
7287
7288 enablestring=
7289 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7290 echo "configure:7291: checking for --${enablestring:-enable}-tbarsmpl" >&5
7291 no_cache=0
7292 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7293 if test "${enable_tbarsmpl+set}" = set; then
7294 enableval="$enable_tbarsmpl"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7298 else
7299 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7300 fi
7301
7302 else
7303
7304 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7312
7313 fi
7314
7315
7316 eval "$ac_cv_use_tbarsmpl"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 enablestring=
7329 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7330 echo "configure:7331: checking for --${enablestring:-enable}-treectrl" >&5
7331 no_cache=0
7332 # Check whether --enable-treectrl or --disable-treectrl was given.
7333 if test "${enable_treectrl+set}" = set; then
7334 enableval="$enable_treectrl"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7338 else
7339 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7340 fi
7341
7342 else
7343
7344 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7352
7353 fi
7354
7355
7356 eval "$ac_cv_use_treectrl"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_TREECTRL" = yes; then
7362 echo "$ac_t""yes" 1>&6
7363 else
7364 echo "$ac_t""no" 1>&6
7365 fi
7366
7367
7368 enablestring=
7369 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7370 echo "configure:7371: checking for --${enablestring:-enable}-tipwindow" >&5
7371 no_cache=0
7372 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7373 if test "${enable_tipwindow+set}" = set; then
7374 enableval="$enable_tipwindow"
7375
7376 if test "$enableval" = yes; then
7377 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7378 else
7379 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7380 fi
7381
7382 else
7383
7384 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
7391 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7392
7393 fi
7394
7395
7396 eval "$ac_cv_use_tipwindow"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_TIPWINDOW" = yes; then
7402 echo "$ac_t""yes" 1>&6
7403 else
7404 echo "$ac_t""no" 1>&6
7405 fi
7406
7407
7408 enablestring=
7409 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7410 echo "configure:7411: checking for --${enablestring:-enable}-popupwin" >&5
7411 no_cache=0
7412 # Check whether --enable-popupwin or --disable-popupwin was given.
7413 if test "${enable_popupwin+set}" = set; then
7414 enableval="$enable_popupwin"
7415
7416 if test "$enableval" = yes; then
7417 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7418 else
7419 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7420 fi
7421
7422 else
7423
7424 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7432
7433 fi
7434
7435
7436 eval "$ac_cv_use_popupwin"
7437 if test "$no_cache" != 1; then
7438 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7439 fi
7440
7441 if test "$wxUSE_POPUPWIN" = yes; then
7442 echo "$ac_t""yes" 1>&6
7443 else
7444 echo "$ac_t""no" 1>&6
7445 fi
7446
7447
7448
7449
7450 enablestring=
7451 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7452 echo "configure:7453: checking for --${enablestring:-enable}-commondlg" >&5
7453 no_cache=0
7454 # Check whether --enable-commondlg or --disable-commondlg was given.
7455 if test "${enable_commondlg+set}" = set; then
7456 enableval="$enable_commondlg"
7457
7458 if test "$enableval" = yes; then
7459 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7460 else
7461 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7462 fi
7463
7464 else
7465
7466 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7474
7475 fi
7476
7477
7478 eval "$ac_cv_use_commondlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_COMMONDLGS" = yes; then
7484 echo "$ac_t""yes" 1>&6
7485 else
7486 echo "$ac_t""no" 1>&6
7487 fi
7488
7489
7490 enablestring=
7491 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7492 echo "configure:7493: checking for --${enablestring:-enable}-choicedlg" >&5
7493 no_cache=0
7494 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7495 if test "${enable_choicedlg+set}" = set; then
7496 enableval="$enable_choicedlg"
7497
7498 if test "$enableval" = yes; then
7499 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7500 else
7501 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7502 fi
7503
7504 else
7505
7506 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7514
7515 fi
7516
7517
7518 eval "$ac_cv_use_choicedlg"
7519 if test "$no_cache" != 1; then
7520 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7521 fi
7522
7523 if test "$wxUSE_CHOICEDLG" = yes; then
7524 echo "$ac_t""yes" 1>&6
7525 else
7526 echo "$ac_t""no" 1>&6
7527 fi
7528
7529
7530 enablestring=
7531 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7532 echo "configure:7533: checking for --${enablestring:-enable}-coldlg" >&5
7533 no_cache=0
7534 # Check whether --enable-coldlg or --disable-coldlg was given.
7535 if test "${enable_coldlg+set}" = set; then
7536 enableval="$enable_coldlg"
7537
7538 if test "$enableval" = yes; then
7539 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7540 else
7541 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7542 fi
7543
7544 else
7545
7546 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
7553 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7554
7555 fi
7556
7557
7558 eval "$ac_cv_use_coldlg"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_COLOURDLG" = yes; then
7564 echo "$ac_t""yes" 1>&6
7565 else
7566 echo "$ac_t""no" 1>&6
7567 fi
7568
7569
7570 enablestring=
7571 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7572 echo "configure:7573: checking for --${enablestring:-enable}-filedlg" >&5
7573 no_cache=0
7574 # Check whether --enable-filedlg or --disable-filedlg was given.
7575 if test "${enable_filedlg+set}" = set; then
7576 enableval="$enable_filedlg"
7577
7578 if test "$enableval" = yes; then
7579 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7580 else
7581 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7582 fi
7583
7584 else
7585
7586 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
7593 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7594
7595 fi
7596
7597
7598 eval "$ac_cv_use_filedlg"
7599 if test "$no_cache" != 1; then
7600 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7601 fi
7602
7603 if test "$wxUSE_FILEDLG" = yes; then
7604 echo "$ac_t""yes" 1>&6
7605 else
7606 echo "$ac_t""no" 1>&6
7607 fi
7608
7609
7610 enablestring=
7611 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7612 echo "configure:7613: checking for --${enablestring:-enable}-finddlg" >&5
7613 no_cache=0
7614 # Check whether --enable-finddlg or --disable-finddlg was given.
7615 if test "${enable_finddlg+set}" = set; then
7616 enableval="$enable_finddlg"
7617
7618 if test "$enableval" = yes; then
7619 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7620 else
7621 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7622 fi
7623
7624 else
7625
7626 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7634
7635 fi
7636
7637
7638 eval "$ac_cv_use_finddlg"
7639 if test "$no_cache" != 1; then
7640 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7641 fi
7642
7643 if test "$wxUSE_FINDREPLDLG" = yes; then
7644 echo "$ac_t""yes" 1>&6
7645 else
7646 echo "$ac_t""no" 1>&6
7647 fi
7648
7649
7650 enablestring=
7651 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7652 echo "configure:7653: checking for --${enablestring:-enable}-fontdlg" >&5
7653 no_cache=0
7654 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7655 if test "${enable_fontdlg+set}" = set; then
7656 enableval="$enable_fontdlg"
7657
7658 if test "$enableval" = yes; then
7659 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7660 else
7661 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7662 fi
7663
7664 else
7665
7666 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7674
7675 fi
7676
7677
7678 eval "$ac_cv_use_fontdlg"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_FONTDLG" = yes; then
7684 echo "$ac_t""yes" 1>&6
7685 else
7686 echo "$ac_t""no" 1>&6
7687 fi
7688
7689
7690 enablestring=
7691 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7692 echo "configure:7693: checking for --${enablestring:-enable}-dirdlg" >&5
7693 no_cache=0
7694 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7695 if test "${enable_dirdlg+set}" = set; then
7696 enableval="$enable_dirdlg"
7697
7698 if test "$enableval" = yes; then
7699 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7700 else
7701 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7702 fi
7703
7704 else
7705
7706 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7714
7715 fi
7716
7717
7718 eval "$ac_cv_use_dirdlg"
7719 if test "$no_cache" != 1; then
7720 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7721 fi
7722
7723 if test "$wxUSE_DIRDLG" = yes; then
7724 echo "$ac_t""yes" 1>&6
7725 else
7726 echo "$ac_t""no" 1>&6
7727 fi
7728
7729
7730 enablestring=
7731 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7732 echo "configure:7733: checking for --${enablestring:-enable}-msgdlg" >&5
7733 no_cache=0
7734 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7735 if test "${enable_msgdlg+set}" = set; then
7736 enableval="$enable_msgdlg"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7740 else
7741 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7742 fi
7743
7744 else
7745
7746 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7754
7755 fi
7756
7757
7758 eval "$ac_cv_use_msgdlg"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_MSGDLG" = yes; then
7764 echo "$ac_t""yes" 1>&6
7765 else
7766 echo "$ac_t""no" 1>&6
7767 fi
7768
7769
7770 enablestring=
7771 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7772 echo "configure:7773: checking for --${enablestring:-enable}-numberdlg" >&5
7773 no_cache=0
7774 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7775 if test "${enable_numberdlg+set}" = set; then
7776 enableval="$enable_numberdlg"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7780 else
7781 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7782 fi
7783
7784 else
7785
7786 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7794
7795 fi
7796
7797
7798 eval "$ac_cv_use_numberdlg"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_NUMBERDLG" = yes; then
7804 echo "$ac_t""yes" 1>&6
7805 else
7806 echo "$ac_t""no" 1>&6
7807 fi
7808
7809
7810 enablestring=
7811 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7812 echo "configure:7813: checking for --${enablestring:-enable}-splash" >&5
7813 no_cache=0
7814 # Check whether --enable-splash or --disable-splash was given.
7815 if test "${enable_splash+set}" = set; then
7816 enableval="$enable_splash"
7817
7818 if test "$enableval" = yes; then
7819 ac_cv_use_splash='wxUSE_SPLASH=yes'
7820 else
7821 ac_cv_use_splash='wxUSE_SPLASH=no'
7822 fi
7823
7824 else
7825
7826 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7834
7835 fi
7836
7837
7838 eval "$ac_cv_use_splash"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_SPLASH" = yes; then
7844 echo "$ac_t""yes" 1>&6
7845 else
7846 echo "$ac_t""no" 1>&6
7847 fi
7848
7849
7850 enablestring=
7851 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7852 echo "configure:7853: checking for --${enablestring:-enable}-textdlg" >&5
7853 no_cache=0
7854 # Check whether --enable-textdlg or --disable-textdlg was given.
7855 if test "${enable_textdlg+set}" = set; then
7856 enableval="$enable_textdlg"
7857
7858 if test "$enableval" = yes; then
7859 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7860 else
7861 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7862 fi
7863
7864 else
7865
7866 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7874
7875 fi
7876
7877
7878 eval "$ac_cv_use_textdlg"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_TEXTDLG" = yes; then
7884 echo "$ac_t""yes" 1>&6
7885 else
7886 echo "$ac_t""no" 1>&6
7887 fi
7888
7889
7890 enablestring=
7891 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7892 echo "configure:7893: checking for --${enablestring:-enable}-tipdlg" >&5
7893 no_cache=0
7894 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7895 if test "${enable_tipdlg+set}" = set; then
7896 enableval="$enable_tipdlg"
7897
7898 if test "$enableval" = yes; then
7899 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7900 else
7901 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7902 fi
7903
7904 else
7905
7906 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7914
7915 fi
7916
7917
7918 eval "$ac_cv_use_tipdlg"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_STARTUP_TIPS" = yes; then
7924 echo "$ac_t""yes" 1>&6
7925 else
7926 echo "$ac_t""no" 1>&6
7927 fi
7928
7929
7930 enablestring=
7931 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7932 echo "configure:7933: checking for --${enablestring:-enable}-progressdlg" >&5
7933 no_cache=0
7934 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7935 if test "${enable_progressdlg+set}" = set; then
7936 enableval="$enable_progressdlg"
7937
7938 if test "$enableval" = yes; then
7939 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7940 else
7941 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7942 fi
7943
7944 else
7945
7946 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7954
7955 fi
7956
7957
7958 eval "$ac_cv_use_progressdlg"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_PROGRESSDLG" = yes; then
7964 echo "$ac_t""yes" 1>&6
7965 else
7966 echo "$ac_t""no" 1>&6
7967 fi
7968
7969
7970 enablestring=
7971 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7972 echo "configure:7973: checking for --${enablestring:-enable}-wizarddlg" >&5
7973 no_cache=0
7974 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7975 if test "${enable_wizarddlg+set}" = set; then
7976 enableval="$enable_wizarddlg"
7977
7978 if test "$enableval" = yes; then
7979 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7980 else
7981 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7982 fi
7983
7984 else
7985
7986 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7987 if test "x$LINE" != x ; then
7988 eval "DEFAULT_$LINE"
7989 else
7990 no_cache=1
7991 fi
7992
7993 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7994
7995 fi
7996
7997
7998 eval "$ac_cv_use_wizarddlg"
7999 if test "$no_cache" != 1; then
8000 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8001 fi
8002
8003 if test "$wxUSE_WIZARDDLG" = yes; then
8004 echo "$ac_t""yes" 1>&6
8005 else
8006 echo "$ac_t""no" 1>&6
8007 fi
8008
8009
8010
8011
8012 enablestring=
8013 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8014 echo "configure:8015: checking for --${enablestring:-enable}-menus" >&5
8015 no_cache=0
8016 # Check whether --enable-menus or --disable-menus was given.
8017 if test "${enable_menus+set}" = set; then
8018 enableval="$enable_menus"
8019
8020 if test "$enableval" = yes; then
8021 ac_cv_use_menus='wxUSE_MENUS=yes'
8022 else
8023 ac_cv_use_menus='wxUSE_MENUS=no'
8024 fi
8025
8026 else
8027
8028 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8029 if test "x$LINE" != x ; then
8030 eval "DEFAULT_$LINE"
8031 else
8032 no_cache=1
8033 fi
8034
8035 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8036
8037 fi
8038
8039
8040 eval "$ac_cv_use_menus"
8041 if test "$no_cache" != 1; then
8042 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8043 fi
8044
8045 if test "$wxUSE_MENUS" = yes; then
8046 echo "$ac_t""yes" 1>&6
8047 else
8048 echo "$ac_t""no" 1>&6
8049 fi
8050
8051
8052 enablestring=
8053 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8054 echo "configure:8055: checking for --${enablestring:-enable}-miniframe" >&5
8055 no_cache=0
8056 # Check whether --enable-miniframe or --disable-miniframe was given.
8057 if test "${enable_miniframe+set}" = set; then
8058 enableval="$enable_miniframe"
8059
8060 if test "$enableval" = yes; then
8061 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8062 else
8063 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8064 fi
8065
8066 else
8067
8068 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8076
8077 fi
8078
8079
8080 eval "$ac_cv_use_miniframe"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_MINIFRAME" = yes; then
8086 echo "$ac_t""yes" 1>&6
8087 else
8088 echo "$ac_t""no" 1>&6
8089 fi
8090
8091
8092 enablestring=
8093 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8094 echo "configure:8095: checking for --${enablestring:-enable}-tooltips" >&5
8095 no_cache=0
8096 # Check whether --enable-tooltips or --disable-tooltips was given.
8097 if test "${enable_tooltips+set}" = set; then
8098 enableval="$enable_tooltips"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8102 else
8103 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8104 fi
8105
8106 else
8107
8108 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8116
8117 fi
8118
8119
8120 eval "$ac_cv_use_tooltips"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_TOOLTIPS" = yes; then
8126 echo "$ac_t""yes" 1>&6
8127 else
8128 echo "$ac_t""no" 1>&6
8129 fi
8130
8131
8132 enablestring=
8133 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8134 echo "configure:8135: checking for --${enablestring:-enable}-splines" >&5
8135 no_cache=0
8136 # Check whether --enable-splines or --disable-splines was given.
8137 if test "${enable_splines+set}" = set; then
8138 enableval="$enable_splines"
8139
8140 if test "$enableval" = yes; then
8141 ac_cv_use_splines='wxUSE_SPLINES=yes'
8142 else
8143 ac_cv_use_splines='wxUSE_SPLINES=no'
8144 fi
8145
8146 else
8147
8148 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8156
8157 fi
8158
8159
8160 eval "$ac_cv_use_splines"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_SPLINES" = yes; then
8166 echo "$ac_t""yes" 1>&6
8167 else
8168 echo "$ac_t""no" 1>&6
8169 fi
8170
8171
8172 enablestring=
8173 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8174 echo "configure:8175: checking for --${enablestring:-enable}-validators" >&5
8175 no_cache=0
8176 # Check whether --enable-validators or --disable-validators was given.
8177 if test "${enable_validators+set}" = set; then
8178 enableval="$enable_validators"
8179
8180 if test "$enableval" = yes; then
8181 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8182 else
8183 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8184 fi
8185
8186 else
8187
8188 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8196
8197 fi
8198
8199
8200 eval "$ac_cv_use_validators"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_VALIDATORS" = yes; then
8206 echo "$ac_t""yes" 1>&6
8207 else
8208 echo "$ac_t""no" 1>&6
8209 fi
8210
8211
8212 enablestring=
8213 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8214 echo "configure:8215: checking for --${enablestring:-enable}-busyinfo" >&5
8215 no_cache=0
8216 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8217 if test "${enable_busyinfo+set}" = set; then
8218 enableval="$enable_busyinfo"
8219
8220 if test "$enableval" = yes; then
8221 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8222 else
8223 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8224 fi
8225
8226 else
8227
8228 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8236
8237 fi
8238
8239
8240 eval "$ac_cv_use_busyinfo"
8241 if test "$no_cache" != 1; then
8242 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8243 fi
8244
8245 if test "$wxUSE_BUSYINFO" = yes; then
8246 echo "$ac_t""yes" 1>&6
8247 else
8248 echo "$ac_t""no" 1>&6
8249 fi
8250
8251
8252 enablestring=
8253 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8254 echo "configure:8255: checking for --${enablestring:-enable}-joystick" >&5
8255 no_cache=0
8256 # Check whether --enable-joystick or --disable-joystick was given.
8257 if test "${enable_joystick+set}" = set; then
8258 enableval="$enable_joystick"
8259
8260 if test "$enableval" = yes; then
8261 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8262 else
8263 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8264 fi
8265
8266 else
8267
8268 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8276
8277 fi
8278
8279
8280 eval "$ac_cv_use_joystick"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_JOYSTICK" = yes; then
8286 echo "$ac_t""yes" 1>&6
8287 else
8288 echo "$ac_t""no" 1>&6
8289 fi
8290
8291
8292 enablestring=
8293 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8294 echo "configure:8295: checking for --${enablestring:-enable}-metafile" >&5
8295 no_cache=0
8296 # Check whether --enable-metafile or --disable-metafile was given.
8297 if test "${enable_metafile+set}" = set; then
8298 enableval="$enable_metafile"
8299
8300 if test "$enableval" = yes; then
8301 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8302 else
8303 ac_cv_use_metafile='wxUSE_METAFILE=no'
8304 fi
8305
8306 else
8307
8308 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8309 if test "x$LINE" != x ; then
8310 eval "DEFAULT_$LINE"
8311 else
8312 no_cache=1
8313 fi
8314
8315 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8316
8317 fi
8318
8319
8320 eval "$ac_cv_use_metafile"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_METAFILE" = yes; then
8326 echo "$ac_t""yes" 1>&6
8327 else
8328 echo "$ac_t""no" 1>&6
8329 fi
8330
8331
8332 enablestring=
8333 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8334 echo "configure:8335: checking for --${enablestring:-enable}-dragimage" >&5
8335 no_cache=0
8336 # Check whether --enable-dragimage or --disable-dragimage was given.
8337 if test "${enable_dragimage+set}" = set; then
8338 enableval="$enable_dragimage"
8339
8340 if test "$enableval" = yes; then
8341 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8342 else
8343 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8344 fi
8345
8346 else
8347
8348 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8356
8357 fi
8358
8359
8360 eval "$ac_cv_use_dragimage"
8361 if test "$no_cache" != 1; then
8362 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8363 fi
8364
8365 if test "$wxUSE_DRAGIMAGE" = yes; then
8366 echo "$ac_t""yes" 1>&6
8367 else
8368 echo "$ac_t""no" 1>&6
8369 fi
8370
8371
8372
8373
8374 enablestring=
8375 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8376 echo "configure:8377: checking for --${enablestring:-enable}-palette" >&5
8377 no_cache=0
8378 # Check whether --enable-palette or --disable-palette was given.
8379 if test "${enable_palette+set}" = set; then
8380 enableval="$enable_palette"
8381
8382 if test "$enableval" = yes; then
8383 ac_cv_use_palette='wxUSE_PALETTE=yes'
8384 else
8385 ac_cv_use_palette='wxUSE_PALETTE=no'
8386 fi
8387
8388 else
8389
8390 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8391 if test "x$LINE" != x ; then
8392 eval "DEFAULT_$LINE"
8393 else
8394 no_cache=1
8395 fi
8396
8397 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8398
8399 fi
8400
8401
8402 eval "$ac_cv_use_palette"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_PALETTE" = yes; then
8408 echo "$ac_t""yes" 1>&6
8409 else
8410 echo "$ac_t""no" 1>&6
8411 fi
8412
8413
8414 enablestring=
8415 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8416 echo "configure:8417: checking for --${enablestring:-enable}-image" >&5
8417 no_cache=0
8418 # Check whether --enable-image or --disable-image was given.
8419 if test "${enable_image+set}" = set; then
8420 enableval="$enable_image"
8421
8422 if test "$enableval" = yes; then
8423 ac_cv_use_image='wxUSE_IMAGE=yes'
8424 else
8425 ac_cv_use_image='wxUSE_IMAGE=no'
8426 fi
8427
8428 else
8429
8430 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8438
8439 fi
8440
8441
8442 eval "$ac_cv_use_image"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_IMAGE" = yes; then
8448 echo "$ac_t""yes" 1>&6
8449 else
8450 echo "$ac_t""no" 1>&6
8451 fi
8452
8453
8454 enablestring=
8455 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8456 echo "configure:8457: checking for --${enablestring:-enable}-gif" >&5
8457 no_cache=0
8458 # Check whether --enable-gif or --disable-gif was given.
8459 if test "${enable_gif+set}" = set; then
8460 enableval="$enable_gif"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_gif='wxUSE_GIF=yes'
8464 else
8465 ac_cv_use_gif='wxUSE_GIF=no'
8466 fi
8467
8468 else
8469
8470 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8478
8479 fi
8480
8481
8482 eval "$ac_cv_use_gif"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_GIF" = yes; then
8488 echo "$ac_t""yes" 1>&6
8489 else
8490 echo "$ac_t""no" 1>&6
8491 fi
8492
8493
8494 enablestring=
8495 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8496 echo "configure:8497: checking for --${enablestring:-enable}-pcx" >&5
8497 no_cache=0
8498 # Check whether --enable-pcx or --disable-pcx was given.
8499 if test "${enable_pcx+set}" = set; then
8500 enableval="$enable_pcx"
8501
8502 if test "$enableval" = yes; then
8503 ac_cv_use_pcx='wxUSE_PCX=yes'
8504 else
8505 ac_cv_use_pcx='wxUSE_PCX=no'
8506 fi
8507
8508 else
8509
8510 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8518
8519 fi
8520
8521
8522 eval "$ac_cv_use_pcx"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_PCX" = yes; then
8528 echo "$ac_t""yes" 1>&6
8529 else
8530 echo "$ac_t""no" 1>&6
8531 fi
8532
8533
8534 enablestring=
8535 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8536 echo "configure:8537: checking for --${enablestring:-enable}-iff" >&5
8537 no_cache=0
8538 # Check whether --enable-iff or --disable-iff was given.
8539 if test "${enable_iff+set}" = set; then
8540 enableval="$enable_iff"
8541
8542 if test "$enableval" = yes; then
8543 ac_cv_use_iff='wxUSE_IFF=yes'
8544 else
8545 ac_cv_use_iff='wxUSE_IFF=no'
8546 fi
8547
8548 else
8549
8550 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8551 if test "x$LINE" != x ; then
8552 eval "DEFAULT_$LINE"
8553 else
8554 no_cache=1
8555 fi
8556
8557 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8558
8559 fi
8560
8561
8562 eval "$ac_cv_use_iff"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_IFF" = yes; then
8568 echo "$ac_t""yes" 1>&6
8569 else
8570 echo "$ac_t""no" 1>&6
8571 fi
8572
8573
8574 enablestring=
8575 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8576 echo "configure:8577: checking for --${enablestring:-enable}-pnm" >&5
8577 no_cache=0
8578 # Check whether --enable-pnm or --disable-pnm was given.
8579 if test "${enable_pnm+set}" = set; then
8580 enableval="$enable_pnm"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_pnm='wxUSE_PNM=yes'
8584 else
8585 ac_cv_use_pnm='wxUSE_PNM=no'
8586 fi
8587
8588 else
8589
8590 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8598
8599 fi
8600
8601
8602 eval "$ac_cv_use_pnm"
8603 if test "$no_cache" != 1; then
8604 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8605 fi
8606
8607 if test "$wxUSE_PNM" = yes; then
8608 echo "$ac_t""yes" 1>&6
8609 else
8610 echo "$ac_t""no" 1>&6
8611 fi
8612
8613
8614 enablestring=
8615 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8616 echo "configure:8617: checking for --${enablestring:-enable}-xpm" >&5
8617 no_cache=0
8618 # Check whether --enable-xpm or --disable-xpm was given.
8619 if test "${enable_xpm+set}" = set; then
8620 enableval="$enable_xpm"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_xpm='wxUSE_XPM=yes'
8624 else
8625 ac_cv_use_xpm='wxUSE_XPM=no'
8626 fi
8627
8628 else
8629
8630 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8638
8639 fi
8640
8641
8642 eval "$ac_cv_use_xpm"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_XPM" = yes; then
8648 echo "$ac_t""yes" 1>&6
8649 else
8650 echo "$ac_t""no" 1>&6
8651 fi
8652
8653
8654 enablestring=
8655 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8656 echo "configure:8657: checking for --${enablestring:-enable}-ico_cur" >&5
8657 no_cache=0
8658 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8659 if test "${enable_ico_cur+set}" = set; then
8660 enableval="$enable_ico_cur"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8664 else
8665 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8666 fi
8667
8668 else
8669
8670 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8678
8679 fi
8680
8681
8682 eval "$ac_cv_use_ico_cur"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_ICO_CUR" = yes; then
8688 echo "$ac_t""yes" 1>&6
8689 else
8690 echo "$ac_t""no" 1>&6
8691 fi
8692
8693
8694 fi
8695
8696 case "${host}" in
8697 *-pc-os2_emx | *-pc-os2-emx )
8698 PATH_IFS=';'
8699 LEX_STEM="lexyy"
8700 ;;
8701 *)
8702 PATH_IFS=':'
8703 LEX_STEM="lex.yy"
8704 ;;
8705 esac
8706
8707
8708
8709 echo "saving argument cache $wx_arg_cache_file"
8710 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8711
8712
8713
8714 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8715 echo "configure:8716: checking for toolkit" >&5
8716
8717 if test "$wxUSE_GUI" = "yes"; then
8718
8719 if test "$USE_BEOS" = 1; then
8720 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8721 fi
8722
8723 if test "$TOOLKIT_GIVEN" = 1; then
8724 for toolkit in `echo $ALL_TOOLKITS`; do
8725 var=wxUSE_$toolkit
8726 eval "value=\$${var}"
8727 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8728 done
8729 else
8730 for toolkit in `echo $ALL_TOOLKITS`; do
8731 if test "$has_toolkit_in_cache" != 1; then
8732 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8733 else
8734 var=DEFAULT_wxUSE_$toolkit
8735 fi
8736 eval "wxUSE_$toolkit=\$${var}"
8737 done
8738 fi
8739
8740 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8741 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8742
8743 case "${host}" in
8744 *-pc-os2_emx | *-pc-os2-emx )
8745 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8746 esac
8747
8748 case "$NUM_TOOLKITS" in
8749 1)
8750 ;;
8751 0)
8752 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8753 ;;
8754 *)
8755 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8756 esac
8757
8758 for toolkit in `echo $ALL_TOOLKITS`; do
8759 var=wxUSE_$toolkit
8760 eval "value=\$${var}"
8761 if test "x$value" != x; then
8762 cache_var=CACHE_$toolkit
8763 eval "cache=\$${cache_var}"
8764 if test "$cache" = 1; then
8765 echo "$var=$value" >> ${wx_arg_cache_file}
8766 fi
8767 if test "$value" = 1; then
8768 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8769 echo "$ac_t""$toolkit_echo" 1>&6
8770 fi
8771 fi
8772 done
8773 else
8774 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8775 fi
8776
8777 wants_win32=0
8778 doesnt_want_win32=0
8779 case "${host}" in
8780 *-*-cygwin*)
8781 if test "$wxUSE_MSW" = 1 ; then
8782 wants_win32=1
8783 else
8784 doesnt_want_win32=1
8785 fi
8786 ;;
8787 *-*-mingw*)
8788 wants_win32=1
8789 ;;
8790 esac
8791
8792 if test "$wants_win32" = 1 ; then
8793 USE_UNIX=0
8794 USE_WIN32=1
8795 cat >> confdefs.h <<\EOF
8796 #define __WIN32__ 1
8797 EOF
8798
8799 cat >> confdefs.h <<\EOF
8800 #define __WIN95__ 1
8801 EOF
8802
8803 cat >> confdefs.h <<\EOF
8804 #define __WINDOWS__ 1
8805 EOF
8806
8807 cat >> confdefs.h <<\EOF
8808 #define __GNUWIN32__ 1
8809 EOF
8810
8811 cat >> confdefs.h <<\EOF
8812 #define STRICT 1
8813 EOF
8814
8815 cat >> confdefs.h <<\EOF
8816 #define WINVER 0x0400
8817 EOF
8818
8819 fi
8820 if test "$doesnt_want_win32" = 1 ; then
8821 USE_UNIX=1
8822 USE_WIN32=0
8823 fi
8824
8825 if test "$USE_UNIX" = 1 ; then
8826 wxUSE_UNIX=yes
8827 cat >> confdefs.h <<\EOF
8828 #define __UNIX__ 1
8829 EOF
8830
8831 fi
8832
8833
8834 cat > confcache <<\EOF
8835 # This file is a shell script that caches the results of configure
8836 # tests run on this system so they can be shared between configure
8837 # scripts and configure runs. It is not useful on other systems.
8838 # If it contains results you don't want to keep, you may remove or edit it.
8839 #
8840 # By default, configure uses ./config.cache as the cache file,
8841 # creating it if it does not exist already. You can give configure
8842 # the --cache-file=FILE option to use a different cache file; that is
8843 # what configure does when it calls configure scripts in
8844 # subdirectories, so they share the cache.
8845 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8846 # config.status only pays attention to the cache file if you give it the
8847 # --recheck option to rerun configure.
8848 #
8849 EOF
8850 # The following way of writing the cache mishandles newlines in values,
8851 # but we know of no workaround that is simple, portable, and efficient.
8852 # So, don't put newlines in cache variables' values.
8853 # Ultrix sh set writes to stderr and can't be redirected directly,
8854 # and sets the high bit in the cache file unless we assign to the vars.
8855 (set) 2>&1 |
8856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8857 *ac_space=\ *)
8858 # `set' does not quote correctly, so add quotes (double-quote substitution
8859 # turns \\\\ into \\, and sed turns \\ into \).
8860 sed -n \
8861 -e "s/'/'\\\\''/g" \
8862 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8863 ;;
8864 *)
8865 # `set' quotes correctly as required by POSIX, so do not add quotes.
8866 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8867 ;;
8868 esac >> confcache
8869 if cmp -s $cache_file confcache; then
8870 :
8871 else
8872 if test -w $cache_file; then
8873 echo "updating cache $cache_file"
8874 cat confcache > $cache_file
8875 else
8876 echo "not updating unwritable cache $cache_file"
8877 fi
8878 fi
8879 rm -f confcache
8880
8881
8882 if test "$build" != "$host" ; then
8883 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8884 CC=$host_alias-gcc
8885 CXX=$host_alias-c++
8886 AR=$host_alias-ar
8887 RANLIB=$host_alias-ranlib
8888 DLLTOOL=$host_alias-dlltool
8889 RESCOMP=$host_alias-windres
8890 LD=$host_alias-ld
8891 NM=$host_alias-nm
8892 STRIP=$host_alias-strip
8893 else
8894 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8895 fi
8896 fi
8897
8898 CFLAGS=${CFLAGS:=}
8899 # Extract the first word of "gcc", so it can be a program name with args.
8900 set dummy gcc; ac_word=$2
8901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8902 echo "configure:8903: checking for $ac_word" >&5
8903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905 else
8906 if test -n "$CC"; then
8907 ac_cv_prog_CC="$CC" # Let the user override the test.
8908 else
8909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8910 ac_dummy="$PATH"
8911 for ac_dir in $ac_dummy; do
8912 test -z "$ac_dir" && ac_dir=.
8913 if test -f $ac_dir/$ac_word; then
8914 ac_cv_prog_CC="gcc"
8915 break
8916 fi
8917 done
8918 IFS="$ac_save_ifs"
8919 fi
8920 fi
8921 CC="$ac_cv_prog_CC"
8922 if test -n "$CC"; then
8923 echo "$ac_t""$CC" 1>&6
8924 else
8925 echo "$ac_t""no" 1>&6
8926 fi
8927
8928 if test -z "$CC"; then
8929 # Extract the first word of "cc", so it can be a program name with args.
8930 set dummy cc; ac_word=$2
8931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8932 echo "configure:8933: checking for $ac_word" >&5
8933 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8935 else
8936 if test -n "$CC"; then
8937 ac_cv_prog_CC="$CC" # Let the user override the test.
8938 else
8939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8940 ac_prog_rejected=no
8941 ac_dummy="$PATH"
8942 for ac_dir in $ac_dummy; do
8943 test -z "$ac_dir" && ac_dir=.
8944 if test -f $ac_dir/$ac_word; then
8945 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8946 ac_prog_rejected=yes
8947 continue
8948 fi
8949 ac_cv_prog_CC="cc"
8950 break
8951 fi
8952 done
8953 IFS="$ac_save_ifs"
8954 if test $ac_prog_rejected = yes; then
8955 # We found a bogon in the path, so make sure we never use it.
8956 set dummy $ac_cv_prog_CC
8957 shift
8958 if test $# -gt 0; then
8959 # We chose a different compiler from the bogus one.
8960 # However, it has the same basename, so the bogon will be chosen
8961 # first if we set CC to just the basename; use the full file name.
8962 shift
8963 set dummy "$ac_dir/$ac_word" "$@"
8964 shift
8965 ac_cv_prog_CC="$@"
8966 fi
8967 fi
8968 fi
8969 fi
8970 CC="$ac_cv_prog_CC"
8971 if test -n "$CC"; then
8972 echo "$ac_t""$CC" 1>&6
8973 else
8974 echo "$ac_t""no" 1>&6
8975 fi
8976
8977 if test -z "$CC"; then
8978 case "`uname -s`" in
8979 *win32* | *WIN32*)
8980 # Extract the first word of "cl", so it can be a program name with args.
8981 set dummy cl; ac_word=$2
8982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8983 echo "configure:8984: checking for $ac_word" >&5
8984 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8986 else
8987 if test -n "$CC"; then
8988 ac_cv_prog_CC="$CC" # Let the user override the test.
8989 else
8990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8991 ac_dummy="$PATH"
8992 for ac_dir in $ac_dummy; do
8993 test -z "$ac_dir" && ac_dir=.
8994 if test -f $ac_dir/$ac_word; then
8995 ac_cv_prog_CC="cl"
8996 break
8997 fi
8998 done
8999 IFS="$ac_save_ifs"
9000 fi
9001 fi
9002 CC="$ac_cv_prog_CC"
9003 if test -n "$CC"; then
9004 echo "$ac_t""$CC" 1>&6
9005 else
9006 echo "$ac_t""no" 1>&6
9007 fi
9008 ;;
9009 esac
9010 fi
9011 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9012 fi
9013
9014 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9015 echo "configure:9016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9016
9017 ac_ext=c
9018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9019 ac_cpp='$CPP $CPPFLAGS'
9020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9022 cross_compiling=$ac_cv_prog_cc_cross
9023
9024 cat > conftest.$ac_ext << EOF
9025
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028
9029 main(){return(0);}
9030 EOF
9031 if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9032 ac_cv_prog_cc_works=yes
9033 # If we can't run a trivial program, we are probably using a cross compiler.
9034 if (./conftest; exit) 2>/dev/null; then
9035 ac_cv_prog_cc_cross=no
9036 else
9037 ac_cv_prog_cc_cross=yes
9038 fi
9039 else
9040 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 ac_cv_prog_cc_works=no
9043 fi
9044 rm -fr conftest*
9045 ac_ext=c
9046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9050 cross_compiling=$ac_cv_prog_cc_cross
9051
9052 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9053 if test $ac_cv_prog_cc_works = no; then
9054 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9055 fi
9056 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9057 echo "configure:9058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9058 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9059 cross_compiling=$ac_cv_prog_cc_cross
9060
9061 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9062 echo "configure:9063: checking whether we are using GNU C" >&5
9063 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9065 else
9066 cat > conftest.c <<EOF
9067 #ifdef __GNUC__
9068 yes;
9069 #endif
9070 EOF
9071 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9072 ac_cv_prog_gcc=yes
9073 else
9074 ac_cv_prog_gcc=no
9075 fi
9076 fi
9077
9078 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9079
9080 if test $ac_cv_prog_gcc = yes; then
9081 GCC=yes
9082 else
9083 GCC=
9084 fi
9085
9086 ac_test_CFLAGS="${CFLAGS+set}"
9087 ac_save_CFLAGS="$CFLAGS"
9088 CFLAGS=
9089 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9090 echo "configure:9091: checking whether ${CC-cc} accepts -g" >&5
9091 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093 else
9094 echo 'void f(){}' > conftest.c
9095 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9096 ac_cv_prog_cc_g=yes
9097 else
9098 ac_cv_prog_cc_g=no
9099 fi
9100 rm -f conftest*
9101
9102 fi
9103
9104 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9105 if test "$ac_test_CFLAGS" = set; then
9106 CFLAGS="$ac_save_CFLAGS"
9107 elif test $ac_cv_prog_cc_g = yes; then
9108 if test "$GCC" = yes; then
9109 CFLAGS="-g -O2"
9110 else
9111 CFLAGS="-g"
9112 fi
9113 else
9114 if test "$GCC" = yes; then
9115 CFLAGS="-O2"
9116 else
9117 CFLAGS=
9118 fi
9119 fi
9120
9121
9122 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9123 echo "configure:9124: checking how to run the C preprocessor" >&5
9124 # On Suns, sometimes $CPP names a directory.
9125 if test -n "$CPP" && test -d "$CPP"; then
9126 CPP=
9127 fi
9128 if test -z "$CPP"; then
9129 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9131 else
9132 # This must be in double quotes, not single quotes, because CPP may get
9133 # substituted into the Makefile and "${CC-cc}" will confuse make.
9134 CPP="${CC-cc} -E"
9135 # On the NeXT, cc -E runs the code through the compiler's parser,
9136 # not just through cpp.
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 #include <assert.h>
9141 Syntax Error
9142 EOF
9143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9144 { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9146 if test -z "$ac_err"; then
9147 :
9148 else
9149 echo "$ac_err" >&5
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9152 rm -rf conftest*
9153 CPP="${CC-cc} -E -traditional-cpp"
9154 cat > conftest.$ac_ext <<EOF
9155 #line 9156 "configure"
9156 #include "confdefs.h"
9157 #include <assert.h>
9158 Syntax Error
9159 EOF
9160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9161 { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9163 if test -z "$ac_err"; then
9164 :
9165 else
9166 echo "$ac_err" >&5
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169 rm -rf conftest*
9170 CPP="${CC-cc} -nologo -E"
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 #include <assert.h>
9175 Syntax Error
9176 EOF
9177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9178 { (eval echo configure:9179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9180 if test -z "$ac_err"; then
9181 :
9182 else
9183 echo "$ac_err" >&5
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 rm -rf conftest*
9187 CPP=/lib/cpp
9188 fi
9189 rm -f conftest*
9190 fi
9191 rm -f conftest*
9192 fi
9193 rm -f conftest*
9194 ac_cv_prog_CPP="$CPP"
9195 fi
9196 CPP="$ac_cv_prog_CPP"
9197 else
9198 ac_cv_prog_CPP="$CPP"
9199 fi
9200 echo "$ac_t""$CPP" 1>&6
9201
9202 if test $ac_cv_prog_gcc = yes; then
9203 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9204 echo "configure:9205: checking whether ${CC-cc} needs -traditional" >&5
9205 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
9207 else
9208 ac_pattern="Autoconf.*'x'"
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 #include <sgtty.h>
9213 Autoconf TIOCGETP
9214 EOF
9215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9216 egrep "$ac_pattern" >/dev/null 2>&1; then
9217 rm -rf conftest*
9218 ac_cv_prog_gcc_traditional=yes
9219 else
9220 rm -rf conftest*
9221 ac_cv_prog_gcc_traditional=no
9222 fi
9223 rm -f conftest*
9224
9225
9226 if test $ac_cv_prog_gcc_traditional = no; then
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 #include <termio.h>
9231 Autoconf TCGETA
9232 EOF
9233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9234 egrep "$ac_pattern" >/dev/null 2>&1; then
9235 rm -rf conftest*
9236 ac_cv_prog_gcc_traditional=yes
9237 fi
9238 rm -f conftest*
9239
9240 fi
9241 fi
9242
9243 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9244 if test $ac_cv_prog_gcc_traditional = yes; then
9245 CC="$CC -traditional"
9246 fi
9247 fi
9248
9249
9250
9251 ac_ext=C
9252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9253 ac_cpp='$CXXCPP $CPPFLAGS'
9254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9256 cross_compiling=$ac_cv_prog_cxx_cross
9257
9258
9259 CXXFLAGS=${CXXFLAGS:=}
9260 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9261 do
9262 # Extract the first word of "$ac_prog", so it can be a program name with args.
9263 set dummy $ac_prog; ac_word=$2
9264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9265 echo "configure:9266: checking for $ac_word" >&5
9266 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9268 else
9269 if test -n "$CXX"; then
9270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9271 else
9272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9273 ac_dummy="$PATH"
9274 for ac_dir in $ac_dummy; do
9275 test -z "$ac_dir" && ac_dir=.
9276 if test -f $ac_dir/$ac_word; then
9277 ac_cv_prog_CXX="$ac_prog"
9278 break
9279 fi
9280 done
9281 IFS="$ac_save_ifs"
9282 fi
9283 fi
9284 CXX="$ac_cv_prog_CXX"
9285 if test -n "$CXX"; then
9286 echo "$ac_t""$CXX" 1>&6
9287 else
9288 echo "$ac_t""no" 1>&6
9289 fi
9290
9291 test -n "$CXX" && break
9292 done
9293 test -n "$CXX" || CXX="gcc"
9294
9295
9296 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9297 echo "configure:9298: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9298
9299 ac_ext=C
9300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9301 ac_cpp='$CXXCPP $CPPFLAGS'
9302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9304 cross_compiling=$ac_cv_prog_cxx_cross
9305
9306 cat > conftest.$ac_ext << EOF
9307
9308 #line 9309 "configure"
9309 #include "confdefs.h"
9310
9311 int main(){return(0);}
9312 EOF
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9314 ac_cv_prog_cxx_works=yes
9315 # If we can't run a trivial program, we are probably using a cross compiler.
9316 if (./conftest; exit) 2>/dev/null; then
9317 ac_cv_prog_cxx_cross=no
9318 else
9319 ac_cv_prog_cxx_cross=yes
9320 fi
9321 else
9322 echo "configure: failed program was:" >&5
9323 cat conftest.$ac_ext >&5
9324 ac_cv_prog_cxx_works=no
9325 fi
9326 rm -fr conftest*
9327 ac_ext=C
9328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9329 ac_cpp='$CXXCPP $CPPFLAGS'
9330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9332 cross_compiling=$ac_cv_prog_cxx_cross
9333
9334 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9335 if test $ac_cv_prog_cxx_works = no; then
9336 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9337 fi
9338 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9339 echo "configure:9340: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9340 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9341 cross_compiling=$ac_cv_prog_cxx_cross
9342
9343 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9344 echo "configure:9345: checking whether we are using GNU C++" >&5
9345 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9346 echo $ac_n "(cached) $ac_c" 1>&6
9347 else
9348 cat > conftest.C <<EOF
9349 #ifdef __GNUC__
9350 yes;
9351 #endif
9352 EOF
9353 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9354 ac_cv_prog_gxx=yes
9355 else
9356 ac_cv_prog_gxx=no
9357 fi
9358 fi
9359
9360 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9361
9362 if test $ac_cv_prog_gxx = yes; then
9363 GXX=yes
9364 else
9365 GXX=
9366 fi
9367
9368 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9369 ac_save_CXXFLAGS="$CXXFLAGS"
9370 CXXFLAGS=
9371 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9372 echo "configure:9373: checking whether ${CXX-g++} accepts -g" >&5
9373 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375 else
9376 echo 'void f(){}' > conftest.cc
9377 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9378 ac_cv_prog_cxx_g=yes
9379 else
9380 ac_cv_prog_cxx_g=no
9381 fi
9382 rm -f conftest*
9383
9384 fi
9385
9386 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9387 if test "$ac_test_CXXFLAGS" = set; then
9388 CXXFLAGS="$ac_save_CXXFLAGS"
9389 elif test $ac_cv_prog_cxx_g = yes; then
9390 if test "$GXX" = yes; then
9391 CXXFLAGS="-g -O2"
9392 else
9393 CXXFLAGS="-g"
9394 fi
9395 else
9396 if test "$GXX" = yes; then
9397 CXXFLAGS="-O2"
9398 else
9399 CXXFLAGS=
9400 fi
9401 fi
9402
9403
9404 ac_ext=c
9405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9406 ac_cpp='$CPP $CPPFLAGS'
9407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9409 cross_compiling=$ac_cv_prog_cc_cross
9410
9411
9412 # Extract the first word of "ranlib", so it can be a program name with args.
9413 set dummy ranlib; ac_word=$2
9414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9415 echo "configure:9416: checking for $ac_word" >&5
9416 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9417 echo $ac_n "(cached) $ac_c" 1>&6
9418 else
9419 if test -n "$RANLIB"; then
9420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9421 else
9422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9423 ac_dummy="$PATH"
9424 for ac_dir in $ac_dummy; do
9425 test -z "$ac_dir" && ac_dir=.
9426 if test -f $ac_dir/$ac_word; then
9427 ac_cv_prog_RANLIB="ranlib"
9428 break
9429 fi
9430 done
9431 IFS="$ac_save_ifs"
9432 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9433 fi
9434 fi
9435 RANLIB="$ac_cv_prog_RANLIB"
9436 if test -n "$RANLIB"; then
9437 echo "$ac_t""$RANLIB" 1>&6
9438 else
9439 echo "$ac_t""no" 1>&6
9440 fi
9441
9442
9443 # Extract the first word of "ar", so it can be a program name with args.
9444 set dummy ar; ac_word=$2
9445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9446 echo "configure:9447: checking for $ac_word" >&5
9447 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9450 if test -n "$AR"; then
9451 ac_cv_prog_AR="$AR" # Let the user override the test.
9452 else
9453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9454 ac_dummy="$PATH"
9455 for ac_dir in $ac_dummy; do
9456 test -z "$ac_dir" && ac_dir=.
9457 if test -f $ac_dir/$ac_word; then
9458 ac_cv_prog_AR="ar"
9459 break
9460 fi
9461 done
9462 IFS="$ac_save_ifs"
9463 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9464 fi
9465 fi
9466 AR="$ac_cv_prog_AR"
9467 if test -n "$AR"; then
9468 echo "$ac_t""$AR" 1>&6
9469 else
9470 echo "$ac_t""no" 1>&6
9471 fi
9472
9473
9474 # Find a good install program. We prefer a C program (faster),
9475 # so one script is as good as another. But avoid the broken or
9476 # incompatible versions:
9477 # SysV /etc/install, /usr/sbin/install
9478 # SunOS /usr/etc/install
9479 # IRIX /sbin/install
9480 # AIX /bin/install
9481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9484 # ./install, which can be erroneously created by make from ./install.sh.
9485 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9486 echo "configure:9487: checking for a BSD compatible install" >&5
9487 if test -z "$INSTALL"; then
9488 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9490 else
9491 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9492 for ac_dir in $PATH; do
9493 # Account for people who put trailing slashes in PATH elements.
9494 case "$ac_dir/" in
9495 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9496 *)
9497 # OSF1 and SCO ODT 3.0 have their own names for install.
9498 # Don't use installbsd from OSF since it installs stuff as root
9499 # by default.
9500 for ac_prog in ginstall scoinst install; do
9501 if test -f $ac_dir/$ac_prog; then
9502 if test $ac_prog = install &&
9503 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9504 # AIX install. It has an incompatible calling convention.
9505 :
9506 else
9507 ac_cv_path_install="$ac_dir/$ac_prog -c"
9508 break 2
9509 fi
9510 fi
9511 done
9512 ;;
9513 esac
9514 done
9515 IFS="$ac_save_IFS"
9516
9517 fi
9518 if test "${ac_cv_path_install+set}" = set; then
9519 INSTALL="$ac_cv_path_install"
9520 else
9521 # As a last resort, use the slow shell script. We don't cache a
9522 # path for INSTALL within a source directory, because that will
9523 # break other packages using the cache if that directory is
9524 # removed, or if the path is relative.
9525 INSTALL="$ac_install_sh"
9526 fi
9527 fi
9528 echo "$ac_t""$INSTALL" 1>&6
9529
9530 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9531 # It thinks the first close brace ends the variable substitution.
9532 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9533
9534 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9535
9536 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9537
9538
9539 case ${INSTALL} in
9540 /* ) # Absolute
9541 ;;
9542 *)
9543 INSTALL=`pwd`/${INSTALL} ;;
9544 esac
9545
9546
9547 case "${host}" in
9548
9549 powerpc-*-darwin* )
9550 INSTALL_PROGRAM="cp -fp"
9551 INSTALL_DATA="cp -fp"
9552 ;;
9553 *)
9554 ;;
9555 esac
9556
9557 # Extract the first word of "strip", so it can be a program name with args.
9558 set dummy strip; ac_word=$2
9559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9560 echo "configure:9561: checking for $ac_word" >&5
9561 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9563 else
9564 if test -n "$STRIP"; then
9565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9566 else
9567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9568 ac_dummy="$PATH"
9569 for ac_dir in $ac_dummy; do
9570 test -z "$ac_dir" && ac_dir=.
9571 if test -f $ac_dir/$ac_word; then
9572 ac_cv_prog_STRIP="strip"
9573 break
9574 fi
9575 done
9576 IFS="$ac_save_ifs"
9577 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9578 fi
9579 fi
9580 STRIP="$ac_cv_prog_STRIP"
9581 if test -n "$STRIP"; then
9582 echo "$ac_t""$STRIP" 1>&6
9583 else
9584 echo "$ac_t""no" 1>&6
9585 fi
9586
9587
9588 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9589 echo "configure:9590: checking if make is GNU make" >&5
9590 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9592 else
9593
9594 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9595 egrep -s GNU > /dev/null); then
9596 wx_cv_prog_makeisgnu="yes"
9597 else
9598 wx_cv_prog_makeisgnu="no"
9599 fi
9600
9601 fi
9602
9603 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9604
9605 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9606 IF_GNU_MAKE=""
9607 else
9608 IF_GNU_MAKE="#"
9609 fi
9610
9611
9612
9613 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9614 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9615 echo "configure:9616: checking if make supports VPATH" >&5
9616 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9618 else
9619
9620 cat - << EOF > confMake
9621 check : file
9622 cp \$? \$@
9623 cp \$? final_file
9624 EOF
9625
9626 if test ! -d sub ; then
9627 mkdir sub
9628 fi
9629 echo dummy > sub/file
9630 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9631 RESULT=$?
9632 rm -f sub/file check final_file confMake
9633 rmdir sub
9634 if test "$RESULT" = 0; then
9635 wx_cv_prog_makevpath="yes"
9636 else
9637 wx_cv_prog_makevpath="no"
9638 fi
9639
9640 fi
9641
9642 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9643
9644 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9645 { echo "configure: error:
9646 You need a make-utility that is able to use the variable
9647 VPATH correctly.
9648 If your version of make does not support VPATH correctly,
9649 please install GNU-make (possibly as gmake), and start
9650 configure with the following command:
9651 export MAKE=gmake; ./configure for sh-type shells
9652 setenv MAKE gmake; ./configure for csh-type shells
9653 Also please do remember to use gmake in this case every time
9654 you are trying to compile.
9655 " 1>&2; exit 1; }
9656 fi fi
9657 for ac_prog in 'bison -y' byacc
9658 do
9659 # Extract the first word of "$ac_prog", so it can be a program name with args.
9660 set dummy $ac_prog; ac_word=$2
9661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9662 echo "configure:9663: checking for $ac_word" >&5
9663 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9665 else
9666 if test -n "$YACC"; then
9667 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9668 else
9669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9670 ac_dummy="$PATH"
9671 for ac_dir in $ac_dummy; do
9672 test -z "$ac_dir" && ac_dir=.
9673 if test -f $ac_dir/$ac_word; then
9674 ac_cv_prog_YACC="$ac_prog"
9675 break
9676 fi
9677 done
9678 IFS="$ac_save_ifs"
9679 fi
9680 fi
9681 YACC="$ac_cv_prog_YACC"
9682 if test -n "$YACC"; then
9683 echo "$ac_t""$YACC" 1>&6
9684 else
9685 echo "$ac_t""no" 1>&6
9686 fi
9687
9688 test -n "$YACC" && break
9689 done
9690 test -n "$YACC" || YACC="yacc"
9691
9692
9693 # Extract the first word of "flex", so it can be a program name with args.
9694 set dummy flex; ac_word=$2
9695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9696 echo "configure:9697: checking for $ac_word" >&5
9697 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9698 echo $ac_n "(cached) $ac_c" 1>&6
9699 else
9700 if test -n "$LEX"; then
9701 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9702 else
9703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9704 ac_dummy="$PATH"
9705 for ac_dir in $ac_dummy; do
9706 test -z "$ac_dir" && ac_dir=.
9707 if test -f $ac_dir/$ac_word; then
9708 ac_cv_prog_LEX="flex"
9709 break
9710 fi
9711 done
9712 IFS="$ac_save_ifs"
9713 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9714 fi
9715 fi
9716 LEX="$ac_cv_prog_LEX"
9717 if test -n "$LEX"; then
9718 echo "$ac_t""$LEX" 1>&6
9719 else
9720 echo "$ac_t""no" 1>&6
9721 fi
9722
9723 if test -z "$LEXLIB"
9724 then
9725 case "$LEX" in
9726 flex*) ac_lib=fl ;;
9727 *) ac_lib=l ;;
9728 esac
9729 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9730 echo "configure:9731: checking for yywrap in -l$ac_lib" >&5
9731 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734 else
9735 ac_save_LIBS="$LIBS"
9736 LIBS="-l$ac_lib $LIBS"
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 /* Override any gcc2 internal prototype to avoid an error. */
9741 /* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743 char yywrap();
9744
9745 int main() {
9746 yywrap()
9747 ; return 0; }
9748 EOF
9749 if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9750 rm -rf conftest*
9751 eval "ac_cv_lib_$ac_lib_var=yes"
9752 else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -rf conftest*
9756 eval "ac_cv_lib_$ac_lib_var=no"
9757 fi
9758 rm -f conftest*
9759 LIBS="$ac_save_LIBS"
9760
9761 fi
9762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 LEXLIB="-l$ac_lib"
9765 else
9766 echo "$ac_t""no" 1>&6
9767 fi
9768
9769 fi
9770
9771
9772 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9773 echo "configure:9774: checking whether ln -s works" >&5
9774 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9776 else
9777 rm -f conftestdata
9778 if ln -s X conftestdata 2>/dev/null
9779 then
9780 rm -f conftestdata
9781 ac_cv_prog_LN_S="ln -s"
9782 else
9783 ac_cv_prog_LN_S=ln
9784 fi
9785 fi
9786 LN_S="$ac_cv_prog_LN_S"
9787 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9788 echo "$ac_t""yes" 1>&6
9789 else
9790 echo "$ac_t""no" 1>&6
9791 fi
9792
9793
9794 case "${host}" in
9795 *-pc-os2_emx | *-pc-os2-emx )
9796 LIBS="$LIBS -lstdcpp"
9797 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9798 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9799 echo "configure:9800: checking for drand48 in -lcExt" >&5
9800 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9803 else
9804 ac_save_LIBS="$LIBS"
9805 LIBS="-lcExt $LIBS"
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 /* Override any gcc2 internal prototype to avoid an error. */
9810 /* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9812 char drand48();
9813
9814 int main() {
9815 drand48()
9816 ; return 0; }
9817 EOF
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9819 rm -rf conftest*
9820 eval "ac_cv_lib_$ac_lib_var=yes"
9821 else
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 rm -rf conftest*
9825 eval "ac_cv_lib_$ac_lib_var=no"
9826 fi
9827 rm -f conftest*
9828 LIBS="$ac_save_LIBS"
9829
9830 fi
9831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9832 echo "$ac_t""yes" 1>&6
9833 LIBS="$LIBS -lcExt"
9834 else
9835 echo "$ac_t""no" 1>&6
9836 fi
9837
9838 else
9839 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9840 fi
9841 ;;
9842 esac
9843
9844
9845 if test "$wxUSE_MAC" != 1; then
9846 for ac_hdr in strings.h
9847 do
9848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9850 echo "configure:9851: checking for $ac_hdr" >&5
9851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853 else
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 #include <$ac_hdr>
9858 EOF
9859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9860 { (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9862 if test -z "$ac_err"; then
9863 rm -rf conftest*
9864 eval "ac_cv_header_$ac_safe=yes"
9865 else
9866 echo "$ac_err" >&5
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 eval "ac_cv_header_$ac_safe=no"
9871 fi
9872 rm -f conftest*
9873 fi
9874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9877 cat >> confdefs.h <<EOF
9878 #define $ac_tr_hdr 1
9879 EOF
9880
9881 else
9882 echo "$ac_t""no" 1>&6
9883 fi
9884 done
9885
9886 fi
9887
9888 for ac_hdr in stdlib.h
9889 do
9890 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9891 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9892 echo "configure:9893: checking for $ac_hdr" >&5
9893 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895 else
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 #include <$ac_hdr>
9900 EOF
9901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9902 { (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9904 if test -z "$ac_err"; then
9905 rm -rf conftest*
9906 eval "ac_cv_header_$ac_safe=yes"
9907 else
9908 echo "$ac_err" >&5
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 rm -rf conftest*
9912 eval "ac_cv_header_$ac_safe=no"
9913 fi
9914 rm -f conftest*
9915 fi
9916 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9919 cat >> confdefs.h <<EOF
9920 #define $ac_tr_hdr 1
9921 EOF
9922
9923 else
9924 echo "$ac_t""no" 1>&6
9925 fi
9926 done
9927
9928 for ac_hdr in malloc.h
9929 do
9930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9932 echo "configure:9933: checking for $ac_hdr" >&5
9933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935 else
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 #include <$ac_hdr>
9940 EOF
9941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9942 { (eval echo configure:9943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9944 if test -z "$ac_err"; then
9945 rm -rf conftest*
9946 eval "ac_cv_header_$ac_safe=yes"
9947 else
9948 echo "$ac_err" >&5
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 rm -rf conftest*
9952 eval "ac_cv_header_$ac_safe=no"
9953 fi
9954 rm -f conftest*
9955 fi
9956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9957 echo "$ac_t""yes" 1>&6
9958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9959 cat >> confdefs.h <<EOF
9960 #define $ac_tr_hdr 1
9961 EOF
9962
9963 else
9964 echo "$ac_t""no" 1>&6
9965 fi
9966 done
9967
9968 for ac_hdr in unistd.h
9969 do
9970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9972 echo "configure:9973: checking for $ac_hdr" >&5
9973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975 else
9976 cat > conftest.$ac_ext <<EOF
9977 #line 9978 "configure"
9978 #include "confdefs.h"
9979 #include <$ac_hdr>
9980 EOF
9981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9982 { (eval echo configure:9983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9984 if test -z "$ac_err"; then
9985 rm -rf conftest*
9986 eval "ac_cv_header_$ac_safe=yes"
9987 else
9988 echo "$ac_err" >&5
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 rm -rf conftest*
9992 eval "ac_cv_header_$ac_safe=no"
9993 fi
9994 rm -f conftest*
9995 fi
9996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
9998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9999 cat >> confdefs.h <<EOF
10000 #define $ac_tr_hdr 1
10001 EOF
10002
10003 else
10004 echo "$ac_t""no" 1>&6
10005 fi
10006 done
10007
10008 for ac_hdr in wchar.h
10009 do
10010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10012 echo "configure:10013: checking for $ac_hdr" >&5
10013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015 else
10016 cat > conftest.$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 #include <$ac_hdr>
10020 EOF
10021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10022 { (eval echo configure:10023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10024 if test -z "$ac_err"; then
10025 rm -rf conftest*
10026 eval "ac_cv_header_$ac_safe=yes"
10027 else
10028 echo "$ac_err" >&5
10029 echo "configure: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 rm -rf conftest*
10032 eval "ac_cv_header_$ac_safe=no"
10033 fi
10034 rm -f conftest*
10035 fi
10036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10039 cat >> confdefs.h <<EOF
10040 #define $ac_tr_hdr 1
10041 EOF
10042
10043 else
10044 echo "$ac_t""no" 1>&6
10045 fi
10046 done
10047
10048
10049 if test "$ac_cv_header_wchar_h" != "yes"; then
10050 for ac_hdr in wcstr.h
10051 do
10052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10054 echo "configure:10055: checking for $ac_hdr" >&5
10055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057 else
10058 cat > conftest.$ac_ext <<EOF
10059 #line 10060 "configure"
10060 #include "confdefs.h"
10061 #include <$ac_hdr>
10062 EOF
10063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10064 { (eval echo configure:10065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10066 if test -z "$ac_err"; then
10067 rm -rf conftest*
10068 eval "ac_cv_header_$ac_safe=yes"
10069 else
10070 echo "$ac_err" >&5
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 rm -rf conftest*
10074 eval "ac_cv_header_$ac_safe=no"
10075 fi
10076 rm -f conftest*
10077 fi
10078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10079 echo "$ac_t""yes" 1>&6
10080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10081 cat >> confdefs.h <<EOF
10082 #define $ac_tr_hdr 1
10083 EOF
10084
10085 else
10086 echo "$ac_t""no" 1>&6
10087 fi
10088 done
10089
10090 fi
10091
10092 for ac_hdr in fnmatch.h
10093 do
10094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10096 echo "configure:10097: checking for $ac_hdr" >&5
10097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10098 echo $ac_n "(cached) $ac_c" 1>&6
10099 else
10100 cat > conftest.$ac_ext <<EOF
10101 #line 10102 "configure"
10102 #include "confdefs.h"
10103 #include <$ac_hdr>
10104 EOF
10105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10106 { (eval echo configure:10107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10108 if test -z "$ac_err"; then
10109 rm -rf conftest*
10110 eval "ac_cv_header_$ac_safe=yes"
10111 else
10112 echo "$ac_err" >&5
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10115 rm -rf conftest*
10116 eval "ac_cv_header_$ac_safe=no"
10117 fi
10118 rm -f conftest*
10119 fi
10120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10121 echo "$ac_t""yes" 1>&6
10122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10123 cat >> confdefs.h <<EOF
10124 #define $ac_tr_hdr 1
10125 EOF
10126
10127 else
10128 echo "$ac_t""no" 1>&6
10129 fi
10130 done
10131
10132
10133 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10134 for ac_func in fnmatch
10135 do
10136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10137 echo "configure:10138: checking for $ac_func" >&5
10138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10140 else
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func(); below. */
10146 #include <assert.h>
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 /* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150 char $ac_func();
10151
10152 int main() {
10153
10154 /* The GNU C library defines this for functions which it implements
10155 to always fail with ENOSYS. Some functions are actually named
10156 something starting with __ and the normal name is an alias. */
10157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10158 choke me
10159 #else
10160 $ac_func();
10161 #endif
10162
10163 ; return 0; }
10164 EOF
10165 if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10166 rm -rf conftest*
10167 eval "ac_cv_func_$ac_func=yes"
10168 else
10169 echo "configure: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10171 rm -rf conftest*
10172 eval "ac_cv_func_$ac_func=no"
10173 fi
10174 rm -f conftest*
10175 fi
10176
10177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10178 echo "$ac_t""yes" 1>&6
10179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10180 cat >> confdefs.h <<EOF
10181 #define $ac_tr_func 1
10182 EOF
10183
10184 else
10185 echo "$ac_t""no" 1>&6
10186 fi
10187 done
10188
10189 fi
10190
10191 for ac_hdr in langinfo.h
10192 do
10193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10195 echo "configure:10196: checking for $ac_hdr" >&5
10196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10198 else
10199 cat > conftest.$ac_ext <<EOF
10200 #line 10201 "configure"
10201 #include "confdefs.h"
10202 #include <$ac_hdr>
10203 EOF
10204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10205 { (eval echo configure:10206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10207 if test -z "$ac_err"; then
10208 rm -rf conftest*
10209 eval "ac_cv_header_$ac_safe=yes"
10210 else
10211 echo "$ac_err" >&5
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 rm -rf conftest*
10215 eval "ac_cv_header_$ac_safe=no"
10216 fi
10217 rm -f conftest*
10218 fi
10219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10222 cat >> confdefs.h <<EOF
10223 #define $ac_tr_hdr 1
10224 EOF
10225
10226 else
10227 echo "$ac_t""no" 1>&6
10228 fi
10229 done
10230
10231
10232 if test "$wxUSE_GUI" = "yes"; then
10233 if test "$wxUSE_UNIX" = "yes"; then
10234 for ac_hdr in X11/XKBlib.h
10235 do
10236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10238 echo "configure:10239: checking for $ac_hdr" >&5
10239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10240 echo $ac_n "(cached) $ac_c" 1>&6
10241 else
10242 cat > conftest.$ac_ext <<EOF
10243 #line 10244 "configure"
10244 #include "confdefs.h"
10245 #include <$ac_hdr>
10246 EOF
10247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10248 { (eval echo configure:10249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10250 if test -z "$ac_err"; then
10251 rm -rf conftest*
10252 eval "ac_cv_header_$ac_safe=yes"
10253 else
10254 echo "$ac_err" >&5
10255 echo "configure: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10257 rm -rf conftest*
10258 eval "ac_cv_header_$ac_safe=no"
10259 fi
10260 rm -f conftest*
10261 fi
10262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10263 echo "$ac_t""yes" 1>&6
10264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10265 cat >> confdefs.h <<EOF
10266 #define $ac_tr_hdr 1
10267 EOF
10268
10269 else
10270 echo "$ac_t""no" 1>&6
10271 fi
10272 done
10273
10274 fi
10275 fi
10276
10277
10278 echo $ac_n "checking for working const""... $ac_c" 1>&6
10279 echo "configure:10280: checking for working const" >&5
10280 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10282 else
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10285 "configure"
10285 #include "confdefs.h"
10286
10287 int main() {
10288
10289 /* Ultrix mips cc rejects this. */
10290 typedef int charset[2]; const charset x;
10291 /* SunOS 4.1.1 cc rejects this. */
10292 char const *const *ccp;
10293 char **p;
10294 /* NEC SVR4.0.2 mips cc rejects this. */
10295 struct point {int x, y;};
10296 static struct point const zero = {0,0};
10297 /* AIX XL C 1.02.0.0 rejects this.
10298 It does not let you subtract one const X* pointer from another in an arm
10299 of an if-expression whose if-part is not a constant expression */
10300 const char *g = "string";
10301 ccp = &g + (g ? g-g : 0);
10302 /* HPUX 7.0 cc rejects these. */
10303 ++ccp;
10304 p = (char**) ccp;
10305 ccp = (char const *const *) p;
10306 { /* SCO 3.2v4 cc rejects this. */
10307 char *t;
10308 char const *s = 0 ? (char *) 0 : (char const *) 0;
10309
10310 *t++ = 0;
10311 }
10312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10313 int x[] = {25, 17};
10314 const int *foo = &x[0];
10315 ++foo;
10316 }
10317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10318 typedef const int *iptr;
10319 iptr p = 0;
10320 ++p;
10321 }
10322 { /* AIX XL C 1.02.0.0 rejects this saying
10323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10324 struct s { int j; const int *ap[3]; };
10325 struct s *b; b->j = 5;
10326 }
10327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10328 const int foo = 10;
10329 }
10330
10331 ; return 0; }
10332 EOF
10333 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10334 rm -rf conftest*
10335 ac_cv_c_const=yes
10336 else
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 rm -rf conftest*
10340 ac_cv_c_const=no
10341 fi
10342 rm -f conftest*
10343 fi
10344
10345 echo "$ac_t""$ac_cv_c_const" 1>&6
10346 if test $ac_cv_c_const = no; then
10347 cat >> confdefs.h <<\EOF
10348 #define const
10349 EOF
10350
10351 fi
10352
10353 echo $ac_n "checking for inline""... $ac_c" 1>&6
10354 echo "configure:10355: checking for inline" >&5
10355 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10357 else
10358 ac_cv_c_inline=no
10359 for ac_kw in inline __inline__ __inline; do
10360 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10363
10364 int main() {
10365 } $ac_kw foo() {
10366 ; return 0; }
10367 EOF
10368 if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10369 rm -rf conftest*
10370 ac_cv_c_inline=$ac_kw; break
10371 else
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10374 fi
10375 rm -f conftest*
10376 done
10377
10378 fi
10379
10380 echo "$ac_t""$ac_cv_c_inline" 1>&6
10381 case "$ac_cv_c_inline" in
10382 inline | yes) ;;
10383 no) cat >> confdefs.h <<\EOF
10384 #define inline
10385 EOF
10386 ;;
10387 *) cat >> confdefs.h <<EOF
10388 #define inline $ac_cv_c_inline
10389 EOF
10390 ;;
10391 esac
10392
10393
10394 echo $ac_n "checking size of char""... $ac_c" 1>&6
10395 echo "configure:10396: checking size of char" >&5
10396 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10398 else
10399 if test "$cross_compiling" = yes; then
10400 ac_cv_sizeof_char=1
10401 else
10402 cat > conftest.$ac_ext <<EOF
10403 #line 10404 "configure"
10404 #include "confdefs.h"
10405 #include <stdio.h>
10406 #include <sys/types.h>
10407 main()
10408 {
10409 FILE *f=fopen("conftestval", "w");
10410 if (!f) exit(1);
10411 fprintf(f, "%d\n", sizeof(char));
10412 exit(0);
10413 }
10414 EOF
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10416 then
10417 ac_cv_sizeof_char=`cat conftestval`
10418 else
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 rm -fr conftest*
10422 ac_cv_sizeof_char=0
10423 fi
10424 rm -fr conftest*
10425 fi
10426
10427 fi
10428 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10429 cat >> confdefs.h <<EOF
10430 #define SIZEOF_CHAR $ac_cv_sizeof_char
10431 EOF
10432
10433
10434 echo $ac_n "checking size of short""... $ac_c" 1>&6
10435 echo "configure:10436: checking size of short" >&5
10436 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10437 echo $ac_n "(cached) $ac_c" 1>&6
10438 else
10439 if test "$cross_compiling" = yes; then
10440 ac_cv_sizeof_short=2
10441 else
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 #include <stdio.h>
10446 #include <sys/types.h>
10447 main()
10448 {
10449 FILE *f=fopen("conftestval", "w");
10450 if (!f) exit(1);
10451 fprintf(f, "%d\n", sizeof(short));
10452 exit(0);
10453 }
10454 EOF
10455 if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10456 then
10457 ac_cv_sizeof_short=`cat conftestval`
10458 else
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10461 rm -fr conftest*
10462 ac_cv_sizeof_short=0
10463 fi
10464 rm -fr conftest*
10465 fi
10466
10467 fi
10468 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10469 cat >> confdefs.h <<EOF
10470 #define SIZEOF_SHORT $ac_cv_sizeof_short
10471 EOF
10472
10473
10474 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10475 echo "configure:10476: checking size of void *" >&5
10476 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10478 else
10479 if test "$cross_compiling" = yes; then
10480 ac_cv_sizeof_void_p=4
10481 else
10482 cat > conftest.$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10485 #include <stdio.h>
10486 #include <sys/types.h>
10487 main()
10488 {
10489 FILE *f=fopen("conftestval", "w");
10490 if (!f) exit(1);
10491 fprintf(f, "%d\n", sizeof(void *));
10492 exit(0);
10493 }
10494 EOF
10495 if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10496 then
10497 ac_cv_sizeof_void_p=`cat conftestval`
10498 else
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10501 rm -fr conftest*
10502 ac_cv_sizeof_void_p=0
10503 fi
10504 rm -fr conftest*
10505 fi
10506
10507 fi
10508 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10509 cat >> confdefs.h <<EOF
10510 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10511 EOF
10512
10513
10514 echo $ac_n "checking size of int""... $ac_c" 1>&6
10515 echo "configure:10516: checking size of int" >&5
10516 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10517 echo $ac_n "(cached) $ac_c" 1>&6
10518 else
10519 if test "$cross_compiling" = yes; then
10520 ac_cv_sizeof_int=4
10521 else
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10525 #include <stdio.h>
10526 #include <sys/types.h>
10527 main()
10528 {
10529 FILE *f=fopen("conftestval", "w");
10530 if (!f) exit(1);
10531 fprintf(f, "%d\n", sizeof(int));
10532 exit(0);
10533 }
10534 EOF
10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10536 then
10537 ac_cv_sizeof_int=`cat conftestval`
10538 else
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10541 rm -fr conftest*
10542 ac_cv_sizeof_int=0
10543 fi
10544 rm -fr conftest*
10545 fi
10546
10547 fi
10548 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10549 cat >> confdefs.h <<EOF
10550 #define SIZEOF_INT $ac_cv_sizeof_int
10551 EOF
10552
10553
10554 echo $ac_n "checking size of long""... $ac_c" 1>&6
10555 echo "configure:10556: checking size of long" >&5
10556 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10558 else
10559 if test "$cross_compiling" = yes; then
10560 ac_cv_sizeof_long=4
10561 else
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10565 #include <stdio.h>
10566 #include <sys/types.h>
10567 main()
10568 {
10569 FILE *f=fopen("conftestval", "w");
10570 if (!f) exit(1);
10571 fprintf(f, "%d\n", sizeof(long));
10572 exit(0);
10573 }
10574 EOF
10575 if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10576 then
10577 ac_cv_sizeof_long=`cat conftestval`
10578 else
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10581 rm -fr conftest*
10582 ac_cv_sizeof_long=0
10583 fi
10584 rm -fr conftest*
10585 fi
10586
10587 fi
10588 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10589 cat >> confdefs.h <<EOF
10590 #define SIZEOF_LONG $ac_cv_sizeof_long
10591 EOF
10592
10593
10594
10595 case "${host}" in
10596 arm-*-linux* )
10597 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10598 echo "configure:10599: checking size of long long" >&5
10599 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10601 else
10602 if test "$cross_compiling" = yes; then
10603 ac_cv_sizeof_long_long=8
10604 else
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 #include <stdio.h>
10609 #include <sys/types.h>
10610 main()
10611 {
10612 FILE *f=fopen("conftestval", "w");
10613 if (!f) exit(1);
10614 fprintf(f, "%d\n", sizeof(long long));
10615 exit(0);
10616 }
10617 EOF
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10619 then
10620 ac_cv_sizeof_long_long=`cat conftestval`
10621 else
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 rm -fr conftest*
10625 ac_cv_sizeof_long_long=0
10626 fi
10627 rm -fr conftest*
10628 fi
10629
10630 fi
10631 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10632 cat >> confdefs.h <<EOF
10633 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10634 EOF
10635
10636
10637 ;;
10638 *-hp-hpux* )
10639 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10640 echo "configure:10641: checking size of long long" >&5
10641 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10643 else
10644 if test "$cross_compiling" = yes; then
10645 ac_cv_sizeof_long_long=0
10646 else
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include <stdio.h>
10651 #include <sys/types.h>
10652 main()
10653 {
10654 FILE *f=fopen("conftestval", "w");
10655 if (!f) exit(1);
10656 fprintf(f, "%d\n", sizeof(long long));
10657 exit(0);
10658 }
10659 EOF
10660 if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10661 then
10662 ac_cv_sizeof_long_long=`cat conftestval`
10663 else
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -fr conftest*
10667 ac_cv_sizeof_long_long=0
10668 fi
10669 rm -fr conftest*
10670 fi
10671
10672 fi
10673 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10674 cat >> confdefs.h <<EOF
10675 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10676 EOF
10677
10678
10679 if test "$ac_cv_sizeof_long_long" != "0"; then
10680 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10681 fi
10682 ;;
10683 * )
10684 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10685 echo "configure:10686: checking size of long long" >&5
10686 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10688 else
10689 if test "$cross_compiling" = yes; then
10690 ac_cv_sizeof_long_long=0
10691 else
10692 cat > conftest.$ac_ext <<EOF
10693 #line 10694 "configure"
10694 #include "confdefs.h"
10695 #include <stdio.h>
10696 #include <sys/types.h>
10697 main()
10698 {
10699 FILE *f=fopen("conftestval", "w");
10700 if (!f) exit(1);
10701 fprintf(f, "%d\n", sizeof(long long));
10702 exit(0);
10703 }
10704 EOF
10705 if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10706 then
10707 ac_cv_sizeof_long_long=`cat conftestval`
10708 else
10709 echo "configure: failed program was:" >&5
10710 cat conftest.$ac_ext >&5
10711 rm -fr conftest*
10712 ac_cv_sizeof_long_long=0
10713 fi
10714 rm -fr conftest*
10715 fi
10716
10717 fi
10718 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10719 cat >> confdefs.h <<EOF
10720 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10721 EOF
10722
10723
10724 esac
10725
10726 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10727 echo "configure:10728: checking size of wchar_t" >&5
10728 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10729 echo $ac_n "(cached) $ac_c" 1>&6
10730 else
10731
10732 if test "$cross_compiling" = yes; then
10733
10734 case "${host}" in
10735 *-pc-msdosdjgpp )
10736 wx_cv_sizeof_wchar_t=0
10737 ;;
10738 * )
10739 wx_cv_sizeof_wchar_t=4
10740 ;;
10741 esac
10742
10743
10744 else
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748
10749 /* DJGPP only has fake wchar_t: */
10750 #ifdef __DJGPP__
10751 # error "fake wchar_t"
10752 #endif
10753 #ifdef HAVE_WCHAR_H
10754 # ifdef __CYGWIN__
10755 # include <stddef.h>
10756 # endif
10757 # include <wchar.h>
10758 #endif
10759 #ifdef HAVE_STDLIB_H
10760 # include <stdlib.h>
10761 #endif
10762 #include <stdio.h>
10763 int main()
10764 {
10765 FILE *f=fopen("conftestval", "w");
10766 if (!f) exit(1);
10767 fprintf(f, "%i", sizeof(wchar_t));
10768 exit(0);
10769 }
10770
10771 EOF
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10773 then
10774 wx_cv_sizeof_wchar_t=`cat conftestval`
10775 else
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10778 rm -fr conftest*
10779 wx_cv_sizeof_wchar_t=0
10780 fi
10781 rm -fr conftest*
10782 fi
10783
10784
10785 fi
10786
10787 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10788
10789 cat >> confdefs.h <<EOF
10790 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10791 EOF
10792
10793
10794 # Check whether --enable-largefile or --disable-largefile was given.
10795 if test "${enable_largefile+set}" = set; then
10796 enableval="$enable_largefile"
10797 :
10798 fi
10799
10800 if test "$enable_largefile" != no; then
10801 wx_largefile=no
10802
10803 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10804 echo "configure:10805: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10805 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10807 else
10808
10809 cat > conftest.$ac_ext <<EOF
10810 #line 10811 "configure"
10811 #include "confdefs.h"
10812 #define _FILE_OFFSET_BITS 64
10813 #include <sys/types.h>
10814 int main() {
10815 typedef struct {
10816 unsigned int field: sizeof(off_t) == 8;
10817 } wxlf;
10818
10819 ; return 0; }
10820 EOF
10821 if { (eval echo configure:10822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10822 rm -rf conftest*
10823 ac_cv_sys_file_offset_bits=64
10824 else
10825 echo "configure: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 rm -rf conftest*
10828 ac_cv_sys_file_offset_bits=no
10829 fi
10830 rm -f conftest*
10831
10832
10833 fi
10834
10835 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10836
10837 if test "$ac_cv_sys_file_offset_bits" != no; then
10838 wx_largefile=yes
10839 cat >> confdefs.h <<EOF
10840 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10841 EOF
10842
10843 fi
10844
10845 if test "x$wx_largefile" != "xyes"; then
10846
10847 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10848 echo "configure:10849: checking for _LARGE_FILES value needed for large files" >&5
10849 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851 else
10852
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10856 #define _LARGE_FILES 1
10857 #include <sys/types.h>
10858 int main() {
10859 typedef struct {
10860 unsigned int field: sizeof(off_t) == 8;
10861 } wxlf;
10862
10863 ; return 0; }
10864 EOF
10865 if { (eval echo configure:10866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10866 rm -rf conftest*
10867 ac_cv_sys_large_files=1
10868 else
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 ac_cv_sys_large_files=no
10873 fi
10874 rm -f conftest*
10875
10876
10877 fi
10878
10879 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10880
10881 if test "$ac_cv_sys_large_files" != no; then
10882 wx_largefile=yes
10883 cat >> confdefs.h <<EOF
10884 #define _LARGE_FILES $ac_cv_sys_large_files
10885 EOF
10886
10887 fi
10888
10889 fi
10890
10891 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10892 echo "configure:10893: checking if large file support is available" >&5
10893 if test "x$wx_largefile" = "xyes"; then
10894 cat >> confdefs.h <<\EOF
10895 #define HAVE_LARGEFILE_SUPPORT 1
10896 EOF
10897
10898 fi
10899 echo "$ac_t""$wx_largefile" 1>&6
10900 fi
10901
10902
10903 if test "x$wx_largefile" = "xyes"; then
10904 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10905 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10906 else
10907 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10908 fi
10909 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10910 fi
10911
10912 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10913 echo "configure:10914: checking whether byte ordering is bigendian" >&5
10914 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10916 else
10917 ac_cv_c_bigendian=unknown
10918 # See if sys/param.h defines the BYTE_ORDER macro.
10919 cat > conftest.$ac_ext <<EOF
10920 #line 10921 "configure"
10921 #include "confdefs.h"
10922 #include <sys/types.h>
10923 #include <sys/param.h>
10924 int main() {
10925
10926 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10927 bogus endian macros
10928 #endif
10929 ; return 0; }
10930 EOF
10931 if { (eval echo configure:10932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10932 rm -rf conftest*
10933 # It does; now see whether it defined to BIG_ENDIAN or not.
10934 cat > conftest.$ac_ext <<EOF
10935 #line 10936 "configure"
10936 #include "confdefs.h"
10937 #include <sys/types.h>
10938 #include <sys/param.h>
10939 int main() {
10940
10941 #if BYTE_ORDER != BIG_ENDIAN
10942 not big endian
10943 #endif
10944 ; return 0; }
10945 EOF
10946 if { (eval echo configure:10947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10947 rm -rf conftest*
10948 ac_cv_c_bigendian=yes
10949 else
10950 echo "configure: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10952 rm -rf conftest*
10953 ac_cv_c_bigendian=no
10954 fi
10955 rm -f conftest*
10956 else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 fi
10960 rm -f conftest*
10961 if test $ac_cv_c_bigendian = unknown; then
10962 if test "$cross_compiling" = yes; then
10963 ac_cv_c_bigendian=unknown
10964 else
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10968 main () {
10969 /* Are we little or big endian? From Harbison&Steele. */
10970 union
10971 {
10972 long l;
10973 char c[sizeof (long)];
10974 } u;
10975 u.l = 1;
10976 exit (u.c[sizeof (long) - 1] == 1);
10977 }
10978 EOF
10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10980 then
10981 ac_cv_c_bigendian=no
10982 else
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10985 rm -fr conftest*
10986 ac_cv_c_bigendian=yes
10987 fi
10988 rm -fr conftest*
10989 fi
10990
10991 fi
10992 fi
10993
10994 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10995 if test $ac_cv_c_bigendian = unknown; then
10996 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
10997 fi
10998 if test $ac_cv_c_bigendian = yes; then
10999 cat >> confdefs.h <<\EOF
11000 #define WORDS_BIGENDIAN 1
11001 EOF
11002
11003 fi
11004
11005
11006 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11007 echo "configure:11008: checking how to run the C++ preprocessor" >&5
11008 if test -z "$CXXCPP"; then
11009 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11011 else
11012 ac_ext=C
11013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11014 ac_cpp='$CXXCPP $CPPFLAGS'
11015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11017 cross_compiling=$ac_cv_prog_cxx_cross
11018 CXXCPP="${CXX-g++} -E"
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 #include <stdlib.h>
11023 EOF
11024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11025 { (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11027 if test -z "$ac_err"; then
11028 :
11029 else
11030 echo "$ac_err" >&5
11031 echo "configure: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11033 rm -rf conftest*
11034 CXXCPP=/lib/cpp
11035 fi
11036 rm -f conftest*
11037 ac_cv_prog_CXXCPP="$CXXCPP"
11038 ac_ext=C
11039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11040 ac_cpp='$CXXCPP $CPPFLAGS'
11041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11043 cross_compiling=$ac_cv_prog_cxx_cross
11044 fi
11045 fi
11046 CXXCPP="$ac_cv_prog_CXXCPP"
11047 echo "$ac_t""$CXXCPP" 1>&6
11048
11049
11050 if test "$cross_compiling" = "yes"; then
11051 cat >> confdefs.h <<\EOF
11052 #define wxUSE_IOSTREAMH 1
11053 EOF
11054
11055 else
11056
11057 ac_ext=C
11058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11059 ac_cpp='$CXXCPP $CPPFLAGS'
11060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11062 cross_compiling=$ac_cv_prog_cxx_cross
11063
11064
11065 for ac_hdr in iostream
11066 do
11067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11069 echo "configure:11070: checking for $ac_hdr" >&5
11070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11072 else
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11076 #include <$ac_hdr>
11077 EOF
11078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11079 { (eval echo configure:11080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11081 if test -z "$ac_err"; then
11082 rm -rf conftest*
11083 eval "ac_cv_header_$ac_safe=yes"
11084 else
11085 echo "$ac_err" >&5
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11088 rm -rf conftest*
11089 eval "ac_cv_header_$ac_safe=no"
11090 fi
11091 rm -f conftest*
11092 fi
11093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11094 echo "$ac_t""yes" 1>&6
11095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11096 cat >> confdefs.h <<EOF
11097 #define $ac_tr_hdr 1
11098 EOF
11099
11100 else
11101 echo "$ac_t""no" 1>&6
11102 fi
11103 done
11104
11105
11106 if test "$ac_cv_header_iostream" = "yes" ; then
11107 :
11108 else
11109 cat >> confdefs.h <<\EOF
11110 #define wxUSE_IOSTREAMH 1
11111 EOF
11112
11113 fi
11114
11115 ac_ext=c
11116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11120 cross_compiling=$ac_cv_prog_cc_cross
11121
11122 fi
11123
11124
11125
11126 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11127 echo "configure:11128: checking if C++ compiler supports bool" >&5
11128 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11130 else
11131
11132
11133 ac_ext=C
11134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11135 ac_cpp='$CXXCPP $CPPFLAGS'
11136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11138 cross_compiling=$ac_cv_prog_cxx_cross
11139
11140
11141 cat > conftest.$ac_ext <<EOF
11142 #line 11143 "configure"
11143 #include "confdefs.h"
11144
11145
11146 int main() {
11147
11148 bool b = true;
11149
11150 return 0;
11151
11152 ; return 0; }
11153 EOF
11154 if { (eval echo configure:11155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11155 rm -rf conftest*
11156
11157 wx_cv_cpp_bool=yes
11158
11159 else
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11162 rm -rf conftest*
11163
11164 wx_cv_cpp_bool=no
11165
11166
11167 fi
11168 rm -f conftest*
11169
11170 ac_ext=c
11171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11172 ac_cpp='$CPP $CPPFLAGS'
11173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11175 cross_compiling=$ac_cv_prog_cc_cross
11176
11177
11178 fi
11179
11180 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11181
11182 if test "$wx_cv_cpp_bool" = "yes"; then
11183 cat >> confdefs.h <<\EOF
11184 #define HAVE_BOOL 1
11185 EOF
11186
11187 fi
11188
11189
11190
11191 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11192 echo "configure:11193: checking if C++ compiler supports the explicit keyword" >&5
11193 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11195 else
11196
11197
11198 ac_ext=C
11199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11200 ac_cpp='$CXXCPP $CPPFLAGS'
11201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11203 cross_compiling=$ac_cv_prog_cxx_cross
11204
11205
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11209
11210 class Foo { public: explicit Foo(int) {} };
11211
11212 int main() {
11213
11214 return 0;
11215
11216 ; return 0; }
11217 EOF
11218 if { (eval echo configure:11219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11219 rm -rf conftest*
11220
11221 cat > conftest.$ac_ext <<EOF
11222 #line 11223 "configure"
11223 #include "confdefs.h"
11224
11225 class Foo { public: explicit Foo(int) {} };
11226 static void TakeFoo(const Foo& foo) { }
11227
11228 int main() {
11229
11230 TakeFoo(17);
11231 return 0;
11232
11233 ; return 0; }
11234 EOF
11235 if { (eval echo configure:11236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11236 rm -rf conftest*
11237 wx_cv_explicit=no
11238 else
11239 echo "configure: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 rm -rf conftest*
11242 wx_cv_explicit=yes
11243
11244 fi
11245 rm -f conftest*
11246
11247 else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 wx_cv_explicit=no
11252
11253 fi
11254 rm -f conftest*
11255
11256 ac_ext=c
11257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11258 ac_cpp='$CPP $CPPFLAGS'
11259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11261 cross_compiling=$ac_cv_prog_cc_cross
11262
11263
11264 fi
11265
11266 echo "$ac_t""$wx_cv_explicit" 1>&6
11267
11268 if test "$wx_cv_explicit" = "yes"; then
11269 cat >> confdefs.h <<\EOF
11270 #define HAVE_EXPLICIT 1
11271 EOF
11272
11273 fi
11274
11275
11276
11277 SEARCH_INCLUDE="\
11278 /usr/local/include \
11279 \
11280 /usr/Motif-1.2/include \
11281 /usr/Motif-2.1/include \
11282 \
11283 /usr/include/Motif1.2 \
11284 /opt/xpm/include/X11 \
11285 /opt/GBxpm/include/ \
11286 /opt/GBxpm/X11/include/ \
11287 \
11288 /usr/Motif1.2/include \
11289 /usr/dt/include \
11290 /usr/openwin/include \
11291 \
11292 /usr/include/Xm \
11293 \
11294 /usr/X11R6/include \
11295 /usr/X11R6.4/include \
11296 /usr/X11R5/include \
11297 /usr/X11R4/include \
11298 \
11299 /usr/include/X11R6 \
11300 /usr/include/X11R5 \
11301 /usr/include/X11R4 \
11302 \
11303 /usr/local/X11R6/include \
11304 /usr/local/X11R5/include \
11305 /usr/local/X11R4/include \
11306 \
11307 /usr/local/include/X11R6 \
11308 /usr/local/include/X11R5 \
11309 /usr/local/include/X11R4 \
11310 \
11311 /usr/X11/include \
11312 /usr/include/X11 \
11313 /usr/local/X11/include \
11314 /usr/local/include/X11 \
11315 \
11316 /usr/X386/include \
11317 /usr/x386/include \
11318 /usr/XFree86/include/X11 \
11319 \
11320 X:/XFree86/include \
11321 X:/XFree86/include/X11 \
11322 \
11323 /usr/include/gtk \
11324 /usr/local/include/gtk \
11325 /usr/include/glib \
11326 /usr/local/include/glib \
11327 \
11328 /usr/include/qt \
11329 /usr/local/include/qt \
11330 \
11331 /usr/include/windows \
11332 /usr/include/wine \
11333 /usr/local/include/wine \
11334 \
11335 /usr/unsupported/include \
11336 /usr/athena/include \
11337 /usr/local/x11r5/include \
11338 /usr/lpp/Xamples/include \
11339 \
11340 /usr/openwin/share/include"
11341
11342 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11343
11344
11345 cat > confcache <<\EOF
11346 # This file is a shell script that caches the results of configure
11347 # tests run on this system so they can be shared between configure
11348 # scripts and configure runs. It is not useful on other systems.
11349 # If it contains results you don't want to keep, you may remove or edit it.
11350 #
11351 # By default, configure uses ./config.cache as the cache file,
11352 # creating it if it does not exist already. You can give configure
11353 # the --cache-file=FILE option to use a different cache file; that is
11354 # what configure does when it calls configure scripts in
11355 # subdirectories, so they share the cache.
11356 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11357 # config.status only pays attention to the cache file if you give it the
11358 # --recheck option to rerun configure.
11359 #
11360 EOF
11361 # The following way of writing the cache mishandles newlines in values,
11362 # but we know of no workaround that is simple, portable, and efficient.
11363 # So, don't put newlines in cache variables' values.
11364 # Ultrix sh set writes to stderr and can't be redirected directly,
11365 # and sets the high bit in the cache file unless we assign to the vars.
11366 (set) 2>&1 |
11367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11368 *ac_space=\ *)
11369 # `set' does not quote correctly, so add quotes (double-quote substitution
11370 # turns \\\\ into \\, and sed turns \\ into \).
11371 sed -n \
11372 -e "s/'/'\\\\''/g" \
11373 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11374 ;;
11375 *)
11376 # `set' quotes correctly as required by POSIX, so do not add quotes.
11377 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11378 ;;
11379 esac >> confcache
11380 if cmp -s $cache_file confcache; then
11381 :
11382 else
11383 if test -w $cache_file; then
11384 echo "updating cache $cache_file"
11385 cat confcache > $cache_file
11386 else
11387 echo "not updating unwritable cache $cache_file"
11388 fi
11389 fi
11390 rm -f confcache
11391
11392
11393 if test "$USE_LINUX" = 1; then
11394 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11395 echo "configure:11396: checking for glibc 2.1 or later" >&5
11396 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11397 echo $ac_n "(cached) $ac_c" 1>&6
11398 else
11399
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403 #include <features.h>
11404 int main() {
11405
11406 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11407 #error not glibc2.1
11408 #endif
11409
11410 ; return 0; }
11411 EOF
11412 if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11413 rm -rf conftest*
11414
11415 wx_cv_lib_glibc21=yes
11416
11417 else
11418 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5
11420 rm -rf conftest*
11421
11422 wx_cv_lib_glibc21=no
11423
11424
11425 fi
11426 rm -f conftest*
11427
11428 fi
11429
11430 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11431 if test "$wx_cv_lib_glibc21" = "yes"; then
11432 cat >> confdefs.h <<\EOF
11433 #define wxHAVE_GLIBC2 1
11434 EOF
11435
11436 fi
11437 fi
11438
11439 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11440 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11441 cat >> confdefs.h <<\EOF
11442 #define _GNU_SOURCE 1
11443 EOF
11444
11445 fi
11446 fi
11447
11448
11449
11450 REGEX_INCLUDE=
11451 if test "$wxUSE_REGEX" != "no"; then
11452 cat >> confdefs.h <<\EOF
11453 #define wxUSE_REGEX 1
11454 EOF
11455
11456
11457 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11458 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11459 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11460 echo "configure:11461: checking for regex.h" >&5
11461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11462 echo $ac_n "(cached) $ac_c" 1>&6
11463 else
11464 cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11467 #include <regex.h>
11468 EOF
11469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11470 { (eval echo configure:11471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11472 if test -z "$ac_err"; then
11473 rm -rf conftest*
11474 eval "ac_cv_header_$ac_safe=yes"
11475 else
11476 echo "$ac_err" >&5
11477 echo "configure: failed program was:" >&5
11478 cat conftest.$ac_ext >&5
11479 rm -rf conftest*
11480 eval "ac_cv_header_$ac_safe=no"
11481 fi
11482 rm -f conftest*
11483 fi
11484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 for ac_func in regcomp
11487 do
11488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11489 echo "configure:11490: checking for $ac_func" >&5
11490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11491 echo $ac_n "(cached) $ac_c" 1>&6
11492 else
11493 cat > conftest.$ac_ext <<EOF
11494 #line 11495 "configure"
11495 #include "confdefs.h"
11496 /* System header to define __stub macros and hopefully few prototypes,
11497 which can conflict with char $ac_func(); below. */
11498 #include <assert.h>
11499 /* Override any gcc2 internal prototype to avoid an error. */
11500 /* We use char because int might match the return type of a gcc2
11501 builtin and then its argument prototype would still apply. */
11502 char $ac_func();
11503
11504 int main() {
11505
11506 /* The GNU C library defines this for functions which it implements
11507 to always fail with ENOSYS. Some functions are actually named
11508 something starting with __ and the normal name is an alias. */
11509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11510 choke me
11511 #else
11512 $ac_func();
11513 #endif
11514
11515 ; return 0; }
11516 EOF
11517 if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11518 rm -rf conftest*
11519 eval "ac_cv_func_$ac_func=yes"
11520 else
11521 echo "configure: failed program was:" >&5
11522 cat conftest.$ac_ext >&5
11523 rm -rf conftest*
11524 eval "ac_cv_func_$ac_func=no"
11525 fi
11526 rm -f conftest*
11527 fi
11528
11529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11530 echo "$ac_t""yes" 1>&6
11531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11532 cat >> confdefs.h <<EOF
11533 #define $ac_tr_func 1
11534 EOF
11535
11536 else
11537 echo "$ac_t""no" 1>&6
11538 fi
11539 done
11540
11541 else
11542 echo "$ac_t""no" 1>&6
11543 fi
11544
11545
11546 if test "x$ac_cv_func_regcomp" != "xyes"; then
11547 if test "$wxUSE_REGEX" = "sys" ; then
11548 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11549 else
11550 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11551 wxUSE_REGEX=builtin
11552 fi
11553 else
11554 wxUSE_REGEX=sys
11555 fi
11556 fi
11557
11558 if test "$wxUSE_REGEX" = "builtin" ; then
11559 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11560 fi
11561 fi
11562
11563
11564 ZLIB_INCLUDE=
11565 ZLIB_LINK=
11566 if test "$wxUSE_ZLIB" != "no" ; then
11567 cat >> confdefs.h <<\EOF
11568 #define wxUSE_ZLIB 1
11569 EOF
11570
11571
11572 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11573 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11574 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11575 echo "configure:11576: checking for zlib.h" >&5
11576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11577 echo $ac_n "(cached) $ac_c" 1>&6
11578 else
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 #include <zlib.h>
11583 EOF
11584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11585 { (eval echo configure:11586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11587 if test -z "$ac_err"; then
11588 rm -rf conftest*
11589 eval "ac_cv_header_$ac_safe=yes"
11590 else
11591 echo "$ac_err" >&5
11592 echo "configure: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 rm -rf conftest*
11595 eval "ac_cv_header_$ac_safe=no"
11596 fi
11597 rm -f conftest*
11598 fi
11599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11600 echo "$ac_t""yes" 1>&6
11601 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11602 echo "configure:11603: checking for deflate in -lz" >&5
11603 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11605 echo $ac_n "(cached) $ac_c" 1>&6
11606 else
11607 ac_save_LIBS="$LIBS"
11608 LIBS="-lz $LIBS"
11609 cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure"
11611 #include "confdefs.h"
11612 /* Override any gcc2 internal prototype to avoid an error. */
11613 /* We use char because int might match the return type of a gcc2
11614 builtin and then its argument prototype would still apply. */
11615 char deflate();
11616
11617 int main() {
11618 deflate()
11619 ; return 0; }
11620 EOF
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11622 rm -rf conftest*
11623 eval "ac_cv_lib_$ac_lib_var=yes"
11624 else
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11627 rm -rf conftest*
11628 eval "ac_cv_lib_$ac_lib_var=no"
11629 fi
11630 rm -f conftest*
11631 LIBS="$ac_save_LIBS"
11632
11633 fi
11634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11635 echo "$ac_t""yes" 1>&6
11636 ZLIB_LINK=" -lz"
11637 else
11638 echo "$ac_t""no" 1>&6
11639 fi
11640
11641 else
11642 echo "$ac_t""no" 1>&6
11643 fi
11644
11645
11646 if test "x$ZLIB_LINK" = "x" ; then
11647 if test "$wxUSE_ZLIB" = "sys" ; then
11648 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11649 else
11650 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11651 wxUSE_ZLIB=builtin
11652 fi
11653 else
11654 wxUSE_ZLIB=sys
11655 fi
11656 fi
11657
11658 if test "$wxUSE_ZLIB" = "builtin" ; then
11659 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11660 fi
11661 fi
11662
11663
11664 PNG_INCLUDE=
11665 PNG_LINK=
11666 if test "$wxUSE_LIBPNG" != "no" ; then
11667 cat >> confdefs.h <<\EOF
11668 #define wxUSE_LIBPNG 1
11669 EOF
11670
11671
11672 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11673 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11674 wxUSE_LIBPNG=sys
11675 fi
11676
11677 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11678 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11679 wxUSE_LIBPNG=builtin
11680 fi
11681
11682 if test "$wxUSE_MGL" != 1 ; then
11683 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11684 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11685 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11686 echo "configure:11687: checking for png.h" >&5
11687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11689 else
11690 cat > conftest.$ac_ext <<EOF
11691 #line 11692 "configure"
11692 #include "confdefs.h"
11693 #include <png.h>
11694 EOF
11695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11696 { (eval echo configure:11697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11698 if test -z "$ac_err"; then
11699 rm -rf conftest*
11700 eval "ac_cv_header_$ac_safe=yes"
11701 else
11702 echo "$ac_err" >&5
11703 echo "configure: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11705 rm -rf conftest*
11706 eval "ac_cv_header_$ac_safe=no"
11707 fi
11708 rm -f conftest*
11709 fi
11710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11711 echo "$ac_t""yes" 1>&6
11712 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11713 echo "configure:11714: checking for png_check_sig in -lpng" >&5
11714 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11716 echo $ac_n "(cached) $ac_c" 1>&6
11717 else
11718 ac_save_LIBS="$LIBS"
11719 LIBS="-lpng -lz -lm $LIBS"
11720 cat > conftest.$ac_ext <<EOF
11721 #line 11722 "configure"
11722 #include "confdefs.h"
11723 /* Override any gcc2 internal prototype to avoid an error. */
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11726 char png_check_sig();
11727
11728 int main() {
11729 png_check_sig()
11730 ; return 0; }
11731 EOF
11732 if { (eval echo configure:11733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11733 rm -rf conftest*
11734 eval "ac_cv_lib_$ac_lib_var=yes"
11735 else
11736 echo "configure: failed program was:" >&5
11737 cat conftest.$ac_ext >&5
11738 rm -rf conftest*
11739 eval "ac_cv_lib_$ac_lib_var=no"
11740 fi
11741 rm -f conftest*
11742 LIBS="$ac_save_LIBS"
11743
11744 fi
11745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11746 echo "$ac_t""yes" 1>&6
11747 PNG_LINK=" -lpng"
11748 else
11749 echo "$ac_t""no" 1>&6
11750 fi
11751
11752
11753 else
11754 echo "$ac_t""no" 1>&6
11755 fi
11756
11757
11758 if test "x$PNG_LINK" = "x" ; then
11759 if test "$wxUSE_LIBPNG" = "sys" ; then
11760 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11761 else
11762 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11763 wxUSE_LIBPNG=builtin
11764 fi
11765 else
11766 wxUSE_LIBPNG=sys
11767 fi
11768 fi
11769 fi
11770
11771 if test "$wxUSE_LIBPNG" = "builtin" ; then
11772 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11773 fi
11774
11775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11776 fi
11777
11778
11779 JPEG_INCLUDE=
11780 JPEG_LINK=
11781 if test "$wxUSE_LIBJPEG" != "no" ; then
11782 cat >> confdefs.h <<\EOF
11783 #define wxUSE_LIBJPEG 1
11784 EOF
11785
11786
11787 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11788 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11789 wxUSE_LIBJPEG=sys
11790 fi
11791
11792 if test "$wxUSE_MGL" != 1 ; then
11793 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11794 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11795 echo "configure:11796: checking for jpeglib.h" >&5
11796 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11797 echo $ac_n "(cached) $ac_c" 1>&6
11798 else
11799 cat > conftest.$ac_ext <<EOF
11800 #line 11801 "configure"
11801 #include "confdefs.h"
11802
11803 #undef HAVE_STDLIB_H
11804 #include <stdio.h>
11805 #include <jpeglib.h>
11806
11807 int main() {
11808
11809
11810 ; return 0; }
11811 EOF
11812 if { (eval echo configure:11813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11813 rm -rf conftest*
11814 ac_cv_header_jpeglib_h=yes
11815 else
11816 echo "configure: failed program was:" >&5
11817 cat conftest.$ac_ext >&5
11818 rm -rf conftest*
11819 ac_cv_header_jpeglib_h=no
11820
11821 fi
11822 rm -f conftest*
11823
11824 fi
11825
11826 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11827
11828 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11829 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11830 echo "configure:11831: checking for jpeg_read_header in -ljpeg" >&5
11831 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11833 echo $ac_n "(cached) $ac_c" 1>&6
11834 else
11835 ac_save_LIBS="$LIBS"
11836 LIBS="-ljpeg $LIBS"
11837 cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840 /* Override any gcc2 internal prototype to avoid an error. */
11841 /* We use char because int might match the return type of a gcc2
11842 builtin and then its argument prototype would still apply. */
11843 char jpeg_read_header();
11844
11845 int main() {
11846 jpeg_read_header()
11847 ; return 0; }
11848 EOF
11849 if { (eval echo configure:11850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11850 rm -rf conftest*
11851 eval "ac_cv_lib_$ac_lib_var=yes"
11852 else
11853 echo "configure: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11855 rm -rf conftest*
11856 eval "ac_cv_lib_$ac_lib_var=no"
11857 fi
11858 rm -f conftest*
11859 LIBS="$ac_save_LIBS"
11860
11861 fi
11862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11863 echo "$ac_t""yes" 1>&6
11864 JPEG_LINK=" -ljpeg"
11865 else
11866 echo "$ac_t""no" 1>&6
11867 fi
11868
11869 fi
11870
11871 if test "x$JPEG_LINK" = "x" ; then
11872 if test "$wxUSE_LIBJPEG" = "sys" ; then
11873 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11874 else
11875 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11876 wxUSE_LIBJPEG=builtin
11877 fi
11878 else
11879 wxUSE_LIBJPEG=sys
11880 fi
11881 fi
11882 fi
11883
11884 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11885 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11886 fi
11887 fi
11888
11889
11890 TIFF_INCLUDE=
11891 TIFF_LINK=
11892 TIFF_PREREQ_LINKS=-lm
11893 if test "$wxUSE_LIBTIFF" != "no" ; then
11894 cat >> confdefs.h <<\EOF
11895 #define wxUSE_LIBTIFF 1
11896 EOF
11897
11898
11899 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11900 if test "$wxUSE_LIBJPEG" = "sys"; then
11901 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
11902 fi
11903 if test "$wxUSE_ZLIB" = "sys"; then
11904 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
11905 fi
11906 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11907 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11908 echo "configure:11909: checking for tiffio.h" >&5
11909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11910 echo $ac_n "(cached) $ac_c" 1>&6
11911 else
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 #include <tiffio.h>
11916 EOF
11917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11918 { (eval echo configure:11919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11920 if test -z "$ac_err"; then
11921 rm -rf conftest*
11922 eval "ac_cv_header_$ac_safe=yes"
11923 else
11924 echo "$ac_err" >&5
11925 echo "configure: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11927 rm -rf conftest*
11928 eval "ac_cv_header_$ac_safe=no"
11929 fi
11930 rm -f conftest*
11931 fi
11932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11933 echo "$ac_t""yes" 1>&6
11934 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11935 echo "configure:11936: checking for TIFFError in -ltiff" >&5
11936 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939 else
11940 ac_save_LIBS="$LIBS"
11941 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
11942 cat > conftest.$ac_ext <<EOF
11943 #line 11944 "configure"
11944 #include "confdefs.h"
11945 /* Override any gcc2 internal prototype to avoid an error. */
11946 /* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948 char TIFFError();
11949
11950 int main() {
11951 TIFFError()
11952 ; return 0; }
11953 EOF
11954 if { (eval echo configure:11955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11955 rm -rf conftest*
11956 eval "ac_cv_lib_$ac_lib_var=yes"
11957 else
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=no"
11962 fi
11963 rm -f conftest*
11964 LIBS="$ac_save_LIBS"
11965
11966 fi
11967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11968 echo "$ac_t""yes" 1>&6
11969 TIFF_LINK=" -ltiff"
11970 else
11971 echo "$ac_t""no" 1>&6
11972 fi
11973
11974
11975 else
11976 echo "$ac_t""no" 1>&6
11977 fi
11978
11979
11980 if test "x$TIFF_LINK" = "x" ; then
11981 if test "$wxUSE_LIBTIFF" = "sys" ; then
11982 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11983 else
11984 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11985 wxUSE_LIBTIFF=builtin
11986 fi
11987 else
11988 wxUSE_LIBTIFF=sys
11989 fi
11990 fi
11991
11992 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11993 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11994 fi
11995 fi
11996
11997
11998 AFMINSTALL=
11999 WIN32INSTALL=
12000
12001 TOOLKIT=
12002 TOOLKIT_INCLUDE=
12003 WIDGET_SET=
12004
12005 if test "$USE_WIN32" = 1 ; then
12006 for ac_hdr in w32api.h
12007 do
12008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12010 echo "configure:12011: checking for $ac_hdr" >&5
12011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12012 echo $ac_n "(cached) $ac_c" 1>&6
12013 else
12014 cat > conftest.$ac_ext <<EOF
12015 #line 12016 "configure"
12016 #include "confdefs.h"
12017 #include <$ac_hdr>
12018 EOF
12019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12020 { (eval echo configure:12021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12022 if test -z "$ac_err"; then
12023 rm -rf conftest*
12024 eval "ac_cv_header_$ac_safe=yes"
12025 else
12026 echo "$ac_err" >&5
12027 echo "configure: failed program was:" >&5
12028 cat conftest.$ac_ext >&5
12029 rm -rf conftest*
12030 eval "ac_cv_header_$ac_safe=no"
12031 fi
12032 rm -f conftest*
12033 fi
12034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12035 echo "$ac_t""yes" 1>&6
12036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12037 cat >> confdefs.h <<EOF
12038 #define $ac_tr_hdr 1
12039 EOF
12040
12041 else
12042 echo "$ac_t""no" 1>&6
12043 fi
12044 done
12045
12046 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12047 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12048 echo "configure:12049: checking for windows.h" >&5
12049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12050 echo $ac_n "(cached) $ac_c" 1>&6
12051 else
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12055 #include <windows.h>
12056 EOF
12057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12058 { (eval echo configure:12059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12060 if test -z "$ac_err"; then
12061 rm -rf conftest*
12062 eval "ac_cv_header_$ac_safe=yes"
12063 else
12064 echo "$ac_err" >&5
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12067 rm -rf conftest*
12068 eval "ac_cv_header_$ac_safe=no"
12069 fi
12070 rm -f conftest*
12071 fi
12072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12073 echo "$ac_t""yes" 1>&6
12074 :
12075 else
12076 echo "$ac_t""no" 1>&6
12077
12078 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12079
12080 fi
12081
12082
12083 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12084 echo "configure:12085: checking if w32api has good enough MSIE support" >&5
12085 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12086 echo $ac_n "(cached) $ac_c" 1>&6
12087 else
12088
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12092 #include <w32api.h>
12093 int main() {
12094
12095 #define wxCHECK_W32API_VERSION( major, minor ) \
12096 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12097 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12098 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12099
12100 #if !wxCHECK_W32API_VERSION(1,1)
12101 #error You need w32api 1.1 or newer
12102 #endif
12103
12104 ; return 0; }
12105 EOF
12106 if { (eval echo configure:12107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12107 rm -rf conftest*
12108
12109 wx_cv_w32api_win32_ie=yes
12110
12111 else
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 rm -rf conftest*
12115
12116 wx_cv_w32api_win32_ie=no
12117
12118 fi
12119 rm -f conftest*
12120
12121 fi
12122
12123 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12124 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12125 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12126 fi
12127
12128 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12129
12130 case "${host}" in
12131 *-*-cygwin* )
12132 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12133 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12134 esac
12135
12136 if test "$wxUSE_ODBC" = "yes" ; then
12137 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12138 fi
12139
12140 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12141 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12142
12143 WIN32INSTALL=win32install
12144 fi
12145
12146 if test "$USE_DARWIN" = 1; then
12147 if test "$wxUSE_PRECOMP" = "yes"; then
12148 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12149 else
12150 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12151 fi
12152 fi
12153
12154 if test "$wxUSE_GUI" = "yes"; then
12155 USE_GUI=1
12156
12157 GUI_TK_LIBRARY=
12158
12159 WXGTK12=
12160 WXGTK127=
12161 WXGTK20=
12162
12163 if test "$wxUSE_MSW" = 1 ; then
12164 TOOLKIT=MSW
12165 GUIDIST=MSW_DIST
12166
12167 case "${host}" in
12168 *-*-mingw32* )
12169 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12170 esac
12171 fi
12172
12173 if test "$wxUSE_GTK" = 1; then
12174 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12175 echo "configure:12176: checking for GTK+ version" >&5
12176
12177 gtk_version_cached=1
12178 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12180 else
12181
12182 gtk_version_cached=0
12183 echo "$ac_t""" 1>&6
12184
12185 GTK_MODULES=
12186 if test "$wxUSE_THREADS" = "yes"; then
12187 GTK_MODULES=gthread
12188 fi
12189
12190 wx_cv_lib_gtk=
12191 if test "x$wxUSE_GTK2" = "xyes"; then
12192 # Check whether --enable-gtktest or --disable-gtktest was given.
12193 if test "${enable_gtktest+set}" = set; then
12194 enableval="$enable_gtktest"
12195 :
12196 else
12197 enable_gtktest=yes
12198 fi
12199
12200
12201 pkg_config_args=gtk+-2.0
12202 for module in . $GTK_MODULES
12203 do
12204 case "$module" in
12205 gthread)
12206 pkg_config_args="$pkg_config_args gthread-2.0"
12207 ;;
12208 esac
12209 done
12210
12211 no_gtk=""
12212
12213 # Extract the first word of "pkg-config", so it can be a program name with args.
12214 set dummy pkg-config; ac_word=$2
12215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12216 echo "configure:12217: checking for $ac_word" >&5
12217 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12218 echo $ac_n "(cached) $ac_c" 1>&6
12219 else
12220 case "$PKG_CONFIG" in
12221 /*)
12222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12223 ;;
12224 ?:/*)
12225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12226 ;;
12227 *)
12228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12229 ac_dummy="$PATH"
12230 for ac_dir in $ac_dummy; do
12231 test -z "$ac_dir" && ac_dir=.
12232 if test -f $ac_dir/$ac_word; then
12233 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12234 break
12235 fi
12236 done
12237 IFS="$ac_save_ifs"
12238 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12239 ;;
12240 esac
12241 fi
12242 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12243 if test -n "$PKG_CONFIG"; then
12244 echo "$ac_t""$PKG_CONFIG" 1>&6
12245 else
12246 echo "$ac_t""no" 1>&6
12247 fi
12248
12249
12250 if test x$PKG_CONFIG != xno ; then
12251 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12252 :
12253 else
12254 echo *** pkg-config too old; version 0.7 or better required.
12255 no_gtk=yes
12256 PKG_CONFIG=no
12257 fi
12258 else
12259 no_gtk=yes
12260 fi
12261
12262 min_gtk_version=2.0.0
12263 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12264 echo "configure:12265: checking for GTK+ - version >= $min_gtk_version" >&5
12265
12266 if test x$PKG_CONFIG != xno ; then
12267 ## don't try to run the test against uninstalled libtool libs
12268 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12269 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12270 enable_gtktest=no
12271 fi
12272
12273 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12274 :
12275 else
12276 no_gtk=yes
12277 fi
12278 fi
12279
12280 if test x"$no_gtk" = x ; then
12281 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12282 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12283 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12284 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12285 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12286 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12287 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12288 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12289 if test "x$enable_gtktest" = "xyes" ; then
12290 ac_save_CFLAGS="$CFLAGS"
12291 ac_save_LIBS="$LIBS"
12292 CFLAGS="$CFLAGS $GTK_CFLAGS"
12293 LIBS="$GTK_LIBS $LIBS"
12294 rm -f conf.gtktest
12295 if test "$cross_compiling" = yes; then
12296 echo $ac_n "cross compiling; assumed OK... $ac_c"
12297 else
12298 cat > conftest.$ac_ext <<EOF
12299 #line 12300 "configure"
12300 #include "confdefs.h"
12301
12302 #include <gtk/gtk.h>
12303 #include <stdio.h>
12304 #include <stdlib.h>
12305
12306 int
12307 main ()
12308 {
12309 int major, minor, micro;
12310 char *tmp_version;
12311
12312 system ("touch conf.gtktest");
12313
12314 /* HP/UX 9 (%@#!) writes to sscanf strings */
12315 tmp_version = g_strdup("$min_gtk_version");
12316 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12317 printf("%s, bad version string\n", "$min_gtk_version");
12318 exit(1);
12319 }
12320
12321 if ((gtk_major_version != $gtk_config_major_version) ||
12322 (gtk_minor_version != $gtk_config_minor_version) ||
12323 (gtk_micro_version != $gtk_config_micro_version))
12324 {
12325 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12326 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12327 gtk_major_version, gtk_minor_version, gtk_micro_version);
12328 printf ("*** was found! If pkg-config was correct, then it is best\n");
12329 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12330 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12331 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12332 printf("*** required on your system.\n");
12333 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12334 printf("*** to point to the correct configuration files\n");
12335 }
12336 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12337 (gtk_minor_version != GTK_MINOR_VERSION) ||
12338 (gtk_micro_version != GTK_MICRO_VERSION))
12339 {
12340 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12341 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12342 printf("*** library (version %d.%d.%d)\n",
12343 gtk_major_version, gtk_minor_version, gtk_micro_version);
12344 }
12345 else
12346 {
12347 if ((gtk_major_version > major) ||
12348 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12349 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12350 {
12351 return 0;
12352 }
12353 else
12354 {
12355 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12356 gtk_major_version, gtk_minor_version, gtk_micro_version);
12357 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12358 major, minor, micro);
12359 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12360 printf("***\n");
12361 printf("*** If you have already installed a sufficiently new version, this error\n");
12362 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12363 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12364 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12365 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12366 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12367 printf("*** so that the correct libraries are found at run-time))\n");
12368 }
12369 }
12370 return 1;
12371 }
12372
12373 EOF
12374 if { (eval echo configure:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12375 then
12376 :
12377 else
12378 echo "configure: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12380 rm -fr conftest*
12381 no_gtk=yes
12382 fi
12383 rm -fr conftest*
12384 fi
12385
12386 CFLAGS="$ac_save_CFLAGS"
12387 LIBS="$ac_save_LIBS"
12388 fi
12389 fi
12390 if test "x$no_gtk" = x ; then
12391 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12392 wx_cv_lib_gtk=2.0
12393 else
12394 echo "$ac_t""no" 1>&6
12395 if test "$PKG_CONFIG" = "no" ; then
12396 echo "*** A new enough version of pkg-config was not found."
12397 echo "*** See http://pkgconfig.sourceforge.net"
12398 else
12399 if test -f conf.gtktest ; then
12400 :
12401 else
12402 echo "*** Could not run GTK+ test program, checking why..."
12403 ac_save_CFLAGS="$CFLAGS"
12404 ac_save_LIBS="$LIBS"
12405 CFLAGS="$CFLAGS $GTK_CFLAGS"
12406 LIBS="$LIBS $GTK_LIBS"
12407 cat > conftest.$ac_ext <<EOF
12408 #line 12409 "configure"
12409 #include "confdefs.h"
12410
12411 #include <gtk/gtk.h>
12412 #include <stdio.h>
12413
12414 int main() {
12415 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12416 ; return 0; }
12417 EOF
12418 if { (eval echo configure:12419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12419 rm -rf conftest*
12420 echo "*** The test program compiled, but did not run. This usually means"
12421 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12422 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12423 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12424 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12425 echo "*** is required on your system"
12426 echo "***"
12427 echo "*** If you have an old version installed, it is best to remove it, although"
12428 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12429 else
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 rm -rf conftest*
12433 echo "*** The test program failed to compile or link. See the file config.log for the"
12434 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12435 fi
12436 rm -f conftest*
12437 CFLAGS="$ac_save_CFLAGS"
12438 LIBS="$ac_save_LIBS"
12439 fi
12440 fi
12441 GTK_CFLAGS=""
12442 GTK_LIBS=""
12443 :
12444 fi
12445
12446
12447 rm -f conf.gtktest
12448
12449 else
12450 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12451 if test "${with_gtk_prefix+set}" = set; then
12452 withval="$with_gtk_prefix"
12453 gtk_config_prefix="$withval"
12454 else
12455 gtk_config_prefix=""
12456 fi
12457
12458 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12459 if test "${with_gtk_exec_prefix+set}" = set; then
12460 withval="$with_gtk_exec_prefix"
12461 gtk_config_exec_prefix="$withval"
12462 else
12463 gtk_config_exec_prefix=""
12464 fi
12465
12466 # Check whether --enable-gtktest or --disable-gtktest was given.
12467 if test "${enable_gtktest+set}" = set; then
12468 enableval="$enable_gtktest"
12469 :
12470 else
12471 enable_gtktest=yes
12472 fi
12473
12474
12475 for module in . $GTK_MODULES
12476 do
12477 case "$module" in
12478 gthread)
12479 gtk_config_args="$gtk_config_args gthread"
12480 ;;
12481 esac
12482 done
12483
12484 if test x$gtk_config_exec_prefix != x ; then
12485 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12486 if test x${GTK_CONFIG+set} != xset ; then
12487 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12488 fi
12489 fi
12490 if test x$gtk_config_prefix != x ; then
12491 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12492 if test x${GTK_CONFIG+set} != xset ; then
12493 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12494 fi
12495 fi
12496
12497 # Extract the first word of "gtk-config", so it can be a program name with args.
12498 set dummy gtk-config; ac_word=$2
12499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12500 echo "configure:12501: checking for $ac_word" >&5
12501 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12502 echo $ac_n "(cached) $ac_c" 1>&6
12503 else
12504 case "$GTK_CONFIG" in
12505 /*)
12506 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12507 ;;
12508 ?:/*)
12509 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12510 ;;
12511 *)
12512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12513 ac_dummy="$PATH"
12514 for ac_dir in $ac_dummy; do
12515 test -z "$ac_dir" && ac_dir=.
12516 if test -f $ac_dir/$ac_word; then
12517 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12518 break
12519 fi
12520 done
12521 IFS="$ac_save_ifs"
12522 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12523 ;;
12524 esac
12525 fi
12526 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12527 if test -n "$GTK_CONFIG"; then
12528 echo "$ac_t""$GTK_CONFIG" 1>&6
12529 else
12530 echo "$ac_t""no" 1>&6
12531 fi
12532
12533 min_gtk_version=1.2.7
12534 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12535 echo "configure:12536: checking for GTK - version >= $min_gtk_version" >&5
12536 no_gtk=""
12537 if test "$GTK_CONFIG" = "no" ; then
12538 no_gtk=yes
12539 else
12540 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12541 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12542 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12543 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12544 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12545 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12546 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12547 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12548 if test "x$enable_gtktest" = "xyes" ; then
12549 ac_save_CFLAGS="$CFLAGS"
12550 ac_save_LIBS="$LIBS"
12551 CFLAGS="$CFLAGS $GTK_CFLAGS"
12552 LIBS="$GTK_LIBS $LIBS"
12553 rm -f conf.gtktest
12554 if test "$cross_compiling" = yes; then
12555 echo $ac_n "cross compiling; assumed OK... $ac_c"
12556 else
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560
12561 #include <gtk/gtk.h>
12562 #include <stdio.h>
12563 #include <stdlib.h>
12564
12565 int
12566 main ()
12567 {
12568 int major, minor, micro;
12569 char *tmp_version;
12570
12571 system ("touch conf.gtktest");
12572
12573 /* HP/UX 9 (%@#!) writes to sscanf strings */
12574 tmp_version = g_strdup("$min_gtk_version");
12575 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12576 printf("%s, bad version string\n", "$min_gtk_version");
12577 exit(1);
12578 }
12579
12580 if ((gtk_major_version != $gtk_config_major_version) ||
12581 (gtk_minor_version != $gtk_config_minor_version) ||
12582 (gtk_micro_version != $gtk_config_micro_version))
12583 {
12584 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12585 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12586 gtk_major_version, gtk_minor_version, gtk_micro_version);
12587 printf ("*** was found! If gtk-config was correct, then it is best\n");
12588 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12589 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12590 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12591 printf("*** required on your system.\n");
12592 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12593 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12594 printf("*** before re-running configure\n");
12595 }
12596 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12597 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12598 (gtk_minor_version != GTK_MINOR_VERSION) ||
12599 (gtk_micro_version != GTK_MICRO_VERSION))
12600 {
12601 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12602 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12603 printf("*** library (version %d.%d.%d)\n",
12604 gtk_major_version, gtk_minor_version, gtk_micro_version);
12605 }
12606 #endif /* defined (GTK_MAJOR_VERSION) ... */
12607 else
12608 {
12609 if ((gtk_major_version > major) ||
12610 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12611 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12612 {
12613 return 0;
12614 }
12615 else
12616 {
12617 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12618 gtk_major_version, gtk_minor_version, gtk_micro_version);
12619 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12620 major, minor, micro);
12621 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12622 printf("***\n");
12623 printf("*** If you have already installed a sufficiently new version, this error\n");
12624 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12625 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12626 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12627 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12628 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12629 printf("*** so that the correct libraries are found at run-time))\n");
12630 }
12631 }
12632 return 1;
12633 }
12634
12635 EOF
12636 if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12637 then
12638 :
12639 else
12640 echo "configure: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12642 rm -fr conftest*
12643 no_gtk=yes
12644 fi
12645 rm -fr conftest*
12646 fi
12647
12648 CFLAGS="$ac_save_CFLAGS"
12649 LIBS="$ac_save_LIBS"
12650 fi
12651 fi
12652 if test "x$no_gtk" = x ; then
12653 echo "$ac_t""yes" 1>&6
12654 wx_cv_lib_gtk=1.2.7
12655 else
12656 echo "$ac_t""no" 1>&6
12657 if test "$GTK_CONFIG" = "no" ; then
12658 echo "*** The gtk-config script installed by GTK could not be found"
12659 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12660 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12661 echo "*** full path to gtk-config."
12662 else
12663 if test -f conf.gtktest ; then
12664 :
12665 else
12666 echo "*** Could not run GTK test program, checking why..."
12667 CFLAGS="$CFLAGS $GTK_CFLAGS"
12668 LIBS="$LIBS $GTK_LIBS"
12669 cat > conftest.$ac_ext <<EOF
12670 #line 12671 "configure"
12671 #include "confdefs.h"
12672
12673 #include <gtk/gtk.h>
12674 #include <stdio.h>
12675
12676 int main() {
12677 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12678 ; return 0; }
12679 EOF
12680 if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 rm -rf conftest*
12682 echo "*** The test program compiled, but did not run. This usually means"
12683 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12684 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12685 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12686 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12687 echo "*** is required on your system"
12688 echo "***"
12689 echo "*** If you have an old version installed, it is best to remove it, although"
12690 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12691 echo "***"
12692 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12693 echo "*** came with the system with the command"
12694 echo "***"
12695 echo "*** rpm --erase --nodeps gtk gtk-devel"
12696 else
12697 echo "configure: failed program was:" >&5
12698 cat conftest.$ac_ext >&5
12699 rm -rf conftest*
12700 echo "*** The test program failed to compile or link. See the file config.log for the"
12701 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12702 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12703 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12704 fi
12705 rm -f conftest*
12706 CFLAGS="$ac_save_CFLAGS"
12707 LIBS="$ac_save_LIBS"
12708 fi
12709 fi
12710 GTK_CFLAGS=""
12711 GTK_LIBS=""
12712 :
12713 fi
12714
12715
12716 rm -f conf.gtktest
12717
12718
12719 if test -z "$wx_cv_lib_gtk"; then
12720 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12721 if test "${with_gtk_prefix+set}" = set; then
12722 withval="$with_gtk_prefix"
12723 gtk_config_prefix="$withval"
12724 else
12725 gtk_config_prefix=""
12726 fi
12727
12728 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12729 if test "${with_gtk_exec_prefix+set}" = set; then
12730 withval="$with_gtk_exec_prefix"
12731 gtk_config_exec_prefix="$withval"
12732 else
12733 gtk_config_exec_prefix=""
12734 fi
12735
12736 # Check whether --enable-gtktest or --disable-gtktest was given.
12737 if test "${enable_gtktest+set}" = set; then
12738 enableval="$enable_gtktest"
12739 :
12740 else
12741 enable_gtktest=yes
12742 fi
12743
12744
12745 for module in . $GTK_MODULES
12746 do
12747 case "$module" in
12748 gthread)
12749 gtk_config_args="$gtk_config_args gthread"
12750 ;;
12751 esac
12752 done
12753
12754 if test x$gtk_config_exec_prefix != x ; then
12755 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12756 if test x${GTK_CONFIG+set} != xset ; then
12757 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12758 fi
12759 fi
12760 if test x$gtk_config_prefix != x ; then
12761 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12762 if test x${GTK_CONFIG+set} != xset ; then
12763 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12764 fi
12765 fi
12766
12767 # Extract the first word of "gtk-config", so it can be a program name with args.
12768 set dummy gtk-config; ac_word=$2
12769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12770 echo "configure:12771: checking for $ac_word" >&5
12771 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12772 echo $ac_n "(cached) $ac_c" 1>&6
12773 else
12774 case "$GTK_CONFIG" in
12775 /*)
12776 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12777 ;;
12778 ?:/*)
12779 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12780 ;;
12781 *)
12782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12783 ac_dummy="$PATH"
12784 for ac_dir in $ac_dummy; do
12785 test -z "$ac_dir" && ac_dir=.
12786 if test -f $ac_dir/$ac_word; then
12787 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12788 break
12789 fi
12790 done
12791 IFS="$ac_save_ifs"
12792 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12793 ;;
12794 esac
12795 fi
12796 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12797 if test -n "$GTK_CONFIG"; then
12798 echo "$ac_t""$GTK_CONFIG" 1>&6
12799 else
12800 echo "$ac_t""no" 1>&6
12801 fi
12802
12803 min_gtk_version=1.2.3
12804 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12805 echo "configure:12806: checking for GTK - version >= $min_gtk_version" >&5
12806 no_gtk=""
12807 if test "$GTK_CONFIG" = "no" ; then
12808 no_gtk=yes
12809 else
12810 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12811 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12812 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12813 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12814 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12816 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12818 if test "x$enable_gtktest" = "xyes" ; then
12819 ac_save_CFLAGS="$CFLAGS"
12820 ac_save_LIBS="$LIBS"
12821 CFLAGS="$CFLAGS $GTK_CFLAGS"
12822 LIBS="$GTK_LIBS $LIBS"
12823 rm -f conf.gtktest
12824 if test "$cross_compiling" = yes; then
12825 echo $ac_n "cross compiling; assumed OK... $ac_c"
12826 else
12827 cat > conftest.$ac_ext <<EOF
12828 #line 12829 "configure"
12829 #include "confdefs.h"
12830
12831 #include <gtk/gtk.h>
12832 #include <stdio.h>
12833 #include <stdlib.h>
12834
12835 int
12836 main ()
12837 {
12838 int major, minor, micro;
12839 char *tmp_version;
12840
12841 system ("touch conf.gtktest");
12842
12843 /* HP/UX 9 (%@#!) writes to sscanf strings */
12844 tmp_version = g_strdup("$min_gtk_version");
12845 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12846 printf("%s, bad version string\n", "$min_gtk_version");
12847 exit(1);
12848 }
12849
12850 if ((gtk_major_version != $gtk_config_major_version) ||
12851 (gtk_minor_version != $gtk_config_minor_version) ||
12852 (gtk_micro_version != $gtk_config_micro_version))
12853 {
12854 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12855 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12856 gtk_major_version, gtk_minor_version, gtk_micro_version);
12857 printf ("*** was found! If gtk-config was correct, then it is best\n");
12858 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12859 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12860 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12861 printf("*** required on your system.\n");
12862 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12863 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12864 printf("*** before re-running configure\n");
12865 }
12866 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12867 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12868 (gtk_minor_version != GTK_MINOR_VERSION) ||
12869 (gtk_micro_version != GTK_MICRO_VERSION))
12870 {
12871 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12872 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12873 printf("*** library (version %d.%d.%d)\n",
12874 gtk_major_version, gtk_minor_version, gtk_micro_version);
12875 }
12876 #endif /* defined (GTK_MAJOR_VERSION) ... */
12877 else
12878 {
12879 if ((gtk_major_version > major) ||
12880 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12881 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12882 {
12883 return 0;
12884 }
12885 else
12886 {
12887 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12888 gtk_major_version, gtk_minor_version, gtk_micro_version);
12889 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12890 major, minor, micro);
12891 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12892 printf("***\n");
12893 printf("*** If you have already installed a sufficiently new version, this error\n");
12894 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12895 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12896 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12897 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12898 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12899 printf("*** so that the correct libraries are found at run-time))\n");
12900 }
12901 }
12902 return 1;
12903 }
12904
12905 EOF
12906 if { (eval echo configure:12907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12907 then
12908 :
12909 else
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12912 rm -fr conftest*
12913 no_gtk=yes
12914 fi
12915 rm -fr conftest*
12916 fi
12917
12918 CFLAGS="$ac_save_CFLAGS"
12919 LIBS="$ac_save_LIBS"
12920 fi
12921 fi
12922 if test "x$no_gtk" = x ; then
12923 echo "$ac_t""yes" 1>&6
12924 wx_cv_lib_gtk=1.2.3
12925 else
12926 echo "$ac_t""no" 1>&6
12927 if test "$GTK_CONFIG" = "no" ; then
12928 echo "*** The gtk-config script installed by GTK could not be found"
12929 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12930 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12931 echo "*** full path to gtk-config."
12932 else
12933 if test -f conf.gtktest ; then
12934 :
12935 else
12936 echo "*** Could not run GTK test program, checking why..."
12937 CFLAGS="$CFLAGS $GTK_CFLAGS"
12938 LIBS="$LIBS $GTK_LIBS"
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12942
12943 #include <gtk/gtk.h>
12944 #include <stdio.h>
12945
12946 int main() {
12947 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12948 ; return 0; }
12949 EOF
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12951 rm -rf conftest*
12952 echo "*** The test program compiled, but did not run. This usually means"
12953 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12954 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12955 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12956 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12957 echo "*** is required on your system"
12958 echo "***"
12959 echo "*** If you have an old version installed, it is best to remove it, although"
12960 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12961 echo "***"
12962 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12963 echo "*** came with the system with the command"
12964 echo "***"
12965 echo "*** rpm --erase --nodeps gtk gtk-devel"
12966 else
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 rm -rf conftest*
12970 echo "*** The test program failed to compile or link. See the file config.log for the"
12971 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12972 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12973 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12974 fi
12975 rm -f conftest*
12976 CFLAGS="$ac_save_CFLAGS"
12977 LIBS="$ac_save_LIBS"
12978 fi
12979 fi
12980 GTK_CFLAGS=""
12981 GTK_LIBS=""
12982 :
12983 fi
12984
12985
12986 rm -f conf.gtktest
12987
12988 fi
12989 fi
12990
12991 if test -z "$wx_cv_lib_gtk"; then
12992 wx_cv_lib_gtk=none
12993 else
12994 wx_cv_cflags_gtk=$GTK_CFLAGS
12995 wx_cv_libs_gtk=$GTK_LIBS
12996 fi
12997
12998
12999 fi
13000
13001
13002 if test "$gtk_version_cached" = 1; then
13003 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13004 fi
13005
13006 case "$wx_cv_lib_gtk" in
13007 2.0) WXGTK20=1
13008 TOOLKIT_VERSION=2
13009 ;;
13010 1.2.7) WXGTK127=1
13011 WXGTK12=1
13012 ;;
13013 1.2.3) WXGTK12=1
13014 ;;
13015 *) { echo "configure: error:
13016 Please check that gtk-config is in path, the directory
13017 where GTK+ libraries are installed (returned by
13018 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13019 equivalent variable and GTK+ is version 1.2.3 or above.
13020 " 1>&2; exit 1; }
13021 ;;
13022 esac
13023
13024 if test "$WXGTK20" = 1; then
13025 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13026
13027 succeeded=no
13028
13029 if test -z "$PKG_CONFIG"; then
13030 # Extract the first word of "pkg-config", so it can be a program name with args.
13031 set dummy pkg-config; ac_word=$2
13032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13033 echo "configure:13034: checking for $ac_word" >&5
13034 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13035 echo $ac_n "(cached) $ac_c" 1>&6
13036 else
13037 case "$PKG_CONFIG" in
13038 /*)
13039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13040 ;;
13041 ?:/*)
13042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13043 ;;
13044 *)
13045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13046 ac_dummy="$PATH"
13047 for ac_dir in $ac_dummy; do
13048 test -z "$ac_dir" && ac_dir=.
13049 if test -f $ac_dir/$ac_word; then
13050 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13051 break
13052 fi
13053 done
13054 IFS="$ac_save_ifs"
13055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13056 ;;
13057 esac
13058 fi
13059 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13060 if test -n "$PKG_CONFIG"; then
13061 echo "$ac_t""$PKG_CONFIG" 1>&6
13062 else
13063 echo "$ac_t""no" 1>&6
13064 fi
13065
13066 fi
13067
13068 if test "$PKG_CONFIG" = "no" ; then
13069 echo "*** The pkg-config script could not be found. Make sure it is"
13070 echo "*** in your path, or set the PKG_CONFIG environment variable"
13071 echo "*** to the full path to pkg-config."
13072 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13073 else
13074 PKG_CONFIG_MIN_VERSION=0.9.0
13075 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13076 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13077 echo "configure:13078: checking for pangoft2" >&5
13078
13079 if $PKG_CONFIG --exists "pangoft2" ; then
13080 echo "$ac_t""yes" 1>&6
13081 succeeded=yes
13082
13083 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13084 echo "configure:13085: checking PANGOFT2_CFLAGS" >&5
13085 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13086 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13087
13088 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13089 echo "configure:13090: checking PANGOFT2_LIBS" >&5
13090 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13091 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13092 else
13093 PANGOFT2_CFLAGS=""
13094 PANGOFT2_LIBS=""
13095 ## If we have a custom action on failure, don't print errors, but
13096 ## do set a variable so people can do so.
13097 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13098
13099 fi
13100
13101
13102
13103 else
13104 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13105 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13106 fi
13107 fi
13108
13109 if test $succeeded = yes; then
13110
13111 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13112 LIBS="$LIBS $PANGOFT2_LIBS"
13113
13114 else
13115
13116 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13117 wxUSE_PRINTING_ARCHITECTURE="no"
13118
13119
13120 fi
13121
13122 fi
13123 else
13124 if test "$wxUSE_UNICODE" = "yes"; then
13125 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13126 wxUSE_UNICODE=no
13127 fi
13128 fi
13129
13130 if test "$USE_DARWIN" != 1; then
13131 for ac_func in poll
13132 do
13133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13134 echo "configure:13135: checking for $ac_func" >&5
13135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137 else
13138 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13141 /* System header to define __stub macros and hopefully few prototypes,
13142 which can conflict with char $ac_func(); below. */
13143 #include <assert.h>
13144 /* Override any gcc2 internal prototype to avoid an error. */
13145 /* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147 char $ac_func();
13148
13149 int main() {
13150
13151 /* The GNU C library defines this for functions which it implements
13152 to always fail with ENOSYS. Some functions are actually named
13153 something starting with __ and the normal name is an alias. */
13154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13155 choke me
13156 #else
13157 $ac_func();
13158 #endif
13159
13160 ; return 0; }
13161 EOF
13162 if { (eval echo configure:13163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13163 rm -rf conftest*
13164 eval "ac_cv_func_$ac_func=yes"
13165 else
13166 echo "configure: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13168 rm -rf conftest*
13169 eval "ac_cv_func_$ac_func=no"
13170 fi
13171 rm -f conftest*
13172 fi
13173
13174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13177 cat >> confdefs.h <<EOF
13178 #define $ac_tr_func 1
13179 EOF
13180
13181 else
13182 echo "$ac_t""no" 1>&6
13183 fi
13184 done
13185
13186 fi
13187
13188 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13189 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13190
13191 AFMINSTALL=afminstall
13192 TOOLKIT=GTK
13193 GUIDIST=GTK_DIST
13194
13195 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13196 echo "configure:13197: checking for gdk_im_open in -lgdk" >&5
13197 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13199 echo $ac_n "(cached) $ac_c" 1>&6
13200 else
13201 ac_save_LIBS="$LIBS"
13202 LIBS="-lgdk $LIBS"
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13206 /* Override any gcc2 internal prototype to avoid an error. */
13207 /* We use char because int might match the return type of a gcc2
13208 builtin and then its argument prototype would still apply. */
13209 char gdk_im_open();
13210
13211 int main() {
13212 gdk_im_open()
13213 ; return 0; }
13214 EOF
13215 if { (eval echo configure:13216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13216 rm -rf conftest*
13217 eval "ac_cv_lib_$ac_lib_var=yes"
13218 else
13219 echo "configure: failed program was:" >&5
13220 cat conftest.$ac_ext >&5
13221 rm -rf conftest*
13222 eval "ac_cv_lib_$ac_lib_var=no"
13223 fi
13224 rm -f conftest*
13225 LIBS="$ac_save_LIBS"
13226
13227 fi
13228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13229 echo "$ac_t""yes" 1>&6
13230 cat >> confdefs.h <<\EOF
13231 #define HAVE_XIM 1
13232 EOF
13233
13234 else
13235 echo "$ac_t""no" 1>&6
13236 fi
13237
13238 fi
13239
13240 if test "$wxUSE_MGL" = 1; then
13241 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13242 echo "configure:13243: checking for SciTech MGL library" >&5
13243 if test "x$MGL_ROOT" = x ; then
13244 echo "$ac_t""not found" 1>&6
13245 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13246 else
13247 echo "$ac_t""$MGL_ROOT" 1>&6
13248 fi
13249
13250 case "${host}" in
13251 *-*-linux* )
13252 mgl_os="linux/gcc/glibc*"
13253 ;;
13254 *-pc-msdosdjgpp )
13255 mgl_os=dos32/dj2
13256 ;;
13257 *)
13258 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13259 esac
13260
13261 mgl_lib_type=""
13262
13263 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13264 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
13265 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
13266 mgl_lib_type=debug
13267 fi
13268 fi
13269 if test "x$mgl_lib_type" = x ; then
13270 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
13271 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
13272 mgl_lib_type=release
13273 else
13274 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13275 fi
13276 fi
13277
13278 wxUSE_UNIVERSAL="yes"
13279
13280 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13281 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13282
13283 AFMINSTALL=afminstall
13284 TOOLKIT=MGL
13285 GUIDIST=MGL_DIST
13286 fi
13287
13288 if test "$wxUSE_MICROWIN" = 1; then
13289 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13290 echo "configure:13291: checking for MicroWindows" >&5
13291 if test "x$MICROWINDOWS" = x ; then
13292 echo "$ac_t""not found" 1>&6
13293 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13294 else
13295 echo "$ac_t""$MICROWINDOWS" 1>&6
13296 fi
13297
13298 if test -f $MICROWINDOWS/lib/libmwin.a; then
13299 echo "$ac_t""MicroWindows' libraries found." 1>&6
13300 else
13301 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13302 fi
13303
13304 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13305 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13306
13307 wxUSE_UNIVERSAL="yes"
13308
13309 AFMINSTALL=afminstall
13310 TOOLKIT=MICROWIN
13311 GUIDIST=MICROWIN_DIST
13312
13313 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13314 fi
13315
13316 if test "$wxUSE_X11" = 1; then
13317 # If we find X, set shell vars x_includes and x_libraries to the
13318 # paths, otherwise set no_x=yes.
13319 # Uses ac_ vars as temps to allow command line to override cache and checks.
13320 # --without-x overrides everything else, but does not touch the cache.
13321 echo $ac_n "checking for X""... $ac_c" 1>&6
13322 echo "configure:13323: checking for X" >&5
13323
13324 # Check whether --with-x or --without-x was given.
13325 if test "${with_x+set}" = set; then
13326 withval="$with_x"
13327 :
13328 fi
13329
13330 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13331 if test "x$with_x" = xno; then
13332 # The user explicitly disabled X.
13333 have_x=disabled
13334 else
13335 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13336 # Both variables are already set.
13337 have_x=yes
13338 else
13339 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13340 echo $ac_n "(cached) $ac_c" 1>&6
13341 else
13342 # One or both of the vars are not set, and there is no cached value.
13343 ac_x_includes=NO ac_x_libraries=NO
13344 rm -fr conftestdir
13345 if mkdir conftestdir; then
13346 cd conftestdir
13347 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13348 cat > Imakefile <<'EOF'
13349 acfindx:
13350 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13351 EOF
13352 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13354 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13355 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13356 for ac_extension in a so sl; do
13357 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13358 test -f $ac_im_libdir/libX11.$ac_extension; then
13359 ac_im_usrlibdir=$ac_im_libdir; break
13360 fi
13361 done
13362 # Screen out bogus values from the imake configuration. They are
13363 # bogus both because they are the default anyway, and because
13364 # using them would break gcc on systems where it needs fixed includes.
13365 case "$ac_im_incroot" in
13366 /usr/include) ;;
13367 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13368 esac
13369 case "$ac_im_usrlibdir" in
13370 /usr/lib | /lib) ;;
13371 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13372 esac
13373 fi
13374 cd ..
13375 rm -fr conftestdir
13376 fi
13377
13378 if test "$ac_x_includes" = NO; then
13379 # Guess where to find include files, by looking for this one X11 .h file.
13380 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13381
13382 # First, try using that file with no special directory specified.
13383 cat > conftest.$ac_ext <<EOF
13384 #line 13385 "configure"
13385 #include "confdefs.h"
13386 #include <$x_direct_test_include>
13387 EOF
13388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13389 { (eval echo configure:13390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13391 if test -z "$ac_err"; then
13392 rm -rf conftest*
13393 # We can compile using X headers with no special include directory.
13394 ac_x_includes=
13395 else
13396 echo "$ac_err" >&5
13397 echo "configure: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13399 rm -rf conftest*
13400 # Look for the header file in a standard set of common directories.
13401 # Check X11 before X11Rn because it is often a symlink to the current release.
13402 for ac_dir in \
13403 /usr/X11/include \
13404 /usr/X11R6/include \
13405 /usr/X11R5/include \
13406 /usr/X11R4/include \
13407 \
13408 /usr/include/X11 \
13409 /usr/include/X11R6 \
13410 /usr/include/X11R5 \
13411 /usr/include/X11R4 \
13412 \
13413 /usr/local/X11/include \
13414 /usr/local/X11R6/include \
13415 /usr/local/X11R5/include \
13416 /usr/local/X11R4/include \
13417 \
13418 /usr/local/include/X11 \
13419 /usr/local/include/X11R6 \
13420 /usr/local/include/X11R5 \
13421 /usr/local/include/X11R4 \
13422 \
13423 /usr/X386/include \
13424 /usr/x386/include \
13425 /usr/XFree86/include/X11 \
13426 \
13427 /usr/include \
13428 /usr/local/include \
13429 /usr/unsupported/include \
13430 /usr/athena/include \
13431 /usr/local/x11r5/include \
13432 /usr/lpp/Xamples/include \
13433 \
13434 /usr/openwin/include \
13435 /usr/openwin/share/include \
13436 ; \
13437 do
13438 if test -r "$ac_dir/$x_direct_test_include"; then
13439 ac_x_includes=$ac_dir
13440 break
13441 fi
13442 done
13443 fi
13444 rm -f conftest*
13445 fi # $ac_x_includes = NO
13446
13447 if test "$ac_x_libraries" = NO; then
13448 # Check for the libraries.
13449
13450 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13451 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13452
13453 # See if we find them without any special options.
13454 # Don't add to $LIBS permanently.
13455 ac_save_LIBS="$LIBS"
13456 LIBS="-l$x_direct_test_library $LIBS"
13457 cat > conftest.$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460
13461 int main() {
13462 ${x_direct_test_function}()
13463 ; return 0; }
13464 EOF
13465 if { (eval echo configure:13466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13466 rm -rf conftest*
13467 LIBS="$ac_save_LIBS"
13468 # We can link X programs with no special library path.
13469 ac_x_libraries=
13470 else
13471 echo "configure: failed program was:" >&5
13472 cat conftest.$ac_ext >&5
13473 rm -rf conftest*
13474 LIBS="$ac_save_LIBS"
13475 # First see if replacing the include by lib works.
13476 # Check X11 before X11Rn because it is often a symlink to the current release.
13477 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13478 /usr/X11/lib \
13479 /usr/X11R6/lib \
13480 /usr/X11R5/lib \
13481 /usr/X11R4/lib \
13482 \
13483 /usr/lib/X11 \
13484 /usr/lib/X11R6 \
13485 /usr/lib/X11R5 \
13486 /usr/lib/X11R4 \
13487 \
13488 /usr/local/X11/lib \
13489 /usr/local/X11R6/lib \
13490 /usr/local/X11R5/lib \
13491 /usr/local/X11R4/lib \
13492 \
13493 /usr/local/lib/X11 \
13494 /usr/local/lib/X11R6 \
13495 /usr/local/lib/X11R5 \
13496 /usr/local/lib/X11R4 \
13497 \
13498 /usr/X386/lib \
13499 /usr/x386/lib \
13500 /usr/XFree86/lib/X11 \
13501 \
13502 /usr/lib \
13503 /usr/local/lib \
13504 /usr/unsupported/lib \
13505 /usr/athena/lib \
13506 /usr/local/x11r5/lib \
13507 /usr/lpp/Xamples/lib \
13508 /lib/usr/lib/X11 \
13509 \
13510 /usr/openwin/lib \
13511 /usr/openwin/share/lib \
13512 ; \
13513 do
13514 for ac_extension in a so sl; do
13515 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13516 ac_x_libraries=$ac_dir
13517 break 2
13518 fi
13519 done
13520 done
13521 fi
13522 rm -f conftest*
13523 fi # $ac_x_libraries = NO
13524
13525 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13526 # Didn't find X anywhere. Cache the known absence of X.
13527 ac_cv_have_x="have_x=no"
13528 else
13529 # Record where we found X for the cache.
13530 ac_cv_have_x="have_x=yes \
13531 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13532 fi
13533 fi
13534 fi
13535 eval "$ac_cv_have_x"
13536 fi # $with_x != no
13537
13538 if test "$have_x" != yes; then
13539 echo "$ac_t""$have_x" 1>&6
13540 no_x=yes
13541 else
13542 # If each of the values was on the command line, it overrides each guess.
13543 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13544 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13545 # Update the cache value to reflect the command line values.
13546 ac_cv_have_x="have_x=yes \
13547 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13548 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13549 fi
13550
13551 if test "$no_x" = yes; then
13552 # Not all programs may use this symbol, but it does not hurt to define it.
13553 cat >> confdefs.h <<\EOF
13554 #define X_DISPLAY_MISSING 1
13555 EOF
13556
13557 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13558 else
13559 if test -n "$x_includes"; then
13560 X_CFLAGS="$X_CFLAGS -I$x_includes"
13561 fi
13562
13563 # It would also be nice to do this for all -L options, not just this one.
13564 if test -n "$x_libraries"; then
13565 X_LIBS="$X_LIBS -L$x_libraries"
13566 # For Solaris; some versions of Sun CC require a space after -R and
13567 # others require no space. Words are not sufficient . . . .
13568 case "`(uname -sr) 2>/dev/null`" in
13569 "SunOS 5"*)
13570 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13571 echo "configure:13572: checking whether -R must be followed by a space" >&5
13572 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13573 cat > conftest.$ac_ext <<EOF
13574 #line 13575 "configure"
13575 #include "confdefs.h"
13576
13577 int main() {
13578
13579 ; return 0; }
13580 EOF
13581 if { (eval echo configure:13582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13582 rm -rf conftest*
13583 ac_R_nospace=yes
13584 else
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13587 rm -rf conftest*
13588 ac_R_nospace=no
13589 fi
13590 rm -f conftest*
13591 if test $ac_R_nospace = yes; then
13592 echo "$ac_t""no" 1>&6
13593 X_LIBS="$X_LIBS -R$x_libraries"
13594 else
13595 LIBS="$ac_xsave_LIBS -R $x_libraries"
13596 cat > conftest.$ac_ext <<EOF
13597 #line 13598 "configure"
13598 #include "confdefs.h"
13599
13600 int main() {
13601
13602 ; return 0; }
13603 EOF
13604 if { (eval echo configure:13605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13605 rm -rf conftest*
13606 ac_R_space=yes
13607 else
13608 echo "configure: failed program was:" >&5
13609 cat conftest.$ac_ext >&5
13610 rm -rf conftest*
13611 ac_R_space=no
13612 fi
13613 rm -f conftest*
13614 if test $ac_R_space = yes; then
13615 echo "$ac_t""yes" 1>&6
13616 X_LIBS="$X_LIBS -R $x_libraries"
13617 else
13618 echo "$ac_t""neither works" 1>&6
13619 fi
13620 fi
13621 LIBS="$ac_xsave_LIBS"
13622 esac
13623 fi
13624
13625 # Check for system-dependent libraries X programs must link with.
13626 # Do this before checking for the system-independent R6 libraries
13627 # (-lICE), since we may need -lsocket or whatever for X linking.
13628
13629 if test "$ISC" = yes; then
13630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13631 else
13632 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13633 # libraries were built with DECnet support. And karl@cs.umb.edu says
13634 # the Alpha needs dnet_stub (dnet does not exist).
13635 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13636 echo "configure:13637: checking for dnet_ntoa in -ldnet" >&5
13637 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13639 echo $ac_n "(cached) $ac_c" 1>&6
13640 else
13641 ac_save_LIBS="$LIBS"
13642 LIBS="-ldnet $LIBS"
13643 cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13646 /* Override any gcc2 internal prototype to avoid an error. */
13647 /* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13649 char dnet_ntoa();
13650
13651 int main() {
13652 dnet_ntoa()
13653 ; return 0; }
13654 EOF
13655 if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13656 rm -rf conftest*
13657 eval "ac_cv_lib_$ac_lib_var=yes"
13658 else
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 rm -rf conftest*
13662 eval "ac_cv_lib_$ac_lib_var=no"
13663 fi
13664 rm -f conftest*
13665 LIBS="$ac_save_LIBS"
13666
13667 fi
13668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13669 echo "$ac_t""yes" 1>&6
13670 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13671 else
13672 echo "$ac_t""no" 1>&6
13673 fi
13674
13675 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13676 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13677 echo "configure:13678: checking for dnet_ntoa in -ldnet_stub" >&5
13678 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13680 echo $ac_n "(cached) $ac_c" 1>&6
13681 else
13682 ac_save_LIBS="$LIBS"
13683 LIBS="-ldnet_stub $LIBS"
13684 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 /* Override any gcc2 internal prototype to avoid an error. */
13688 /* We use char because int might match the return type of a gcc2
13689 builtin and then its argument prototype would still apply. */
13690 char dnet_ntoa();
13691
13692 int main() {
13693 dnet_ntoa()
13694 ; return 0; }
13695 EOF
13696 if { (eval echo configure:13697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13697 rm -rf conftest*
13698 eval "ac_cv_lib_$ac_lib_var=yes"
13699 else
13700 echo "configure: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13702 rm -rf conftest*
13703 eval "ac_cv_lib_$ac_lib_var=no"
13704 fi
13705 rm -f conftest*
13706 LIBS="$ac_save_LIBS"
13707
13708 fi
13709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13710 echo "$ac_t""yes" 1>&6
13711 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13712 else
13713 echo "$ac_t""no" 1>&6
13714 fi
13715
13716 fi
13717
13718 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13719 # to get the SysV transport functions.
13720 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13721 # needs -lnsl.
13722 # The nsl library prevents programs from opening the X display
13723 # on Irix 5.2, according to dickey@clark.net.
13724 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13725 echo "configure:13726: checking for gethostbyname" >&5
13726 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13727 echo $ac_n "(cached) $ac_c" 1>&6
13728 else
13729 cat > conftest.$ac_ext <<EOF
13730 #line 13731 "configure"
13731 #include "confdefs.h"
13732 /* System header to define __stub macros and hopefully few prototypes,
13733 which can conflict with char gethostbyname(); below. */
13734 #include <assert.h>
13735 /* Override any gcc2 internal prototype to avoid an error. */
13736 /* We use char because int might match the return type of a gcc2
13737 builtin and then its argument prototype would still apply. */
13738 char gethostbyname();
13739
13740 int main() {
13741
13742 /* The GNU C library defines this for functions which it implements
13743 to always fail with ENOSYS. Some functions are actually named
13744 something starting with __ and the normal name is an alias. */
13745 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13746 choke me
13747 #else
13748 gethostbyname();
13749 #endif
13750
13751 ; return 0; }
13752 EOF
13753 if { (eval echo configure:13754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13754 rm -rf conftest*
13755 eval "ac_cv_func_gethostbyname=yes"
13756 else
13757 echo "configure: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 rm -rf conftest*
13760 eval "ac_cv_func_gethostbyname=no"
13761 fi
13762 rm -f conftest*
13763 fi
13764
13765 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13766 echo "$ac_t""yes" 1>&6
13767 :
13768 else
13769 echo "$ac_t""no" 1>&6
13770 fi
13771
13772 if test $ac_cv_func_gethostbyname = no; then
13773 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13774 echo "configure:13775: checking for gethostbyname in -lnsl" >&5
13775 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13777 echo $ac_n "(cached) $ac_c" 1>&6
13778 else
13779 ac_save_LIBS="$LIBS"
13780 LIBS="-lnsl $LIBS"
13781 cat > conftest.$ac_ext <<EOF
13782 #line 13783 "configure"
13783 #include "confdefs.h"
13784 /* Override any gcc2 internal prototype to avoid an error. */
13785 /* We use char because int might match the return type of a gcc2
13786 builtin and then its argument prototype would still apply. */
13787 char gethostbyname();
13788
13789 int main() {
13790 gethostbyname()
13791 ; return 0; }
13792 EOF
13793 if { (eval echo configure:13794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13794 rm -rf conftest*
13795 eval "ac_cv_lib_$ac_lib_var=yes"
13796 else
13797 echo "configure: failed program was:" >&5
13798 cat conftest.$ac_ext >&5
13799 rm -rf conftest*
13800 eval "ac_cv_lib_$ac_lib_var=no"
13801 fi
13802 rm -f conftest*
13803 LIBS="$ac_save_LIBS"
13804
13805 fi
13806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13807 echo "$ac_t""yes" 1>&6
13808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13809 else
13810 echo "$ac_t""no" 1>&6
13811 fi
13812
13813 fi
13814
13815 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13816 # socket/setsockopt and other routines are undefined under SCO ODT
13817 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13818 # on later versions), says simon@lia.di.epfl.ch: it contains
13819 # gethostby* variants that don't use the nameserver (or something).
13820 # -lsocket must be given before -lnsl if both are needed.
13821 # We assume that if connect needs -lnsl, so does gethostbyname.
13822 echo $ac_n "checking for connect""... $ac_c" 1>&6
13823 echo "configure:13824: checking for connect" >&5
13824 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13825 echo $ac_n "(cached) $ac_c" 1>&6
13826 else
13827 cat > conftest.$ac_ext <<EOF
13828 #line 13829 "configure"
13829 #include "confdefs.h"
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char connect(); below. */
13832 #include <assert.h>
13833 /* Override any gcc2 internal prototype to avoid an error. */
13834 /* We use char because int might match the return type of a gcc2
13835 builtin and then its argument prototype would still apply. */
13836 char connect();
13837
13838 int main() {
13839
13840 /* The GNU C library defines this for functions which it implements
13841 to always fail with ENOSYS. Some functions are actually named
13842 something starting with __ and the normal name is an alias. */
13843 #if defined (__stub_connect) || defined (__stub___connect)
13844 choke me
13845 #else
13846 connect();
13847 #endif
13848
13849 ; return 0; }
13850 EOF
13851 if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 rm -rf conftest*
13853 eval "ac_cv_func_connect=yes"
13854 else
13855 echo "configure: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 rm -rf conftest*
13858 eval "ac_cv_func_connect=no"
13859 fi
13860 rm -f conftest*
13861 fi
13862
13863 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13864 echo "$ac_t""yes" 1>&6
13865 :
13866 else
13867 echo "$ac_t""no" 1>&6
13868 fi
13869
13870 if test $ac_cv_func_connect = no; then
13871 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13872 echo "configure:13873: checking for connect in -lsocket" >&5
13873 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13875 echo $ac_n "(cached) $ac_c" 1>&6
13876 else
13877 ac_save_LIBS="$LIBS"
13878 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13879 cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 /* Override any gcc2 internal prototype to avoid an error. */
13883 /* We use char because int might match the return type of a gcc2
13884 builtin and then its argument prototype would still apply. */
13885 char connect();
13886
13887 int main() {
13888 connect()
13889 ; return 0; }
13890 EOF
13891 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13892 rm -rf conftest*
13893 eval "ac_cv_lib_$ac_lib_var=yes"
13894 else
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 rm -rf conftest*
13898 eval "ac_cv_lib_$ac_lib_var=no"
13899 fi
13900 rm -f conftest*
13901 LIBS="$ac_save_LIBS"
13902
13903 fi
13904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13905 echo "$ac_t""yes" 1>&6
13906 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13907 else
13908 echo "$ac_t""no" 1>&6
13909 fi
13910
13911 fi
13912
13913 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13914 echo $ac_n "checking for remove""... $ac_c" 1>&6
13915 echo "configure:13916: checking for remove" >&5
13916 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13917 echo $ac_n "(cached) $ac_c" 1>&6
13918 else
13919 cat > conftest.$ac_ext <<EOF
13920 #line 13921 "configure"
13921 #include "confdefs.h"
13922 /* System header to define __stub macros and hopefully few prototypes,
13923 which can conflict with char remove(); below. */
13924 #include <assert.h>
13925 /* Override any gcc2 internal prototype to avoid an error. */
13926 /* We use char because int might match the return type of a gcc2
13927 builtin and then its argument prototype would still apply. */
13928 char remove();
13929
13930 int main() {
13931
13932 /* The GNU C library defines this for functions which it implements
13933 to always fail with ENOSYS. Some functions are actually named
13934 something starting with __ and the normal name is an alias. */
13935 #if defined (__stub_remove) || defined (__stub___remove)
13936 choke me
13937 #else
13938 remove();
13939 #endif
13940
13941 ; return 0; }
13942 EOF
13943 if { (eval echo configure:13944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13944 rm -rf conftest*
13945 eval "ac_cv_func_remove=yes"
13946 else
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 rm -rf conftest*
13950 eval "ac_cv_func_remove=no"
13951 fi
13952 rm -f conftest*
13953 fi
13954
13955 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13956 echo "$ac_t""yes" 1>&6
13957 :
13958 else
13959 echo "$ac_t""no" 1>&6
13960 fi
13961
13962 if test $ac_cv_func_remove = no; then
13963 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13964 echo "configure:13965: checking for remove in -lposix" >&5
13965 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13967 echo $ac_n "(cached) $ac_c" 1>&6
13968 else
13969 ac_save_LIBS="$LIBS"
13970 LIBS="-lposix $LIBS"
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13974 /* Override any gcc2 internal prototype to avoid an error. */
13975 /* We use char because int might match the return type of a gcc2
13976 builtin and then its argument prototype would still apply. */
13977 char remove();
13978
13979 int main() {
13980 remove()
13981 ; return 0; }
13982 EOF
13983 if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13984 rm -rf conftest*
13985 eval "ac_cv_lib_$ac_lib_var=yes"
13986 else
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13989 rm -rf conftest*
13990 eval "ac_cv_lib_$ac_lib_var=no"
13991 fi
13992 rm -f conftest*
13993 LIBS="$ac_save_LIBS"
13994
13995 fi
13996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
13998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13999 else
14000 echo "$ac_t""no" 1>&6
14001 fi
14002
14003 fi
14004
14005 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14006 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14007 echo "configure:14008: checking for shmat" >&5
14008 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14009 echo $ac_n "(cached) $ac_c" 1>&6
14010 else
14011 cat > conftest.$ac_ext <<EOF
14012 #line 14013 "configure"
14013 #include "confdefs.h"
14014 /* System header to define __stub macros and hopefully few prototypes,
14015 which can conflict with char shmat(); below. */
14016 #include <assert.h>
14017 /* Override any gcc2 internal prototype to avoid an error. */
14018 /* We use char because int might match the return type of a gcc2
14019 builtin and then its argument prototype would still apply. */
14020 char shmat();
14021
14022 int main() {
14023
14024 /* The GNU C library defines this for functions which it implements
14025 to always fail with ENOSYS. Some functions are actually named
14026 something starting with __ and the normal name is an alias. */
14027 #if defined (__stub_shmat) || defined (__stub___shmat)
14028 choke me
14029 #else
14030 shmat();
14031 #endif
14032
14033 ; return 0; }
14034 EOF
14035 if { (eval echo configure:14036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14036 rm -rf conftest*
14037 eval "ac_cv_func_shmat=yes"
14038 else
14039 echo "configure: failed program was:" >&5
14040 cat conftest.$ac_ext >&5
14041 rm -rf conftest*
14042 eval "ac_cv_func_shmat=no"
14043 fi
14044 rm -f conftest*
14045 fi
14046
14047 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14048 echo "$ac_t""yes" 1>&6
14049 :
14050 else
14051 echo "$ac_t""no" 1>&6
14052 fi
14053
14054 if test $ac_cv_func_shmat = no; then
14055 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14056 echo "configure:14057: checking for shmat in -lipc" >&5
14057 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14060 else
14061 ac_save_LIBS="$LIBS"
14062 LIBS="-lipc $LIBS"
14063 cat > conftest.$ac_ext <<EOF
14064 #line 14065 "configure"
14065 #include "confdefs.h"
14066 /* Override any gcc2 internal prototype to avoid an error. */
14067 /* We use char because int might match the return type of a gcc2
14068 builtin and then its argument prototype would still apply. */
14069 char shmat();
14070
14071 int main() {
14072 shmat()
14073 ; return 0; }
14074 EOF
14075 if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14076 rm -rf conftest*
14077 eval "ac_cv_lib_$ac_lib_var=yes"
14078 else
14079 echo "configure: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 rm -rf conftest*
14082 eval "ac_cv_lib_$ac_lib_var=no"
14083 fi
14084 rm -f conftest*
14085 LIBS="$ac_save_LIBS"
14086
14087 fi
14088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14089 echo "$ac_t""yes" 1>&6
14090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14091 else
14092 echo "$ac_t""no" 1>&6
14093 fi
14094
14095 fi
14096 fi
14097
14098 # Check for libraries that X11R6 Xt/Xaw programs need.
14099 ac_save_LDFLAGS="$LDFLAGS"
14100 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14101 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14102 # check for ICE first), but we must link in the order -lSM -lICE or
14103 # we get undefined symbols. So assume we have SM if we have ICE.
14104 # These have to be linked with before -lX11, unlike the other
14105 # libraries we check for below, so use a different variable.
14106 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14107 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14108 echo "configure:14109: checking for IceConnectionNumber in -lICE" >&5
14109 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14111 echo $ac_n "(cached) $ac_c" 1>&6
14112 else
14113 ac_save_LIBS="$LIBS"
14114 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14115 cat > conftest.$ac_ext <<EOF
14116 #line 14117 "configure"
14117 #include "confdefs.h"
14118 /* Override any gcc2 internal prototype to avoid an error. */
14119 /* We use char because int might match the return type of a gcc2
14120 builtin and then its argument prototype would still apply. */
14121 char IceConnectionNumber();
14122
14123 int main() {
14124 IceConnectionNumber()
14125 ; return 0; }
14126 EOF
14127 if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14128 rm -rf conftest*
14129 eval "ac_cv_lib_$ac_lib_var=yes"
14130 else
14131 echo "configure: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 rm -rf conftest*
14134 eval "ac_cv_lib_$ac_lib_var=no"
14135 fi
14136 rm -f conftest*
14137 LIBS="$ac_save_LIBS"
14138
14139 fi
14140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14141 echo "$ac_t""yes" 1>&6
14142 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14143 else
14144 echo "$ac_t""no" 1>&6
14145 fi
14146
14147 LDFLAGS="$ac_save_LDFLAGS"
14148
14149 fi
14150
14151
14152 if test "$no_x" = "yes"; then
14153 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14154 fi
14155
14156 GUI_TK_LIBRARY="$X_LIBS"
14157 TOOLKIT_INCLUDE="$X_CFLAGS"
14158 AFMINSTALL=afminstall
14159 COMPILED_X_PROGRAM=0
14160
14161 if test "$wxUSE_NANOX" = "yes"; then
14162 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14163 echo "configure:14164: checking for MicroWindows/NanoX distribution" >&5
14164 if test "x$MICROWIN" = x ; then
14165 echo "$ac_t""not found" 1>&6
14166 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14167 else
14168 echo "$ac_t""$MICROWIN" 1>&6
14169 cat >> confdefs.h <<\EOF
14170 #define wxUSE_NANOX 1
14171 EOF
14172
14173 fi
14174 fi
14175
14176 xpm_link=
14177 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14178 echo "configure:14179: checking for Xpm library" >&5
14179
14180 ac_find_libraries=
14181 for ac_dir in $SEARCH_LIB /usr/lib;
14182 do
14183 for ac_extension in a so sl dylib; do
14184 if test -f "$ac_dir/libXpm.$ac_extension"; then
14185 ac_find_libraries=$ac_dir
14186 break 2
14187 fi
14188 done
14189 done
14190
14191 if test "$ac_find_libraries" != "" ; then
14192
14193 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14194 result=$?
14195 if test $result = 0; then
14196 ac_path_to_link=""
14197 else
14198 ac_path_to_link=" -L$ac_find_libraries"
14199 fi
14200
14201 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14202 xpm_link=" -lXpm"
14203 cat >> confdefs.h <<\EOF
14204 #define wxHAVE_LIB_XPM 1
14205 EOF
14206
14207 echo "$ac_t""found at $ac_find_libraries" 1>&6
14208 else
14209 cat > conftest.$ac_ext <<EOF
14210 #line 14211 "configure"
14211 #include "confdefs.h"
14212
14213 #include <X11/xpm.h>
14214
14215 int main() {
14216
14217 int version;
14218 version = XpmLibraryVersion();
14219
14220 ; return 0; }
14221 EOF
14222 if { (eval echo configure:14223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14223 rm -rf conftest*
14224
14225 xpm_link=" -lXpm"
14226 cat >> confdefs.h <<\EOF
14227 #define wxHAVE_LIB_XPM 1
14228 EOF
14229
14230 echo "$ac_t""found in default search path" 1>&6
14231 COMPILED_X_PROGRAM=0
14232
14233 else
14234 echo "configure: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14236 rm -rf conftest*
14237
14238 echo "$ac_t""no" 1>&6
14239 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14240
14241
14242 fi
14243 rm -f conftest*
14244 fi
14245
14246 if test "$wxUSE_UNICODE" = "yes"; then
14247
14248 succeeded=no
14249
14250 if test -z "$PKG_CONFIG"; then
14251 # Extract the first word of "pkg-config", so it can be a program name with args.
14252 set dummy pkg-config; ac_word=$2
14253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14254 echo "configure:14255: checking for $ac_word" >&5
14255 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
14257 else
14258 case "$PKG_CONFIG" in
14259 /*)
14260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14261 ;;
14262 ?:/*)
14263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14264 ;;
14265 *)
14266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14267 ac_dummy="$PATH"
14268 for ac_dir in $ac_dummy; do
14269 test -z "$ac_dir" && ac_dir=.
14270 if test -f $ac_dir/$ac_word; then
14271 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14272 break
14273 fi
14274 done
14275 IFS="$ac_save_ifs"
14276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14277 ;;
14278 esac
14279 fi
14280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14281 if test -n "$PKG_CONFIG"; then
14282 echo "$ac_t""$PKG_CONFIG" 1>&6
14283 else
14284 echo "$ac_t""no" 1>&6
14285 fi
14286
14287 fi
14288
14289 if test "$PKG_CONFIG" = "no" ; then
14290 echo "*** The pkg-config script could not be found. Make sure it is"
14291 echo "*** in your path, or set the PKG_CONFIG environment variable"
14292 echo "*** to the full path to pkg-config."
14293 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14294 else
14295 PKG_CONFIG_MIN_VERSION=0.9.0
14296 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14297 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14298 echo "configure:14299: checking for pangox" >&5
14299
14300 if $PKG_CONFIG --exists "pangox" ; then
14301 echo "$ac_t""yes" 1>&6
14302 succeeded=yes
14303
14304 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14305 echo "configure:14306: checking PANGOX_CFLAGS" >&5
14306 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14307 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14308
14309 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14310 echo "configure:14311: checking PANGOX_LIBS" >&5
14311 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14312 echo "$ac_t""$PANGOX_LIBS" 1>&6
14313 else
14314 PANGOX_CFLAGS=""
14315 PANGOX_LIBS=""
14316 ## If we have a custom action on failure, don't print errors, but
14317 ## do set a variable so people can do so.
14318 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14319
14320 fi
14321
14322
14323
14324 else
14325 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14326 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14327 fi
14328 fi
14329
14330 if test $succeeded = yes; then
14331
14332 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14333 LIBS="$LIBS $PANGOX_LIBS"
14334
14335 else
14336
14337 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14338
14339
14340 fi
14341
14342
14343 succeeded=no
14344
14345 if test -z "$PKG_CONFIG"; then
14346 # Extract the first word of "pkg-config", so it can be a program name with args.
14347 set dummy pkg-config; ac_word=$2
14348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14349 echo "configure:14350: checking for $ac_word" >&5
14350 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14351 echo $ac_n "(cached) $ac_c" 1>&6
14352 else
14353 case "$PKG_CONFIG" in
14354 /*)
14355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14356 ;;
14357 ?:/*)
14358 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14359 ;;
14360 *)
14361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14362 ac_dummy="$PATH"
14363 for ac_dir in $ac_dummy; do
14364 test -z "$ac_dir" && ac_dir=.
14365 if test -f $ac_dir/$ac_word; then
14366 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14367 break
14368 fi
14369 done
14370 IFS="$ac_save_ifs"
14371 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14372 ;;
14373 esac
14374 fi
14375 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14376 if test -n "$PKG_CONFIG"; then
14377 echo "$ac_t""$PKG_CONFIG" 1>&6
14378 else
14379 echo "$ac_t""no" 1>&6
14380 fi
14381
14382 fi
14383
14384 if test "$PKG_CONFIG" = "no" ; then
14385 echo "*** The pkg-config script could not be found. Make sure it is"
14386 echo "*** in your path, or set the PKG_CONFIG environment variable"
14387 echo "*** to the full path to pkg-config."
14388 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14389 else
14390 PKG_CONFIG_MIN_VERSION=0.9.0
14391 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14392 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14393 echo "configure:14394: checking for pangoft2" >&5
14394
14395 if $PKG_CONFIG --exists "pangoft2" ; then
14396 echo "$ac_t""yes" 1>&6
14397 succeeded=yes
14398
14399 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14400 echo "configure:14401: checking PANGOFT2_CFLAGS" >&5
14401 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14402 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14403
14404 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14405 echo "configure:14406: checking PANGOFT2_LIBS" >&5
14406 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14407 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14408 else
14409 PANGOFT2_CFLAGS=""
14410 PANGOFT2_LIBS=""
14411 ## If we have a custom action on failure, don't print errors, but
14412 ## do set a variable so people can do so.
14413 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14414
14415 fi
14416
14417
14418
14419 else
14420 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14421 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14422 fi
14423 fi
14424
14425 if test $succeeded = yes; then
14426
14427 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14428 LIBS="$LIBS $PANGOFT2_LIBS"
14429
14430 else
14431
14432 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14433 wxUSE_PRINTING_ARCHITECTURE="no"
14434
14435
14436 fi
14437
14438
14439 succeeded=no
14440
14441 if test -z "$PKG_CONFIG"; then
14442 # Extract the first word of "pkg-config", so it can be a program name with args.
14443 set dummy pkg-config; ac_word=$2
14444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14445 echo "configure:14446: checking for $ac_word" >&5
14446 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14447 echo $ac_n "(cached) $ac_c" 1>&6
14448 else
14449 case "$PKG_CONFIG" in
14450 /*)
14451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14452 ;;
14453 ?:/*)
14454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14455 ;;
14456 *)
14457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14458 ac_dummy="$PATH"
14459 for ac_dir in $ac_dummy; do
14460 test -z "$ac_dir" && ac_dir=.
14461 if test -f $ac_dir/$ac_word; then
14462 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14463 break
14464 fi
14465 done
14466 IFS="$ac_save_ifs"
14467 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14468 ;;
14469 esac
14470 fi
14471 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14472 if test -n "$PKG_CONFIG"; then
14473 echo "$ac_t""$PKG_CONFIG" 1>&6
14474 else
14475 echo "$ac_t""no" 1>&6
14476 fi
14477
14478 fi
14479
14480 if test "$PKG_CONFIG" = "no" ; then
14481 echo "*** The pkg-config script could not be found. Make sure it is"
14482 echo "*** in your path, or set the PKG_CONFIG environment variable"
14483 echo "*** to the full path to pkg-config."
14484 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14485 else
14486 PKG_CONFIG_MIN_VERSION=0.9.0
14487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14488 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14489 echo "configure:14490: checking for pangoxft" >&5
14490
14491 if $PKG_CONFIG --exists "pangoxft" ; then
14492 echo "$ac_t""yes" 1>&6
14493 succeeded=yes
14494
14495 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14496 echo "configure:14497: checking PANGOXFT_CFLAGS" >&5
14497 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14498 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14499
14500 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14501 echo "configure:14502: checking PANGOXFT_LIBS" >&5
14502 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14503 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14504 else
14505 PANGOXFT_CFLAGS=""
14506 PANGOXFT_LIBS=""
14507 ## If we have a custom action on failure, don't print errors, but
14508 ## do set a variable so people can do so.
14509 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14510
14511 fi
14512
14513
14514
14515 else
14516 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14517 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14518 fi
14519 fi
14520
14521 if test $succeeded = yes; then
14522
14523 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14524 LIBS="$LIBS $PANGOXFT_LIBS"
14525
14526 else
14527
14528 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14529
14530
14531 fi
14532
14533 fi
14534
14535 wxUSE_UNIVERSAL="yes"
14536
14537 if test "$wxUSE_NANOX" = "yes"; then
14538 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14539 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"
14540 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14541 else
14542 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14543 fi
14544
14545 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14546 TOOLKIT=X11
14547 GUIDIST=X11_DIST
14548 fi
14549
14550 if test "$wxUSE_WINE" = 1; then
14551 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
14552 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
14553 echo "configure:14554: checking for windows.h" >&5
14554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14555 echo $ac_n "(cached) $ac_c" 1>&6
14556 else
14557 cat > conftest.$ac_ext <<EOF
14558 #line 14559 "configure"
14559 #include "confdefs.h"
14560 #include <windows.h>
14561 EOF
14562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14563 { (eval echo configure:14564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14565 if test -z "$ac_err"; then
14566 rm -rf conftest*
14567 eval "ac_cv_header_$ac_safe=yes"
14568 else
14569 echo "$ac_err" >&5
14570 echo "configure: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14572 rm -rf conftest*
14573 eval "ac_cv_header_$ac_safe=no"
14574 fi
14575 rm -f conftest*
14576 fi
14577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14578 echo "$ac_t""yes" 1>&6
14579 :
14580 else
14581 echo "$ac_t""no" 1>&6
14582
14583 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
14584
14585 fi
14586
14587
14588 xpm_link=
14589 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14590 echo "configure:14591: checking for Xpm library" >&5
14591
14592 ac_find_libraries=
14593 for ac_dir in $SEARCH_LIB /usr/lib;
14594 do
14595 for ac_extension in a so sl dylib; do
14596 if test -f "$ac_dir/libXpm.$ac_extension"; then
14597 ac_find_libraries=$ac_dir
14598 break 2
14599 fi
14600 done
14601 done
14602
14603 if test "$ac_find_libraries" != "" ; then
14604 GUI_TK_LIBRARY="-L$ac_find_libraries"
14605 xpm_link=" -lXpm"
14606 cat >> confdefs.h <<\EOF
14607 #define wxHAVE_LIB_XPM 1
14608 EOF
14609
14610 echo "$ac_t""found at $ac_find_libraries" 1>&6
14611 else
14612 echo "$ac_t""no" 1>&6
14613 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14614 fi
14615
14616 mesa_link=
14617 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
14618 echo "configure:14619: checking for Mesa library" >&5
14619
14620 ac_find_libraries=
14621 for ac_dir in $SEARCH_LIB /usr/lib;
14622 do
14623 for ac_extension in a so sl dylib; do
14624 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14625 ac_find_libraries=$ac_dir
14626 break 2
14627 fi
14628 done
14629 done
14630
14631 if test "$ac_find_libraries" != "" ; then
14632 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
14633 mesa_link=" -lMesaGL"
14634 echo "$ac_t""found at $ac_find_libraries" 1>&6
14635 else
14636 mesa_link=""
14637 echo "$ac_t""no" 1>&6
14638 echo "configure: warning: library will be compiled without Mesa support" 1>&2
14639 fi
14640
14641 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
14642 TOOLKIT=MSW
14643 GUIDIST=MSW_DIST
14644 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
14645 fi
14646
14647 if test "$wxUSE_MOTIF" = 1; then
14648 if test "$no_x" = yes; then
14649 # Not all programs may use this symbol, but it does not hurt to define it.
14650 cat >> confdefs.h <<\EOF
14651 #define X_DISPLAY_MISSING 1
14652 EOF
14653
14654 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14655 else
14656 if test -n "$x_includes"; then
14657 X_CFLAGS="$X_CFLAGS -I$x_includes"
14658 fi
14659
14660 # It would also be nice to do this for all -L options, not just this one.
14661 if test -n "$x_libraries"; then
14662 X_LIBS="$X_LIBS -L$x_libraries"
14663 # For Solaris; some versions of Sun CC require a space after -R and
14664 # others require no space. Words are not sufficient . . . .
14665 case "`(uname -sr) 2>/dev/null`" in
14666 "SunOS 5"*)
14667 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14668 echo "configure:14669: checking whether -R must be followed by a space" >&5
14669 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14670 cat > conftest.$ac_ext <<EOF
14671 #line 14672 "configure"
14672 #include "confdefs.h"
14673
14674 int main() {
14675
14676 ; return 0; }
14677 EOF
14678 if { (eval echo configure:14679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14679 rm -rf conftest*
14680 ac_R_nospace=yes
14681 else
14682 echo "configure: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14684 rm -rf conftest*
14685 ac_R_nospace=no
14686 fi
14687 rm -f conftest*
14688 if test $ac_R_nospace = yes; then
14689 echo "$ac_t""no" 1>&6
14690 X_LIBS="$X_LIBS -R$x_libraries"
14691 else
14692 LIBS="$ac_xsave_LIBS -R $x_libraries"
14693 cat > conftest.$ac_ext <<EOF
14694 #line 14695 "configure"
14695 #include "confdefs.h"
14696
14697 int main() {
14698
14699 ; return 0; }
14700 EOF
14701 if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14702 rm -rf conftest*
14703 ac_R_space=yes
14704 else
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14707 rm -rf conftest*
14708 ac_R_space=no
14709 fi
14710 rm -f conftest*
14711 if test $ac_R_space = yes; then
14712 echo "$ac_t""yes" 1>&6
14713 X_LIBS="$X_LIBS -R $x_libraries"
14714 else
14715 echo "$ac_t""neither works" 1>&6
14716 fi
14717 fi
14718 LIBS="$ac_xsave_LIBS"
14719 esac
14720 fi
14721
14722 # Check for system-dependent libraries X programs must link with.
14723 # Do this before checking for the system-independent R6 libraries
14724 # (-lICE), since we may need -lsocket or whatever for X linking.
14725
14726 if test "$ISC" = yes; then
14727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14728 else
14729 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14730 # libraries were built with DECnet support. And karl@cs.umb.edu says
14731 # the Alpha needs dnet_stub (dnet does not exist).
14732 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14733 echo "configure:14734: checking for dnet_ntoa in -ldnet" >&5
14734 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14736 echo $ac_n "(cached) $ac_c" 1>&6
14737 else
14738 ac_save_LIBS="$LIBS"
14739 LIBS="-ldnet $LIBS"
14740 cat > conftest.$ac_ext <<EOF
14741 #line 14742 "configure"
14742 #include "confdefs.h"
14743 /* Override any gcc2 internal prototype to avoid an error. */
14744 /* We use char because int might match the return type of a gcc2
14745 builtin and then its argument prototype would still apply. */
14746 char dnet_ntoa();
14747
14748 int main() {
14749 dnet_ntoa()
14750 ; return 0; }
14751 EOF
14752 if { (eval echo configure:14753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14753 rm -rf conftest*
14754 eval "ac_cv_lib_$ac_lib_var=yes"
14755 else
14756 echo "configure: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14758 rm -rf conftest*
14759 eval "ac_cv_lib_$ac_lib_var=no"
14760 fi
14761 rm -f conftest*
14762 LIBS="$ac_save_LIBS"
14763
14764 fi
14765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14766 echo "$ac_t""yes" 1>&6
14767 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14768 else
14769 echo "$ac_t""no" 1>&6
14770 fi
14771
14772 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14773 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14774 echo "configure:14775: checking for dnet_ntoa in -ldnet_stub" >&5
14775 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14777 echo $ac_n "(cached) $ac_c" 1>&6
14778 else
14779 ac_save_LIBS="$LIBS"
14780 LIBS="-ldnet_stub $LIBS"
14781 cat > conftest.$ac_ext <<EOF
14782 #line 14783 "configure"
14783 #include "confdefs.h"
14784 /* Override any gcc2 internal prototype to avoid an error. */
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787 char dnet_ntoa();
14788
14789 int main() {
14790 dnet_ntoa()
14791 ; return 0; }
14792 EOF
14793 if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14794 rm -rf conftest*
14795 eval "ac_cv_lib_$ac_lib_var=yes"
14796 else
14797 echo "configure: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14799 rm -rf conftest*
14800 eval "ac_cv_lib_$ac_lib_var=no"
14801 fi
14802 rm -f conftest*
14803 LIBS="$ac_save_LIBS"
14804
14805 fi
14806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14807 echo "$ac_t""yes" 1>&6
14808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14809 else
14810 echo "$ac_t""no" 1>&6
14811 fi
14812
14813 fi
14814
14815 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14816 # to get the SysV transport functions.
14817 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14818 # needs -lnsl.
14819 # The nsl library prevents programs from opening the X display
14820 # on Irix 5.2, according to dickey@clark.net.
14821 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14822 echo "configure:14823: checking for gethostbyname" >&5
14823 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14824 echo $ac_n "(cached) $ac_c" 1>&6
14825 else
14826 cat > conftest.$ac_ext <<EOF
14827 #line 14828 "configure"
14828 #include "confdefs.h"
14829 /* System header to define __stub macros and hopefully few prototypes,
14830 which can conflict with char gethostbyname(); below. */
14831 #include <assert.h>
14832 /* Override any gcc2 internal prototype to avoid an error. */
14833 /* We use char because int might match the return type of a gcc2
14834 builtin and then its argument prototype would still apply. */
14835 char gethostbyname();
14836
14837 int main() {
14838
14839 /* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14843 choke me
14844 #else
14845 gethostbyname();
14846 #endif
14847
14848 ; return 0; }
14849 EOF
14850 if { (eval echo configure:14851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14851 rm -rf conftest*
14852 eval "ac_cv_func_gethostbyname=yes"
14853 else
14854 echo "configure: failed program was:" >&5
14855 cat conftest.$ac_ext >&5
14856 rm -rf conftest*
14857 eval "ac_cv_func_gethostbyname=no"
14858 fi
14859 rm -f conftest*
14860 fi
14861
14862 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14863 echo "$ac_t""yes" 1>&6
14864 :
14865 else
14866 echo "$ac_t""no" 1>&6
14867 fi
14868
14869 if test $ac_cv_func_gethostbyname = no; then
14870 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14871 echo "configure:14872: checking for gethostbyname in -lnsl" >&5
14872 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14874 echo $ac_n "(cached) $ac_c" 1>&6
14875 else
14876 ac_save_LIBS="$LIBS"
14877 LIBS="-lnsl $LIBS"
14878 cat > conftest.$ac_ext <<EOF
14879 #line 14880 "configure"
14880 #include "confdefs.h"
14881 /* Override any gcc2 internal prototype to avoid an error. */
14882 /* We use char because int might match the return type of a gcc2
14883 builtin and then its argument prototype would still apply. */
14884 char gethostbyname();
14885
14886 int main() {
14887 gethostbyname()
14888 ; return 0; }
14889 EOF
14890 if { (eval echo configure:14891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14891 rm -rf conftest*
14892 eval "ac_cv_lib_$ac_lib_var=yes"
14893 else
14894 echo "configure: failed program was:" >&5
14895 cat conftest.$ac_ext >&5
14896 rm -rf conftest*
14897 eval "ac_cv_lib_$ac_lib_var=no"
14898 fi
14899 rm -f conftest*
14900 LIBS="$ac_save_LIBS"
14901
14902 fi
14903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14904 echo "$ac_t""yes" 1>&6
14905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14906 else
14907 echo "$ac_t""no" 1>&6
14908 fi
14909
14910 fi
14911
14912 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14913 # socket/setsockopt and other routines are undefined under SCO ODT
14914 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14915 # on later versions), says simon@lia.di.epfl.ch: it contains
14916 # gethostby* variants that don't use the nameserver (or something).
14917 # -lsocket must be given before -lnsl if both are needed.
14918 # We assume that if connect needs -lnsl, so does gethostbyname.
14919 echo $ac_n "checking for connect""... $ac_c" 1>&6
14920 echo "configure:14921: checking for connect" >&5
14921 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14922 echo $ac_n "(cached) $ac_c" 1>&6
14923 else
14924 cat > conftest.$ac_ext <<EOF
14925 #line 14926 "configure"
14926 #include "confdefs.h"
14927 /* System header to define __stub macros and hopefully few prototypes,
14928 which can conflict with char connect(); below. */
14929 #include <assert.h>
14930 /* Override any gcc2 internal prototype to avoid an error. */
14931 /* We use char because int might match the return type of a gcc2
14932 builtin and then its argument prototype would still apply. */
14933 char connect();
14934
14935 int main() {
14936
14937 /* The GNU C library defines this for functions which it implements
14938 to always fail with ENOSYS. Some functions are actually named
14939 something starting with __ and the normal name is an alias. */
14940 #if defined (__stub_connect) || defined (__stub___connect)
14941 choke me
14942 #else
14943 connect();
14944 #endif
14945
14946 ; return 0; }
14947 EOF
14948 if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14949 rm -rf conftest*
14950 eval "ac_cv_func_connect=yes"
14951 else
14952 echo "configure: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
14954 rm -rf conftest*
14955 eval "ac_cv_func_connect=no"
14956 fi
14957 rm -f conftest*
14958 fi
14959
14960 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14961 echo "$ac_t""yes" 1>&6
14962 :
14963 else
14964 echo "$ac_t""no" 1>&6
14965 fi
14966
14967 if test $ac_cv_func_connect = no; then
14968 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14969 echo "configure:14970: checking for connect in -lsocket" >&5
14970 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14972 echo $ac_n "(cached) $ac_c" 1>&6
14973 else
14974 ac_save_LIBS="$LIBS"
14975 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 /* Override any gcc2 internal prototype to avoid an error. */
14980 /* We use char because int might match the return type of a gcc2
14981 builtin and then its argument prototype would still apply. */
14982 char connect();
14983
14984 int main() {
14985 connect()
14986 ; return 0; }
14987 EOF
14988 if { (eval echo configure:14989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14989 rm -rf conftest*
14990 eval "ac_cv_lib_$ac_lib_var=yes"
14991 else
14992 echo "configure: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 rm -rf conftest*
14995 eval "ac_cv_lib_$ac_lib_var=no"
14996 fi
14997 rm -f conftest*
14998 LIBS="$ac_save_LIBS"
14999
15000 fi
15001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15002 echo "$ac_t""yes" 1>&6
15003 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15004 else
15005 echo "$ac_t""no" 1>&6
15006 fi
15007
15008 fi
15009
15010 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15011 echo $ac_n "checking for remove""... $ac_c" 1>&6
15012 echo "configure:15013: checking for remove" >&5
15013 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15014 echo $ac_n "(cached) $ac_c" 1>&6
15015 else
15016 cat > conftest.$ac_ext <<EOF
15017 #line 15018 "configure"
15018 #include "confdefs.h"
15019 /* System header to define __stub macros and hopefully few prototypes,
15020 which can conflict with char remove(); below. */
15021 #include <assert.h>
15022 /* Override any gcc2 internal prototype to avoid an error. */
15023 /* We use char because int might match the return type of a gcc2
15024 builtin and then its argument prototype would still apply. */
15025 char remove();
15026
15027 int main() {
15028
15029 /* The GNU C library defines this for functions which it implements
15030 to always fail with ENOSYS. Some functions are actually named
15031 something starting with __ and the normal name is an alias. */
15032 #if defined (__stub_remove) || defined (__stub___remove)
15033 choke me
15034 #else
15035 remove();
15036 #endif
15037
15038 ; return 0; }
15039 EOF
15040 if { (eval echo configure:15041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15041 rm -rf conftest*
15042 eval "ac_cv_func_remove=yes"
15043 else
15044 echo "configure: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15046 rm -rf conftest*
15047 eval "ac_cv_func_remove=no"
15048 fi
15049 rm -f conftest*
15050 fi
15051
15052 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15053 echo "$ac_t""yes" 1>&6
15054 :
15055 else
15056 echo "$ac_t""no" 1>&6
15057 fi
15058
15059 if test $ac_cv_func_remove = no; then
15060 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15061 echo "configure:15062: checking for remove in -lposix" >&5
15062 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15064 echo $ac_n "(cached) $ac_c" 1>&6
15065 else
15066 ac_save_LIBS="$LIBS"
15067 LIBS="-lposix $LIBS"
15068 cat > conftest.$ac_ext <<EOF
15069 #line 15070 "configure"
15070 #include "confdefs.h"
15071 /* Override any gcc2 internal prototype to avoid an error. */
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15074 char remove();
15075
15076 int main() {
15077 remove()
15078 ; return 0; }
15079 EOF
15080 if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15081 rm -rf conftest*
15082 eval "ac_cv_lib_$ac_lib_var=yes"
15083 else
15084 echo "configure: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 rm -rf conftest*
15087 eval "ac_cv_lib_$ac_lib_var=no"
15088 fi
15089 rm -f conftest*
15090 LIBS="$ac_save_LIBS"
15091
15092 fi
15093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15094 echo "$ac_t""yes" 1>&6
15095 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15096 else
15097 echo "$ac_t""no" 1>&6
15098 fi
15099
15100 fi
15101
15102 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15103 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15104 echo "configure:15105: checking for shmat" >&5
15105 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108 cat > conftest.$ac_ext <<EOF
15109 #line 15110 "configure"
15110 #include "confdefs.h"
15111 /* System header to define __stub macros and hopefully few prototypes,
15112 which can conflict with char shmat(); below. */
15113 #include <assert.h>
15114 /* Override any gcc2 internal prototype to avoid an error. */
15115 /* We use char because int might match the return type of a gcc2
15116 builtin and then its argument prototype would still apply. */
15117 char shmat();
15118
15119 int main() {
15120
15121 /* The GNU C library defines this for functions which it implements
15122 to always fail with ENOSYS. Some functions are actually named
15123 something starting with __ and the normal name is an alias. */
15124 #if defined (__stub_shmat) || defined (__stub___shmat)
15125 choke me
15126 #else
15127 shmat();
15128 #endif
15129
15130 ; return 0; }
15131 EOF
15132 if { (eval echo configure:15133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15133 rm -rf conftest*
15134 eval "ac_cv_func_shmat=yes"
15135 else
15136 echo "configure: failed program was:" >&5
15137 cat conftest.$ac_ext >&5
15138 rm -rf conftest*
15139 eval "ac_cv_func_shmat=no"
15140 fi
15141 rm -f conftest*
15142 fi
15143
15144 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15145 echo "$ac_t""yes" 1>&6
15146 :
15147 else
15148 echo "$ac_t""no" 1>&6
15149 fi
15150
15151 if test $ac_cv_func_shmat = no; then
15152 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15153 echo "configure:15154: checking for shmat in -lipc" >&5
15154 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15156 echo $ac_n "(cached) $ac_c" 1>&6
15157 else
15158 ac_save_LIBS="$LIBS"
15159 LIBS="-lipc $LIBS"
15160 cat > conftest.$ac_ext <<EOF
15161 #line 15162 "configure"
15162 #include "confdefs.h"
15163 /* Override any gcc2 internal prototype to avoid an error. */
15164 /* We use char because int might match the return type of a gcc2
15165 builtin and then its argument prototype would still apply. */
15166 char shmat();
15167
15168 int main() {
15169 shmat()
15170 ; return 0; }
15171 EOF
15172 if { (eval echo configure:15173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15173 rm -rf conftest*
15174 eval "ac_cv_lib_$ac_lib_var=yes"
15175 else
15176 echo "configure: failed program was:" >&5
15177 cat conftest.$ac_ext >&5
15178 rm -rf conftest*
15179 eval "ac_cv_lib_$ac_lib_var=no"
15180 fi
15181 rm -f conftest*
15182 LIBS="$ac_save_LIBS"
15183
15184 fi
15185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15186 echo "$ac_t""yes" 1>&6
15187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15188 else
15189 echo "$ac_t""no" 1>&6
15190 fi
15191
15192 fi
15193 fi
15194
15195 # Check for libraries that X11R6 Xt/Xaw programs need.
15196 ac_save_LDFLAGS="$LDFLAGS"
15197 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15198 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15199 # check for ICE first), but we must link in the order -lSM -lICE or
15200 # we get undefined symbols. So assume we have SM if we have ICE.
15201 # These have to be linked with before -lX11, unlike the other
15202 # libraries we check for below, so use a different variable.
15203 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15204 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15205 echo "configure:15206: checking for IceConnectionNumber in -lICE" >&5
15206 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15208 echo $ac_n "(cached) $ac_c" 1>&6
15209 else
15210 ac_save_LIBS="$LIBS"
15211 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15212 cat > conftest.$ac_ext <<EOF
15213 #line 15214 "configure"
15214 #include "confdefs.h"
15215 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char IceConnectionNumber();
15219
15220 int main() {
15221 IceConnectionNumber()
15222 ; return 0; }
15223 EOF
15224 if { (eval echo configure:15225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15225 rm -rf conftest*
15226 eval "ac_cv_lib_$ac_lib_var=yes"
15227 else
15228 echo "configure: failed program was:" >&5
15229 cat conftest.$ac_ext >&5
15230 rm -rf conftest*
15231 eval "ac_cv_lib_$ac_lib_var=no"
15232 fi
15233 rm -f conftest*
15234 LIBS="$ac_save_LIBS"
15235
15236 fi
15237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15238 echo "$ac_t""yes" 1>&6
15239 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15240 else
15241 echo "$ac_t""no" 1>&6
15242 fi
15243
15244 LDFLAGS="$ac_save_LDFLAGS"
15245
15246 fi
15247
15248
15249 if test "$no_x" = "yes"; then
15250 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15251 fi
15252
15253 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15254 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15255 AFMINSTALL=afminstall
15256 COMPILED_X_PROGRAM=0
15257
15258 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15259 echo "configure:15260: checking for Motif/Lesstif headers" >&5
15260
15261 ac_find_includes=
15262 for ac_dir in $SEARCH_INCLUDE /usr/include;
15263 do
15264 if test -f "$ac_dir/Xm/Xm.h"; then
15265 ac_find_includes=$ac_dir
15266 break
15267 fi
15268 done
15269
15270 if test "$ac_find_includes" != "" ; then
15271 echo "$ac_t""found in $ac_find_includes" 1>&6
15272
15273 if test "x$ac_find_includes" = "x/usr/include"; then
15274 ac_path_to_include=""
15275 else
15276 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15277 result=$?
15278 if test $result = 0; then
15279 ac_path_to_include=""
15280 else
15281 ac_path_to_include=" -I$ac_find_includes"
15282 fi
15283 fi
15284
15285 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15286 else
15287 cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290
15291 #include <Xm/Xm.h>
15292
15293 int main() {
15294
15295 int version;
15296 version = xmUseVersion;
15297
15298 ; return 0; }
15299 EOF
15300 if { (eval echo configure:15301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15301 rm -rf conftest*
15302
15303 echo "$ac_t""found in default search path" 1>&6
15304 COMPILED_X_PROGRAM=1
15305
15306 else
15307 echo "configure: failed program was:" >&5
15308 cat conftest.$ac_ext >&5
15309 rm -rf conftest*
15310
15311 echo "$ac_t""no" 1>&6
15312 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15313
15314
15315 fi
15316 rm -f conftest*
15317 fi
15318
15319 if test "$COMPILED_X_PROGRAM" = 0; then
15320 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15321 echo "configure:15322: checking for Motif/Lesstif library" >&5
15322
15323 ac_find_libraries=
15324 for ac_dir in $SEARCH_LIB /usr/lib;
15325 do
15326 for ac_extension in a so sl dylib; do
15327 if test -f "$ac_dir/libXm.$ac_extension"; then
15328 ac_find_libraries=$ac_dir
15329 break 2
15330 fi
15331 done
15332 done
15333
15334 if test "$ac_find_libraries" != "" ; then
15335 echo "$ac_t""found at $ac_find_libraries" 1>&6
15336
15337
15338 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15339 result=$?
15340 if test $result = 0; then
15341 ac_path_to_link=""
15342 else
15343 ac_path_to_link=" -L$ac_find_libraries"
15344 fi
15345
15346 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15347 else
15348 save_CFLAGS=$CFLAGS
15349 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15350
15351 cat > conftest.$ac_ext <<EOF
15352 #line 15353 "configure"
15353 #include "confdefs.h"
15354
15355 #include <Xm/Xm.h>
15356
15357 int main() {
15358
15359 int version;
15360 version = xmUseVersion;
15361
15362 ; return 0; }
15363 EOF
15364 if { (eval echo configure:15365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15365 rm -rf conftest*
15366
15367 echo "$ac_t""found in default search path" 1>&6
15368 COMPILED_X_PROGRAM=1
15369
15370 else
15371 echo "configure: failed program was:" >&5
15372 cat conftest.$ac_ext >&5
15373 rm -rf conftest*
15374
15375 echo "$ac_t""no" 1>&6
15376 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15377
15378
15379 fi
15380 rm -f conftest*
15381
15382 CFLAGS=$save_CFLAGS
15383 fi
15384 fi
15385
15386 xpm_link=
15387 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15388 echo "configure:15389: checking for Xpm library" >&5
15389
15390 ac_find_libraries=
15391 for ac_dir in $SEARCH_LIB /usr/lib;
15392 do
15393 for ac_extension in a so sl dylib; do
15394 if test -f "$ac_dir/libXpm.$ac_extension"; then
15395 ac_find_libraries=$ac_dir
15396 break 2
15397 fi
15398 done
15399 done
15400
15401 if test "$ac_find_libraries" != "" ; then
15402
15403 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15404 result=$?
15405 if test $result = 0; then
15406 ac_path_to_link=""
15407 else
15408 ac_path_to_link=" -L$ac_find_libraries"
15409 fi
15410
15411 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15412
15413 xpm_link=" -lXpm"
15414 cat >> confdefs.h <<\EOF
15415 #define wxHAVE_LIB_XPM 1
15416 EOF
15417
15418 echo "$ac_t""found at $ac_find_libraries" 1>&6
15419 else
15420 save_CFLAGS=$CFLAGS
15421 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15422
15423 cat > conftest.$ac_ext <<EOF
15424 #line 15425 "configure"
15425 #include "confdefs.h"
15426
15427 #include <X11/xpm.h>
15428
15429 int main() {
15430
15431 int version;
15432 version = XpmLibraryVersion();
15433
15434 ; return 0; }
15435 EOF
15436 if { (eval echo configure:15437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15437 rm -rf conftest*
15438
15439 xpm_link=" -lXpm"
15440 cat >> confdefs.h <<\EOF
15441 #define wxHAVE_LIB_XPM 1
15442 EOF
15443
15444 echo "$ac_t""found in default search path" 1>&6
15445 COMPILED_X_PROGRAM=0
15446
15447 else
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15450 rm -rf conftest*
15451
15452 echo "$ac_t""no" 1>&6
15453 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15454
15455
15456 fi
15457 rm -f conftest*
15458
15459 CFLAGS=$save_CFLAGS
15460 fi
15461
15462 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15463 echo "configure:15464: checking if we need -lXp and/or -lSM -lICE" >&5
15464 libp_link=""
15465 libsm_ice_link=""
15466 libs_found=0
15467 for libp in "" " -lXp"; do
15468 if test "$libs_found" = "0"; then
15469 for libsm_ice in " -lSM -lICE"; do
15470 if test "$libs_found" = "0"; then
15471 save_LIBS="$LIBS"
15472 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15473 save_CFLAGS=$CFLAGS
15474 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15475
15476 cat > conftest.$ac_ext <<EOF
15477 #line 15478 "configure"
15478 #include "confdefs.h"
15479
15480 #include <Xm/Xm.h>
15481 #include <Xm/List.h>
15482
15483 int main() {
15484
15485 XmString string = NULL;
15486 Widget w = NULL;
15487 int position = 0;
15488 XmListAddItem(w, string, position);
15489
15490 ; return 0; }
15491 EOF
15492 if { (eval echo configure:15493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15493 rm -rf conftest*
15494
15495 libp_link="$libp"
15496 libsm_ice_link="$libsm_ice"
15497 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15498 libs_found=1
15499
15500 else
15501 echo "configure: failed program was:" >&5
15502 cat conftest.$ac_ext >&5
15503 rm -rf conftest*
15504
15505
15506 fi
15507 rm -f conftest*
15508
15509 LIBS="$save_LIBS"
15510 CFLAGS=$save_CFLAGS
15511 fi
15512 done
15513 fi
15514 done
15515
15516 if test "$libs_found" = "0"; then
15517 echo "$ac_t""can't find the right libraries" 1>&6
15518 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15519 fi
15520
15521 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15522 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15523 TOOLKIT=MOTIF
15524 GUIDIST=MOTIF_DIST
15525 fi
15526
15527 if test "$wxUSE_MAC" = 1; then
15528 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon"
15529
15530 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
15531 TOOLKIT=MAC
15532 GUIDIST=MACX_DIST
15533 fi
15534
15535 if test "$wxUSE_PM" = 1; then
15536 TOOLKIT=PM
15537 GUIDIST=GTK_DIST
15538 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15539 wxUSE_PROLOGIO="yes"
15540 wxUSE_RESOURCES="yes"
15541 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15542 wxUSE_THREADS="no"
15543 fi
15544
15545 if test "$TOOLKIT" = "PM" ; then
15546 TOOLKIT_DIR="os2"
15547 else
15548 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15549 fi
15550
15551 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15552
15553 if test "$wxUSE_UNIVERSAL" = "yes"; then
15554 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15555
15556 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15557 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15558
15559 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15560 if test "$wxUSE_X11" = 1; then
15561 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15562 else
15563 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15564 fi
15565 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15566 WIDGET_SET=univ
15567 else
15568 ALL_OBJECTS="\$(GUIOBJS)"
15569 ALL_SOURCES="\$(ALL_SOURCES)"
15570 ALL_HEADERS="\$(ALL_HEADERS)"
15571 fi
15572
15573 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15574
15575 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15576 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15577 fi
15578
15579 if test "$wxUSE_HTML" = "yes"; then
15580 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15581 fi
15582
15583 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15584 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15585 fi
15586 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15587 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15588 fi
15589 if test "$wxUSE_LIBPNG" = "builtin" ; then
15590 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15591 fi
15592
15593 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15594 DISTDIR="wx\$(TOOLKIT)"
15595 else
15596 USE_GUI=0
15597
15598 TOOLKIT_DIR="base"
15599
15600 if test "$USE_WIN32" = 1 ; then
15601 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15602 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15603
15604 TOOLKIT="MSW"
15605 else
15606 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15607 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15608 fi
15609
15610 ALL_SOURCES="\$(ALL_SOURCES)"
15611 ALL_HEADERS="\$(ALL_HEADERS)"
15612
15613 PORT_FILES="\${top_srcdir}/src/files.lst"
15614
15615 GUIDIST="BASE_DIST"
15616 DISTDIR="wxBase"
15617 fi
15618
15619
15620 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15621 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15622 fi
15623
15624 if test "$wxUSE_REGEX" = "builtin" ; then
15625 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15626 fi
15627 if test "$wxUSE_ZLIB" = "builtin" ; then
15628 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15629 fi
15630
15631
15632 if test "$wxUSE_OPENGL" = "yes"; then
15633 if test "$wxUSE_MAC" = 1; then
15634 OPENGL_LIBS="-framework OpenGL -framework AGL"
15635 elif test "$wxUSE_MSW" = 1; then
15636 OPENGL_LIBS="-lopengl32 -lglu32"
15637 else
15638 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15639 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15640 echo "configure:15641: checking for GL/gl.h" >&5
15641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15642 echo $ac_n "(cached) $ac_c" 1>&6
15643 else
15644 cat > conftest.$ac_ext <<EOF
15645 #line 15646 "configure"
15646 #include "confdefs.h"
15647 #include <GL/gl.h>
15648 EOF
15649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15650 { (eval echo configure:15651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15652 if test -z "$ac_err"; then
15653 rm -rf conftest*
15654 eval "ac_cv_header_$ac_safe=yes"
15655 else
15656 echo "$ac_err" >&5
15657 echo "configure: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15659 rm -rf conftest*
15660 eval "ac_cv_header_$ac_safe=no"
15661 fi
15662 rm -f conftest*
15663 fi
15664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15665 echo "$ac_t""yes" 1>&6
15666
15667 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15668 echo "configure:15669: checking for -lGL" >&5
15669
15670 ac_find_libraries=
15671 for ac_dir in $SEARCH_LIB /usr/lib;
15672 do
15673 for ac_extension in a so sl dylib; do
15674 if test -f "$ac_dir/libGL.$ac_extension"; then
15675 ac_find_libraries=$ac_dir
15676 break 2
15677 fi
15678 done
15679 done
15680
15681 if test "$ac_find_libraries" != "" ; then
15682
15683 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15684 result=$?
15685 if test $result = 0; then
15686 ac_path_to_link=""
15687 else
15688 ac_path_to_link=" -L$ac_find_libraries"
15689 fi
15690
15691 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15692 LDFLAGS_GL="$LDFLAGS"
15693 else
15694 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15695 fi
15696 OPENGL_LIBS="-lGL -lGLU"
15697 echo "$ac_t""yes" 1>&6
15698 else
15699 echo "$ac_t""no" 1>&6
15700 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15701 echo "configure:15702: checking for -lMesaGL" >&5
15702
15703 ac_find_libraries=
15704 for ac_dir in $SEARCH_LIB /usr/lib;
15705 do
15706 for ac_extension in a so sl dylib; do
15707 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15708 ac_find_libraries=$ac_dir
15709 break 2
15710 fi
15711 done
15712 done
15713
15714 if test "$ac_find_libraries" != "" ; then
15715
15716 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15717 result=$?
15718 if test $result = 0; then
15719 ac_path_to_link=""
15720 else
15721 ac_path_to_link=" -L$ac_find_libraries"
15722 fi
15723
15724 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15725 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15726 echo "$ac_t""yes" 1>&6
15727 else
15728 echo "$ac_t""no" 1>&6
15729 fi
15730 fi
15731
15732 else
15733 echo "$ac_t""no" 1>&6
15734 fi
15735
15736
15737 if test "x$OPENGL_LIBS" = "x"; then
15738 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15739 fi
15740 fi
15741
15742 if test "$wxUSE_OPENGL" = "yes"; then
15743 cat >> confdefs.h <<\EOF
15744 #define wxUSE_OPENGL 1
15745 EOF
15746
15747 cat >> confdefs.h <<\EOF
15748 #define wxUSE_GLCANVAS 1
15749 EOF
15750
15751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15752 fi
15753 fi
15754
15755 if test -z "$TOOLKIT_VPATH" ; then
15756 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15757 fi
15758
15759 if test -n "$TOOLKIT" ; then
15760 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15761 fi
15762
15763 lib_unicode_suffix=
15764 if test "$wxUSE_UNICODE" = "yes"; then
15765 lib_unicode_suffix=u
15766 fi
15767
15768 lib_debug_suffix=
15769 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15770 lib_debug_suffix=d
15771 fi
15772
15773 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15774
15775 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15776 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15777
15778 if test "$cross_compiling" = "yes"; then
15779 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15780 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15781 fi
15782
15783 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15784 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15785 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15786
15787 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15788 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15789
15790 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15791 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15792 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15793 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15794
15795 case "${host}" in
15796 *-*-cygwin* | *-*-mingw32* )
15797
15798
15799
15800 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15801 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15802 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15803 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15804 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15805 else
15806 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15807 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15808 fi
15809 ;;
15810
15811 *-*-darwin* )
15812 if test "$wxUSE_MAC" = 1; then
15813 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15814 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15815 fi
15816 ;;
15817 esac
15818
15819 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15820 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15821
15822 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15823 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15824
15825 if test "$wxUSE_OPENGL" = "yes"; then
15826 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15827 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15828 fi
15829
15830
15831
15832 if test "$wxUSE_SHARED" = "yes"; then
15833 case "${host}" in
15834 *-pc-os2_emx | *-pc-os2-emx | \
15835 *-pc-msdosdjgpp )
15836 wxUSE_SHARED=no
15837 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15838 ;;
15839 esac
15840 fi
15841
15842 if test "$wxUSE_SHARED" = "yes"; then
15843
15844 if test "$wxUSE_OPENGL" = "yes"; then
15845 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15846 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15847 else
15848 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15849 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15850 fi
15851
15852 if test "$GCC" = "yes"; then
15853 PIC_FLAG="-fPIC"
15854 fi
15855
15856
15857
15858 found_versioning=no
15859
15860 case "${host}" in
15861 *-*-solaris2* )
15862 if test "x$GCC" != "xyes" ; then
15863 LDFLAGS_VERSIONING="-M \$(top_builddir)/version-script"
15864 found_versioning=yes
15865 fi
15866 ;;
15867 esac
15868
15869 if test $found_versioning = no ; then
15870 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15871 echo "configure:15872: checking if the linker accepts --version-script" >&5
15872 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15873 echo $ac_n "(cached) $ac_c" 1>&6
15874 else
15875
15876 echo "VER_1 { *; };" >conftest.sym
15877 echo "int main() { return 0; }" >conftest.cpp
15878
15879 if { ac_try='
15880 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15881 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15882 if test -s conftest.stderr ; then
15883 wx_cv_version_script=no
15884 else
15885 wx_cv_version_script=yes
15886 fi
15887 else
15888 wx_cv_version_script=no
15889 fi
15890 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15891
15892 fi
15893
15894 echo "$ac_t""$wx_cv_version_script" 1>&6
15895 if test $wx_cv_version_script = yes ; then
15896 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15897 fi
15898 fi
15899
15900
15901 SHARED_LD="${CXX} -shared -o"
15902
15903 case "${host}" in
15904 *-hp-hpux* )
15905 if test "$GCC" = "yes"; then
15906 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15907 else
15908 LDFLAGS="$LDFLAGS -L/usr/lib"
15909
15910 SHARED_LD="${CXX} -b -o"
15911 PIC_FLAG="+Z"
15912 fi
15913
15914 if test "$wxUSE_OPENGL" = "yes"; then
15915 WX_ALL_INSTALLED="preinstall_gl"
15916 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15917 else
15918 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15919 fi
15920 ;;
15921
15922 *-*-linux* )
15923 if test "$GCC" != "yes"; then
15924 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15925 echo "configure:15926: checking for Intel compiler" >&5
15926 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15927 echo $ac_n "(cached) $ac_c" 1>&6
15928 else
15929
15930 cat > conftest.$ac_ext <<EOF
15931 #line 15932 "configure"
15932 #include "confdefs.h"
15933
15934 int main() {
15935
15936 #ifndef __INTEL_COMPILER
15937 #error Not icc
15938 #endif
15939
15940 ; return 0; }
15941 EOF
15942 if { (eval echo configure:15943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15943 rm -rf conftest*
15944 wx_cv_prog_icc=yes
15945 else
15946 echo "configure: failed program was:" >&5
15947 cat conftest.$ac_ext >&5
15948 rm -rf conftest*
15949 wx_cv_prog_icc=no
15950
15951 fi
15952 rm -f conftest*
15953
15954 fi
15955
15956 echo "$ac_t""$wx_cv_prog_icc" 1>&6
15957 if test "$wx_cv_prog_icc" = "yes"; then
15958 PIC_FLAG="-KPIC"
15959 fi
15960 fi
15961
15962 if test "$wxUSE_SONAME" = "yes" ; then
15963 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15964 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15965 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15966 fi
15967 ;;
15968
15969 *-*-solaris2* )
15970 if test "$GCC" = yes ; then
15971 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15972 else
15973 SHARED_LD="${CXX} -G -o"
15974 PIC_FLAG="-KPIC"
15975 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15976 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15977 fi
15978 ;;
15979
15980 *-*-darwin* )
15981 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
15982 CFLAGS="$CFLAGS -fno-common"
15983 CXXFLAGS="$CXXFLAGS -fno-common"
15984 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15985 PIC_FLAG="-dynamic -fPIC"
15986 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15987 SONAME_FLAGS_GL=${SONAME_FLAGS}
15988 ;;
15989
15990 *-*-aix* )
15991 if test "$GCC" != "yes"; then
15992 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15993 set dummy makeC++SharedLib; ac_word=$2
15994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15995 echo "configure:15996: checking for $ac_word" >&5
15996 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15997 echo $ac_n "(cached) $ac_c" 1>&6
15998 else
15999 if test -n "$AIX_CXX_LD"; then
16000 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16001 else
16002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16003 ac_dummy="$PATH"
16004 for ac_dir in $ac_dummy; do
16005 test -z "$ac_dir" && ac_dir=.
16006 if test -f $ac_dir/$ac_word; then
16007 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16008 break
16009 fi
16010 done
16011 IFS="$ac_save_ifs"
16012 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16013 fi
16014 fi
16015 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16016 if test -n "$AIX_CXX_LD"; then
16017 echo "$ac_t""$AIX_CXX_LD" 1>&6
16018 else
16019 echo "$ac_t""no" 1>&6
16020 fi
16021
16022
16023 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16024 fi
16025 ;;
16026
16027 *-*-cygwin* | *-*-mingw32* )
16028 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16029
16030 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16031 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16032
16033 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16034
16035 if test "$wxUSE_OPENGL" = "yes"; then
16036 WX_ALL_INSTALLED="preinstall_gl"
16037 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16038 else
16039 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16040 fi
16041 ;;
16042
16043 *-*-beos* )
16044 SHARED_LD="${LD} -shared -o"
16045 ;;
16046
16047 *-*-irix* )
16048 if test "$GCC" != "yes"; then
16049 PIC_FLAG="-KPIC"
16050 fi
16051 ;;
16052
16053 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16054 *-*-sunos4* | \
16055 *-*-osf* | \
16056 *-*-dgux5* | \
16057 *-*-sysv5* )
16058 ;;
16059
16060 *)
16061 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16062 esac
16063
16064 if test "x$WX_TARGET_LIBRARY" = "x"; then
16065 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16066 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16067 fi
16068
16069 WX_TARGET_LIBRARY_TYPE="so"
16070 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16071 fi
16072
16073 if test "$wxUSE_SHARED" = "no"; then
16074
16075 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16076 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16077 fi
16078
16079 if test "$wxUSE_MAC" = 1; then
16080 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16081 fi
16082
16083 if test "$wxUSE_OPENGL" = "yes"; then
16084 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16085 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16086 else
16087 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16088 fi
16089
16090 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16091 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16092
16093 WX_TARGET_LIBRARY_TYPE="a"
16094 INSTALL_LIBRARY='$(INSTALL_DATA)'
16095
16096 STATIC_FLAG="yes"
16097 else
16098 STATIC_FLAG="no"
16099 fi
16100
16101 if test "$wxUSE_MAC" = 1; then
16102 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16103 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16104 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16105 # Extract the first word of "Rez", so it can be a program name with args.
16106 set dummy Rez; ac_word=$2
16107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16108 echo "configure:16109: checking for $ac_word" >&5
16109 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16110 echo $ac_n "(cached) $ac_c" 1>&6
16111 else
16112 if test -n "$RESCOMP"; then
16113 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16114 else
16115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16116 ac_dummy="$PATH"
16117 for ac_dir in $ac_dummy; do
16118 test -z "$ac_dir" && ac_dir=.
16119 if test -f $ac_dir/$ac_word; then
16120 ac_cv_prog_RESCOMP="Rez"
16121 break
16122 fi
16123 done
16124 IFS="$ac_save_ifs"
16125 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16126 fi
16127 fi
16128 RESCOMP="$ac_cv_prog_RESCOMP"
16129 if test -n "$RESCOMP"; then
16130 echo "$ac_t""$RESCOMP" 1>&6
16131 else
16132 echo "$ac_t""no" 1>&6
16133 fi
16134
16135 # Extract the first word of "DeRez", so it can be a program name with args.
16136 set dummy DeRez; ac_word=$2
16137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16138 echo "configure:16139: checking for $ac_word" >&5
16139 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16140 echo $ac_n "(cached) $ac_c" 1>&6
16141 else
16142 if test -n "$DEREZ"; then
16143 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16144 else
16145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16146 ac_dummy="$PATH"
16147 for ac_dir in $ac_dummy; do
16148 test -z "$ac_dir" && ac_dir=.
16149 if test -f $ac_dir/$ac_word; then
16150 ac_cv_prog_DEREZ="DeRez"
16151 break
16152 fi
16153 done
16154 IFS="$ac_save_ifs"
16155 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16156 fi
16157 fi
16158 DEREZ="$ac_cv_prog_DEREZ"
16159 if test -n "$DEREZ"; then
16160 echo "$ac_t""$DEREZ" 1>&6
16161 else
16162 echo "$ac_t""no" 1>&6
16163 fi
16164
16165 MACOSX_BUNDLE="bundle"
16166 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
16167 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16168 else
16169 if test "$wxUSE_PM" = 1; then
16170 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
16171 fi
16172 fi
16173
16174
16175 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16176 echo "configure:16177: checking for ANSI C header files" >&5
16177 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16178 echo $ac_n "(cached) $ac_c" 1>&6
16179 else
16180 cat > conftest.$ac_ext <<EOF
16181 #line 16182 "configure"
16182 #include "confdefs.h"
16183 #include <stdlib.h>
16184 #include <stdarg.h>
16185 #include <string.h>
16186 #include <float.h>
16187 EOF
16188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16189 { (eval echo configure:16190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16191 if test -z "$ac_err"; then
16192 rm -rf conftest*
16193 ac_cv_header_stdc=yes
16194 else
16195 echo "$ac_err" >&5
16196 echo "configure: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16198 rm -rf conftest*
16199 ac_cv_header_stdc=no
16200 fi
16201 rm -f conftest*
16202
16203 if test $ac_cv_header_stdc = yes; then
16204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16205 cat > conftest.$ac_ext <<EOF
16206 #line 16207 "configure"
16207 #include "confdefs.h"
16208 #include <string.h>
16209 EOF
16210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16211 egrep "memchr" >/dev/null 2>&1; then
16212 :
16213 else
16214 rm -rf conftest*
16215 ac_cv_header_stdc=no
16216 fi
16217 rm -f conftest*
16218
16219 fi
16220
16221 if test $ac_cv_header_stdc = yes; then
16222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16223 cat > conftest.$ac_ext <<EOF
16224 #line 16225 "configure"
16225 #include "confdefs.h"
16226 #include <stdlib.h>
16227 EOF
16228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16229 egrep "free" >/dev/null 2>&1; then
16230 :
16231 else
16232 rm -rf conftest*
16233 ac_cv_header_stdc=no
16234 fi
16235 rm -f conftest*
16236
16237 fi
16238
16239 if test $ac_cv_header_stdc = yes; then
16240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16241 if test "$cross_compiling" = yes; then
16242 :
16243 else
16244 cat > conftest.$ac_ext <<EOF
16245 #line 16246 "configure"
16246 #include "confdefs.h"
16247 #include <ctype.h>
16248 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16249 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16251 int main () { int i; for (i = 0; i < 256; i++)
16252 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16253 exit (0); }
16254
16255 EOF
16256 if { (eval echo configure:16257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16257 then
16258 :
16259 else
16260 echo "configure: failed program was:" >&5
16261 cat conftest.$ac_ext >&5
16262 rm -fr conftest*
16263 ac_cv_header_stdc=no
16264 fi
16265 rm -fr conftest*
16266 fi
16267
16268 fi
16269 fi
16270
16271 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16272 if test $ac_cv_header_stdc = yes; then
16273 cat >> confdefs.h <<\EOF
16274 #define STDC_HEADERS 1
16275 EOF
16276
16277 fi
16278
16279 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16280 echo "configure:16281: checking for mode_t" >&5
16281 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16282 echo $ac_n "(cached) $ac_c" 1>&6
16283 else
16284 cat > conftest.$ac_ext <<EOF
16285 #line 16286 "configure"
16286 #include "confdefs.h"
16287 #include <sys/types.h>
16288 #if STDC_HEADERS
16289 #include <stdlib.h>
16290 #include <stddef.h>
16291 #endif
16292 EOF
16293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16294 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16295 rm -rf conftest*
16296 ac_cv_type_mode_t=yes
16297 else
16298 rm -rf conftest*
16299 ac_cv_type_mode_t=no
16300 fi
16301 rm -f conftest*
16302
16303 fi
16304 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16305 if test $ac_cv_type_mode_t = no; then
16306 cat >> confdefs.h <<\EOF
16307 #define mode_t int
16308 EOF
16309
16310 fi
16311
16312 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16313 echo "configure:16314: checking for off_t" >&5
16314 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16315 echo $ac_n "(cached) $ac_c" 1>&6
16316 else
16317 cat > conftest.$ac_ext <<EOF
16318 #line 16319 "configure"
16319 #include "confdefs.h"
16320 #include <sys/types.h>
16321 #if STDC_HEADERS
16322 #include <stdlib.h>
16323 #include <stddef.h>
16324 #endif
16325 EOF
16326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16327 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16328 rm -rf conftest*
16329 ac_cv_type_off_t=yes
16330 else
16331 rm -rf conftest*
16332 ac_cv_type_off_t=no
16333 fi
16334 rm -f conftest*
16335
16336 fi
16337 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16338 if test $ac_cv_type_off_t = no; then
16339 cat >> confdefs.h <<\EOF
16340 #define off_t long
16341 EOF
16342
16343 fi
16344
16345 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16346 echo "configure:16347: checking for pid_t" >&5
16347 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16348 echo $ac_n "(cached) $ac_c" 1>&6
16349 else
16350 cat > conftest.$ac_ext <<EOF
16351 #line 16352 "configure"
16352 #include "confdefs.h"
16353 #include <sys/types.h>
16354 #if STDC_HEADERS
16355 #include <stdlib.h>
16356 #include <stddef.h>
16357 #endif
16358 EOF
16359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16360 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16361 rm -rf conftest*
16362 ac_cv_type_pid_t=yes
16363 else
16364 rm -rf conftest*
16365 ac_cv_type_pid_t=no
16366 fi
16367 rm -f conftest*
16368
16369 fi
16370 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16371 if test $ac_cv_type_pid_t = no; then
16372 cat >> confdefs.h <<\EOF
16373 #define pid_t int
16374 EOF
16375
16376 fi
16377
16378 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16379 echo "configure:16380: checking for size_t" >&5
16380 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16381 echo $ac_n "(cached) $ac_c" 1>&6
16382 else
16383 cat > conftest.$ac_ext <<EOF
16384 #line 16385 "configure"
16385 #include "confdefs.h"
16386 #include <sys/types.h>
16387 #if STDC_HEADERS
16388 #include <stdlib.h>
16389 #include <stddef.h>
16390 #endif
16391 EOF
16392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16393 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16394 rm -rf conftest*
16395 ac_cv_type_size_t=yes
16396 else
16397 rm -rf conftest*
16398 ac_cv_type_size_t=no
16399 fi
16400 rm -f conftest*
16401
16402 fi
16403 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16404 if test $ac_cv_type_size_t = no; then
16405 cat >> confdefs.h <<\EOF
16406 #define size_t unsigned
16407 EOF
16408
16409 fi
16410
16411 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16412 echo "configure:16413: checking for uid_t in sys/types.h" >&5
16413 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16414 echo $ac_n "(cached) $ac_c" 1>&6
16415 else
16416 cat > conftest.$ac_ext <<EOF
16417 #line 16418 "configure"
16418 #include "confdefs.h"
16419 #include <sys/types.h>
16420 EOF
16421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16422 egrep "uid_t" >/dev/null 2>&1; then
16423 rm -rf conftest*
16424 ac_cv_type_uid_t=yes
16425 else
16426 rm -rf conftest*
16427 ac_cv_type_uid_t=no
16428 fi
16429 rm -f conftest*
16430
16431 fi
16432
16433 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16434 if test $ac_cv_type_uid_t = no; then
16435 cat >> confdefs.h <<\EOF
16436 #define uid_t int
16437 EOF
16438
16439 cat >> confdefs.h <<\EOF
16440 #define gid_t int
16441 EOF
16442
16443 fi
16444
16445
16446
16447 ac_ext=C
16448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16449 ac_cpp='$CXXCPP $CPPFLAGS'
16450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16452 cross_compiling=$ac_cv_prog_cxx_cross
16453
16454 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16455 echo "configure:16456: checking if size_t is unsigned int" >&5
16456 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16457 echo $ac_n "(cached) $ac_c" 1>&6
16458 else
16459 cat > conftest.$ac_ext <<EOF
16460 #line 16461 "configure"
16461 #include "confdefs.h"
16462 #include <stddef.h>
16463 int main() {
16464
16465 return 0; }
16466
16467 struct Foo { void foo(size_t); void foo(unsigned int); };
16468
16469 int bar() {
16470
16471 ; return 0; }
16472 EOF
16473 if { (eval echo configure:16474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16474 rm -rf conftest*
16475 wx_cv_size_t_is_uint=no
16476 else
16477 echo "configure: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16479 rm -rf conftest*
16480 wx_cv_size_t_is_uint=yes
16481
16482 fi
16483 rm -f conftest*
16484
16485 fi
16486
16487 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16488
16489 if test "$wx_cv_size_t_is_uint" = "yes"; then
16490 cat >> confdefs.h <<\EOF
16491 #define wxSIZE_T_IS_UINT 1
16492 EOF
16493
16494 else
16495 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16496 echo "configure:16497: checking if size_t is unsigned long" >&5
16497 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16498 echo $ac_n "(cached) $ac_c" 1>&6
16499 else
16500 cat > conftest.$ac_ext <<EOF
16501 #line 16502 "configure"
16502 #include "confdefs.h"
16503 #include <stddef.h>
16504 int main() {
16505
16506 return 0; }
16507
16508 struct Foo { void foo(size_t); void foo(unsigned long); };
16509
16510 int bar() {
16511
16512 ; return 0; }
16513 EOF
16514 if { (eval echo configure:16515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16515 rm -rf conftest*
16516 wx_cv_size_t_is_ulong=no
16517 else
16518 echo "configure: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16520 rm -rf conftest*
16521 wx_cv_size_t_is_ulong=yes
16522
16523 fi
16524 rm -f conftest*
16525
16526 fi
16527
16528 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16529
16530 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16531 cat >> confdefs.h <<\EOF
16532 #define wxSIZE_T_IS_ULONG 1
16533 EOF
16534
16535 fi
16536 fi
16537
16538 ac_ext=c
16539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16540 ac_cpp='$CPP $CPPFLAGS'
16541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16543 cross_compiling=$ac_cv_prog_cc_cross
16544
16545
16546
16547 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16548 echo "configure:16549: checking for pw_gecos in struct passwd" >&5
16549 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16550 echo $ac_n "(cached) $ac_c" 1>&6
16551 else
16552
16553 cat > conftest.$ac_ext <<EOF
16554 #line 16555 "configure"
16555 #include "confdefs.h"
16556 #include <pwd.h>
16557 int main() {
16558
16559 char *p;
16560 struct passwd *pw;
16561 p = pw->pw_gecos;
16562
16563 ; return 0; }
16564 EOF
16565 if { (eval echo configure:16566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16566 rm -rf conftest*
16567
16568 wx_cv_struct_pw_gecos=yes
16569
16570 else
16571 echo "configure: failed program was:" >&5
16572 cat conftest.$ac_ext >&5
16573 rm -rf conftest*
16574
16575 wx_cv_struct_pw_gecos=no
16576
16577
16578 fi
16579 rm -f conftest*
16580
16581
16582 fi
16583
16584 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16585
16586 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16587 cat >> confdefs.h <<\EOF
16588 #define HAVE_PW_GECOS 1
16589 EOF
16590
16591 fi
16592
16593
16594 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16595 cat >> confdefs.h <<\EOF
16596 #define wxUSE_WCHAR_T 1
16597 EOF
16598
16599
16600 WCSLEN_FOUND=0
16601 WCHAR_LINK=
16602 for ac_func in wcslen
16603 do
16604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16605 echo "configure:16606: checking for $ac_func" >&5
16606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16607 echo $ac_n "(cached) $ac_c" 1>&6
16608 else
16609 cat > conftest.$ac_ext <<EOF
16610 #line 16611 "configure"
16611 #include "confdefs.h"
16612 /* System header to define __stub macros and hopefully few prototypes,
16613 which can conflict with char $ac_func(); below. */
16614 #include <assert.h>
16615 /* Override any gcc2 internal prototype to avoid an error. */
16616 /* We use char because int might match the return type of a gcc2
16617 builtin and then its argument prototype would still apply. */
16618 char $ac_func();
16619
16620 int main() {
16621
16622 /* The GNU C library defines this for functions which it implements
16623 to always fail with ENOSYS. Some functions are actually named
16624 something starting with __ and the normal name is an alias. */
16625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16626 choke me
16627 #else
16628 $ac_func();
16629 #endif
16630
16631 ; return 0; }
16632 EOF
16633 if { (eval echo configure:16634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16634 rm -rf conftest*
16635 eval "ac_cv_func_$ac_func=yes"
16636 else
16637 echo "configure: failed program was:" >&5
16638 cat conftest.$ac_ext >&5
16639 rm -rf conftest*
16640 eval "ac_cv_func_$ac_func=no"
16641 fi
16642 rm -f conftest*
16643 fi
16644
16645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16646 echo "$ac_t""yes" 1>&6
16647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16648 cat >> confdefs.h <<EOF
16649 #define $ac_tr_func 1
16650 EOF
16651 WCSLEN_FOUND=1
16652 else
16653 echo "$ac_t""no" 1>&6
16654 fi
16655 done
16656
16657
16658 if test "$WCSLEN_FOUND" = 0; then
16659 if test "$TOOLKIT" = "MSW"; then
16660 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16661 echo "configure:16662: checking for wcslen in -lmsvcrt" >&5
16662 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16664 echo $ac_n "(cached) $ac_c" 1>&6
16665 else
16666 ac_save_LIBS="$LIBS"
16667 LIBS="-lmsvcrt $LIBS"
16668 cat > conftest.$ac_ext <<EOF
16669 #line 16670 "configure"
16670 #include "confdefs.h"
16671 /* Override any gcc2 internal prototype to avoid an error. */
16672 /* We use char because int might match the return type of a gcc2
16673 builtin and then its argument prototype would still apply. */
16674 char wcslen();
16675
16676 int main() {
16677 wcslen()
16678 ; return 0; }
16679 EOF
16680 if { (eval echo configure:16681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16681 rm -rf conftest*
16682 eval "ac_cv_lib_$ac_lib_var=yes"
16683 else
16684 echo "configure: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 rm -rf conftest*
16687 eval "ac_cv_lib_$ac_lib_var=no"
16688 fi
16689 rm -f conftest*
16690 LIBS="$ac_save_LIBS"
16691
16692 fi
16693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16694 echo "$ac_t""yes" 1>&6
16695 WCHAR_OK=1
16696 else
16697 echo "$ac_t""no" 1>&6
16698 fi
16699
16700 else
16701 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16702 echo "configure:16703: checking for wcslen in -lw" >&5
16703 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16705 echo $ac_n "(cached) $ac_c" 1>&6
16706 else
16707 ac_save_LIBS="$LIBS"
16708 LIBS="-lw $LIBS"
16709 cat > conftest.$ac_ext <<EOF
16710 #line 16711 "configure"
16711 #include "confdefs.h"
16712 /* Override any gcc2 internal prototype to avoid an error. */
16713 /* We use char because int might match the return type of a gcc2
16714 builtin and then its argument prototype would still apply. */
16715 char wcslen();
16716
16717 int main() {
16718 wcslen()
16719 ; return 0; }
16720 EOF
16721 if { (eval echo configure:16722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16722 rm -rf conftest*
16723 eval "ac_cv_lib_$ac_lib_var=yes"
16724 else
16725 echo "configure: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 rm -rf conftest*
16728 eval "ac_cv_lib_$ac_lib_var=no"
16729 fi
16730 rm -f conftest*
16731 LIBS="$ac_save_LIBS"
16732
16733 fi
16734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16735 echo "$ac_t""yes" 1>&6
16736
16737 WCHAR_LINK=" -lw"
16738 WCSLEN_FOUND=1
16739
16740 else
16741 echo "$ac_t""no" 1>&6
16742 fi
16743
16744 fi
16745 fi
16746
16747 if test "$WCSLEN_FOUND" = 1; then
16748 cat >> confdefs.h <<\EOF
16749 #define HAVE_WCSLEN 1
16750 EOF
16751
16752 fi
16753
16754 for ac_func in wcsrtombs
16755 do
16756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16757 echo "configure:16758: checking for $ac_func" >&5
16758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16759 echo $ac_n "(cached) $ac_c" 1>&6
16760 else
16761 cat > conftest.$ac_ext <<EOF
16762 #line 16763 "configure"
16763 #include "confdefs.h"
16764 /* System header to define __stub macros and hopefully few prototypes,
16765 which can conflict with char $ac_func(); below. */
16766 #include <assert.h>
16767 /* Override any gcc2 internal prototype to avoid an error. */
16768 /* We use char because int might match the return type of a gcc2
16769 builtin and then its argument prototype would still apply. */
16770 char $ac_func();
16771
16772 int main() {
16773
16774 /* The GNU C library defines this for functions which it implements
16775 to always fail with ENOSYS. Some functions are actually named
16776 something starting with __ and the normal name is an alias. */
16777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16778 choke me
16779 #else
16780 $ac_func();
16781 #endif
16782
16783 ; return 0; }
16784 EOF
16785 if { (eval echo configure:16786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16786 rm -rf conftest*
16787 eval "ac_cv_func_$ac_func=yes"
16788 else
16789 echo "configure: failed program was:" >&5
16790 cat conftest.$ac_ext >&5
16791 rm -rf conftest*
16792 eval "ac_cv_func_$ac_func=no"
16793 fi
16794 rm -f conftest*
16795 fi
16796
16797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16798 echo "$ac_t""yes" 1>&6
16799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16800 cat >> confdefs.h <<EOF
16801 #define $ac_tr_func 1
16802 EOF
16803
16804 else
16805 echo "$ac_t""no" 1>&6
16806 fi
16807 done
16808
16809 else
16810 echo "configure: warning: Wide character support is unavailable" 1>&2
16811 fi
16812
16813
16814 ac_ext=C
16815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16816 ac_cpp='$CXXCPP $CPPFLAGS'
16817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16819 cross_compiling=$ac_cv_prog_cxx_cross
16820
16821
16822 for ac_func in vsnprintf
16823 do
16824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16825 echo "configure:16826: checking for $ac_func" >&5
16826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16827 echo $ac_n "(cached) $ac_c" 1>&6
16828 else
16829 cat > conftest.$ac_ext <<EOF
16830 #line 16831 "configure"
16831 #include "confdefs.h"
16832 /* System header to define __stub macros and hopefully few prototypes,
16833 which can conflict with char $ac_func(); below. */
16834 #include <assert.h>
16835 /* Override any gcc2 internal prototype to avoid an error. */
16836 #ifdef __cplusplus
16837 extern "C"
16838 #endif
16839 /* We use char because int might match the return type of a gcc2
16840 builtin and then its argument prototype would still apply. */
16841 char $ac_func();
16842
16843 int main() {
16844
16845 /* The GNU C library defines this for functions which it implements
16846 to always fail with ENOSYS. Some functions are actually named
16847 something starting with __ and the normal name is an alias. */
16848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16849 choke me
16850 #else
16851 $ac_func();
16852 #endif
16853
16854 ; return 0; }
16855 EOF
16856 if { (eval echo configure:16857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16857 rm -rf conftest*
16858 eval "ac_cv_func_$ac_func=yes"
16859 else
16860 echo "configure: failed program was:" >&5
16861 cat conftest.$ac_ext >&5
16862 rm -rf conftest*
16863 eval "ac_cv_func_$ac_func=no"
16864 fi
16865 rm -f conftest*
16866 fi
16867
16868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16869 echo "$ac_t""yes" 1>&6
16870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16871 cat >> confdefs.h <<EOF
16872 #define $ac_tr_func 1
16873 EOF
16874
16875 else
16876 echo "$ac_t""no" 1>&6
16877 fi
16878 done
16879
16880
16881 if test "$wxUSE_UNICODE" = yes; then
16882 for ac_func in fputwc wprintf vswprintf
16883 do
16884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16885 echo "configure:16886: checking for $ac_func" >&5
16886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
16888 else
16889 cat > conftest.$ac_ext <<EOF
16890 #line 16891 "configure"
16891 #include "confdefs.h"
16892 /* System header to define __stub macros and hopefully few prototypes,
16893 which can conflict with char $ac_func(); below. */
16894 #include <assert.h>
16895 /* Override any gcc2 internal prototype to avoid an error. */
16896 #ifdef __cplusplus
16897 extern "C"
16898 #endif
16899 /* We use char because int might match the return type of a gcc2
16900 builtin and then its argument prototype would still apply. */
16901 char $ac_func();
16902
16903 int main() {
16904
16905 /* The GNU C library defines this for functions which it implements
16906 to always fail with ENOSYS. Some functions are actually named
16907 something starting with __ and the normal name is an alias. */
16908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16909 choke me
16910 #else
16911 $ac_func();
16912 #endif
16913
16914 ; return 0; }
16915 EOF
16916 if { (eval echo configure:16917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16917 rm -rf conftest*
16918 eval "ac_cv_func_$ac_func=yes"
16919 else
16920 echo "configure: failed program was:" >&5
16921 cat conftest.$ac_ext >&5
16922 rm -rf conftest*
16923 eval "ac_cv_func_$ac_func=no"
16924 fi
16925 rm -f conftest*
16926 fi
16927
16928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16929 echo "$ac_t""yes" 1>&6
16930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16931 cat >> confdefs.h <<EOF
16932 #define $ac_tr_func 1
16933 EOF
16934
16935 else
16936 echo "$ac_t""no" 1>&6
16937 fi
16938 done
16939
16940 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
16941 echo "configure:16942: checking for _vsnwprintf" >&5
16942 cat > conftest.$ac_ext <<EOF
16943 #line 16944 "configure"
16944 #include "confdefs.h"
16945 #include <wchar.h>
16946 int main() {
16947 &_vsnwprintf;
16948 ; return 0; }
16949 EOF
16950 if { (eval echo configure:16951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16951 rm -rf conftest*
16952 echo "$ac_t""yes" 1>&6
16953 cat >> confdefs.h <<\EOF
16954 #define HAVE__VSNWPRINTF 1
16955 EOF
16956
16957 else
16958 echo "configure: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 rm -rf conftest*
16961 echo "$ac_t""no" 1>&6
16962 fi
16963 rm -f conftest*;
16964 fi
16965
16966 ac_ext=c
16967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16968 ac_cpp='$CPP $CPPFLAGS'
16969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16971 cross_compiling=$ac_cv_prog_cc_cross
16972
16973
16974
16975
16976 if test "$TOOLKIT" != "MSW"; then
16977
16978
16979
16980 ac_ext=C
16981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16982 ac_cpp='$CXXCPP $CPPFLAGS'
16983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16985 cross_compiling=$ac_cv_prog_cxx_cross
16986
16987
16988
16989 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16990 if test "${with_libiconv_prefix+set}" = set; then
16991 withval="$with_libiconv_prefix"
16992
16993 for dir in `echo "$withval" | tr : ' '`; do
16994 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16995 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16996 done
16997
16998 fi
16999
17000
17001 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17002 echo "configure:17003: checking for iconv" >&5
17003 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17004 echo $ac_n "(cached) $ac_c" 1>&6
17005 else
17006
17007 am_cv_func_iconv="no, consider installing GNU libiconv"
17008 am_cv_lib_iconv=no
17009 cat > conftest.$ac_ext <<EOF
17010 #line 17011 "configure"
17011 #include "confdefs.h"
17012 #include <stdlib.h>
17013 #include <iconv.h>
17014 int main() {
17015 iconv_t cd = iconv_open("","");
17016 iconv(cd,NULL,NULL,NULL,NULL);
17017 iconv_close(cd);
17018 ; return 0; }
17019 EOF
17020 if { (eval echo configure:17021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17021 rm -rf conftest*
17022 am_cv_func_iconv=yes
17023 else
17024 echo "configure: failed program was:" >&5
17025 cat conftest.$ac_ext >&5
17026 fi
17027 rm -f conftest*
17028 if test "$am_cv_func_iconv" != yes; then
17029 am_save_LIBS="$LIBS"
17030 LIBS="$LIBS -liconv"
17031 cat > conftest.$ac_ext <<EOF
17032 #line 17033 "configure"
17033 #include "confdefs.h"
17034 #include <stdlib.h>
17035 #include <iconv.h>
17036 int main() {
17037 iconv_t cd = iconv_open("","");
17038 iconv(cd,NULL,NULL,NULL,NULL);
17039 iconv_close(cd);
17040 ; return 0; }
17041 EOF
17042 if { (eval echo configure:17043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17043 rm -rf conftest*
17044 am_cv_lib_iconv=yes
17045 am_cv_func_iconv=yes
17046 else
17047 echo "configure: failed program was:" >&5
17048 cat conftest.$ac_ext >&5
17049 fi
17050 rm -f conftest*
17051 LIBS="$am_save_LIBS"
17052 fi
17053
17054 fi
17055
17056 echo "$ac_t""$am_cv_func_iconv" 1>&6
17057 if test "$am_cv_func_iconv" = yes; then
17058 cat >> confdefs.h <<\EOF
17059 #define HAVE_ICONV 1
17060 EOF
17061
17062 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17063 echo "configure:17064: checking if iconv needs const" >&5
17064 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17065 echo $ac_n "(cached) $ac_c" 1>&6
17066 else
17067 cat > conftest.$ac_ext <<EOF
17068 #line 17069 "configure"
17069 #include "confdefs.h"
17070
17071 #include <stdlib.h>
17072 #include <iconv.h>
17073 extern
17074 #ifdef __cplusplus
17075 "C"
17076 #endif
17077 #if defined(__STDC__) || defined(__cplusplus)
17078 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17079 #else
17080 size_t iconv();
17081 #endif
17082
17083 int main() {
17084
17085 ; return 0; }
17086 EOF
17087 if { (eval echo configure:17088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17088 rm -rf conftest*
17089 wx_cv_func_iconv_const="no"
17090 else
17091 echo "configure: failed program was:" >&5
17092 cat conftest.$ac_ext >&5
17093 rm -rf conftest*
17094 wx_cv_func_iconv_const="yes"
17095
17096 fi
17097 rm -f conftest*
17098
17099 fi
17100
17101 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17102
17103 iconv_const=
17104 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17105 iconv_const="const"
17106 fi
17107
17108 cat >> confdefs.h <<EOF
17109 #define ICONV_CONST $iconv_const
17110 EOF
17111
17112 fi
17113 LIBICONV=
17114 if test "$am_cv_lib_iconv" = yes; then
17115 LIBICONV="-liconv"
17116 fi
17117
17118
17119 LIBS="$LIBICONV $LIBS"
17120 ac_ext=c
17121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17122 ac_cpp='$CPP $CPPFLAGS'
17123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17125 cross_compiling=$ac_cv_prog_cc_cross
17126
17127
17128 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17129 for ac_func in sigaction
17130 do
17131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17132 echo "configure:17133: checking for $ac_func" >&5
17133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17134 echo $ac_n "(cached) $ac_c" 1>&6
17135 else
17136 cat > conftest.$ac_ext <<EOF
17137 #line 17138 "configure"
17138 #include "confdefs.h"
17139 /* System header to define __stub macros and hopefully few prototypes,
17140 which can conflict with char $ac_func(); below. */
17141 #include <assert.h>
17142 /* Override any gcc2 internal prototype to avoid an error. */
17143 /* We use char because int might match the return type of a gcc2
17144 builtin and then its argument prototype would still apply. */
17145 char $ac_func();
17146
17147 int main() {
17148
17149 /* The GNU C library defines this for functions which it implements
17150 to always fail with ENOSYS. Some functions are actually named
17151 something starting with __ and the normal name is an alias. */
17152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17153 choke me
17154 #else
17155 $ac_func();
17156 #endif
17157
17158 ; return 0; }
17159 EOF
17160 if { (eval echo configure:17161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17161 rm -rf conftest*
17162 eval "ac_cv_func_$ac_func=yes"
17163 else
17164 echo "configure: failed program was:" >&5
17165 cat conftest.$ac_ext >&5
17166 rm -rf conftest*
17167 eval "ac_cv_func_$ac_func=no"
17168 fi
17169 rm -f conftest*
17170 fi
17171
17172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17173 echo "$ac_t""yes" 1>&6
17174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17175 cat >> confdefs.h <<EOF
17176 #define $ac_tr_func 1
17177 EOF
17178
17179 else
17180 echo "$ac_t""no" 1>&6
17181 fi
17182 done
17183
17184
17185 if test "$ac_cv_func_sigaction" = "no"; then
17186 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17187 wxUSE_ON_FATAL_EXCEPTION=no
17188 fi
17189
17190 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17191
17192 ac_ext=C
17193 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17194 ac_cpp='$CXXCPP $CPPFLAGS'
17195 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17196 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17197 cross_compiling=$ac_cv_prog_cxx_cross
17198
17199
17200 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17201 echo "configure:17202: checking for sa_handler type" >&5
17202 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17203 echo $ac_n "(cached) $ac_c" 1>&6
17204 else
17205
17206 cat > conftest.$ac_ext <<EOF
17207 #line 17208 "configure"
17208 #include "confdefs.h"
17209 #include <signal.h>
17210 int main() {
17211
17212 extern void testSigHandler(int);
17213
17214 struct sigaction sa;
17215 sa.sa_handler = testSigHandler;
17216
17217 ; return 0; }
17218 EOF
17219 if { (eval echo configure:17220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17220 rm -rf conftest*
17221
17222 wx_cv_type_sa_handler=int
17223
17224 else
17225 echo "configure: failed program was:" >&5
17226 cat conftest.$ac_ext >&5
17227 rm -rf conftest*
17228
17229 wx_cv_type_sa_handler=void
17230
17231 fi
17232 rm -f conftest*
17233
17234 fi
17235
17236 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17237
17238 ac_ext=c
17239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17240 ac_cpp='$CPP $CPPFLAGS'
17241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17243 cross_compiling=$ac_cv_prog_cc_cross
17244
17245
17246 cat >> confdefs.h <<EOF
17247 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17248 EOF
17249
17250 fi
17251 fi
17252
17253 for ac_func in mkstemp mktemp
17254 do
17255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17256 echo "configure:17257: checking for $ac_func" >&5
17257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17258 echo $ac_n "(cached) $ac_c" 1>&6
17259 else
17260 cat > conftest.$ac_ext <<EOF
17261 #line 17262 "configure"
17262 #include "confdefs.h"
17263 /* System header to define __stub macros and hopefully few prototypes,
17264 which can conflict with char $ac_func(); below. */
17265 #include <assert.h>
17266 /* Override any gcc2 internal prototype to avoid an error. */
17267 /* We use char because int might match the return type of a gcc2
17268 builtin and then its argument prototype would still apply. */
17269 char $ac_func();
17270
17271 int main() {
17272
17273 /* The GNU C library defines this for functions which it implements
17274 to always fail with ENOSYS. Some functions are actually named
17275 something starting with __ and the normal name is an alias. */
17276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17277 choke me
17278 #else
17279 $ac_func();
17280 #endif
17281
17282 ; return 0; }
17283 EOF
17284 if { (eval echo configure:17285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17285 rm -rf conftest*
17286 eval "ac_cv_func_$ac_func=yes"
17287 else
17288 echo "configure: failed program was:" >&5
17289 cat conftest.$ac_ext >&5
17290 rm -rf conftest*
17291 eval "ac_cv_func_$ac_func=no"
17292 fi
17293 rm -f conftest*
17294 fi
17295
17296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17297 echo "$ac_t""yes" 1>&6
17298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17299 cat >> confdefs.h <<EOF
17300 #define $ac_tr_func 1
17301 EOF
17302 break
17303 else
17304 echo "$ac_t""no" 1>&6
17305 fi
17306 done
17307
17308
17309 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17310 echo "configure:17311: checking for statfs" >&5
17311 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17312 echo $ac_n "(cached) $ac_c" 1>&6
17313 else
17314 cat > conftest.$ac_ext <<EOF
17315 #line 17316 "configure"
17316 #include "confdefs.h"
17317
17318 #if defined(__BSD__)
17319 #include <sys/param.h>
17320 #include <sys/mount.h>
17321 #else
17322 #include <sys/vfs.h>
17323 #endif
17324
17325 int main() {
17326
17327 long l;
17328 struct statfs fs;
17329 statfs("/", &fs);
17330 l = fs.f_bsize;
17331 l += fs.f_blocks;
17332 l += fs.f_bavail;
17333
17334 ; return 0; }
17335 EOF
17336 if { (eval echo configure:17337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17337 rm -rf conftest*
17338
17339 wx_cv_func_statfs=yes
17340
17341 else
17342 echo "configure: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
17344 rm -rf conftest*
17345
17346 wx_cv_func_statfs=no
17347
17348
17349 fi
17350 rm -f conftest*
17351
17352 fi
17353
17354 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17355
17356 if test "$wx_cv_func_statfs" = "yes"; then
17357 cat >> confdefs.h <<\EOF
17358 #define HAVE_STATFS 1
17359 EOF
17360
17361 else
17362 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17363 echo "configure:17364: checking for statvfs" >&5
17364 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17365 echo $ac_n "(cached) $ac_c" 1>&6
17366 else
17367 cat > conftest.$ac_ext <<EOF
17368 #line 17369 "configure"
17369 #include "confdefs.h"
17370
17371 #include <sys/statvfs.h>
17372
17373 int main() {
17374
17375 long l;
17376 struct statvfs fs;
17377 statvfs("/", &fs);
17378 l = fs.f_bsize;
17379 l += fs.f_blocks;
17380 l += fs.f_bavail;
17381
17382 ; return 0; }
17383 EOF
17384 if { (eval echo configure:17385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17385 rm -rf conftest*
17386
17387 wx_cv_func_statvfs=yes
17388
17389 else
17390 echo "configure: failed program was:" >&5
17391 cat conftest.$ac_ext >&5
17392 rm -rf conftest*
17393
17394 wx_cv_func_statvfs=no
17395
17396
17397 fi
17398 rm -f conftest*
17399
17400 fi
17401
17402 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17403
17404 if test "$wx_cv_func_statvfs" = "yes"; then
17405 cat >> confdefs.h <<\EOF
17406 #define HAVE_STATVFS 1
17407 EOF
17408
17409 else
17410 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17411 fi
17412 fi
17413
17414 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17415 for ac_func in fcntl flock
17416 do
17417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17418 echo "configure:17419: checking for $ac_func" >&5
17419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17420 echo $ac_n "(cached) $ac_c" 1>&6
17421 else
17422 cat > conftest.$ac_ext <<EOF
17423 #line 17424 "configure"
17424 #include "confdefs.h"
17425 /* System header to define __stub macros and hopefully few prototypes,
17426 which can conflict with char $ac_func(); below. */
17427 #include <assert.h>
17428 /* Override any gcc2 internal prototype to avoid an error. */
17429 /* We use char because int might match the return type of a gcc2
17430 builtin and then its argument prototype would still apply. */
17431 char $ac_func();
17432
17433 int main() {
17434
17435 /* The GNU C library defines this for functions which it implements
17436 to always fail with ENOSYS. Some functions are actually named
17437 something starting with __ and the normal name is an alias. */
17438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17439 choke me
17440 #else
17441 $ac_func();
17442 #endif
17443
17444 ; return 0; }
17445 EOF
17446 if { (eval echo configure:17447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17447 rm -rf conftest*
17448 eval "ac_cv_func_$ac_func=yes"
17449 else
17450 echo "configure: failed program was:" >&5
17451 cat conftest.$ac_ext >&5
17452 rm -rf conftest*
17453 eval "ac_cv_func_$ac_func=no"
17454 fi
17455 rm -f conftest*
17456 fi
17457
17458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17459 echo "$ac_t""yes" 1>&6
17460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17461 cat >> confdefs.h <<EOF
17462 #define $ac_tr_func 1
17463 EOF
17464 break
17465 else
17466 echo "$ac_t""no" 1>&6
17467 fi
17468 done
17469
17470
17471 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17472 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17473 wxUSE_SNGLINST_CHECKER=no
17474 fi
17475 fi
17476
17477 for ac_func in timegm
17478 do
17479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17480 echo "configure:17481: checking for $ac_func" >&5
17481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17482 echo $ac_n "(cached) $ac_c" 1>&6
17483 else
17484 cat > conftest.$ac_ext <<EOF
17485 #line 17486 "configure"
17486 #include "confdefs.h"
17487 /* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char $ac_func(); below. */
17489 #include <assert.h>
17490 /* Override any gcc2 internal prototype to avoid an error. */
17491 /* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17493 char $ac_func();
17494
17495 int main() {
17496
17497 /* The GNU C library defines this for functions which it implements
17498 to always fail with ENOSYS. Some functions are actually named
17499 something starting with __ and the normal name is an alias. */
17500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17501 choke me
17502 #else
17503 $ac_func();
17504 #endif
17505
17506 ; return 0; }
17507 EOF
17508 if { (eval echo configure:17509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17509 rm -rf conftest*
17510 eval "ac_cv_func_$ac_func=yes"
17511 else
17512 echo "configure: failed program was:" >&5
17513 cat conftest.$ac_ext >&5
17514 rm -rf conftest*
17515 eval "ac_cv_func_$ac_func=no"
17516 fi
17517 rm -f conftest*
17518 fi
17519
17520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17521 echo "$ac_t""yes" 1>&6
17522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17523 cat >> confdefs.h <<EOF
17524 #define $ac_tr_func 1
17525 EOF
17526
17527 else
17528 echo "$ac_t""no" 1>&6
17529 fi
17530 done
17531
17532
17533 for ac_func in putenv setenv
17534 do
17535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17536 echo "configure:17537: checking for $ac_func" >&5
17537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17538 echo $ac_n "(cached) $ac_c" 1>&6
17539 else
17540 cat > conftest.$ac_ext <<EOF
17541 #line 17542 "configure"
17542 #include "confdefs.h"
17543 /* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char $ac_func(); below. */
17545 #include <assert.h>
17546 /* Override any gcc2 internal prototype to avoid an error. */
17547 /* We use char because int might match the return type of a gcc2
17548 builtin and then its argument prototype would still apply. */
17549 char $ac_func();
17550
17551 int main() {
17552
17553 /* The GNU C library defines this for functions which it implements
17554 to always fail with ENOSYS. Some functions are actually named
17555 something starting with __ and the normal name is an alias. */
17556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17557 choke me
17558 #else
17559 $ac_func();
17560 #endif
17561
17562 ; return 0; }
17563 EOF
17564 if { (eval echo configure:17565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17565 rm -rf conftest*
17566 eval "ac_cv_func_$ac_func=yes"
17567 else
17568 echo "configure: failed program was:" >&5
17569 cat conftest.$ac_ext >&5
17570 rm -rf conftest*
17571 eval "ac_cv_func_$ac_func=no"
17572 fi
17573 rm -f conftest*
17574 fi
17575
17576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17577 echo "$ac_t""yes" 1>&6
17578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17579 cat >> confdefs.h <<EOF
17580 #define $ac_tr_func 1
17581 EOF
17582 break
17583 else
17584 echo "$ac_t""no" 1>&6
17585 fi
17586 done
17587
17588
17589 HAVE_SOME_SLEEP_FUNC=0
17590 if test "$USE_BEOS" = 1; then
17591 cat >> confdefs.h <<\EOF
17592 #define HAVE_SLEEP 1
17593 EOF
17594
17595 HAVE_SOME_SLEEP_FUNC=1
17596 fi
17597
17598 if test "$USE_DARWIN" = 1; then
17599 cat >> confdefs.h <<\EOF
17600 #define HAVE_USLEEP 1
17601 EOF
17602
17603 HAVE_SOME_SLEEP_FUNC=1
17604 fi
17605
17606 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17607 POSIX4_LINK=
17608 for ac_func in nanosleep
17609 do
17610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17611 echo "configure:17612: checking for $ac_func" >&5
17612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17613 echo $ac_n "(cached) $ac_c" 1>&6
17614 else
17615 cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 /* System header to define __stub macros and hopefully few prototypes,
17619 which can conflict with char $ac_func(); below. */
17620 #include <assert.h>
17621 /* Override any gcc2 internal prototype to avoid an error. */
17622 /* We use char because int might match the return type of a gcc2
17623 builtin and then its argument prototype would still apply. */
17624 char $ac_func();
17625
17626 int main() {
17627
17628 /* The GNU C library defines this for functions which it implements
17629 to always fail with ENOSYS. Some functions are actually named
17630 something starting with __ and the normal name is an alias. */
17631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17632 choke me
17633 #else
17634 $ac_func();
17635 #endif
17636
17637 ; return 0; }
17638 EOF
17639 if { (eval echo configure:17640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17640 rm -rf conftest*
17641 eval "ac_cv_func_$ac_func=yes"
17642 else
17643 echo "configure: failed program was:" >&5
17644 cat conftest.$ac_ext >&5
17645 rm -rf conftest*
17646 eval "ac_cv_func_$ac_func=no"
17647 fi
17648 rm -f conftest*
17649 fi
17650
17651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17652 echo "$ac_t""yes" 1>&6
17653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17654 cat >> confdefs.h <<EOF
17655 #define $ac_tr_func 1
17656 EOF
17657 cat >> confdefs.h <<\EOF
17658 #define HAVE_NANOSLEEP 1
17659 EOF
17660
17661 else
17662 echo "$ac_t""no" 1>&6
17663 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17664 echo "configure:17665: checking for nanosleep in -lposix4" >&5
17665 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17667 echo $ac_n "(cached) $ac_c" 1>&6
17668 else
17669 ac_save_LIBS="$LIBS"
17670 LIBS="-lposix4 $LIBS"
17671 cat > conftest.$ac_ext <<EOF
17672 #line 17673 "configure"
17673 #include "confdefs.h"
17674 /* Override any gcc2 internal prototype to avoid an error. */
17675 /* We use char because int might match the return type of a gcc2
17676 builtin and then its argument prototype would still apply. */
17677 char nanosleep();
17678
17679 int main() {
17680 nanosleep()
17681 ; return 0; }
17682 EOF
17683 if { (eval echo configure:17684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17684 rm -rf conftest*
17685 eval "ac_cv_lib_$ac_lib_var=yes"
17686 else
17687 echo "configure: failed program was:" >&5
17688 cat conftest.$ac_ext >&5
17689 rm -rf conftest*
17690 eval "ac_cv_lib_$ac_lib_var=no"
17691 fi
17692 rm -f conftest*
17693 LIBS="$ac_save_LIBS"
17694
17695 fi
17696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17697 echo "$ac_t""yes" 1>&6
17698
17699 cat >> confdefs.h <<\EOF
17700 #define HAVE_NANOSLEEP 1
17701 EOF
17702
17703 POSIX4_LINK=" -lposix4"
17704
17705 else
17706 echo "$ac_t""no" 1>&6
17707
17708 for ac_func in usleep
17709 do
17710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17711 echo "configure:17712: checking for $ac_func" >&5
17712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17713 echo $ac_n "(cached) $ac_c" 1>&6
17714 else
17715 cat > conftest.$ac_ext <<EOF
17716 #line 17717 "configure"
17717 #include "confdefs.h"
17718 /* System header to define __stub macros and hopefully few prototypes,
17719 which can conflict with char $ac_func(); below. */
17720 #include <assert.h>
17721 /* Override any gcc2 internal prototype to avoid an error. */
17722 /* We use char because int might match the return type of a gcc2
17723 builtin and then its argument prototype would still apply. */
17724 char $ac_func();
17725
17726 int main() {
17727
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17732 choke me
17733 #else
17734 $ac_func();
17735 #endif
17736
17737 ; return 0; }
17738 EOF
17739 if { (eval echo configure:17740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17740 rm -rf conftest*
17741 eval "ac_cv_func_$ac_func=yes"
17742 else
17743 echo "configure: failed program was:" >&5
17744 cat conftest.$ac_ext >&5
17745 rm -rf conftest*
17746 eval "ac_cv_func_$ac_func=no"
17747 fi
17748 rm -f conftest*
17749 fi
17750
17751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17752 echo "$ac_t""yes" 1>&6
17753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17754 cat >> confdefs.h <<EOF
17755 #define $ac_tr_func 1
17756 EOF
17757 cat >> confdefs.h <<\EOF
17758 #define HAVE_USLEEP 1
17759 EOF
17760
17761 else
17762 echo "$ac_t""no" 1>&6
17763 echo "configure: warning: wxSleep() function will not work" 1>&2
17764
17765 fi
17766 done
17767
17768
17769
17770 fi
17771
17772
17773
17774 fi
17775 done
17776
17777 fi
17778
17779 for ac_func in uname gethostname
17780 do
17781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17782 echo "configure:17783: checking for $ac_func" >&5
17783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17784 echo $ac_n "(cached) $ac_c" 1>&6
17785 else
17786 cat > conftest.$ac_ext <<EOF
17787 #line 17788 "configure"
17788 #include "confdefs.h"
17789 /* System header to define __stub macros and hopefully few prototypes,
17790 which can conflict with char $ac_func(); below. */
17791 #include <assert.h>
17792 /* Override any gcc2 internal prototype to avoid an error. */
17793 /* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17795 char $ac_func();
17796
17797 int main() {
17798
17799 /* The GNU C library defines this for functions which it implements
17800 to always fail with ENOSYS. Some functions are actually named
17801 something starting with __ and the normal name is an alias. */
17802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17803 choke me
17804 #else
17805 $ac_func();
17806 #endif
17807
17808 ; return 0; }
17809 EOF
17810 if { (eval echo configure:17811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17811 rm -rf conftest*
17812 eval "ac_cv_func_$ac_func=yes"
17813 else
17814 echo "configure: failed program was:" >&5
17815 cat conftest.$ac_ext >&5
17816 rm -rf conftest*
17817 eval "ac_cv_func_$ac_func=no"
17818 fi
17819 rm -f conftest*
17820 fi
17821
17822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17823 echo "$ac_t""yes" 1>&6
17824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17825 cat >> confdefs.h <<EOF
17826 #define $ac_tr_func 1
17827 EOF
17828 break
17829 else
17830 echo "$ac_t""no" 1>&6
17831 fi
17832 done
17833
17834
17835
17836 ac_ext=C
17837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17838 ac_cpp='$CXXCPP $CPPFLAGS'
17839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17841 cross_compiling=$ac_cv_prog_cxx_cross
17842
17843
17844 for ac_func in strtok_r
17845 do
17846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17847 echo "configure:17848: checking for $ac_func" >&5
17848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17849 echo $ac_n "(cached) $ac_c" 1>&6
17850 else
17851 cat > conftest.$ac_ext <<EOF
17852 #line 17853 "configure"
17853 #include "confdefs.h"
17854 /* System header to define __stub macros and hopefully few prototypes,
17855 which can conflict with char $ac_func(); below. */
17856 #include <assert.h>
17857 /* Override any gcc2 internal prototype to avoid an error. */
17858 #ifdef __cplusplus
17859 extern "C"
17860 #endif
17861 /* We use char because int might match the return type of a gcc2
17862 builtin and then its argument prototype would still apply. */
17863 char $ac_func();
17864
17865 int main() {
17866
17867 /* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17871 choke me
17872 #else
17873 $ac_func();
17874 #endif
17875
17876 ; return 0; }
17877 EOF
17878 if { (eval echo configure:17879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17879 rm -rf conftest*
17880 eval "ac_cv_func_$ac_func=yes"
17881 else
17882 echo "configure: failed program was:" >&5
17883 cat conftest.$ac_ext >&5
17884 rm -rf conftest*
17885 eval "ac_cv_func_$ac_func=no"
17886 fi
17887 rm -f conftest*
17888 fi
17889
17890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17891 echo "$ac_t""yes" 1>&6
17892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17893 cat >> confdefs.h <<EOF
17894 #define $ac_tr_func 1
17895 EOF
17896
17897 else
17898 echo "$ac_t""no" 1>&6
17899 fi
17900 done
17901
17902
17903 ac_ext=c
17904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17905 ac_cpp='$CPP $CPPFLAGS'
17906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17908 cross_compiling=$ac_cv_prog_cc_cross
17909
17910
17911 INET_LINK=
17912 for ac_func in inet_addr
17913 do
17914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17915 echo "configure:17916: checking for $ac_func" >&5
17916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17917 echo $ac_n "(cached) $ac_c" 1>&6
17918 else
17919 cat > conftest.$ac_ext <<EOF
17920 #line 17921 "configure"
17921 #include "confdefs.h"
17922 /* System header to define __stub macros and hopefully few prototypes,
17923 which can conflict with char $ac_func(); below. */
17924 #include <assert.h>
17925 /* Override any gcc2 internal prototype to avoid an error. */
17926 /* We use char because int might match the return type of a gcc2
17927 builtin and then its argument prototype would still apply. */
17928 char $ac_func();
17929
17930 int main() {
17931
17932 /* The GNU C library defines this for functions which it implements
17933 to always fail with ENOSYS. Some functions are actually named
17934 something starting with __ and the normal name is an alias. */
17935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17936 choke me
17937 #else
17938 $ac_func();
17939 #endif
17940
17941 ; return 0; }
17942 EOF
17943 if { (eval echo configure:17944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17944 rm -rf conftest*
17945 eval "ac_cv_func_$ac_func=yes"
17946 else
17947 echo "configure: failed program was:" >&5
17948 cat conftest.$ac_ext >&5
17949 rm -rf conftest*
17950 eval "ac_cv_func_$ac_func=no"
17951 fi
17952 rm -f conftest*
17953 fi
17954
17955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17956 echo "$ac_t""yes" 1>&6
17957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17958 cat >> confdefs.h <<EOF
17959 #define $ac_tr_func 1
17960 EOF
17961 cat >> confdefs.h <<\EOF
17962 #define HAVE_INET_ADDR 1
17963 EOF
17964
17965 else
17966 echo "$ac_t""no" 1>&6
17967 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17968 echo "configure:17969: checking for inet_addr in -lnsl" >&5
17969 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17971 echo $ac_n "(cached) $ac_c" 1>&6
17972 else
17973 ac_save_LIBS="$LIBS"
17974 LIBS="-lnsl $LIBS"
17975 cat > conftest.$ac_ext <<EOF
17976 #line 17977 "configure"
17977 #include "confdefs.h"
17978 /* Override any gcc2 internal prototype to avoid an error. */
17979 /* We use char because int might match the return type of a gcc2
17980 builtin and then its argument prototype would still apply. */
17981 char inet_addr();
17982
17983 int main() {
17984 inet_addr()
17985 ; return 0; }
17986 EOF
17987 if { (eval echo configure:17988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17988 rm -rf conftest*
17989 eval "ac_cv_lib_$ac_lib_var=yes"
17990 else
17991 echo "configure: failed program was:" >&5
17992 cat conftest.$ac_ext >&5
17993 rm -rf conftest*
17994 eval "ac_cv_lib_$ac_lib_var=no"
17995 fi
17996 rm -f conftest*
17997 LIBS="$ac_save_LIBS"
17998
17999 fi
18000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18001 echo "$ac_t""yes" 1>&6
18002 INET_LINK="nsl"
18003 else
18004 echo "$ac_t""no" 1>&6
18005 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18006 echo "configure:18007: checking for inet_addr in -lresolv" >&5
18007 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18009 echo $ac_n "(cached) $ac_c" 1>&6
18010 else
18011 ac_save_LIBS="$LIBS"
18012 LIBS="-lresolv $LIBS"
18013 cat > conftest.$ac_ext <<EOF
18014 #line 18015 "configure"
18015 #include "confdefs.h"
18016 /* Override any gcc2 internal prototype to avoid an error. */
18017 /* We use char because int might match the return type of a gcc2
18018 builtin and then its argument prototype would still apply. */
18019 char inet_addr();
18020
18021 int main() {
18022 inet_addr()
18023 ; return 0; }
18024 EOF
18025 if { (eval echo configure:18026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18026 rm -rf conftest*
18027 eval "ac_cv_lib_$ac_lib_var=yes"
18028 else
18029 echo "configure: failed program was:" >&5
18030 cat conftest.$ac_ext >&5
18031 rm -rf conftest*
18032 eval "ac_cv_lib_$ac_lib_var=no"
18033 fi
18034 rm -f conftest*
18035 LIBS="$ac_save_LIBS"
18036
18037 fi
18038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18039 echo "$ac_t""yes" 1>&6
18040 INET_LINK="resolv"
18041 else
18042 echo "$ac_t""no" 1>&6
18043 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18044 echo "configure:18045: checking for inet_addr in -lsocket" >&5
18045 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18047 echo $ac_n "(cached) $ac_c" 1>&6
18048 else
18049 ac_save_LIBS="$LIBS"
18050 LIBS="-lsocket $LIBS"
18051 cat > conftest.$ac_ext <<EOF
18052 #line 18053 "configure"
18053 #include "confdefs.h"
18054 /* Override any gcc2 internal prototype to avoid an error. */
18055 /* We use char because int might match the return type of a gcc2
18056 builtin and then its argument prototype would still apply. */
18057 char inet_addr();
18058
18059 int main() {
18060 inet_addr()
18061 ; return 0; }
18062 EOF
18063 if { (eval echo configure:18064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18064 rm -rf conftest*
18065 eval "ac_cv_lib_$ac_lib_var=yes"
18066 else
18067 echo "configure: failed program was:" >&5
18068 cat conftest.$ac_ext >&5
18069 rm -rf conftest*
18070 eval "ac_cv_lib_$ac_lib_var=no"
18071 fi
18072 rm -f conftest*
18073 LIBS="$ac_save_LIBS"
18074
18075 fi
18076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18077 echo "$ac_t""yes" 1>&6
18078 INET_LINK="socket"
18079
18080 else
18081 echo "$ac_t""no" 1>&6
18082 fi
18083
18084
18085 fi
18086
18087
18088 fi
18089
18090
18091
18092 fi
18093 done
18094
18095
18096 for ac_func in inet_aton
18097 do
18098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18099 echo "configure:18100: checking for $ac_func" >&5
18100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18101 echo $ac_n "(cached) $ac_c" 1>&6
18102 else
18103 cat > conftest.$ac_ext <<EOF
18104 #line 18105 "configure"
18105 #include "confdefs.h"
18106 /* System header to define __stub macros and hopefully few prototypes,
18107 which can conflict with char $ac_func(); below. */
18108 #include <assert.h>
18109 /* Override any gcc2 internal prototype to avoid an error. */
18110 /* We use char because int might match the return type of a gcc2
18111 builtin and then its argument prototype would still apply. */
18112 char $ac_func();
18113
18114 int main() {
18115
18116 /* The GNU C library defines this for functions which it implements
18117 to always fail with ENOSYS. Some functions are actually named
18118 something starting with __ and the normal name is an alias. */
18119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18120 choke me
18121 #else
18122 $ac_func();
18123 #endif
18124
18125 ; return 0; }
18126 EOF
18127 if { (eval echo configure:18128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18128 rm -rf conftest*
18129 eval "ac_cv_func_$ac_func=yes"
18130 else
18131 echo "configure: failed program was:" >&5
18132 cat conftest.$ac_ext >&5
18133 rm -rf conftest*
18134 eval "ac_cv_func_$ac_func=no"
18135 fi
18136 rm -f conftest*
18137 fi
18138
18139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18140 echo "$ac_t""yes" 1>&6
18141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18142 cat >> confdefs.h <<EOF
18143 #define $ac_tr_func 1
18144 EOF
18145 cat >> confdefs.h <<\EOF
18146 #define HAVE_INET_ATON 1
18147 EOF
18148
18149 else
18150 echo "$ac_t""no" 1>&6
18151 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18152 echo "configure:18153: checking for inet_aton in -l$INET_LINK" >&5
18153 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18155 echo $ac_n "(cached) $ac_c" 1>&6
18156 else
18157 ac_save_LIBS="$LIBS"
18158 LIBS="-l$INET_LINK $LIBS"
18159 cat > conftest.$ac_ext <<EOF
18160 #line 18161 "configure"
18161 #include "confdefs.h"
18162 /* Override any gcc2 internal prototype to avoid an error. */
18163 /* We use char because int might match the return type of a gcc2
18164 builtin and then its argument prototype would still apply. */
18165 char inet_aton();
18166
18167 int main() {
18168 inet_aton()
18169 ; return 0; }
18170 EOF
18171 if { (eval echo configure:18172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18172 rm -rf conftest*
18173 eval "ac_cv_lib_$ac_lib_var=yes"
18174 else
18175 echo "configure: failed program was:" >&5
18176 cat conftest.$ac_ext >&5
18177 rm -rf conftest*
18178 eval "ac_cv_lib_$ac_lib_var=no"
18179 fi
18180 rm -f conftest*
18181 LIBS="$ac_save_LIBS"
18182
18183 fi
18184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18185 echo "$ac_t""yes" 1>&6
18186 cat >> confdefs.h <<\EOF
18187 #define HAVE_INET_ATON 1
18188 EOF
18189
18190 else
18191 echo "$ac_t""no" 1>&6
18192 fi
18193
18194
18195 fi
18196 done
18197
18198
18199 if test "x$INET_LINK" != "x"; then
18200 cat >> confdefs.h <<\EOF
18201 #define HAVE_INET_ADDR 1
18202 EOF
18203
18204 INET_LINK=" -l$INET_LINK"
18205 fi
18206
18207 fi
18208
18209
18210 cat > confcache <<\EOF
18211 # This file is a shell script that caches the results of configure
18212 # tests run on this system so they can be shared between configure
18213 # scripts and configure runs. It is not useful on other systems.
18214 # If it contains results you don't want to keep, you may remove or edit it.
18215 #
18216 # By default, configure uses ./config.cache as the cache file,
18217 # creating it if it does not exist already. You can give configure
18218 # the --cache-file=FILE option to use a different cache file; that is
18219 # what configure does when it calls configure scripts in
18220 # subdirectories, so they share the cache.
18221 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18222 # config.status only pays attention to the cache file if you give it the
18223 # --recheck option to rerun configure.
18224 #
18225 EOF
18226 # The following way of writing the cache mishandles newlines in values,
18227 # but we know of no workaround that is simple, portable, and efficient.
18228 # So, don't put newlines in cache variables' values.
18229 # Ultrix sh set writes to stderr and can't be redirected directly,
18230 # and sets the high bit in the cache file unless we assign to the vars.
18231 (set) 2>&1 |
18232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18233 *ac_space=\ *)
18234 # `set' does not quote correctly, so add quotes (double-quote substitution
18235 # turns \\\\ into \\, and sed turns \\ into \).
18236 sed -n \
18237 -e "s/'/'\\\\''/g" \
18238 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18239 ;;
18240 *)
18241 # `set' quotes correctly as required by POSIX, so do not add quotes.
18242 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18243 ;;
18244 esac >> confcache
18245 if cmp -s $cache_file confcache; then
18246 :
18247 else
18248 if test -w $cache_file; then
18249 echo "updating cache $cache_file"
18250 cat confcache > $cache_file
18251 else
18252 echo "not updating unwritable cache $cache_file"
18253 fi
18254 fi
18255 rm -f confcache
18256
18257
18258
18259 CPP_MT_FLAG=
18260 if test "$TOOLKIT" != "MSW"; then
18261
18262
18263 THREADS_LINK=
18264 THREADS_CFLAGS=
18265
18266 if test "$wxUSE_THREADS" = "yes" ; then
18267 if test "$wxUSE_WINE" = 1 ; then
18268 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
18269 wxUSE_THREADS="no"
18270 elif test "$USE_BEOS" = 1; then
18271 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18272 wxUSE_THREADS="no"
18273 fi
18274 fi
18275
18276 if test "$wxUSE_THREADS" = "yes" ; then
18277
18278
18279 THREAD_OPTS="-pthread"
18280 case "${host}" in
18281 *-*-solaris2* | *-*-sunos4* )
18282 if test "x$GCC" = "xyes"; then
18283 THREAD_OPTS="-pthreads $THREAD_OPTS"
18284 else
18285 THREAD_OPTS="-mt $THREAD_OPTS"
18286 fi
18287 ;;
18288 *-*-freebsd*)
18289 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18290 ;;
18291 *-*-darwin* | *-*-cygwin* )
18292 THREAD_OPTS=""
18293 ;;
18294 *-*-aix*)
18295 THREAD_OPTS="pthreads"
18296 ;;
18297 esac
18298
18299 THREAD_OPTS="$THREAD_OPTS pthread none"
18300
18301 THREADS_OK=no
18302 for flag in $THREAD_OPTS; do
18303 case $flag in
18304 none)
18305 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18306 echo "configure:18307: checking whether pthreads work without any flags" >&5
18307 ;;
18308
18309 -*)
18310 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18311 echo "configure:18312: checking whether pthreads work with $flag" >&5
18312 THREADS_CFLAGS="$flag"
18313 ;;
18314
18315 *)
18316 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18317 echo "configure:18318: checking for the pthreads library -l$flag" >&5
18318 THREADS_LINK="-l$flag"
18319 ;;
18320 esac
18321
18322 save_LIBS="$LIBS"
18323 save_CFLAGS="$CFLAGS"
18324 LIBS="$THREADS_LINK $LIBS"
18325 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18326
18327 cat > conftest.$ac_ext <<EOF
18328 #line 18329 "configure"
18329 #include "confdefs.h"
18330 #include <pthread.h>
18331 int main() {
18332 pthread_create(0,0,0,0);
18333 ; return 0; }
18334 EOF
18335 if { (eval echo configure:18336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18336 rm -rf conftest*
18337 THREADS_OK=yes
18338 else
18339 echo "configure: failed program was:" >&5
18340 cat conftest.$ac_ext >&5
18341 fi
18342 rm -f conftest*
18343
18344 LIBS="$save_LIBS"
18345 CFLAGS="$save_CFLAGS"
18346
18347 echo "$ac_t""$THREADS_OK" 1>&6
18348 if test "x$THREADS_OK" = "xyes"; then
18349 break;
18350 fi
18351
18352 THREADS_LINK=""
18353 THREADS_CFLAGS=""
18354 done
18355
18356 if test "x$THREADS_OK" != "xyes"; then
18357 wxUSE_THREADS=no
18358 echo "configure: warning: No thread support on this system... disabled" 1>&2
18359 else
18360 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18361 LIBS="$THREADS_LINK $LIBS"
18362
18363 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18364 echo "configure:18365: checking if more special flags are required for pthreads" >&5
18365 flag=no
18366 case "${host}" in
18367 *-aix*)
18368 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18369 flag="-D_THREAD_SAFE"
18370 ;;
18371 *-freebsd*)
18372 flag="-D_THREAD_SAFE"
18373 ;;
18374 *-hp-hpux* )
18375 flag="-D_REENTRANT"
18376 ;;
18377 *solaris* | alpha*-osf*)
18378 flag="-D_REENTRANT"
18379 ;;
18380 esac
18381 echo "$ac_t""${flag}" 1>&6
18382 if test "x$flag" != xno; then
18383 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18384 fi
18385
18386 if test "x$THREADS_CFLAGS" != "x"; then
18387 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18388 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18389 fi
18390 fi
18391 fi
18392
18393 if test "$wxUSE_THREADS" = "yes" ; then
18394 for ac_func in thr_setconcurrency
18395 do
18396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18397 echo "configure:18398: checking for $ac_func" >&5
18398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18399 echo $ac_n "(cached) $ac_c" 1>&6
18400 else
18401 cat > conftest.$ac_ext <<EOF
18402 #line 18403 "configure"
18403 #include "confdefs.h"
18404 /* System header to define __stub macros and hopefully few prototypes,
18405 which can conflict with char $ac_func(); below. */
18406 #include <assert.h>
18407 /* Override any gcc2 internal prototype to avoid an error. */
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char $ac_func();
18411
18412 int main() {
18413
18414 /* The GNU C library defines this for functions which it implements
18415 to always fail with ENOSYS. Some functions are actually named
18416 something starting with __ and the normal name is an alias. */
18417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18418 choke me
18419 #else
18420 $ac_func();
18421 #endif
18422
18423 ; return 0; }
18424 EOF
18425 if { (eval echo configure:18426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18426 rm -rf conftest*
18427 eval "ac_cv_func_$ac_func=yes"
18428 else
18429 echo "configure: failed program was:" >&5
18430 cat conftest.$ac_ext >&5
18431 rm -rf conftest*
18432 eval "ac_cv_func_$ac_func=no"
18433 fi
18434 rm -f conftest*
18435 fi
18436
18437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18438 echo "$ac_t""yes" 1>&6
18439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18440 cat >> confdefs.h <<EOF
18441 #define $ac_tr_func 1
18442 EOF
18443
18444 else
18445 echo "$ac_t""no" 1>&6
18446 fi
18447 done
18448
18449
18450 for ac_hdr in sched.h
18451 do
18452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18454 echo "configure:18455: checking for $ac_hdr" >&5
18455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18456 echo $ac_n "(cached) $ac_c" 1>&6
18457 else
18458 cat > conftest.$ac_ext <<EOF
18459 #line 18460 "configure"
18460 #include "confdefs.h"
18461 #include <$ac_hdr>
18462 EOF
18463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18464 { (eval echo configure:18465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18466 if test -z "$ac_err"; then
18467 rm -rf conftest*
18468 eval "ac_cv_header_$ac_safe=yes"
18469 else
18470 echo "$ac_err" >&5
18471 echo "configure: failed program was:" >&5
18472 cat conftest.$ac_ext >&5
18473 rm -rf conftest*
18474 eval "ac_cv_header_$ac_safe=no"
18475 fi
18476 rm -f conftest*
18477 fi
18478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18479 echo "$ac_t""yes" 1>&6
18480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18481 cat >> confdefs.h <<EOF
18482 #define $ac_tr_hdr 1
18483 EOF
18484
18485 else
18486 echo "$ac_t""no" 1>&6
18487 fi
18488 done
18489
18490 if test "$ac_cv_header_sched_h" = "yes"; then
18491 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18492 echo "configure:18493: checking for sched_yield" >&5
18493 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18494 echo $ac_n "(cached) $ac_c" 1>&6
18495 else
18496 cat > conftest.$ac_ext <<EOF
18497 #line 18498 "configure"
18498 #include "confdefs.h"
18499 /* System header to define __stub macros and hopefully few prototypes,
18500 which can conflict with char sched_yield(); below. */
18501 #include <assert.h>
18502 /* Override any gcc2 internal prototype to avoid an error. */
18503 /* We use char because int might match the return type of a gcc2
18504 builtin and then its argument prototype would still apply. */
18505 char sched_yield();
18506
18507 int main() {
18508
18509 /* The GNU C library defines this for functions which it implements
18510 to always fail with ENOSYS. Some functions are actually named
18511 something starting with __ and the normal name is an alias. */
18512 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18513 choke me
18514 #else
18515 sched_yield();
18516 #endif
18517
18518 ; return 0; }
18519 EOF
18520 if { (eval echo configure:18521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18521 rm -rf conftest*
18522 eval "ac_cv_func_sched_yield=yes"
18523 else
18524 echo "configure: failed program was:" >&5
18525 cat conftest.$ac_ext >&5
18526 rm -rf conftest*
18527 eval "ac_cv_func_sched_yield=no"
18528 fi
18529 rm -f conftest*
18530 fi
18531
18532 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18533 echo "$ac_t""yes" 1>&6
18534 cat >> confdefs.h <<\EOF
18535 #define HAVE_SCHED_YIELD 1
18536 EOF
18537
18538 else
18539 echo "$ac_t""no" 1>&6
18540
18541 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18542 echo "configure:18543: checking for sched_yield in -lposix4" >&5
18543 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18545 echo $ac_n "(cached) $ac_c" 1>&6
18546 else
18547 ac_save_LIBS="$LIBS"
18548 LIBS="-lposix4 $LIBS"
18549 cat > conftest.$ac_ext <<EOF
18550 #line 18551 "configure"
18551 #include "confdefs.h"
18552 /* Override any gcc2 internal prototype to avoid an error. */
18553 /* We use char because int might match the return type of a gcc2
18554 builtin and then its argument prototype would still apply. */
18555 char sched_yield();
18556
18557 int main() {
18558 sched_yield()
18559 ; return 0; }
18560 EOF
18561 if { (eval echo configure:18562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18562 rm -rf conftest*
18563 eval "ac_cv_lib_$ac_lib_var=yes"
18564 else
18565 echo "configure: failed program was:" >&5
18566 cat conftest.$ac_ext >&5
18567 rm -rf conftest*
18568 eval "ac_cv_lib_$ac_lib_var=no"
18569 fi
18570 rm -f conftest*
18571 LIBS="$ac_save_LIBS"
18572
18573 fi
18574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18575 echo "$ac_t""yes" 1>&6
18576 cat >> confdefs.h <<\EOF
18577 #define HAVE_SCHED_YIELD 1
18578 EOF
18579 POSIX4_LINK=" -lposix4"
18580 else
18581 echo "$ac_t""no" 1>&6
18582 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18583
18584 fi
18585
18586
18587
18588 fi
18589
18590 fi
18591
18592 HAVE_PRIOR_FUNCS=0
18593 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18594 echo "configure:18595: checking for pthread_attr_getschedpolicy" >&5
18595 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18596 echo $ac_n "(cached) $ac_c" 1>&6
18597 else
18598 cat > conftest.$ac_ext <<EOF
18599 #line 18600 "configure"
18600 #include "confdefs.h"
18601 /* System header to define __stub macros and hopefully few prototypes,
18602 which can conflict with char pthread_attr_getschedpolicy(); below. */
18603 #include <assert.h>
18604 /* Override any gcc2 internal prototype to avoid an error. */
18605 /* We use char because int might match the return type of a gcc2
18606 builtin and then its argument prototype would still apply. */
18607 char pthread_attr_getschedpolicy();
18608
18609 int main() {
18610
18611 /* The GNU C library defines this for functions which it implements
18612 to always fail with ENOSYS. Some functions are actually named
18613 something starting with __ and the normal name is an alias. */
18614 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18615 choke me
18616 #else
18617 pthread_attr_getschedpolicy();
18618 #endif
18619
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_func_pthread_attr_getschedpolicy=yes"
18625 else
18626 echo "configure: failed program was:" >&5
18627 cat conftest.$ac_ext >&5
18628 rm -rf conftest*
18629 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18630 fi
18631 rm -f conftest*
18632 fi
18633
18634 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18635 echo "$ac_t""yes" 1>&6
18636 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18637 echo "configure:18638: checking for pthread_attr_setschedparam" >&5
18638 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18639 echo $ac_n "(cached) $ac_c" 1>&6
18640 else
18641 cat > conftest.$ac_ext <<EOF
18642 #line 18643 "configure"
18643 #include "confdefs.h"
18644 /* System header to define __stub macros and hopefully few prototypes,
18645 which can conflict with char pthread_attr_setschedparam(); below. */
18646 #include <assert.h>
18647 /* Override any gcc2 internal prototype to avoid an error. */
18648 /* We use char because int might match the return type of a gcc2
18649 builtin and then its argument prototype would still apply. */
18650 char pthread_attr_setschedparam();
18651
18652 int main() {
18653
18654 /* The GNU C library defines this for functions which it implements
18655 to always fail with ENOSYS. Some functions are actually named
18656 something starting with __ and the normal name is an alias. */
18657 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18658 choke me
18659 #else
18660 pthread_attr_setschedparam();
18661 #endif
18662
18663 ; return 0; }
18664 EOF
18665 if { (eval echo configure:18666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18666 rm -rf conftest*
18667 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18668 else
18669 echo "configure: failed program was:" >&5
18670 cat conftest.$ac_ext >&5
18671 rm -rf conftest*
18672 eval "ac_cv_func_pthread_attr_setschedparam=no"
18673 fi
18674 rm -f conftest*
18675 fi
18676
18677 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18678 echo "$ac_t""yes" 1>&6
18679 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18680 echo "configure:18681: checking for sched_get_priority_max" >&5
18681 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18682 echo $ac_n "(cached) $ac_c" 1>&6
18683 else
18684 cat > conftest.$ac_ext <<EOF
18685 #line 18686 "configure"
18686 #include "confdefs.h"
18687 /* System header to define __stub macros and hopefully few prototypes
18688 else
18689 echo "$ac_t""no" 1>&6
18690 which can conflict with char sched_get_priority_max(); below. */
18691 #include <assert.h>
18692 /* Override any gcc2 internal prototype to avoid an error. */
18693 /* We use char because int might match the return type of a gcc2
18694 builtin and then its argument prototype would still apply. */
18695 char sched_get_priority_max();
18696
18697 int main() {
18698
18699 /* The GNU C library defines this for functions which it implements
18700 to always fail with ENOSYS. Some functions are actually named
18701 something starting with __ and the normal name is an alias. */
18702 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18703 choke me
18704 #else
18705 sched_get_priority_max();
18706 #endif
18707
18708 ; return 0; }
18709 EOF
18710 if { (eval echo configure:18711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18711 rm -rf conftest*
18712 eval "ac_cv_func_sched_get_priority_max=yes"
18713 else
18714 echo "configure: failed program was:" >&5
18715 cat conftest.$ac_ext >&5
18716 rm -rf conftest*
18717 eval "ac_cv_func_sched_get_priority_max=no"
18718 fi
18719 rm -f conftest*
18720 fi
18721
18722 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18723 echo "$ac_t""yes" 1>&6
18724 HAVE_PRIOR_FUNCS=1
18725 else
18726 echo "$ac_t""no" 1>&6
18727 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18728 echo "configure:18729: checking for sched_get_priority_max in -lposix4" >&5
18729 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18731 echo $ac_n "(cached) $ac_c" 1>&6
18732 else
18733 ac_save_LIBS="$LIBS"
18734 LIBS="-lposix4 $LIBS"
18735 cat > conftest.$ac_ext <<EOF
18736 #line 18737 "configure"
18737 #include "confdefs.h"
18738 /* Override any gcc2 internal prototype to avoid an error. */
18739 /* We use char because int might match the return type of a gcc2
18740 builtin and then its argument prototype would still apply. */
18741 char sched_get_priority_max();
18742
18743 int main() {
18744 sched_get_priority_max()
18745 ; return 0; }
18746 EOF
18747 if { (eval echo configure:18748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18748 rm -rf conftest*
18749 eval "ac_cv_lib_$ac_lib_var=yes"
18750 else
18751 echo "configure: failed program was:" >&5
18752 cat conftest.$ac_ext >&5
18753 rm -rf conftest*
18754 eval "ac_cv_lib_$ac_lib_var=no"
18755 fi
18756 rm -f conftest*
18757 LIBS="$ac_save_LIBS"
18758
18759 fi
18760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18761 echo "$ac_t""yes" 1>&6
18762
18763 HAVE_PRIOR_FUNCS=1
18764 POSIX4_LINK=" -lposix4"
18765
18766 else
18767 echo "$ac_t""no" 1>&6
18768 fi
18769
18770
18771 fi
18772
18773
18774 else
18775 echo "$ac_t""no" 1>&6
18776 fi
18777
18778
18779 fi
18780
18781
18782 if test "$HAVE_PRIOR_FUNCS" = 1; then
18783 cat >> confdefs.h <<\EOF
18784 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18785 EOF
18786
18787 else
18788 echo "configure: warning: Setting thread priority will not work" 1>&2
18789 fi
18790
18791 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18792 echo "configure:18793: checking for pthread_cancel" >&5
18793 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18794 echo $ac_n "(cached) $ac_c" 1>&6
18795 else
18796 cat > conftest.$ac_ext <<EOF
18797 #line 18798 "configure"
18798 #include "confdefs.h"
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char pthread_cancel(); below. */
18801 #include <assert.h>
18802 /* Override any gcc2 internal prototype to avoid an error. */
18803 /* We use char because int might match the return type of a gcc2
18804 builtin and then its argument prototype would still apply. */
18805 char pthread_cancel();
18806
18807 int main() {
18808
18809 /* The GNU C library defines this for functions which it implements
18810 to always fail with ENOSYS. Some functions are actually named
18811 something starting with __ and the normal name is an alias. */
18812 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18813 choke me
18814 #else
18815 pthread_cancel();
18816 #endif
18817
18818 ; return 0; }
18819 EOF
18820 if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18821 rm -rf conftest*
18822 eval "ac_cv_func_pthread_cancel=yes"
18823 else
18824 echo "configure: failed program was:" >&5
18825 cat conftest.$ac_ext >&5
18826 rm -rf conftest*
18827 eval "ac_cv_func_pthread_cancel=no"
18828 fi
18829 rm -f conftest*
18830 fi
18831
18832 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18833 echo "$ac_t""yes" 1>&6
18834 cat >> confdefs.h <<\EOF
18835 #define HAVE_PTHREAD_CANCEL 1
18836 EOF
18837
18838 else
18839 echo "$ac_t""no" 1>&6
18840 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18841 fi
18842
18843
18844 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18845 echo "configure:18846: checking for pthread_cleanup_push/pop" >&5
18846 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18847 echo $ac_n "(cached) $ac_c" 1>&6
18848 else
18849
18850 cat > conftest.$ac_ext <<EOF
18851 #line 18852 "configure"
18852 #include "confdefs.h"
18853 #include <pthread.h>
18854 int main() {
18855
18856 pthread_cleanup_push(NULL, NULL);
18857 pthread_cleanup_pop(0);
18858
18859 ; return 0; }
18860 EOF
18861 if { (eval echo configure:18862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18862 rm -rf conftest*
18863
18864 wx_cv_func_pthread_cleanup_push=yes
18865
18866 else
18867 echo "configure: failed program was:" >&5
18868 cat conftest.$ac_ext >&5
18869 rm -rf conftest*
18870
18871 wx_cv_func_pthread_cleanup_push=no
18872
18873 fi
18874 rm -f conftest*
18875
18876 fi
18877
18878 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18879
18880 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18881 cat >> confdefs.h <<\EOF
18882 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18883 EOF
18884
18885 fi
18886
18887
18888 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18889 echo "configure:18890: checking for pthread_mutexattr_t" >&5
18890 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18891 echo $ac_n "(cached) $ac_c" 1>&6
18892 else
18893
18894 cat > conftest.$ac_ext <<EOF
18895 #line 18896 "configure"
18896 #include "confdefs.h"
18897 #include <pthread.h>
18898 int main() {
18899
18900 pthread_mutexattr_t attr;
18901 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18902
18903 ; return 0; }
18904 EOF
18905 if { (eval echo configure:18906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18906 rm -rf conftest*
18907
18908 wx_cv_type_pthread_mutexattr_t=yes
18909
18910 else
18911 echo "configure: failed program was:" >&5
18912 cat conftest.$ac_ext >&5
18913 rm -rf conftest*
18914
18915 wx_cv_type_pthread_mutexattr_t=no
18916
18917
18918 fi
18919 rm -f conftest*
18920
18921 fi
18922
18923 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18924
18925 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18926 cat >> confdefs.h <<\EOF
18927 #define HAVE_PTHREAD_MUTEXATTR_T 1
18928 EOF
18929
18930 else
18931 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18932 echo "configure:18933: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18933 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18934 echo $ac_n "(cached) $ac_c" 1>&6
18935 else
18936
18937 cat > conftest.$ac_ext <<EOF
18938 #line 18939 "configure"
18939 #include "confdefs.h"
18940 #include <pthread.h>
18941 int main() {
18942
18943 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18944
18945 ; return 0; }
18946 EOF
18947 if { (eval echo configure:18948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18948 rm -rf conftest*
18949
18950 wx_cv_type_pthread_rec_mutex_init=yes
18951
18952 else
18953 echo "configure: failed program was:" >&5
18954 cat conftest.$ac_ext >&5
18955 rm -rf conftest*
18956
18957 wx_cv_type_pthread_rec_mutex_init=no
18958
18959
18960 fi
18961 rm -f conftest*
18962
18963 fi
18964
18965 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18966 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18967 cat >> confdefs.h <<\EOF
18968 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18969 EOF
18970
18971 else
18972 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18973 fi
18974 fi
18975 fi
18976
18977 else
18978 if test "$wxUSE_THREADS" = "yes" ; then
18979 case "${host}" in
18980 *-*-mingw32* )
18981 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
18982 echo "configure:18983: checking if compiler supports -mthreads" >&5
18983 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
18984 echo $ac_n "(cached) $ac_c" 1>&6
18985 else
18986
18987 CFLAGS_OLD="$CFLAGS"
18988 CFLAGS="$CFLAGS -mthreads"
18989 cat > conftest.$ac_ext <<EOF
18990 #line 18991 "configure"
18991 #include "confdefs.h"
18992
18993 int main() {
18994
18995 ; return 0; }
18996 EOF
18997 if { (eval echo configure:18998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18998 rm -rf conftest*
18999 wx_cv_cflags_mthread=yes
19000 else
19001 echo "configure: failed program was:" >&5
19002 cat conftest.$ac_ext >&5
19003 rm -rf conftest*
19004 wx_cv_cflags_mthread=no
19005
19006 fi
19007 rm -f conftest*
19008
19009
19010 fi
19011
19012 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19013
19014 if test "$wx_cv_cflags_mthread" = "yes"; then
19015 CXXFLAGS="$CXXFLAGS -mthreads"
19016 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19017 LDFLAGS="$LDFLAGS -mthreads"
19018 else
19019 CFLAGS="$CFLAGS_OLD"
19020 fi
19021 ;;
19022 esac
19023 fi
19024 fi
19025
19026 if test "$wxUSE_THREADS" = "yes"; then
19027 cat >> confdefs.h <<\EOF
19028 #define wxUSE_THREADS 1
19029 EOF
19030
19031
19032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19033 else
19034 if test "$ac_cv_func_strtok_r" = "yes"; then
19035 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19036 echo "configure:19037: checking if -D_REENTRANT is needed" >&5
19037 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19038 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19039 echo "$ac_t""yes" 1>&6
19040 else
19041 echo "$ac_t""no" 1>&6
19042 fi
19043 fi
19044 fi
19045
19046 if test "$WXGTK20" = 1 ; then
19047 cat >> confdefs.h <<EOF
19048 #define __WXGTK20__ $WXGTK20
19049 EOF
19050
19051 WXGTK12=1
19052 fi
19053
19054 if test "$WXGTK12" = 1 ; then
19055 cat >> confdefs.h <<EOF
19056 #define __WXGTK12__ $WXGTK12
19057 EOF
19058
19059 fi
19060
19061 if test "$WXGTK127" = 1 ; then
19062 cat >> confdefs.h <<EOF
19063 #define __WXGTK127__ $WXGTK127
19064 EOF
19065
19066 fi
19067
19068 WXDEBUG=
19069
19070 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19071 WXDEBUG="-g"
19072 wxUSE_OPTIMISE=no
19073 fi
19074
19075 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19076 wxUSE_DEBUG_INFO=yes
19077 WXDEBUG="-ggdb"
19078 fi
19079
19080 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19081 cat >> confdefs.h <<\EOF
19082 #define WXDEBUG 1
19083 EOF
19084
19085 WXDEBUG_DEFINE="-D__WXDEBUG__"
19086 else
19087 if test "$wxUSE_GTK" = 1 ; then
19088 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19089 fi
19090 fi
19091
19092 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19093 cat >> confdefs.h <<\EOF
19094 #define wxUSE_MEMORY_TRACING 1
19095 EOF
19096
19097 cat >> confdefs.h <<\EOF
19098 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19099 EOF
19100
19101 cat >> confdefs.h <<\EOF
19102 #define wxUSE_DEBUG_NEW_ALWAYS 1
19103 EOF
19104
19105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19106 fi
19107
19108 if test "$wxUSE_DMALLOC" = "yes" ; then
19109 DMALLOC_LIBS="-ldmalloc"
19110 fi
19111
19112 PROFILE=
19113 if test "$wxUSE_PROFILE" = "yes" ; then
19114 PROFILE=" -pg"
19115 fi
19116
19117 CODE_GEN_FLAGS=
19118 CODE_GEN_FLAGS_CXX=
19119 if test "$GCC" = "yes" ; then
19120 if test "$wxUSE_NO_RTTI" = "yes" ; then
19121 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19122 fi
19123 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19124 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19125 fi
19126 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19127 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19128 fi
19129 if test "$USE_WIN32" = 1 ; then
19130 # I'm not even really sure what this was ever added to solve,
19131 # but someone added it for mingw native builds, so I guess
19132 # they had a reason, right??
19133 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19134 fi
19135
19136 case "${host}" in
19137 powerpc*-*-aix* )
19138 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19139 ;;
19140 *-hppa* )
19141 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19142 ;;
19143 esac
19144 fi
19145
19146 if test "$wxUSE_OPTIMISE" = "no" ; then
19147 OPTIMISE=
19148 else
19149 if test "$GCC" = yes ; then
19150 OPTIMISE="-O2"
19151 case "${host}" in
19152 i586-*-*|i686-*-* )
19153 OPTIMISE="${OPTIMISE} "
19154 ;;
19155 esac
19156 else
19157 OPTIMISE="-O"
19158 fi
19159 fi
19160
19161 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19162 cat >> confdefs.h <<\EOF
19163 #define WXWIN_COMPATIBILITY_2 1
19164 EOF
19165
19166
19167 WXWIN_COMPATIBILITY_2_2="yes"
19168 fi
19169
19170 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
19171 cat >> confdefs.h <<\EOF
19172 #define WXWIN_COMPATIBILITY_2_2 1
19173 EOF
19174
19175 fi
19176
19177
19178 if test "$wxUSE_GUI" = "yes"; then
19179 cat >> confdefs.h <<\EOF
19180 #define wxUSE_GUI 1
19181 EOF
19182
19183
19184 else
19185 cat >> confdefs.h <<\EOF
19186 #define wxUSE_NOGUI 1
19187 EOF
19188
19189 fi
19190
19191
19192 if test "$wxUSE_UNIX" = "yes"; then
19193 cat >> confdefs.h <<\EOF
19194 #define wxUSE_UNIX 1
19195 EOF
19196
19197 fi
19198
19199
19200 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19201 cat >> confdefs.h <<\EOF
19202 #define wxUSE_APPLE_IEEE 1
19203 EOF
19204
19205 fi
19206
19207 if test "$wxUSE_TIMER" = "yes"; then
19208 cat >> confdefs.h <<\EOF
19209 #define wxUSE_TIMER 1
19210 EOF
19211
19212 fi
19213
19214 if test "$wxUSE_WAVE" = "yes"; then
19215 cat >> confdefs.h <<\EOF
19216 #define wxUSE_WAVE 1
19217 EOF
19218
19219 fi
19220
19221 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19222 cat >> confdefs.h <<\EOF
19223 #define wxUSE_CMDLINE_PARSER 1
19224 EOF
19225
19226 fi
19227
19228 if test "$wxUSE_STOPWATCH" = "yes"; then
19229 cat >> confdefs.h <<\EOF
19230 #define wxUSE_STOPWATCH 1
19231 EOF
19232
19233 fi
19234
19235 if test "$wxUSE_DATETIME" = "yes"; then
19236 cat >> confdefs.h <<\EOF
19237 #define wxUSE_DATETIME 1
19238 EOF
19239
19240 fi
19241
19242 if test "$wxUSE_TIMEDATE" = "yes"; then
19243 cat >> confdefs.h <<\EOF
19244 #define wxUSE_TIMEDATE 1
19245 EOF
19246
19247 fi
19248
19249 if test "$wxUSE_FILE" = "yes"; then
19250 cat >> confdefs.h <<\EOF
19251 #define wxUSE_FILE 1
19252 EOF
19253
19254 fi
19255
19256 if test "$wxUSE_FFILE" = "yes"; then
19257 cat >> confdefs.h <<\EOF
19258 #define wxUSE_FFILE 1
19259 EOF
19260
19261 fi
19262
19263 if test "$wxUSE_FILESYSTEM" = "yes"; then
19264 cat >> confdefs.h <<\EOF
19265 #define wxUSE_FILESYSTEM 1
19266 EOF
19267
19268 fi
19269
19270 if test "$wxUSE_FS_INET" = "yes"; then
19271 cat >> confdefs.h <<\EOF
19272 #define wxUSE_FS_INET 1
19273 EOF
19274
19275 fi
19276
19277 if test "$wxUSE_FS_ZIP" = "yes"; then
19278 cat >> confdefs.h <<\EOF
19279 #define wxUSE_FS_ZIP 1
19280 EOF
19281
19282 fi
19283
19284 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19285 cat >> confdefs.h <<\EOF
19286 #define wxUSE_ZIPSTREAM 1
19287 EOF
19288
19289 fi
19290
19291 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19292 cat >> confdefs.h <<\EOF
19293 #define wxUSE_ON_FATAL_EXCEPTION 1
19294 EOF
19295
19296 fi
19297
19298 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19299 cat >> confdefs.h <<\EOF
19300 #define wxUSE_SNGLINST_CHECKER 1
19301 EOF
19302
19303 fi
19304
19305 if test "$wxUSE_BUSYINFO" = "yes"; then
19306 cat >> confdefs.h <<\EOF
19307 #define wxUSE_BUSYINFO 1
19308 EOF
19309
19310 fi
19311
19312 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19313 cat >> confdefs.h <<\EOF
19314 #define wxUSE_STD_IOSTREAM 1
19315 EOF
19316
19317 fi
19318
19319 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19320 cat >> confdefs.h <<\EOF
19321 #define wxUSE_TEXTBUFFER 1
19322 EOF
19323
19324 fi
19325
19326 if test "$wxUSE_TEXTFILE" = "yes"; then
19327 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19328 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19329 else
19330 cat >> confdefs.h <<\EOF
19331 #define wxUSE_TEXTFILE 1
19332 EOF
19333
19334 fi
19335 fi
19336
19337 if test "$wxUSE_CONFIG" = "yes" ; then
19338 if test "$wxUSE_TEXTFILE" != "yes"; then
19339 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19340 else
19341 cat >> confdefs.h <<\EOF
19342 #define wxUSE_CONFIG 1
19343 EOF
19344
19345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19346 fi
19347 fi
19348
19349 if test "$wxUSE_INTL" = "yes" ; then
19350 if test "$wxUSE_FILE" != "yes"; then
19351 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19352 else
19353 cat >> confdefs.h <<\EOF
19354 #define wxUSE_INTL 1
19355 EOF
19356
19357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19358 GUIDIST="$GUIDIST INTL_DIST"
19359 fi
19360 fi
19361
19362 if test "$wxUSE_LOG" = "yes"; then
19363 cat >> confdefs.h <<\EOF
19364 #define wxUSE_LOG 1
19365 EOF
19366
19367
19368 if test "$wxUSE_LOGGUI" = "yes"; then
19369 cat >> confdefs.h <<\EOF
19370 #define wxUSE_LOGGUI 1
19371 EOF
19372
19373 fi
19374
19375 if test "$wxUSE_LOGWINDOW" = "yes"; then
19376 cat >> confdefs.h <<\EOF
19377 #define wxUSE_LOGWINDOW 1
19378 EOF
19379
19380 fi
19381
19382 if test "$wxUSE_LOGDIALOG" = "yes"; then
19383 cat >> confdefs.h <<\EOF
19384 #define wxUSE_LOG_DIALOG 1
19385 EOF
19386
19387 fi
19388 fi
19389
19390 if test "$wxUSE_LONGLONG" = "yes"; then
19391 cat >> confdefs.h <<\EOF
19392 #define wxUSE_LONGLONG 1
19393 EOF
19394
19395 fi
19396
19397 if test "$wxUSE_GEOMETRY" = "yes"; then
19398 cat >> confdefs.h <<\EOF
19399 #define wxUSE_GEOMETRY 1
19400 EOF
19401
19402 fi
19403
19404 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19405 cat >> confdefs.h <<\EOF
19406 #define wxUSE_DIALUP_MANAGER 1
19407 EOF
19408
19409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19410 fi
19411
19412 if test "$wxUSE_STREAMS" = "yes" ; then
19413 cat >> confdefs.h <<\EOF
19414 #define wxUSE_STREAMS 1
19415 EOF
19416
19417 fi
19418
19419
19420 if test "$wxUSE_DATETIME" = "yes"; then
19421 for ac_func in strptime
19422 do
19423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19424 echo "configure:19425: checking for $ac_func" >&5
19425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19426 echo $ac_n "(cached) $ac_c" 1>&6
19427 else
19428 cat > conftest.$ac_ext <<EOF
19429 #line 19430 "configure"
19430 #include "confdefs.h"
19431 /* System header to define __stub macros and hopefully few prototypes,
19432 which can conflict with char $ac_func(); below. */
19433 #include <assert.h>
19434 /* Override any gcc2 internal prototype to avoid an error. */
19435 /* We use char because int might match the return type of a gcc2
19436 builtin and then its argument prototype would still apply. */
19437 char $ac_func();
19438
19439 int main() {
19440
19441 /* The GNU C library defines this for functions which it implements
19442 to always fail with ENOSYS. Some functions are actually named
19443 something starting with __ and the normal name is an alias. */
19444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19445 choke me
19446 #else
19447 $ac_func();
19448 #endif
19449
19450 ; return 0; }
19451 EOF
19452 if { (eval echo configure:19453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19453 rm -rf conftest*
19454 eval "ac_cv_func_$ac_func=yes"
19455 else
19456 echo "configure: failed program was:" >&5
19457 cat conftest.$ac_ext >&5
19458 rm -rf conftest*
19459 eval "ac_cv_func_$ac_func=no"
19460 fi
19461 rm -f conftest*
19462 fi
19463
19464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19465 echo "$ac_t""yes" 1>&6
19466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19467 cat >> confdefs.h <<EOF
19468 #define $ac_tr_func 1
19469 EOF
19470
19471 else
19472 echo "$ac_t""no" 1>&6
19473 fi
19474 done
19475
19476
19477 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19478 echo "configure:19479: checking for timezone variable in <time.h>" >&5
19479 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19480 echo $ac_n "(cached) $ac_c" 1>&6
19481 else
19482
19483 cat > conftest.$ac_ext <<EOF
19484 #line 19485 "configure"
19485 #include "confdefs.h"
19486
19487 #include <time.h>
19488
19489 int main() {
19490
19491 int tz;
19492 tz = timezone;
19493
19494 ; return 0; }
19495 EOF
19496 if { (eval echo configure:19497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19497 rm -rf conftest*
19498
19499 wx_cv_var_timezone=timezone
19500
19501 else
19502 echo "configure: failed program was:" >&5
19503 cat conftest.$ac_ext >&5
19504 rm -rf conftest*
19505
19506 cat > conftest.$ac_ext <<EOF
19507 #line 19508 "configure"
19508 #include "confdefs.h"
19509
19510 #include <time.h>
19511
19512 int main() {
19513
19514 int tz;
19515 tz = _timezone;
19516
19517 ; return 0; }
19518 EOF
19519 if { (eval echo configure:19520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19520 rm -rf conftest*
19521
19522 wx_cv_var_timezone=_timezone
19523
19524 else
19525 echo "configure: failed program was:" >&5
19526 cat conftest.$ac_ext >&5
19527 rm -rf conftest*
19528
19529 cat > conftest.$ac_ext <<EOF
19530 #line 19531 "configure"
19531 #include "confdefs.h"
19532
19533 #include <time.h>
19534
19535 int main() {
19536
19537 int tz;
19538 tz = __timezone;
19539
19540 ; return 0; }
19541 EOF
19542 if { (eval echo configure:19543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19543 rm -rf conftest*
19544
19545 wx_cv_var_timezone=__timezone
19546
19547 else
19548 echo "configure: failed program was:" >&5
19549 cat conftest.$ac_ext >&5
19550 rm -rf conftest*
19551
19552 if test "$USE_DOS" = 0 ; then
19553 echo "configure: warning: no timezone variable" 1>&2
19554 fi
19555
19556
19557 fi
19558 rm -f conftest*
19559
19560
19561 fi
19562 rm -f conftest*
19563
19564
19565 fi
19566 rm -f conftest*
19567
19568
19569 fi
19570
19571 echo "$ac_t""$wx_cv_var_timezone" 1>&6
19572
19573 if test "x$wx_cv_var_timezone" != x ; then
19574 cat >> confdefs.h <<EOF
19575 #define WX_TIMEZONE $wx_cv_var_timezone
19576 EOF
19577
19578 fi
19579
19580 for ac_func in localtime
19581 do
19582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19583 echo "configure:19584: checking for $ac_func" >&5
19584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19585 echo $ac_n "(cached) $ac_c" 1>&6
19586 else
19587 cat > conftest.$ac_ext <<EOF
19588 #line 19589 "configure"
19589 #include "confdefs.h"
19590 /* System header to define __stub macros and hopefully few prototypes,
19591 which can conflict with char $ac_func(); below. */
19592 #include <assert.h>
19593 /* Override any gcc2 internal prototype to avoid an error. */
19594 /* We use char because int might match the return type of a gcc2
19595 builtin and then its argument prototype would still apply. */
19596 char $ac_func();
19597
19598 int main() {
19599
19600 /* The GNU C library defines this for functions which it implements
19601 to always fail with ENOSYS. Some functions are actually named
19602 something starting with __ and the normal name is an alias. */
19603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19604 choke me
19605 #else
19606 $ac_func();
19607 #endif
19608
19609 ; return 0; }
19610 EOF
19611 if { (eval echo configure:19612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19612 rm -rf conftest*
19613 eval "ac_cv_func_$ac_func=yes"
19614 else
19615 echo "configure: failed program was:" >&5
19616 cat conftest.$ac_ext >&5
19617 rm -rf conftest*
19618 eval "ac_cv_func_$ac_func=no"
19619 fi
19620 rm -f conftest*
19621 fi
19622
19623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19624 echo "$ac_t""yes" 1>&6
19625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19626 cat >> confdefs.h <<EOF
19627 #define $ac_tr_func 1
19628 EOF
19629
19630 else
19631 echo "$ac_t""no" 1>&6
19632 fi
19633 done
19634
19635
19636 if test "$ac_cv_func_localtime" = "yes"; then
19637 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19638 echo "configure:19639: checking for tm_gmtoff in struct tm" >&5
19639 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19640 echo $ac_n "(cached) $ac_c" 1>&6
19641 else
19642
19643 cat > conftest.$ac_ext <<EOF
19644 #line 19645 "configure"
19645 #include "confdefs.h"
19646
19647 #include <time.h>
19648
19649 int main() {
19650
19651 struct tm tm;
19652 tm.tm_gmtoff++;
19653
19654 ; return 0; }
19655 EOF
19656 if { (eval echo configure:19657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19657 rm -rf conftest*
19658
19659 wx_cv_struct_tm_has_gmtoff=yes
19660
19661 else
19662 echo "configure: failed program was:" >&5
19663 cat conftest.$ac_ext >&5
19664 rm -rf conftest*
19665 wx_cv_struct_tm_has_gmtoff=no
19666
19667 fi
19668 rm -f conftest*
19669
19670 fi
19671
19672 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19673 fi
19674
19675 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19676 cat >> confdefs.h <<\EOF
19677 #define WX_GMTOFF_IN_TM 1
19678 EOF
19679
19680 fi
19681
19682 for ac_func in gettimeofday ftime
19683 do
19684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19685 echo "configure:19686: checking for $ac_func" >&5
19686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19687 echo $ac_n "(cached) $ac_c" 1>&6
19688 else
19689 cat > conftest.$ac_ext <<EOF
19690 #line 19691 "configure"
19691 #include "confdefs.h"
19692 /* System header to define __stub macros and hopefully few prototypes,
19693 which can conflict with char $ac_func(); below. */
19694 #include <assert.h>
19695 /* Override any gcc2 internal prototype to avoid an error. */
19696 /* We use char because int might match the return type of a gcc2
19697 builtin and then its argument prototype would still apply. */
19698 char $ac_func();
19699
19700 int main() {
19701
19702 /* The GNU C library defines this for functions which it implements
19703 to always fail with ENOSYS. Some functions are actually named
19704 something starting with __ and the normal name is an alias. */
19705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19706 choke me
19707 #else
19708 $ac_func();
19709 #endif
19710
19711 ; return 0; }
19712 EOF
19713 if { (eval echo configure:19714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19714 rm -rf conftest*
19715 eval "ac_cv_func_$ac_func=yes"
19716 else
19717 echo "configure: failed program was:" >&5
19718 cat conftest.$ac_ext >&5
19719 rm -rf conftest*
19720 eval "ac_cv_func_$ac_func=no"
19721 fi
19722 rm -f conftest*
19723 fi
19724
19725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19726 echo "$ac_t""yes" 1>&6
19727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19728 cat >> confdefs.h <<EOF
19729 #define $ac_tr_func 1
19730 EOF
19731 break
19732 else
19733 echo "$ac_t""no" 1>&6
19734 fi
19735 done
19736
19737
19738 if test "$ac_cv_func_gettimeofday" = "yes"; then
19739 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19740 echo "configure:19741: checking whether gettimeofday takes two arguments" >&5
19741 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19742 echo $ac_n "(cached) $ac_c" 1>&6
19743 else
19744
19745
19746 ac_ext=C
19747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19748 ac_cpp='$CXXCPP $CPPFLAGS'
19749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19751 cross_compiling=$ac_cv_prog_cxx_cross
19752
19753
19754 cat > conftest.$ac_ext <<EOF
19755 #line 19756 "configure"
19756 #include "confdefs.h"
19757
19758 #include <sys/time.h>
19759 #include <unistd.h>
19760
19761 int main() {
19762
19763 struct timeval tv;
19764 gettimeofday(&tv, NULL);
19765
19766 ; return 0; }
19767 EOF
19768 if { (eval echo configure:19769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19769 rm -rf conftest*
19770 wx_cv_func_gettimeofday_has_2_args=yes
19771 else
19772 echo "configure: failed program was:" >&5
19773 cat conftest.$ac_ext >&5
19774 rm -rf conftest*
19775 cat > conftest.$ac_ext <<EOF
19776 #line 19777 "configure"
19777 #include "confdefs.h"
19778
19779 #include <sys/time.h>
19780 #include <unistd.h>
19781
19782 int main() {
19783
19784 struct timeval tv;
19785 gettimeofday(&tv);
19786
19787 ; return 0; }
19788 EOF
19789 if { (eval echo configure:19790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19790 rm -rf conftest*
19791 wx_cv_func_gettimeofday_has_2_args=no
19792 else
19793 echo "configure: failed program was:" >&5
19794 cat conftest.$ac_ext >&5
19795 rm -rf conftest*
19796
19797 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19798 wx_cv_func_gettimeofday_has_2_args=unknown
19799
19800
19801 fi
19802 rm -f conftest*
19803
19804 fi
19805 rm -f conftest*
19806 ac_ext=c
19807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19808 ac_cpp='$CPP $CPPFLAGS'
19809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19811 cross_compiling=$ac_cv_prog_cc_cross
19812
19813
19814 fi
19815
19816 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19817
19818 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19819 cat >> confdefs.h <<\EOF
19820 #define WX_GETTIMEOFDAY_NO_TZ 1
19821 EOF
19822
19823 fi
19824 fi
19825
19826 cat >> confdefs.h <<\EOF
19827 #define wxUSE_TIMEDATE 1
19828 EOF
19829
19830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19831 fi
19832
19833
19834 if test "$wxUSE_SOCKETS" = "yes"; then
19835 if test "$wxUSE_MGL" = "1"; then
19836 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19837 wxUSE_SOCKETS="no"
19838 fi
19839 fi
19840
19841 if test "$wxUSE_SOCKETS" = "yes"; then
19842 if test "$TOOLKIT" != "MSW"; then
19843 echo $ac_n "checking for socket""... $ac_c" 1>&6
19844 echo "configure:19845: checking for socket" >&5
19845 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19846 echo $ac_n "(cached) $ac_c" 1>&6
19847 else
19848 cat > conftest.$ac_ext <<EOF
19849 #line 19850 "configure"
19850 #include "confdefs.h"
19851 /* System header to define __stub macros and hopefully few prototypes,
19852 which can conflict with char socket(); below. */
19853 #include <assert.h>
19854 /* Override any gcc2 internal prototype to avoid an error. */
19855 /* We use char because int might match the return type of a gcc2
19856 builtin and then its argument prototype would still apply. */
19857 char socket();
19858
19859 int main() {
19860
19861 /* The GNU C library defines this for functions which it implements
19862 to always fail with ENOSYS. Some functions are actually named
19863 something starting with __ and the normal name is an alias. */
19864 #if defined (__stub_socket) || defined (__stub___socket)
19865 choke me
19866 #else
19867 socket();
19868 #endif
19869
19870 ; return 0; }
19871 EOF
19872 if { (eval echo configure:19873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19873 rm -rf conftest*
19874 eval "ac_cv_func_socket=yes"
19875 else
19876 echo "configure: failed program was:" >&5
19877 cat conftest.$ac_ext >&5
19878 rm -rf conftest*
19879 eval "ac_cv_func_socket=no"
19880 fi
19881 rm -f conftest*
19882 fi
19883
19884 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19885 echo "$ac_t""yes" 1>&6
19886 :
19887 else
19888 echo "$ac_t""no" 1>&6
19889 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19890 echo "configure:19891: checking for socket in -lsocket" >&5
19891 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19893 echo $ac_n "(cached) $ac_c" 1>&6
19894 else
19895 ac_save_LIBS="$LIBS"
19896 LIBS="-lsocket $LIBS"
19897 cat > conftest.$ac_ext <<EOF
19898 #line 19899 "configure"
19899 #include "confdefs.h"
19900 /* Override any gcc2 internal prototype to avoid an error. */
19901 /* We use char because int might match the return type of a gcc2
19902 builtin and then its argument prototype would still apply. */
19903 char socket();
19904
19905 int main() {
19906 socket()
19907 ; return 0; }
19908 EOF
19909 if { (eval echo configure:19910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19910 rm -rf conftest*
19911 eval "ac_cv_lib_$ac_lib_var=yes"
19912 else
19913 echo "configure: failed program was:" >&5
19914 cat conftest.$ac_ext >&5
19915 rm -rf conftest*
19916 eval "ac_cv_lib_$ac_lib_var=no"
19917 fi
19918 rm -f conftest*
19919 LIBS="$ac_save_LIBS"
19920
19921 fi
19922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19923 echo "$ac_t""yes" 1>&6
19924 if test "$INET_LINK" != " -lsocket"; then
19925 INET_LINK="$INET_LINK -lsocket"
19926 fi
19927 else
19928 echo "$ac_t""no" 1>&6
19929
19930 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19931 wxUSE_SOCKETS=no
19932
19933
19934 fi
19935
19936
19937 fi
19938
19939 fi
19940 fi
19941
19942 if test "$wxUSE_SOCKETS" = "yes" ; then
19943 if test "$TOOLKIT" != "MSW"; then
19944 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19945 echo "configure:19946: checking what is the type of the third argument of getsockname" >&5
19946 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19947 echo $ac_n "(cached) $ac_c" 1>&6
19948 else
19949
19950
19951 ac_ext=C
19952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19953 ac_cpp='$CXXCPP $CPPFLAGS'
19954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19956 cross_compiling=$ac_cv_prog_cxx_cross
19957
19958
19959 cat > conftest.$ac_ext <<EOF
19960 #line 19961 "configure"
19961 #include "confdefs.h"
19962
19963 #include <sys/types.h>
19964 #include <sys/socket.h>
19965
19966 int main() {
19967
19968 socklen_t len;
19969 getsockname(0, 0, &len);
19970
19971 ; return 0; }
19972 EOF
19973 if { (eval echo configure:19974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19974 rm -rf conftest*
19975 wx_cv_type_getsockname3=socklen_t
19976 else
19977 echo "configure: failed program was:" >&5
19978 cat conftest.$ac_ext >&5
19979 rm -rf conftest*
19980 cat > conftest.$ac_ext <<EOF
19981 #line 19982 "configure"
19982 #include "confdefs.h"
19983
19984 #include <sys/types.h>
19985 #include <sys/socket.h>
19986
19987 int main() {
19988
19989 size_t len;
19990 getsockname(0, 0, &len);
19991
19992 ; return 0; }
19993 EOF
19994 if { (eval echo configure:19995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19995 rm -rf conftest*
19996 wx_cv_type_getsockname3=size_t
19997 else
19998 echo "configure: failed program was:" >&5
19999 cat conftest.$ac_ext >&5
20000 rm -rf conftest*
20001 cat > conftest.$ac_ext <<EOF
20002 #line 20003 "configure"
20003 #include "confdefs.h"
20004
20005 #include <sys/types.h>
20006 #include <sys/socket.h>
20007
20008 int main() {
20009
20010 int len;
20011 getsockname(0, 0, &len);
20012
20013 ; return 0; }
20014 EOF
20015 if { (eval echo configure:20016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20016 rm -rf conftest*
20017 wx_cv_type_getsockname3=int
20018 else
20019 echo "configure: failed program was:" >&5
20020 cat conftest.$ac_ext >&5
20021 rm -rf conftest*
20022 wx_cv_type_getsockname3=unknown
20023
20024 fi
20025 rm -f conftest*
20026
20027 fi
20028 rm -f conftest*
20029
20030 fi
20031 rm -f conftest*
20032
20033 ac_ext=c
20034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20035 ac_cpp='$CPP $CPPFLAGS'
20036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20038 cross_compiling=$ac_cv_prog_cc_cross
20039
20040
20041 fi
20042
20043 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20044
20045 if test "$wx_cv_type_getsockname3" = "unknown"; then
20046 wxUSE_SOCKETS=no
20047 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20048 else
20049 cat >> confdefs.h <<EOF
20050 #define SOCKLEN_T $wx_cv_type_getsockname3
20051 EOF
20052
20053 fi
20054 fi
20055 fi
20056
20057 if test "$wxUSE_SOCKETS" = "yes" ; then
20058 cat >> confdefs.h <<\EOF
20059 #define wxUSE_SOCKETS 1
20060 EOF
20061
20062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20063 fi
20064
20065
20066 if test "$wxUSE_GUI" = "yes"; then
20067
20068 if test "$TOOLKIT" = "MAC"; then
20069 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20070 wxUSE_JOYSTICK=no
20071 fi
20072 if test "$TOOLKIT" = "MOTIF"; then
20073 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20074 wxUSE_JOYSTICK=no
20075 fi
20076 if test "$TOOLKIT" = "X11"; then
20077 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20078 wxUSE_JOYSTICK=no
20079 fi
20080
20081 if test "$TOOLKIT" != "MSW"; then
20082 if test "$wxUSE_JOYSTICK" = "yes"; then
20083 for ac_hdr in linux/joystick.h
20084 do
20085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20087 echo "configure:20088: checking for $ac_hdr" >&5
20088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20089 echo $ac_n "(cached) $ac_c" 1>&6
20090 else
20091 cat > conftest.$ac_ext <<EOF
20092 #line 20093 "configure"
20093 #include "confdefs.h"
20094 #include <$ac_hdr>
20095 EOF
20096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20097 { (eval echo configure:20098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20099 if test -z "$ac_err"; then
20100 rm -rf conftest*
20101 eval "ac_cv_header_$ac_safe=yes"
20102 else
20103 echo "$ac_err" >&5
20104 echo "configure: failed program was:" >&5
20105 cat conftest.$ac_ext >&5
20106 rm -rf conftest*
20107 eval "ac_cv_header_$ac_safe=no"
20108 fi
20109 rm -f conftest*
20110 fi
20111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20112 echo "$ac_t""yes" 1>&6
20113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20114 cat >> confdefs.h <<EOF
20115 #define $ac_tr_hdr 1
20116 EOF
20117
20118 else
20119 echo "$ac_t""no" 1>&6
20120 fi
20121 done
20122
20123 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20124 wxUSE_JOYSTICK=no
20125 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20126 fi
20127 fi
20128 fi
20129
20130 if test "$wxUSE_JOYSTICK" = "yes"; then
20131 cat >> confdefs.h <<\EOF
20132 #define wxUSE_JOYSTICK 1
20133 EOF
20134
20135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20136 fi
20137 fi
20138
20139
20140 if test "$TOOLKIT" != "MSW"; then
20141
20142 HAVE_DL_FUNCS=0
20143 HAVE_SHL_FUNCS=0
20144 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20145 if test "$USE_DARWIN" = 1; then
20146 HAVE_DL_FUNCS=1
20147 else
20148 for ac_func in dlopen
20149 do
20150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20151 echo "configure:20152: checking for $ac_func" >&5
20152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20153 echo $ac_n "(cached) $ac_c" 1>&6
20154 else
20155 cat > conftest.$ac_ext <<EOF
20156 #line 20157 "configure"
20157 #include "confdefs.h"
20158 /* System header to define __stub macros and hopefully few prototypes,
20159 which can conflict with char $ac_func(); below. */
20160 #include <assert.h>
20161 /* Override any gcc2 internal prototype to avoid an error. */
20162 /* We use char because int might match the return type of a gcc2
20163 builtin and then its argument prototype would still apply. */
20164 char $ac_func();
20165
20166 int main() {
20167
20168 /* The GNU C library defines this for functions which it implements
20169 to always fail with ENOSYS. Some functions are actually named
20170 something starting with __ and the normal name is an alias. */
20171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20172 choke me
20173 #else
20174 $ac_func();
20175 #endif
20176
20177 ; return 0; }
20178 EOF
20179 if { (eval echo configure:20180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20180 rm -rf conftest*
20181 eval "ac_cv_func_$ac_func=yes"
20182 else
20183 echo "configure: failed program was:" >&5
20184 cat conftest.$ac_ext >&5
20185 rm -rf conftest*
20186 eval "ac_cv_func_$ac_func=no"
20187 fi
20188 rm -f conftest*
20189 fi
20190
20191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20192 echo "$ac_t""yes" 1>&6
20193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20194 cat >> confdefs.h <<EOF
20195 #define $ac_tr_func 1
20196 EOF
20197
20198 cat >> confdefs.h <<\EOF
20199 #define HAVE_DLOPEN 1
20200 EOF
20201
20202 HAVE_DL_FUNCS=1
20203
20204 else
20205 echo "$ac_t""no" 1>&6
20206 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20207 echo "configure:20208: checking for dlopen in -ldl" >&5
20208 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20210 echo $ac_n "(cached) $ac_c" 1>&6
20211 else
20212 ac_save_LIBS="$LIBS"
20213 LIBS="-ldl $LIBS"
20214 cat > conftest.$ac_ext <<EOF
20215 #line 20216 "configure"
20216 #include "confdefs.h"
20217 /* Override any gcc2 internal prototype to avoid an error. */
20218 /* We use char because int might match the return type of a gcc2
20219 builtin and then its argument prototype would still apply. */
20220 char dlopen();
20221
20222 int main() {
20223 dlopen()
20224 ; return 0; }
20225 EOF
20226 if { (eval echo configure:20227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20227 rm -rf conftest*
20228 eval "ac_cv_lib_$ac_lib_var=yes"
20229 else
20230 echo "configure: failed program was:" >&5
20231 cat conftest.$ac_ext >&5
20232 rm -rf conftest*
20233 eval "ac_cv_lib_$ac_lib_var=no"
20234 fi
20235 rm -f conftest*
20236 LIBS="$ac_save_LIBS"
20237
20238 fi
20239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20240 echo "$ac_t""yes" 1>&6
20241
20242 cat >> confdefs.h <<\EOF
20243 #define HAVE_DLOPEN 1
20244 EOF
20245
20246 HAVE_DL_FUNCS=1
20247 DL_LINK=" -ldl$DL_LINK"
20248
20249 else
20250 echo "$ac_t""no" 1>&6
20251
20252 for ac_func in shl_load
20253 do
20254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20255 echo "configure:20256: checking for $ac_func" >&5
20256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20257 echo $ac_n "(cached) $ac_c" 1>&6
20258 else
20259 cat > conftest.$ac_ext <<EOF
20260 #line 20261 "configure"
20261 #include "confdefs.h"
20262 /* System header to define __stub macros and hopefully few prototypes,
20263 which can conflict with char $ac_func(); below. */
20264 #include <assert.h>
20265 /* Override any gcc2 internal prototype to avoid an error. */
20266 /* We use char because int might match the return type of a gcc2
20267 builtin and then its argument prototype would still apply. */
20268 char $ac_func();
20269
20270 int main() {
20271
20272 /* The GNU C library defines this for functions which it implements
20273 to always fail with ENOSYS. Some functions are actually named
20274 something starting with __ and the normal name is an alias. */
20275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20276 choke me
20277 #else
20278 $ac_func();
20279 #endif
20280
20281 ; return 0; }
20282 EOF
20283 if { (eval echo configure:20284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20284 rm -rf conftest*
20285 eval "ac_cv_func_$ac_func=yes"
20286 else
20287 echo "configure: failed program was:" >&5
20288 cat conftest.$ac_ext >&5
20289 rm -rf conftest*
20290 eval "ac_cv_func_$ac_func=no"
20291 fi
20292 rm -f conftest*
20293 fi
20294
20295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20296 echo "$ac_t""yes" 1>&6
20297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20298 cat >> confdefs.h <<EOF
20299 #define $ac_tr_func 1
20300 EOF
20301
20302 cat >> confdefs.h <<\EOF
20303 #define HAVE_SHL_LOAD 1
20304 EOF
20305
20306 HAVE_SHL_FUNCS=1
20307
20308 else
20309 echo "$ac_t""no" 1>&6
20310 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20311 echo "configure:20312: checking for dld in -lshl_load" >&5
20312 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20314 echo $ac_n "(cached) $ac_c" 1>&6
20315 else
20316 ac_save_LIBS="$LIBS"
20317 LIBS="-lshl_load $LIBS"
20318 cat > conftest.$ac_ext <<EOF
20319 #line 20320 "configure"
20320 #include "confdefs.h"
20321 /* Override any gcc2 internal prototype to avoid an error. */
20322 /* We use char because int might match the return type of a gcc2
20323 builtin and then its argument prototype would still apply. */
20324 char dld();
20325
20326 int main() {
20327 dld()
20328 ; return 0; }
20329 EOF
20330 if { (eval echo configure:20331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20331 rm -rf conftest*
20332 eval "ac_cv_lib_$ac_lib_var=yes"
20333 else
20334 echo "configure: failed program was:" >&5
20335 cat conftest.$ac_ext >&5
20336 rm -rf conftest*
20337 eval "ac_cv_lib_$ac_lib_var=no"
20338 fi
20339 rm -f conftest*
20340 LIBS="$ac_save_LIBS"
20341
20342 fi
20343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20344 echo "$ac_t""yes" 1>&6
20345
20346 HAVE_SHL_FUNCS=1
20347 DL_LINK=" -ldld$DL_LINK"
20348
20349 else
20350 echo "$ac_t""no" 1>&6
20351 fi
20352
20353
20354 fi
20355 done
20356
20357
20358 fi
20359
20360
20361 fi
20362 done
20363
20364
20365 if test "$HAVE_DL_FUNCS" = 1; then
20366 for ac_func in dlerror
20367 do
20368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20369 echo "configure:20370: checking for $ac_func" >&5
20370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20371 echo $ac_n "(cached) $ac_c" 1>&6
20372 else
20373 cat > conftest.$ac_ext <<EOF
20374 #line 20375 "configure"
20375 #include "confdefs.h"
20376 /* System header to define __stub macros and hopefully few prototypes,
20377 which can conflict with char $ac_func(); below. */
20378 #include <assert.h>
20379 /* Override any gcc2 internal prototype to avoid an error. */
20380 /* We use char because int might match the return type of a gcc2
20381 builtin and then its argument prototype would still apply. */
20382 char $ac_func();
20383
20384 int main() {
20385
20386 /* The GNU C library defines this for functions which it implements
20387 to always fail with ENOSYS. Some functions are actually named
20388 something starting with __ and the normal name is an alias. */
20389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20390 choke me
20391 #else
20392 $ac_func();
20393 #endif
20394
20395 ; return 0; }
20396 EOF
20397 if { (eval echo configure:20398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20398 rm -rf conftest*
20399 eval "ac_cv_func_$ac_func=yes"
20400 else
20401 echo "configure: failed program was:" >&5
20402 cat conftest.$ac_ext >&5
20403 rm -rf conftest*
20404 eval "ac_cv_func_$ac_func=no"
20405 fi
20406 rm -f conftest*
20407 fi
20408
20409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20410 echo "$ac_t""yes" 1>&6
20411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20412 cat >> confdefs.h <<EOF
20413 #define $ac_tr_func 1
20414 EOF
20415 cat >> confdefs.h <<\EOF
20416 #define HAVE_DLERROR 1
20417 EOF
20418
20419 else
20420 echo "$ac_t""no" 1>&6
20421 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20422 echo "configure:20423: checking for dlerror in -ldl" >&5
20423 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20425 echo $ac_n "(cached) $ac_c" 1>&6
20426 else
20427 ac_save_LIBS="$LIBS"
20428 LIBS="-ldl $LIBS"
20429 cat > conftest.$ac_ext <<EOF
20430 #line 20431 "configure"
20431 #include "confdefs.h"
20432 /* Override any gcc2 internal prototype to avoid an error. */
20433 /* We use char because int might match the return type of a gcc2
20434 builtin and then its argument prototype would still apply. */
20435 char dlerror();
20436
20437 int main() {
20438 dlerror()
20439 ; return 0; }
20440 EOF
20441 if { (eval echo configure:20442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20442 rm -rf conftest*
20443 eval "ac_cv_lib_$ac_lib_var=yes"
20444 else
20445 echo "configure: failed program was:" >&5
20446 cat conftest.$ac_ext >&5
20447 rm -rf conftest*
20448 eval "ac_cv_lib_$ac_lib_var=no"
20449 fi
20450 rm -f conftest*
20451 LIBS="$ac_save_LIBS"
20452
20453 fi
20454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20455 echo "$ac_t""yes" 1>&6
20456 cat >> confdefs.h <<\EOF
20457 #define HAVE_DLERROR 1
20458 EOF
20459
20460 else
20461 echo "$ac_t""no" 1>&6
20462 fi
20463
20464 fi
20465 done
20466
20467 fi
20468 fi
20469
20470 if test "$HAVE_DL_FUNCS" = 0; then
20471 if test "$HAVE_SHL_FUNCS" = 0; then
20472 if test "$USE_UNIX" = 1; then
20473 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20474 wxUSE_DYNAMIC_LOADER=no
20475 wxUSE_DYNLIB_CLASS=no
20476 else
20477 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20478 fi
20479 fi
20480 fi
20481 fi
20482 fi
20483
20484 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20485 cat >> confdefs.h <<\EOF
20486 #define wxUSE_DYNAMIC_LOADER 1
20487 EOF
20488
20489 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20490 cat >> confdefs.h <<\EOF
20491 #define wxUSE_DYNLIB_CLASS 1
20492 EOF
20493
20494 fi
20495
20496
20497 if test "$wxUSE_FONTMAP" = "yes" ; then
20498 cat >> confdefs.h <<\EOF
20499 #define wxUSE_FONTMAP 1
20500 EOF
20501
20502 fi
20503
20504 if test "$wxUSE_UNICODE" = "yes" ; then
20505 cat >> confdefs.h <<\EOF
20506 #define wxUSE_UNICODE 1
20507 EOF
20508
20509
20510 if test "$wxUSE_MSW" != 1; then
20511 wxUSE_UNICODE_MSLU=no
20512 fi
20513
20514 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20515 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20516 echo "configure:20517: checking for main in -lunicows" >&5
20517 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20519 echo $ac_n "(cached) $ac_c" 1>&6
20520 else
20521 ac_save_LIBS="$LIBS"
20522 LIBS="-lunicows $LIBS"
20523 cat > conftest.$ac_ext <<EOF
20524 #line 20525 "configure"
20525 #include "confdefs.h"
20526
20527 int main() {
20528 main()
20529 ; return 0; }
20530 EOF
20531 if { (eval echo configure:20532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20532 rm -rf conftest*
20533 eval "ac_cv_lib_$ac_lib_var=yes"
20534 else
20535 echo "configure: failed program was:" >&5
20536 cat conftest.$ac_ext >&5
20537 rm -rf conftest*
20538 eval "ac_cv_lib_$ac_lib_var=no"
20539 fi
20540 rm -f conftest*
20541 LIBS="$ac_save_LIBS"
20542
20543 fi
20544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20545 echo "$ac_t""yes" 1>&6
20546
20547 cat >> confdefs.h <<\EOF
20548 #define wxUSE_UNICODE_MSLU 1
20549 EOF
20550
20551
20552 else
20553 echo "$ac_t""no" 1>&6
20554
20555 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20556 Applications will only run on Windows NT/2000/XP!" 1>&2
20557 wxUSE_UNICODE_MSLU=no
20558
20559 fi
20560
20561 fi
20562 fi
20563
20564 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20565 cat >> confdefs.h <<\EOF
20566 #define wxUSE_EXPERIMENTAL_PRINTF 1
20567 EOF
20568
20569 fi
20570
20571
20572
20573 IODBC_C_SRC=""
20574 if test "$wxUSE_ODBC" = "yes" ; then
20575 cat >> confdefs.h <<\EOF
20576 #define wxUSE_ODBC 1
20577 EOF
20578
20579 WXODBCFLAG="-D_IODBC_"
20580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20581 fi
20582
20583
20584 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20585 cat >> confdefs.h <<\EOF
20586 #define wxUSE_POSTSCRIPT 1
20587 EOF
20588
20589 fi
20590
20591 cat >> confdefs.h <<\EOF
20592 #define wxUSE_AFM_FOR_POSTSCRIPT 1
20593 EOF
20594
20595
20596 cat >> confdefs.h <<\EOF
20597 #define wxUSE_NORMALIZED_PS_FONTS 1
20598 EOF
20599
20600
20601
20602 if test "$wxUSE_CONSTRAINTS" = "yes"; then
20603 cat >> confdefs.h <<\EOF
20604 #define wxUSE_CONSTRAINTS 1
20605 EOF
20606
20607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20608 fi
20609
20610 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20611
20612
20613 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20614 cat >> confdefs.h <<\EOF
20615 #define wxUSE_MDI_ARCHITECTURE 1
20616 EOF
20617
20618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20619 fi
20620 fi
20621
20622 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20623 cat >> confdefs.h <<\EOF
20624 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
20625 EOF
20626
20627 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20628 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20630 fi
20631 fi
20632
20633 if test "$wxUSE_HELP" = "yes"; then
20634 cat >> confdefs.h <<\EOF
20635 #define wxUSE_HELP 1
20636 EOF
20637
20638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20639
20640 if test "$wxUSE_MSW" = 1; then
20641 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20642 cat >> confdefs.h <<\EOF
20643 #define wxUSE_MS_HTML_HELP 1
20644 EOF
20645
20646 fi
20647 fi
20648
20649 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20650 if test "$wxUSE_HTML" = "yes"; then
20651 cat >> confdefs.h <<\EOF
20652 #define wxUSE_WXHTML_HELP 1
20653 EOF
20654
20655 else
20656 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20657 wxUSE_WXHTML_HELP=no
20658 fi
20659 fi
20660 fi
20661
20662 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20663 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20664 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20665 else
20666 cat >> confdefs.h <<\EOF
20667 #define wxUSE_PRINTING_ARCHITECTURE 1
20668 EOF
20669
20670 fi
20671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20672 fi
20673
20674 if test "$wxUSE_PROLOGIO" = "yes" ; then
20675 cat >> confdefs.h <<\EOF
20676 #define wxUSE_PROLOGIO 1
20677 EOF
20678
20679 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20680 fi
20681
20682 if test "$wxUSE_RESOURCES" = "yes" ; then
20683 if test "$wxUSE_NANOX" = "yes"; then
20684 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20685 else
20686 cat >> confdefs.h <<\EOF
20687 #define wxUSE_RESOURCES 1
20688 EOF
20689
20690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20691 fi
20692 if test "$wxUSE_PROLOGIO" != "yes" ; then
20693 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20694 fi
20695 fi
20696
20697 if test "$wxUSE_X_RESOURCES" = "yes"; then
20698 cat >> confdefs.h <<\EOF
20699 #define wxUSE_X_RESOURCES 1
20700 EOF
20701
20702 fi
20703
20704
20705 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20706 -o "$wxUSE_CLIPBOARD" = "yes" \
20707 -o "$wxUSE_OLE" = "yes" \
20708 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20709 for ac_hdr in ole2.h
20710 do
20711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20713 echo "configure:20714: checking for $ac_hdr" >&5
20714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20715 echo $ac_n "(cached) $ac_c" 1>&6
20716 else
20717 cat > conftest.$ac_ext <<EOF
20718 #line 20719 "configure"
20719 #include "confdefs.h"
20720 #include <$ac_hdr>
20721 EOF
20722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20723 { (eval echo configure:20724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20725 if test -z "$ac_err"; then
20726 rm -rf conftest*
20727 eval "ac_cv_header_$ac_safe=yes"
20728 else
20729 echo "$ac_err" >&5
20730 echo "configure: failed program was:" >&5
20731 cat conftest.$ac_ext >&5
20732 rm -rf conftest*
20733 eval "ac_cv_header_$ac_safe=no"
20734 fi
20735 rm -f conftest*
20736 fi
20737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20738 echo "$ac_t""yes" 1>&6
20739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20740 cat >> confdefs.h <<EOF
20741 #define $ac_tr_hdr 1
20742 EOF
20743
20744 else
20745 echo "$ac_t""no" 1>&6
20746 fi
20747 done
20748
20749
20750 if test "$ac_cv_header_ole2_h" = "yes" ; then
20751 if test "$GCC" = yes ; then
20752
20753 ac_ext=C
20754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20755 ac_cpp='$CXXCPP $CPPFLAGS'
20756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20758 cross_compiling=$ac_cv_prog_cxx_cross
20759
20760
20761 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20762 echo "configure:20763: checking if g++ requires -fvtable-thunks" >&5
20763 cat > conftest.$ac_ext <<EOF
20764 #line 20765 "configure"
20765 #include "confdefs.h"
20766 #include <windows.h>
20767 #include <ole2.h>
20768 int main() {
20769
20770 ; return 0; }
20771 EOF
20772 if { (eval echo configure:20773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20773 rm -rf conftest*
20774 echo "$ac_t""no" 1>&6
20775 else
20776 echo "configure: failed program was:" >&5
20777 cat conftest.$ac_ext >&5
20778 rm -rf conftest*
20779 echo "$ac_t""yes" 1>&6
20780 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20781 fi
20782 rm -f conftest*
20783 ac_ext=c
20784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20785 ac_cpp='$CPP $CPPFLAGS'
20786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20788 cross_compiling=$ac_cv_prog_cc_cross
20789
20790 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20791 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20792 cat >> confdefs.h <<\EOF
20793 #define wxUSE_OLE 1
20794 EOF
20795
20796
20797 fi
20798
20799 cat >> confdefs.h <<\EOF
20800 #define wxUSE_DATAOBJ 1
20801 EOF
20802
20803 else
20804 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20805
20806 wxUSE_CLIPBOARD=no
20807 wxUSE_DRAG_AND_DROP=no
20808 wxUSE_DATAOBJ=no
20809 wxUSE_OLE=no
20810 fi
20811
20812 if test "$wxUSE_METAFILE" = "yes"; then
20813 cat >> confdefs.h <<\EOF
20814 #define wxUSE_METAFILE 1
20815 EOF
20816
20817
20818 cat >> confdefs.h <<\EOF
20819 #define wxUSE_ENH_METAFILE 1
20820 EOF
20821
20822 fi
20823 fi
20824
20825 if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20826 -o "$wxUSE_CLIPBOARD" = "yes" \
20827 -o "$wxUSE_OLE" = "yes" \
20828 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20829 for ac_hdr in ole2.h
20830 do
20831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20833 echo "configure:20834: checking for $ac_hdr" >&5
20834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20835 echo $ac_n "(cached) $ac_c" 1>&6
20836 else
20837 cat > conftest.$ac_ext <<EOF
20838 #line 20839 "configure"
20839 #include "confdefs.h"
20840 #include <$ac_hdr>
20841 EOF
20842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20843 { (eval echo configure:20844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20845 if test -z "$ac_err"; then
20846 rm -rf conftest*
20847 eval "ac_cv_header_$ac_safe=yes"
20848 else
20849 echo "$ac_err" >&5
20850 echo "configure: failed program was:" >&5
20851 cat conftest.$ac_ext >&5
20852 rm -rf conftest*
20853 eval "ac_cv_header_$ac_safe=no"
20854 fi
20855 rm -f conftest*
20856 fi
20857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20858 echo "$ac_t""yes" 1>&6
20859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20860 cat >> confdefs.h <<EOF
20861 #define $ac_tr_hdr 1
20862 EOF
20863
20864 else
20865 echo "$ac_t""no" 1>&6
20866 fi
20867 done
20868
20869
20870 if test "$ac_cv_header_ole2_h" = "yes" ; then
20871 if test "$GCC" = yes ; then
20872
20873 ac_ext=C
20874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20875 ac_cpp='$CXXCPP $CPPFLAGS'
20876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20878 cross_compiling=$ac_cv_prog_cxx_cross
20879
20880
20881 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20882 echo "configure:20883: checking if g++ requires -fvtable-thunks" >&5
20883 cat > conftest.$ac_ext <<EOF
20884 #line 20885 "configure"
20885 #include "confdefs.h"
20886 #include <windows.h>
20887 #include <ole2.h>
20888 int main() {
20889
20890 ; return 0; }
20891 EOF
20892 if { (eval echo configure:20893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20893 rm -rf conftest*
20894 echo "$ac_t""no" 1>&6
20895 else
20896 echo "configure: failed program was:" >&5
20897 cat conftest.$ac_ext >&5
20898 rm -rf conftest*
20899 echo "$ac_t""yes" 1>&6
20900 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20901 fi
20902 rm -f conftest*
20903 ac_ext=c
20904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20905 ac_cpp='$CPP $CPPFLAGS'
20906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20908 cross_compiling=$ac_cv_prog_cc_cross
20909
20910 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20911 LIBS=" -lwine_uuid$LIBS"
20912 cat >> confdefs.h <<\EOF
20913 #define wxUSE_OLE 1
20914 EOF
20915
20916
20917 fi
20918
20919 cat >> confdefs.h <<\EOF
20920 #define wxUSE_DATAOBJ 1
20921 EOF
20922
20923 else
20924 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20925
20926 wxUSE_CLIPBOARD=no
20927 wxUSE_DRAG_AND_DROP=no
20928 wxUSE_DATAOBJ=no
20929 wxUSE_OLE=no
20930 fi
20931
20932 if test "$wxUSE_METAFILE" = "yes"; then
20933 cat >> confdefs.h <<\EOF
20934 #define wxUSE_METAFILE 1
20935 EOF
20936
20937
20938 cat >> confdefs.h <<\EOF
20939 #define wxUSE_ENH_METAFILE 1
20940 EOF
20941
20942 fi
20943 fi
20944
20945 if test "$wxUSE_IPC" = "yes"; then
20946 if test "$wxUSE_SOCKETS" != "yes"; then
20947 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20948 fi
20949
20950 cat >> confdefs.h <<\EOF
20951 #define wxUSE_IPC 1
20952 EOF
20953
20954 fi
20955
20956 if test "$wxUSE_CLIPBOARD" = "yes"; then
20957 if test "$wxUSE_MGL" = 1; then
20958 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20959 wxUSE_CLIPBOARD=no
20960 fi
20961
20962 if test "$wxUSE_CLIPBOARD" = "yes"; then
20963 cat >> confdefs.h <<\EOF
20964 #define wxUSE_CLIPBOARD 1
20965 EOF
20966
20967
20968 cat >> confdefs.h <<\EOF
20969 #define wxUSE_DATAOBJ 1
20970 EOF
20971
20972 fi
20973 fi
20974
20975 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20976 if test "$wxUSE_GTK" = 1; then
20977 if test "$WXGTK12" != 1; then
20978 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20979 wxUSE_DRAG_AND_DROP=no
20980 fi
20981 fi
20982
20983 if test "$wxUSE_MOTIF" = 1; then
20984 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20985 wxUSE_DRAG_AND_DROP=no
20986 fi
20987
20988 if test "$wxUSE_X11" = 1; then
20989 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20990 wxUSE_DRAG_AND_DROP=no
20991 fi
20992
20993 if test "$wxUSE_MGL" = 1; then
20994 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20995 wxUSE_DRAG_AND_DROP=no
20996 fi
20997
20998 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20999 cat >> confdefs.h <<\EOF
21000 #define wxUSE_DRAG_AND_DROP 1
21001 EOF
21002
21003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21004 fi
21005
21006 fi
21007
21008 if test "$wxUSE_SPLINES" = "yes" ; then
21009 cat >> confdefs.h <<\EOF
21010 #define wxUSE_SPLINES 1
21011 EOF
21012
21013 fi
21014
21015
21016 USES_CONTROLS=0
21017 if test "$wxUSE_CONTROLS" = "yes"; then
21018 USES_CONTROLS=1
21019 fi
21020
21021 if test "$wxUSE_ACCEL" = "yes"; then
21022 cat >> confdefs.h <<\EOF
21023 #define wxUSE_ACCEL 1
21024 EOF
21025
21026 USES_CONTROLS=1
21027 fi
21028
21029 if test "$wxUSE_BUTTON" = "yes"; then
21030 cat >> confdefs.h <<\EOF
21031 #define wxUSE_BUTTON 1
21032 EOF
21033
21034 USES_CONTROLS=1
21035 fi
21036
21037 if test "$wxUSE_BMPBUTTON" = "yes"; then
21038 cat >> confdefs.h <<\EOF
21039 #define wxUSE_BMPBUTTON 1
21040 EOF
21041
21042 USES_CONTROLS=1
21043 fi
21044
21045 if test "$wxUSE_CALCTRL" = "yes"; then
21046 cat >> confdefs.h <<\EOF
21047 #define wxUSE_CALENDARCTRL 1
21048 EOF
21049
21050 USES_CONTROLS=1
21051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21052 fi
21053
21054 if test "$wxUSE_CARET" = "yes"; then
21055 cat >> confdefs.h <<\EOF
21056 #define wxUSE_CARET 1
21057 EOF
21058
21059 USES_CONTROLS=1
21060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21061 fi
21062
21063 if test "$wxUSE_COMBOBOX" = "yes"; then
21064 cat >> confdefs.h <<\EOF
21065 #define wxUSE_COMBOBOX 1
21066 EOF
21067
21068 USES_CONTROLS=1
21069 fi
21070
21071 if test "$wxUSE_CHOICE" = "yes"; then
21072 cat >> confdefs.h <<\EOF
21073 #define wxUSE_CHOICE 1
21074 EOF
21075
21076 USES_CONTROLS=1
21077 fi
21078
21079 if test "$wxUSE_CHECKBOX" = "yes"; then
21080 cat >> confdefs.h <<\EOF
21081 #define wxUSE_CHECKBOX 1
21082 EOF
21083
21084 USES_CONTROLS=1
21085 fi
21086
21087 if test "$wxUSE_CHECKLST" = "yes"; then
21088 cat >> confdefs.h <<\EOF
21089 #define wxUSE_CHECKLISTBOX 1
21090 EOF
21091
21092 USES_CONTROLS=1
21093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21094 fi
21095
21096 if test "$wxUSE_GAUGE" = "yes"; then
21097 cat >> confdefs.h <<\EOF
21098 #define wxUSE_GAUGE 1
21099 EOF
21100
21101 USES_CONTROLS=1
21102 fi
21103
21104 if test "$wxUSE_NEW_GRID" = "yes"; then
21105 wxUSE_GRID="yes"
21106 cat >> confdefs.h <<\EOF
21107 #define wxUSE_NEW_GRID 1
21108 EOF
21109
21110 USES_CONTROLS=1
21111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21112 fi
21113
21114 if test "$wxUSE_GRID" = "yes"; then
21115 cat >> confdefs.h <<\EOF
21116 #define wxUSE_GRID 1
21117 EOF
21118
21119 USES_CONTROLS=1
21120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21121 fi
21122
21123 if test "$wxUSE_IMAGLIST" = "yes"; then
21124 cat >> confdefs.h <<\EOF
21125 #define wxUSE_IMAGLIST 1
21126 EOF
21127
21128 fi
21129
21130 if test "$wxUSE_LISTBOX" = "yes"; then
21131 cat >> confdefs.h <<\EOF
21132 #define wxUSE_LISTBOX 1
21133 EOF
21134
21135 USES_CONTROLS=1
21136 fi
21137
21138 if test "$wxUSE_LISTCTRL" = "yes"; then
21139 if test "$wxUSE_IMAGLIST" = "yes"; then
21140 cat >> confdefs.h <<\EOF
21141 #define wxUSE_LISTCTRL 1
21142 EOF
21143
21144 USES_CONTROLS=1
21145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21146 else
21147 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21148 fi
21149 fi
21150
21151 if test "$wxUSE_NOTEBOOK" = "yes"; then
21152 cat >> confdefs.h <<\EOF
21153 #define wxUSE_NOTEBOOK 1
21154 EOF
21155
21156 USES_CONTROLS=1
21157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21158 fi
21159
21160 if test "$wxUSE_PROPSHEET" = "yes"; then
21161 cat >> confdefs.h <<\EOF
21162 #define wxUSE_PROPSHEET 1
21163 EOF
21164
21165 USES_CONTROLS=1
21166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21167 fi
21168
21169 if test "$wxUSE_RADIOBOX" = "yes"; then
21170 cat >> confdefs.h <<\EOF
21171 #define wxUSE_RADIOBOX 1
21172 EOF
21173
21174 USES_CONTROLS=1
21175 fi
21176
21177 if test "$wxUSE_RADIOBTN" = "yes"; then
21178 cat >> confdefs.h <<\EOF
21179 #define wxUSE_RADIOBTN 1
21180 EOF
21181
21182 USES_CONTROLS=1
21183 fi
21184
21185 if test "$wxUSE_SASH" = "yes"; then
21186 cat >> confdefs.h <<\EOF
21187 #define wxUSE_SASH 1
21188 EOF
21189
21190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21191 fi
21192
21193 if test "$wxUSE_SCROLLBAR" = "yes"; then
21194 cat >> confdefs.h <<\EOF
21195 #define wxUSE_SCROLLBAR 1
21196 EOF
21197
21198 USES_CONTROLS=1
21199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21200 fi
21201
21202 if test "$wxUSE_SLIDER" = "yes"; then
21203 cat >> confdefs.h <<\EOF
21204 #define wxUSE_SLIDER 1
21205 EOF
21206
21207 USES_CONTROLS=1
21208 fi
21209
21210 if test "$wxUSE_SPINBTN" = "yes"; then
21211 cat >> confdefs.h <<\EOF
21212 #define wxUSE_SPINBTN 1
21213 EOF
21214
21215 USES_CONTROLS=1
21216 fi
21217
21218 if test "$wxUSE_SPINCTRL" = "yes"; then
21219 cat >> confdefs.h <<\EOF
21220 #define wxUSE_SPINCTRL 1
21221 EOF
21222
21223 USES_CONTROLS=1
21224 fi
21225
21226 if test "$wxUSE_SPLITTER" = "yes"; then
21227 cat >> confdefs.h <<\EOF
21228 #define wxUSE_SPLITTER 1
21229 EOF
21230
21231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21232 fi
21233
21234 if test "$wxUSE_STATBMP" = "yes"; then
21235 cat >> confdefs.h <<\EOF
21236 #define wxUSE_STATBMP 1
21237 EOF
21238
21239 USES_CONTROLS=1
21240 fi
21241
21242 if test "$wxUSE_STATBOX" = "yes"; then
21243 cat >> confdefs.h <<\EOF
21244 #define wxUSE_STATBOX 1
21245 EOF
21246
21247 USES_CONTROLS=1
21248 fi
21249
21250 if test "$wxUSE_STATTEXT" = "yes"; then
21251 cat >> confdefs.h <<\EOF
21252 #define wxUSE_STATTEXT 1
21253 EOF
21254
21255 USES_CONTROLS=1
21256 fi
21257
21258 if test "$wxUSE_STATLINE" = "yes"; then
21259 if test "$wxUSE_WINE" = 1 ; then
21260 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
21261 else
21262 cat >> confdefs.h <<\EOF
21263 #define wxUSE_STATLINE 1
21264 EOF
21265
21266 USES_CONTROLS=1
21267 fi
21268 fi
21269
21270 if test "$wxUSE_STATUSBAR" = "yes"; then
21271 cat >> confdefs.h <<\EOF
21272 #define wxUSE_STATUSBAR 1
21273 EOF
21274
21275 USES_CONTROLS=1
21276
21277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21278 fi
21279
21280 if test "$wxUSE_TABDIALOG" = "yes"; then
21281 cat >> confdefs.h <<\EOF
21282 #define wxUSE_TAB_DIALOG 1
21283 EOF
21284
21285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21286 fi
21287
21288 if test "$wxUSE_TEXTCTRL" = "yes"; then
21289 cat >> confdefs.h <<\EOF
21290 #define wxUSE_TEXTCTRL 1
21291 EOF
21292
21293 USES_CONTROLS=1
21294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21295 fi
21296
21297 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21298 if test "$wxUSE_MAC" = 1; then
21299 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21300 wxUSE_TOGGLEBTN=no
21301 fi
21302 if test "$wxUSE_UNIVERSAL" = "yes"; then
21303 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21304 wxUSE_TOGGLEBTN=no
21305 fi
21306
21307 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21308 cat >> confdefs.h <<\EOF
21309 #define wxUSE_TOGGLEBTN 1
21310 EOF
21311
21312 USES_CONTROLS=1
21313 fi
21314 fi
21315
21316 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21317 cat >> confdefs.h <<\EOF
21318 #define wxUSE_TOOLBAR_SIMPLE 1
21319 EOF
21320
21321 wxUSE_TOOLBAR="yes"
21322 USES_CONTROLS=1
21323 fi
21324
21325 if test "$wxUSE_TOOLBAR" = "yes"; then
21326 cat >> confdefs.h <<\EOF
21327 #define wxUSE_TOOLBAR 1
21328 EOF
21329
21330 USES_CONTROLS=1
21331
21332 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21333 wxUSE_TOOLBAR_NATIVE="yes"
21334 fi
21335
21336 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21337 cat >> confdefs.h <<\EOF
21338 #define wxUSE_TOOLBAR_NATIVE 1
21339 EOF
21340
21341 USES_CONTROLS=1
21342 fi
21343
21344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21345 fi
21346
21347 if test "$wxUSE_TOOLTIPS" = "yes"; then
21348 if test "$wxUSE_MOTIF" = 1; then
21349 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21350 else
21351 if test "$wxUSE_WINE" = 1; then
21352 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
21353 else
21354 if test "$wxUSE_UNIVERSAL" = "yes"; then
21355 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21356 else
21357 cat >> confdefs.h <<\EOF
21358 #define wxUSE_TOOLTIPS 1
21359 EOF
21360
21361 fi
21362 fi
21363 fi
21364 fi
21365
21366 if test "$wxUSE_TREECTRL" = "yes"; then
21367 if test "$wxUSE_IMAGLIST" = "yes"; then
21368 cat >> confdefs.h <<\EOF
21369 #define wxUSE_TREECTRL 1
21370 EOF
21371
21372 USES_CONTROLS=1
21373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21374 else
21375 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21376 fi
21377 fi
21378
21379 if test "$wxUSE_POPUPWIN" = "yes"; then
21380 if test "$wxUSE_MAC" = 1; then
21381 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21382 else
21383 if test "$wxUSE_MOTIF" = 1; then
21384 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21385 else
21386 if test "$wxUSE_PM" = 1; then
21387 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21388 else
21389 cat >> confdefs.h <<\EOF
21390 #define wxUSE_POPUPWIN 1
21391 EOF
21392
21393
21394 USES_CONTROLS=1
21395 fi
21396 fi
21397 fi
21398 fi
21399
21400 if test "$wxUSE_TIPWINDOW" = "yes"; then
21401 if test "$wxUSE_PM" = 1; then
21402 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21403 else
21404 cat >> confdefs.h <<\EOF
21405 #define wxUSE_TIPWINDOW 1
21406 EOF
21407
21408 fi
21409 fi
21410
21411 if test "$USES_CONTROLS" = 1; then
21412 cat >> confdefs.h <<\EOF
21413 #define wxUSE_CONTROLS 1
21414 EOF
21415
21416 fi
21417
21418
21419 if test "$wxUSE_TREELAYOUT" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421 #define wxUSE_TREELAYOUT 1
21422 EOF
21423
21424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21425 fi
21426
21427 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21428 cat >> confdefs.h <<\EOF
21429 #define wxUSE_DRAGIMAGE 1
21430 EOF
21431
21432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21433 fi
21434
21435 if test "$wxUSE_MENUS" = "yes"; then
21436 cat >> confdefs.h <<\EOF
21437 #define wxUSE_MENUS 1
21438 EOF
21439
21440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21441 fi
21442
21443 if test "$wxUSE_METAFILE" = "yes"; then
21444 cat >> confdefs.h <<\EOF
21445 #define wxUSE_METAFILE 1
21446 EOF
21447
21448 fi
21449
21450 if test "$wxUSE_MIMETYPE" = "yes"; then
21451 cat >> confdefs.h <<\EOF
21452 #define wxUSE_MIMETYPE 1
21453 EOF
21454
21455 fi
21456
21457 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21458 cat >> confdefs.h <<\EOF
21459 #define wxUSE_SYSTEM_OPTIONS 1
21460 EOF
21461
21462 if test "$TOOLKIT" = "MSW"; then
21463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21464 fi
21465
21466 fi
21467
21468 if test "$wxUSE_PROTOCOL" = "yes"; then
21469 if test "$wxUSE_SOCKETS" != "yes"; then
21470 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21471 wxUSE_PROTOCOL=no
21472 fi
21473
21474 if test "$wxUSE_PROTOCOL" = "yes"; then
21475 cat >> confdefs.h <<\EOF
21476 #define wxUSE_PROTOCOL 1
21477 EOF
21478
21479
21480 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21481 cat >> confdefs.h <<\EOF
21482 #define wxUSE_PROTOCOL_HTTP 1
21483 EOF
21484
21485 fi
21486 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21487 cat >> confdefs.h <<\EOF
21488 #define wxUSE_PROTOCOL_FTP 1
21489 EOF
21490
21491 fi
21492 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21493 cat >> confdefs.h <<\EOF
21494 #define wxUSE_PROTOCOL_FILE 1
21495 EOF
21496
21497 fi
21498 fi
21499 fi
21500
21501 if test "$wxUSE_URL" = "yes"; then
21502 if test "$wxUSE_PROTOCOL" != "yes"; then
21503 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21504 wxUSE_URL=no
21505 fi
21506 if test "$wxUSE_URL" = "yes"; then
21507 cat >> confdefs.h <<\EOF
21508 #define wxUSE_URL 1
21509 EOF
21510
21511 fi
21512 fi
21513
21514 if test "$wxUSE_MINIFRAME" = "yes"; then
21515 cat >> confdefs.h <<\EOF
21516 #define wxUSE_MINIFRAME 1
21517 EOF
21518
21519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21520 fi
21521
21522 if test "$wxUSE_HTML" = "yes"; then
21523 cat >> confdefs.h <<\EOF
21524 #define wxUSE_HTML 1
21525 EOF
21526
21527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21528 fi
21529
21530 if test "$wxUSE_VALIDATORS" = "yes"; then
21531 cat >> confdefs.h <<\EOF
21532 #define wxUSE_VALIDATORS 1
21533 EOF
21534
21535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21536 fi
21537
21538 if test "$wxUSE_PALETTE" = "yes" ; then
21539 cat >> confdefs.h <<\EOF
21540 #define wxUSE_PALETTE 1
21541 EOF
21542
21543 fi
21544
21545 if test "$wxUSE_IMAGE" = "yes" ; then
21546 cat >> confdefs.h <<\EOF
21547 #define wxUSE_IMAGE 1
21548 EOF
21549
21550 fi
21551
21552 if test "$wxUSE_GIF" = "yes" ; then
21553 cat >> confdefs.h <<\EOF
21554 #define wxUSE_GIF 1
21555 EOF
21556
21557 fi
21558
21559 if test "$wxUSE_PCX" = "yes" ; then
21560 cat >> confdefs.h <<\EOF
21561 #define wxUSE_PCX 1
21562 EOF
21563
21564 fi
21565
21566 if test "$wxUSE_IFF" = "yes" ; then
21567 cat >> confdefs.h <<\EOF
21568 #define wxUSE_IFF 1
21569 EOF
21570
21571 fi
21572
21573 if test "$wxUSE_PNM" = "yes" ; then
21574 cat >> confdefs.h <<\EOF
21575 #define wxUSE_PNM 1
21576 EOF
21577
21578 fi
21579
21580 if test "$wxUSE_XPM" = "yes" ; then
21581 cat >> confdefs.h <<\EOF
21582 #define wxUSE_XPM 1
21583 EOF
21584
21585 fi
21586
21587 if test "$wxUSE_ICO_CUR" = "yes" ; then
21588 cat >> confdefs.h <<\EOF
21589 #define wxUSE_ICO_CUR 1
21590 EOF
21591
21592 fi
21593
21594 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21595 LIBS=" -lunicows $LIBS"
21596 fi
21597
21598
21599 if test "$wxUSE_CHOICEDLG" = "yes"; then
21600 cat >> confdefs.h <<\EOF
21601 #define wxUSE_CHOICEDLG 1
21602 EOF
21603
21604 fi
21605
21606 if test "$wxUSE_COLOURDLG" = "yes"; then
21607 cat >> confdefs.h <<\EOF
21608 #define wxUSE_COLOURDLG 1
21609 EOF
21610
21611 fi
21612
21613 if test "$wxUSE_FILEDLG" = "yes"; then
21614 cat >> confdefs.h <<\EOF
21615 #define wxUSE_FILEDLG 1
21616 EOF
21617
21618 fi
21619
21620 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21621 cat >> confdefs.h <<\EOF
21622 #define wxUSE_FINDREPLDLG 1
21623 EOF
21624
21625 fi
21626
21627 if test "$wxUSE_FONTDLG" = "yes"; then
21628 cat >> confdefs.h <<\EOF
21629 #define wxUSE_FONTDLG 1
21630 EOF
21631
21632 fi
21633
21634 if test "$wxUSE_DIRDLG" = "yes"; then
21635 if test "$wxUSE_TREECTRL" != "yes"; then
21636 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21637 else
21638 cat >> confdefs.h <<\EOF
21639 #define wxUSE_DIRDLG 1
21640 EOF
21641
21642 fi
21643 fi
21644
21645 if test "$wxUSE_MSGDLG" = "yes"; then
21646 cat >> confdefs.h <<\EOF
21647 #define wxUSE_MSGDLG 1
21648 EOF
21649
21650 fi
21651
21652 if test "$wxUSE_NUMBERDLG" = "yes"; then
21653 cat >> confdefs.h <<\EOF
21654 #define wxUSE_NUMBERDLG 1
21655 EOF
21656
21657 fi
21658
21659 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21660 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21661 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21662 else
21663 cat >> confdefs.h <<\EOF
21664 #define wxUSE_PROGRESSDLG 1
21665 EOF
21666
21667 fi
21668 fi
21669
21670 if test "$wxUSE_SPLASH" = "yes"; then
21671 cat >> confdefs.h <<\EOF
21672 #define wxUSE_SPLASH 1
21673 EOF
21674
21675 fi
21676
21677 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21678 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21679 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21680 else
21681 cat >> confdefs.h <<\EOF
21682 #define wxUSE_STARTUP_TIPS 1
21683 EOF
21684
21685 fi
21686 fi
21687
21688 if test "$wxUSE_TEXTDLG" = "yes"; then
21689 cat >> confdefs.h <<\EOF
21690 #define wxUSE_TEXTDLG 1
21691 EOF
21692
21693 fi
21694
21695 if test "$wxUSE_WIZARDDLG" = "yes"; then
21696 cat >> confdefs.h <<\EOF
21697 #define wxUSE_WIZARDDLG 1
21698 EOF
21699
21700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21701 fi
21702
21703
21704 if test "$cross_compiling" = "yes"; then
21705 OSINFO="\"$host\""
21706 else
21707 OSINFO=`uname -s -r -m`
21708 OSINFO="\"$OSINFO\""
21709 fi
21710
21711 cat >> confdefs.h <<EOF
21712 #define WXWIN_OS_DESCRIPTION $OSINFO
21713 EOF
21714
21715
21716
21717 if test "x$prefix" != "xNONE"; then
21718 wxPREFIX=$prefix
21719 else
21720 wxPREFIX=$ac_default_prefix
21721 fi
21722
21723 cat >> confdefs.h <<EOF
21724 #define wxINSTALL_PREFIX "$wxPREFIX"
21725 EOF
21726
21727
21728
21729
21730
21731 if test "$wxUSE_MAC" = 1 ; then
21732 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21733 fi
21734
21735
21736 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21737
21738 have_cos=0
21739 have_floor=0
21740 for ac_func in cos
21741 do
21742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21743 echo "configure:21744: checking for $ac_func" >&5
21744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21745 echo $ac_n "(cached) $ac_c" 1>&6
21746 else
21747 cat > conftest.$ac_ext <<EOF
21748 #line 21749 "configure"
21749 #include "confdefs.h"
21750 /* System header to define __stub macros and hopefully few prototypes,
21751 which can conflict with char $ac_func(); below. */
21752 #include <assert.h>
21753 /* Override any gcc2 internal prototype to avoid an error. */
21754 /* We use char because int might match the return type of a gcc2
21755 builtin and then its argument prototype would still apply. */
21756 char $ac_func();
21757
21758 int main() {
21759
21760 /* The GNU C library defines this for functions which it implements
21761 to always fail with ENOSYS. Some functions are actually named
21762 something starting with __ and the normal name is an alias. */
21763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21764 choke me
21765 #else
21766 $ac_func();
21767 #endif
21768
21769 ; return 0; }
21770 EOF
21771 if { (eval echo configure:21772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21772 rm -rf conftest*
21773 eval "ac_cv_func_$ac_func=yes"
21774 else
21775 echo "configure: failed program was:" >&5
21776 cat conftest.$ac_ext >&5
21777 rm -rf conftest*
21778 eval "ac_cv_func_$ac_func=no"
21779 fi
21780 rm -f conftest*
21781 fi
21782
21783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21784 echo "$ac_t""yes" 1>&6
21785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21786 cat >> confdefs.h <<EOF
21787 #define $ac_tr_func 1
21788 EOF
21789 have_cos=1
21790 else
21791 echo "$ac_t""no" 1>&6
21792 fi
21793 done
21794
21795 for ac_func in floor
21796 do
21797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21798 echo "configure:21799: checking for $ac_func" >&5
21799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21800 echo $ac_n "(cached) $ac_c" 1>&6
21801 else
21802 cat > conftest.$ac_ext <<EOF
21803 #line 21804 "configure"
21804 #include "confdefs.h"
21805 /* System header to define __stub macros and hopefully few prototypes,
21806 which can conflict with char $ac_func(); below. */
21807 #include <assert.h>
21808 /* Override any gcc2 internal prototype to avoid an error. */
21809 /* We use char because int might match the return type of a gcc2
21810 builtin and then its argument prototype would still apply. */
21811 char $ac_func();
21812
21813 int main() {
21814
21815 /* The GNU C library defines this for functions which it implements
21816 to always fail with ENOSYS. Some functions are actually named
21817 something starting with __ and the normal name is an alias. */
21818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21819 choke me
21820 #else
21821 $ac_func();
21822 #endif
21823
21824 ; return 0; }
21825 EOF
21826 if { (eval echo configure:21827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21827 rm -rf conftest*
21828 eval "ac_cv_func_$ac_func=yes"
21829 else
21830 echo "configure: failed program was:" >&5
21831 cat conftest.$ac_ext >&5
21832 rm -rf conftest*
21833 eval "ac_cv_func_$ac_func=no"
21834 fi
21835 rm -f conftest*
21836 fi
21837
21838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21839 echo "$ac_t""yes" 1>&6
21840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21841 cat >> confdefs.h <<EOF
21842 #define $ac_tr_func 1
21843 EOF
21844 have_floor=1
21845 else
21846 echo "$ac_t""no" 1>&6
21847 fi
21848 done
21849
21850 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
21851 echo "configure:21852: checking if floating point functions link without -lm" >&5
21852 if test "$have_cos" = 1 -a "$have_floor" = 1; then
21853 echo "$ac_t""yes" 1>&6
21854 else
21855 echo "$ac_t""no" 1>&6
21856 LIBS="$LIBS -lm"
21857 # use different functions to avoid configure caching
21858 have_sin=0
21859 have_ceil=0
21860 for ac_func in sin
21861 do
21862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21863 echo "configure:21864: checking for $ac_func" >&5
21864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21865 echo $ac_n "(cached) $ac_c" 1>&6
21866 else
21867 cat > conftest.$ac_ext <<EOF
21868 #line 21869 "configure"
21869 #include "confdefs.h"
21870 /* System header to define __stub macros and hopefully few prototypes,
21871 which can conflict with char $ac_func(); below. */
21872 #include <assert.h>
21873 /* Override any gcc2 internal prototype to avoid an error. */
21874 /* We use char because int might match the return type of a gcc2
21875 builtin and then its argument prototype would still apply. */
21876 char $ac_func();
21877
21878 int main() {
21879
21880 /* The GNU C library defines this for functions which it implements
21881 to always fail with ENOSYS. Some functions are actually named
21882 something starting with __ and the normal name is an alias. */
21883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21884 choke me
21885 #else
21886 $ac_func();
21887 #endif
21888
21889 ; return 0; }
21890 EOF
21891 if { (eval echo configure:21892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21892 rm -rf conftest*
21893 eval "ac_cv_func_$ac_func=yes"
21894 else
21895 echo "configure: failed program was:" >&5
21896 cat conftest.$ac_ext >&5
21897 rm -rf conftest*
21898 eval "ac_cv_func_$ac_func=no"
21899 fi
21900 rm -f conftest*
21901 fi
21902
21903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21904 echo "$ac_t""yes" 1>&6
21905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21906 cat >> confdefs.h <<EOF
21907 #define $ac_tr_func 1
21908 EOF
21909 have_sin=1
21910 else
21911 echo "$ac_t""no" 1>&6
21912 fi
21913 done
21914
21915 for ac_func in ceil
21916 do
21917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21918 echo "configure:21919: checking for $ac_func" >&5
21919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21920 echo $ac_n "(cached) $ac_c" 1>&6
21921 else
21922 cat > conftest.$ac_ext <<EOF
21923 #line 21924 "configure"
21924 #include "confdefs.h"
21925 /* System header to define __stub macros and hopefully few prototypes,
21926 which can conflict with char $ac_func(); below. */
21927 #include <assert.h>
21928 /* Override any gcc2 internal prototype to avoid an error. */
21929 /* We use char because int might match the return type of a gcc2
21930 builtin and then its argument prototype would still apply. */
21931 char $ac_func();
21932
21933 int main() {
21934
21935 /* The GNU C library defines this for functions which it implements
21936 to always fail with ENOSYS. Some functions are actually named
21937 something starting with __ and the normal name is an alias. */
21938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21939 choke me
21940 #else
21941 $ac_func();
21942 #endif
21943
21944 ; return 0; }
21945 EOF
21946 if { (eval echo configure:21947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21947 rm -rf conftest*
21948 eval "ac_cv_func_$ac_func=yes"
21949 else
21950 echo "configure: failed program was:" >&5
21951 cat conftest.$ac_ext >&5
21952 rm -rf conftest*
21953 eval "ac_cv_func_$ac_func=no"
21954 fi
21955 rm -f conftest*
21956 fi
21957
21958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21959 echo "$ac_t""yes" 1>&6
21960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21961 cat >> confdefs.h <<EOF
21962 #define $ac_tr_func 1
21963 EOF
21964 have_ceil=1
21965 else
21966 echo "$ac_t""no" 1>&6
21967 fi
21968 done
21969
21970 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
21971 echo "configure:21972: checking if floating point functions link with -lm" >&5
21972 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
21973 echo "$ac_t""yes" 1>&6
21974 else
21975 echo "$ac_t""no" 1>&6
21976 # not sure we should warn the user, crash, etc.
21977 fi
21978 fi
21979
21980 if test "$wxUSE_GUI" = "yes"; then
21981
21982 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
21983
21984
21985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
21986 drawing dynamic erase event exec font image \
21987 minimal propsize rotate widgets"
21988
21989 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
21990 else
21991 SAMPLES_SUBDIRS="console"
21992 fi
21993
21994
21995 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
21996 -I\${top_srcdir}/include \
21997 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
21998 $TOOLKIT_INCLUDE"
21999
22000 if test "$wxUSE_GTK" = 1; then
22001 WXCONFIG_INCLUDE=
22002 else
22003 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22004 fi
22005
22006 if test "$GXX" = yes ; then
22007 CXXWARNINGS="-Wall"
22008
22009 if test "$wxUSE_NO_DEPS" = "no" ; then
22010 CFLAGS="-MMD $CFLAGS"
22011 CXXFLAGS="-MMD $CXXFLAGS"
22012 fi
22013 fi
22014
22015 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22016
22017 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22018 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22019 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22020 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22021
22022 LDFLAGS="$LDFLAGS $PROFILE"
22023
22024 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22124 echo "configure:22125: checking whether ${MAKE-make} sets \${MAKE}" >&5
22125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22126 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22127 echo $ac_n "(cached) $ac_c" 1>&6
22128 else
22129 cat > conftestmake <<\EOF
22130 all:
22131 @echo 'ac_maketemp="${MAKE}"'
22132 EOF
22133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22134 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22135 if test -n "$ac_maketemp"; then
22136 eval ac_cv_prog_make_${ac_make}_set=yes
22137 else
22138 eval ac_cv_prog_make_${ac_make}_set=no
22139 fi
22140 rm -f conftestmake
22141 fi
22142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22143 echo "$ac_t""yes" 1>&6
22144 SET_MAKE=
22145 else
22146 echo "$ac_t""no" 1>&6
22147 SET_MAKE="MAKE=${MAKE-make}"
22148 fi
22149
22150
22151 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22152 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22153 fi
22154
22155
22156
22157 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22158 wx_cv_if_gnu_make=$IF_GNU_MAKE
22159 wx_cv_path_ifs=$PATH_IFS
22160 wx_cv_program_ext=$PROGRAM_EXT
22161 wx_cv_target_library=$WX_TARGET_LIBRARY
22162 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22163 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22164 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22165 wx_cv_release=${WX_RELEASE}
22166 wx_cv_current=${WX_CURRENT}
22167 wx_cv_revision=${WX_REVISION}
22168 wx_cv_age=${WX_AGE}
22169 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22170 wx_cv_path_ifs wx_cv_program_ext \
22171 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22172 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age
22173
22174
22175 subdirs="demos samples utils contrib"
22176
22177
22178 trap '' 1 2 15
22179 cat > confcache <<\EOF
22180 # This file is a shell script that caches the results of configure
22181 # tests run on this system so they can be shared between configure
22182 # scripts and configure runs. It is not useful on other systems.
22183 # If it contains results you don't want to keep, you may remove or edit it.
22184 #
22185 # By default, configure uses ./config.cache as the cache file,
22186 # creating it if it does not exist already. You can give configure
22187 # the --cache-file=FILE option to use a different cache file; that is
22188 # what configure does when it calls configure scripts in
22189 # subdirectories, so they share the cache.
22190 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22191 # config.status only pays attention to the cache file if you give it the
22192 # --recheck option to rerun configure.
22193 #
22194 EOF
22195 # The following way of writing the cache mishandles newlines in values,
22196 # but we know of no workaround that is simple, portable, and efficient.
22197 # So, don't put newlines in cache variables' values.
22198 # Ultrix sh set writes to stderr and can't be redirected directly,
22199 # and sets the high bit in the cache file unless we assign to the vars.
22200 (set) 2>&1 |
22201 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22202 *ac_space=\ *)
22203 # `set' does not quote correctly, so add quotes (double-quote substitution
22204 # turns \\\\ into \\, and sed turns \\ into \).
22205 sed -n \
22206 -e "s/'/'\\\\''/g" \
22207 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22208 ;;
22209 *)
22210 # `set' quotes correctly as required by POSIX, so do not add quotes.
22211 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22212 ;;
22213 esac >> confcache
22214 if cmp -s $cache_file confcache; then
22215 :
22216 else
22217 if test -w $cache_file; then
22218 echo "updating cache $cache_file"
22219 cat confcache > $cache_file
22220 else
22221 echo "not updating unwritable cache $cache_file"
22222 fi
22223 fi
22224 rm -f confcache
22225
22226 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22227
22228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22229 # Let make expand exec_prefix.
22230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22231
22232 # Any assignment to VPATH causes Sun make to only execute
22233 # the first set of double-colon rules, so remove it if not needed.
22234 # If there is a colon in the path, we need to keep it.
22235 if test "x$srcdir" = x.; then
22236 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22237 fi
22238
22239 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22240
22241 DEFS=-DHAVE_CONFIG_H
22242
22243 # Without the "./", some shells look in PATH for config.status.
22244 : ${CONFIG_STATUS=./config.status}
22245
22246 echo creating $CONFIG_STATUS
22247 rm -f $CONFIG_STATUS
22248 cat > $CONFIG_STATUS <<EOF
22249 #! /bin/sh
22250 # Generated automatically by configure.
22251 # Run this file to recreate the current configuration.
22252 # This directory was configured as follows,
22253 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22254 #
22255 # $0 $ac_configure_args
22256 #
22257 # Compiler output produced by configure, useful for debugging
22258 # configure, is in ./config.log if it exists.
22259
22260 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22261 for ac_option
22262 do
22263 case "\$ac_option" in
22264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22265 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22266 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22267 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22268 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22269 exit 0 ;;
22270 -help | --help | --hel | --he | --h)
22271 echo "\$ac_cs_usage"; exit 0 ;;
22272 *) echo "\$ac_cs_usage"; exit 1 ;;
22273 esac
22274 done
22275
22276 ac_given_srcdir=$srcdir
22277 ac_given_INSTALL="$INSTALL"
22278
22279 trap 'rm -fr `echo "
22280 wx-config
22281 version-script
22282 src/make.env
22283 src/makeprog.env
22284 src/makelib.env
22285 Makefile
22286 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22287 EOF
22288 cat >> $CONFIG_STATUS <<EOF
22289
22290 # Protect against being on the right side of a sed subst in config.status.
22291 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22292 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22293 $ac_vpsub
22294 $extrasub
22295 s%@SHELL@%$SHELL%g
22296 s%@CFLAGS@%$CFLAGS%g
22297 s%@CPPFLAGS@%$CPPFLAGS%g
22298 s%@CXXFLAGS@%$CXXFLAGS%g
22299 s%@FFLAGS@%$FFLAGS%g
22300 s%@DEFS@%$DEFS%g
22301 s%@LDFLAGS@%$LDFLAGS%g
22302 s%@LIBS@%$LIBS%g
22303 s%@exec_prefix@%$exec_prefix%g
22304 s%@prefix@%$prefix%g
22305 s%@program_transform_name@%$program_transform_name%g
22306 s%@bindir@%$bindir%g
22307 s%@sbindir@%$sbindir%g
22308 s%@libexecdir@%$libexecdir%g
22309 s%@datadir@%$datadir%g
22310 s%@sysconfdir@%$sysconfdir%g
22311 s%@sharedstatedir@%$sharedstatedir%g
22312 s%@localstatedir@%$localstatedir%g
22313 s%@libdir@%$libdir%g
22314 s%@includedir@%$includedir%g
22315 s%@oldincludedir@%$oldincludedir%g
22316 s%@infodir@%$infodir%g
22317 s%@mandir@%$mandir%g
22318 s%@host@%$host%g
22319 s%@host_alias@%$host_alias%g
22320 s%@host_cpu@%$host_cpu%g
22321 s%@host_vendor@%$host_vendor%g
22322 s%@host_os@%$host_os%g
22323 s%@target@%$target%g
22324 s%@target_alias@%$target_alias%g
22325 s%@target_cpu@%$target_cpu%g
22326 s%@target_vendor@%$target_vendor%g
22327 s%@target_os@%$target_os%g
22328 s%@build@%$build%g
22329 s%@build_alias@%$build_alias%g
22330 s%@build_cpu@%$build_cpu%g
22331 s%@build_vendor@%$build_vendor%g
22332 s%@build_os@%$build_os%g
22333 s%@CC@%$CC%g
22334 s%@CPP@%$CPP%g
22335 s%@CXX@%$CXX%g
22336 s%@RANLIB@%$RANLIB%g
22337 s%@AR@%$AR%g
22338 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22339 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22340 s%@INSTALL_DATA@%$INSTALL_DATA%g
22341 s%@STRIP@%$STRIP%g
22342 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22343 s%@YACC@%$YACC%g
22344 s%@LEX@%$LEX%g
22345 s%@LEXLIB@%$LEXLIB%g
22346 s%@LN_S@%$LN_S%g
22347 s%@CXXCPP@%$CXXCPP%g
22348 s%@PKG_CONFIG@%$PKG_CONFIG%g
22349 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22350 s%@GTK_LIBS@%$GTK_LIBS%g
22351 s%@GTK_CONFIG@%$GTK_CONFIG%g
22352 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22353 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22354 s%@X_CFLAGS@%$X_CFLAGS%g
22355 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22356 s%@X_LIBS@%$X_LIBS%g
22357 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22358 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22359 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22360 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22361 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22362 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22363 s%@RESCOMP@%$RESCOMP%g
22364 s%@DEREZ@%$DEREZ%g
22365 s%@LIBICONV@%$LIBICONV%g
22366 s%@LEX_STEM@%$LEX_STEM%g
22367 s%@PATH_IFS@%$PATH_IFS%g
22368 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22369 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22370 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22371 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22372 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22373 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22374 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22375 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22376 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22377 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22378 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22379 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22380 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22381 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22382 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22383 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22384 s%@WX_ALL@%$WX_ALL%g
22385 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22386 s%@SHARED_LD@%$SHARED_LD%g
22387 s%@PIC_FLAG@%$PIC_FLAG%g
22388 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22389 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22390 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22391 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22392 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22393 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22394 s%@STATIC_FLAG@%$STATIC_FLAG%g
22395 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22396 s%@USE_GUI@%$USE_GUI%g
22397 s%@AFMINSTALL@%$AFMINSTALL%g
22398 s%@WIN32INSTALL@%$WIN32INSTALL%g
22399 s%@TOOLKIT@%$TOOLKIT%g
22400 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22401 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22402 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22403 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22404 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22405 s%@cross_compiling@%$cross_compiling%g
22406 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22407 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22408 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22409 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22410 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22411 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22412 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22413 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22414 s%@ALL_HEADERS@%$ALL_HEADERS%g
22415 s%@ALL_SOURCES@%$ALL_SOURCES%g
22416 s%@GUIDIST@%$GUIDIST%g
22417 s%@PORT_FILES@%$PORT_FILES%g
22418 s%@DISTDIR@%$DISTDIR%g
22419 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22420 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22421 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22422 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22423 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22424 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22425 s%@EXTRADEFS@%$EXTRADEFS%g
22426 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22427 s%@RESFLAGS@%$RESFLAGS%g
22428 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22429 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22430 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22431 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22432 s%@LIBWXMACRES@%$LIBWXMACRES%g
22433 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
22434 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
22435 s%@GCC@%$GCC%g
22436 s%@DLLTOOL@%$DLLTOOL%g
22437 s%@AS@%$AS%g
22438 s%@NM@%$NM%g
22439 s%@LD@%$LD%g
22440 s%@MAKEINFO@%$MAKEINFO%g
22441 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22442 s%@SET_MAKE@%$SET_MAKE%g
22443 s%@subdirs@%$subdirs%g
22444
22445 CEOF
22446 EOF
22447
22448 cat >> $CONFIG_STATUS <<\EOF
22449
22450 # Split the substitutions into bite-sized pieces for seds with
22451 # small command number limits, like on Digital OSF/1 and HP-UX.
22452 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22453 ac_file=1 # Number of current file.
22454 ac_beg=1 # First line for current file.
22455 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22456 ac_more_lines=:
22457 ac_sed_cmds=""
22458 while $ac_more_lines; do
22459 if test $ac_beg -gt 1; then
22460 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22461 else
22462 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22463 fi
22464 if test ! -s conftest.s$ac_file; then
22465 ac_more_lines=false
22466 rm -f conftest.s$ac_file
22467 else
22468 if test -z "$ac_sed_cmds"; then
22469 ac_sed_cmds="sed -f conftest.s$ac_file"
22470 else
22471 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22472 fi
22473 ac_file=`expr $ac_file + 1`
22474 ac_beg=$ac_end
22475 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22476 fi
22477 done
22478 if test -z "$ac_sed_cmds"; then
22479 ac_sed_cmds=cat
22480 fi
22481 EOF
22482
22483 cat >> $CONFIG_STATUS <<EOF
22484
22485 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22486 version-script
22487 src/make.env
22488 src/makeprog.env
22489 src/makelib.env
22490 Makefile
22491 "}
22492 EOF
22493 cat >> $CONFIG_STATUS <<\EOF
22494 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22495 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22496 case "$ac_file" in
22497 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22498 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22499 *) ac_file_in="${ac_file}.in" ;;
22500 esac
22501
22502 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22503
22504 # Remove last slash and all that follows it. Not all systems have dirname.
22505 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22506 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22507 # The file is in a subdirectory.
22508 test ! -d "$ac_dir" && mkdir "$ac_dir"
22509 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22510 # A "../" for each directory in $ac_dir_suffix.
22511 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22512 else
22513 ac_dir_suffix= ac_dots=
22514 fi
22515
22516 case "$ac_given_srcdir" in
22517 .) srcdir=.
22518 if test -z "$ac_dots"; then top_srcdir=.
22519 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22520 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22521 *) # Relative path.
22522 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22523 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22524 esac
22525
22526 case "$ac_given_INSTALL" in
22527 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22528 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22529 esac
22530
22531 echo creating "$ac_file"
22532 rm -f "$ac_file"
22533 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22534 case "$ac_file" in
22535 *Makefile*) ac_comsub="1i\\
22536 # $configure_input" ;;
22537 *) ac_comsub= ;;
22538 esac
22539
22540 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22541 sed -e "$ac_comsub
22542 s%@configure_input@%$configure_input%g
22543 s%@srcdir@%$srcdir%g
22544 s%@top_srcdir@%$top_srcdir%g
22545 s%@INSTALL@%$INSTALL%g
22546 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22547 fi; done
22548 rm -f conftest.s*
22549
22550 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22551 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22552 #
22553 # ac_d sets the value in "#define NAME VALUE" lines.
22554 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22555 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22556 ac_dC='\3'
22557 ac_dD='%g'
22558 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22559 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22560 ac_uB='\([ ]\)%\1#\2define\3'
22561 ac_uC=' '
22562 ac_uD='\4%g'
22563 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22564 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22565 ac_eB='$%\1#\2define\3'
22566 ac_eC=' '
22567 ac_eD='%g'
22568
22569 if test "${CONFIG_HEADERS+set}" != set; then
22570 EOF
22571 cat >> $CONFIG_STATUS <<EOF
22572 CONFIG_HEADERS="setup.h:setup.h.in"
22573 EOF
22574 cat >> $CONFIG_STATUS <<\EOF
22575 fi
22576 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22578 case "$ac_file" in
22579 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22580 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22581 *) ac_file_in="${ac_file}.in" ;;
22582 esac
22583
22584 echo creating $ac_file
22585
22586 rm -f conftest.frag conftest.in conftest.out
22587 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22588 cat $ac_file_inputs > conftest.in
22589
22590 EOF
22591
22592 # Transform confdefs.h into a sed script conftest.vals that substitutes
22593 # the proper values into config.h.in to produce config.h. And first:
22594 # Protect against being on the right side of a sed subst in config.status.
22595 # Protect against being in an unquoted here document in config.status.
22596 rm -f conftest.vals
22597 cat > conftest.hdr <<\EOF
22598 s/[\\&%]/\\&/g
22599 s%[\\$`]%\\&%g
22600 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22601 s%ac_d%ac_u%gp
22602 s%ac_u%ac_e%gp
22603 EOF
22604 sed -n -f conftest.hdr confdefs.h > conftest.vals
22605 rm -f conftest.hdr
22606
22607 # This sed command replaces #undef with comments. This is necessary, for
22608 # example, in the case of _POSIX_SOURCE, which is predefined and required
22609 # on some systems where configure will not decide to define it.
22610 cat >> conftest.vals <<\EOF
22611 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22612 EOF
22613
22614 # Break up conftest.vals because some shells have a limit on
22615 # the size of here documents, and old seds have small limits too.
22616
22617 rm -f conftest.tail
22618 while :
22619 do
22620 ac_lines=`grep -c . conftest.vals`
22621 # grep -c gives empty output for an empty file on some AIX systems.
22622 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22623 # Write a limited-size here document to conftest.frag.
22624 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22625 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22626 echo 'CEOF
22627 sed -f conftest.frag conftest.in > conftest.out
22628 rm -f conftest.in
22629 mv conftest.out conftest.in
22630 ' >> $CONFIG_STATUS
22631 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22632 rm -f conftest.vals
22633 mv conftest.tail conftest.vals
22634 done
22635 rm -f conftest.vals
22636
22637 cat >> $CONFIG_STATUS <<\EOF
22638 rm -f conftest.frag conftest.h
22639 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22640 cat conftest.in >> conftest.h
22641 rm -f conftest.in
22642 if cmp -s $ac_file conftest.h 2>/dev/null; then
22643 echo "$ac_file is unchanged"
22644 rm -f conftest.h
22645 else
22646 # Remove last slash and all that follows it. Not all systems have dirname.
22647 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22648 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22649 # The file is in a subdirectory.
22650 test ! -d "$ac_dir" && mkdir "$ac_dir"
22651 fi
22652 rm -f $ac_file
22653 mv conftest.h $ac_file
22654 fi
22655 fi; done
22656
22657 EOF
22658 cat >> $CONFIG_STATUS <<EOF
22659
22660 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22661 LN_S="${LN_S}"
22662
22663
22664 EOF
22665 cat >> $CONFIG_STATUS <<\EOF
22666
22667 if test ! -h wx-config; then
22668 chmod +x wx-config
22669 mv wx-config wx${TOOLCHAIN_NAME}-config
22670 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22671 fi
22672
22673 if test ! -d lib; then
22674 mkdir lib
22675 fi
22676 if test ! -d lib/wx; then
22677 mkdir lib/wx
22678 fi
22679 if test ! -d lib/wx/include; then
22680 mkdir lib/wx/include
22681 fi
22682 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22683 mkdir lib/wx/include/${TOOLCHAIN_NAME}
22684 fi
22685 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22686 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22687 fi
22688 if test -f setup.h; then
22689 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22690 fi
22691
22692 exit 0
22693 EOF
22694 chmod +x $CONFIG_STATUS
22695 rm -fr confdefs* $ac_clean_files
22696 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22697
22698 if test "$no_recursion" != yes; then
22699
22700 # Remove --cache-file and --srcdir arguments so they do not pile up.
22701 ac_sub_configure_args=
22702 ac_prev=
22703 for ac_arg in $ac_configure_args; do
22704 if test -n "$ac_prev"; then
22705 ac_prev=
22706 continue
22707 fi
22708 case "$ac_arg" in
22709 -cache-file | --cache-file | --cache-fil | --cache-fi \
22710 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22711 ac_prev=cache_file ;;
22712 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22713 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22714 ;;
22715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22716 ac_prev=srcdir ;;
22717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22718 ;;
22719 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22720 esac
22721 done
22722
22723 for ac_config_dir in demos samples utils contrib; do
22724
22725 # Do not complain, so a configure script can configure whichever
22726 # parts of a large source tree are present.
22727 if test ! -d $srcdir/$ac_config_dir; then
22728 continue
22729 fi
22730
22731 echo configuring in $ac_config_dir
22732
22733 case "$srcdir" in
22734 .) ;;
22735 *)
22736 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22737 else
22738 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22739 fi
22740 ;;
22741 esac
22742
22743 ac_popdir=`pwd`
22744 cd $ac_config_dir
22745
22746 # A "../" for each directory in /$ac_config_dir.
22747 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22748
22749 case "$srcdir" in
22750 .) # No --srcdir option. We are building in place.
22751 ac_sub_srcdir=$srcdir ;;
22752 /*) # Absolute path.
22753 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22754 *) # Relative path.
22755 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22756 esac
22757
22758 # Check for guested configure; otherwise get Cygnus style configure.
22759 if test -f $ac_sub_srcdir/configure; then
22760 ac_sub_configure=$ac_sub_srcdir/configure
22761 elif test -f $ac_sub_srcdir/configure.in; then
22762 ac_sub_configure=$ac_configure
22763 else
22764 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22765 ac_sub_configure=
22766 fi
22767
22768 # The recursion is here.
22769 if test -n "$ac_sub_configure"; then
22770
22771 # Make the cache file name correct relative to the subdirectory.
22772 case "$cache_file" in
22773 /*) ac_sub_cache_file=$cache_file ;;
22774 *) # Relative path.
22775 ac_sub_cache_file="$ac_dots$cache_file" ;;
22776 esac
22777 case "$ac_given_INSTALL" in
22778 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22779 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22780 esac
22781
22782 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22783 # The eval makes quoting arguments work.
22784 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22785 then :
22786 else
22787 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22788 fi
22789 fi
22790
22791 cd $ac_popdir
22792 done
22793 fi
22794
22795
22796 echo
22797 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22798 echo ""
22799 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22800
22801 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22802 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22803 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22804
22805 echo " Which libraries should wxWindows use?"
22806 echo " jpeg ${wxUSE_LIBJPEG-none}"
22807 echo " png ${wxUSE_LIBPNG-none}"
22808 echo " regex ${wxUSE_REGEX}"
22809 echo " tiff ${wxUSE_LIBTIFF-none}"
22810 echo " zlib ${wxUSE_ZLIB}"
22811
22812 echo ""
22813