]> git.saurik.com Git - wxWidgets.git/blob - configure
removed wxUSE_X_RESOURCES -- was unused anyhow
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 # Configure paths for GTK+
66 # Owen Taylor 1997-2001
67
68
69
70 # Configure paths for GTK+
71 # Owen Taylor 97-11-3
72
73
74
75
76
77
78
79
80 # Guess values for system-dependent variables and create Makefiles.
81 # Generated automatically using autoconf version 2.13
82 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 #
84 # This configure script is free software; the Free Software Foundation
85 # gives unlimited permission to copy, distribute and modify it.
86
87 # Defaults:
88 ac_help=
89 ac_default_prefix=/usr/local
90 # Any additions from configure.in:
91 ac_help="$ac_help
92 --enable-gui use GUI classes"
93 ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95 ac_help="$ac_help
96 --with-gtk use GTK+"
97 ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99 ac_help="$ac_help
100 --with-mac use Mac OS X"
101 ac_help="$ac_help
102 --with-cocoa use Cocoa"
103 ac_help="$ac_help
104 --with-wine use Wine"
105 ac_help="$ac_help
106 --with-msw use MS-Windows"
107 ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109 ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111 ac_help="$ac_help
112 --with-microwin use MicroWindows"
113 ac_help="$ac_help
114 --with-x11 use X11"
115 ac_help="$ac_help
116 --enable-nanox use NanoX"
117 ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119 ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121 ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123 ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125 ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127 ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129 ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131 ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133 ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135 ac_help="$ac_help
136 --enable-shared create shared library code"
137 ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139 ac_help="$ac_help
140 --enable-optimise create optimised code"
141 ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143 ac_help="$ac_help
144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
145 ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147 ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149 ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151 ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153 ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155 ac_help="$ac_help
156 --enable-profile create code with profiling information"
157 ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159 ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161 ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163 ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165 ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167 ac_help="$ac_help
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169 ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
171 ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173 ac_help="$ac_help
174 --enable-intl use internationalization system"
175 ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177 ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179 ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181 ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183 ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185 ac_help="$ac_help
186 --enable-sockets use socket/network classes"
187 ac_help="$ac_help
188 --enable-ole use OLE classes"
189 ac_help="$ac_help
190 --enable-dataobj use data object classes"
191 ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193 ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195 ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
197 ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199 ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201 ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203 ac_help="$ac_help
204 --enable-timer use wxTimer class"
205 ac_help="$ac_help
206 --enable-wave use wxWave class"
207 ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209 ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211 ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213 ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215 ac_help="$ac_help
216 --enable-geometry use geometry class"
217 ac_help="$ac_help
218 --enable-log use logging system"
219 ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221 ac_help="$ac_help
222 --enable-file use wxFile classes"
223 ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225 ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227 ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229 ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231 ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233 ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235 ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237 ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239 ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241 ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243 ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245 ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247 ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249 ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251 ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253 ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255 ac_help="$ac_help
256 --enable-url use wxURL class"
257 ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259 ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261 ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263 ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265 ac_help="$ac_help
266 --enable-threads use threads"
267 ac_help="$ac_help
268 --enable-docview use document view architecture"
269 ac_help="$ac_help
270 --enable-help use help subsystem"
271 ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273 ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275 ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277 ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279 ac_help="$ac_help
280 --enable-printarch use printing architecture"
281 ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283 ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285 ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287 ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289 ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
291 ac_help="$ac_help
292 --enable-resources use wxWindows resources"
293 ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
295 ac_help="$ac_help
296 --enable-clipboard use wxClipboard class"
297 ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299 ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
301 ac_help="$ac_help
302 --enable-controls use all usual controls"
303 ac_help="$ac_help
304 --enable-accel use accelerators"
305 ac_help="$ac_help
306 --enable-button use wxButton class"
307 ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309 ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311 ac_help="$ac_help
312 --enable-caret use wxCaret class"
313 ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315 ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317 ac_help="$ac_help
318 --enable-choice use wxChoice class"
319 ac_help="$ac_help
320 --enable-combobox use wxComboBox class"
321 ac_help="$ac_help
322 --enable-display use wxDisplay class"
323 ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325 ac_help="$ac_help
326 --enable-grid use wxGrid class"
327 ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329 ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331 ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333 ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
335 ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337 ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339 ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341 ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343 ac_help="$ac_help
344 --enable-slider use wxSlider class"
345 ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347 ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349 ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351 ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353 ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355 ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357 ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359 ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361 ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363 ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365 ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367 ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369 ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371 ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373 ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375 ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377 ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379 ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381 ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383 ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385 ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387 ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389 ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391 ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393 ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395 ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397 ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399 ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401 ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403 ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405 ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407 ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409 ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411 ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413 ac_help="$ac_help
414 --enable-splines use spline drawing code"
415 ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417 ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419 ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421 ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423 ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
425 ac_help="$ac_help
426 --enable-accessibility enable accessibility support"
427 ac_help="$ac_help
428 --enable-palette use wxPalette class"
429 ac_help="$ac_help
430 --enable-image use wxImage class"
431 ac_help="$ac_help
432 --enable-gif use gif images (GIF file format)"
433 ac_help="$ac_help
434 --enable-pcx use pcx images (PCX file format)"
435 ac_help="$ac_help
436 --enable-iff use iff images (IFF file format)"
437 ac_help="$ac_help
438 --enable-pnm use pnm images (PNM file format)"
439 ac_help="$ac_help
440 --enable-xpm use xpm images (XPM file format)"
441 ac_help="$ac_help
442 --enable-icocur use Windows ICO and CUR formats"
443 ac_help="$ac_help
444 --disable-largefile omit support for large files"
445 ac_help="$ac_help
446 --disable-gtktest do not try to compile and run a test GTK+ program"
447 ac_help="$ac_help
448 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
451 ac_help="$ac_help
452 --disable-gtktest Do not try to compile and run a test GTK program"
453 ac_help="$ac_help
454 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
455 ac_help="$ac_help
456 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
457 ac_help="$ac_help
458 --disable-gtktest Do not try to compile and run a test GTK program"
459 ac_help="$ac_help
460 --with-x use the X Window System"
461 ac_help="$ac_help
462 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
463
464 # Initialize some variables set by options.
465 # The variables have the same names as the options, with
466 # dashes changed to underlines.
467 build=NONE
468 cache_file=./config.cache
469 exec_prefix=NONE
470 host=NONE
471 no_create=
472 nonopt=NONE
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 target=NONE
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
497
498 # Initialize some other variables.
499 subdirs=
500 MFLAGS= MAKEFLAGS=
501 SHELL=${CONFIG_SHELL-/bin/sh}
502 # Maximum number of lines to put in a shell here document.
503 ac_max_here_lines=12
504
505 ac_prev=
506 for ac_option
507 do
508
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 case "$ac_option" in
517 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
518 *) ac_optarg= ;;
519 esac
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case "$ac_option" in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir="$ac_optarg" ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build="$ac_optarg" ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file="$ac_optarg" ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir="$ac_optarg" ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
550 # Reject names that are not valid shell variable names.
551 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
552 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553 fi
554 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555 eval "enable_${ac_feature}=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
559 # Reject names that are not valid shell variable names.
560 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
561 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
562 fi
563 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
564 case "$ac_option" in
565 *=*) ;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_${ac_feature}='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix="$ac_optarg" ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he)
584 # Omit some internal or obsolete options to make the list less imposing.
585 # This message is too long to be a string in the A/UX 3.1 sh.
586 cat << EOF
587 Usage: configure [options] [host]
588 Options: [defaults in brackets after descriptions]
589 Configuration:
590 --cache-file=FILE cache test results in FILE
591 --help print this message
592 --no-create do not create output files
593 --quiet, --silent do not print \`checking...' messages
594 --version print the version of autoconf that created configure
595 Directory and file names:
596 --prefix=PREFIX install architecture-independent files in PREFIX
597 [$ac_default_prefix]
598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
599 [same as prefix]
600 --bindir=DIR user executables in DIR [EPREFIX/bin]
601 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
602 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
603 --datadir=DIR read-only architecture-independent data in DIR
604 [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data in DIR
607 [PREFIX/com]
608 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
609 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
610 --includedir=DIR C header files in DIR [PREFIX/include]
611 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
612 --infodir=DIR info documentation in DIR [PREFIX/info]
613 --mandir=DIR man documentation in DIR [PREFIX/man]
614 --srcdir=DIR find the sources in DIR [configure dir or ..]
615 --program-prefix=PREFIX prepend PREFIX to installed program names
616 --program-suffix=SUFFIX append SUFFIX to installed program names
617 --program-transform-name=PROGRAM
618 run sed PROGRAM on installed program names
619 EOF
620 cat << EOF
621 Host type:
622 --build=BUILD configure for building on BUILD [BUILD=HOST]
623 --host=HOST configure for HOST [guessed]
624 --target=TARGET configure for TARGET [TARGET=HOST]
625 Features and packages:
626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
630 --x-includes=DIR X include files are in DIR
631 --x-libraries=DIR X library files are in DIR
632 EOF
633 if test -n "$ac_help"; then
634 echo "--enable and --with options recognized:$ac_help"
635 fi
636 exit 0 ;;
637
638 -host | --host | --hos | --ho)
639 ac_prev=host ;;
640 -host=* | --host=* | --hos=* | --ho=*)
641 host="$ac_optarg" ;;
642
643 -includedir | --includedir | --includedi | --included | --include \
644 | --includ | --inclu | --incl | --inc)
645 ac_prev=includedir ;;
646 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
647 | --includ=* | --inclu=* | --incl=* | --inc=*)
648 includedir="$ac_optarg" ;;
649
650 -infodir | --infodir | --infodi | --infod | --info | --inf)
651 ac_prev=infodir ;;
652 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
653 infodir="$ac_optarg" ;;
654
655 -libdir | --libdir | --libdi | --libd)
656 ac_prev=libdir ;;
657 -libdir=* | --libdir=* | --libdi=* | --libd=*)
658 libdir="$ac_optarg" ;;
659
660 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
661 | --libexe | --libex | --libe)
662 ac_prev=libexecdir ;;
663 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
664 | --libexe=* | --libex=* | --libe=*)
665 libexecdir="$ac_optarg" ;;
666
667 -localstatedir | --localstatedir | --localstatedi | --localstated \
668 | --localstate | --localstat | --localsta | --localst \
669 | --locals | --local | --loca | --loc | --lo)
670 ac_prev=localstatedir ;;
671 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
672 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
673 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
674 localstatedir="$ac_optarg" ;;
675
676 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
677 ac_prev=mandir ;;
678 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
679 mandir="$ac_optarg" ;;
680
681 -nfp | --nfp | --nf)
682 # Obsolete; use --without-fp.
683 with_fp=no ;;
684
685 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
686 | --no-cr | --no-c)
687 no_create=yes ;;
688
689 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
690 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
691 no_recursion=yes ;;
692
693 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
694 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
695 | --oldin | --oldi | --old | --ol | --o)
696 ac_prev=oldincludedir ;;
697 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
698 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
699 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
700 oldincludedir="$ac_optarg" ;;
701
702 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
703 ac_prev=prefix ;;
704 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
705 prefix="$ac_optarg" ;;
706
707 -program-prefix | --program-prefix | --program-prefi | --program-pref \
708 | --program-pre | --program-pr | --program-p)
709 ac_prev=program_prefix ;;
710 -program-prefix=* | --program-prefix=* | --program-prefi=* \
711 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
712 program_prefix="$ac_optarg" ;;
713
714 -program-suffix | --program-suffix | --program-suffi | --program-suff \
715 | --program-suf | --program-su | --program-s)
716 ac_prev=program_suffix ;;
717 -program-suffix=* | --program-suffix=* | --program-suffi=* \
718 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
719 program_suffix="$ac_optarg" ;;
720
721 -program-transform-name | --program-transform-name \
722 | --program-transform-nam | --program-transform-na \
723 | --program-transform-n | --program-transform- \
724 | --program-transform | --program-transfor \
725 | --program-transfo | --program-transf \
726 | --program-trans | --program-tran \
727 | --progr-tra | --program-tr | --program-t)
728 ac_prev=program_transform_name ;;
729 -program-transform-name=* | --program-transform-name=* \
730 | --program-transform-nam=* | --program-transform-na=* \
731 | --program-transform-n=* | --program-transform-=* \
732 | --program-transform=* | --program-transfor=* \
733 | --program-transfo=* | --program-transf=* \
734 | --program-trans=* | --program-tran=* \
735 | --progr-tra=* | --program-tr=* | --program-t=*)
736 program_transform_name="$ac_optarg" ;;
737
738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
739 | -silent | --silent | --silen | --sile | --sil)
740 silent=yes ;;
741
742 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
743 ac_prev=sbindir ;;
744 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
745 | --sbi=* | --sb=*)
746 sbindir="$ac_optarg" ;;
747
748 -sharedstatedir | --sharedstatedir | --sharedstatedi \
749 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
750 | --sharedst | --shareds | --shared | --share | --shar \
751 | --sha | --sh)
752 ac_prev=sharedstatedir ;;
753 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
754 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
755 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
756 | --sha=* | --sh=*)
757 sharedstatedir="$ac_optarg" ;;
758
759 -site | --site | --sit)
760 ac_prev=site ;;
761 -site=* | --site=* | --sit=*)
762 site="$ac_optarg" ;;
763
764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
765 ac_prev=srcdir ;;
766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
767 srcdir="$ac_optarg" ;;
768
769 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
770 | --syscon | --sysco | --sysc | --sys | --sy)
771 ac_prev=sysconfdir ;;
772 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
773 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
774 sysconfdir="$ac_optarg" ;;
775
776 -target | --target | --targe | --targ | --tar | --ta | --t)
777 ac_prev=target ;;
778 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
779 target="$ac_optarg" ;;
780
781 -v | -verbose | --verbose | --verbos | --verbo | --verb)
782 verbose=yes ;;
783
784 -version | --version | --versio | --versi | --vers)
785 echo "configure generated by autoconf version 2.13"
786 exit 0 ;;
787
788 -with-* | --with-*)
789 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
790 # Reject names that are not valid shell variable names.
791 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
794 ac_package=`echo $ac_package| sed 's/-/_/g'`
795 case "$ac_option" in
796 *=*) ;;
797 *) ac_optarg=yes ;;
798 esac
799 eval "with_${ac_package}='$ac_optarg'" ;;
800
801 -without-* | --without-*)
802 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
803 # Reject names that are not valid shell variable names.
804 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
805 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
806 fi
807 ac_package=`echo $ac_package| sed 's/-/_/g'`
808 eval "with_${ac_package}=no" ;;
809
810 --x)
811 # Obsolete; use --with-x.
812 with_x=yes ;;
813
814 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
815 | --x-incl | --x-inc | --x-in | --x-i)
816 ac_prev=x_includes ;;
817 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
818 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
819 x_includes="$ac_optarg" ;;
820
821 -x-libraries | --x-libraries | --x-librarie | --x-librari \
822 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
823 ac_prev=x_libraries ;;
824 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
825 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
826 x_libraries="$ac_optarg" ;;
827
828 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
829 ;;
830
831 *)
832 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
833 echo "configure: warning: $ac_option: invalid host type" 1>&2
834 fi
835 if test "x$nonopt" != xNONE; then
836 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
837 fi
838 nonopt="$ac_option"
839 ;;
840
841 esac
842 done
843
844 if test -n "$ac_prev"; then
845 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
846 fi
847
848 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
849
850 # File descriptor usage:
851 # 0 standard input
852 # 1 file creation
853 # 2 errors and warnings
854 # 3 some systems may open it to /dev/tty
855 # 4 used on the Kubota Titan
856 # 6 checking for... messages and results
857 # 5 compiler messages saved in config.log
858 if test "$silent" = yes; then
859 exec 6>/dev/null
860 else
861 exec 6>&1
862 fi
863 exec 5>./config.log
864
865 echo "\
866 This file contains any messages produced by compilers while
867 running configure, to aid debugging if configure makes a mistake.
868 " 1>&5
869
870 # Strip out --no-create and --no-recursion so they do not pile up.
871 # Also quote any args containing shell metacharacters.
872 ac_configure_args=
873 for ac_arg
874 do
875 case "$ac_arg" in
876 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877 | --no-cr | --no-c) ;;
878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
881 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
882 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
883 esac
884 done
885
886 # NLS nuisances.
887 # Only set these to C if already set. These must not be set unconditionally
888 # because not all systems understand e.g. LANG=C (notably SCO).
889 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
890 # Non-C LC_CTYPE values break the ctype check.
891 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
892 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
893 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
894 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
895
896 # confdefs.h avoids OS command line length limits that DEFS can exceed.
897 rm -rf conftest* confdefs.h
898 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
899 echo > confdefs.h
900
901 # A filename unique to this package, relative to the directory that
902 # configure is in, which we can look for to find out if srcdir is correct.
903 ac_unique_file=wx-config.in
904
905 # Find the source files, if location was not specified.
906 if test -z "$srcdir"; then
907 ac_srcdir_defaulted=yes
908 # Try the directory containing this script, then its parent.
909 ac_prog=$0
910 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
911 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
912 srcdir=$ac_confdir
913 if test ! -r $srcdir/$ac_unique_file; then
914 srcdir=..
915 fi
916 else
917 ac_srcdir_defaulted=no
918 fi
919 if test ! -r $srcdir/$ac_unique_file; then
920 if test "$ac_srcdir_defaulted" = yes; then
921 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
922 else
923 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
924 fi
925 fi
926 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
927
928 # Prefer explicitly selected file to automatically selected ones.
929 if test -z "$CONFIG_SITE"; then
930 if test "x$prefix" != xNONE; then
931 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
932 else
933 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
934 fi
935 fi
936 for ac_site_file in $CONFIG_SITE; do
937 if test -r "$ac_site_file"; then
938 echo "loading site script $ac_site_file"
939 . "$ac_site_file"
940 fi
941 done
942
943 if test -r "$cache_file"; then
944 echo "loading cache $cache_file"
945 . $cache_file
946 else
947 echo "creating cache $cache_file"
948 > $cache_file
949 fi
950
951 ac_ext=c
952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953 ac_cpp='$CPP $CPPFLAGS'
954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956 cross_compiling=$ac_cv_prog_cc_cross
957
958 ac_exeext=
959 ac_objext=o
960 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
961 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
962 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
963 ac_n= ac_c='
964 ' ac_t=' '
965 else
966 ac_n=-n ac_c= ac_t=
967 fi
968 else
969 ac_n= ac_c='\c' ac_t=
970 fi
971
972
973
974 ac_aux_dir=
975 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976 if test -f $ac_dir/install-sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install-sh -c"
979 break
980 elif test -f $ac_dir/install.sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install.sh -c"
983 break
984 fi
985 done
986 if test -z "$ac_aux_dir"; then
987 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 fi
989 ac_config_guess=$ac_aux_dir/config.guess
990 ac_config_sub=$ac_aux_dir/config.sub
991 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
992
993
994 # Do some error checking and defaulting for the host and target type.
995 # The inputs are:
996 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
997 #
998 # The rules are:
999 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # same time.
1001 # 2. Host defaults to nonopt.
1002 # 3. If nonopt is not specified, then host defaults to the current host,
1003 # as determined by config.guess.
1004 # 4. Target and build default to nonopt.
1005 # 5. If nonopt is not specified, then target and build default to host.
1006
1007 # The aliases save the names the user supplied, while $host etc.
1008 # will get canonicalized.
1009 case $host---$target---$nonopt in
1010 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012 esac
1013
1014
1015 # Make sure we can run config.sub.
1016 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1017 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1018 fi
1019
1020 echo $ac_n "checking host system type""... $ac_c" 1>&6
1021 echo "configure:1022: checking host system type" >&5
1022
1023 host_alias=$host
1024 case "$host_alias" in
1025 NONE)
1026 case $nonopt in
1027 NONE)
1028 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1029 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 fi ;;
1031 *) host_alias=$nonopt ;;
1032 esac ;;
1033 esac
1034
1035 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1036 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039 echo "$ac_t""$host" 1>&6
1040
1041 echo $ac_n "checking target system type""... $ac_c" 1>&6
1042 echo "configure:1043: checking target system type" >&5
1043
1044 target_alias=$target
1045 case "$target_alias" in
1046 NONE)
1047 case $nonopt in
1048 NONE) target_alias=$host_alias ;;
1049 *) target_alias=$nonopt ;;
1050 esac ;;
1051 esac
1052
1053 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1054 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$target" 1>&6
1058
1059 echo $ac_n "checking build system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking build system type" >&5
1061
1062 build_alias=$build
1063 case "$build_alias" in
1064 NONE)
1065 case $nonopt in
1066 NONE) build_alias=$host_alias ;;
1067 *) build_alias=$nonopt ;;
1068 esac ;;
1069 esac
1070
1071 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$build" 1>&6
1076
1077 test "$host_alias" != "$target_alias" &&
1078 test "$program_prefix$program_suffix$program_transform_name" = \
1079 NONENONEs,x,x, &&
1080 program_prefix=${target_alias}-
1081
1082
1083
1084 WX_MAJOR_VERSION_NUMBER=2
1085 WX_MINOR_VERSION_NUMBER=5
1086 WX_RELEASE_NUMBER=0
1087
1088 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1089 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1090
1091 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1092
1093 WX_CURRENT=0
1094 WX_REVISION=0
1095 WX_AGE=0
1096
1097
1098
1099 USE_UNIX=1
1100 USE_WIN32=0
1101 USE_DOS=0
1102 USE_BEOS=0
1103 USE_MAC=0
1104
1105 USE_AIX=
1106 USE_BSD=
1107 USE_DARWIN=
1108 USE_FREEBSD=
1109 USE_HPUX=
1110 USE_LINUX=
1111 USE_NETBSD=
1112 USE_OPENBSD=
1113 USE_OSF=
1114 USE_SGI=
1115 USE_SOLARIS=
1116 USE_SUN=
1117 USE_SUNOS=
1118 USE_SVR4=
1119 USE_SYSV=
1120 USE_VMS=
1121 USE_ULTRIX=
1122 USE_UNIXWARE=
1123
1124 USE_ALPHA=
1125
1126 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130 DEFAULT_wxUSE_COCOA=0
1131 DEFAULT_wxUSE_GTK=0
1132 DEFAULT_wxUSE_MAC=0
1133 DEFAULT_wxUSE_MGL=0
1134 DEFAULT_wxUSE_MICROWIN=0
1135 DEFAULT_wxUSE_MOTIF=0
1136 DEFAULT_wxUSE_MSW=0
1137 DEFAULT_wxUSE_PM=0
1138 DEFAULT_wxUSE_X11=0
1139
1140 DEFAULT_DEFAULT_wxUSE_COCOA=0
1141 DEFAULT_DEFAULT_wxUSE_GTK=0
1142 DEFAULT_DEFAULT_wxUSE_MAC=0
1143 DEFAULT_DEFAULT_wxUSE_MGL=0
1144 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146 DEFAULT_DEFAULT_wxUSE_MSW=0
1147 DEFAULT_DEFAULT_wxUSE_PM=0
1148 DEFAULT_DEFAULT_wxUSE_X11=0
1149
1150 PROGRAM_EXT=
1151 SO_SUFFIX=so
1152
1153 case "${host}" in
1154 *-hp-hpux* )
1155 USE_HPUX=1
1156 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1157 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1158 SO_SUFFIX=sl
1159 cat >> confdefs.h <<\EOF
1160 #define __HPUX__ 1
1161 EOF
1162
1163 ;;
1164 *-*-linux* )
1165 USE_LINUX=1
1166 cat >> confdefs.h <<\EOF
1167 #define __LINUX__ 1
1168 EOF
1169
1170 TMP=`uname -m`
1171 if test "x$TMP" = "xalpha"; then
1172 USE_ALPHA=1
1173 cat >> confdefs.h <<\EOF
1174 #define __ALPHA__ 1
1175 EOF
1176
1177 fi
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-irix5* | *-*-irix6* )
1181 USE_SGI=1
1182 USE_SVR4=1
1183 cat >> confdefs.h <<\EOF
1184 #define __SGI__ 1
1185 EOF
1186
1187 cat >> confdefs.h <<\EOF
1188 #define __SVR4__ 1
1189 EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-solaris2* )
1194 USE_SUN=1
1195 USE_SOLARIS=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198 #define __SUN__ 1
1199 EOF
1200
1201 cat >> confdefs.h <<\EOF
1202 #define __SOLARIS__ 1
1203 EOF
1204
1205 cat >> confdefs.h <<\EOF
1206 #define __SVR4__ 1
1207 EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1211 ;;
1212 *-*-sunos4* )
1213 USE_SUN=1
1214 USE_SUNOS=1
1215 USE_BSD=1
1216 cat >> confdefs.h <<\EOF
1217 #define __SUN__ 1
1218 EOF
1219
1220 cat >> confdefs.h <<\EOF
1221 #define __SUNOS__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __BSD__ 1
1226 EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-freebsd*)
1231 USE_BSD=1
1232 USE_FREEBSD=1
1233 cat >> confdefs.h <<\EOF
1234 #define __FREEBSD__ 1
1235 EOF
1236
1237 cat >> confdefs.h <<\EOF
1238 #define __BSD__ 1
1239 EOF
1240
1241 DEFAULT_DEFAULT_wxUSE_GTK=1
1242 ;;
1243 *-*-openbsd*)
1244 USE_BSD=1
1245 USE_OPENBSD=1
1246 cat >> confdefs.h <<\EOF
1247 #define __OPENBSD__ 1
1248 EOF
1249
1250 cat >> confdefs.h <<\EOF
1251 #define __BSD__ 1
1252 EOF
1253
1254 DEFAULT_DEFAULT_wxUSE_GTK=1
1255 ;;
1256 *-*-netbsd*)
1257 USE_BSD=1
1258 USE_NETBSD=1
1259 cat >> confdefs.h <<\EOF
1260 #define __NETBSD__ 1
1261 EOF
1262
1263 cat >> confdefs.h <<\EOF
1264 #define __BSD__ 1
1265 EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_GTK=1
1268 ;;
1269 *-*-osf* )
1270 USE_ALPHA=1
1271 USE_OSF=1
1272 cat >> confdefs.h <<\EOF
1273 #define __ALPHA__ 1
1274 EOF
1275
1276 cat >> confdefs.h <<\EOF
1277 #define __OSF__ 1
1278 EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1282 ;;
1283 *-*-dgux5* )
1284 USE_ALPHA=1
1285 USE_SVR4=1
1286 cat >> confdefs.h <<\EOF
1287 #define __ALPHA__ 1
1288 EOF
1289
1290 cat >> confdefs.h <<\EOF
1291 #define __SVR4__ 1
1292 EOF
1293
1294 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295 ;;
1296 *-*-sysv5* )
1297 USE_SYSV=1
1298 USE_SVR4=1
1299 cat >> confdefs.h <<\EOF
1300 #define __SYSV__ 1
1301 EOF
1302
1303 cat >> confdefs.h <<\EOF
1304 #define __SVR4__ 1
1305 EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309 *-*-aix* )
1310 USE_AIX=1
1311 USE_SYSV=1
1312 USE_SVR4=1
1313 SO_SUFFIX=a
1314 cat >> confdefs.h <<\EOF
1315 #define __AIX__ 1
1316 EOF
1317
1318 cat >> confdefs.h <<\EOF
1319 #define __SYSV__ 1
1320 EOF
1321
1322 cat >> confdefs.h <<\EOF
1323 #define __SVR4__ 1
1324 EOF
1325
1326 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327 ;;
1328
1329 *-*-*UnixWare*)
1330 USE_SYSV=1
1331 USE_SVR4=1
1332 USE_UNIXWARE=1
1333 cat >> confdefs.h <<\EOF
1334 #define __UNIXWARE__ 1
1335 EOF
1336
1337 ;;
1338
1339 *-*-cygwin* | *-*-mingw32* )
1340 SO_SUFFIX=dll
1341 PROGRAM_EXT=".exe"
1342 RESCOMP=windres
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
1349 cat >> confdefs.h <<\EOF
1350 #define __DOS__ 1
1351 EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
1355 LIBS="$LIBS -lstdc++"
1356 ;;
1357
1358 *-pc-os2_emx | *-pc-os2-emx )
1359 cat >> confdefs.h <<\EOF
1360 #define __EMX__ 1
1361 EOF
1362
1363 PROGRAM_EXT=".exe"
1364 DEFAULT_DEFAULT_wxUSE_PM=1
1365 ;;
1366
1367 powerpc-*-darwin* )
1368 USE_BSD=1
1369 USE_DARWIN=1
1370 SO_SUFFIX=dylib
1371 cat >> confdefs.h <<\EOF
1372 #define __BSD__ 1
1373 EOF
1374
1375 cat >> confdefs.h <<\EOF
1376 #define __DARWIN__ 1
1377 EOF
1378
1379 cat >> confdefs.h <<\EOF
1380 #define __POWERPC__ 1
1381 EOF
1382
1383 cat >> confdefs.h <<\EOF
1384 #define TARGET_CARBON 1
1385 EOF
1386
1387 DEFAULT_DEFAULT_wxUSE_MAC=1
1388 ;;
1389
1390 *-*-beos* )
1391 USE_BEOS=1
1392 cat >> confdefs.h <<\EOF
1393 #define __BEOS__ 1
1394 EOF
1395
1396 ;;
1397
1398 *)
1399 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1400 esac
1401
1402
1403
1404
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
1410
1411
1412 DEBUG_CONFIGURE=0
1413 if test $DEBUG_CONFIGURE = 1; then
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
1416 DEFAULT_wxUSE_NANOX=no
1417
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
1421 DEFAULT_wxUSE_SONAME=no
1422 DEFAULT_wxUSE_OPTIMISE=no
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
1434 DEFAULT_wxUSE_PRECOMP=no
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
1440 DEFAULT_wxUSE_LOGDIALOG=no
1441
1442 DEFAULT_wxUSE_GUI=yes
1443 DEFAULT_wxUSE_CONTROLS=no
1444
1445 DEFAULT_wxUSE_REGEX=no
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
1449 DEFAULT_wxUSE_LIBTIFF=no
1450 DEFAULT_wxUSE_ODBC=no
1451 DEFAULT_wxUSE_OPENGL=no
1452
1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1458 DEFAULT_wxUSE_TIMER=no
1459 DEFAULT_wxUSE_STOPWATCH=no
1460 DEFAULT_wxUSE_FILE=no
1461 DEFAULT_wxUSE_FFILE=no
1462 DEFAULT_wxUSE_TEXTBUFFER=no
1463 DEFAULT_wxUSE_TEXTFILE=no
1464 DEFAULT_wxUSE_WAVE=no
1465 DEFAULT_wxUSE_INTL=no
1466 DEFAULT_wxUSE_CONFIG=no
1467 DEFAULT_wxUSE_FONTMAP=no
1468 DEFAULT_wxUSE_STREAMS=no
1469 DEFAULT_wxUSE_SOCKETS=no
1470 DEFAULT_wxUSE_OLE=no
1471 DEFAULT_wxUSE_DATAOBJ=no
1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
1473 DEFAULT_wxUSE_JOYSTICK=no
1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1476 DEFAULT_wxUSE_LONGLONG=no
1477 DEFAULT_wxUSE_GEOMETRY=no
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483 DEFAULT_wxUSE_X_RESOURCES=no
1484 DEFAULT_wxUSE_CLIPBOARD=no
1485 DEFAULT_wxUSE_TOOLTIPS=no
1486 DEFAULT_wxUSE_DRAG_AND_DROP=no
1487 DEFAULT_wxUSE_DRAGIMAGE=no
1488 DEFAULT_wxUSE_SPLINES=no
1489
1490 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1491 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1492 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1493
1494 DEFAULT_wxUSE_RESOURCES=no
1495 DEFAULT_wxUSE_CONSTRAINTS=no
1496 DEFAULT_wxUSE_IPC=no
1497 DEFAULT_wxUSE_HELP=no
1498 DEFAULT_wxUSE_MS_HTML_HELP=no
1499 DEFAULT_wxUSE_WXHTML_HELP=no
1500 DEFAULT_wxUSE_TREELAYOUT=no
1501 DEFAULT_wxUSE_METAFILE=no
1502 DEFAULT_wxUSE_MIMETYPE=no
1503 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1504 DEFAULT_wxUSE_PROTOCOL=no
1505 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FTP=no
1507 DEFAULT_wxUSE_PROTOCOL_FILE=no
1508 DEFAULT_wxUSE_URL=no
1509
1510 DEFAULT_wxUSE_COMMONDLGS=no
1511 DEFAULT_wxUSE_CHOICEDLG=no
1512 DEFAULT_wxUSE_COLOURDLG=no
1513 DEFAULT_wxUSE_DIRDLG=no
1514 DEFAULT_wxUSE_FILEDLG=no
1515 DEFAULT_wxUSE_FINDREPLDLG=no
1516 DEFAULT_wxUSE_FONTDLG=no
1517 DEFAULT_wxUSE_MSGDLG=no
1518 DEFAULT_wxUSE_NUMBERDLG=no
1519 DEFAULT_wxUSE_TEXTDLG=no
1520 DEFAULT_wxUSE_SPLASH=no
1521 DEFAULT_wxUSE_STARTUP_TIPS=no
1522 DEFAULT_wxUSE_PROGRESSDLG=no
1523 DEFAULT_wxUSE_WIZARDDLG=no
1524
1525 DEFAULT_wxUSE_MENUS=no
1526 DEFAULT_wxUSE_MINIFRAME=no
1527 DEFAULT_wxUSE_HTML=no
1528 DEFAULT_wxUSE_FILESYSTEM=no
1529 DEFAULT_wxUSE_FS_INET=no
1530 DEFAULT_wxUSE_FS_ZIP=no
1531 DEFAULT_wxUSE_BUSYINFO=no
1532 DEFAULT_wxUSE_ZIPSTREAM=no
1533 DEFAULT_wxUSE_VALIDATORS=no
1534
1535 DEFAULT_wxUSE_ACCEL=no
1536 DEFAULT_wxUSE_BUTTON=no
1537 DEFAULT_wxUSE_BMPBUTTON=no
1538 DEFAULT_wxUSE_CALCTRL=no
1539 DEFAULT_wxUSE_CARET=no
1540 DEFAULT_wxUSE_CHECKBOX=no
1541 DEFAULT_wxUSE_CHECKLST=no
1542 DEFAULT_wxUSE_CHOICE=no
1543 DEFAULT_wxUSE_COMBOBOX=no
1544 DEFAULT_wxUSE_DISPLAY=no
1545 DEFAULT_wxUSE_GAUGE=no
1546 DEFAULT_wxUSE_GRID=no
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
1551 DEFAULT_wxUSE_RADIOBOX=no
1552 DEFAULT_wxUSE_RADIOBTN=no
1553 DEFAULT_wxUSE_SASH=no
1554 DEFAULT_wxUSE_SCROLLBAR=no
1555 DEFAULT_wxUSE_SLIDER=no
1556 DEFAULT_wxUSE_SPINBTN=no
1557 DEFAULT_wxUSE_SPINCTRL=no
1558 DEFAULT_wxUSE_SPLITTER=no
1559 DEFAULT_wxUSE_STATBMP=no
1560 DEFAULT_wxUSE_STATBOX=no
1561 DEFAULT_wxUSE_STATLINE=no
1562 DEFAULT_wxUSE_STATTEXT=no
1563 DEFAULT_wxUSE_STATUSBAR=yes
1564 DEFAULT_wxUSE_TABDIALOG=no
1565 DEFAULT_wxUSE_TEXTCTRL=no
1566 DEFAULT_wxUSE_TOGGLEBTN=no
1567 DEFAULT_wxUSE_TOOLBAR=no
1568 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1569 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1570 DEFAULT_wxUSE_TREECTRL=no
1571 DEFAULT_wxUSE_POPUPWIN=no
1572 DEFAULT_wxUSE_TIPWINDOW=no
1573
1574 DEFAULT_wxUSE_UNICODE=no
1575 DEFAULT_wxUSE_UNICODE_MSLU=no
1576 DEFAULT_wxUSE_WCSRTOMBS=no
1577
1578 DEFAULT_wxUSE_PALETTE=no
1579 DEFAULT_wxUSE_IMAGE=no
1580 DEFAULT_wxUSE_GIF=no
1581 DEFAULT_wxUSE_PCX=no
1582 DEFAULT_wxUSE_PNM=no
1583 DEFAULT_wxUSE_IFF=no
1584 DEFAULT_wxUSE_XPM=no
1585 DEFAULT_wxUSE_ICO_CUR=no
1586 DEFAULT_wxUSE_ACCESSIBILITY=no
1587 else
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
1590 DEFAULT_wxUSE_NANOX=no
1591
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
1595 DEFAULT_wxUSE_SONAME=no
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
1608 DEFAULT_wxUSE_PRECOMP=no
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
1614 DEFAULT_wxUSE_LOGDIALOG=yes
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
1618 DEFAULT_wxUSE_REGEX=yes
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
1622 DEFAULT_wxUSE_LIBTIFF=yes
1623 DEFAULT_wxUSE_ODBC=no
1624 DEFAULT_wxUSE_OPENGL=no
1625
1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1631 DEFAULT_wxUSE_TIMER=yes
1632 DEFAULT_wxUSE_STOPWATCH=yes
1633 DEFAULT_wxUSE_FILE=yes
1634 DEFAULT_wxUSE_FFILE=yes
1635 DEFAULT_wxUSE_TEXTBUFFER=yes
1636 DEFAULT_wxUSE_TEXTFILE=yes
1637 DEFAULT_wxUSE_WAVE=no
1638 DEFAULT_wxUSE_INTL=yes
1639 DEFAULT_wxUSE_CONFIG=yes
1640 DEFAULT_wxUSE_FONTMAP=yes
1641 DEFAULT_wxUSE_STREAMS=yes
1642 DEFAULT_wxUSE_SOCKETS=yes
1643 DEFAULT_wxUSE_OLE=yes
1644 DEFAULT_wxUSE_DATAOBJ=yes
1645 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1646 DEFAULT_wxUSE_JOYSTICK=yes
1647 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1648 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1649 DEFAULT_wxUSE_LONGLONG=yes
1650 DEFAULT_wxUSE_GEOMETRY=yes
1651
1652 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1653 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1654 DEFAULT_wxUSE_POSTSCRIPT=yes
1655
1656 DEFAULT_wxUSE_X_RESOURCES=no
1657 DEFAULT_wxUSE_CLIPBOARD=yes
1658 DEFAULT_wxUSE_TOOLTIPS=yes
1659 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1660 DEFAULT_wxUSE_DRAGIMAGE=yes
1661 DEFAULT_wxUSE_SPLINES=yes
1662
1663 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1666
1667 DEFAULT_wxUSE_RESOURCES=no
1668 DEFAULT_wxUSE_CONSTRAINTS=yes
1669 DEFAULT_wxUSE_IPC=yes
1670 DEFAULT_wxUSE_HELP=yes
1671 DEFAULT_wxUSE_MS_HTML_HELP=yes
1672 DEFAULT_wxUSE_WXHTML_HELP=yes
1673 DEFAULT_wxUSE_TREELAYOUT=yes
1674 DEFAULT_wxUSE_METAFILE=yes
1675 DEFAULT_wxUSE_MIMETYPE=yes
1676 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1677 DEFAULT_wxUSE_PROTOCOL=yes
1678 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1679 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1680 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1681 DEFAULT_wxUSE_URL=yes
1682
1683 DEFAULT_wxUSE_COMMONDLGS=yes
1684 DEFAULT_wxUSE_CHOICEDLG=yes
1685 DEFAULT_wxUSE_COLOURDLG=yes
1686 DEFAULT_wxUSE_DIRDLG=yes
1687 DEFAULT_wxUSE_FILEDLG=yes
1688 DEFAULT_wxUSE_FINDREPLDLG=yes
1689 DEFAULT_wxUSE_FONTDLG=yes
1690 DEFAULT_wxUSE_MSGDLG=yes
1691 DEFAULT_wxUSE_NUMBERDLG=yes
1692 DEFAULT_wxUSE_TEXTDLG=yes
1693 DEFAULT_wxUSE_SPLASH=yes
1694 DEFAULT_wxUSE_STARTUP_TIPS=yes
1695 DEFAULT_wxUSE_PROGRESSDLG=yes
1696 DEFAULT_wxUSE_WIZARDDLG=yes
1697
1698 DEFAULT_wxUSE_MENUS=yes
1699 DEFAULT_wxUSE_MINIFRAME=yes
1700 DEFAULT_wxUSE_HTML=yes
1701 DEFAULT_wxUSE_FILESYSTEM=yes
1702 DEFAULT_wxUSE_FS_INET=yes
1703 DEFAULT_wxUSE_FS_ZIP=yes
1704 DEFAULT_wxUSE_BUSYINFO=yes
1705 DEFAULT_wxUSE_ZIPSTREAM=yes
1706 DEFAULT_wxUSE_VALIDATORS=yes
1707
1708 DEFAULT_wxUSE_ACCEL=yes
1709 DEFAULT_wxUSE_BUTTON=yes
1710 DEFAULT_wxUSE_BMPBUTTON=yes
1711 DEFAULT_wxUSE_CALCTRL=yes
1712 DEFAULT_wxUSE_CARET=yes
1713 DEFAULT_wxUSE_CHECKBOX=yes
1714 DEFAULT_wxUSE_CHECKLST=yes
1715 DEFAULT_wxUSE_CHOICE=yes
1716 DEFAULT_wxUSE_COMBOBOX=yes
1717 DEFAULT_wxUSE_DISPLAY=no
1718 DEFAULT_wxUSE_GAUGE=yes
1719 DEFAULT_wxUSE_GRID=yes
1720 DEFAULT_wxUSE_IMAGLIST=yes
1721 DEFAULT_wxUSE_LISTBOX=yes
1722 DEFAULT_wxUSE_LISTCTRL=yes
1723 DEFAULT_wxUSE_NOTEBOOK=yes
1724 DEFAULT_wxUSE_RADIOBOX=yes
1725 DEFAULT_wxUSE_RADIOBTN=yes
1726 DEFAULT_wxUSE_SASH=yes
1727 DEFAULT_wxUSE_SCROLLBAR=yes
1728 DEFAULT_wxUSE_SLIDER=yes
1729 DEFAULT_wxUSE_SPINBTN=yes
1730 DEFAULT_wxUSE_SPINCTRL=yes
1731 DEFAULT_wxUSE_SPLITTER=yes
1732 DEFAULT_wxUSE_STATBMP=yes
1733 DEFAULT_wxUSE_STATBOX=yes
1734 DEFAULT_wxUSE_STATLINE=yes
1735 DEFAULT_wxUSE_STATTEXT=yes
1736 DEFAULT_wxUSE_STATUSBAR=yes
1737 DEFAULT_wxUSE_TABDIALOG=no
1738 DEFAULT_wxUSE_TEXTCTRL=yes
1739 DEFAULT_wxUSE_TOGGLEBTN=yes
1740 DEFAULT_wxUSE_TOOLBAR=yes
1741 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1742 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1743 DEFAULT_wxUSE_TREECTRL=yes
1744 DEFAULT_wxUSE_POPUPWIN=yes
1745 DEFAULT_wxUSE_TIPWINDOW=yes
1746
1747 DEFAULT_wxUSE_UNICODE=no
1748 DEFAULT_wxUSE_UNICODE_MSLU=yes
1749 DEFAULT_wxUSE_WCSRTOMBS=no
1750
1751 DEFAULT_wxUSE_PALETTE=yes
1752 DEFAULT_wxUSE_IMAGE=yes
1753 DEFAULT_wxUSE_GIF=yes
1754 DEFAULT_wxUSE_PCX=yes
1755 DEFAULT_wxUSE_IFF=no
1756 DEFAULT_wxUSE_PNM=yes
1757 DEFAULT_wxUSE_XPM=yes
1758 DEFAULT_wxUSE_ICO_CUR=yes
1759 DEFAULT_wxUSE_ACCESSIBILITY=no
1760 fi
1761
1762
1763
1764 for toolkit in `echo $ALL_TOOLKITS`; do
1765 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1766 if test "x$LINE" != "x" ; then
1767 has_toolkit_in_cache=1
1768 eval "DEFAULT_$LINE"
1769 eval "CACHE_$toolkit=1"
1770 fi
1771 done
1772
1773
1774
1775 enablestring=
1776 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1777 echo "configure:1778: checking for --${enablestring:-enable}-gui" >&5
1778 no_cache=0
1779 # Check whether --enable-gui or --disable-gui was given.
1780 if test "${enable_gui+set}" = set; then
1781 enableval="$enable_gui"
1782
1783 if test "$enableval" = yes; then
1784 ac_cv_use_gui='wxUSE_GUI=yes'
1785 else
1786 ac_cv_use_gui='wxUSE_GUI=no'
1787 fi
1788
1789 else
1790
1791 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1792 if test "x$LINE" != x ; then
1793 eval "DEFAULT_$LINE"
1794 else
1795 no_cache=1
1796 fi
1797
1798 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1799
1800 fi
1801
1802
1803 eval "$ac_cv_use_gui"
1804 if test "$no_cache" != 1; then
1805 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1806 fi
1807
1808 if test "$wxUSE_GUI" = yes; then
1809 echo "$ac_t""yes" 1>&6
1810 else
1811 echo "$ac_t""no" 1>&6
1812 fi
1813
1814
1815 if test "$wxUSE_GUI" = "yes"; then
1816
1817
1818 enablestring=
1819 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1820 echo "configure:1821: checking for --${enablestring:-enable}-universal" >&5
1821 no_cache=0
1822 # Check whether --enable-universal or --disable-universal was given.
1823 if test "${enable_universal+set}" = set; then
1824 enableval="$enable_universal"
1825
1826 if test "$enableval" = yes; then
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1828 else
1829 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1830 fi
1831
1832 else
1833
1834 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1835 if test "x$LINE" != x ; then
1836 eval "DEFAULT_$LINE"
1837 else
1838 no_cache=1
1839 fi
1840
1841 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1842
1843 fi
1844
1845
1846 eval "$ac_cv_use_universal"
1847 if test "$no_cache" != 1; then
1848 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1849 fi
1850
1851 if test "$wxUSE_UNIVERSAL" = yes; then
1852 echo "$ac_t""yes" 1>&6
1853 else
1854 echo "$ac_t""no" 1>&6
1855 fi
1856
1857 # Check whether --with-gtk or --without-gtk was given.
1858 if test "${with_gtk+set}" = set; then
1859 withval="$with_gtk"
1860 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1861 fi
1862
1863 # Check whether --with-motif or --without-motif was given.
1864 if test "${with_motif+set}" = set; then
1865 withval="$with_motif"
1866 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1867 fi
1868
1869 # Check whether --with-mac or --without-mac was given.
1870 if test "${with_mac+set}" = set; then
1871 withval="$with_mac"
1872 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1873 fi
1874
1875 # Check whether --with-cocoa or --without-cocoa was given.
1876 if test "${with_cocoa+set}" = set; then
1877 withval="$with_cocoa"
1878 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1879 fi
1880
1881 # Check whether --with-wine or --without-wine was given.
1882 if test "${with_wine+set}" = set; then
1883 withval="$with_wine"
1884 wxUSE_WINE="$withval" CACHE_WINE=1
1885 fi
1886
1887 # Check whether --with-msw or --without-msw was given.
1888 if test "${with_msw+set}" = set; then
1889 withval="$with_msw"
1890 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1891 fi
1892
1893 # Check whether --with-pm or --without-pm was given.
1894 if test "${with_pm+set}" = set; then
1895 withval="$with_pm"
1896 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1897 fi
1898
1899 # Check whether --with-mgl or --without-mgl was given.
1900 if test "${with_mgl+set}" = set; then
1901 withval="$with_mgl"
1902 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1903 fi
1904
1905 # Check whether --with-microwin or --without-microwin was given.
1906 if test "${with_microwin+set}" = set; then
1907 withval="$with_microwin"
1908 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1909 fi
1910
1911 # Check whether --with-x11 or --without-x11 was given.
1912 if test "${with_x11+set}" = set; then
1913 withval="$with_x11"
1914 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1915 fi
1916
1917
1918 enablestring=
1919 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1920 echo "configure:1921: checking for --${enablestring:-enable}-nanox" >&5
1921 no_cache=0
1922 # Check whether --enable-nanox or --disable-nanox was given.
1923 if test "${enable_nanox+set}" = set; then
1924 enableval="$enable_nanox"
1925
1926 if test "$enableval" = yes; then
1927 ac_cv_use_nanox='wxUSE_NANOX=yes'
1928 else
1929 ac_cv_use_nanox='wxUSE_NANOX=no'
1930 fi
1931
1932 else
1933
1934 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1935 if test "x$LINE" != x ; then
1936 eval "DEFAULT_$LINE"
1937 else
1938 no_cache=1
1939 fi
1940
1941 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1942
1943 fi
1944
1945
1946 eval "$ac_cv_use_nanox"
1947 if test "$no_cache" != 1; then
1948 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1949 fi
1950
1951 if test "$wxUSE_NANOX" = yes; then
1952 echo "$ac_t""yes" 1>&6
1953 else
1954 echo "$ac_t""no" 1>&6
1955 fi
1956
1957
1958
1959 enablestring=
1960 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1961 echo "configure:1962: checking for --${enablestring:-enable}-gtk2" >&5
1962 no_cache=0
1963 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1964 if test "${enable_gtk2+set}" = set; then
1965 enableval="$enable_gtk2"
1966
1967 if test "$enableval" = yes; then
1968 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1969 else
1970 ac_cv_use_gtk2='wxUSE_GTK2=no'
1971 fi
1972
1973 else
1974
1975 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1976 if test "x$LINE" != x ; then
1977 eval "DEFAULT_$LINE"
1978 else
1979 no_cache=1
1980 fi
1981
1982 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1983
1984 fi
1985
1986
1987 eval "$ac_cv_use_gtk2"
1988 if test "$no_cache" != 1; then
1989 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1990 fi
1991
1992 if test "$wxUSE_GTK2" = yes; then
1993 echo "$ac_t""yes" 1>&6
1994 else
1995 echo "$ac_t""no" 1>&6
1996 fi
1997
1998
1999
2000 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2001 echo "configure:2002: checking for --with-libpng" >&5
2002 no_cache=0
2003 # Check whether --with-libpng or --without-libpng was given.
2004 if test "${with_libpng+set}" = set; then
2005 withval="$with_libpng"
2006
2007 if test "$withval" = yes; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2009 elif test "$withval" = no; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2011 elif test "$withval" = sys; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2013 elif test "$withval" = builtin; then
2014 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2015 else
2016 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2017 fi
2018
2019 else
2020
2021 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2022 if test "x$LINE" != x ; then
2023 eval "DEFAULT_$LINE"
2024 else
2025 no_cache=1
2026 fi
2027
2028 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2029
2030 fi
2031
2032
2033 eval "$ac_cv_use_libpng"
2034 if test "$no_cache" != 1; then
2035 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2036 fi
2037
2038 if test "$wxUSE_LIBPNG" = yes; then
2039 echo "$ac_t""yes" 1>&6
2040 elif test "$wxUSE_LIBPNG" = no; then
2041 echo "$ac_t""no" 1>&6
2042 elif test "$wxUSE_LIBPNG" = sys; then
2043 echo "$ac_t""system version" 1>&6
2044 elif test "$wxUSE_LIBPNG" = builtin; then
2045 echo "$ac_t""builtin version" 1>&6
2046 else
2047 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2048 fi
2049
2050
2051 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2052 echo "configure:2053: checking for --with-libjpeg" >&5
2053 no_cache=0
2054 # Check whether --with-libjpeg or --without-libjpeg was given.
2055 if test "${with_libjpeg+set}" = set; then
2056 withval="$with_libjpeg"
2057
2058 if test "$withval" = yes; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2060 elif test "$withval" = no; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2062 elif test "$withval" = sys; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2064 elif test "$withval" = builtin; then
2065 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2066 else
2067 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2068 fi
2069
2070 else
2071
2072 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2073 if test "x$LINE" != x ; then
2074 eval "DEFAULT_$LINE"
2075 else
2076 no_cache=1
2077 fi
2078
2079 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2080
2081 fi
2082
2083
2084 eval "$ac_cv_use_libjpeg"
2085 if test "$no_cache" != 1; then
2086 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2087 fi
2088
2089 if test "$wxUSE_LIBJPEG" = yes; then
2090 echo "$ac_t""yes" 1>&6
2091 elif test "$wxUSE_LIBJPEG" = no; then
2092 echo "$ac_t""no" 1>&6
2093 elif test "$wxUSE_LIBJPEG" = sys; then
2094 echo "$ac_t""system version" 1>&6
2095 elif test "$wxUSE_LIBJPEG" = builtin; then
2096 echo "$ac_t""builtin version" 1>&6
2097 else
2098 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2099 fi
2100
2101
2102 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2103 echo "configure:2104: checking for --with-libtiff" >&5
2104 no_cache=0
2105 # Check whether --with-libtiff or --without-libtiff was given.
2106 if test "${with_libtiff+set}" = set; then
2107 withval="$with_libtiff"
2108
2109 if test "$withval" = yes; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2111 elif test "$withval" = no; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2113 elif test "$withval" = sys; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2115 elif test "$withval" = builtin; then
2116 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2117 else
2118 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2119 fi
2120
2121 else
2122
2123 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2124 if test "x$LINE" != x ; then
2125 eval "DEFAULT_$LINE"
2126 else
2127 no_cache=1
2128 fi
2129
2130 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2131
2132 fi
2133
2134
2135 eval "$ac_cv_use_libtiff"
2136 if test "$no_cache" != 1; then
2137 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2138 fi
2139
2140 if test "$wxUSE_LIBTIFF" = yes; then
2141 echo "$ac_t""yes" 1>&6
2142 elif test "$wxUSE_LIBTIFF" = no; then
2143 echo "$ac_t""no" 1>&6
2144 elif test "$wxUSE_LIBTIFF" = sys; then
2145 echo "$ac_t""system version" 1>&6
2146 elif test "$wxUSE_LIBTIFF" = builtin; then
2147 echo "$ac_t""builtin version" 1>&6
2148 else
2149 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2150 fi
2151
2152
2153 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2154 echo "configure:2155: checking for --with-opengl" >&5
2155 no_cache=0
2156 # Check whether --with-opengl or --without-opengl was given.
2157 if test "${with_opengl+set}" = set; then
2158 withval="$with_opengl"
2159
2160 if test "$withval" = yes; then
2161 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2162 else
2163 ac_cv_use_opengl='wxUSE_OPENGL=no'
2164 fi
2165
2166 else
2167
2168 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2169 if test "x$LINE" != x ; then
2170 eval "DEFAULT_$LINE"
2171 else
2172 no_cache=1
2173 fi
2174
2175 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2176
2177 fi
2178
2179
2180 eval "$ac_cv_use_opengl"
2181 if test "$no_cache" != 1; then
2182 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2183 fi
2184
2185 if test "$wxUSE_OPENGL" = yes; then
2186 echo "$ac_t""yes" 1>&6
2187 else
2188 echo "$ac_t""no" 1>&6
2189 fi
2190
2191
2192 fi
2193
2194
2195 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2196 echo "configure:2197: checking for --with-dmalloc" >&5
2197 no_cache=0
2198 # Check whether --with-dmalloc or --without-dmalloc was given.
2199 if test "${with_dmalloc+set}" = set; then
2200 withval="$with_dmalloc"
2201
2202 if test "$withval" = yes; then
2203 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2204 else
2205 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2206 fi
2207
2208 else
2209
2210 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2211 if test "x$LINE" != x ; then
2212 eval "DEFAULT_$LINE"
2213 else
2214 no_cache=1
2215 fi
2216
2217 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2218
2219 fi
2220
2221
2222 eval "$ac_cv_use_dmalloc"
2223 if test "$no_cache" != 1; then
2224 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2225 fi
2226
2227 if test "$wxUSE_DMALLOC" = yes; then
2228 echo "$ac_t""yes" 1>&6
2229 else
2230 echo "$ac_t""no" 1>&6
2231 fi
2232
2233
2234 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2235 echo "configure:2236: checking for --with-regex" >&5
2236 no_cache=0
2237 # Check whether --with-regex or --without-regex was given.
2238 if test "${with_regex+set}" = set; then
2239 withval="$with_regex"
2240
2241 if test "$withval" = yes; then
2242 ac_cv_use_regex='wxUSE_REGEX=yes'
2243 elif test "$withval" = no; then
2244 ac_cv_use_regex='wxUSE_REGEX=no'
2245 elif test "$withval" = sys; then
2246 ac_cv_use_regex='wxUSE_REGEX=sys'
2247 elif test "$withval" = builtin; then
2248 ac_cv_use_regex='wxUSE_REGEX=builtin'
2249 else
2250 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2251 fi
2252
2253 else
2254
2255 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2263
2264 fi
2265
2266
2267 eval "$ac_cv_use_regex"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_REGEX" = yes; then
2273 echo "$ac_t""yes" 1>&6
2274 elif test "$wxUSE_REGEX" = no; then
2275 echo "$ac_t""no" 1>&6
2276 elif test "$wxUSE_REGEX" = sys; then
2277 echo "$ac_t""system version" 1>&6
2278 elif test "$wxUSE_REGEX" = builtin; then
2279 echo "$ac_t""builtin version" 1>&6
2280 else
2281 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2282 fi
2283
2284
2285 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2286 echo "configure:2287: checking for --with-zlib" >&5
2287 no_cache=0
2288 # Check whether --with-zlib or --without-zlib was given.
2289 if test "${with_zlib+set}" = set; then
2290 withval="$with_zlib"
2291
2292 if test "$withval" = yes; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2294 elif test "$withval" = no; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=no'
2296 elif test "$withval" = sys; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2298 elif test "$withval" = builtin; then
2299 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2300 else
2301 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2302 fi
2303
2304 else
2305
2306 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2307 if test "x$LINE" != x ; then
2308 eval "DEFAULT_$LINE"
2309 else
2310 no_cache=1
2311 fi
2312
2313 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2314
2315 fi
2316
2317
2318 eval "$ac_cv_use_zlib"
2319 if test "$no_cache" != 1; then
2320 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2321 fi
2322
2323 if test "$wxUSE_ZLIB" = yes; then
2324 echo "$ac_t""yes" 1>&6
2325 elif test "$wxUSE_ZLIB" = no; then
2326 echo "$ac_t""no" 1>&6
2327 elif test "$wxUSE_ZLIB" = sys; then
2328 echo "$ac_t""system version" 1>&6
2329 elif test "$wxUSE_ZLIB" = builtin; then
2330 echo "$ac_t""builtin version" 1>&6
2331 else
2332 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2333 fi
2334
2335
2336 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2337 echo "configure:2338: checking for --with-odbc" >&5
2338 no_cache=0
2339 # Check whether --with-odbc or --without-odbc was given.
2340 if test "${with_odbc+set}" = set; then
2341 withval="$with_odbc"
2342
2343 if test "$withval" = yes; then
2344 ac_cv_use_odbc='wxUSE_ODBC=yes'
2345 elif test "$withval" = no; then
2346 ac_cv_use_odbc='wxUSE_ODBC=no'
2347 elif test "$withval" = sys; then
2348 ac_cv_use_odbc='wxUSE_ODBC=sys'
2349 elif test "$withval" = builtin; then
2350 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2351 else
2352 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2353 fi
2354
2355 else
2356
2357 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2358 if test "x$LINE" != x ; then
2359 eval "DEFAULT_$LINE"
2360 else
2361 no_cache=1
2362 fi
2363
2364 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2365
2366 fi
2367
2368
2369 eval "$ac_cv_use_odbc"
2370 if test "$no_cache" != 1; then
2371 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2372 fi
2373
2374 if test "$wxUSE_ODBC" = yes; then
2375 echo "$ac_t""yes" 1>&6
2376 elif test "$wxUSE_ODBC" = no; then
2377 echo "$ac_t""no" 1>&6
2378 elif test "$wxUSE_ODBC" = sys; then
2379 echo "$ac_t""system version" 1>&6
2380 elif test "$wxUSE_ODBC" = builtin; then
2381 echo "$ac_t""builtin version" 1>&6
2382 else
2383 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2384 fi
2385
2386
2387
2388
2389 enablestring=
2390 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2391 echo "configure:2392: checking for --${enablestring:-enable}-shared" >&5
2392 no_cache=0
2393 # Check whether --enable-shared or --disable-shared was given.
2394 if test "${enable_shared+set}" = set; then
2395 enableval="$enable_shared"
2396
2397 if test "$enableval" = yes; then
2398 ac_cv_use_shared='wxUSE_SHARED=yes'
2399 else
2400 ac_cv_use_shared='wxUSE_SHARED=no'
2401 fi
2402
2403 else
2404
2405 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2406 if test "x$LINE" != x ; then
2407 eval "DEFAULT_$LINE"
2408 else
2409 no_cache=1
2410 fi
2411
2412 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2413
2414 fi
2415
2416
2417 eval "$ac_cv_use_shared"
2418 if test "$no_cache" != 1; then
2419 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2420 fi
2421
2422 if test "$wxUSE_SHARED" = yes; then
2423 echo "$ac_t""yes" 1>&6
2424 else
2425 echo "$ac_t""no" 1>&6
2426 fi
2427
2428
2429 enablestring=
2430 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2431 echo "configure:2432: checking for --${enablestring:-enable}-soname" >&5
2432 no_cache=0
2433 # Check whether --enable-soname or --disable-soname was given.
2434 if test "${enable_soname+set}" = set; then
2435 enableval="$enable_soname"
2436
2437 if test "$enableval" = yes; then
2438 ac_cv_use_soname='wxUSE_SONAME=yes'
2439 else
2440 ac_cv_use_soname='wxUSE_SONAME=no'
2441 fi
2442
2443 else
2444
2445 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2453
2454 fi
2455
2456
2457 eval "$ac_cv_use_soname"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_SONAME" = yes; then
2463 echo "$ac_t""yes" 1>&6
2464 else
2465 echo "$ac_t""no" 1>&6
2466 fi
2467
2468
2469 enablestring=
2470 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2471 echo "configure:2472: checking for --${enablestring:-enable}-optimise" >&5
2472 no_cache=0
2473 # Check whether --enable-optimise or --disable-optimise was given.
2474 if test "${enable_optimise+set}" = set; then
2475 enableval="$enable_optimise"
2476
2477 if test "$enableval" = yes; then
2478 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2479 else
2480 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2481 fi
2482
2483 else
2484
2485 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2486 if test "x$LINE" != x ; then
2487 eval "DEFAULT_$LINE"
2488 else
2489 no_cache=1
2490 fi
2491
2492 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2493
2494 fi
2495
2496
2497 eval "$ac_cv_use_optimise"
2498 if test "$no_cache" != 1; then
2499 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2500 fi
2501
2502 if test "$wxUSE_OPTIMISE" = yes; then
2503 echo "$ac_t""yes" 1>&6
2504 else
2505 echo "$ac_t""no" 1>&6
2506 fi
2507
2508
2509 enablestring=
2510 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2511 echo "configure:2512: checking for --${enablestring:-enable}-debug" >&5
2512 no_cache=0
2513 # Check whether --enable-debug or --disable-debug was given.
2514 if test "${enable_debug+set}" = set; then
2515 enableval="$enable_debug"
2516
2517 if test "$enableval" = yes; then
2518 ac_cv_use_debug='wxUSE_DEBUG=yes'
2519 else
2520 ac_cv_use_debug='wxUSE_DEBUG=no'
2521 fi
2522
2523 else
2524
2525 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2526 if test "x$LINE" != x ; then
2527 eval "DEFAULT_$LINE"
2528 else
2529 no_cache=1
2530 fi
2531
2532 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2533
2534 fi
2535
2536
2537 eval "$ac_cv_use_debug"
2538 if test "$no_cache" != 1; then
2539 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2540 fi
2541
2542 if test "$wxUSE_DEBUG" = yes; then
2543 echo "$ac_t""yes" 1>&6
2544 else
2545 echo "$ac_t""no" 1>&6
2546 fi
2547
2548
2549
2550 enablestring=
2551 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2552 echo "configure:2553: checking for --${enablestring:-enable}-precomp" >&5
2553 no_cache=0
2554 # Check whether --enable-precomp or --disable-precomp was given.
2555 if test "${enable_precomp+set}" = set; then
2556 enableval="$enable_precomp"
2557
2558 if test "$enableval" = yes; then
2559 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2560 else
2561 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2562 fi
2563
2564 else
2565
2566 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2567 if test "x$LINE" != x ; then
2568 eval "DEFAULT_$LINE"
2569 else
2570 no_cache=1
2571 fi
2572
2573 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2574
2575 fi
2576
2577
2578 eval "$ac_cv_use_precomp"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_PRECOMP" = yes; then
2584 echo "$ac_t""yes" 1>&6
2585 else
2586 echo "$ac_t""no" 1>&6
2587 fi
2588
2589
2590 if test "$wxUSE_DEBUG" = "yes"; then
2591 DEFAULT_wxUSE_DEBUG_FLAG=yes
2592 DEFAULT_wxUSE_DEBUG_INFO=yes
2593 elif test "$wxUSE_DEBUG" = "no"; then
2594 DEFAULT_wxUSE_DEBUG_FLAG=no
2595 DEFAULT_wxUSE_DEBUG_INFO=no
2596 fi
2597
2598
2599 enablestring=
2600 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2601 echo "configure:2602: checking for --${enablestring:-enable}-debug_flag" >&5
2602 no_cache=0
2603 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2604 if test "${enable_debug_flag+set}" = set; then
2605 enableval="$enable_debug_flag"
2606
2607 if test "$enableval" = yes; then
2608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2609 else
2610 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2611 fi
2612
2613 else
2614
2615 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2623
2624 fi
2625
2626
2627 eval "$ac_cv_use_debug_flag"
2628 if test "$no_cache" != 1; then
2629 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2630 fi
2631
2632 if test "$wxUSE_DEBUG_FLAG" = yes; then
2633 echo "$ac_t""yes" 1>&6
2634 else
2635 echo "$ac_t""no" 1>&6
2636 fi
2637
2638
2639 enablestring=
2640 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2641 echo "configure:2642: checking for --${enablestring:-enable}-debug_info" >&5
2642 no_cache=0
2643 # Check whether --enable-debug_info or --disable-debug_info was given.
2644 if test "${enable_debug_info+set}" = set; then
2645 enableval="$enable_debug_info"
2646
2647 if test "$enableval" = yes; then
2648 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2649 else
2650 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2651 fi
2652
2653 else
2654
2655 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2656 if test "x$LINE" != x ; then
2657 eval "DEFAULT_$LINE"
2658 else
2659 no_cache=1
2660 fi
2661
2662 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2663
2664 fi
2665
2666
2667 eval "$ac_cv_use_debug_info"
2668 if test "$no_cache" != 1; then
2669 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2670 fi
2671
2672 if test "$wxUSE_DEBUG_INFO" = yes; then
2673 echo "$ac_t""yes" 1>&6
2674 else
2675 echo "$ac_t""no" 1>&6
2676 fi
2677
2678
2679 enablestring=
2680 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2681 echo "configure:2682: checking for --${enablestring:-enable}-debug_gdb" >&5
2682 no_cache=0
2683 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2684 if test "${enable_debug_gdb+set}" = set; then
2685 enableval="$enable_debug_gdb"
2686
2687 if test "$enableval" = yes; then
2688 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2689 else
2690 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2691 fi
2692
2693 else
2694
2695 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
2702 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2703
2704 fi
2705
2706
2707 eval "$ac_cv_use_debug_gdb"
2708 if test "$no_cache" != 1; then
2709 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2710 fi
2711
2712 if test "$wxUSE_DEBUG_GDB" = yes; then
2713 echo "$ac_t""yes" 1>&6
2714 else
2715 echo "$ac_t""no" 1>&6
2716 fi
2717
2718
2719 enablestring=
2720 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2721 echo "configure:2722: checking for --${enablestring:-enable}-debug_cntxt" >&5
2722 no_cache=0
2723 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2724 if test "${enable_debug_cntxt+set}" = set; then
2725 enableval="$enable_debug_cntxt"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2729 else
2730 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2731 fi
2732
2733 else
2734
2735 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2743
2744 fi
2745
2746
2747 eval "$ac_cv_use_debug_cntxt"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2753 echo "$ac_t""yes" 1>&6
2754 else
2755 echo "$ac_t""no" 1>&6
2756 fi
2757
2758
2759 enablestring=
2760 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2761 echo "configure:2762: checking for --${enablestring:-enable}-mem_tracing" >&5
2762 no_cache=0
2763 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2764 if test "${enable_mem_tracing+set}" = set; then
2765 enableval="$enable_mem_tracing"
2766
2767 if test "$enableval" = yes; then
2768 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2769 else
2770 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2771 fi
2772
2773 else
2774
2775 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
2782 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2783
2784 fi
2785
2786
2787 eval "$ac_cv_use_mem_tracing"
2788 if test "$no_cache" != 1; then
2789 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2790 fi
2791
2792 if test "$wxUSE_MEM_TRACING" = yes; then
2793 echo "$ac_t""yes" 1>&6
2794 else
2795 echo "$ac_t""no" 1>&6
2796 fi
2797
2798
2799 enablestring=
2800 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2801 echo "configure:2802: checking for --${enablestring:-enable}-profile" >&5
2802 no_cache=0
2803 # Check whether --enable-profile or --disable-profile was given.
2804 if test "${enable_profile+set}" = set; then
2805 enableval="$enable_profile"
2806
2807 if test "$enableval" = yes; then
2808 ac_cv_use_profile='wxUSE_PROFILE=yes'
2809 else
2810 ac_cv_use_profile='wxUSE_PROFILE=no'
2811 fi
2812
2813 else
2814
2815 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2816 if test "x$LINE" != x ; then
2817 eval "DEFAULT_$LINE"
2818 else
2819 no_cache=1
2820 fi
2821
2822 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2823
2824 fi
2825
2826
2827 eval "$ac_cv_use_profile"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_PROFILE" = yes; then
2833 echo "$ac_t""yes" 1>&6
2834 else
2835 echo "$ac_t""no" 1>&6
2836 fi
2837
2838
2839 enablestring=
2840 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2841 echo "configure:2842: checking for --${enablestring:-enable}-no_rtti" >&5
2842 no_cache=0
2843 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2844 if test "${enable_no_rtti+set}" = set; then
2845 enableval="$enable_no_rtti"
2846
2847 if test "$enableval" = yes; then
2848 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2849 else
2850 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2851 fi
2852
2853 else
2854
2855 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2856 if test "x$LINE" != x ; then
2857 eval "DEFAULT_$LINE"
2858 else
2859 no_cache=1
2860 fi
2861
2862 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2863
2864 fi
2865
2866
2867 eval "$ac_cv_use_no_rtti"
2868 if test "$no_cache" != 1; then
2869 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2870 fi
2871
2872 if test "$wxUSE_NO_RTTI" = yes; then
2873 echo "$ac_t""yes" 1>&6
2874 else
2875 echo "$ac_t""no" 1>&6
2876 fi
2877
2878
2879 enablestring=
2880 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2881 echo "configure:2882: checking for --${enablestring:-enable}-no_exceptions" >&5
2882 no_cache=0
2883 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2884 if test "${enable_no_exceptions+set}" = set; then
2885 enableval="$enable_no_exceptions"
2886
2887 if test "$enableval" = yes; then
2888 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2889 else
2890 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2891 fi
2892
2893 else
2894
2895 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2896 if test "x$LINE" != x ; then
2897 eval "DEFAULT_$LINE"
2898 else
2899 no_cache=1
2900 fi
2901
2902 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2903
2904 fi
2905
2906
2907 eval "$ac_cv_use_no_exceptions"
2908 if test "$no_cache" != 1; then
2909 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2910 fi
2911
2912 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2913 echo "$ac_t""yes" 1>&6
2914 else
2915 echo "$ac_t""no" 1>&6
2916 fi
2917
2918
2919 enablestring=
2920 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2921 echo "configure:2922: checking for --${enablestring:-enable}-permissive" >&5
2922 no_cache=0
2923 # Check whether --enable-permissive or --disable-permissive was given.
2924 if test "${enable_permissive+set}" = set; then
2925 enableval="$enable_permissive"
2926
2927 if test "$enableval" = yes; then
2928 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2929 else
2930 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2931 fi
2932
2933 else
2934
2935 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2936 if test "x$LINE" != x ; then
2937 eval "DEFAULT_$LINE"
2938 else
2939 no_cache=1
2940 fi
2941
2942 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2943
2944 fi
2945
2946
2947 eval "$ac_cv_use_permissive"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_PERMISSIVE" = yes; then
2953 echo "$ac_t""yes" 1>&6
2954 else
2955 echo "$ac_t""no" 1>&6
2956 fi
2957
2958
2959 enablestring=
2960 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2961 echo "configure:2962: checking for --${enablestring:-enable}-no_deps" >&5
2962 no_cache=0
2963 # Check whether --enable-no_deps or --disable-no_deps was given.
2964 if test "${enable_no_deps+set}" = set; then
2965 enableval="$enable_no_deps"
2966
2967 if test "$enableval" = yes; then
2968 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2969 else
2970 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2971 fi
2972
2973 else
2974
2975 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2983
2984 fi
2985
2986
2987 eval "$ac_cv_use_no_deps"
2988 if test "$no_cache" != 1; then
2989 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2990 fi
2991
2992 if test "$wxUSE_NO_DEPS" = yes; then
2993 echo "$ac_t""yes" 1>&6
2994 else
2995 echo "$ac_t""no" 1>&6
2996 fi
2997
2998
2999
3000 enablestring=
3001 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
3002 echo "configure:3003: checking for --${enablestring:-enable}-compat20" >&5
3003 no_cache=0
3004 # Check whether --enable-compat20 or --disable-compat20 was given.
3005 if test "${enable_compat20+set}" = set; then
3006 enableval="$enable_compat20"
3007
3008 if test "$enableval" = yes; then
3009 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3010 else
3011 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3012 fi
3013
3014 else
3015
3016 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3024
3025 fi
3026
3027
3028 eval "$ac_cv_use_compat20"
3029 if test "$no_cache" != 1; then
3030 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3031 fi
3032
3033 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3034 echo "$ac_t""yes" 1>&6
3035 else
3036 echo "$ac_t""no" 1>&6
3037 fi
3038
3039
3040 enablestring=
3041 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3042 echo "configure:3043: checking for --${enablestring:-enable}-compat22" >&5
3043 no_cache=0
3044 # Check whether --enable-compat22 or --disable-compat22 was given.
3045 if test "${enable_compat22+set}" = set; then
3046 enableval="$enable_compat22"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3050 else
3051 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3052 fi
3053
3054 else
3055
3056 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3064
3065 fi
3066
3067
3068 eval "$ac_cv_use_compat22"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 enablestring=disable
3081 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3082 echo "configure:3083: checking for --${enablestring:-enable}-compat24" >&5
3083 no_cache=0
3084 # Check whether --enable-compat24 or --disable-compat24 was given.
3085 if test "${enable_compat24+set}" = set; then
3086 enableval="$enable_compat24"
3087
3088 if test "$enableval" = yes; then
3089 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3090 else
3091 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3092 fi
3093
3094 else
3095
3096 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3104
3105 fi
3106
3107
3108 eval "$ac_cv_use_compat24"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3114 echo "$ac_t""yes" 1>&6
3115 else
3116 echo "$ac_t""no" 1>&6
3117 fi
3118
3119
3120 # Check whether --enable-rpath or --disable-rpath was given.
3121 if test "${enable_rpath+set}" = set; then
3122 enableval="$enable_rpath"
3123 wxRPATH_DIR="$enableval"
3124 fi
3125
3126
3127 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3128 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3129 fi
3130
3131
3132
3133
3134 enablestring=
3135 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3136 echo "configure:3137: checking for --${enablestring:-enable}-intl" >&5
3137 no_cache=0
3138 # Check whether --enable-intl or --disable-intl was given.
3139 if test "${enable_intl+set}" = set; then
3140 enableval="$enable_intl"
3141
3142 if test "$enableval" = yes; then
3143 ac_cv_use_intl='wxUSE_INTL=yes'
3144 else
3145 ac_cv_use_intl='wxUSE_INTL=no'
3146 fi
3147
3148 else
3149
3150 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3151 if test "x$LINE" != x ; then
3152 eval "DEFAULT_$LINE"
3153 else
3154 no_cache=1
3155 fi
3156
3157 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3158
3159 fi
3160
3161
3162 eval "$ac_cv_use_intl"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$wxUSE_INTL" = yes; then
3168 echo "$ac_t""yes" 1>&6
3169 else
3170 echo "$ac_t""no" 1>&6
3171 fi
3172
3173
3174 enablestring=
3175 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3176 echo "configure:3177: checking for --${enablestring:-enable}-config" >&5
3177 no_cache=0
3178 # Check whether --enable-config or --disable-config was given.
3179 if test "${enable_config+set}" = set; then
3180 enableval="$enable_config"
3181
3182 if test "$enableval" = yes; then
3183 ac_cv_use_config='wxUSE_CONFIG=yes'
3184 else
3185 ac_cv_use_config='wxUSE_CONFIG=no'
3186 fi
3187
3188 else
3189
3190 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3191 if test "x$LINE" != x ; then
3192 eval "DEFAULT_$LINE"
3193 else
3194 no_cache=1
3195 fi
3196
3197 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3198
3199 fi
3200
3201
3202 eval "$ac_cv_use_config"
3203 if test "$no_cache" != 1; then
3204 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3205 fi
3206
3207 if test "$wxUSE_CONFIG" = yes; then
3208 echo "$ac_t""yes" 1>&6
3209 else
3210 echo "$ac_t""no" 1>&6
3211 fi
3212
3213
3214
3215 enablestring=
3216 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3217 echo "configure:3218: checking for --${enablestring:-enable}-protocols" >&5
3218 no_cache=0
3219 # Check whether --enable-protocols or --disable-protocols was given.
3220 if test "${enable_protocols+set}" = set; then
3221 enableval="$enable_protocols"
3222
3223 if test "$enableval" = yes; then
3224 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3225 else
3226 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3227 fi
3228
3229 else
3230
3231 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3232 if test "x$LINE" != x ; then
3233 eval "DEFAULT_$LINE"
3234 else
3235 no_cache=1
3236 fi
3237
3238 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3239
3240 fi
3241
3242
3243 eval "$ac_cv_use_protocols"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_PROTOCOL" = yes; then
3249 echo "$ac_t""yes" 1>&6
3250 else
3251 echo "$ac_t""no" 1>&6
3252 fi
3253
3254
3255 enablestring=
3256 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3257 echo "configure:3258: checking for --${enablestring:-enable}-ftp" >&5
3258 no_cache=0
3259 # Check whether --enable-ftp or --disable-ftp was given.
3260 if test "${enable_ftp+set}" = set; then
3261 enableval="$enable_ftp"
3262
3263 if test "$enableval" = yes; then
3264 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3265 else
3266 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3267 fi
3268
3269 else
3270
3271 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3272 if test "x$LINE" != x ; then
3273 eval "DEFAULT_$LINE"
3274 else
3275 no_cache=1
3276 fi
3277
3278 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3279
3280 fi
3281
3282
3283 eval "$ac_cv_use_ftp"
3284 if test "$no_cache" != 1; then
3285 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3286 fi
3287
3288 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3289 echo "$ac_t""yes" 1>&6
3290 else
3291 echo "$ac_t""no" 1>&6
3292 fi
3293
3294
3295 enablestring=
3296 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3297 echo "configure:3298: checking for --${enablestring:-enable}-http" >&5
3298 no_cache=0
3299 # Check whether --enable-http or --disable-http was given.
3300 if test "${enable_http+set}" = set; then
3301 enableval="$enable_http"
3302
3303 if test "$enableval" = yes; then
3304 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3305 else
3306 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3307 fi
3308
3309 else
3310
3311 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3312 if test "x$LINE" != x ; then
3313 eval "DEFAULT_$LINE"
3314 else
3315 no_cache=1
3316 fi
3317
3318 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3319
3320 fi
3321
3322
3323 eval "$ac_cv_use_http"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3329 echo "$ac_t""yes" 1>&6
3330 else
3331 echo "$ac_t""no" 1>&6
3332 fi
3333
3334
3335 enablestring=
3336 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3337 echo "configure:3338: checking for --${enablestring:-enable}-fileproto" >&5
3338 no_cache=0
3339 # Check whether --enable-fileproto or --disable-fileproto was given.
3340 if test "${enable_fileproto+set}" = set; then
3341 enableval="$enable_fileproto"
3342
3343 if test "$enableval" = yes; then
3344 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3345 else
3346 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3347 fi
3348
3349 else
3350
3351 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3352 if test "x$LINE" != x ; then
3353 eval "DEFAULT_$LINE"
3354 else
3355 no_cache=1
3356 fi
3357
3358 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3359
3360 fi
3361
3362
3363 eval "$ac_cv_use_fileproto"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3369 echo "$ac_t""yes" 1>&6
3370 else
3371 echo "$ac_t""no" 1>&6
3372 fi
3373
3374
3375 enablestring=
3376 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3377 echo "configure:3378: checking for --${enablestring:-enable}-sockets" >&5
3378 no_cache=0
3379 # Check whether --enable-sockets or --disable-sockets was given.
3380 if test "${enable_sockets+set}" = set; then
3381 enableval="$enable_sockets"
3382
3383 if test "$enableval" = yes; then
3384 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3385 else
3386 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3387 fi
3388
3389 else
3390
3391 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3392 if test "x$LINE" != x ; then
3393 eval "DEFAULT_$LINE"
3394 else
3395 no_cache=1
3396 fi
3397
3398 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3399
3400 fi
3401
3402
3403 eval "$ac_cv_use_sockets"
3404 if test "$no_cache" != 1; then
3405 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3406 fi
3407
3408 if test "$wxUSE_SOCKETS" = yes; then
3409 echo "$ac_t""yes" 1>&6
3410 else
3411 echo "$ac_t""no" 1>&6
3412 fi
3413
3414
3415 enablestring=
3416 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3417 echo "configure:3418: checking for --${enablestring:-enable}-ole" >&5
3418 no_cache=0
3419 # Check whether --enable-ole or --disable-ole was given.
3420 if test "${enable_ole+set}" = set; then
3421 enableval="$enable_ole"
3422
3423 if test "$enableval" = yes; then
3424 ac_cv_use_ole='wxUSE_OLE=yes'
3425 else
3426 ac_cv_use_ole='wxUSE_OLE=no'
3427 fi
3428
3429 else
3430
3431 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3432 if test "x$LINE" != x ; then
3433 eval "DEFAULT_$LINE"
3434 else
3435 no_cache=1
3436 fi
3437
3438 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3439
3440 fi
3441
3442
3443 eval "$ac_cv_use_ole"
3444 if test "$no_cache" != 1; then
3445 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3446 fi
3447
3448 if test "$wxUSE_OLE" = yes; then
3449 echo "$ac_t""yes" 1>&6
3450 else
3451 echo "$ac_t""no" 1>&6
3452 fi
3453
3454
3455 enablestring=
3456 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3457 echo "configure:3458: checking for --${enablestring:-enable}-dataobj" >&5
3458 no_cache=0
3459 # Check whether --enable-dataobj or --disable-dataobj was given.
3460 if test "${enable_dataobj+set}" = set; then
3461 enableval="$enable_dataobj"
3462
3463 if test "$enableval" = yes; then
3464 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3465 else
3466 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3467 fi
3468
3469 else
3470
3471 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3472 if test "x$LINE" != x ; then
3473 eval "DEFAULT_$LINE"
3474 else
3475 no_cache=1
3476 fi
3477
3478 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3479
3480 fi
3481
3482
3483 eval "$ac_cv_use_dataobj"
3484 if test "$no_cache" != 1; then
3485 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3486 fi
3487
3488 if test "$wxUSE_DATAOBJ" = yes; then
3489 echo "$ac_t""yes" 1>&6
3490 else
3491 echo "$ac_t""no" 1>&6
3492 fi
3493
3494
3495
3496 enablestring=
3497 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3498 echo "configure:3499: checking for --${enablestring:-enable}-ipc" >&5
3499 no_cache=0
3500 # Check whether --enable-ipc or --disable-ipc was given.
3501 if test "${enable_ipc+set}" = set; then
3502 enableval="$enable_ipc"
3503
3504 if test "$enableval" = yes; then
3505 ac_cv_use_ipc='wxUSE_IPC=yes'
3506 else
3507 ac_cv_use_ipc='wxUSE_IPC=no'
3508 fi
3509
3510 else
3511
3512 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3513 if test "x$LINE" != x ; then
3514 eval "DEFAULT_$LINE"
3515 else
3516 no_cache=1
3517 fi
3518
3519 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3520
3521 fi
3522
3523
3524 eval "$ac_cv_use_ipc"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_IPC" = yes; then
3530 echo "$ac_t""yes" 1>&6
3531 else
3532 echo "$ac_t""no" 1>&6
3533 fi
3534
3535
3536
3537 enablestring=
3538 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3539 echo "configure:3540: checking for --${enablestring:-enable}-cmdline" >&5
3540 no_cache=0
3541 # Check whether --enable-cmdline or --disable-cmdline was given.
3542 if test "${enable_cmdline+set}" = set; then
3543 enableval="$enable_cmdline"
3544
3545 if test "$enableval" = yes; then
3546 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3547 else
3548 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3549 fi
3550
3551 else
3552
3553 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3554 if test "x$LINE" != x ; then
3555 eval "DEFAULT_$LINE"
3556 else
3557 no_cache=1
3558 fi
3559
3560 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3561
3562 fi
3563
3564
3565 eval "$ac_cv_use_cmdline"
3566 if test "$no_cache" != 1; then
3567 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3568 fi
3569
3570 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3571 echo "$ac_t""yes" 1>&6
3572 else
3573 echo "$ac_t""no" 1>&6
3574 fi
3575
3576
3577 enablestring=
3578 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3579 echo "configure:3580: checking for --${enablestring:-enable}-datetime" >&5
3580 no_cache=0
3581 # Check whether --enable-datetime or --disable-datetime was given.
3582 if test "${enable_datetime+set}" = set; then
3583 enableval="$enable_datetime"
3584
3585 if test "$enableval" = yes; then
3586 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3587 else
3588 ac_cv_use_datetime='wxUSE_DATETIME=no'
3589 fi
3590
3591 else
3592
3593 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3594 if test "x$LINE" != x ; then
3595 eval "DEFAULT_$LINE"
3596 else
3597 no_cache=1
3598 fi
3599
3600 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3601
3602 fi
3603
3604
3605 eval "$ac_cv_use_datetime"
3606 if test "$no_cache" != 1; then
3607 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3608 fi
3609
3610 if test "$wxUSE_DATETIME" = yes; then
3611 echo "$ac_t""yes" 1>&6
3612 else
3613 echo "$ac_t""no" 1>&6
3614 fi
3615
3616
3617 enablestring=
3618 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3619 echo "configure:3620: checking for --${enablestring:-enable}-stopwatch" >&5
3620 no_cache=0
3621 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3622 if test "${enable_stopwatch+set}" = set; then
3623 enableval="$enable_stopwatch"
3624
3625 if test "$enableval" = yes; then
3626 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3627 else
3628 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3629 fi
3630
3631 else
3632
3633 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3634 if test "x$LINE" != x ; then
3635 eval "DEFAULT_$LINE"
3636 else
3637 no_cache=1
3638 fi
3639
3640 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3641
3642 fi
3643
3644
3645 eval "$ac_cv_use_stopwatch"
3646 if test "$no_cache" != 1; then
3647 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3648 fi
3649
3650 if test "$wxUSE_STOPWATCH" = yes; then
3651 echo "$ac_t""yes" 1>&6
3652 else
3653 echo "$ac_t""no" 1>&6
3654 fi
3655
3656
3657 enablestring=
3658 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3659 echo "configure:3660: checking for --${enablestring:-enable}-dialupman" >&5
3660 no_cache=0
3661 # Check whether --enable-dialupman or --disable-dialupman was given.
3662 if test "${enable_dialupman+set}" = set; then
3663 enableval="$enable_dialupman"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3667 else
3668 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3669 fi
3670
3671 else
3672
3673 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3681
3682 fi
3683
3684
3685 eval "$ac_cv_use_dialupman"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3691 echo "$ac_t""yes" 1>&6
3692 else
3693 echo "$ac_t""no" 1>&6
3694 fi
3695
3696
3697 enablestring=
3698 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3699 echo "configure:3700: checking for --${enablestring:-enable}-apple_ieee" >&5
3700 no_cache=0
3701 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3702 if test "${enable_apple_ieee+set}" = set; then
3703 enableval="$enable_apple_ieee"
3704
3705 if test "$enableval" = yes; then
3706 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3707 else
3708 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3709 fi
3710
3711 else
3712
3713 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3714 if test "x$LINE" != x ; then
3715 eval "DEFAULT_$LINE"
3716 else
3717 no_cache=1
3718 fi
3719
3720 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3721
3722 fi
3723
3724
3725 eval "$ac_cv_use_apple_ieee"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$wxUSE_APPLE_IEEE" = yes; then
3731 echo "$ac_t""yes" 1>&6
3732 else
3733 echo "$ac_t""no" 1>&6
3734 fi
3735
3736
3737 enablestring=
3738 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3739 echo "configure:3740: checking for --${enablestring:-enable}-timer" >&5
3740 no_cache=0
3741 # Check whether --enable-timer or --disable-timer was given.
3742 if test "${enable_timer+set}" = set; then
3743 enableval="$enable_timer"
3744
3745 if test "$enableval" = yes; then
3746 ac_cv_use_timer='wxUSE_TIMER=yes'
3747 else
3748 ac_cv_use_timer='wxUSE_TIMER=no'
3749 fi
3750
3751 else
3752
3753 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3754 if test "x$LINE" != x ; then
3755 eval "DEFAULT_$LINE"
3756 else
3757 no_cache=1
3758 fi
3759
3760 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3761
3762 fi
3763
3764
3765 eval "$ac_cv_use_timer"
3766 if test "$no_cache" != 1; then
3767 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3768 fi
3769
3770 if test "$wxUSE_TIMER" = yes; then
3771 echo "$ac_t""yes" 1>&6
3772 else
3773 echo "$ac_t""no" 1>&6
3774 fi
3775
3776
3777 enablestring=
3778 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3779 echo "configure:3780: checking for --${enablestring:-enable}-wave" >&5
3780 no_cache=0
3781 # Check whether --enable-wave or --disable-wave was given.
3782 if test "${enable_wave+set}" = set; then
3783 enableval="$enable_wave"
3784
3785 if test "$enableval" = yes; then
3786 ac_cv_use_wave='wxUSE_WAVE=yes'
3787 else
3788 ac_cv_use_wave='wxUSE_WAVE=no'
3789 fi
3790
3791 else
3792
3793 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3794 if test "x$LINE" != x ; then
3795 eval "DEFAULT_$LINE"
3796 else
3797 no_cache=1
3798 fi
3799
3800 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3801
3802 fi
3803
3804
3805 eval "$ac_cv_use_wave"
3806 if test "$no_cache" != 1; then
3807 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3808 fi
3809
3810 if test "$wxUSE_WAVE" = yes; then
3811 echo "$ac_t""yes" 1>&6
3812 else
3813 echo "$ac_t""no" 1>&6
3814 fi
3815
3816
3817 enablestring=
3818 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3819 echo "configure:3820: checking for --${enablestring:-enable}-fraction" >&5
3820 no_cache=0
3821 # Check whether --enable-fraction or --disable-fraction was given.
3822 if test "${enable_fraction+set}" = set; then
3823 enableval="$enable_fraction"
3824
3825 if test "$enableval" = yes; then
3826 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3827 else
3828 ac_cv_use_fraction='wxUSE_FRACTION=no'
3829 fi
3830
3831 else
3832
3833 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3841
3842 fi
3843
3844
3845 eval "$ac_cv_use_fraction"
3846 if test "$no_cache" != 1; then
3847 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3848 fi
3849
3850 if test "$wxUSE_FRACTION" = yes; then
3851 echo "$ac_t""yes" 1>&6
3852 else
3853 echo "$ac_t""no" 1>&6
3854 fi
3855
3856
3857 enablestring=
3858 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3859 echo "configure:3860: checking for --${enablestring:-enable}-dynlib" >&5
3860 no_cache=0
3861 # Check whether --enable-dynlib or --disable-dynlib was given.
3862 if test "${enable_dynlib+set}" = set; then
3863 enableval="$enable_dynlib"
3864
3865 if test "$enableval" = yes; then
3866 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3867 else
3868 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3869 fi
3870
3871 else
3872
3873 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3881
3882 fi
3883
3884
3885 eval "$ac_cv_use_dynlib"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3891 echo "$ac_t""yes" 1>&6
3892 else
3893 echo "$ac_t""no" 1>&6
3894 fi
3895
3896
3897 enablestring=
3898 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3899 echo "configure:3900: checking for --${enablestring:-enable}-dynamicloader" >&5
3900 no_cache=0
3901 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3902 if test "${enable_dynamicloader+set}" = set; then
3903 enableval="$enable_dynamicloader"
3904
3905 if test "$enableval" = yes; then
3906 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3907 else
3908 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3909 fi
3910
3911 else
3912
3913 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3921
3922 fi
3923
3924
3925 eval "$ac_cv_use_dynamicloader"
3926 if test "$no_cache" != 1; then
3927 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3928 fi
3929
3930 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3931 echo "$ac_t""yes" 1>&6
3932 else
3933 echo "$ac_t""no" 1>&6
3934 fi
3935
3936
3937 enablestring=
3938 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3939 echo "configure:3940: checking for --${enablestring:-enable}-longlong" >&5
3940 no_cache=0
3941 # Check whether --enable-longlong or --disable-longlong was given.
3942 if test "${enable_longlong+set}" = set; then
3943 enableval="$enable_longlong"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3947 else
3948 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3949 fi
3950
3951 else
3952
3953 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3961
3962 fi
3963
3964
3965 eval "$ac_cv_use_longlong"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_LONGLONG" = yes; then
3971 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3974 fi
3975
3976
3977 enablestring=
3978 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3979 echo "configure:3980: checking for --${enablestring:-enable}-geometry" >&5
3980 no_cache=0
3981 # Check whether --enable-geometry or --disable-geometry was given.
3982 if test "${enable_geometry+set}" = set; then
3983 enableval="$enable_geometry"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3987 else
3988 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3989 fi
3990
3991 else
3992
3993 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4001
4002 fi
4003
4004
4005 eval "$ac_cv_use_geometry"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_GEOMETRY" = yes; then
4011 echo "$ac_t""yes" 1>&6
4012 else
4013 echo "$ac_t""no" 1>&6
4014 fi
4015
4016
4017 enablestring=
4018 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4019 echo "configure:4020: checking for --${enablestring:-enable}-log" >&5
4020 no_cache=0
4021 # Check whether --enable-log or --disable-log was given.
4022 if test "${enable_log+set}" = set; then
4023 enableval="$enable_log"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_log='wxUSE_LOG=yes'
4027 else
4028 ac_cv_use_log='wxUSE_LOG=no'
4029 fi
4030
4031 else
4032
4033 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4041
4042 fi
4043
4044
4045 eval "$ac_cv_use_log"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_LOG" = yes; then
4051 echo "$ac_t""yes" 1>&6
4052 else
4053 echo "$ac_t""no" 1>&6
4054 fi
4055
4056
4057 enablestring=
4058 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4059 echo "configure:4060: checking for --${enablestring:-enable}-streams" >&5
4060 no_cache=0
4061 # Check whether --enable-streams or --disable-streams was given.
4062 if test "${enable_streams+set}" = set; then
4063 enableval="$enable_streams"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_streams='wxUSE_STREAMS=yes'
4067 else
4068 ac_cv_use_streams='wxUSE_STREAMS=no'
4069 fi
4070
4071 else
4072
4073 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4081
4082 fi
4083
4084
4085 eval "$ac_cv_use_streams"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_STREAMS" = yes; then
4091 echo "$ac_t""yes" 1>&6
4092 else
4093 echo "$ac_t""no" 1>&6
4094 fi
4095
4096
4097 enablestring=
4098 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4099 echo "configure:4100: checking for --${enablestring:-enable}-file" >&5
4100 no_cache=0
4101 # Check whether --enable-file or --disable-file was given.
4102 if test "${enable_file+set}" = set; then
4103 enableval="$enable_file"
4104
4105 if test "$enableval" = yes; then
4106 ac_cv_use_file='wxUSE_FILE=yes'
4107 else
4108 ac_cv_use_file='wxUSE_FILE=no'
4109 fi
4110
4111 else
4112
4113 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4114 if test "x$LINE" != x ; then
4115 eval "DEFAULT_$LINE"
4116 else
4117 no_cache=1
4118 fi
4119
4120 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4121
4122 fi
4123
4124
4125 eval "$ac_cv_use_file"
4126 if test "$no_cache" != 1; then
4127 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4128 fi
4129
4130 if test "$wxUSE_FILE" = yes; then
4131 echo "$ac_t""yes" 1>&6
4132 else
4133 echo "$ac_t""no" 1>&6
4134 fi
4135
4136
4137 enablestring=
4138 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4139 echo "configure:4140: checking for --${enablestring:-enable}-ffile" >&5
4140 no_cache=0
4141 # Check whether --enable-ffile or --disable-ffile was given.
4142 if test "${enable_ffile+set}" = set; then
4143 enableval="$enable_ffile"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_ffile='wxUSE_FFILE=yes'
4147 else
4148 ac_cv_use_ffile='wxUSE_FFILE=no'
4149 fi
4150
4151 else
4152
4153 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4161
4162 fi
4163
4164
4165 eval "$ac_cv_use_ffile"
4166 if test "$no_cache" != 1; then
4167 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4168 fi
4169
4170 if test "$wxUSE_FFILE" = yes; then
4171 echo "$ac_t""yes" 1>&6
4172 else
4173 echo "$ac_t""no" 1>&6
4174 fi
4175
4176
4177 enablestring=
4178 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4179 echo "configure:4180: checking for --${enablestring:-enable}-textbuf" >&5
4180 no_cache=0
4181 # Check whether --enable-textbuf or --disable-textbuf was given.
4182 if test "${enable_textbuf+set}" = set; then
4183 enableval="$enable_textbuf"
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4187 else
4188 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4189 fi
4190
4191 else
4192
4193 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4201
4202 fi
4203
4204
4205 eval "$ac_cv_use_textbuf"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_TEXTBUFFER" = yes; then
4211 echo "$ac_t""yes" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4214 fi
4215
4216
4217 enablestring=
4218 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4219 echo "configure:4220: checking for --${enablestring:-enable}-textfile" >&5
4220 no_cache=0
4221 # Check whether --enable-textfile or --disable-textfile was given.
4222 if test "${enable_textfile+set}" = set; then
4223 enableval="$enable_textfile"
4224
4225 if test "$enableval" = yes; then
4226 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4227 else
4228 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4229 fi
4230
4231 else
4232
4233 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4234 if test "x$LINE" != x ; then
4235 eval "DEFAULT_$LINE"
4236 else
4237 no_cache=1
4238 fi
4239
4240 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4241
4242 fi
4243
4244
4245 eval "$ac_cv_use_textfile"
4246 if test "$no_cache" != 1; then
4247 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4248 fi
4249
4250 if test "$wxUSE_TEXTFILE" = yes; then
4251 echo "$ac_t""yes" 1>&6
4252 else
4253 echo "$ac_t""no" 1>&6
4254 fi
4255
4256
4257 enablestring=
4258 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4259 echo "configure:4260: checking for --${enablestring:-enable}-fontmap" >&5
4260 no_cache=0
4261 # Check whether --enable-fontmap or --disable-fontmap was given.
4262 if test "${enable_fontmap+set}" = set; then
4263 enableval="$enable_fontmap"
4264
4265 if test "$enableval" = yes; then
4266 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4267 else
4268 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4269 fi
4270
4271 else
4272
4273 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4281
4282 fi
4283
4284
4285 eval "$ac_cv_use_fontmap"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_FONTMAP" = yes; then
4291 echo "$ac_t""yes" 1>&6
4292 else
4293 echo "$ac_t""no" 1>&6
4294 fi
4295
4296
4297 enablestring=
4298 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4299 echo "configure:4300: checking for --${enablestring:-enable}-unicode" >&5
4300 no_cache=0
4301 # Check whether --enable-unicode or --disable-unicode was given.
4302 if test "${enable_unicode+set}" = set; then
4303 enableval="$enable_unicode"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4307 else
4308 ac_cv_use_unicode='wxUSE_UNICODE=no'
4309 fi
4310
4311 else
4312
4313 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4321
4322 fi
4323
4324
4325 eval "$ac_cv_use_unicode"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_UNICODE" = yes; then
4331 echo "$ac_t""yes" 1>&6
4332 else
4333 echo "$ac_t""no" 1>&6
4334 fi
4335
4336
4337 enablestring=
4338 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4339 echo "configure:4340: checking for --${enablestring:-enable}-mslu" >&5
4340 no_cache=0
4341 # Check whether --enable-mslu or --disable-mslu was given.
4342 if test "${enable_mslu+set}" = set; then
4343 enableval="$enable_mslu"
4344
4345 if test "$enableval" = yes; then
4346 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4347 else
4348 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4349 fi
4350
4351 else
4352
4353 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4354 if test "x$LINE" != x ; then
4355 eval "DEFAULT_$LINE"
4356 else
4357 no_cache=1
4358 fi
4359
4360 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4361
4362 fi
4363
4364
4365 eval "$ac_cv_use_mslu"
4366 if test "$no_cache" != 1; then
4367 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4368 fi
4369
4370 if test "$wxUSE_UNICODE_MSLU" = yes; then
4371 echo "$ac_t""yes" 1>&6
4372 else
4373 echo "$ac_t""no" 1>&6
4374 fi
4375
4376
4377 enablestring=
4378 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4379 echo "configure:4380: checking for --${enablestring:-enable}-wxprintfv" >&5
4380 no_cache=0
4381 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4382 if test "${enable_wxprintfv+set}" = set; then
4383 enableval="$enable_wxprintfv"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4387 else
4388 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4389 fi
4390
4391 else
4392
4393 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4401
4402 fi
4403
4404
4405 eval "$ac_cv_use_wxprintfv"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417 enablestring=
4418 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4419 echo "configure:4420: checking for --${enablestring:-enable}-std_iostreams" >&5
4420 no_cache=0
4421 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4422 if test "${enable_std_iostreams+set}" = set; then
4423 enableval="$enable_std_iostreams"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4427 else
4428 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4429 fi
4430
4431 else
4432
4433 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4441
4442 fi
4443
4444
4445 eval "$ac_cv_use_std_iostreams"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_STD_IOSTREAM" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 enablestring=
4458 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4459 echo "configure:4460: checking for --${enablestring:-enable}-filesystem" >&5
4460 no_cache=0
4461 # Check whether --enable-filesystem or --disable-filesystem was given.
4462 if test "${enable_filesystem+set}" = set; then
4463 enableval="$enable_filesystem"
4464
4465 if test "$enableval" = yes; then
4466 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4467 else
4468 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4469 fi
4470
4471 else
4472
4473 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4474 if test "x$LINE" != x ; then
4475 eval "DEFAULT_$LINE"
4476 else
4477 no_cache=1
4478 fi
4479
4480 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4481
4482 fi
4483
4484
4485 eval "$ac_cv_use_filesystem"
4486 if test "$no_cache" != 1; then
4487 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4488 fi
4489
4490 if test "$wxUSE_FILESYSTEM" = yes; then
4491 echo "$ac_t""yes" 1>&6
4492 else
4493 echo "$ac_t""no" 1>&6
4494 fi
4495
4496
4497 enablestring=
4498 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4499 echo "configure:4500: checking for --${enablestring:-enable}-fs_inet" >&5
4500 no_cache=0
4501 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4502 if test "${enable_fs_inet+set}" = set; then
4503 enableval="$enable_fs_inet"
4504
4505 if test "$enableval" = yes; then
4506 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4507 else
4508 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4509 fi
4510
4511 else
4512
4513 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4521
4522 fi
4523
4524
4525 eval "$ac_cv_use_fs_inet"
4526 if test "$no_cache" != 1; then
4527 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4528 fi
4529
4530 if test "$wxUSE_FS_INET" = yes; then
4531 echo "$ac_t""yes" 1>&6
4532 else
4533 echo "$ac_t""no" 1>&6
4534 fi
4535
4536
4537 enablestring=
4538 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4539 echo "configure:4540: checking for --${enablestring:-enable}-fs_zip" >&5
4540 no_cache=0
4541 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4542 if test "${enable_fs_zip+set}" = set; then
4543 enableval="$enable_fs_zip"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4547 else
4548 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4549 fi
4550
4551 else
4552
4553 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4561
4562 fi
4563
4564
4565 eval "$ac_cv_use_fs_zip"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_FS_ZIP" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
4577 enablestring=
4578 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4579 echo "configure:4580: checking for --${enablestring:-enable}-zipstream" >&5
4580 no_cache=0
4581 # Check whether --enable-zipstream or --disable-zipstream was given.
4582 if test "${enable_zipstream+set}" = set; then
4583 enableval="$enable_zipstream"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4587 else
4588 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4589 fi
4590
4591 else
4592
4593 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4601
4602 fi
4603
4604
4605 eval "$ac_cv_use_zipstream"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_ZIPSTREAM" = yes; then
4611 echo "$ac_t""yes" 1>&6
4612 else
4613 echo "$ac_t""no" 1>&6
4614 fi
4615
4616
4617
4618 enablestring=
4619 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4620 echo "configure:4621: checking for --${enablestring:-enable}-catch_segvs" >&5
4621 no_cache=0
4622 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4623 if test "${enable_catch_segvs+set}" = set; then
4624 enableval="$enable_catch_segvs"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4628 else
4629 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4630 fi
4631
4632 else
4633
4634 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4642
4643 fi
4644
4645
4646 eval "$ac_cv_use_catch_segvs"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4652 echo "$ac_t""yes" 1>&6
4653 else
4654 echo "$ac_t""no" 1>&6
4655 fi
4656
4657
4658 enablestring=
4659 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4660 echo "configure:4661: checking for --${enablestring:-enable}-snglinst" >&5
4661 no_cache=0
4662 # Check whether --enable-snglinst or --disable-snglinst was given.
4663 if test "${enable_snglinst+set}" = set; then
4664 enableval="$enable_snglinst"
4665
4666 if test "$enableval" = yes; then
4667 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4668 else
4669 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4670 fi
4671
4672 else
4673
4674 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4675 if test "x$LINE" != x ; then
4676 eval "DEFAULT_$LINE"
4677 else
4678 no_cache=1
4679 fi
4680
4681 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4682
4683 fi
4684
4685
4686 eval "$ac_cv_use_snglinst"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4692 echo "$ac_t""yes" 1>&6
4693 else
4694 echo "$ac_t""no" 1>&6
4695 fi
4696
4697
4698
4699 enablestring=
4700 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4701 echo "configure:4702: checking for --${enablestring:-enable}-mimetype" >&5
4702 no_cache=0
4703 # Check whether --enable-mimetype or --disable-mimetype was given.
4704 if test "${enable_mimetype+set}" = set; then
4705 enableval="$enable_mimetype"
4706
4707 if test "$enableval" = yes; then
4708 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4709 else
4710 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4711 fi
4712
4713 else
4714
4715 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4723
4724 fi
4725
4726
4727 eval "$ac_cv_use_mimetype"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_MIMETYPE" = yes; then
4733 echo "$ac_t""yes" 1>&6
4734 else
4735 echo "$ac_t""no" 1>&6
4736 fi
4737
4738
4739 enablestring=
4740 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4741 echo "configure:4742: checking for --${enablestring:-enable}-system_options" >&5
4742 no_cache=0
4743 # Check whether --enable-system_options or --disable-system_options was given.
4744 if test "${enable_system_options+set}" = set; then
4745 enableval="$enable_system_options"
4746
4747 if test "$enableval" = yes; then
4748 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4749 else
4750 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4751 fi
4752
4753 else
4754
4755 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
4762 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4763
4764 fi
4765
4766
4767 eval "$ac_cv_use_system_options"
4768 if test "$no_cache" != 1; then
4769 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4770 fi
4771
4772 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4773 echo "$ac_t""yes" 1>&6
4774 else
4775 echo "$ac_t""no" 1>&6
4776 fi
4777
4778
4779
4780 enablestring=
4781 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4782 echo "configure:4783: checking for --${enablestring:-enable}-url" >&5
4783 no_cache=0
4784 # Check whether --enable-url or --disable-url was given.
4785 if test "${enable_url+set}" = set; then
4786 enableval="$enable_url"
4787
4788 if test "$enableval" = yes; then
4789 ac_cv_use_url='wxUSE_URL=yes'
4790 else
4791 ac_cv_use_url='wxUSE_URL=no'
4792 fi
4793
4794 else
4795
4796 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
4803 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4804
4805 fi
4806
4807
4808 eval "$ac_cv_use_url"
4809 if test "$no_cache" != 1; then
4810 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4811 fi
4812
4813 if test "$wxUSE_URL" = yes; then
4814 echo "$ac_t""yes" 1>&6
4815 else
4816 echo "$ac_t""no" 1>&6
4817 fi
4818
4819
4820 enablestring=
4821 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4822 echo "configure:4823: checking for --${enablestring:-enable}-protocol" >&5
4823 no_cache=0
4824 # Check whether --enable-protocol or --disable-protocol was given.
4825 if test "${enable_protocol+set}" = set; then
4826 enableval="$enable_protocol"
4827
4828 if test "$enableval" = yes; then
4829 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4830 else
4831 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4832 fi
4833
4834 else
4835
4836 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4837 if test "x$LINE" != x ; then
4838 eval "DEFAULT_$LINE"
4839 else
4840 no_cache=1
4841 fi
4842
4843 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4844
4845 fi
4846
4847
4848 eval "$ac_cv_use_protocol"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_PROTOCOL" = yes; then
4854 echo "$ac_t""yes" 1>&6
4855 else
4856 echo "$ac_t""no" 1>&6
4857 fi
4858
4859
4860 enablestring=
4861 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4862 echo "configure:4863: checking for --${enablestring:-enable}-protocol_http" >&5
4863 no_cache=0
4864 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4865 if test "${enable_protocol_http+set}" = set; then
4866 enableval="$enable_protocol_http"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4870 else
4871 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4872 fi
4873
4874 else
4875
4876 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4884
4885 fi
4886
4887
4888 eval "$ac_cv_use_protocol_http"
4889 if test "$no_cache" != 1; then
4890 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4891 fi
4892
4893 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4894 echo "$ac_t""yes" 1>&6
4895 else
4896 echo "$ac_t""no" 1>&6
4897 fi
4898
4899
4900 enablestring=
4901 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4902 echo "configure:4903: checking for --${enablestring:-enable}-protocol_ftp" >&5
4903 no_cache=0
4904 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4905 if test "${enable_protocol_ftp+set}" = set; then
4906 enableval="$enable_protocol_ftp"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4910 else
4911 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4912 fi
4913
4914 else
4915
4916 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4924
4925 fi
4926
4927
4928 eval "$ac_cv_use_protocol_ftp"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4934 echo "$ac_t""yes" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4937 fi
4938
4939
4940 enablestring=
4941 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4942 echo "configure:4943: checking for --${enablestring:-enable}-protocol_file" >&5
4943 no_cache=0
4944 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4945 if test "${enable_protocol_file+set}" = set; then
4946 enableval="$enable_protocol_file"
4947
4948 if test "$enableval" = yes; then
4949 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4950 else
4951 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4952 fi
4953
4954 else
4955
4956 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4957 if test "x$LINE" != x ; then
4958 eval "DEFAULT_$LINE"
4959 else
4960 no_cache=1
4961 fi
4962
4963 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4964
4965 fi
4966
4967
4968 eval "$ac_cv_use_protocol_file"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4974 echo "$ac_t""yes" 1>&6
4975 else
4976 echo "$ac_t""no" 1>&6
4977 fi
4978
4979
4980
4981
4982
4983 enablestring=
4984 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4985 echo "configure:4986: checking for --${enablestring:-enable}-threads" >&5
4986 no_cache=0
4987 # Check whether --enable-threads or --disable-threads was given.
4988 if test "${enable_threads+set}" = set; then
4989 enableval="$enable_threads"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_threads='wxUSE_THREADS=yes'
4993 else
4994 ac_cv_use_threads='wxUSE_THREADS=no'
4995 fi
4996
4997 else
4998
4999 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5007
5008 fi
5009
5010
5011 eval "$ac_cv_use_threads"
5012 if test "$no_cache" != 1; then
5013 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5014 fi
5015
5016 if test "$wxUSE_THREADS" = yes; then
5017 echo "$ac_t""yes" 1>&6
5018 else
5019 echo "$ac_t""no" 1>&6
5020 fi
5021
5022
5023 if test "$wxUSE_GUI" = "yes"; then
5024
5025
5026
5027 enablestring=
5028 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5029 echo "configure:5030: checking for --${enablestring:-enable}-docview" >&5
5030 no_cache=0
5031 # Check whether --enable-docview or --disable-docview was given.
5032 if test "${enable_docview+set}" = set; then
5033 enableval="$enable_docview"
5034
5035 if test "$enableval" = yes; then
5036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5037 else
5038 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5039 fi
5040
5041 else
5042
5043 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5044 if test "x$LINE" != x ; then
5045 eval "DEFAULT_$LINE"
5046 else
5047 no_cache=1
5048 fi
5049
5050 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5051
5052 fi
5053
5054
5055 eval "$ac_cv_use_docview"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5061 echo "$ac_t""yes" 1>&6
5062 else
5063 echo "$ac_t""no" 1>&6
5064 fi
5065
5066
5067 enablestring=
5068 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5069 echo "configure:5070: checking for --${enablestring:-enable}-help" >&5
5070 no_cache=0
5071 # Check whether --enable-help or --disable-help was given.
5072 if test "${enable_help+set}" = set; then
5073 enableval="$enable_help"
5074
5075 if test "$enableval" = yes; then
5076 ac_cv_use_help='wxUSE_HELP=yes'
5077 else
5078 ac_cv_use_help='wxUSE_HELP=no'
5079 fi
5080
5081 else
5082
5083 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5084 if test "x$LINE" != x ; then
5085 eval "DEFAULT_$LINE"
5086 else
5087 no_cache=1
5088 fi
5089
5090 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5091
5092 fi
5093
5094
5095 eval "$ac_cv_use_help"
5096 if test "$no_cache" != 1; then
5097 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5098 fi
5099
5100 if test "$wxUSE_HELP" = yes; then
5101 echo "$ac_t""yes" 1>&6
5102 else
5103 echo "$ac_t""no" 1>&6
5104 fi
5105
5106
5107 enablestring=
5108 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5109 echo "configure:5110: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5110 no_cache=0
5111 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5112 if test "${enable_mshtmlhelp+set}" = set; then
5113 enableval="$enable_mshtmlhelp"
5114
5115 if test "$enableval" = yes; then
5116 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5117 else
5118 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5119 fi
5120
5121 else
5122
5123 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5124 if test "x$LINE" != x ; then
5125 eval "DEFAULT_$LINE"
5126 else
5127 no_cache=1
5128 fi
5129
5130 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5131
5132 fi
5133
5134
5135 eval "$ac_cv_use_mshtmlhelp"
5136 if test "$no_cache" != 1; then
5137 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5138 fi
5139
5140 if test "$wxUSE_MS_HTML_HELP" = yes; then
5141 echo "$ac_t""yes" 1>&6
5142 else
5143 echo "$ac_t""no" 1>&6
5144 fi
5145
5146
5147 enablestring=
5148 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5149 echo "configure:5150: checking for --${enablestring:-enable}-html" >&5
5150 no_cache=0
5151 # Check whether --enable-html or --disable-html was given.
5152 if test "${enable_html+set}" = set; then
5153 enableval="$enable_html"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_html='wxUSE_HTML=yes'
5157 else
5158 ac_cv_use_html='wxUSE_HTML=no'
5159 fi
5160
5161 else
5162
5163 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5171
5172 fi
5173
5174
5175 eval "$ac_cv_use_html"
5176 if test "$no_cache" != 1; then
5177 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5178 fi
5179
5180 if test "$wxUSE_HTML" = yes; then
5181 echo "$ac_t""yes" 1>&6
5182 else
5183 echo "$ac_t""no" 1>&6
5184 fi
5185
5186
5187 enablestring=
5188 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5189 echo "configure:5190: checking for --${enablestring:-enable}-htmlhelp" >&5
5190 no_cache=0
5191 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5192 if test "${enable_htmlhelp+set}" = set; then
5193 enableval="$enable_htmlhelp"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5197 else
5198 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5199 fi
5200
5201 else
5202
5203 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5211
5212 fi
5213
5214
5215 eval "$ac_cv_use_htmlhelp"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_WXHTML_HELP" = yes; then
5221 echo "$ac_t""yes" 1>&6
5222 else
5223 echo "$ac_t""no" 1>&6
5224 fi
5225
5226
5227 enablestring=
5228 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5229 echo "configure:5230: checking for --${enablestring:-enable}-constraints" >&5
5230 no_cache=0
5231 # Check whether --enable-constraints or --disable-constraints was given.
5232 if test "${enable_constraints+set}" = set; then
5233 enableval="$enable_constraints"
5234
5235 if test "$enableval" = yes; then
5236 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5237 else
5238 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5239 fi
5240
5241 else
5242
5243 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5244 if test "x$LINE" != x ; then
5245 eval "DEFAULT_$LINE"
5246 else
5247 no_cache=1
5248 fi
5249
5250 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5251
5252 fi
5253
5254
5255 eval "$ac_cv_use_constraints"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_CONSTRAINTS" = yes; then
5261 echo "$ac_t""yes" 1>&6
5262 else
5263 echo "$ac_t""no" 1>&6
5264 fi
5265
5266
5267 enablestring=
5268 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5269 echo "configure:5270: checking for --${enablestring:-enable}-printarch" >&5
5270 no_cache=0
5271 # Check whether --enable-printarch or --disable-printarch was given.
5272 if test "${enable_printarch+set}" = set; then
5273 enableval="$enable_printarch"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5277 else
5278 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5279 fi
5280
5281 else
5282
5283 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5291
5292 fi
5293
5294
5295 eval "$ac_cv_use_printarch"
5296 if test "$no_cache" != 1; then
5297 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5298 fi
5299
5300 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5301 echo "$ac_t""yes" 1>&6
5302 else
5303 echo "$ac_t""no" 1>&6
5304 fi
5305
5306
5307 enablestring=
5308 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5309 echo "configure:5310: checking for --${enablestring:-enable}-mdi" >&5
5310 no_cache=0
5311 # Check whether --enable-mdi or --disable-mdi was given.
5312 if test "${enable_mdi+set}" = set; then
5313 enableval="$enable_mdi"
5314
5315 if test "$enableval" = yes; then
5316 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5317 else
5318 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5319 fi
5320
5321 else
5322
5323 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5324 if test "x$LINE" != x ; then
5325 eval "DEFAULT_$LINE"
5326 else
5327 no_cache=1
5328 fi
5329
5330 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5331
5332 fi
5333
5334
5335 eval "$ac_cv_use_mdi"
5336 if test "$no_cache" != 1; then
5337 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5338 fi
5339
5340 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5341 echo "$ac_t""yes" 1>&6
5342 else
5343 echo "$ac_t""no" 1>&6
5344 fi
5345
5346
5347 enablestring=
5348 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5349 echo "configure:5350: checking for --${enablestring:-enable}-loggui" >&5
5350 no_cache=0
5351 # Check whether --enable-loggui or --disable-loggui was given.
5352 if test "${enable_loggui+set}" = set; then
5353 enableval="$enable_loggui"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5357 else
5358 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5359 fi
5360
5361 else
5362
5363 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5371
5372 fi
5373
5374
5375 eval "$ac_cv_use_loggui"
5376 if test "$no_cache" != 1; then
5377 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5378 fi
5379
5380 if test "$wxUSE_LOGGUI" = yes; then
5381 echo "$ac_t""yes" 1>&6
5382 else
5383 echo "$ac_t""no" 1>&6
5384 fi
5385
5386
5387 enablestring=
5388 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5389 echo "configure:5390: checking for --${enablestring:-enable}-logwin" >&5
5390 no_cache=0
5391 # Check whether --enable-logwin or --disable-logwin was given.
5392 if test "${enable_logwin+set}" = set; then
5393 enableval="$enable_logwin"
5394
5395 if test "$enableval" = yes; then
5396 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5397 else
5398 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5399 fi
5400
5401 else
5402
5403 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
5410 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5411
5412 fi
5413
5414
5415 eval "$ac_cv_use_logwin"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_LOGWINDOW" = yes; then
5421 echo "$ac_t""yes" 1>&6
5422 else
5423 echo "$ac_t""no" 1>&6
5424 fi
5425
5426
5427 enablestring=
5428 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5429 echo "configure:5430: checking for --${enablestring:-enable}-logdialog" >&5
5430 no_cache=0
5431 # Check whether --enable-logdialog or --disable-logdialog was given.
5432 if test "${enable_logdialog+set}" = set; then
5433 enableval="$enable_logdialog"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5437 else
5438 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5439 fi
5440
5441 else
5442
5443 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5451
5452 fi
5453
5454
5455 eval "$ac_cv_use_logdialog"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_LOGDIALOG" = yes; then
5461 echo "$ac_t""yes" 1>&6
5462 else
5463 echo "$ac_t""no" 1>&6
5464 fi
5465
5466
5467
5468 enablestring=
5469 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5470 echo "configure:5471: checking for --${enablestring:-enable}-postscript" >&5
5471 no_cache=0
5472 # Check whether --enable-postscript or --disable-postscript was given.
5473 if test "${enable_postscript+set}" = set; then
5474 enableval="$enable_postscript"
5475
5476 if test "$enableval" = yes; then
5477 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5478 else
5479 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5480 fi
5481
5482 else
5483
5484 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5485 if test "x$LINE" != x ; then
5486 eval "DEFAULT_$LINE"
5487 else
5488 no_cache=1
5489 fi
5490
5491 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5492
5493 fi
5494
5495
5496 eval "$ac_cv_use_postscript"
5497 if test "$no_cache" != 1; then
5498 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5499 fi
5500
5501 if test "$wxUSE_POSTSCRIPT" = yes; then
5502 echo "$ac_t""yes" 1>&6
5503 else
5504 echo "$ac_t""no" 1>&6
5505 fi
5506
5507
5508
5509
5510
5511 enablestring=
5512 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5513 echo "configure:5514: checking for --${enablestring:-enable}-resources" >&5
5514 no_cache=0
5515 # Check whether --enable-resources or --disable-resources was given.
5516 if test "${enable_resources+set}" = set; then
5517 enableval="$enable_resources"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5521 else
5522 ac_cv_use_resources='wxUSE_RESOURCES=no'
5523 fi
5524
5525 else
5526
5527 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5535
5536 fi
5537
5538
5539 eval "$ac_cv_use_resources"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_RESOURCES" = yes; then
5545 echo "$ac_t""yes" 1>&6
5546 else
5547 echo "$ac_t""no" 1>&6
5548 fi
5549
5550
5551
5552 enablestring=
5553 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5554 echo "configure:5555: checking for --${enablestring:-enable}-xresources" >&5
5555 no_cache=0
5556 # Check whether --enable-xresources or --disable-xresources was given.
5557 if test "${enable_xresources+set}" = set; then
5558 enableval="$enable_xresources"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5562 else
5563 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5564 fi
5565
5566 else
5567
5568 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5576
5577 fi
5578
5579
5580 eval "$ac_cv_use_xresources"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_X_RESOURCES" = yes; then
5586 echo "$ac_t""yes" 1>&6
5587 else
5588 echo "$ac_t""no" 1>&6
5589 fi
5590
5591
5592
5593
5594 enablestring=
5595 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5596 echo "configure:5597: checking for --${enablestring:-enable}-clipboard" >&5
5597 no_cache=0
5598 # Check whether --enable-clipboard or --disable-clipboard was given.
5599 if test "${enable_clipboard+set}" = set; then
5600 enableval="$enable_clipboard"
5601
5602 if test "$enableval" = yes; then
5603 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5604 else
5605 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5606 fi
5607
5608 else
5609
5610 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5618
5619 fi
5620
5621
5622 eval "$ac_cv_use_clipboard"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_CLIPBOARD" = yes; then
5628 echo "$ac_t""yes" 1>&6
5629 else
5630 echo "$ac_t""no" 1>&6
5631 fi
5632
5633
5634 enablestring=
5635 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5636 echo "configure:5637: checking for --${enablestring:-enable}-dnd" >&5
5637 no_cache=0
5638 # Check whether --enable-dnd or --disable-dnd was given.
5639 if test "${enable_dnd+set}" = set; then
5640 enableval="$enable_dnd"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5644 else
5645 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5646 fi
5647
5648 else
5649
5650 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5658
5659 fi
5660
5661
5662 eval "$ac_cv_use_dnd"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5668 echo "$ac_t""yes" 1>&6
5669 else
5670 echo "$ac_t""no" 1>&6
5671 fi
5672
5673
5674 enablestring=
5675 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5676 echo "configure:5677: checking for --${enablestring:-enable}-metafile" >&5
5677 no_cache=0
5678 # Check whether --enable-metafile or --disable-metafile was given.
5679 if test "${enable_metafile+set}" = set; then
5680 enableval="$enable_metafile"
5681
5682 if test "$enableval" = yes; then
5683 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5684 else
5685 ac_cv_use_metafile='wxUSE_METAFILE=no'
5686 fi
5687
5688 else
5689
5690 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5698
5699 fi
5700
5701
5702 eval "$ac_cv_use_metafile"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_METAFILE" = yes; then
5708 echo "$ac_t""yes" 1>&6
5709 else
5710 echo "$ac_t""no" 1>&6
5711 fi
5712
5713
5714
5715
5716
5717 enablestring=
5718 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5719 echo "configure:5720: checking for --${enablestring:-enable}-controls" >&5
5720 no_cache=0
5721 # Check whether --enable-controls or --disable-controls was given.
5722 if test "${enable_controls+set}" = set; then
5723 enableval="$enable_controls"
5724
5725 if test "$enableval" = yes; then
5726 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5727 else
5728 ac_cv_use_controls='wxUSE_CONTROLS=no'
5729 fi
5730
5731 else
5732
5733 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5734 if test "x$LINE" != x ; then
5735 eval "DEFAULT_$LINE"
5736 else
5737 no_cache=1
5738 fi
5739
5740 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5741
5742 fi
5743
5744
5745 eval "$ac_cv_use_controls"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_CONTROLS" = yes; then
5751 echo "$ac_t""yes" 1>&6
5752 else
5753 echo "$ac_t""no" 1>&6
5754 fi
5755
5756
5757 if test "$wxUSE_CONTROLS" = "yes"; then
5758 DEFAULT_wxUSE_ACCEL=yes
5759 DEFAULT_wxUSE_BMPBUTTON=yes
5760 DEFAULT_wxUSE_BUTTON=yes
5761 DEFAULT_wxUSE_CALCTRL=no
5762 DEFAULT_wxUSE_CARET=yes
5763 DEFAULT_wxUSE_COMBOBOX=yes
5764 DEFAULT_wxUSE_CHECKBOX=yes
5765 DEFAULT_wxUSE_CHECKLISTBOX=yes
5766 DEFAULT_wxUSE_CHOICE=yes
5767 DEFAULT_wxUSE_GAUGE=yes
5768 DEFAULT_wxUSE_GRID=yes
5769 DEFAULT_wxUSE_IMAGLIST=yes
5770 DEFAULT_wxUSE_LISTBOX=yes
5771 DEFAULT_wxUSE_LISTCTRL=yes
5772 DEFAULT_wxUSE_NOTEBOOK=yes
5773 DEFAULT_wxUSE_RADIOBOX=yes
5774 DEFAULT_wxUSE_RADIOBTN=yes
5775 DEFAULT_wxUSE_SASH=yes
5776 DEFAULT_wxUSE_SCROLLBAR=yes
5777 DEFAULT_wxUSE_SLIDER=yes
5778 DEFAULT_wxUSE_SPINBTN=yes
5779 DEFAULT_wxUSE_SPINCTRL=yes
5780 DEFAULT_wxUSE_SPLITTER=yes
5781 DEFAULT_wxUSE_STATBMP=yes
5782 DEFAULT_wxUSE_STATBOX=yes
5783 DEFAULT_wxUSE_STATLINE=yes
5784 DEFAULT_wxUSE_STATUSBAR=yes
5785 DEFAULT_wxUSE_TAB_DIALOG=yes
5786 DEFAULT_wxUSE_TOGGLEBTN=yes
5787 DEFAULT_wxUSE_TOOLBAR=yes
5788 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5789 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5790 DEFAULT_wxUSE_TOOLTIPS=yes
5791 DEFAULT_wxUSE_TREECTRL=yes
5792 DEFAULT_wxUSE_POPUPWIN=yes
5793 DEFAULT_wxUSE_TIPWINDOW=yes
5794 elif test "$wxUSE_CONTROLS" = "no"; then
5795 DEFAULT_wxUSE_ACCEL=no
5796 DEFAULT_wxUSE_BMPBUTTON=no
5797 DEFAULT_wxUSE_BUTTON=no
5798 DEFAULT_wxUSE_CALCTRL=no
5799 DEFAULT_wxUSE_CARET=no
5800 DEFAULT_wxUSE_COMBOBOX=no
5801 DEFAULT_wxUSE_CHECKBOX=no
5802 DEFAULT_wxUSE_CHECKLISTBOX=no
5803 DEFAULT_wxUSE_CHOICE=no
5804 DEFAULT_wxUSE_GAUGE=no
5805 DEFAULT_wxUSE_GRID=no
5806 DEFAULT_wxUSE_IMAGLIST=no
5807 DEFAULT_wxUSE_LISTBOX=no
5808 DEFAULT_wxUSE_LISTCTRL=no
5809 DEFAULT_wxUSE_NOTEBOOK=no
5810 DEFAULT_wxUSE_RADIOBOX=no
5811 DEFAULT_wxUSE_RADIOBTN=no
5812 DEFAULT_wxUSE_SASH=no
5813 DEFAULT_wxUSE_SCROLLBAR=no
5814 DEFAULT_wxUSE_SLIDER=no
5815 DEFAULT_wxUSE_SPINBTN=no
5816 DEFAULT_wxUSE_SPINCTRL=no
5817 DEFAULT_wxUSE_SPLITTER=no
5818 DEFAULT_wxUSE_STATBMP=no
5819 DEFAULT_wxUSE_STATBOX=no
5820 DEFAULT_wxUSE_STATLINE=no
5821 DEFAULT_wxUSE_STATUSBAR=no
5822 DEFAULT_wxUSE_TAB_DIALOG=no
5823 DEFAULT_wxUSE_TOGGLEBTN=no
5824 DEFAULT_wxUSE_TOOLBAR=no
5825 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5826 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5827 DEFAULT_wxUSE_TOOLTIPS=no
5828 DEFAULT_wxUSE_TREECTRL=no
5829 DEFAULT_wxUSE_POPUPWIN=no
5830 DEFAULT_wxUSE_TIPWINDOW=no
5831 fi
5832
5833 ## FIXME: This is a blatant hack
5834 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5835 wxUSE_PRINTING_ARCHITECTURE=no
5836 wxUSE_HELP=no
5837 wxUSE_CLIPBOARD=no
5838 wxUSE_DRAG_AND_DROP=no
5839 wxUSE_DATAOBJ=no
5840 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5841 DEFAULT_wxUSE_GAUGE=no
5842 DEFAULT_wxUSE_SCROLLBAR=no
5843 DEFAULT_wxUSE_SLIDER=no
5844 DEFAULT_wxUSE_COMBOBOX=no
5845 DEFAULT_wxUSE_CALCTRL=no
5846 DEFAULT_wxUSE_SPINBTN=no
5847 DEFAULT_wxUSE_SPINCTRL=no
5848 DEFAULT_wxUSE_TOOLTIPS=no
5849 DEFAULT_wxUSE_COLOURDLG=no
5850 DEFAULT_wxUSE_DRAGIMAGE=no
5851 DEFAULT_wxUSE_FINDREPLDLG=no
5852 DEFAULT_wxUSE_FONTDLG=no
5853 DEFAULT_wxUSE_GRID=no
5854 DEFAULT_wxUSE_NUMBERDLG=no
5855 DEFAULT_wxUSE_PROGRESSDLG=no
5856 DEFAULT_wxUSE_SASH=no
5857 DEFAULT_wxUSE_SPLITTER=no
5858 DEFAULT_wxUSE_WIZARDDLG=no
5859 DEFAULT_wxUSE_SPLITTER=no
5860 DEFAULT_wxUSE_STARTUP_TIPS=no
5861 fi
5862
5863
5864 enablestring=
5865 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5866 echo "configure:5867: checking for --${enablestring:-enable}-accel" >&5
5867 no_cache=0
5868 # Check whether --enable-accel or --disable-accel was given.
5869 if test "${enable_accel+set}" = set; then
5870 enableval="$enable_accel"
5871
5872 if test "$enableval" = yes; then
5873 ac_cv_use_accel='wxUSE_ACCEL=yes'
5874 else
5875 ac_cv_use_accel='wxUSE_ACCEL=no'
5876 fi
5877
5878 else
5879
5880 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
5887 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5888
5889 fi
5890
5891
5892 eval "$ac_cv_use_accel"
5893 if test "$no_cache" != 1; then
5894 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5895 fi
5896
5897 if test "$wxUSE_ACCEL" = yes; then
5898 echo "$ac_t""yes" 1>&6
5899 else
5900 echo "$ac_t""no" 1>&6
5901 fi
5902
5903
5904 enablestring=
5905 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5906 echo "configure:5907: checking for --${enablestring:-enable}-button" >&5
5907 no_cache=0
5908 # Check whether --enable-button or --disable-button was given.
5909 if test "${enable_button+set}" = set; then
5910 enableval="$enable_button"
5911
5912 if test "$enableval" = yes; then
5913 ac_cv_use_button='wxUSE_BUTTON=yes'
5914 else
5915 ac_cv_use_button='wxUSE_BUTTON=no'
5916 fi
5917
5918 else
5919
5920 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5928
5929 fi
5930
5931
5932 eval "$ac_cv_use_button"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_BUTTON" = yes; then
5938 echo "$ac_t""yes" 1>&6
5939 else
5940 echo "$ac_t""no" 1>&6
5941 fi
5942
5943
5944 enablestring=
5945 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5946 echo "configure:5947: checking for --${enablestring:-enable}-bmpbutton" >&5
5947 no_cache=0
5948 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5949 if test "${enable_bmpbutton+set}" = set; then
5950 enableval="$enable_bmpbutton"
5951
5952 if test "$enableval" = yes; then
5953 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5954 else
5955 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5956 fi
5957
5958 else
5959
5960 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5961 if test "x$LINE" != x ; then
5962 eval "DEFAULT_$LINE"
5963 else
5964 no_cache=1
5965 fi
5966
5967 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5968
5969 fi
5970
5971
5972 eval "$ac_cv_use_bmpbutton"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_BMPBUTTON" = yes; then
5978 echo "$ac_t""yes" 1>&6
5979 else
5980 echo "$ac_t""no" 1>&6
5981 fi
5982
5983
5984 enablestring=
5985 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5986 echo "configure:5987: checking for --${enablestring:-enable}-calendar" >&5
5987 no_cache=0
5988 # Check whether --enable-calendar or --disable-calendar was given.
5989 if test "${enable_calendar+set}" = set; then
5990 enableval="$enable_calendar"
5991
5992 if test "$enableval" = yes; then
5993 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5994 else
5995 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5996 fi
5997
5998 else
5999
6000 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6001 if test "x$LINE" != x ; then
6002 eval "DEFAULT_$LINE"
6003 else
6004 no_cache=1
6005 fi
6006
6007 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6008
6009 fi
6010
6011
6012 eval "$ac_cv_use_calendar"
6013 if test "$no_cache" != 1; then
6014 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6015 fi
6016
6017 if test "$wxUSE_CALCTRL" = yes; then
6018 echo "$ac_t""yes" 1>&6
6019 else
6020 echo "$ac_t""no" 1>&6
6021 fi
6022
6023
6024 enablestring=
6025 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6026 echo "configure:6027: checking for --${enablestring:-enable}-caret" >&5
6027 no_cache=0
6028 # Check whether --enable-caret or --disable-caret was given.
6029 if test "${enable_caret+set}" = set; then
6030 enableval="$enable_caret"
6031
6032 if test "$enableval" = yes; then
6033 ac_cv_use_caret='wxUSE_CARET=yes'
6034 else
6035 ac_cv_use_caret='wxUSE_CARET=no'
6036 fi
6037
6038 else
6039
6040 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6041 if test "x$LINE" != x ; then
6042 eval "DEFAULT_$LINE"
6043 else
6044 no_cache=1
6045 fi
6046
6047 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6048
6049 fi
6050
6051
6052 eval "$ac_cv_use_caret"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_CARET" = yes; then
6058 echo "$ac_t""yes" 1>&6
6059 else
6060 echo "$ac_t""no" 1>&6
6061 fi
6062
6063
6064 enablestring=
6065 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6066 echo "configure:6067: checking for --${enablestring:-enable}-checkbox" >&5
6067 no_cache=0
6068 # Check whether --enable-checkbox or --disable-checkbox was given.
6069 if test "${enable_checkbox+set}" = set; then
6070 enableval="$enable_checkbox"
6071
6072 if test "$enableval" = yes; then
6073 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6074 else
6075 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6076 fi
6077
6078 else
6079
6080 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6088
6089 fi
6090
6091
6092 eval "$ac_cv_use_checkbox"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_CHECKBOX" = yes; then
6098 echo "$ac_t""yes" 1>&6
6099 else
6100 echo "$ac_t""no" 1>&6
6101 fi
6102
6103
6104 enablestring=
6105 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6106 echo "configure:6107: checking for --${enablestring:-enable}-checklst" >&5
6107 no_cache=0
6108 # Check whether --enable-checklst or --disable-checklst was given.
6109 if test "${enable_checklst+set}" = set; then
6110 enableval="$enable_checklst"
6111
6112 if test "$enableval" = yes; then
6113 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6114 else
6115 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6116 fi
6117
6118 else
6119
6120 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6128
6129 fi
6130
6131
6132 eval "$ac_cv_use_checklst"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_CHECKLST" = yes; then
6138 echo "$ac_t""yes" 1>&6
6139 else
6140 echo "$ac_t""no" 1>&6
6141 fi
6142
6143
6144 enablestring=
6145 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6146 echo "configure:6147: checking for --${enablestring:-enable}-choice" >&5
6147 no_cache=0
6148 # Check whether --enable-choice or --disable-choice was given.
6149 if test "${enable_choice+set}" = set; then
6150 enableval="$enable_choice"
6151
6152 if test "$enableval" = yes; then
6153 ac_cv_use_choice='wxUSE_CHOICE=yes'
6154 else
6155 ac_cv_use_choice='wxUSE_CHOICE=no'
6156 fi
6157
6158 else
6159
6160 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6161 if test "x$LINE" != x ; then
6162 eval "DEFAULT_$LINE"
6163 else
6164 no_cache=1
6165 fi
6166
6167 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6168
6169 fi
6170
6171
6172 eval "$ac_cv_use_choice"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_CHOICE" = yes; then
6178 echo "$ac_t""yes" 1>&6
6179 else
6180 echo "$ac_t""no" 1>&6
6181 fi
6182
6183
6184 enablestring=
6185 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6186 echo "configure:6187: checking for --${enablestring:-enable}-combobox" >&5
6187 no_cache=0
6188 # Check whether --enable-combobox or --disable-combobox was given.
6189 if test "${enable_combobox+set}" = set; then
6190 enableval="$enable_combobox"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6194 else
6195 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6196 fi
6197
6198 else
6199
6200 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6208
6209 fi
6210
6211
6212 eval "$ac_cv_use_combobox"
6213 if test "$no_cache" != 1; then
6214 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6215 fi
6216
6217 if test "$wxUSE_COMBOBOX" = yes; then
6218 echo "$ac_t""yes" 1>&6
6219 else
6220 echo "$ac_t""no" 1>&6
6221 fi
6222
6223
6224 enablestring=
6225 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6226 echo "configure:6227: checking for --${enablestring:-enable}-display" >&5
6227 no_cache=0
6228 # Check whether --enable-display or --disable-display was given.
6229 if test "${enable_display+set}" = set; then
6230 enableval="$enable_display"
6231
6232 if test "$enableval" = yes; then
6233 ac_cv_use_display='wxUSE_DISPLAY=yes'
6234 else
6235 ac_cv_use_display='wxUSE_DISPLAY=no'
6236 fi
6237
6238 else
6239
6240 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6248
6249 fi
6250
6251
6252 eval "$ac_cv_use_display"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_DISPLAY" = yes; then
6258 echo "$ac_t""yes" 1>&6
6259 else
6260 echo "$ac_t""no" 1>&6
6261 fi
6262
6263
6264 enablestring=
6265 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6266 echo "configure:6267: checking for --${enablestring:-enable}-gauge" >&5
6267 no_cache=0
6268 # Check whether --enable-gauge or --disable-gauge was given.
6269 if test "${enable_gauge+set}" = set; then
6270 enableval="$enable_gauge"
6271
6272 if test "$enableval" = yes; then
6273 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6274 else
6275 ac_cv_use_gauge='wxUSE_GAUGE=no'
6276 fi
6277
6278 else
6279
6280 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6288
6289 fi
6290
6291
6292 eval "$ac_cv_use_gauge"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_GAUGE" = yes; then
6298 echo "$ac_t""yes" 1>&6
6299 else
6300 echo "$ac_t""no" 1>&6
6301 fi
6302
6303
6304 enablestring=
6305 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6306 echo "configure:6307: checking for --${enablestring:-enable}-grid" >&5
6307 no_cache=0
6308 # Check whether --enable-grid or --disable-grid was given.
6309 if test "${enable_grid+set}" = set; then
6310 enableval="$enable_grid"
6311
6312 if test "$enableval" = yes; then
6313 ac_cv_use_grid='wxUSE_GRID=yes'
6314 else
6315 ac_cv_use_grid='wxUSE_GRID=no'
6316 fi
6317
6318 else
6319
6320 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6321 if test "x$LINE" != x ; then
6322 eval "DEFAULT_$LINE"
6323 else
6324 no_cache=1
6325 fi
6326
6327 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6328
6329 fi
6330
6331
6332 eval "$ac_cv_use_grid"
6333 if test "$no_cache" != 1; then
6334 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6335 fi
6336
6337 if test "$wxUSE_GRID" = yes; then
6338 echo "$ac_t""yes" 1>&6
6339 else
6340 echo "$ac_t""no" 1>&6
6341 fi
6342
6343
6344 enablestring=
6345 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6346 echo "configure:6347: checking for --${enablestring:-enable}-imaglist" >&5
6347 no_cache=0
6348 # Check whether --enable-imaglist or --disable-imaglist was given.
6349 if test "${enable_imaglist+set}" = set; then
6350 enableval="$enable_imaglist"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6354 else
6355 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6356 fi
6357
6358 else
6359
6360 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6368
6369 fi
6370
6371
6372 eval "$ac_cv_use_imaglist"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_IMAGLIST" = yes; then
6378 echo "$ac_t""yes" 1>&6
6379 else
6380 echo "$ac_t""no" 1>&6
6381 fi
6382
6383
6384 enablestring=
6385 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6386 echo "configure:6387: checking for --${enablestring:-enable}-listbox" >&5
6387 no_cache=0
6388 # Check whether --enable-listbox or --disable-listbox was given.
6389 if test "${enable_listbox+set}" = set; then
6390 enableval="$enable_listbox"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6394 else
6395 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6396 fi
6397
6398 else
6399
6400 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6408
6409 fi
6410
6411
6412 eval "$ac_cv_use_listbox"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_LISTBOX" = yes; then
6418 echo "$ac_t""yes" 1>&6
6419 else
6420 echo "$ac_t""no" 1>&6
6421 fi
6422
6423
6424 enablestring=
6425 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6426 echo "configure:6427: checking for --${enablestring:-enable}-listctrl" >&5
6427 no_cache=0
6428 # Check whether --enable-listctrl or --disable-listctrl was given.
6429 if test "${enable_listctrl+set}" = set; then
6430 enableval="$enable_listctrl"
6431
6432 if test "$enableval" = yes; then
6433 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6434 else
6435 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6436 fi
6437
6438 else
6439
6440 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6441 if test "x$LINE" != x ; then
6442 eval "DEFAULT_$LINE"
6443 else
6444 no_cache=1
6445 fi
6446
6447 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6448
6449 fi
6450
6451
6452 eval "$ac_cv_use_listctrl"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_LISTCTRL" = yes; then
6458 echo "$ac_t""yes" 1>&6
6459 else
6460 echo "$ac_t""no" 1>&6
6461 fi
6462
6463
6464 enablestring=
6465 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6466 echo "configure:6467: checking for --${enablestring:-enable}-notebook" >&5
6467 no_cache=0
6468 # Check whether --enable-notebook or --disable-notebook was given.
6469 if test "${enable_notebook+set}" = set; then
6470 enableval="$enable_notebook"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6474 else
6475 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6476 fi
6477
6478 else
6479
6480 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6488
6489 fi
6490
6491
6492 eval "$ac_cv_use_notebook"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_NOTEBOOK" = yes; then
6498 echo "$ac_t""yes" 1>&6
6499 else
6500 echo "$ac_t""no" 1>&6
6501 fi
6502
6503
6504 enablestring=
6505 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6506 echo "configure:6507: checking for --${enablestring:-enable}-radiobox" >&5
6507 no_cache=0
6508 # Check whether --enable-radiobox or --disable-radiobox was given.
6509 if test "${enable_radiobox+set}" = set; then
6510 enableval="$enable_radiobox"
6511
6512 if test "$enableval" = yes; then
6513 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6514 else
6515 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6516 fi
6517
6518 else
6519
6520 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6521 if test "x$LINE" != x ; then
6522 eval "DEFAULT_$LINE"
6523 else
6524 no_cache=1
6525 fi
6526
6527 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6528
6529 fi
6530
6531
6532 eval "$ac_cv_use_radiobox"
6533 if test "$no_cache" != 1; then
6534 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6535 fi
6536
6537 if test "$wxUSE_RADIOBOX" = yes; then
6538 echo "$ac_t""yes" 1>&6
6539 else
6540 echo "$ac_t""no" 1>&6
6541 fi
6542
6543
6544 enablestring=
6545 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6546 echo "configure:6547: checking for --${enablestring:-enable}-radiobtn" >&5
6547 no_cache=0
6548 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6549 if test "${enable_radiobtn+set}" = set; then
6550 enableval="$enable_radiobtn"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6554 else
6555 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6556 fi
6557
6558 else
6559
6560 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6568
6569 fi
6570
6571
6572 eval "$ac_cv_use_radiobtn"
6573 if test "$no_cache" != 1; then
6574 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6575 fi
6576
6577 if test "$wxUSE_RADIOBTN" = yes; then
6578 echo "$ac_t""yes" 1>&6
6579 else
6580 echo "$ac_t""no" 1>&6
6581 fi
6582
6583
6584 enablestring=
6585 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6586 echo "configure:6587: checking for --${enablestring:-enable}-sash" >&5
6587 no_cache=0
6588 # Check whether --enable-sash or --disable-sash was given.
6589 if test "${enable_sash+set}" = set; then
6590 enableval="$enable_sash"
6591
6592 if test "$enableval" = yes; then
6593 ac_cv_use_sash='wxUSE_SASH=yes'
6594 else
6595 ac_cv_use_sash='wxUSE_SASH=no'
6596 fi
6597
6598 else
6599
6600 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6601 if test "x$LINE" != x ; then
6602 eval "DEFAULT_$LINE"
6603 else
6604 no_cache=1
6605 fi
6606
6607 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6608
6609 fi
6610
6611
6612 eval "$ac_cv_use_sash"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_SASH" = yes; then
6618 echo "$ac_t""yes" 1>&6
6619 else
6620 echo "$ac_t""no" 1>&6
6621 fi
6622
6623
6624 enablestring=
6625 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6626 echo "configure:6627: checking for --${enablestring:-enable}-scrollbar" >&5
6627 no_cache=0
6628 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6629 if test "${enable_scrollbar+set}" = set; then
6630 enableval="$enable_scrollbar"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6634 else
6635 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6636 fi
6637
6638 else
6639
6640 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6648
6649 fi
6650
6651
6652 eval "$ac_cv_use_scrollbar"
6653 if test "$no_cache" != 1; then
6654 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6655 fi
6656
6657 if test "$wxUSE_SCROLLBAR" = yes; then
6658 echo "$ac_t""yes" 1>&6
6659 else
6660 echo "$ac_t""no" 1>&6
6661 fi
6662
6663
6664 enablestring=
6665 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6666 echo "configure:6667: checking for --${enablestring:-enable}-slider" >&5
6667 no_cache=0
6668 # Check whether --enable-slider or --disable-slider was given.
6669 if test "${enable_slider+set}" = set; then
6670 enableval="$enable_slider"
6671
6672 if test "$enableval" = yes; then
6673 ac_cv_use_slider='wxUSE_SLIDER=yes'
6674 else
6675 ac_cv_use_slider='wxUSE_SLIDER=no'
6676 fi
6677
6678 else
6679
6680 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6688
6689 fi
6690
6691
6692 eval "$ac_cv_use_slider"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_SLIDER" = yes; then
6698 echo "$ac_t""yes" 1>&6
6699 else
6700 echo "$ac_t""no" 1>&6
6701 fi
6702
6703
6704 enablestring=
6705 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6706 echo "configure:6707: checking for --${enablestring:-enable}-spinbtn" >&5
6707 no_cache=0
6708 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6709 if test "${enable_spinbtn+set}" = set; then
6710 enableval="$enable_spinbtn"
6711
6712 if test "$enableval" = yes; then
6713 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6714 else
6715 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6716 fi
6717
6718 else
6719
6720 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
6727 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6728
6729 fi
6730
6731
6732 eval "$ac_cv_use_spinbtn"
6733 if test "$no_cache" != 1; then
6734 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6735 fi
6736
6737 if test "$wxUSE_SPINBTN" = yes; then
6738 echo "$ac_t""yes" 1>&6
6739 else
6740 echo "$ac_t""no" 1>&6
6741 fi
6742
6743
6744 enablestring=
6745 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6746 echo "configure:6747: checking for --${enablestring:-enable}-spinctrl" >&5
6747 no_cache=0
6748 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6749 if test "${enable_spinctrl+set}" = set; then
6750 enableval="$enable_spinctrl"
6751
6752 if test "$enableval" = yes; then
6753 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6754 else
6755 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6756 fi
6757
6758 else
6759
6760 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6761 if test "x$LINE" != x ; then
6762 eval "DEFAULT_$LINE"
6763 else
6764 no_cache=1
6765 fi
6766
6767 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6768
6769 fi
6770
6771
6772 eval "$ac_cv_use_spinctrl"
6773 if test "$no_cache" != 1; then
6774 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6775 fi
6776
6777 if test "$wxUSE_SPINCTRL" = yes; then
6778 echo "$ac_t""yes" 1>&6
6779 else
6780 echo "$ac_t""no" 1>&6
6781 fi
6782
6783
6784 enablestring=
6785 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6786 echo "configure:6787: checking for --${enablestring:-enable}-splitter" >&5
6787 no_cache=0
6788 # Check whether --enable-splitter or --disable-splitter was given.
6789 if test "${enable_splitter+set}" = set; then
6790 enableval="$enable_splitter"
6791
6792 if test "$enableval" = yes; then
6793 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6794 else
6795 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6796 fi
6797
6798 else
6799
6800 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6801 if test "x$LINE" != x ; then
6802 eval "DEFAULT_$LINE"
6803 else
6804 no_cache=1
6805 fi
6806
6807 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6808
6809 fi
6810
6811
6812 eval "$ac_cv_use_splitter"
6813 if test "$no_cache" != 1; then
6814 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6815 fi
6816
6817 if test "$wxUSE_SPLITTER" = yes; then
6818 echo "$ac_t""yes" 1>&6
6819 else
6820 echo "$ac_t""no" 1>&6
6821 fi
6822
6823
6824 enablestring=
6825 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6826 echo "configure:6827: checking for --${enablestring:-enable}-statbmp" >&5
6827 no_cache=0
6828 # Check whether --enable-statbmp or --disable-statbmp was given.
6829 if test "${enable_statbmp+set}" = set; then
6830 enableval="$enable_statbmp"
6831
6832 if test "$enableval" = yes; then
6833 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6834 else
6835 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6836 fi
6837
6838 else
6839
6840 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6841 if test "x$LINE" != x ; then
6842 eval "DEFAULT_$LINE"
6843 else
6844 no_cache=1
6845 fi
6846
6847 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6848
6849 fi
6850
6851
6852 eval "$ac_cv_use_statbmp"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_STATBMP" = yes; then
6858 echo "$ac_t""yes" 1>&6
6859 else
6860 echo "$ac_t""no" 1>&6
6861 fi
6862
6863
6864 enablestring=
6865 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6866 echo "configure:6867: checking for --${enablestring:-enable}-statbox" >&5
6867 no_cache=0
6868 # Check whether --enable-statbox or --disable-statbox was given.
6869 if test "${enable_statbox+set}" = set; then
6870 enableval="$enable_statbox"
6871
6872 if test "$enableval" = yes; then
6873 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6874 else
6875 ac_cv_use_statbox='wxUSE_STATBOX=no'
6876 fi
6877
6878 else
6879
6880 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6881 if test "x$LINE" != x ; then
6882 eval "DEFAULT_$LINE"
6883 else
6884 no_cache=1
6885 fi
6886
6887 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6888
6889 fi
6890
6891
6892 eval "$ac_cv_use_statbox"
6893 if test "$no_cache" != 1; then
6894 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6895 fi
6896
6897 if test "$wxUSE_STATBOX" = yes; then
6898 echo "$ac_t""yes" 1>&6
6899 else
6900 echo "$ac_t""no" 1>&6
6901 fi
6902
6903
6904 enablestring=
6905 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6906 echo "configure:6907: checking for --${enablestring:-enable}-statline" >&5
6907 no_cache=0
6908 # Check whether --enable-statline or --disable-statline was given.
6909 if test "${enable_statline+set}" = set; then
6910 enableval="$enable_statline"
6911
6912 if test "$enableval" = yes; then
6913 ac_cv_use_statline='wxUSE_STATLINE=yes'
6914 else
6915 ac_cv_use_statline='wxUSE_STATLINE=no'
6916 fi
6917
6918 else
6919
6920 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6921 if test "x$LINE" != x ; then
6922 eval "DEFAULT_$LINE"
6923 else
6924 no_cache=1
6925 fi
6926
6927 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6928
6929 fi
6930
6931
6932 eval "$ac_cv_use_statline"
6933 if test "$no_cache" != 1; then
6934 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6935 fi
6936
6937 if test "$wxUSE_STATLINE" = yes; then
6938 echo "$ac_t""yes" 1>&6
6939 else
6940 echo "$ac_t""no" 1>&6
6941 fi
6942
6943
6944 enablestring=
6945 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6946 echo "configure:6947: checking for --${enablestring:-enable}-stattext" >&5
6947 no_cache=0
6948 # Check whether --enable-stattext or --disable-stattext was given.
6949 if test "${enable_stattext+set}" = set; then
6950 enableval="$enable_stattext"
6951
6952 if test "$enableval" = yes; then
6953 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6954 else
6955 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6956 fi
6957
6958 else
6959
6960 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6961 if test "x$LINE" != x ; then
6962 eval "DEFAULT_$LINE"
6963 else
6964 no_cache=1
6965 fi
6966
6967 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6968
6969 fi
6970
6971
6972 eval "$ac_cv_use_stattext"
6973 if test "$no_cache" != 1; then
6974 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6975 fi
6976
6977 if test "$wxUSE_STATTEXT" = yes; then
6978 echo "$ac_t""yes" 1>&6
6979 else
6980 echo "$ac_t""no" 1>&6
6981 fi
6982
6983
6984 enablestring=
6985 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6986 echo "configure:6987: checking for --${enablestring:-enable}-statusbar" >&5
6987 no_cache=0
6988 # Check whether --enable-statusbar or --disable-statusbar was given.
6989 if test "${enable_statusbar+set}" = set; then
6990 enableval="$enable_statusbar"
6991
6992 if test "$enableval" = yes; then
6993 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6994 else
6995 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6996 fi
6997
6998 else
6999
7000 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7008
7009 fi
7010
7011
7012 eval "$ac_cv_use_statusbar"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_STATUSBAR" = yes; then
7018 echo "$ac_t""yes" 1>&6
7019 else
7020 echo "$ac_t""no" 1>&6
7021 fi
7022
7023
7024 enablestring=
7025 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7026 echo "configure:7027: checking for --${enablestring:-enable}-tabdialog" >&5
7027 no_cache=0
7028 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7029 if test "${enable_tabdialog+set}" = set; then
7030 enableval="$enable_tabdialog"
7031
7032 if test "$enableval" = yes; then
7033 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7034 else
7035 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7036 fi
7037
7038 else
7039
7040 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7041 if test "x$LINE" != x ; then
7042 eval "DEFAULT_$LINE"
7043 else
7044 no_cache=1
7045 fi
7046
7047 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7048
7049 fi
7050
7051
7052 eval "$ac_cv_use_tabdialog"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_TABDIALOG" = yes; then
7058 echo "$ac_t""yes" 1>&6
7059 else
7060 echo "$ac_t""no" 1>&6
7061 fi
7062
7063
7064 enablestring=
7065 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7066 echo "configure:7067: checking for --${enablestring:-enable}-textctrl" >&5
7067 no_cache=0
7068 # Check whether --enable-textctrl or --disable-textctrl was given.
7069 if test "${enable_textctrl+set}" = set; then
7070 enableval="$enable_textctrl"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7074 else
7075 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7076 fi
7077
7078 else
7079
7080 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7088
7089 fi
7090
7091
7092 eval "$ac_cv_use_textctrl"
7093 if test "$no_cache" != 1; then
7094 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7095 fi
7096
7097 if test "$wxUSE_TEXTCTRL" = yes; then
7098 echo "$ac_t""yes" 1>&6
7099 else
7100 echo "$ac_t""no" 1>&6
7101 fi
7102
7103
7104 enablestring=
7105 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7106 echo "configure:7107: checking for --${enablestring:-enable}-togglebtn" >&5
7107 no_cache=0
7108 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7109 if test "${enable_togglebtn+set}" = set; then
7110 enableval="$enable_togglebtn"
7111
7112 if test "$enableval" = yes; then
7113 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7114 else
7115 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7116 fi
7117
7118 else
7119
7120 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7121 if test "x$LINE" != x ; then
7122 eval "DEFAULT_$LINE"
7123 else
7124 no_cache=1
7125 fi
7126
7127 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7128
7129 fi
7130
7131
7132 eval "$ac_cv_use_togglebtn"
7133 if test "$no_cache" != 1; then
7134 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7135 fi
7136
7137 if test "$wxUSE_TOGGLEBTN" = yes; then
7138 echo "$ac_t""yes" 1>&6
7139 else
7140 echo "$ac_t""no" 1>&6
7141 fi
7142
7143
7144 enablestring=
7145 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7146 echo "configure:7147: checking for --${enablestring:-enable}-toolbar" >&5
7147 no_cache=0
7148 # Check whether --enable-toolbar or --disable-toolbar was given.
7149 if test "${enable_toolbar+set}" = set; then
7150 enableval="$enable_toolbar"
7151
7152 if test "$enableval" = yes; then
7153 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7154 else
7155 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7156 fi
7157
7158 else
7159
7160 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7161 if test "x$LINE" != x ; then
7162 eval "DEFAULT_$LINE"
7163 else
7164 no_cache=1
7165 fi
7166
7167 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7168
7169 fi
7170
7171
7172 eval "$ac_cv_use_toolbar"
7173 if test "$no_cache" != 1; then
7174 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7175 fi
7176
7177 if test "$wxUSE_TOOLBAR" = yes; then
7178 echo "$ac_t""yes" 1>&6
7179 else
7180 echo "$ac_t""no" 1>&6
7181 fi
7182
7183
7184 enablestring=
7185 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7186 echo "configure:7187: checking for --${enablestring:-enable}-tbarnative" >&5
7187 no_cache=0
7188 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7189 if test "${enable_tbarnative+set}" = set; then
7190 enableval="$enable_tbarnative"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7194 else
7195 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7196 fi
7197
7198 else
7199
7200 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7208
7209 fi
7210
7211
7212 eval "$ac_cv_use_tbarnative"
7213 if test "$no_cache" != 1; then
7214 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7215 fi
7216
7217 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7218 echo "$ac_t""yes" 1>&6
7219 else
7220 echo "$ac_t""no" 1>&6
7221 fi
7222
7223
7224 enablestring=
7225 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7226 echo "configure:7227: checking for --${enablestring:-enable}-tbarsmpl" >&5
7227 no_cache=0
7228 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7229 if test "${enable_tbarsmpl+set}" = set; then
7230 enableval="$enable_tbarsmpl"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7234 else
7235 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7236 fi
7237
7238 else
7239
7240 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7248
7249 fi
7250
7251
7252 eval "$ac_cv_use_tbarsmpl"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7258 echo "$ac_t""yes" 1>&6
7259 else
7260 echo "$ac_t""no" 1>&6
7261 fi
7262
7263
7264 enablestring=
7265 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7266 echo "configure:7267: checking for --${enablestring:-enable}-treectrl" >&5
7267 no_cache=0
7268 # Check whether --enable-treectrl or --disable-treectrl was given.
7269 if test "${enable_treectrl+set}" = set; then
7270 enableval="$enable_treectrl"
7271
7272 if test "$enableval" = yes; then
7273 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7274 else
7275 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7276 fi
7277
7278 else
7279
7280 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7281 if test "x$LINE" != x ; then
7282 eval "DEFAULT_$LINE"
7283 else
7284 no_cache=1
7285 fi
7286
7287 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7288
7289 fi
7290
7291
7292 eval "$ac_cv_use_treectrl"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_TREECTRL" = yes; then
7298 echo "$ac_t""yes" 1>&6
7299 else
7300 echo "$ac_t""no" 1>&6
7301 fi
7302
7303
7304 enablestring=
7305 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7306 echo "configure:7307: checking for --${enablestring:-enable}-tipwindow" >&5
7307 no_cache=0
7308 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7309 if test "${enable_tipwindow+set}" = set; then
7310 enableval="$enable_tipwindow"
7311
7312 if test "$enableval" = yes; then
7313 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7314 else
7315 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7316 fi
7317
7318 else
7319
7320 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7321 if test "x$LINE" != x ; then
7322 eval "DEFAULT_$LINE"
7323 else
7324 no_cache=1
7325 fi
7326
7327 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7328
7329 fi
7330
7331
7332 eval "$ac_cv_use_tipwindow"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_TIPWINDOW" = yes; then
7338 echo "$ac_t""yes" 1>&6
7339 else
7340 echo "$ac_t""no" 1>&6
7341 fi
7342
7343
7344 enablestring=
7345 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7346 echo "configure:7347: checking for --${enablestring:-enable}-popupwin" >&5
7347 no_cache=0
7348 # Check whether --enable-popupwin or --disable-popupwin was given.
7349 if test "${enable_popupwin+set}" = set; then
7350 enableval="$enable_popupwin"
7351
7352 if test "$enableval" = yes; then
7353 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7354 else
7355 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7356 fi
7357
7358 else
7359
7360 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7361 if test "x$LINE" != x ; then
7362 eval "DEFAULT_$LINE"
7363 else
7364 no_cache=1
7365 fi
7366
7367 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7368
7369 fi
7370
7371
7372 eval "$ac_cv_use_popupwin"
7373 if test "$no_cache" != 1; then
7374 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7375 fi
7376
7377 if test "$wxUSE_POPUPWIN" = yes; then
7378 echo "$ac_t""yes" 1>&6
7379 else
7380 echo "$ac_t""no" 1>&6
7381 fi
7382
7383
7384
7385
7386 enablestring=
7387 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7388 echo "configure:7389: checking for --${enablestring:-enable}-commondlg" >&5
7389 no_cache=0
7390 # Check whether --enable-commondlg or --disable-commondlg was given.
7391 if test "${enable_commondlg+set}" = set; then
7392 enableval="$enable_commondlg"
7393
7394 if test "$enableval" = yes; then
7395 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7396 else
7397 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7398 fi
7399
7400 else
7401
7402 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7403 if test "x$LINE" != x ; then
7404 eval "DEFAULT_$LINE"
7405 else
7406 no_cache=1
7407 fi
7408
7409 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7410
7411 fi
7412
7413
7414 eval "$ac_cv_use_commondlg"
7415 if test "$no_cache" != 1; then
7416 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7417 fi
7418
7419 if test "$wxUSE_COMMONDLGS" = yes; then
7420 echo "$ac_t""yes" 1>&6
7421 else
7422 echo "$ac_t""no" 1>&6
7423 fi
7424
7425
7426 enablestring=
7427 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7428 echo "configure:7429: checking for --${enablestring:-enable}-choicedlg" >&5
7429 no_cache=0
7430 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7431 if test "${enable_choicedlg+set}" = set; then
7432 enableval="$enable_choicedlg"
7433
7434 if test "$enableval" = yes; then
7435 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7436 else
7437 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7438 fi
7439
7440 else
7441
7442 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7443 if test "x$LINE" != x ; then
7444 eval "DEFAULT_$LINE"
7445 else
7446 no_cache=1
7447 fi
7448
7449 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7450
7451 fi
7452
7453
7454 eval "$ac_cv_use_choicedlg"
7455 if test "$no_cache" != 1; then
7456 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7457 fi
7458
7459 if test "$wxUSE_CHOICEDLG" = yes; then
7460 echo "$ac_t""yes" 1>&6
7461 else
7462 echo "$ac_t""no" 1>&6
7463 fi
7464
7465
7466 enablestring=
7467 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7468 echo "configure:7469: checking for --${enablestring:-enable}-coldlg" >&5
7469 no_cache=0
7470 # Check whether --enable-coldlg or --disable-coldlg was given.
7471 if test "${enable_coldlg+set}" = set; then
7472 enableval="$enable_coldlg"
7473
7474 if test "$enableval" = yes; then
7475 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7476 else
7477 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7478 fi
7479
7480 else
7481
7482 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7483 if test "x$LINE" != x ; then
7484 eval "DEFAULT_$LINE"
7485 else
7486 no_cache=1
7487 fi
7488
7489 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7490
7491 fi
7492
7493
7494 eval "$ac_cv_use_coldlg"
7495 if test "$no_cache" != 1; then
7496 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7497 fi
7498
7499 if test "$wxUSE_COLOURDLG" = yes; then
7500 echo "$ac_t""yes" 1>&6
7501 else
7502 echo "$ac_t""no" 1>&6
7503 fi
7504
7505
7506 enablestring=
7507 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7508 echo "configure:7509: checking for --${enablestring:-enable}-filedlg" >&5
7509 no_cache=0
7510 # Check whether --enable-filedlg or --disable-filedlg was given.
7511 if test "${enable_filedlg+set}" = set; then
7512 enableval="$enable_filedlg"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7516 else
7517 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7518 fi
7519
7520 else
7521
7522 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7530
7531 fi
7532
7533
7534 eval "$ac_cv_use_filedlg"
7535 if test "$no_cache" != 1; then
7536 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7537 fi
7538
7539 if test "$wxUSE_FILEDLG" = yes; then
7540 echo "$ac_t""yes" 1>&6
7541 else
7542 echo "$ac_t""no" 1>&6
7543 fi
7544
7545
7546 enablestring=
7547 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7548 echo "configure:7549: checking for --${enablestring:-enable}-finddlg" >&5
7549 no_cache=0
7550 # Check whether --enable-finddlg or --disable-finddlg was given.
7551 if test "${enable_finddlg+set}" = set; then
7552 enableval="$enable_finddlg"
7553
7554 if test "$enableval" = yes; then
7555 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7556 else
7557 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7558 fi
7559
7560 else
7561
7562 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7563 if test "x$LINE" != x ; then
7564 eval "DEFAULT_$LINE"
7565 else
7566 no_cache=1
7567 fi
7568
7569 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7570
7571 fi
7572
7573
7574 eval "$ac_cv_use_finddlg"
7575 if test "$no_cache" != 1; then
7576 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7577 fi
7578
7579 if test "$wxUSE_FINDREPLDLG" = yes; then
7580 echo "$ac_t""yes" 1>&6
7581 else
7582 echo "$ac_t""no" 1>&6
7583 fi
7584
7585
7586 enablestring=
7587 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7588 echo "configure:7589: checking for --${enablestring:-enable}-fontdlg" >&5
7589 no_cache=0
7590 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7591 if test "${enable_fontdlg+set}" = set; then
7592 enableval="$enable_fontdlg"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7596 else
7597 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7598 fi
7599
7600 else
7601
7602 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7610
7611 fi
7612
7613
7614 eval "$ac_cv_use_fontdlg"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_FONTDLG" = yes; then
7620 echo "$ac_t""yes" 1>&6
7621 else
7622 echo "$ac_t""no" 1>&6
7623 fi
7624
7625
7626 enablestring=
7627 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7628 echo "configure:7629: checking for --${enablestring:-enable}-dirdlg" >&5
7629 no_cache=0
7630 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7631 if test "${enable_dirdlg+set}" = set; then
7632 enableval="$enable_dirdlg"
7633
7634 if test "$enableval" = yes; then
7635 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7636 else
7637 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7638 fi
7639
7640 else
7641
7642 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7650
7651 fi
7652
7653
7654 eval "$ac_cv_use_dirdlg"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_DIRDLG" = yes; then
7660 echo "$ac_t""yes" 1>&6
7661 else
7662 echo "$ac_t""no" 1>&6
7663 fi
7664
7665
7666 enablestring=
7667 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7668 echo "configure:7669: checking for --${enablestring:-enable}-msgdlg" >&5
7669 no_cache=0
7670 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7671 if test "${enable_msgdlg+set}" = set; then
7672 enableval="$enable_msgdlg"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7676 else
7677 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7678 fi
7679
7680 else
7681
7682 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7690
7691 fi
7692
7693
7694 eval "$ac_cv_use_msgdlg"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_MSGDLG" = yes; then
7700 echo "$ac_t""yes" 1>&6
7701 else
7702 echo "$ac_t""no" 1>&6
7703 fi
7704
7705
7706 enablestring=
7707 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7708 echo "configure:7709: checking for --${enablestring:-enable}-numberdlg" >&5
7709 no_cache=0
7710 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7711 if test "${enable_numberdlg+set}" = set; then
7712 enableval="$enable_numberdlg"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7716 else
7717 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7718 fi
7719
7720 else
7721
7722 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7730
7731 fi
7732
7733
7734 eval "$ac_cv_use_numberdlg"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_NUMBERDLG" = yes; then
7740 echo "$ac_t""yes" 1>&6
7741 else
7742 echo "$ac_t""no" 1>&6
7743 fi
7744
7745
7746 enablestring=
7747 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7748 echo "configure:7749: checking for --${enablestring:-enable}-splash" >&5
7749 no_cache=0
7750 # Check whether --enable-splash or --disable-splash was given.
7751 if test "${enable_splash+set}" = set; then
7752 enableval="$enable_splash"
7753
7754 if test "$enableval" = yes; then
7755 ac_cv_use_splash='wxUSE_SPLASH=yes'
7756 else
7757 ac_cv_use_splash='wxUSE_SPLASH=no'
7758 fi
7759
7760 else
7761
7762 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7763 if test "x$LINE" != x ; then
7764 eval "DEFAULT_$LINE"
7765 else
7766 no_cache=1
7767 fi
7768
7769 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7770
7771 fi
7772
7773
7774 eval "$ac_cv_use_splash"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_SPLASH" = yes; then
7780 echo "$ac_t""yes" 1>&6
7781 else
7782 echo "$ac_t""no" 1>&6
7783 fi
7784
7785
7786 enablestring=
7787 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7788 echo "configure:7789: checking for --${enablestring:-enable}-textdlg" >&5
7789 no_cache=0
7790 # Check whether --enable-textdlg or --disable-textdlg was given.
7791 if test "${enable_textdlg+set}" = set; then
7792 enableval="$enable_textdlg"
7793
7794 if test "$enableval" = yes; then
7795 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7796 else
7797 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7798 fi
7799
7800 else
7801
7802 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7810
7811 fi
7812
7813
7814 eval "$ac_cv_use_textdlg"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_TEXTDLG" = yes; then
7820 echo "$ac_t""yes" 1>&6
7821 else
7822 echo "$ac_t""no" 1>&6
7823 fi
7824
7825
7826 enablestring=
7827 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7828 echo "configure:7829: checking for --${enablestring:-enable}-tipdlg" >&5
7829 no_cache=0
7830 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7831 if test "${enable_tipdlg+set}" = set; then
7832 enableval="$enable_tipdlg"
7833
7834 if test "$enableval" = yes; then
7835 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7836 else
7837 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7838 fi
7839
7840 else
7841
7842 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7850
7851 fi
7852
7853
7854 eval "$ac_cv_use_tipdlg"
7855 if test "$no_cache" != 1; then
7856 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7857 fi
7858
7859 if test "$wxUSE_STARTUP_TIPS" = yes; then
7860 echo "$ac_t""yes" 1>&6
7861 else
7862 echo "$ac_t""no" 1>&6
7863 fi
7864
7865
7866 enablestring=
7867 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7868 echo "configure:7869: checking for --${enablestring:-enable}-progressdlg" >&5
7869 no_cache=0
7870 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7871 if test "${enable_progressdlg+set}" = set; then
7872 enableval="$enable_progressdlg"
7873
7874 if test "$enableval" = yes; then
7875 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7876 else
7877 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7878 fi
7879
7880 else
7881
7882 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7890
7891 fi
7892
7893
7894 eval "$ac_cv_use_progressdlg"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_PROGRESSDLG" = yes; then
7900 echo "$ac_t""yes" 1>&6
7901 else
7902 echo "$ac_t""no" 1>&6
7903 fi
7904
7905
7906 enablestring=
7907 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7908 echo "configure:7909: checking for --${enablestring:-enable}-wizarddlg" >&5
7909 no_cache=0
7910 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7911 if test "${enable_wizarddlg+set}" = set; then
7912 enableval="$enable_wizarddlg"
7913
7914 if test "$enableval" = yes; then
7915 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7916 else
7917 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7918 fi
7919
7920 else
7921
7922 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7923 if test "x$LINE" != x ; then
7924 eval "DEFAULT_$LINE"
7925 else
7926 no_cache=1
7927 fi
7928
7929 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7930
7931 fi
7932
7933
7934 eval "$ac_cv_use_wizarddlg"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_WIZARDDLG" = yes; then
7940 echo "$ac_t""yes" 1>&6
7941 else
7942 echo "$ac_t""no" 1>&6
7943 fi
7944
7945
7946
7947
7948 enablestring=
7949 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7950 echo "configure:7951: checking for --${enablestring:-enable}-menus" >&5
7951 no_cache=0
7952 # Check whether --enable-menus or --disable-menus was given.
7953 if test "${enable_menus+set}" = set; then
7954 enableval="$enable_menus"
7955
7956 if test "$enableval" = yes; then
7957 ac_cv_use_menus='wxUSE_MENUS=yes'
7958 else
7959 ac_cv_use_menus='wxUSE_MENUS=no'
7960 fi
7961
7962 else
7963
7964 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7965 if test "x$LINE" != x ; then
7966 eval "DEFAULT_$LINE"
7967 else
7968 no_cache=1
7969 fi
7970
7971 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7972
7973 fi
7974
7975
7976 eval "$ac_cv_use_menus"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_MENUS" = yes; then
7982 echo "$ac_t""yes" 1>&6
7983 else
7984 echo "$ac_t""no" 1>&6
7985 fi
7986
7987
7988 enablestring=
7989 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7990 echo "configure:7991: checking for --${enablestring:-enable}-miniframe" >&5
7991 no_cache=0
7992 # Check whether --enable-miniframe or --disable-miniframe was given.
7993 if test "${enable_miniframe+set}" = set; then
7994 enableval="$enable_miniframe"
7995
7996 if test "$enableval" = yes; then
7997 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7998 else
7999 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8000 fi
8001
8002 else
8003
8004 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8005 if test "x$LINE" != x ; then
8006 eval "DEFAULT_$LINE"
8007 else
8008 no_cache=1
8009 fi
8010
8011 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8012
8013 fi
8014
8015
8016 eval "$ac_cv_use_miniframe"
8017 if test "$no_cache" != 1; then
8018 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8019 fi
8020
8021 if test "$wxUSE_MINIFRAME" = yes; then
8022 echo "$ac_t""yes" 1>&6
8023 else
8024 echo "$ac_t""no" 1>&6
8025 fi
8026
8027
8028 enablestring=
8029 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8030 echo "configure:8031: checking for --${enablestring:-enable}-tooltips" >&5
8031 no_cache=0
8032 # Check whether --enable-tooltips or --disable-tooltips was given.
8033 if test "${enable_tooltips+set}" = set; then
8034 enableval="$enable_tooltips"
8035
8036 if test "$enableval" = yes; then
8037 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8038 else
8039 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8040 fi
8041
8042 else
8043
8044 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8045 if test "x$LINE" != x ; then
8046 eval "DEFAULT_$LINE"
8047 else
8048 no_cache=1
8049 fi
8050
8051 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8052
8053 fi
8054
8055
8056 eval "$ac_cv_use_tooltips"
8057 if test "$no_cache" != 1; then
8058 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8059 fi
8060
8061 if test "$wxUSE_TOOLTIPS" = yes; then
8062 echo "$ac_t""yes" 1>&6
8063 else
8064 echo "$ac_t""no" 1>&6
8065 fi
8066
8067
8068 enablestring=
8069 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8070 echo "configure:8071: checking for --${enablestring:-enable}-splines" >&5
8071 no_cache=0
8072 # Check whether --enable-splines or --disable-splines was given.
8073 if test "${enable_splines+set}" = set; then
8074 enableval="$enable_splines"
8075
8076 if test "$enableval" = yes; then
8077 ac_cv_use_splines='wxUSE_SPLINES=yes'
8078 else
8079 ac_cv_use_splines='wxUSE_SPLINES=no'
8080 fi
8081
8082 else
8083
8084 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8085 if test "x$LINE" != x ; then
8086 eval "DEFAULT_$LINE"
8087 else
8088 no_cache=1
8089 fi
8090
8091 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8092
8093 fi
8094
8095
8096 eval "$ac_cv_use_splines"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_SPLINES" = yes; then
8102 echo "$ac_t""yes" 1>&6
8103 else
8104 echo "$ac_t""no" 1>&6
8105 fi
8106
8107
8108 enablestring=
8109 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8110 echo "configure:8111: checking for --${enablestring:-enable}-validators" >&5
8111 no_cache=0
8112 # Check whether --enable-validators or --disable-validators was given.
8113 if test "${enable_validators+set}" = set; then
8114 enableval="$enable_validators"
8115
8116 if test "$enableval" = yes; then
8117 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8118 else
8119 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8120 fi
8121
8122 else
8123
8124 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8125 if test "x$LINE" != x ; then
8126 eval "DEFAULT_$LINE"
8127 else
8128 no_cache=1
8129 fi
8130
8131 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8132
8133 fi
8134
8135
8136 eval "$ac_cv_use_validators"
8137 if test "$no_cache" != 1; then
8138 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8139 fi
8140
8141 if test "$wxUSE_VALIDATORS" = yes; then
8142 echo "$ac_t""yes" 1>&6
8143 else
8144 echo "$ac_t""no" 1>&6
8145 fi
8146
8147
8148 enablestring=
8149 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8150 echo "configure:8151: checking for --${enablestring:-enable}-busyinfo" >&5
8151 no_cache=0
8152 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8153 if test "${enable_busyinfo+set}" = set; then
8154 enableval="$enable_busyinfo"
8155
8156 if test "$enableval" = yes; then
8157 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8158 else
8159 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8160 fi
8161
8162 else
8163
8164 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8165 if test "x$LINE" != x ; then
8166 eval "DEFAULT_$LINE"
8167 else
8168 no_cache=1
8169 fi
8170
8171 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8172
8173 fi
8174
8175
8176 eval "$ac_cv_use_busyinfo"
8177 if test "$no_cache" != 1; then
8178 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8179 fi
8180
8181 if test "$wxUSE_BUSYINFO" = yes; then
8182 echo "$ac_t""yes" 1>&6
8183 else
8184 echo "$ac_t""no" 1>&6
8185 fi
8186
8187
8188 enablestring=
8189 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8190 echo "configure:8191: checking for --${enablestring:-enable}-joystick" >&5
8191 no_cache=0
8192 # Check whether --enable-joystick or --disable-joystick was given.
8193 if test "${enable_joystick+set}" = set; then
8194 enableval="$enable_joystick"
8195
8196 if test "$enableval" = yes; then
8197 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8198 else
8199 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8200 fi
8201
8202 else
8203
8204 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8205 if test "x$LINE" != x ; then
8206 eval "DEFAULT_$LINE"
8207 else
8208 no_cache=1
8209 fi
8210
8211 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8212
8213 fi
8214
8215
8216 eval "$ac_cv_use_joystick"
8217 if test "$no_cache" != 1; then
8218 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8219 fi
8220
8221 if test "$wxUSE_JOYSTICK" = yes; then
8222 echo "$ac_t""yes" 1>&6
8223 else
8224 echo "$ac_t""no" 1>&6
8225 fi
8226
8227
8228 enablestring=
8229 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8230 echo "configure:8231: checking for --${enablestring:-enable}-metafile" >&5
8231 no_cache=0
8232 # Check whether --enable-metafile or --disable-metafile was given.
8233 if test "${enable_metafile+set}" = set; then
8234 enableval="$enable_metafile"
8235
8236 if test "$enableval" = yes; then
8237 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8238 else
8239 ac_cv_use_metafile='wxUSE_METAFILE=no'
8240 fi
8241
8242 else
8243
8244 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8245 if test "x$LINE" != x ; then
8246 eval "DEFAULT_$LINE"
8247 else
8248 no_cache=1
8249 fi
8250
8251 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8252
8253 fi
8254
8255
8256 eval "$ac_cv_use_metafile"
8257 if test "$no_cache" != 1; then
8258 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8259 fi
8260
8261 if test "$wxUSE_METAFILE" = yes; then
8262 echo "$ac_t""yes" 1>&6
8263 else
8264 echo "$ac_t""no" 1>&6
8265 fi
8266
8267
8268 enablestring=
8269 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8270 echo "configure:8271: checking for --${enablestring:-enable}-dragimage" >&5
8271 no_cache=0
8272 # Check whether --enable-dragimage or --disable-dragimage was given.
8273 if test "${enable_dragimage+set}" = set; then
8274 enableval="$enable_dragimage"
8275
8276 if test "$enableval" = yes; then
8277 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8278 else
8279 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8280 fi
8281
8282 else
8283
8284 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8285 if test "x$LINE" != x ; then
8286 eval "DEFAULT_$LINE"
8287 else
8288 no_cache=1
8289 fi
8290
8291 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8292
8293 fi
8294
8295
8296 eval "$ac_cv_use_dragimage"
8297 if test "$no_cache" != 1; then
8298 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8299 fi
8300
8301 if test "$wxUSE_DRAGIMAGE" = yes; then
8302 echo "$ac_t""yes" 1>&6
8303 else
8304 echo "$ac_t""no" 1>&6
8305 fi
8306
8307
8308 enablestring=
8309 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8310 echo "configure:8311: checking for --${enablestring:-enable}-accessibility" >&5
8311 no_cache=0
8312 # Check whether --enable-accessibility or --disable-accessibility was given.
8313 if test "${enable_accessibility+set}" = set; then
8314 enableval="$enable_accessibility"
8315
8316 if test "$enableval" = yes; then
8317 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8318 else
8319 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8320 fi
8321
8322 else
8323
8324 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8325 if test "x$LINE" != x ; then
8326 eval "DEFAULT_$LINE"
8327 else
8328 no_cache=1
8329 fi
8330
8331 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8332
8333 fi
8334
8335
8336 eval "$ac_cv_use_accessibility"
8337 if test "$no_cache" != 1; then
8338 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8339 fi
8340
8341 if test "$wxUSE_ACCESSIBILITY" = yes; then
8342 echo "$ac_t""yes" 1>&6
8343 else
8344 echo "$ac_t""no" 1>&6
8345 fi
8346
8347
8348
8349
8350 enablestring=
8351 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8352 echo "configure:8353: checking for --${enablestring:-enable}-palette" >&5
8353 no_cache=0
8354 # Check whether --enable-palette or --disable-palette was given.
8355 if test "${enable_palette+set}" = set; then
8356 enableval="$enable_palette"
8357
8358 if test "$enableval" = yes; then
8359 ac_cv_use_palette='wxUSE_PALETTE=yes'
8360 else
8361 ac_cv_use_palette='wxUSE_PALETTE=no'
8362 fi
8363
8364 else
8365
8366 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8367 if test "x$LINE" != x ; then
8368 eval "DEFAULT_$LINE"
8369 else
8370 no_cache=1
8371 fi
8372
8373 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8374
8375 fi
8376
8377
8378 eval "$ac_cv_use_palette"
8379 if test "$no_cache" != 1; then
8380 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8381 fi
8382
8383 if test "$wxUSE_PALETTE" = yes; then
8384 echo "$ac_t""yes" 1>&6
8385 else
8386 echo "$ac_t""no" 1>&6
8387 fi
8388
8389
8390 enablestring=
8391 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8392 echo "configure:8393: checking for --${enablestring:-enable}-image" >&5
8393 no_cache=0
8394 # Check whether --enable-image or --disable-image was given.
8395 if test "${enable_image+set}" = set; then
8396 enableval="$enable_image"
8397
8398 if test "$enableval" = yes; then
8399 ac_cv_use_image='wxUSE_IMAGE=yes'
8400 else
8401 ac_cv_use_image='wxUSE_IMAGE=no'
8402 fi
8403
8404 else
8405
8406 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8407 if test "x$LINE" != x ; then
8408 eval "DEFAULT_$LINE"
8409 else
8410 no_cache=1
8411 fi
8412
8413 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8414
8415 fi
8416
8417
8418 eval "$ac_cv_use_image"
8419 if test "$no_cache" != 1; then
8420 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8421 fi
8422
8423 if test "$wxUSE_IMAGE" = yes; then
8424 echo "$ac_t""yes" 1>&6
8425 else
8426 echo "$ac_t""no" 1>&6
8427 fi
8428
8429
8430 enablestring=
8431 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8432 echo "configure:8433: checking for --${enablestring:-enable}-gif" >&5
8433 no_cache=0
8434 # Check whether --enable-gif or --disable-gif was given.
8435 if test "${enable_gif+set}" = set; then
8436 enableval="$enable_gif"
8437
8438 if test "$enableval" = yes; then
8439 ac_cv_use_gif='wxUSE_GIF=yes'
8440 else
8441 ac_cv_use_gif='wxUSE_GIF=no'
8442 fi
8443
8444 else
8445
8446 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8447 if test "x$LINE" != x ; then
8448 eval "DEFAULT_$LINE"
8449 else
8450 no_cache=1
8451 fi
8452
8453 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8454
8455 fi
8456
8457
8458 eval "$ac_cv_use_gif"
8459 if test "$no_cache" != 1; then
8460 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8461 fi
8462
8463 if test "$wxUSE_GIF" = yes; then
8464 echo "$ac_t""yes" 1>&6
8465 else
8466 echo "$ac_t""no" 1>&6
8467 fi
8468
8469
8470 enablestring=
8471 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8472 echo "configure:8473: checking for --${enablestring:-enable}-pcx" >&5
8473 no_cache=0
8474 # Check whether --enable-pcx or --disable-pcx was given.
8475 if test "${enable_pcx+set}" = set; then
8476 enableval="$enable_pcx"
8477
8478 if test "$enableval" = yes; then
8479 ac_cv_use_pcx='wxUSE_PCX=yes'
8480 else
8481 ac_cv_use_pcx='wxUSE_PCX=no'
8482 fi
8483
8484 else
8485
8486 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8487 if test "x$LINE" != x ; then
8488 eval "DEFAULT_$LINE"
8489 else
8490 no_cache=1
8491 fi
8492
8493 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8494
8495 fi
8496
8497
8498 eval "$ac_cv_use_pcx"
8499 if test "$no_cache" != 1; then
8500 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8501 fi
8502
8503 if test "$wxUSE_PCX" = yes; then
8504 echo "$ac_t""yes" 1>&6
8505 else
8506 echo "$ac_t""no" 1>&6
8507 fi
8508
8509
8510 enablestring=
8511 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8512 echo "configure:8513: checking for --${enablestring:-enable}-iff" >&5
8513 no_cache=0
8514 # Check whether --enable-iff or --disable-iff was given.
8515 if test "${enable_iff+set}" = set; then
8516 enableval="$enable_iff"
8517
8518 if test "$enableval" = yes; then
8519 ac_cv_use_iff='wxUSE_IFF=yes'
8520 else
8521 ac_cv_use_iff='wxUSE_IFF=no'
8522 fi
8523
8524 else
8525
8526 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8527 if test "x$LINE" != x ; then
8528 eval "DEFAULT_$LINE"
8529 else
8530 no_cache=1
8531 fi
8532
8533 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8534
8535 fi
8536
8537
8538 eval "$ac_cv_use_iff"
8539 if test "$no_cache" != 1; then
8540 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8541 fi
8542
8543 if test "$wxUSE_IFF" = yes; then
8544 echo "$ac_t""yes" 1>&6
8545 else
8546 echo "$ac_t""no" 1>&6
8547 fi
8548
8549
8550 enablestring=
8551 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8552 echo "configure:8553: checking for --${enablestring:-enable}-pnm" >&5
8553 no_cache=0
8554 # Check whether --enable-pnm or --disable-pnm was given.
8555 if test "${enable_pnm+set}" = set; then
8556 enableval="$enable_pnm"
8557
8558 if test "$enableval" = yes; then
8559 ac_cv_use_pnm='wxUSE_PNM=yes'
8560 else
8561 ac_cv_use_pnm='wxUSE_PNM=no'
8562 fi
8563
8564 else
8565
8566 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8567 if test "x$LINE" != x ; then
8568 eval "DEFAULT_$LINE"
8569 else
8570 no_cache=1
8571 fi
8572
8573 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8574
8575 fi
8576
8577
8578 eval "$ac_cv_use_pnm"
8579 if test "$no_cache" != 1; then
8580 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8581 fi
8582
8583 if test "$wxUSE_PNM" = yes; then
8584 echo "$ac_t""yes" 1>&6
8585 else
8586 echo "$ac_t""no" 1>&6
8587 fi
8588
8589
8590 enablestring=
8591 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8592 echo "configure:8593: checking for --${enablestring:-enable}-xpm" >&5
8593 no_cache=0
8594 # Check whether --enable-xpm or --disable-xpm was given.
8595 if test "${enable_xpm+set}" = set; then
8596 enableval="$enable_xpm"
8597
8598 if test "$enableval" = yes; then
8599 ac_cv_use_xpm='wxUSE_XPM=yes'
8600 else
8601 ac_cv_use_xpm='wxUSE_XPM=no'
8602 fi
8603
8604 else
8605
8606 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8614
8615 fi
8616
8617
8618 eval "$ac_cv_use_xpm"
8619 if test "$no_cache" != 1; then
8620 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8621 fi
8622
8623 if test "$wxUSE_XPM" = yes; then
8624 echo "$ac_t""yes" 1>&6
8625 else
8626 echo "$ac_t""no" 1>&6
8627 fi
8628
8629
8630 enablestring=
8631 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8632 echo "configure:8633: checking for --${enablestring:-enable}-ico_cur" >&5
8633 no_cache=0
8634 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8635 if test "${enable_ico_cur+set}" = set; then
8636 enableval="$enable_ico_cur"
8637
8638 if test "$enableval" = yes; then
8639 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8640 else
8641 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8642 fi
8643
8644 else
8645
8646 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8647 if test "x$LINE" != x ; then
8648 eval "DEFAULT_$LINE"
8649 else
8650 no_cache=1
8651 fi
8652
8653 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8654
8655 fi
8656
8657
8658 eval "$ac_cv_use_ico_cur"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_ICO_CUR" = yes; then
8664 echo "$ac_t""yes" 1>&6
8665 else
8666 echo "$ac_t""no" 1>&6
8667 fi
8668
8669
8670 fi
8671
8672 case "${host}" in
8673 *-pc-os2_emx | *-pc-os2-emx )
8674 PATH_IFS=';'
8675 LEX_STEM="lexyy"
8676 ;;
8677 *)
8678 PATH_IFS=':'
8679 LEX_STEM="lex.yy"
8680 ;;
8681 esac
8682
8683
8684
8685 echo "saving argument cache $wx_arg_cache_file"
8686 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8687
8688
8689
8690 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8691 echo "configure:8692: checking for toolkit" >&5
8692
8693 # In Wine, we need to default to MSW, not GTK or MOTIF
8694 if test "$wxUSE_WINE" = "yes"; then
8695 DEFAULT_DEFAULT_wxUSE_GTK=0
8696 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8697 DEFAULT_DEFAULT_wxUSE_MSW=1
8698 fi
8699
8700 if test "$wxUSE_GUI" = "yes"; then
8701
8702 if test "$USE_BEOS" = 1; then
8703 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8704 fi
8705
8706 if test "$TOOLKIT_GIVEN" = 1; then
8707 for toolkit in `echo $ALL_TOOLKITS`; do
8708 var=wxUSE_$toolkit
8709 eval "value=\$${var}"
8710 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8711 done
8712 else
8713 for toolkit in `echo $ALL_TOOLKITS`; do
8714 if test "$has_toolkit_in_cache" != 1; then
8715 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8716 else
8717 var=DEFAULT_wxUSE_$toolkit
8718 fi
8719 eval "wxUSE_$toolkit=\$${var}"
8720 done
8721 fi
8722
8723 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8724 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8725 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8726
8727 case "${host}" in
8728 *-pc-os2_emx | *-pc-os2-emx )
8729 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8730 esac
8731
8732 case "$NUM_TOOLKITS" in
8733 1)
8734 ;;
8735 0)
8736 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8737 ;;
8738 *)
8739 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8740 esac
8741
8742 for toolkit in `echo $ALL_TOOLKITS`; do
8743 var=wxUSE_$toolkit
8744 eval "value=\$${var}"
8745 if test "x$value" != x; then
8746 cache_var=CACHE_$toolkit
8747 eval "cache=\$${cache_var}"
8748 if test "$cache" = 1; then
8749 echo "$var=$value" >> ${wx_arg_cache_file}
8750 fi
8751 if test "$value" = 1; then
8752 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8753 echo "$ac_t""$toolkit_echo" 1>&6
8754 fi
8755 fi
8756 done
8757 else
8758 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8759 fi
8760
8761 wants_win32=0
8762 doesnt_want_win32=0
8763 case "${host}" in
8764 *-*-cygwin*)
8765 if test "$wxUSE_MSW" = 1 ; then
8766 wants_win32=1
8767 else
8768 doesnt_want_win32=1
8769 fi
8770 ;;
8771 *-*-mingw*)
8772 wants_win32=1
8773 ;;
8774 esac
8775
8776 if test "$wxUSE_WINE" = "yes"; then
8777 wants_win32=1
8778 CC=winegcc
8779 CXX=wineg++
8780 RESCOMP=wrc
8781 fi
8782
8783 if test "$wants_win32" = 1 ; then
8784 USE_UNIX=0
8785 USE_WIN32=1
8786 cat >> confdefs.h <<\EOF
8787 #define __WIN32__ 1
8788 EOF
8789
8790 cat >> confdefs.h <<\EOF
8791 #define __WIN95__ 1
8792 EOF
8793
8794 cat >> confdefs.h <<\EOF
8795 #define __WINDOWS__ 1
8796 EOF
8797
8798 cat >> confdefs.h <<\EOF
8799 #define __GNUWIN32__ 1
8800 EOF
8801
8802 cat >> confdefs.h <<\EOF
8803 #define STRICT 1
8804 EOF
8805
8806 cat >> confdefs.h <<\EOF
8807 #define WINVER 0x0400
8808 EOF
8809
8810 fi
8811 if test "$doesnt_want_win32" = 1 ; then
8812 USE_UNIX=1
8813 USE_WIN32=0
8814 fi
8815
8816 if test "$USE_UNIX" = 1 ; then
8817 wxUSE_UNIX=yes
8818 cat >> confdefs.h <<\EOF
8819 #define __UNIX__ 1
8820 EOF
8821
8822 fi
8823
8824
8825 cat > confcache <<\EOF
8826 # This file is a shell script that caches the results of configure
8827 # tests run on this system so they can be shared between configure
8828 # scripts and configure runs. It is not useful on other systems.
8829 # If it contains results you don't want to keep, you may remove or edit it.
8830 #
8831 # By default, configure uses ./config.cache as the cache file,
8832 # creating it if it does not exist already. You can give configure
8833 # the --cache-file=FILE option to use a different cache file; that is
8834 # what configure does when it calls configure scripts in
8835 # subdirectories, so they share the cache.
8836 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8837 # config.status only pays attention to the cache file if you give it the
8838 # --recheck option to rerun configure.
8839 #
8840 EOF
8841 # The following way of writing the cache mishandles newlines in values,
8842 # but we know of no workaround that is simple, portable, and efficient.
8843 # So, don't put newlines in cache variables' values.
8844 # Ultrix sh set writes to stderr and can't be redirected directly,
8845 # and sets the high bit in the cache file unless we assign to the vars.
8846 (set) 2>&1 |
8847 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8848 *ac_space=\ *)
8849 # `set' does not quote correctly, so add quotes (double-quote substitution
8850 # turns \\\\ into \\, and sed turns \\ into \).
8851 sed -n \
8852 -e "s/'/'\\\\''/g" \
8853 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8854 ;;
8855 *)
8856 # `set' quotes correctly as required by POSIX, so do not add quotes.
8857 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8858 ;;
8859 esac >> confcache
8860 if cmp -s $cache_file confcache; then
8861 :
8862 else
8863 if test -w $cache_file; then
8864 echo "updating cache $cache_file"
8865 cat confcache > $cache_file
8866 else
8867 echo "not updating unwritable cache $cache_file"
8868 fi
8869 fi
8870 rm -f confcache
8871
8872
8873 if test "$build" != "$host" ; then
8874 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8875 CC=$host_alias-gcc
8876 CXX=$host_alias-c++
8877 AR=$host_alias-ar
8878 RANLIB=$host_alias-ranlib
8879 DLLTOOL=$host_alias-dlltool
8880 RESCOMP=$host_alias-windres
8881 LD=$host_alias-ld
8882 NM=$host_alias-nm
8883 STRIP=$host_alias-strip
8884 else
8885 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8886 fi
8887 fi
8888
8889 CFLAGS=${CFLAGS:=}
8890 # Extract the first word of "gcc", so it can be a program name with args.
8891 set dummy gcc; ac_word=$2
8892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8893 echo "configure:8894: checking for $ac_word" >&5
8894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8895 echo $ac_n "(cached) $ac_c" 1>&6
8896 else
8897 if test -n "$CC"; then
8898 ac_cv_prog_CC="$CC" # Let the user override the test.
8899 else
8900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8901 ac_dummy="$PATH"
8902 for ac_dir in $ac_dummy; do
8903 test -z "$ac_dir" && ac_dir=.
8904 if test -f $ac_dir/$ac_word; then
8905 ac_cv_prog_CC="gcc"
8906 break
8907 fi
8908 done
8909 IFS="$ac_save_ifs"
8910 fi
8911 fi
8912 CC="$ac_cv_prog_CC"
8913 if test -n "$CC"; then
8914 echo "$ac_t""$CC" 1>&6
8915 else
8916 echo "$ac_t""no" 1>&6
8917 fi
8918
8919 if test -z "$CC"; then
8920 # Extract the first word of "cc", so it can be a program name with args.
8921 set dummy cc; ac_word=$2
8922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8923 echo "configure:8924: checking for $ac_word" >&5
8924 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8926 else
8927 if test -n "$CC"; then
8928 ac_cv_prog_CC="$CC" # Let the user override the test.
8929 else
8930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8931 ac_prog_rejected=no
8932 ac_dummy="$PATH"
8933 for ac_dir in $ac_dummy; do
8934 test -z "$ac_dir" && ac_dir=.
8935 if test -f $ac_dir/$ac_word; then
8936 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8937 ac_prog_rejected=yes
8938 continue
8939 fi
8940 ac_cv_prog_CC="cc"
8941 break
8942 fi
8943 done
8944 IFS="$ac_save_ifs"
8945 if test $ac_prog_rejected = yes; then
8946 # We found a bogon in the path, so make sure we never use it.
8947 set dummy $ac_cv_prog_CC
8948 shift
8949 if test $# -gt 0; then
8950 # We chose a different compiler from the bogus one.
8951 # However, it has the same basename, so the bogon will be chosen
8952 # first if we set CC to just the basename; use the full file name.
8953 shift
8954 set dummy "$ac_dir/$ac_word" "$@"
8955 shift
8956 ac_cv_prog_CC="$@"
8957 fi
8958 fi
8959 fi
8960 fi
8961 CC="$ac_cv_prog_CC"
8962 if test -n "$CC"; then
8963 echo "$ac_t""$CC" 1>&6
8964 else
8965 echo "$ac_t""no" 1>&6
8966 fi
8967
8968 if test -z "$CC"; then
8969 case "`uname -s`" in
8970 *win32* | *WIN32*)
8971 # Extract the first word of "cl", so it can be a program name with args.
8972 set dummy cl; ac_word=$2
8973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8974 echo "configure:8975: checking for $ac_word" >&5
8975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8976 echo $ac_n "(cached) $ac_c" 1>&6
8977 else
8978 if test -n "$CC"; then
8979 ac_cv_prog_CC="$CC" # Let the user override the test.
8980 else
8981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8982 ac_dummy="$PATH"
8983 for ac_dir in $ac_dummy; do
8984 test -z "$ac_dir" && ac_dir=.
8985 if test -f $ac_dir/$ac_word; then
8986 ac_cv_prog_CC="cl"
8987 break
8988 fi
8989 done
8990 IFS="$ac_save_ifs"
8991 fi
8992 fi
8993 CC="$ac_cv_prog_CC"
8994 if test -n "$CC"; then
8995 echo "$ac_t""$CC" 1>&6
8996 else
8997 echo "$ac_t""no" 1>&6
8998 fi
8999 ;;
9000 esac
9001 fi
9002 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9003 fi
9004
9005 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9006 echo "configure:9007: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9007
9008 ac_ext=c
9009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9013 cross_compiling=$ac_cv_prog_cc_cross
9014
9015 cat > conftest.$ac_ext << EOF
9016
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019
9020 main(){return(0);}
9021 EOF
9022 if { (eval echo configure:9023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9023 ac_cv_prog_cc_works=yes
9024 # If we can't run a trivial program, we are probably using a cross compiler.
9025 if (./conftest; exit) 2>/dev/null; then
9026 ac_cv_prog_cc_cross=no
9027 else
9028 ac_cv_prog_cc_cross=yes
9029 fi
9030 else
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9033 ac_cv_prog_cc_works=no
9034 fi
9035 rm -fr conftest*
9036 ac_ext=c
9037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9038 ac_cpp='$CPP $CPPFLAGS'
9039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9041 cross_compiling=$ac_cv_prog_cc_cross
9042
9043 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9044 if test $ac_cv_prog_cc_works = no; then
9045 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9046 fi
9047 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9048 echo "configure:9049: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9049 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9050 cross_compiling=$ac_cv_prog_cc_cross
9051
9052 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9053 echo "configure:9054: checking whether we are using GNU C" >&5
9054 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056 else
9057 cat > conftest.c <<EOF
9058 #ifdef __GNUC__
9059 yes;
9060 #endif
9061 EOF
9062 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9063 ac_cv_prog_gcc=yes
9064 else
9065 ac_cv_prog_gcc=no
9066 fi
9067 fi
9068
9069 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9070
9071 if test $ac_cv_prog_gcc = yes; then
9072 GCC=yes
9073 else
9074 GCC=
9075 fi
9076
9077 ac_test_CFLAGS="${CFLAGS+set}"
9078 ac_save_CFLAGS="$CFLAGS"
9079 CFLAGS=
9080 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9081 echo "configure:9082: checking whether ${CC-cc} accepts -g" >&5
9082 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9084 else
9085 echo 'void f(){}' > conftest.c
9086 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9087 ac_cv_prog_cc_g=yes
9088 else
9089 ac_cv_prog_cc_g=no
9090 fi
9091 rm -f conftest*
9092
9093 fi
9094
9095 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9096 if test "$ac_test_CFLAGS" = set; then
9097 CFLAGS="$ac_save_CFLAGS"
9098 elif test $ac_cv_prog_cc_g = yes; then
9099 if test "$GCC" = yes; then
9100 CFLAGS="-g -O2"
9101 else
9102 CFLAGS="-g"
9103 fi
9104 else
9105 if test "$GCC" = yes; then
9106 CFLAGS="-O2"
9107 else
9108 CFLAGS=
9109 fi
9110 fi
9111
9112
9113 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9114 echo "configure:9115: checking how to run the C preprocessor" >&5
9115 # On Suns, sometimes $CPP names a directory.
9116 if test -n "$CPP" && test -d "$CPP"; then
9117 CPP=
9118 fi
9119 if test -z "$CPP"; then
9120 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9122 else
9123 # This must be in double quotes, not single quotes, because CPP may get
9124 # substituted into the Makefile and "${CC-cc}" will confuse make.
9125 CPP="${CC-cc} -E"
9126 # On the NeXT, cc -E runs the code through the compiler's parser,
9127 # not just through cpp.
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9131 #include <assert.h>
9132 Syntax Error
9133 EOF
9134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9135 { (eval echo configure:9136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9137 if test -z "$ac_err"; then
9138 :
9139 else
9140 echo "$ac_err" >&5
9141 echo "configure: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9143 rm -rf conftest*
9144 CPP="${CC-cc} -E -traditional-cpp"
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9148 #include <assert.h>
9149 Syntax Error
9150 EOF
9151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9152 { (eval echo configure:9153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9154 if test -z "$ac_err"; then
9155 :
9156 else
9157 echo "$ac_err" >&5
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9160 rm -rf conftest*
9161 CPP="${CC-cc} -nologo -E"
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 #include <assert.h>
9166 Syntax Error
9167 EOF
9168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9169 { (eval echo configure:9170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9171 if test -z "$ac_err"; then
9172 :
9173 else
9174 echo "$ac_err" >&5
9175 echo "configure: failed program was:" >&5
9176 cat conftest.$ac_ext >&5
9177 rm -rf conftest*
9178 CPP=/lib/cpp
9179 fi
9180 rm -f conftest*
9181 fi
9182 rm -f conftest*
9183 fi
9184 rm -f conftest*
9185 ac_cv_prog_CPP="$CPP"
9186 fi
9187 CPP="$ac_cv_prog_CPP"
9188 else
9189 ac_cv_prog_CPP="$CPP"
9190 fi
9191 echo "$ac_t""$CPP" 1>&6
9192
9193 if test $ac_cv_prog_gcc = yes; then
9194 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9195 echo "configure:9196: checking whether ${CC-cc} needs -traditional" >&5
9196 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9198 else
9199 ac_pattern="Autoconf.*'x'"
9200 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9203 #include <sgtty.h>
9204 Autoconf TIOCGETP
9205 EOF
9206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9207 egrep "$ac_pattern" >/dev/null 2>&1; then
9208 rm -rf conftest*
9209 ac_cv_prog_gcc_traditional=yes
9210 else
9211 rm -rf conftest*
9212 ac_cv_prog_gcc_traditional=no
9213 fi
9214 rm -f conftest*
9215
9216
9217 if test $ac_cv_prog_gcc_traditional = no; then
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221 #include <termio.h>
9222 Autoconf TCGETA
9223 EOF
9224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9225 egrep "$ac_pattern" >/dev/null 2>&1; then
9226 rm -rf conftest*
9227 ac_cv_prog_gcc_traditional=yes
9228 fi
9229 rm -f conftest*
9230
9231 fi
9232 fi
9233
9234 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9235 if test $ac_cv_prog_gcc_traditional = yes; then
9236 CC="$CC -traditional"
9237 fi
9238 fi
9239
9240
9241
9242 ac_ext=C
9243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9244 ac_cpp='$CXXCPP $CPPFLAGS'
9245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9247 cross_compiling=$ac_cv_prog_cxx_cross
9248
9249
9250 CXXFLAGS=${CXXFLAGS:=}
9251 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9252 do
9253 # Extract the first word of "$ac_prog", so it can be a program name with args.
9254 set dummy $ac_prog; ac_word=$2
9255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9256 echo "configure:9257: checking for $ac_word" >&5
9257 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9259 else
9260 if test -n "$CXX"; then
9261 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9262 else
9263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9264 ac_dummy="$PATH"
9265 for ac_dir in $ac_dummy; do
9266 test -z "$ac_dir" && ac_dir=.
9267 if test -f $ac_dir/$ac_word; then
9268 ac_cv_prog_CXX="$ac_prog"
9269 break
9270 fi
9271 done
9272 IFS="$ac_save_ifs"
9273 fi
9274 fi
9275 CXX="$ac_cv_prog_CXX"
9276 if test -n "$CXX"; then
9277 echo "$ac_t""$CXX" 1>&6
9278 else
9279 echo "$ac_t""no" 1>&6
9280 fi
9281
9282 test -n "$CXX" && break
9283 done
9284 test -n "$CXX" || CXX="gcc"
9285
9286
9287 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9288 echo "configure:9289: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9289
9290 ac_ext=C
9291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9292 ac_cpp='$CXXCPP $CPPFLAGS'
9293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9295 cross_compiling=$ac_cv_prog_cxx_cross
9296
9297 cat > conftest.$ac_ext << EOF
9298
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9301
9302 int main(){return(0);}
9303 EOF
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305 ac_cv_prog_cxx_works=yes
9306 # If we can't run a trivial program, we are probably using a cross compiler.
9307 if (./conftest; exit) 2>/dev/null; then
9308 ac_cv_prog_cxx_cross=no
9309 else
9310 ac_cv_prog_cxx_cross=yes
9311 fi
9312 else
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9315 ac_cv_prog_cxx_works=no
9316 fi
9317 rm -fr conftest*
9318 ac_ext=C
9319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9320 ac_cpp='$CXXCPP $CPPFLAGS'
9321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9323 cross_compiling=$ac_cv_prog_cxx_cross
9324
9325 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9326 if test $ac_cv_prog_cxx_works = no; then
9327 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9328 fi
9329 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9330 echo "configure:9331: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9331 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9332 cross_compiling=$ac_cv_prog_cxx_cross
9333
9334 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9335 echo "configure:9336: checking whether we are using GNU C++" >&5
9336 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9338 else
9339 cat > conftest.C <<EOF
9340 #ifdef __GNUC__
9341 yes;
9342 #endif
9343 EOF
9344 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9345 ac_cv_prog_gxx=yes
9346 else
9347 ac_cv_prog_gxx=no
9348 fi
9349 fi
9350
9351 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9352
9353 if test $ac_cv_prog_gxx = yes; then
9354 GXX=yes
9355 else
9356 GXX=
9357 fi
9358
9359 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9360 ac_save_CXXFLAGS="$CXXFLAGS"
9361 CXXFLAGS=
9362 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9363 echo "configure:9364: checking whether ${CXX-g++} accepts -g" >&5
9364 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9366 else
9367 echo 'void f(){}' > conftest.cc
9368 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9369 ac_cv_prog_cxx_g=yes
9370 else
9371 ac_cv_prog_cxx_g=no
9372 fi
9373 rm -f conftest*
9374
9375 fi
9376
9377 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9378 if test "$ac_test_CXXFLAGS" = set; then
9379 CXXFLAGS="$ac_save_CXXFLAGS"
9380 elif test $ac_cv_prog_cxx_g = yes; then
9381 if test "$GXX" = yes; then
9382 CXXFLAGS="-g -O2"
9383 else
9384 CXXFLAGS="-g"
9385 fi
9386 else
9387 if test "$GXX" = yes; then
9388 CXXFLAGS="-O2"
9389 else
9390 CXXFLAGS=
9391 fi
9392 fi
9393
9394
9395 ac_ext=c
9396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9397 ac_cpp='$CPP $CPPFLAGS'
9398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9400 cross_compiling=$ac_cv_prog_cc_cross
9401
9402
9403 # Extract the first word of "ranlib", so it can be a program name with args.
9404 set dummy ranlib; ac_word=$2
9405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9406 echo "configure:9407: checking for $ac_word" >&5
9407 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9409 else
9410 if test -n "$RANLIB"; then
9411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9412 else
9413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9414 ac_dummy="$PATH"
9415 for ac_dir in $ac_dummy; do
9416 test -z "$ac_dir" && ac_dir=.
9417 if test -f $ac_dir/$ac_word; then
9418 ac_cv_prog_RANLIB="ranlib"
9419 break
9420 fi
9421 done
9422 IFS="$ac_save_ifs"
9423 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9424 fi
9425 fi
9426 RANLIB="$ac_cv_prog_RANLIB"
9427 if test -n "$RANLIB"; then
9428 echo "$ac_t""$RANLIB" 1>&6
9429 else
9430 echo "$ac_t""no" 1>&6
9431 fi
9432
9433
9434 # Extract the first word of "ar", so it can be a program name with args.
9435 set dummy ar; ac_word=$2
9436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9437 echo "configure:9438: checking for $ac_word" >&5
9438 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9440 else
9441 if test -n "$AR"; then
9442 ac_cv_prog_AR="$AR" # Let the user override the test.
9443 else
9444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9445 ac_dummy="$PATH"
9446 for ac_dir in $ac_dummy; do
9447 test -z "$ac_dir" && ac_dir=.
9448 if test -f $ac_dir/$ac_word; then
9449 ac_cv_prog_AR="ar"
9450 break
9451 fi
9452 done
9453 IFS="$ac_save_ifs"
9454 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9455 fi
9456 fi
9457 AR="$ac_cv_prog_AR"
9458 if test -n "$AR"; then
9459 echo "$ac_t""$AR" 1>&6
9460 else
9461 echo "$ac_t""no" 1>&6
9462 fi
9463
9464
9465 # Find a good install program. We prefer a C program (faster),
9466 # so one script is as good as another. But avoid the broken or
9467 # incompatible versions:
9468 # SysV /etc/install, /usr/sbin/install
9469 # SunOS /usr/etc/install
9470 # IRIX /sbin/install
9471 # AIX /bin/install
9472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9475 # ./install, which can be erroneously created by make from ./install.sh.
9476 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9477 echo "configure:9478: checking for a BSD compatible install" >&5
9478 if test -z "$INSTALL"; then
9479 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9481 else
9482 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9483 for ac_dir in $PATH; do
9484 # Account for people who put trailing slashes in PATH elements.
9485 case "$ac_dir/" in
9486 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9487 *)
9488 # OSF1 and SCO ODT 3.0 have their own names for install.
9489 # Don't use installbsd from OSF since it installs stuff as root
9490 # by default.
9491 for ac_prog in ginstall scoinst install; do
9492 if test -f $ac_dir/$ac_prog; then
9493 if test $ac_prog = install &&
9494 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9495 # AIX install. It has an incompatible calling convention.
9496 :
9497 else
9498 ac_cv_path_install="$ac_dir/$ac_prog -c"
9499 break 2
9500 fi
9501 fi
9502 done
9503 ;;
9504 esac
9505 done
9506 IFS="$ac_save_IFS"
9507
9508 fi
9509 if test "${ac_cv_path_install+set}" = set; then
9510 INSTALL="$ac_cv_path_install"
9511 else
9512 # As a last resort, use the slow shell script. We don't cache a
9513 # path for INSTALL within a source directory, because that will
9514 # break other packages using the cache if that directory is
9515 # removed, or if the path is relative.
9516 INSTALL="$ac_install_sh"
9517 fi
9518 fi
9519 echo "$ac_t""$INSTALL" 1>&6
9520
9521 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9522 # It thinks the first close brace ends the variable substitution.
9523 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9524
9525 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9526
9527 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9528
9529
9530 case ${INSTALL} in
9531 /* ) # Absolute
9532 ;;
9533 ?:* ) # Drive letter, considered as absolute.
9534 ;;
9535 *)
9536 INSTALL=`pwd`/${INSTALL} ;;
9537 esac
9538
9539 case ${host} in
9540 *-hp-hpux* )
9541 INSTALL_DIR="mkdir"
9542 ;;
9543
9544 *) INSTALL_DIR="$INSTALL -d"
9545 ;;
9546 esac
9547
9548
9549 case "${host}" in
9550
9551 powerpc-*-darwin* )
9552 INSTALL_PROGRAM="cp -fp"
9553 INSTALL_DATA="cp -fp"
9554 ;;
9555 *)
9556 ;;
9557 esac
9558
9559 # Extract the first word of "strip", so it can be a program name with args.
9560 set dummy strip; ac_word=$2
9561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9562 echo "configure:9563: checking for $ac_word" >&5
9563 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9564 echo $ac_n "(cached) $ac_c" 1>&6
9565 else
9566 if test -n "$STRIP"; then
9567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9568 else
9569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9570 ac_dummy="$PATH"
9571 for ac_dir in $ac_dummy; do
9572 test -z "$ac_dir" && ac_dir=.
9573 if test -f $ac_dir/$ac_word; then
9574 ac_cv_prog_STRIP="strip"
9575 break
9576 fi
9577 done
9578 IFS="$ac_save_ifs"
9579 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9580 fi
9581 fi
9582 STRIP="$ac_cv_prog_STRIP"
9583 if test -n "$STRIP"; then
9584 echo "$ac_t""$STRIP" 1>&6
9585 else
9586 echo "$ac_t""no" 1>&6
9587 fi
9588
9589
9590 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9591 echo "configure:9592: checking if make is GNU make" >&5
9592 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9595
9596 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9597 egrep -s GNU > /dev/null); then
9598 wx_cv_prog_makeisgnu="yes"
9599 else
9600 wx_cv_prog_makeisgnu="no"
9601 fi
9602
9603 fi
9604
9605 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9606
9607 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9608 IF_GNU_MAKE=""
9609 else
9610 IF_GNU_MAKE="#"
9611 fi
9612
9613
9614
9615 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9616 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9617 echo "configure:9618: checking if make supports VPATH" >&5
9618 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9620 else
9621
9622 cat - << EOF > confMake
9623 check : file
9624 cp \$? \$@
9625 cp \$? final_file
9626 EOF
9627
9628 if test ! -d sub ; then
9629 mkdir sub
9630 fi
9631 echo dummy > sub/file
9632 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9633 RESULT=$?
9634 rm -f sub/file check final_file confMake
9635 rmdir sub
9636 if test "$RESULT" = 0; then
9637 wx_cv_prog_makevpath="yes"
9638 else
9639 wx_cv_prog_makevpath="no"
9640 fi
9641
9642 fi
9643
9644 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9645
9646 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9647 { echo "configure: error:
9648 You need a make-utility that is able to use the variable
9649 VPATH correctly.
9650 If your version of make does not support VPATH correctly,
9651 please install GNU-make (possibly as gmake), and start
9652 configure with the following command:
9653 export MAKE=gmake; ./configure for sh-type shells
9654 setenv MAKE gmake; ./configure for csh-type shells
9655 Also please do remember to use gmake in this case every time
9656 you are trying to compile.
9657 " 1>&2; exit 1; }
9658 fi fi
9659 for ac_prog in 'bison -y' byacc
9660 do
9661 # Extract the first word of "$ac_prog", so it can be a program name with args.
9662 set dummy $ac_prog; ac_word=$2
9663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9664 echo "configure:9665: checking for $ac_word" >&5
9665 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9667 else
9668 if test -n "$YACC"; then
9669 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9670 else
9671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9672 ac_dummy="$PATH"
9673 for ac_dir in $ac_dummy; do
9674 test -z "$ac_dir" && ac_dir=.
9675 if test -f $ac_dir/$ac_word; then
9676 ac_cv_prog_YACC="$ac_prog"
9677 break
9678 fi
9679 done
9680 IFS="$ac_save_ifs"
9681 fi
9682 fi
9683 YACC="$ac_cv_prog_YACC"
9684 if test -n "$YACC"; then
9685 echo "$ac_t""$YACC" 1>&6
9686 else
9687 echo "$ac_t""no" 1>&6
9688 fi
9689
9690 test -n "$YACC" && break
9691 done
9692 test -n "$YACC" || YACC="yacc"
9693
9694
9695 # Extract the first word of "flex", so it can be a program name with args.
9696 set dummy flex; ac_word=$2
9697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9698 echo "configure:9699: checking for $ac_word" >&5
9699 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9700 echo $ac_n "(cached) $ac_c" 1>&6
9701 else
9702 if test -n "$LEX"; then
9703 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9704 else
9705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9706 ac_dummy="$PATH"
9707 for ac_dir in $ac_dummy; do
9708 test -z "$ac_dir" && ac_dir=.
9709 if test -f $ac_dir/$ac_word; then
9710 ac_cv_prog_LEX="flex"
9711 break
9712 fi
9713 done
9714 IFS="$ac_save_ifs"
9715 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9716 fi
9717 fi
9718 LEX="$ac_cv_prog_LEX"
9719 if test -n "$LEX"; then
9720 echo "$ac_t""$LEX" 1>&6
9721 else
9722 echo "$ac_t""no" 1>&6
9723 fi
9724
9725 if test -z "$LEXLIB"
9726 then
9727 case "$LEX" in
9728 flex*) ac_lib=fl ;;
9729 *) ac_lib=l ;;
9730 esac
9731 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9732 echo "configure:9733: checking for yywrap in -l$ac_lib" >&5
9733 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9735 echo $ac_n "(cached) $ac_c" 1>&6
9736 else
9737 ac_save_LIBS="$LIBS"
9738 LIBS="-l$ac_lib $LIBS"
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745 char yywrap();
9746
9747 int main() {
9748 yywrap()
9749 ; return 0; }
9750 EOF
9751 if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9752 rm -rf conftest*
9753 eval "ac_cv_lib_$ac_lib_var=yes"
9754 else
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_lib_$ac_lib_var=no"
9759 fi
9760 rm -f conftest*
9761 LIBS="$ac_save_LIBS"
9762
9763 fi
9764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9765 echo "$ac_t""yes" 1>&6
9766 LEXLIB="-l$ac_lib"
9767 else
9768 echo "$ac_t""no" 1>&6
9769 fi
9770
9771 fi
9772
9773
9774 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9775 echo "configure:9776: checking whether ln -s works" >&5
9776 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9779 rm -f conftestdata
9780 if ln -s X conftestdata 2>/dev/null
9781 then
9782 rm -f conftestdata
9783 ac_cv_prog_LN_S="ln -s"
9784 else
9785 ac_cv_prog_LN_S=ln
9786 fi
9787 fi
9788 LN_S="$ac_cv_prog_LN_S"
9789 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9790 echo "$ac_t""yes" 1>&6
9791 else
9792 echo "$ac_t""no" 1>&6
9793 fi
9794
9795
9796 case "${host}" in
9797 *-pc-os2_emx | *-pc-os2-emx )
9798 LIBS="$LIBS -lstdcpp"
9799 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9800 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9801 echo "configure:9802: checking for drand48 in -lcExt" >&5
9802 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9806 ac_save_LIBS="$LIBS"
9807 LIBS="-lcExt $LIBS"
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 /* Override any gcc2 internal prototype to avoid an error. */
9812 /* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9814 char drand48();
9815
9816 int main() {
9817 drand48()
9818 ; return 0; }
9819 EOF
9820 if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9821 rm -rf conftest*
9822 eval "ac_cv_lib_$ac_lib_var=yes"
9823 else
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 eval "ac_cv_lib_$ac_lib_var=no"
9828 fi
9829 rm -f conftest*
9830 LIBS="$ac_save_LIBS"
9831
9832 fi
9833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9834 echo "$ac_t""yes" 1>&6
9835 LIBS="$LIBS -lcExt"
9836 else
9837 echo "$ac_t""no" 1>&6
9838 fi
9839
9840 else
9841 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9842 fi
9843 ;;
9844 esac
9845
9846
9847 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9848 for ac_hdr in strings.h
9849 do
9850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9852 echo "configure:9853: checking for $ac_hdr" >&5
9853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9854 echo $ac_n "(cached) $ac_c" 1>&6
9855 else
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859 #include <$ac_hdr>
9860 EOF
9861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9862 { (eval echo configure:9863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9864 if test -z "$ac_err"; then
9865 rm -rf conftest*
9866 eval "ac_cv_header_$ac_safe=yes"
9867 else
9868 echo "$ac_err" >&5
9869 echo "configure: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9871 rm -rf conftest*
9872 eval "ac_cv_header_$ac_safe=no"
9873 fi
9874 rm -f conftest*
9875 fi
9876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9877 echo "$ac_t""yes" 1>&6
9878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9879 cat >> confdefs.h <<EOF
9880 #define $ac_tr_hdr 1
9881 EOF
9882
9883 else
9884 echo "$ac_t""no" 1>&6
9885 fi
9886 done
9887
9888 fi
9889
9890 for ac_hdr in stdlib.h
9891 do
9892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9894 echo "configure:9895: checking for $ac_hdr" >&5
9895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9897 else
9898 cat > conftest.$ac_ext <<EOF
9899 #line 9900 "configure"
9900 #include "confdefs.h"
9901 #include <$ac_hdr>
9902 EOF
9903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9904 { (eval echo configure:9905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9906 if test -z "$ac_err"; then
9907 rm -rf conftest*
9908 eval "ac_cv_header_$ac_safe=yes"
9909 else
9910 echo "$ac_err" >&5
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9913 rm -rf conftest*
9914 eval "ac_cv_header_$ac_safe=no"
9915 fi
9916 rm -f conftest*
9917 fi
9918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9919 echo "$ac_t""yes" 1>&6
9920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9921 cat >> confdefs.h <<EOF
9922 #define $ac_tr_hdr 1
9923 EOF
9924
9925 else
9926 echo "$ac_t""no" 1>&6
9927 fi
9928 done
9929
9930 for ac_hdr in malloc.h
9931 do
9932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9934 echo "configure:9935: checking for $ac_hdr" >&5
9935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9941 #include <$ac_hdr>
9942 EOF
9943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9944 { (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9946 if test -z "$ac_err"; then
9947 rm -rf conftest*
9948 eval "ac_cv_header_$ac_safe=yes"
9949 else
9950 echo "$ac_err" >&5
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 eval "ac_cv_header_$ac_safe=no"
9955 fi
9956 rm -f conftest*
9957 fi
9958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9959 echo "$ac_t""yes" 1>&6
9960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9961 cat >> confdefs.h <<EOF
9962 #define $ac_tr_hdr 1
9963 EOF
9964
9965 else
9966 echo "$ac_t""no" 1>&6
9967 fi
9968 done
9969
9970 for ac_hdr in unistd.h
9971 do
9972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9974 echo "configure:9975: checking for $ac_hdr" >&5
9975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9976 echo $ac_n "(cached) $ac_c" 1>&6
9977 else
9978 cat > conftest.$ac_ext <<EOF
9979 #line 9980 "configure"
9980 #include "confdefs.h"
9981 #include <$ac_hdr>
9982 EOF
9983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9984 { (eval echo configure:9985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9986 if test -z "$ac_err"; then
9987 rm -rf conftest*
9988 eval "ac_cv_header_$ac_safe=yes"
9989 else
9990 echo "$ac_err" >&5
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9993 rm -rf conftest*
9994 eval "ac_cv_header_$ac_safe=no"
9995 fi
9996 rm -f conftest*
9997 fi
9998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9999 echo "$ac_t""yes" 1>&6
10000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10001 cat >> confdefs.h <<EOF
10002 #define $ac_tr_hdr 1
10003 EOF
10004
10005 else
10006 echo "$ac_t""no" 1>&6
10007 fi
10008 done
10009
10010 for ac_hdr in wchar.h
10011 do
10012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10014 echo "configure:10015: checking for $ac_hdr" >&5
10015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10016 echo $ac_n "(cached) $ac_c" 1>&6
10017 else
10018 cat > conftest.$ac_ext <<EOF
10019 #line 10020 "configure"
10020 #include "confdefs.h"
10021 #include <$ac_hdr>
10022 EOF
10023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10024 { (eval echo configure:10025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10026 if test -z "$ac_err"; then
10027 rm -rf conftest*
10028 eval "ac_cv_header_$ac_safe=yes"
10029 else
10030 echo "$ac_err" >&5
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 rm -rf conftest*
10034 eval "ac_cv_header_$ac_safe=no"
10035 fi
10036 rm -f conftest*
10037 fi
10038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10039 echo "$ac_t""yes" 1>&6
10040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10041 cat >> confdefs.h <<EOF
10042 #define $ac_tr_hdr 1
10043 EOF
10044
10045 else
10046 echo "$ac_t""no" 1>&6
10047 fi
10048 done
10049
10050
10051 if test "$ac_cv_header_wchar_h" != "yes"; then
10052 for ac_hdr in wcstr.h
10053 do
10054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10056 echo "configure:10057: checking for $ac_hdr" >&5
10057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
10059 else
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 #include <$ac_hdr>
10064 EOF
10065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10066 { (eval echo configure:10067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10068 if test -z "$ac_err"; then
10069 rm -rf conftest*
10070 eval "ac_cv_header_$ac_safe=yes"
10071 else
10072 echo "$ac_err" >&5
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 rm -rf conftest*
10076 eval "ac_cv_header_$ac_safe=no"
10077 fi
10078 rm -f conftest*
10079 fi
10080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10081 echo "$ac_t""yes" 1>&6
10082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10083 cat >> confdefs.h <<EOF
10084 #define $ac_tr_hdr 1
10085 EOF
10086
10087 else
10088 echo "$ac_t""no" 1>&6
10089 fi
10090 done
10091
10092 fi
10093
10094 for ac_hdr in fnmatch.h
10095 do
10096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10098 echo "configure:10099: checking for $ac_hdr" >&5
10099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10101 else
10102 cat > conftest.$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10105 #include <$ac_hdr>
10106 EOF
10107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10108 { (eval echo configure:10109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10110 if test -z "$ac_err"; then
10111 rm -rf conftest*
10112 eval "ac_cv_header_$ac_safe=yes"
10113 else
10114 echo "$ac_err" >&5
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 rm -rf conftest*
10118 eval "ac_cv_header_$ac_safe=no"
10119 fi
10120 rm -f conftest*
10121 fi
10122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10123 echo "$ac_t""yes" 1>&6
10124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10125 cat >> confdefs.h <<EOF
10126 #define $ac_tr_hdr 1
10127 EOF
10128
10129 else
10130 echo "$ac_t""no" 1>&6
10131 fi
10132 done
10133
10134
10135 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10136 for ac_func in fnmatch
10137 do
10138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10139 echo "configure:10140: checking for $ac_func" >&5
10140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10141 echo $ac_n "(cached) $ac_c" 1>&6
10142 else
10143 cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 /* System header to define __stub macros and hopefully few prototypes,
10147 which can conflict with char $ac_func(); below. */
10148 #include <assert.h>
10149 /* Override any gcc2 internal prototype to avoid an error. */
10150 /* We use char because int might match the return type of a gcc2
10151 builtin and then its argument prototype would still apply. */
10152 char $ac_func();
10153
10154 int main() {
10155
10156 /* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10160 choke me
10161 #else
10162 $ac_func();
10163 #endif
10164
10165 ; return 0; }
10166 EOF
10167 if { (eval echo configure:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10168 rm -rf conftest*
10169 eval "ac_cv_func_$ac_func=yes"
10170 else
10171 echo "configure: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10173 rm -rf conftest*
10174 eval "ac_cv_func_$ac_func=no"
10175 fi
10176 rm -f conftest*
10177 fi
10178
10179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10180 echo "$ac_t""yes" 1>&6
10181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10182 cat >> confdefs.h <<EOF
10183 #define $ac_tr_func 1
10184 EOF
10185
10186 else
10187 echo "$ac_t""no" 1>&6
10188 fi
10189 done
10190
10191 fi
10192
10193 for ac_hdr in langinfo.h
10194 do
10195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10197 echo "configure:10198: checking for $ac_hdr" >&5
10198 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10200 else
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 #include <$ac_hdr>
10205 EOF
10206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10207 { (eval echo configure:10208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10209 if test -z "$ac_err"; then
10210 rm -rf conftest*
10211 eval "ac_cv_header_$ac_safe=yes"
10212 else
10213 echo "$ac_err" >&5
10214 echo "configure: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10216 rm -rf conftest*
10217 eval "ac_cv_header_$ac_safe=no"
10218 fi
10219 rm -f conftest*
10220 fi
10221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10222 echo "$ac_t""yes" 1>&6
10223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10224 cat >> confdefs.h <<EOF
10225 #define $ac_tr_hdr 1
10226 EOF
10227
10228 else
10229 echo "$ac_t""no" 1>&6
10230 fi
10231 done
10232
10233
10234 case "${host}" in
10235 *-pc-os2_emx | *-pc-os2-emx )
10236 if test $ac_cv_header_langinfo_h = "yes"; then
10237 LIBS="$LIBS -lintl"
10238 fi
10239 ;;
10240 esac
10241
10242 if test "$wxUSE_GUI" = "yes"; then
10243 if test "$wxUSE_UNIX" = "yes"; then
10244 for ac_hdr in X11/XKBlib.h
10245 do
10246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10248 echo "configure:10249: checking for $ac_hdr" >&5
10249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 #include <$ac_hdr>
10256 EOF
10257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10258 { (eval echo configure:10259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10260 if test -z "$ac_err"; then
10261 rm -rf conftest*
10262 eval "ac_cv_header_$ac_safe=yes"
10263 else
10264 echo "$ac_err" >&5
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -rf conftest*
10268 eval "ac_cv_header_$ac_safe=no"
10269 fi
10270 rm -f conftest*
10271 fi
10272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10273 echo "$ac_t""yes" 1>&6
10274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10275 cat >> confdefs.h <<EOF
10276 #define $ac_tr_hdr 1
10277 EOF
10278
10279 else
10280 echo "$ac_t""no" 1>&6
10281 fi
10282 done
10283
10284 fi
10285 fi
10286
10287
10288 echo $ac_n "checking for working const""... $ac_c" 1>&6
10289 echo "configure:10290: checking for working const" >&5
10290 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10292 else
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10296
10297 int main() {
10298
10299 /* Ultrix mips cc rejects this. */
10300 typedef int charset[2]; const charset x;
10301 /* SunOS 4.1.1 cc rejects this. */
10302 char const *const *ccp;
10303 char **p;
10304 /* NEC SVR4.0.2 mips cc rejects this. */
10305 struct point {int x, y;};
10306 static struct point const zero = {0,0};
10307 /* AIX XL C 1.02.0.0 rejects this.
10308 It does not let you subtract one const X* pointer from another in an arm
10309 of an if-expression whose if-part is not a constant expression */
10310 const char *g = "string";
10311 ccp = &g + (g ? g-g : 0);
10312 /* HPUX 7.0 cc rejects these. */
10313 ++ccp;
10314 p = (char**) ccp;
10315 ccp = (char const *const *) p;
10316 { /* SCO 3.2v4 cc rejects this. */
10317 char *t;
10318 char const *s = 0 ? (char *) 0 : (char const *) 0;
10319
10320 *t++ = 0;
10321 }
10322 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10323 int x[] = {25, 17};
10324 const int *foo = &x[0];
10325 ++foo;
10326 }
10327 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10328 typedef const int *iptr;
10329 iptr p = 0;
10330 ++p;
10331 }
10332 { /* AIX XL C 1.02.0.0 rejects this saying
10333 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10334 struct s { int j; const int *ap[3]; };
10335 struct s *b; b->j = 5;
10336 }
10337 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10338 const int foo = 10;
10339 }
10340
10341 ; return 0; }
10342 EOF
10343 if { (eval echo configure:10344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10344 rm -rf conftest*
10345 ac_cv_c_const=yes
10346 else
10347 echo "configure: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10349 rm -rf conftest*
10350 ac_cv_c_const=no
10351 fi
10352 rm -f conftest*
10353 fi
10354
10355 echo "$ac_t""$ac_cv_c_const" 1>&6
10356 if test $ac_cv_c_const = no; then
10357 cat >> confdefs.h <<\EOF
10358 #define const
10359 EOF
10360
10361 fi
10362
10363 echo $ac_n "checking for inline""... $ac_c" 1>&6
10364 echo "configure:10365: checking for inline" >&5
10365 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10367 else
10368 ac_cv_c_inline=no
10369 for ac_kw in inline __inline__ __inline; do
10370 cat > conftest.$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10373
10374 int main() {
10375 } $ac_kw foo() {
10376 ; return 0; }
10377 EOF
10378 if { (eval echo configure:10379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10379 rm -rf conftest*
10380 ac_cv_c_inline=$ac_kw; break
10381 else
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10384 fi
10385 rm -f conftest*
10386 done
10387
10388 fi
10389
10390 echo "$ac_t""$ac_cv_c_inline" 1>&6
10391 case "$ac_cv_c_inline" in
10392 inline | yes) ;;
10393 no) cat >> confdefs.h <<\EOF
10394 #define inline
10395 EOF
10396 ;;
10397 *) cat >> confdefs.h <<EOF
10398 #define inline $ac_cv_c_inline
10399 EOF
10400 ;;
10401 esac
10402
10403
10404 echo $ac_n "checking size of char""... $ac_c" 1>&6
10405 echo "configure:10406: checking size of char" >&5
10406 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10408 else
10409 if test "$cross_compiling" = yes; then
10410 ac_cv_sizeof_char=1
10411 else
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10415 #include <stdio.h>
10416 #include <sys/types.h>
10417 main()
10418 {
10419 FILE *f=fopen("conftestval", "w");
10420 if (!f) exit(1);
10421 fprintf(f, "%d\n", sizeof(char));
10422 exit(0);
10423 }
10424 EOF
10425 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10426 then
10427 ac_cv_sizeof_char=`cat conftestval`
10428 else
10429 echo "configure: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 rm -fr conftest*
10432 ac_cv_sizeof_char=0
10433 fi
10434 rm -fr conftest*
10435 fi
10436
10437 fi
10438 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10439 cat >> confdefs.h <<EOF
10440 #define SIZEOF_CHAR $ac_cv_sizeof_char
10441 EOF
10442
10443
10444 echo $ac_n "checking size of short""... $ac_c" 1>&6
10445 echo "configure:10446: checking size of short" >&5
10446 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10448 else
10449 if test "$cross_compiling" = yes; then
10450 ac_cv_sizeof_short=2
10451 else
10452 cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10455 #include <stdio.h>
10456 #include <sys/types.h>
10457 main()
10458 {
10459 FILE *f=fopen("conftestval", "w");
10460 if (!f) exit(1);
10461 fprintf(f, "%d\n", sizeof(short));
10462 exit(0);
10463 }
10464 EOF
10465 if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10466 then
10467 ac_cv_sizeof_short=`cat conftestval`
10468 else
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10471 rm -fr conftest*
10472 ac_cv_sizeof_short=0
10473 fi
10474 rm -fr conftest*
10475 fi
10476
10477 fi
10478 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10479 cat >> confdefs.h <<EOF
10480 #define SIZEOF_SHORT $ac_cv_sizeof_short
10481 EOF
10482
10483
10484 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10485 echo "configure:10486: checking size of void *" >&5
10486 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10488 else
10489 if test "$cross_compiling" = yes; then
10490 ac_cv_sizeof_void_p=4
10491 else
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10495 #include <stdio.h>
10496 #include <sys/types.h>
10497 main()
10498 {
10499 FILE *f=fopen("conftestval", "w");
10500 if (!f) exit(1);
10501 fprintf(f, "%d\n", sizeof(void *));
10502 exit(0);
10503 }
10504 EOF
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10506 then
10507 ac_cv_sizeof_void_p=`cat conftestval`
10508 else
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 rm -fr conftest*
10512 ac_cv_sizeof_void_p=0
10513 fi
10514 rm -fr conftest*
10515 fi
10516
10517 fi
10518 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10519 cat >> confdefs.h <<EOF
10520 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10521 EOF
10522
10523
10524 echo $ac_n "checking size of int""... $ac_c" 1>&6
10525 echo "configure:10526: checking size of int" >&5
10526 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10528 else
10529 if test "$cross_compiling" = yes; then
10530 ac_cv_sizeof_int=4
10531 else
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10535 #include <stdio.h>
10536 #include <sys/types.h>
10537 main()
10538 {
10539 FILE *f=fopen("conftestval", "w");
10540 if (!f) exit(1);
10541 fprintf(f, "%d\n", sizeof(int));
10542 exit(0);
10543 }
10544 EOF
10545 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10546 then
10547 ac_cv_sizeof_int=`cat conftestval`
10548 else
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -fr conftest*
10552 ac_cv_sizeof_int=0
10553 fi
10554 rm -fr conftest*
10555 fi
10556
10557 fi
10558 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10559 cat >> confdefs.h <<EOF
10560 #define SIZEOF_INT $ac_cv_sizeof_int
10561 EOF
10562
10563
10564 echo $ac_n "checking size of long""... $ac_c" 1>&6
10565 echo "configure:10566: checking size of long" >&5
10566 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10568 else
10569 if test "$cross_compiling" = yes; then
10570 ac_cv_sizeof_long=4
10571 else
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10575 #include <stdio.h>
10576 #include <sys/types.h>
10577 main()
10578 {
10579 FILE *f=fopen("conftestval", "w");
10580 if (!f) exit(1);
10581 fprintf(f, "%d\n", sizeof(long));
10582 exit(0);
10583 }
10584 EOF
10585 if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10586 then
10587 ac_cv_sizeof_long=`cat conftestval`
10588 else
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 rm -fr conftest*
10592 ac_cv_sizeof_long=0
10593 fi
10594 rm -fr conftest*
10595 fi
10596
10597 fi
10598 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10599 cat >> confdefs.h <<EOF
10600 #define SIZEOF_LONG $ac_cv_sizeof_long
10601 EOF
10602
10603
10604
10605 case "${host}" in
10606 arm-*-linux* )
10607 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10608 echo "configure:10609: checking size of long long" >&5
10609 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10611 else
10612 if test "$cross_compiling" = yes; then
10613 ac_cv_sizeof_long_long=8
10614 else
10615 cat > conftest.$ac_ext <<EOF
10616 #line 10617 "configure"
10617 #include "confdefs.h"
10618 #include <stdio.h>
10619 #include <sys/types.h>
10620 main()
10621 {
10622 FILE *f=fopen("conftestval", "w");
10623 if (!f) exit(1);
10624 fprintf(f, "%d\n", sizeof(long long));
10625 exit(0);
10626 }
10627 EOF
10628 if { (eval echo configure:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10629 then
10630 ac_cv_sizeof_long_long=`cat conftestval`
10631 else
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 rm -fr conftest*
10635 ac_cv_sizeof_long_long=0
10636 fi
10637 rm -fr conftest*
10638 fi
10639
10640 fi
10641 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10642 cat >> confdefs.h <<EOF
10643 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10644 EOF
10645
10646
10647 ;;
10648 *-hp-hpux* )
10649 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10650 echo "configure:10651: checking size of long long" >&5
10651 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10653 else
10654 if test "$cross_compiling" = yes; then
10655 ac_cv_sizeof_long_long=0
10656 else
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include <stdio.h>
10661 #include <sys/types.h>
10662 main()
10663 {
10664 FILE *f=fopen("conftestval", "w");
10665 if (!f) exit(1);
10666 fprintf(f, "%d\n", sizeof(long long));
10667 exit(0);
10668 }
10669 EOF
10670 if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10671 then
10672 ac_cv_sizeof_long_long=`cat conftestval`
10673 else
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 rm -fr conftest*
10677 ac_cv_sizeof_long_long=0
10678 fi
10679 rm -fr conftest*
10680 fi
10681
10682 fi
10683 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10684 cat >> confdefs.h <<EOF
10685 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10686 EOF
10687
10688
10689 if test "$ac_cv_sizeof_long_long" != "0"; then
10690 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10691 fi
10692 ;;
10693 * )
10694 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10695 echo "configure:10696: checking size of long long" >&5
10696 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10698 else
10699 if test "$cross_compiling" = yes; then
10700 ac_cv_sizeof_long_long=0
10701 else
10702 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure"
10704 #include "confdefs.h"
10705 #include <stdio.h>
10706 #include <sys/types.h>
10707 main()
10708 {
10709 FILE *f=fopen("conftestval", "w");
10710 if (!f) exit(1);
10711 fprintf(f, "%d\n", sizeof(long long));
10712 exit(0);
10713 }
10714 EOF
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10716 then
10717 ac_cv_sizeof_long_long=`cat conftestval`
10718 else
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 rm -fr conftest*
10722 ac_cv_sizeof_long_long=0
10723 fi
10724 rm -fr conftest*
10725 fi
10726
10727 fi
10728 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10729 cat >> confdefs.h <<EOF
10730 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10731 EOF
10732
10733
10734 esac
10735
10736 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10737 echo "configure:10738: checking size of wchar_t" >&5
10738 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10740 else
10741
10742 if test "$cross_compiling" = yes; then
10743
10744 case "${host}" in
10745 *-pc-msdosdjgpp )
10746 wx_cv_sizeof_wchar_t=0
10747 ;;
10748 * )
10749 wx_cv_sizeof_wchar_t=4
10750 ;;
10751 esac
10752
10753
10754 else
10755 cat > conftest.$ac_ext <<EOF
10756 #line 10757 "configure"
10757 #include "confdefs.h"
10758
10759 /* DJGPP only has fake wchar_t: */
10760 #ifdef __DJGPP__
10761 # error "fake wchar_t"
10762 #endif
10763 #ifdef HAVE_WCHAR_H
10764 # ifdef __CYGWIN__
10765 # include <stddef.h>
10766 # endif
10767 # include <wchar.h>
10768 #endif
10769 #ifdef HAVE_STDLIB_H
10770 # include <stdlib.h>
10771 #endif
10772 #include <stdio.h>
10773 int main()
10774 {
10775 FILE *f=fopen("conftestval", "w");
10776 if (!f) exit(1);
10777 fprintf(f, "%i", sizeof(wchar_t));
10778 exit(0);
10779 }
10780
10781 EOF
10782 if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10783 then
10784 wx_cv_sizeof_wchar_t=`cat conftestval`
10785 else
10786 echo "configure: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10788 rm -fr conftest*
10789 wx_cv_sizeof_wchar_t=0
10790 fi
10791 rm -fr conftest*
10792 fi
10793
10794
10795 fi
10796
10797 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10798
10799 cat >> confdefs.h <<EOF
10800 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10801 EOF
10802
10803
10804 # Check whether --enable-largefile or --disable-largefile was given.
10805 if test "${enable_largefile+set}" = set; then
10806 enableval="$enable_largefile"
10807 :
10808 fi
10809
10810 if test "$enable_largefile" != no; then
10811 wx_largefile=no
10812
10813 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10814 echo "configure:10815: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10815 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10817 else
10818
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10822 #define _FILE_OFFSET_BITS 64
10823 #include <sys/types.h>
10824 int main() {
10825 typedef struct {
10826 unsigned int field: sizeof(off_t) == 8;
10827 } wxlf;
10828
10829 ; return 0; }
10830 EOF
10831 if { (eval echo configure:10832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10832 rm -rf conftest*
10833 ac_cv_sys_file_offset_bits=64
10834 else
10835 echo "configure: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 rm -rf conftest*
10838 ac_cv_sys_file_offset_bits=no
10839 fi
10840 rm -f conftest*
10841
10842
10843 fi
10844
10845 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10846
10847 if test "$ac_cv_sys_file_offset_bits" != no; then
10848 wx_largefile=yes
10849 cat >> confdefs.h <<EOF
10850 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10851 EOF
10852
10853 fi
10854
10855 if test "x$wx_largefile" != "xyes"; then
10856
10857 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10858 echo "configure:10859: checking for _LARGE_FILES value needed for large files" >&5
10859 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10860 echo $ac_n "(cached) $ac_c" 1>&6
10861 else
10862
10863 cat > conftest.$ac_ext <<EOF
10864 #line 10865 "configure"
10865 #include "confdefs.h"
10866 #define _LARGE_FILES 1
10867 #include <sys/types.h>
10868 int main() {
10869 typedef struct {
10870 unsigned int field: sizeof(off_t) == 8;
10871 } wxlf;
10872
10873 ; return 0; }
10874 EOF
10875 if { (eval echo configure:10876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10876 rm -rf conftest*
10877 ac_cv_sys_large_files=1
10878 else
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10881 rm -rf conftest*
10882 ac_cv_sys_large_files=no
10883 fi
10884 rm -f conftest*
10885
10886
10887 fi
10888
10889 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10890
10891 if test "$ac_cv_sys_large_files" != no; then
10892 wx_largefile=yes
10893 cat >> confdefs.h <<EOF
10894 #define _LARGE_FILES $ac_cv_sys_large_files
10895 EOF
10896
10897 fi
10898
10899 fi
10900
10901 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10902 echo "configure:10903: checking if large file support is available" >&5
10903 if test "x$wx_largefile" = "xyes"; then
10904 cat >> confdefs.h <<\EOF
10905 #define HAVE_LARGEFILE_SUPPORT 1
10906 EOF
10907
10908 fi
10909 echo "$ac_t""$wx_largefile" 1>&6
10910 fi
10911
10912
10913 if test "x$wx_largefile" = "xyes"; then
10914 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10915 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10916 else
10917 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10918 fi
10919 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10920 fi
10921
10922 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10923 echo "configure:10924: checking whether byte ordering is bigendian" >&5
10924 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10925 echo $ac_n "(cached) $ac_c" 1>&6
10926 else
10927 ac_cv_c_bigendian=unknown
10928 # See if sys/param.h defines the BYTE_ORDER macro.
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10932 #include <sys/types.h>
10933 #include <sys/param.h>
10934 int main() {
10935
10936 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10937 bogus endian macros
10938 #endif
10939 ; return 0; }
10940 EOF
10941 if { (eval echo configure:10942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10942 rm -rf conftest*
10943 # It does; now see whether it defined to BIG_ENDIAN or not.
10944 cat > conftest.$ac_ext <<EOF
10945 #line 10946 "configure"
10946 #include "confdefs.h"
10947 #include <sys/types.h>
10948 #include <sys/param.h>
10949 int main() {
10950
10951 #if BYTE_ORDER != BIG_ENDIAN
10952 not big endian
10953 #endif
10954 ; return 0; }
10955 EOF
10956 if { (eval echo configure:10957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10957 rm -rf conftest*
10958 ac_cv_c_bigendian=yes
10959 else
10960 echo "configure: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10962 rm -rf conftest*
10963 ac_cv_c_bigendian=no
10964 fi
10965 rm -f conftest*
10966 else
10967 echo "configure: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10969 fi
10970 rm -f conftest*
10971 if test $ac_cv_c_bigendian = unknown; then
10972 if test "$cross_compiling" = yes; then
10973 ac_cv_c_bigendian=unknown
10974 else
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10978 main () {
10979 /* Are we little or big endian? From Harbison&Steele. */
10980 union
10981 {
10982 long l;
10983 char c[sizeof (long)];
10984 } u;
10985 u.l = 1;
10986 exit (u.c[sizeof (long) - 1] == 1);
10987 }
10988 EOF
10989 if { (eval echo configure:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10990 then
10991 ac_cv_c_bigendian=no
10992 else
10993 echo "configure: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10995 rm -fr conftest*
10996 ac_cv_c_bigendian=yes
10997 fi
10998 rm -fr conftest*
10999 fi
11000
11001 fi
11002 fi
11003
11004 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11005 if test $ac_cv_c_bigendian = unknown; then
11006 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
11007 fi
11008 if test $ac_cv_c_bigendian = yes; then
11009 cat >> confdefs.h <<\EOF
11010 #define WORDS_BIGENDIAN 1
11011 EOF
11012
11013 fi
11014
11015
11016 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11017 echo "configure:11018: checking how to run the C++ preprocessor" >&5
11018 if test -z "$CXXCPP"; then
11019 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11021 else
11022 ac_ext=C
11023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11024 ac_cpp='$CXXCPP $CPPFLAGS'
11025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11027 cross_compiling=$ac_cv_prog_cxx_cross
11028 CXXCPP="${CXX-g++} -E"
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 #include <stdlib.h>
11033 EOF
11034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11035 { (eval echo configure:11036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11037 if test -z "$ac_err"; then
11038 :
11039 else
11040 echo "$ac_err" >&5
11041 echo "configure: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11043 rm -rf conftest*
11044 CXXCPP=/lib/cpp
11045 fi
11046 rm -f conftest*
11047 ac_cv_prog_CXXCPP="$CXXCPP"
11048 ac_ext=C
11049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11050 ac_cpp='$CXXCPP $CPPFLAGS'
11051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11053 cross_compiling=$ac_cv_prog_cxx_cross
11054 fi
11055 fi
11056 CXXCPP="$ac_cv_prog_CXXCPP"
11057 echo "$ac_t""$CXXCPP" 1>&6
11058
11059
11060 if test "$cross_compiling" = "yes"; then
11061 cat >> confdefs.h <<\EOF
11062 #define wxUSE_IOSTREAMH 1
11063 EOF
11064
11065 else
11066
11067 ac_ext=C
11068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11069 ac_cpp='$CXXCPP $CPPFLAGS'
11070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11072 cross_compiling=$ac_cv_prog_cxx_cross
11073
11074
11075 for ac_hdr in iostream
11076 do
11077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11079 echo "configure:11080: checking for $ac_hdr" >&5
11080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11082 else
11083 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11086 #include <$ac_hdr>
11087 EOF
11088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11089 { (eval echo configure:11090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11091 if test -z "$ac_err"; then
11092 rm -rf conftest*
11093 eval "ac_cv_header_$ac_safe=yes"
11094 else
11095 echo "$ac_err" >&5
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 rm -rf conftest*
11099 eval "ac_cv_header_$ac_safe=no"
11100 fi
11101 rm -f conftest*
11102 fi
11103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11104 echo "$ac_t""yes" 1>&6
11105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11106 cat >> confdefs.h <<EOF
11107 #define $ac_tr_hdr 1
11108 EOF
11109
11110 else
11111 echo "$ac_t""no" 1>&6
11112 fi
11113 done
11114
11115
11116 if test "$ac_cv_header_iostream" = "yes" ; then
11117 :
11118 else
11119 cat >> confdefs.h <<\EOF
11120 #define wxUSE_IOSTREAMH 1
11121 EOF
11122
11123 fi
11124
11125 ac_ext=c
11126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11127 ac_cpp='$CPP $CPPFLAGS'
11128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11130 cross_compiling=$ac_cv_prog_cc_cross
11131
11132 fi
11133
11134
11135
11136 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11137 echo "configure:11138: checking if C++ compiler supports bool" >&5
11138 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11139 echo $ac_n "(cached) $ac_c" 1>&6
11140 else
11141
11142
11143 ac_ext=C
11144 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11145 ac_cpp='$CXXCPP $CPPFLAGS'
11146 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11147 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11148 cross_compiling=$ac_cv_prog_cxx_cross
11149
11150
11151 cat > conftest.$ac_ext <<EOF
11152 #line 11153 "configure"
11153 #include "confdefs.h"
11154
11155
11156 int main() {
11157
11158 bool b = true;
11159
11160 return 0;
11161
11162 ; return 0; }
11163 EOF
11164 if { (eval echo configure:11165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11165 rm -rf conftest*
11166
11167 wx_cv_cpp_bool=yes
11168
11169 else
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11172 rm -rf conftest*
11173
11174 wx_cv_cpp_bool=no
11175
11176
11177 fi
11178 rm -f conftest*
11179
11180 ac_ext=c
11181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11182 ac_cpp='$CPP $CPPFLAGS'
11183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11185 cross_compiling=$ac_cv_prog_cc_cross
11186
11187
11188 fi
11189
11190 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11191
11192 if test "$wx_cv_cpp_bool" = "yes"; then
11193 cat >> confdefs.h <<\EOF
11194 #define HAVE_BOOL 1
11195 EOF
11196
11197 fi
11198
11199
11200
11201 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11202 echo "configure:11203: checking if C++ compiler supports the explicit keyword" >&5
11203 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11204 echo $ac_n "(cached) $ac_c" 1>&6
11205 else
11206
11207
11208 ac_ext=C
11209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11210 ac_cpp='$CXXCPP $CPPFLAGS'
11211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11213 cross_compiling=$ac_cv_prog_cxx_cross
11214
11215
11216 cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219
11220 class Foo { public: explicit Foo(int) {} };
11221
11222 int main() {
11223
11224 return 0;
11225
11226 ; return 0; }
11227 EOF
11228 if { (eval echo configure:11229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11229 rm -rf conftest*
11230
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11234
11235 class Foo { public: explicit Foo(int) {} };
11236 static void TakeFoo(const Foo& foo) { }
11237
11238 int main() {
11239
11240 TakeFoo(17);
11241 return 0;
11242
11243 ; return 0; }
11244 EOF
11245 if { (eval echo configure:11246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11246 rm -rf conftest*
11247 wx_cv_explicit=no
11248 else
11249 echo "configure: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11251 rm -rf conftest*
11252 wx_cv_explicit=yes
11253
11254 fi
11255 rm -f conftest*
11256
11257 else
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11260 rm -rf conftest*
11261 wx_cv_explicit=no
11262
11263 fi
11264 rm -f conftest*
11265
11266 ac_ext=c
11267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11268 ac_cpp='$CPP $CPPFLAGS'
11269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11271 cross_compiling=$ac_cv_prog_cc_cross
11272
11273
11274 fi
11275
11276 echo "$ac_t""$wx_cv_explicit" 1>&6
11277
11278 if test "$wx_cv_explicit" = "yes"; then
11279 cat >> confdefs.h <<\EOF
11280 #define HAVE_EXPLICIT 1
11281 EOF
11282
11283 fi
11284
11285
11286 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11287 echo "configure:11288: checking whether the compiler supports const_cast<>" >&5
11288 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290 else
11291
11292 ac_ext=C
11293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11294 ac_cpp='$CXXCPP $CPPFLAGS'
11295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11297 cross_compiling=$ac_cv_prog_cxx_cross
11298
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302
11303 int main() {
11304 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11305 ; return 0; }
11306 EOF
11307 if { (eval echo configure:11308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11308 rm -rf conftest*
11309 ac_cv_cxx_const_cast=yes
11310 else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 ac_cv_cxx_const_cast=no
11315 fi
11316 rm -f conftest*
11317 ac_ext=c
11318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11319 ac_cpp='$CPP $CPPFLAGS'
11320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11322 cross_compiling=$ac_cv_prog_cc_cross
11323
11324
11325 fi
11326
11327 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11328 if test "$ac_cv_cxx_const_cast" = yes; then
11329 cat >> confdefs.h <<\EOF
11330 #define HAVE_CONST_CAST
11331 EOF
11332
11333 fi
11334
11335
11336
11337 SEARCH_INCLUDE="\
11338 /usr/local/include \
11339 \
11340 /usr/Motif-1.2/include \
11341 /usr/Motif-2.1/include \
11342 \
11343 /usr/include/Motif1.2 \
11344 /opt/xpm/include/X11 \
11345 /opt/GBxpm/include/ \
11346 /opt/GBxpm/X11/include/ \
11347 \
11348 /usr/Motif1.2/include \
11349 /usr/dt/include \
11350 /usr/openwin/include \
11351 \
11352 /usr/include/Xm \
11353 \
11354 /usr/X11R6/include \
11355 /usr/X11R6.4/include \
11356 /usr/X11R5/include \
11357 /usr/X11R4/include \
11358 \
11359 /usr/include/X11R6 \
11360 /usr/include/X11R5 \
11361 /usr/include/X11R4 \
11362 \
11363 /usr/local/X11R6/include \
11364 /usr/local/X11R5/include \
11365 /usr/local/X11R4/include \
11366 \
11367 /usr/local/include/X11R6 \
11368 /usr/local/include/X11R5 \
11369 /usr/local/include/X11R4 \
11370 \
11371 /usr/X11/include \
11372 /usr/include/X11 \
11373 /usr/local/X11/include \
11374 /usr/local/include/X11 \
11375 \
11376 /usr/X386/include \
11377 /usr/x386/include \
11378 /usr/XFree86/include/X11 \
11379 \
11380 X:/XFree86/include \
11381 X:/XFree86/include/X11 \
11382 \
11383 /usr/include/gtk \
11384 /usr/local/include/gtk \
11385 /usr/include/glib \
11386 /usr/local/include/glib \
11387 \
11388 /usr/include/qt \
11389 /usr/local/include/qt \
11390 \
11391 /usr/include/windows \
11392 /usr/include/wine \
11393 /usr/local/include/wine \
11394 \
11395 /usr/unsupported/include \
11396 /usr/athena/include \
11397 /usr/local/x11r5/include \
11398 /usr/lpp/Xamples/include \
11399 \
11400 /usr/openwin/share/include"
11401
11402 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11403
11404
11405 cat > confcache <<\EOF
11406 # This file is a shell script that caches the results of configure
11407 # tests run on this system so they can be shared between configure
11408 # scripts and configure runs. It is not useful on other systems.
11409 # If it contains results you don't want to keep, you may remove or edit it.
11410 #
11411 # By default, configure uses ./config.cache as the cache file,
11412 # creating it if it does not exist already. You can give configure
11413 # the --cache-file=FILE option to use a different cache file; that is
11414 # what configure does when it calls configure scripts in
11415 # subdirectories, so they share the cache.
11416 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11417 # config.status only pays attention to the cache file if you give it the
11418 # --recheck option to rerun configure.
11419 #
11420 EOF
11421 # The following way of writing the cache mishandles newlines in values,
11422 # but we know of no workaround that is simple, portable, and efficient.
11423 # So, don't put newlines in cache variables' values.
11424 # Ultrix sh set writes to stderr and can't be redirected directly,
11425 # and sets the high bit in the cache file unless we assign to the vars.
11426 (set) 2>&1 |
11427 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11428 *ac_space=\ *)
11429 # `set' does not quote correctly, so add quotes (double-quote substitution
11430 # turns \\\\ into \\, and sed turns \\ into \).
11431 sed -n \
11432 -e "s/'/'\\\\''/g" \
11433 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11434 ;;
11435 *)
11436 # `set' quotes correctly as required by POSIX, so do not add quotes.
11437 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11438 ;;
11439 esac >> confcache
11440 if cmp -s $cache_file confcache; then
11441 :
11442 else
11443 if test -w $cache_file; then
11444 echo "updating cache $cache_file"
11445 cat confcache > $cache_file
11446 else
11447 echo "not updating unwritable cache $cache_file"
11448 fi
11449 fi
11450 rm -f confcache
11451
11452
11453 if test "$USE_LINUX" = 1; then
11454 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11455 echo "configure:11456: checking for glibc 2.1 or later" >&5
11456 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11457 echo $ac_n "(cached) $ac_c" 1>&6
11458 else
11459
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11463 #include <features.h>
11464 int main() {
11465
11466 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11467 #error not glibc2.1
11468 #endif
11469
11470 ; return 0; }
11471 EOF
11472 if { (eval echo configure:11473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11473 rm -rf conftest*
11474
11475 wx_cv_lib_glibc21=yes
11476
11477 else
11478 echo "configure: failed program was:" >&5
11479 cat conftest.$ac_ext >&5
11480 rm -rf conftest*
11481
11482 wx_cv_lib_glibc21=no
11483
11484
11485 fi
11486 rm -f conftest*
11487
11488 fi
11489
11490 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11491 if test "$wx_cv_lib_glibc21" = "yes"; then
11492 cat >> confdefs.h <<\EOF
11493 #define wxHAVE_GLIBC2 1
11494 EOF
11495
11496 fi
11497 fi
11498
11499 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11500 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11501 cat >> confdefs.h <<\EOF
11502 #define _GNU_SOURCE 1
11503 EOF
11504
11505 fi
11506 fi
11507
11508
11509
11510 REGEX_INCLUDE=
11511 if test "$wxUSE_REGEX" != "no"; then
11512 cat >> confdefs.h <<\EOF
11513 #define wxUSE_REGEX 1
11514 EOF
11515
11516
11517 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11518 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11519 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11520 echo "configure:11521: checking for regex.h" >&5
11521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11522 echo $ac_n "(cached) $ac_c" 1>&6
11523 else
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 #include <regex.h>
11528 EOF
11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11532 if test -z "$ac_err"; then
11533 rm -rf conftest*
11534 eval "ac_cv_header_$ac_safe=yes"
11535 else
11536 echo "$ac_err" >&5
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -rf conftest*
11540 eval "ac_cv_header_$ac_safe=no"
11541 fi
11542 rm -f conftest*
11543 fi
11544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11545 echo "$ac_t""yes" 1>&6
11546 for ac_func in regcomp
11547 do
11548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11549 echo "configure:11550: checking for $ac_func" >&5
11550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11551 echo $ac_n "(cached) $ac_c" 1>&6
11552 else
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11556 /* System header to define __stub macros and hopefully few prototypes,
11557 which can conflict with char $ac_func(); below. */
11558 #include <assert.h>
11559 /* Override any gcc2 internal prototype to avoid an error. */
11560 /* We use char because int might match the return type of a gcc2
11561 builtin and then its argument prototype would still apply. */
11562 char $ac_func();
11563
11564 int main() {
11565
11566 /* The GNU C library defines this for functions which it implements
11567 to always fail with ENOSYS. Some functions are actually named
11568 something starting with __ and the normal name is an alias. */
11569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11570 choke me
11571 #else
11572 $ac_func();
11573 #endif
11574
11575 ; return 0; }
11576 EOF
11577 if { (eval echo configure:11578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11578 rm -rf conftest*
11579 eval "ac_cv_func_$ac_func=yes"
11580 else
11581 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11583 rm -rf conftest*
11584 eval "ac_cv_func_$ac_func=no"
11585 fi
11586 rm -f conftest*
11587 fi
11588
11589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11590 echo "$ac_t""yes" 1>&6
11591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11592 cat >> confdefs.h <<EOF
11593 #define $ac_tr_func 1
11594 EOF
11595
11596 else
11597 echo "$ac_t""no" 1>&6
11598 fi
11599 done
11600
11601 else
11602 echo "$ac_t""no" 1>&6
11603 fi
11604
11605
11606 if test "x$ac_cv_func_regcomp" != "xyes"; then
11607 if test "$wxUSE_REGEX" = "sys" ; then
11608 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11609 else
11610 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11611 wxUSE_REGEX=builtin
11612 fi
11613 else
11614 wxUSE_REGEX=sys
11615 fi
11616 fi
11617
11618 if test "$wxUSE_REGEX" = "builtin" ; then
11619 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11620 fi
11621 fi
11622
11623
11624 ZLIB_INCLUDE=
11625 ZLIB_LINK=
11626 if test "$wxUSE_ZLIB" != "no" ; then
11627 cat >> confdefs.h <<\EOF
11628 #define wxUSE_ZLIB 1
11629 EOF
11630
11631
11632 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11633 if test "$USE_DARWIN" = 1; then
11634 system_zlib_h_ok="yes"
11635 else
11636 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11637 echo "configure:11638: checking for zlib.h >= 1.1.4" >&5
11638 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11639 echo $ac_n "(cached) $ac_c" 1>&6
11640 else
11641 if test "$cross_compiling" = yes; then
11642 unset ac_cv_header_zlib_h
11643
11644 else
11645 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648
11649 #include <zlib.h>
11650 #include <stdio.h>
11651
11652 int main()
11653 {
11654 FILE *f=fopen("conftestval", "w");
11655 if (!f) exit(1);
11656 fprintf(f, "%s",
11657 ZLIB_VERSION[0] == '1' &&
11658 (ZLIB_VERSION[2] > '1' ||
11659 (ZLIB_VERSION[2] == '1' &&
11660 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11661 exit(0);
11662 }
11663
11664 EOF
11665 if { (eval echo configure:11666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11666 then
11667 ac_cv_header_zlib_h=`cat conftestval`
11668 else
11669 echo "configure: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 rm -fr conftest*
11672 ac_cv_header_zlib_h=no
11673 fi
11674 rm -fr conftest*
11675 fi
11676
11677
11678 fi
11679
11680 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11681 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11682 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11683 echo "configure:11684: checking for zlib.h" >&5
11684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11685 echo $ac_n "(cached) $ac_c" 1>&6
11686 else
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 #include <zlib.h>
11691 EOF
11692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11693 { (eval echo configure:11694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11695 if test -z "$ac_err"; then
11696 rm -rf conftest*
11697 eval "ac_cv_header_$ac_safe=yes"
11698 else
11699 echo "$ac_err" >&5
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 rm -rf conftest*
11703 eval "ac_cv_header_$ac_safe=no"
11704 fi
11705 rm -f conftest*
11706 fi
11707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 :
11710 else
11711 echo "$ac_t""no" 1>&6
11712 fi
11713
11714
11715 system_zlib_h_ok=$ac_cv_header_zlib_h
11716 fi
11717
11718 if test "$system_zlib_h_ok" = "yes"; then
11719 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11720 echo "configure:11721: checking for deflate in -lz" >&5
11721 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11723 echo $ac_n "(cached) $ac_c" 1>&6
11724 else
11725 ac_save_LIBS="$LIBS"
11726 LIBS="-lz $LIBS"
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11730 /* Override any gcc2 internal prototype to avoid an error. */
11731 /* We use char because int might match the return type of a gcc2
11732 builtin and then its argument prototype would still apply. */
11733 char deflate();
11734
11735 int main() {
11736 deflate()
11737 ; return 0; }
11738 EOF
11739 if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11740 rm -rf conftest*
11741 eval "ac_cv_lib_$ac_lib_var=yes"
11742 else
11743 echo "configure: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 rm -rf conftest*
11746 eval "ac_cv_lib_$ac_lib_var=no"
11747 fi
11748 rm -f conftest*
11749 LIBS="$ac_save_LIBS"
11750
11751 fi
11752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11753 echo "$ac_t""yes" 1>&6
11754 ZLIB_LINK=" -lz"
11755 else
11756 echo "$ac_t""no" 1>&6
11757 fi
11758
11759 fi
11760
11761 if test "x$ZLIB_LINK" = "x" ; then
11762 if test "$wxUSE_ZLIB" = "sys" ; then
11763 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11764 else
11765 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11766 wxUSE_ZLIB=builtin
11767 fi
11768 else
11769 wxUSE_ZLIB=sys
11770 fi
11771 fi
11772
11773 if test "$wxUSE_ZLIB" = "builtin" ; then
11774 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11775 fi
11776 fi
11777
11778
11779 PNG_INCLUDE=
11780 PNG_LINK=
11781 if test "$wxUSE_LIBPNG" != "no" ; then
11782 cat >> confdefs.h <<\EOF
11783 #define wxUSE_LIBPNG 1
11784 EOF
11785
11786
11787 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11788 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11789 wxUSE_LIBPNG=sys
11790 fi
11791
11792 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11793 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11794 wxUSE_LIBPNG=builtin
11795 fi
11796
11797 if test "$wxUSE_MGL" != 1 ; then
11798 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11799 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11800 echo "configure:11801: checking for png.h > 0.90" >&5
11801 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11802 echo $ac_n "(cached) $ac_c" 1>&6
11803 else
11804 if test "$cross_compiling" = yes; then
11805 unset ac_cv_header_png_h
11806
11807 else
11808 cat > conftest.$ac_ext <<EOF
11809 #line 11810 "configure"
11810 #include "confdefs.h"
11811
11812 #include <png.h>
11813 #include <stdio.h>
11814
11815 int main()
11816 {
11817 FILE *f=fopen("conftestval", "w");
11818 if (!f) exit(1);
11819 fprintf(f, "%s",
11820 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11821 exit(0);
11822 }
11823
11824 EOF
11825 if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11826 then
11827 ac_cv_header_png_h=`cat conftestval`
11828 else
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -fr conftest*
11832 ac_cv_header_png_h=no
11833 fi
11834 rm -fr conftest*
11835 fi
11836
11837
11838 fi
11839
11840 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11841 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11842 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11843 echo "configure:11844: checking for png.h" >&5
11844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11846 else
11847 cat > conftest.$ac_ext <<EOF
11848 #line 11849 "configure"
11849 #include "confdefs.h"
11850 #include <png.h>
11851 EOF
11852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11853 { (eval echo configure:11854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11855 if test -z "$ac_err"; then
11856 rm -rf conftest*
11857 eval "ac_cv_header_$ac_safe=yes"
11858 else
11859 echo "$ac_err" >&5
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 rm -rf conftest*
11863 eval "ac_cv_header_$ac_safe=no"
11864 fi
11865 rm -f conftest*
11866 fi
11867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11868 echo "$ac_t""yes" 1>&6
11869 :
11870 else
11871 echo "$ac_t""no" 1>&6
11872 fi
11873
11874
11875 if test "$ac_cv_header_png_h" = "yes"; then
11876 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11877 echo "configure:11878: checking for png_check_sig in -lpng" >&5
11878 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11880 echo $ac_n "(cached) $ac_c" 1>&6
11881 else
11882 ac_save_LIBS="$LIBS"
11883 LIBS="-lpng -lz -lm $LIBS"
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11887 /* Override any gcc2 internal prototype to avoid an error. */
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11890 char png_check_sig();
11891
11892 int main() {
11893 png_check_sig()
11894 ; return 0; }
11895 EOF
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897 rm -rf conftest*
11898 eval "ac_cv_lib_$ac_lib_var=yes"
11899 else
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 rm -rf conftest*
11903 eval "ac_cv_lib_$ac_lib_var=no"
11904 fi
11905 rm -f conftest*
11906 LIBS="$ac_save_LIBS"
11907
11908 fi
11909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 PNG_LINK=" -lpng"
11912 else
11913 echo "$ac_t""no" 1>&6
11914 fi
11915
11916 fi
11917
11918 if test "x$PNG_LINK" = "x" ; then
11919 if test "$wxUSE_LIBPNG" = "sys" ; then
11920 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11921 else
11922 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11923 wxUSE_LIBPNG=builtin
11924 fi
11925 else
11926 wxUSE_LIBPNG=sys
11927 fi
11928 fi
11929 fi
11930
11931 if test "$wxUSE_LIBPNG" = "builtin" ; then
11932 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11933 fi
11934
11935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11936 fi
11937
11938
11939 JPEG_INCLUDE=
11940 JPEG_LINK=
11941 if test "$wxUSE_LIBJPEG" != "no" ; then
11942 cat >> confdefs.h <<\EOF
11943 #define wxUSE_LIBJPEG 1
11944 EOF
11945
11946
11947 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11948 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11949 wxUSE_LIBJPEG=sys
11950 fi
11951
11952 if test "$wxUSE_MGL" != 1 ; then
11953 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11954 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11955 echo "configure:11956: checking for jpeglib.h" >&5
11956 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11957 echo $ac_n "(cached) $ac_c" 1>&6
11958 else
11959 cat > conftest.$ac_ext <<EOF
11960 #line 11961 "configure"
11961 #include "confdefs.h"
11962
11963 #undef HAVE_STDLIB_H
11964 #include <stdio.h>
11965 #include <jpeglib.h>
11966
11967 int main() {
11968
11969
11970 ; return 0; }
11971 EOF
11972 if { (eval echo configure:11973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11973 rm -rf conftest*
11974 ac_cv_header_jpeglib_h=yes
11975 else
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 rm -rf conftest*
11979 ac_cv_header_jpeglib_h=no
11980
11981 fi
11982 rm -f conftest*
11983
11984 fi
11985
11986 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11987
11988 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11989 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11990 echo "configure:11991: checking for jpeg_read_header in -ljpeg" >&5
11991 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11993 echo $ac_n "(cached) $ac_c" 1>&6
11994 else
11995 ac_save_LIBS="$LIBS"
11996 LIBS="-ljpeg $LIBS"
11997 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 /* Override any gcc2 internal prototype to avoid an error. */
12001 /* We use char because int might match the return type of a gcc2
12002 builtin and then its argument prototype would still apply. */
12003 char jpeg_read_header();
12004
12005 int main() {
12006 jpeg_read_header()
12007 ; return 0; }
12008 EOF
12009 if { (eval echo configure:12010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12010 rm -rf conftest*
12011 eval "ac_cv_lib_$ac_lib_var=yes"
12012 else
12013 echo "configure: failed program was:" >&5
12014 cat conftest.$ac_ext >&5
12015 rm -rf conftest*
12016 eval "ac_cv_lib_$ac_lib_var=no"
12017 fi
12018 rm -f conftest*
12019 LIBS="$ac_save_LIBS"
12020
12021 fi
12022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12023 echo "$ac_t""yes" 1>&6
12024 JPEG_LINK=" -ljpeg"
12025 else
12026 echo "$ac_t""no" 1>&6
12027 fi
12028
12029 fi
12030
12031 if test "x$JPEG_LINK" = "x" ; then
12032 if test "$wxUSE_LIBJPEG" = "sys" ; then
12033 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12034 else
12035 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12036 wxUSE_LIBJPEG=builtin
12037 fi
12038 else
12039 wxUSE_LIBJPEG=sys
12040 fi
12041 fi
12042 fi
12043
12044 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12045 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12046 fi
12047 fi
12048
12049
12050 TIFF_INCLUDE=
12051 TIFF_LINK=
12052 TIFF_PREREQ_LINKS=-lm
12053 if test "$wxUSE_LIBTIFF" != "no" ; then
12054 cat >> confdefs.h <<\EOF
12055 #define wxUSE_LIBTIFF 1
12056 EOF
12057
12058
12059 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12060 if test "$wxUSE_LIBJPEG" = "sys"; then
12061 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12062 fi
12063 if test "$wxUSE_ZLIB" = "sys"; then
12064 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12065 fi
12066 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12067 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12068 echo "configure:12069: checking for tiffio.h" >&5
12069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12070 echo $ac_n "(cached) $ac_c" 1>&6
12071 else
12072 cat > conftest.$ac_ext <<EOF
12073 #line 12074 "configure"
12074 #include "confdefs.h"
12075 #include <tiffio.h>
12076 EOF
12077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12078 { (eval echo configure:12079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12080 if test -z "$ac_err"; then
12081 rm -rf conftest*
12082 eval "ac_cv_header_$ac_safe=yes"
12083 else
12084 echo "$ac_err" >&5
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 rm -rf conftest*
12088 eval "ac_cv_header_$ac_safe=no"
12089 fi
12090 rm -f conftest*
12091 fi
12092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12093 echo "$ac_t""yes" 1>&6
12094 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12095 echo "configure:12096: checking for TIFFError in -ltiff" >&5
12096 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12098 echo $ac_n "(cached) $ac_c" 1>&6
12099 else
12100 ac_save_LIBS="$LIBS"
12101 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12102 cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12105 /* Override any gcc2 internal prototype to avoid an error. */
12106 /* We use char because int might match the return type of a gcc2
12107 builtin and then its argument prototype would still apply. */
12108 char TIFFError();
12109
12110 int main() {
12111 TIFFError()
12112 ; return 0; }
12113 EOF
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12115 rm -rf conftest*
12116 eval "ac_cv_lib_$ac_lib_var=yes"
12117 else
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12120 rm -rf conftest*
12121 eval "ac_cv_lib_$ac_lib_var=no"
12122 fi
12123 rm -f conftest*
12124 LIBS="$ac_save_LIBS"
12125
12126 fi
12127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12128 echo "$ac_t""yes" 1>&6
12129 TIFF_LINK=" -ltiff"
12130 else
12131 echo "$ac_t""no" 1>&6
12132 fi
12133
12134
12135 else
12136 echo "$ac_t""no" 1>&6
12137 fi
12138
12139
12140 if test "x$TIFF_LINK" = "x" ; then
12141 if test "$wxUSE_LIBTIFF" = "sys" ; then
12142 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12143 else
12144 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12145 wxUSE_LIBTIFF=builtin
12146 fi
12147 else
12148 wxUSE_LIBTIFF=sys
12149 fi
12150 fi
12151
12152 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12153 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12154 fi
12155 fi
12156
12157
12158 AFMINSTALL=
12159 WIN32INSTALL=
12160
12161 TOOLKIT=
12162 TOOLKIT_INCLUDE=
12163 WIDGET_SET=
12164
12165 if test "$USE_WIN32" = 1 ; then
12166 for ac_hdr in w32api.h
12167 do
12168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12170 echo "configure:12171: checking for $ac_hdr" >&5
12171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12172 echo $ac_n "(cached) $ac_c" 1>&6
12173 else
12174 cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 #include <$ac_hdr>
12178 EOF
12179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12180 { (eval echo configure:12181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12182 if test -z "$ac_err"; then
12183 rm -rf conftest*
12184 eval "ac_cv_header_$ac_safe=yes"
12185 else
12186 echo "$ac_err" >&5
12187 echo "configure: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 rm -rf conftest*
12190 eval "ac_cv_header_$ac_safe=no"
12191 fi
12192 rm -f conftest*
12193 fi
12194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12195 echo "$ac_t""yes" 1>&6
12196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12197 cat >> confdefs.h <<EOF
12198 #define $ac_tr_hdr 1
12199 EOF
12200
12201 else
12202 echo "$ac_t""no" 1>&6
12203 fi
12204 done
12205
12206 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12207 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12208 echo "configure:12209: checking for windows.h" >&5
12209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12210 echo $ac_n "(cached) $ac_c" 1>&6
12211 else
12212 cat > conftest.$ac_ext <<EOF
12213 #line 12214 "configure"
12214 #include "confdefs.h"
12215 #include <windows.h>
12216 EOF
12217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12218 { (eval echo configure:12219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12220 if test -z "$ac_err"; then
12221 rm -rf conftest*
12222 eval "ac_cv_header_$ac_safe=yes"
12223 else
12224 echo "$ac_err" >&5
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 rm -rf conftest*
12228 eval "ac_cv_header_$ac_safe=no"
12229 fi
12230 rm -f conftest*
12231 fi
12232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12233 echo "$ac_t""yes" 1>&6
12234 :
12235 else
12236 echo "$ac_t""no" 1>&6
12237
12238 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12239
12240 fi
12241
12242
12243 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12244 echo "configure:12245: checking if w32api has good enough MSIE support" >&5
12245 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12246 echo $ac_n "(cached) $ac_c" 1>&6
12247 else
12248
12249 cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 #include <w32api.h>
12253 int main() {
12254
12255 #define wxCHECK_W32API_VERSION( major, minor ) \
12256 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12257 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12258 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12259
12260 #if !wxCHECK_W32API_VERSION(1,1)
12261 #error You need w32api 1.1 or newer
12262 #endif
12263
12264 ; return 0; }
12265 EOF
12266 if { (eval echo configure:12267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12267 rm -rf conftest*
12268
12269 wx_cv_w32api_win32_ie=yes
12270
12271 else
12272 echo "configure: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12274 rm -rf conftest*
12275
12276 wx_cv_w32api_win32_ie=no
12277
12278 fi
12279 rm -f conftest*
12280
12281 fi
12282
12283 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12284 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12285 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12286 fi
12287
12288 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12289
12290 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12291 LIBS="$LIBS -loleacc"
12292 fi
12293
12294 case "${host}" in
12295 *-*-cygwin* )
12296 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12297 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12298 esac
12299
12300 if test "$wxUSE_ODBC" = "sys" ; then
12301 wxUSE_ODBC = "yes"
12302 fi
12303 if test "$wxUSE_ODBC" = "yes" ; then
12304 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12305 cat >> confdefs.h <<\EOF
12306 #define wxUSE_ODBC 1
12307 EOF
12308
12309 fi
12310
12311 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12312 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12313
12314 WIN32INSTALL=win32install
12315 fi
12316
12317 if test "$USE_DARWIN" = 1; then
12318 if test "$wxUSE_PRECOMP" = "yes"; then
12319 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12320 else
12321 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12322 fi
12323 fi
12324
12325 if test "$wxUSE_GUI" = "yes"; then
12326 USE_GUI=1
12327
12328 GUI_TK_LIBRARY=
12329
12330 WXGTK12=
12331 WXGTK127=
12332 WXGTK20=
12333
12334 if test "$wxUSE_MSW" = 1 ; then
12335 TOOLKIT=MSW
12336 GUIDIST=MSW_DIST
12337
12338 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12339 fi
12340
12341 if test "$wxUSE_GTK" = 1; then
12342 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12343 echo "configure:12344: checking for GTK+ version" >&5
12344
12345 gtk_version_cached=1
12346 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12347 echo $ac_n "(cached) $ac_c" 1>&6
12348 else
12349
12350 gtk_version_cached=0
12351 echo "$ac_t""" 1>&6
12352
12353 GTK_MODULES=
12354 if test "$wxUSE_THREADS" = "yes"; then
12355 GTK_MODULES=gthread
12356 fi
12357
12358 wx_cv_lib_gtk=
12359 if test "x$wxUSE_GTK2" = "xyes"; then
12360 # Check whether --enable-gtktest or --disable-gtktest was given.
12361 if test "${enable_gtktest+set}" = set; then
12362 enableval="$enable_gtktest"
12363 :
12364 else
12365 enable_gtktest=yes
12366 fi
12367
12368
12369 pkg_config_args=gtk+-2.0
12370 for module in . $GTK_MODULES
12371 do
12372 case "$module" in
12373 gthread)
12374 pkg_config_args="$pkg_config_args gthread-2.0"
12375 ;;
12376 esac
12377 done
12378
12379 no_gtk=""
12380
12381 # Extract the first word of "pkg-config", so it can be a program name with args.
12382 set dummy pkg-config; ac_word=$2
12383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12384 echo "configure:12385: checking for $ac_word" >&5
12385 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12386 echo $ac_n "(cached) $ac_c" 1>&6
12387 else
12388 case "$PKG_CONFIG" in
12389 /*)
12390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12391 ;;
12392 ?:/*)
12393 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12394 ;;
12395 *)
12396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12397 ac_dummy="$PATH"
12398 for ac_dir in $ac_dummy; do
12399 test -z "$ac_dir" && ac_dir=.
12400 if test -f $ac_dir/$ac_word; then
12401 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12402 break
12403 fi
12404 done
12405 IFS="$ac_save_ifs"
12406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12407 ;;
12408 esac
12409 fi
12410 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12411 if test -n "$PKG_CONFIG"; then
12412 echo "$ac_t""$PKG_CONFIG" 1>&6
12413 else
12414 echo "$ac_t""no" 1>&6
12415 fi
12416
12417
12418 if test x$PKG_CONFIG != xno ; then
12419 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12420 :
12421 else
12422 echo *** pkg-config too old; version 0.7 or better required.
12423 no_gtk=yes
12424 PKG_CONFIG=no
12425 fi
12426 else
12427 no_gtk=yes
12428 fi
12429
12430 min_gtk_version=2.0.0
12431 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12432 echo "configure:12433: checking for GTK+ - version >= $min_gtk_version" >&5
12433
12434 if test x$PKG_CONFIG != xno ; then
12435 ## don't try to run the test against uninstalled libtool libs
12436 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12437 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12438 enable_gtktest=no
12439 fi
12440
12441 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12442 :
12443 else
12444 no_gtk=yes
12445 fi
12446 fi
12447
12448 if test x"$no_gtk" = x ; then
12449 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12450 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12451 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12453 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12454 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12455 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12456 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12457 if test "x$enable_gtktest" = "xyes" ; then
12458 ac_save_CFLAGS="$CFLAGS"
12459 ac_save_LIBS="$LIBS"
12460 CFLAGS="$CFLAGS $GTK_CFLAGS"
12461 LIBS="$GTK_LIBS $LIBS"
12462 rm -f conf.gtktest
12463 if test "$cross_compiling" = yes; then
12464 echo $ac_n "cross compiling; assumed OK... $ac_c"
12465 else
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12469
12470 #include <gtk/gtk.h>
12471 #include <stdio.h>
12472 #include <stdlib.h>
12473
12474 int
12475 main ()
12476 {
12477 int major, minor, micro;
12478 char *tmp_version;
12479
12480 system ("touch conf.gtktest");
12481
12482 /* HP/UX 9 (%@#!) writes to sscanf strings */
12483 tmp_version = g_strdup("$min_gtk_version");
12484 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12485 printf("%s, bad version string\n", "$min_gtk_version");
12486 exit(1);
12487 }
12488
12489 if ((gtk_major_version != $gtk_config_major_version) ||
12490 (gtk_minor_version != $gtk_config_minor_version) ||
12491 (gtk_micro_version != $gtk_config_micro_version))
12492 {
12493 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12494 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12495 gtk_major_version, gtk_minor_version, gtk_micro_version);
12496 printf ("*** was found! If pkg-config was correct, then it is best\n");
12497 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12498 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12499 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12500 printf("*** required on your system.\n");
12501 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12502 printf("*** to point to the correct configuration files\n");
12503 }
12504 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12505 (gtk_minor_version != GTK_MINOR_VERSION) ||
12506 (gtk_micro_version != GTK_MICRO_VERSION))
12507 {
12508 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12509 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12510 printf("*** library (version %d.%d.%d)\n",
12511 gtk_major_version, gtk_minor_version, gtk_micro_version);
12512 }
12513 else
12514 {
12515 if ((gtk_major_version > major) ||
12516 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12517 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12518 {
12519 return 0;
12520 }
12521 else
12522 {
12523 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12524 gtk_major_version, gtk_minor_version, gtk_micro_version);
12525 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12526 major, minor, micro);
12527 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12528 printf("***\n");
12529 printf("*** If you have already installed a sufficiently new version, this error\n");
12530 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12531 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12532 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12533 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12534 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12535 printf("*** so that the correct libraries are found at run-time))\n");
12536 }
12537 }
12538 return 1;
12539 }
12540
12541 EOF
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12543 then
12544 :
12545 else
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 rm -fr conftest*
12549 no_gtk=yes
12550 fi
12551 rm -fr conftest*
12552 fi
12553
12554 CFLAGS="$ac_save_CFLAGS"
12555 LIBS="$ac_save_LIBS"
12556 fi
12557 fi
12558 if test "x$no_gtk" = x ; then
12559 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12560 wx_cv_lib_gtk=2.0
12561 else
12562 echo "$ac_t""no" 1>&6
12563 if test "$PKG_CONFIG" = "no" ; then
12564 echo "*** A new enough version of pkg-config was not found."
12565 echo "*** See http://pkgconfig.sourceforge.net"
12566 else
12567 if test -f conf.gtktest ; then
12568 :
12569 else
12570 echo "*** Could not run GTK+ test program, checking why..."
12571 ac_save_CFLAGS="$CFLAGS"
12572 ac_save_LIBS="$LIBS"
12573 CFLAGS="$CFLAGS $GTK_CFLAGS"
12574 LIBS="$LIBS $GTK_LIBS"
12575 cat > conftest.$ac_ext <<EOF
12576 #line 12577 "configure"
12577 #include "confdefs.h"
12578
12579 #include <gtk/gtk.h>
12580 #include <stdio.h>
12581
12582 int main() {
12583 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12584 ; return 0; }
12585 EOF
12586 if { (eval echo configure:12587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12587 rm -rf conftest*
12588 echo "*** The test program compiled, but did not run. This usually means"
12589 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12590 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12591 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12592 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12593 echo "*** is required on your system"
12594 echo "***"
12595 echo "*** If you have an old version installed, it is best to remove it, although"
12596 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12597 else
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 rm -rf conftest*
12601 echo "*** The test program failed to compile or link. See the file config.log for the"
12602 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12603 fi
12604 rm -f conftest*
12605 CFLAGS="$ac_save_CFLAGS"
12606 LIBS="$ac_save_LIBS"
12607 fi
12608 fi
12609 GTK_CFLAGS=""
12610 GTK_LIBS=""
12611 :
12612 fi
12613
12614
12615 rm -f conf.gtktest
12616
12617 else
12618 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12619 if test "${with_gtk_prefix+set}" = set; then
12620 withval="$with_gtk_prefix"
12621 gtk_config_prefix="$withval"
12622 else
12623 gtk_config_prefix=""
12624 fi
12625
12626 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12627 if test "${with_gtk_exec_prefix+set}" = set; then
12628 withval="$with_gtk_exec_prefix"
12629 gtk_config_exec_prefix="$withval"
12630 else
12631 gtk_config_exec_prefix=""
12632 fi
12633
12634 # Check whether --enable-gtktest or --disable-gtktest was given.
12635 if test "${enable_gtktest+set}" = set; then
12636 enableval="$enable_gtktest"
12637 :
12638 else
12639 enable_gtktest=yes
12640 fi
12641
12642
12643 for module in . $GTK_MODULES
12644 do
12645 case "$module" in
12646 gthread)
12647 gtk_config_args="$gtk_config_args gthread"
12648 ;;
12649 esac
12650 done
12651
12652 if test x$gtk_config_exec_prefix != x ; then
12653 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12654 if test x${GTK_CONFIG+set} != xset ; then
12655 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12656 fi
12657 fi
12658 if test x$gtk_config_prefix != x ; then
12659 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12660 if test x${GTK_CONFIG+set} != xset ; then
12661 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12662 fi
12663 fi
12664
12665 # Extract the first word of "gtk-config", so it can be a program name with args.
12666 set dummy gtk-config; ac_word=$2
12667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12668 echo "configure:12669: checking for $ac_word" >&5
12669 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12671 else
12672 case "$GTK_CONFIG" in
12673 /*)
12674 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12675 ;;
12676 ?:/*)
12677 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12678 ;;
12679 *)
12680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12681 ac_dummy="$PATH"
12682 for ac_dir in $ac_dummy; do
12683 test -z "$ac_dir" && ac_dir=.
12684 if test -f $ac_dir/$ac_word; then
12685 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12686 break
12687 fi
12688 done
12689 IFS="$ac_save_ifs"
12690 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12691 ;;
12692 esac
12693 fi
12694 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12695 if test -n "$GTK_CONFIG"; then
12696 echo "$ac_t""$GTK_CONFIG" 1>&6
12697 else
12698 echo "$ac_t""no" 1>&6
12699 fi
12700
12701 min_gtk_version=1.2.7
12702 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12703 echo "configure:12704: checking for GTK - version >= $min_gtk_version" >&5
12704 no_gtk=""
12705 if test "$GTK_CONFIG" = "no" ; then
12706 no_gtk=yes
12707 else
12708 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12709 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12710 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12711 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12712 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12713 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12714 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12715 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12716 if test "x$enable_gtktest" = "xyes" ; then
12717 ac_save_CFLAGS="$CFLAGS"
12718 ac_save_LIBS="$LIBS"
12719 CFLAGS="$CFLAGS $GTK_CFLAGS"
12720 LIBS="$GTK_LIBS $LIBS"
12721 rm -f conf.gtktest
12722 if test "$cross_compiling" = yes; then
12723 echo $ac_n "cross compiling; assumed OK... $ac_c"
12724 else
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728
12729 #include <gtk/gtk.h>
12730 #include <stdio.h>
12731 #include <stdlib.h>
12732
12733 int
12734 main ()
12735 {
12736 int major, minor, micro;
12737 char *tmp_version;
12738
12739 system ("touch conf.gtktest");
12740
12741 /* HP/UX 9 (%@#!) writes to sscanf strings */
12742 tmp_version = g_strdup("$min_gtk_version");
12743 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12744 printf("%s, bad version string\n", "$min_gtk_version");
12745 exit(1);
12746 }
12747
12748 if ((gtk_major_version != $gtk_config_major_version) ||
12749 (gtk_minor_version != $gtk_config_minor_version) ||
12750 (gtk_micro_version != $gtk_config_micro_version))
12751 {
12752 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12753 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12754 gtk_major_version, gtk_minor_version, gtk_micro_version);
12755 printf ("*** was found! If gtk-config was correct, then it is best\n");
12756 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12757 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12758 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12759 printf("*** required on your system.\n");
12760 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12761 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12762 printf("*** before re-running configure\n");
12763 }
12764 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12765 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12766 (gtk_minor_version != GTK_MINOR_VERSION) ||
12767 (gtk_micro_version != GTK_MICRO_VERSION))
12768 {
12769 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12770 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12771 printf("*** library (version %d.%d.%d)\n",
12772 gtk_major_version, gtk_minor_version, gtk_micro_version);
12773 }
12774 #endif /* defined (GTK_MAJOR_VERSION) ... */
12775 else
12776 {
12777 if ((gtk_major_version > major) ||
12778 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12779 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12780 {
12781 return 0;
12782 }
12783 else
12784 {
12785 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12786 gtk_major_version, gtk_minor_version, gtk_micro_version);
12787 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12788 major, minor, micro);
12789 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12790 printf("***\n");
12791 printf("*** If you have already installed a sufficiently new version, this error\n");
12792 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12793 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12794 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12795 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12796 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12797 printf("*** so that the correct libraries are found at run-time))\n");
12798 }
12799 }
12800 return 1;
12801 }
12802
12803 EOF
12804 if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12805 then
12806 :
12807 else
12808 echo "configure: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 rm -fr conftest*
12811 no_gtk=yes
12812 fi
12813 rm -fr conftest*
12814 fi
12815
12816 CFLAGS="$ac_save_CFLAGS"
12817 LIBS="$ac_save_LIBS"
12818 fi
12819 fi
12820 if test "x$no_gtk" = x ; then
12821 echo "$ac_t""yes" 1>&6
12822 wx_cv_lib_gtk=1.2.7
12823 else
12824 echo "$ac_t""no" 1>&6
12825 if test "$GTK_CONFIG" = "no" ; then
12826 echo "*** The gtk-config script installed by GTK could not be found"
12827 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12828 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12829 echo "*** full path to gtk-config."
12830 else
12831 if test -f conf.gtktest ; then
12832 :
12833 else
12834 echo "*** Could not run GTK test program, checking why..."
12835 CFLAGS="$CFLAGS $GTK_CFLAGS"
12836 LIBS="$LIBS $GTK_LIBS"
12837 cat > conftest.$ac_ext <<EOF
12838 #line 12839 "configure"
12839 #include "confdefs.h"
12840
12841 #include <gtk/gtk.h>
12842 #include <stdio.h>
12843
12844 int main() {
12845 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12846 ; return 0; }
12847 EOF
12848 if { (eval echo configure:12849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12849 rm -rf conftest*
12850 echo "*** The test program compiled, but did not run. This usually means"
12851 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12852 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12853 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12854 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12855 echo "*** is required on your system"
12856 echo "***"
12857 echo "*** If you have an old version installed, it is best to remove it, although"
12858 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12859 echo "***"
12860 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12861 echo "*** came with the system with the command"
12862 echo "***"
12863 echo "*** rpm --erase --nodeps gtk gtk-devel"
12864 else
12865 echo "configure: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 rm -rf conftest*
12868 echo "*** The test program failed to compile or link. See the file config.log for the"
12869 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12870 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12871 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12872 fi
12873 rm -f conftest*
12874 CFLAGS="$ac_save_CFLAGS"
12875 LIBS="$ac_save_LIBS"
12876 fi
12877 fi
12878 GTK_CFLAGS=""
12879 GTK_LIBS=""
12880 :
12881 fi
12882
12883
12884 rm -f conf.gtktest
12885
12886
12887 if test -z "$wx_cv_lib_gtk"; then
12888 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12889 if test "${with_gtk_prefix+set}" = set; then
12890 withval="$with_gtk_prefix"
12891 gtk_config_prefix="$withval"
12892 else
12893 gtk_config_prefix=""
12894 fi
12895
12896 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12897 if test "${with_gtk_exec_prefix+set}" = set; then
12898 withval="$with_gtk_exec_prefix"
12899 gtk_config_exec_prefix="$withval"
12900 else
12901 gtk_config_exec_prefix=""
12902 fi
12903
12904 # Check whether --enable-gtktest or --disable-gtktest was given.
12905 if test "${enable_gtktest+set}" = set; then
12906 enableval="$enable_gtktest"
12907 :
12908 else
12909 enable_gtktest=yes
12910 fi
12911
12912
12913 for module in . $GTK_MODULES
12914 do
12915 case "$module" in
12916 gthread)
12917 gtk_config_args="$gtk_config_args gthread"
12918 ;;
12919 esac
12920 done
12921
12922 if test x$gtk_config_exec_prefix != x ; then
12923 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12924 if test x${GTK_CONFIG+set} != xset ; then
12925 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12926 fi
12927 fi
12928 if test x$gtk_config_prefix != x ; then
12929 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12930 if test x${GTK_CONFIG+set} != xset ; then
12931 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12932 fi
12933 fi
12934
12935 # Extract the first word of "gtk-config", so it can be a program name with args.
12936 set dummy gtk-config; ac_word=$2
12937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12938 echo "configure:12939: checking for $ac_word" >&5
12939 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12940 echo $ac_n "(cached) $ac_c" 1>&6
12941 else
12942 case "$GTK_CONFIG" in
12943 /*)
12944 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12945 ;;
12946 ?:/*)
12947 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12948 ;;
12949 *)
12950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12951 ac_dummy="$PATH"
12952 for ac_dir in $ac_dummy; do
12953 test -z "$ac_dir" && ac_dir=.
12954 if test -f $ac_dir/$ac_word; then
12955 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12956 break
12957 fi
12958 done
12959 IFS="$ac_save_ifs"
12960 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12961 ;;
12962 esac
12963 fi
12964 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12965 if test -n "$GTK_CONFIG"; then
12966 echo "$ac_t""$GTK_CONFIG" 1>&6
12967 else
12968 echo "$ac_t""no" 1>&6
12969 fi
12970
12971 min_gtk_version=1.2.3
12972 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12973 echo "configure:12974: checking for GTK - version >= $min_gtk_version" >&5
12974 no_gtk=""
12975 if test "$GTK_CONFIG" = "no" ; then
12976 no_gtk=yes
12977 else
12978 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12979 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12980 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12982 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12984 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12986 if test "x$enable_gtktest" = "xyes" ; then
12987 ac_save_CFLAGS="$CFLAGS"
12988 ac_save_LIBS="$LIBS"
12989 CFLAGS="$CFLAGS $GTK_CFLAGS"
12990 LIBS="$GTK_LIBS $LIBS"
12991 rm -f conf.gtktest
12992 if test "$cross_compiling" = yes; then
12993 echo $ac_n "cross compiling; assumed OK... $ac_c"
12994 else
12995 cat > conftest.$ac_ext <<EOF
12996 #line 12997 "configure"
12997 #include "confdefs.h"
12998
12999 #include <gtk/gtk.h>
13000 #include <stdio.h>
13001 #include <stdlib.h>
13002
13003 int
13004 main ()
13005 {
13006 int major, minor, micro;
13007 char *tmp_version;
13008
13009 system ("touch conf.gtktest");
13010
13011 /* HP/UX 9 (%@#!) writes to sscanf strings */
13012 tmp_version = g_strdup("$min_gtk_version");
13013 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13014 printf("%s, bad version string\n", "$min_gtk_version");
13015 exit(1);
13016 }
13017
13018 if ((gtk_major_version != $gtk_config_major_version) ||
13019 (gtk_minor_version != $gtk_config_minor_version) ||
13020 (gtk_micro_version != $gtk_config_micro_version))
13021 {
13022 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13023 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13024 gtk_major_version, gtk_minor_version, gtk_micro_version);
13025 printf ("*** was found! If gtk-config was correct, then it is best\n");
13026 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13027 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13028 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13029 printf("*** required on your system.\n");
13030 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13031 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13032 printf("*** before re-running configure\n");
13033 }
13034 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13035 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13036 (gtk_minor_version != GTK_MINOR_VERSION) ||
13037 (gtk_micro_version != GTK_MICRO_VERSION))
13038 {
13039 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13040 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13041 printf("*** library (version %d.%d.%d)\n",
13042 gtk_major_version, gtk_minor_version, gtk_micro_version);
13043 }
13044 #endif /* defined (GTK_MAJOR_VERSION) ... */
13045 else
13046 {
13047 if ((gtk_major_version > major) ||
13048 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13049 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13050 {
13051 return 0;
13052 }
13053 else
13054 {
13055 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13056 gtk_major_version, gtk_minor_version, gtk_micro_version);
13057 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13058 major, minor, micro);
13059 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13060 printf("***\n");
13061 printf("*** If you have already installed a sufficiently new version, this error\n");
13062 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13063 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13064 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13065 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13066 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13067 printf("*** so that the correct libraries are found at run-time))\n");
13068 }
13069 }
13070 return 1;
13071 }
13072
13073 EOF
13074 if { (eval echo configure:13075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13075 then
13076 :
13077 else
13078 echo "configure: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 rm -fr conftest*
13081 no_gtk=yes
13082 fi
13083 rm -fr conftest*
13084 fi
13085
13086 CFLAGS="$ac_save_CFLAGS"
13087 LIBS="$ac_save_LIBS"
13088 fi
13089 fi
13090 if test "x$no_gtk" = x ; then
13091 echo "$ac_t""yes" 1>&6
13092 wx_cv_lib_gtk=1.2.3
13093 else
13094 echo "$ac_t""no" 1>&6
13095 if test "$GTK_CONFIG" = "no" ; then
13096 echo "*** The gtk-config script installed by GTK could not be found"
13097 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13098 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13099 echo "*** full path to gtk-config."
13100 else
13101 if test -f conf.gtktest ; then
13102 :
13103 else
13104 echo "*** Could not run GTK test program, checking why..."
13105 CFLAGS="$CFLAGS $GTK_CFLAGS"
13106 LIBS="$LIBS $GTK_LIBS"
13107 cat > conftest.$ac_ext <<EOF
13108 #line 13109 "configure"
13109 #include "confdefs.h"
13110
13111 #include <gtk/gtk.h>
13112 #include <stdio.h>
13113
13114 int main() {
13115 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13116 ; return 0; }
13117 EOF
13118 if { (eval echo configure:13119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13119 rm -rf conftest*
13120 echo "*** The test program compiled, but did not run. This usually means"
13121 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13122 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13123 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13124 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13125 echo "*** is required on your system"
13126 echo "***"
13127 echo "*** If you have an old version installed, it is best to remove it, although"
13128 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13129 echo "***"
13130 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13131 echo "*** came with the system with the command"
13132 echo "***"
13133 echo "*** rpm --erase --nodeps gtk gtk-devel"
13134 else
13135 echo "configure: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 rm -rf conftest*
13138 echo "*** The test program failed to compile or link. See the file config.log for the"
13139 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13140 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13141 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13142 fi
13143 rm -f conftest*
13144 CFLAGS="$ac_save_CFLAGS"
13145 LIBS="$ac_save_LIBS"
13146 fi
13147 fi
13148 GTK_CFLAGS=""
13149 GTK_LIBS=""
13150 :
13151 fi
13152
13153
13154 rm -f conf.gtktest
13155
13156 fi
13157 fi
13158
13159 if test -z "$wx_cv_lib_gtk"; then
13160 wx_cv_lib_gtk=none
13161 else
13162 wx_cv_cflags_gtk=$GTK_CFLAGS
13163 wx_cv_libs_gtk=$GTK_LIBS
13164 fi
13165
13166
13167 fi
13168
13169
13170 if test "$gtk_version_cached" = 1; then
13171 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13172 fi
13173
13174 case "$wx_cv_lib_gtk" in
13175 2.0) WXGTK20=1
13176 TOOLKIT_VERSION=2
13177 ;;
13178 1.2.7) WXGTK127=1
13179 WXGTK12=1
13180 ;;
13181 1.2.3) WXGTK12=1
13182 ;;
13183 *) { echo "configure: error:
13184 Please check that gtk-config is in path, the directory
13185 where GTK+ libraries are installed (returned by
13186 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13187 equivalent variable and GTK+ is version 1.2.3 or above.
13188 " 1>&2; exit 1; }
13189 ;;
13190 esac
13191
13192 if test "$WXGTK20" = 1; then
13193 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13194
13195 succeeded=no
13196
13197 if test -z "$PKG_CONFIG"; then
13198 # Extract the first word of "pkg-config", so it can be a program name with args.
13199 set dummy pkg-config; ac_word=$2
13200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13201 echo "configure:13202: checking for $ac_word" >&5
13202 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13203 echo $ac_n "(cached) $ac_c" 1>&6
13204 else
13205 case "$PKG_CONFIG" in
13206 /*)
13207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13208 ;;
13209 ?:/*)
13210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13211 ;;
13212 *)
13213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13214 ac_dummy="$PATH"
13215 for ac_dir in $ac_dummy; do
13216 test -z "$ac_dir" && ac_dir=.
13217 if test -f $ac_dir/$ac_word; then
13218 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13219 break
13220 fi
13221 done
13222 IFS="$ac_save_ifs"
13223 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13224 ;;
13225 esac
13226 fi
13227 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13228 if test -n "$PKG_CONFIG"; then
13229 echo "$ac_t""$PKG_CONFIG" 1>&6
13230 else
13231 echo "$ac_t""no" 1>&6
13232 fi
13233
13234 fi
13235
13236 if test "$PKG_CONFIG" = "no" ; then
13237 echo "*** The pkg-config script could not be found. Make sure it is"
13238 echo "*** in your path, or set the PKG_CONFIG environment variable"
13239 echo "*** to the full path to pkg-config."
13240 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13241 else
13242 PKG_CONFIG_MIN_VERSION=0.9.0
13243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13244 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13245 echo "configure:13246: checking for pangoft2" >&5
13246
13247 if $PKG_CONFIG --exists "pangoft2" ; then
13248 echo "$ac_t""yes" 1>&6
13249 succeeded=yes
13250
13251 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13252 echo "configure:13253: checking PANGOFT2_CFLAGS" >&5
13253 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13254 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13255
13256 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13257 echo "configure:13258: checking PANGOFT2_LIBS" >&5
13258 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13259 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13260 else
13261 PANGOFT2_CFLAGS=""
13262 PANGOFT2_LIBS=""
13263 ## If we have a custom action on failure, don't print errors, but
13264 ## do set a variable so people can do so.
13265 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13266
13267 fi
13268
13269
13270
13271 else
13272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13274 fi
13275 fi
13276
13277 if test $succeeded = yes; then
13278
13279 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13280 LIBS="$LIBS $PANGOFT2_LIBS"
13281
13282 else
13283
13284 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13285 wxUSE_PRINTING_ARCHITECTURE="no"
13286
13287
13288 fi
13289
13290 fi
13291 else
13292 if test "$wxUSE_UNICODE" = "yes"; then
13293 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13294 wxUSE_UNICODE=no
13295 fi
13296 fi
13297
13298 if test "$USE_DARWIN" != 1; then
13299 for ac_func in poll
13300 do
13301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13302 echo "configure:13303: checking for $ac_func" >&5
13303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305 else
13306 cat > conftest.$ac_ext <<EOF
13307 #line 13308 "configure"
13308 #include "confdefs.h"
13309 /* System header to define __stub macros and hopefully few prototypes,
13310 which can conflict with char $ac_func(); below. */
13311 #include <assert.h>
13312 /* Override any gcc2 internal prototype to avoid an error. */
13313 /* We use char because int might match the return type of a gcc2
13314 builtin and then its argument prototype would still apply. */
13315 char $ac_func();
13316
13317 int main() {
13318
13319 /* The GNU C library defines this for functions which it implements
13320 to always fail with ENOSYS. Some functions are actually named
13321 something starting with __ and the normal name is an alias. */
13322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13323 choke me
13324 #else
13325 $ac_func();
13326 #endif
13327
13328 ; return 0; }
13329 EOF
13330 if { (eval echo configure:13331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13331 rm -rf conftest*
13332 eval "ac_cv_func_$ac_func=yes"
13333 else
13334 echo "configure: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13336 rm -rf conftest*
13337 eval "ac_cv_func_$ac_func=no"
13338 fi
13339 rm -f conftest*
13340 fi
13341
13342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13343 echo "$ac_t""yes" 1>&6
13344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13345 cat >> confdefs.h <<EOF
13346 #define $ac_tr_func 1
13347 EOF
13348
13349 else
13350 echo "$ac_t""no" 1>&6
13351 fi
13352 done
13353
13354 fi
13355
13356 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13357 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13358
13359 AFMINSTALL=afminstall
13360 TOOLKIT=GTK
13361 GUIDIST=GTK_DIST
13362
13363 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13364 echo "configure:13365: checking for gdk_im_open in -lgdk" >&5
13365 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13368 else
13369 ac_save_LIBS="$LIBS"
13370 LIBS="-lgdk $LIBS"
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 /* Override any gcc2 internal prototype to avoid an error. */
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13377 char gdk_im_open();
13378
13379 int main() {
13380 gdk_im_open()
13381 ; return 0; }
13382 EOF
13383 if { (eval echo configure:13384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13384 rm -rf conftest*
13385 eval "ac_cv_lib_$ac_lib_var=yes"
13386 else
13387 echo "configure: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13389 rm -rf conftest*
13390 eval "ac_cv_lib_$ac_lib_var=no"
13391 fi
13392 rm -f conftest*
13393 LIBS="$ac_save_LIBS"
13394
13395 fi
13396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13397 echo "$ac_t""yes" 1>&6
13398 cat >> confdefs.h <<\EOF
13399 #define HAVE_XIM 1
13400 EOF
13401
13402 else
13403 echo "$ac_t""no" 1>&6
13404 fi
13405
13406 fi
13407
13408 if test "$wxUSE_MGL" = 1; then
13409 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13410 echo "configure:13411: checking for SciTech MGL library" >&5
13411 if test "x$MGL_ROOT" = x ; then
13412 echo "$ac_t""not found" 1>&6
13413 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13414 else
13415 echo "$ac_t""$MGL_ROOT" 1>&6
13416 fi
13417
13418 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13419 echo "configure:13420: checking for libmgl location" >&5
13420 case "${host}" in
13421 *-*-linux* )
13422 if test "x$wxUSE_SHARED" = xyes ; then
13423 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13424 else
13425 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13426 fi
13427 ;;
13428 *-pc-msdosdjgpp )
13429 mgl_os_candidates="dos32/dj2"
13430 ;;
13431 *)
13432 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13433 esac
13434
13435 mgl_lib_type=""
13436 mgl_os=""
13437
13438 for mgl_os_i in $mgl_os_candidates ; do
13439 if test "x$mgl_os" = x ; then
13440 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13441 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13442 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13443 mgl_lib_type=debug
13444 mgl_os=$mgl_os_i
13445 fi
13446 fi
13447 if test "x$mgl_lib_type" = x ; then
13448 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13449 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13450 mgl_lib_type=release
13451 mgl_os=$mgl_os_i
13452 fi
13453 fi
13454 fi
13455 done
13456
13457 if test "x$mgl_os" = x ; then
13458 echo "$ac_t""not found" 1>&6
13459 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13460 fi
13461 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13462
13463 wxUSE_UNIVERSAL="yes"
13464
13465 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13466 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13467
13468 AFMINSTALL=afminstall
13469 TOOLKIT=MGL
13470 GUIDIST=MGL_DIST
13471 fi
13472
13473 if test "$wxUSE_MICROWIN" = 1; then
13474 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13475 echo "configure:13476: checking for MicroWindows" >&5
13476 if test "x$MICROWINDOWS" = x ; then
13477 echo "$ac_t""not found" 1>&6
13478 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13479 else
13480 echo "$ac_t""$MICROWINDOWS" 1>&6
13481 fi
13482
13483 if test -f $MICROWINDOWS/lib/libmwin.a; then
13484 echo "$ac_t""MicroWindows' libraries found." 1>&6
13485 else
13486 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13487 fi
13488
13489 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13490 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13491
13492 wxUSE_UNIVERSAL="yes"
13493
13494 AFMINSTALL=afminstall
13495 TOOLKIT=MICROWIN
13496 GUIDIST=MICROWIN_DIST
13497
13498 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13499 fi
13500
13501 if test "$wxUSE_X11" = 1; then
13502 # If we find X, set shell vars x_includes and x_libraries to the
13503 # paths, otherwise set no_x=yes.
13504 # Uses ac_ vars as temps to allow command line to override cache and checks.
13505 # --without-x overrides everything else, but does not touch the cache.
13506 echo $ac_n "checking for X""... $ac_c" 1>&6
13507 echo "configure:13508: checking for X" >&5
13508
13509 # Check whether --with-x or --without-x was given.
13510 if test "${with_x+set}" = set; then
13511 withval="$with_x"
13512 :
13513 fi
13514
13515 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13516 if test "x$with_x" = xno; then
13517 # The user explicitly disabled X.
13518 have_x=disabled
13519 else
13520 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13521 # Both variables are already set.
13522 have_x=yes
13523 else
13524 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13525 echo $ac_n "(cached) $ac_c" 1>&6
13526 else
13527 # One or both of the vars are not set, and there is no cached value.
13528 ac_x_includes=NO ac_x_libraries=NO
13529 rm -fr conftestdir
13530 if mkdir conftestdir; then
13531 cd conftestdir
13532 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13533 cat > Imakefile <<'EOF'
13534 acfindx:
13535 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13536 EOF
13537 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13539 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13540 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13541 for ac_extension in a so sl; do
13542 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13543 test -f $ac_im_libdir/libX11.$ac_extension; then
13544 ac_im_usrlibdir=$ac_im_libdir; break
13545 fi
13546 done
13547 # Screen out bogus values from the imake configuration. They are
13548 # bogus both because they are the default anyway, and because
13549 # using them would break gcc on systems where it needs fixed includes.
13550 case "$ac_im_incroot" in
13551 /usr/include) ;;
13552 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13553 esac
13554 case "$ac_im_usrlibdir" in
13555 /usr/lib | /lib) ;;
13556 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13557 esac
13558 fi
13559 cd ..
13560 rm -fr conftestdir
13561 fi
13562
13563 if test "$ac_x_includes" = NO; then
13564 # Guess where to find include files, by looking for this one X11 .h file.
13565 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13566
13567 # First, try using that file with no special directory specified.
13568 cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571 #include <$x_direct_test_include>
13572 EOF
13573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13574 { (eval echo configure:13575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13576 if test -z "$ac_err"; then
13577 rm -rf conftest*
13578 # We can compile using X headers with no special include directory.
13579 ac_x_includes=
13580 else
13581 echo "$ac_err" >&5
13582 echo "configure: failed program was:" >&5
13583 cat conftest.$ac_ext >&5
13584 rm -rf conftest*
13585 # Look for the header file in a standard set of common directories.
13586 # Check X11 before X11Rn because it is often a symlink to the current release.
13587 for ac_dir in \
13588 /usr/X11/include \
13589 /usr/X11R6/include \
13590 /usr/X11R5/include \
13591 /usr/X11R4/include \
13592 \
13593 /usr/include/X11 \
13594 /usr/include/X11R6 \
13595 /usr/include/X11R5 \
13596 /usr/include/X11R4 \
13597 \
13598 /usr/local/X11/include \
13599 /usr/local/X11R6/include \
13600 /usr/local/X11R5/include \
13601 /usr/local/X11R4/include \
13602 \
13603 /usr/local/include/X11 \
13604 /usr/local/include/X11R6 \
13605 /usr/local/include/X11R5 \
13606 /usr/local/include/X11R4 \
13607 \
13608 /usr/X386/include \
13609 /usr/x386/include \
13610 /usr/XFree86/include/X11 \
13611 \
13612 /usr/include \
13613 /usr/local/include \
13614 /usr/unsupported/include \
13615 /usr/athena/include \
13616 /usr/local/x11r5/include \
13617 /usr/lpp/Xamples/include \
13618 \
13619 /usr/openwin/include \
13620 /usr/openwin/share/include \
13621 ; \
13622 do
13623 if test -r "$ac_dir/$x_direct_test_include"; then
13624 ac_x_includes=$ac_dir
13625 break
13626 fi
13627 done
13628 fi
13629 rm -f conftest*
13630 fi # $ac_x_includes = NO
13631
13632 if test "$ac_x_libraries" = NO; then
13633 # Check for the libraries.
13634
13635 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13636 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13637
13638 # See if we find them without any special options.
13639 # Don't add to $LIBS permanently.
13640 ac_save_LIBS="$LIBS"
13641 LIBS="-l$x_direct_test_library $LIBS"
13642 cat > conftest.$ac_ext <<EOF
13643 #line 13644 "configure"
13644 #include "confdefs.h"
13645
13646 int main() {
13647 ${x_direct_test_function}()
13648 ; return 0; }
13649 EOF
13650 if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13651 rm -rf conftest*
13652 LIBS="$ac_save_LIBS"
13653 # We can link X programs with no special library path.
13654 ac_x_libraries=
13655 else
13656 echo "configure: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 rm -rf conftest*
13659 LIBS="$ac_save_LIBS"
13660 # First see if replacing the include by lib works.
13661 # Check X11 before X11Rn because it is often a symlink to the current release.
13662 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13663 /usr/X11/lib \
13664 /usr/X11R6/lib \
13665 /usr/X11R5/lib \
13666 /usr/X11R4/lib \
13667 \
13668 /usr/lib/X11 \
13669 /usr/lib/X11R6 \
13670 /usr/lib/X11R5 \
13671 /usr/lib/X11R4 \
13672 \
13673 /usr/local/X11/lib \
13674 /usr/local/X11R6/lib \
13675 /usr/local/X11R5/lib \
13676 /usr/local/X11R4/lib \
13677 \
13678 /usr/local/lib/X11 \
13679 /usr/local/lib/X11R6 \
13680 /usr/local/lib/X11R5 \
13681 /usr/local/lib/X11R4 \
13682 \
13683 /usr/X386/lib \
13684 /usr/x386/lib \
13685 /usr/XFree86/lib/X11 \
13686 \
13687 /usr/lib \
13688 /usr/local/lib \
13689 /usr/unsupported/lib \
13690 /usr/athena/lib \
13691 /usr/local/x11r5/lib \
13692 /usr/lpp/Xamples/lib \
13693 /lib/usr/lib/X11 \
13694 \
13695 /usr/openwin/lib \
13696 /usr/openwin/share/lib \
13697 ; \
13698 do
13699 for ac_extension in a so sl; do
13700 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13701 ac_x_libraries=$ac_dir
13702 break 2
13703 fi
13704 done
13705 done
13706 fi
13707 rm -f conftest*
13708 fi # $ac_x_libraries = NO
13709
13710 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13711 # Didn't find X anywhere. Cache the known absence of X.
13712 ac_cv_have_x="have_x=no"
13713 else
13714 # Record where we found X for the cache.
13715 ac_cv_have_x="have_x=yes \
13716 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13717 fi
13718 fi
13719 fi
13720 eval "$ac_cv_have_x"
13721 fi # $with_x != no
13722
13723 if test "$have_x" != yes; then
13724 echo "$ac_t""$have_x" 1>&6
13725 no_x=yes
13726 else
13727 # If each of the values was on the command line, it overrides each guess.
13728 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13729 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13730 # Update the cache value to reflect the command line values.
13731 ac_cv_have_x="have_x=yes \
13732 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13733 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13734 fi
13735
13736 if test "$no_x" = yes; then
13737 # Not all programs may use this symbol, but it does not hurt to define it.
13738 cat >> confdefs.h <<\EOF
13739 #define X_DISPLAY_MISSING 1
13740 EOF
13741
13742 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13743 else
13744 if test -n "$x_includes"; then
13745 X_CFLAGS="$X_CFLAGS -I$x_includes"
13746 fi
13747
13748 # It would also be nice to do this for all -L options, not just this one.
13749 if test -n "$x_libraries"; then
13750 X_LIBS="$X_LIBS -L$x_libraries"
13751 # For Solaris; some versions of Sun CC require a space after -R and
13752 # others require no space. Words are not sufficient . . . .
13753 case "`(uname -sr) 2>/dev/null`" in
13754 "SunOS 5"*)
13755 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13756 echo "configure:13757: checking whether -R must be followed by a space" >&5
13757 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13758 cat > conftest.$ac_ext <<EOF
13759 #line 13760 "configure"
13760 #include "confdefs.h"
13761
13762 int main() {
13763
13764 ; return 0; }
13765 EOF
13766 if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13767 rm -rf conftest*
13768 ac_R_nospace=yes
13769 else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 ac_R_nospace=no
13774 fi
13775 rm -f conftest*
13776 if test $ac_R_nospace = yes; then
13777 echo "$ac_t""no" 1>&6
13778 X_LIBS="$X_LIBS -R$x_libraries"
13779 else
13780 LIBS="$ac_xsave_LIBS -R $x_libraries"
13781 cat > conftest.$ac_ext <<EOF
13782 #line 13783 "configure"
13783 #include "confdefs.h"
13784
13785 int main() {
13786
13787 ; return 0; }
13788 EOF
13789 if { (eval echo configure:13790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13790 rm -rf conftest*
13791 ac_R_space=yes
13792 else
13793 echo "configure: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 rm -rf conftest*
13796 ac_R_space=no
13797 fi
13798 rm -f conftest*
13799 if test $ac_R_space = yes; then
13800 echo "$ac_t""yes" 1>&6
13801 X_LIBS="$X_LIBS -R $x_libraries"
13802 else
13803 echo "$ac_t""neither works" 1>&6
13804 fi
13805 fi
13806 LIBS="$ac_xsave_LIBS"
13807 esac
13808 fi
13809
13810 # Check for system-dependent libraries X programs must link with.
13811 # Do this before checking for the system-independent R6 libraries
13812 # (-lICE), since we may need -lsocket or whatever for X linking.
13813
13814 if test "$ISC" = yes; then
13815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13816 else
13817 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13818 # libraries were built with DECnet support. And karl@cs.umb.edu says
13819 # the Alpha needs dnet_stub (dnet does not exist).
13820 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13821 echo "configure:13822: checking for dnet_ntoa in -ldnet" >&5
13822 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13824 echo $ac_n "(cached) $ac_c" 1>&6
13825 else
13826 ac_save_LIBS="$LIBS"
13827 LIBS="-ldnet $LIBS"
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13831 /* Override any gcc2 internal prototype to avoid an error. */
13832 /* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13834 char dnet_ntoa();
13835
13836 int main() {
13837 dnet_ntoa()
13838 ; return 0; }
13839 EOF
13840 if { (eval echo configure:13841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13841 rm -rf conftest*
13842 eval "ac_cv_lib_$ac_lib_var=yes"
13843 else
13844 echo "configure: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13846 rm -rf conftest*
13847 eval "ac_cv_lib_$ac_lib_var=no"
13848 fi
13849 rm -f conftest*
13850 LIBS="$ac_save_LIBS"
13851
13852 fi
13853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13854 echo "$ac_t""yes" 1>&6
13855 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13856 else
13857 echo "$ac_t""no" 1>&6
13858 fi
13859
13860 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13861 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13862 echo "configure:13863: checking for dnet_ntoa in -ldnet_stub" >&5
13863 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13865 echo $ac_n "(cached) $ac_c" 1>&6
13866 else
13867 ac_save_LIBS="$LIBS"
13868 LIBS="-ldnet_stub $LIBS"
13869 cat > conftest.$ac_ext <<EOF
13870 #line 13871 "configure"
13871 #include "confdefs.h"
13872 /* Override any gcc2 internal prototype to avoid an error. */
13873 /* We use char because int might match the return type of a gcc2
13874 builtin and then its argument prototype would still apply. */
13875 char dnet_ntoa();
13876
13877 int main() {
13878 dnet_ntoa()
13879 ; return 0; }
13880 EOF
13881 if { (eval echo configure:13882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13882 rm -rf conftest*
13883 eval "ac_cv_lib_$ac_lib_var=yes"
13884 else
13885 echo "configure: failed program was:" >&5
13886 cat conftest.$ac_ext >&5
13887 rm -rf conftest*
13888 eval "ac_cv_lib_$ac_lib_var=no"
13889 fi
13890 rm -f conftest*
13891 LIBS="$ac_save_LIBS"
13892
13893 fi
13894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13895 echo "$ac_t""yes" 1>&6
13896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13897 else
13898 echo "$ac_t""no" 1>&6
13899 fi
13900
13901 fi
13902
13903 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13904 # to get the SysV transport functions.
13905 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13906 # needs -lnsl.
13907 # The nsl library prevents programs from opening the X display
13908 # on Irix 5.2, according to dickey@clark.net.
13909 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13910 echo "configure:13911: checking for gethostbyname" >&5
13911 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13912 echo $ac_n "(cached) $ac_c" 1>&6
13913 else
13914 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure"
13916 #include "confdefs.h"
13917 /* System header to define __stub macros and hopefully few prototypes,
13918 which can conflict with char gethostbyname(); below. */
13919 #include <assert.h>
13920 /* Override any gcc2 internal prototype to avoid an error. */
13921 /* We use char because int might match the return type of a gcc2
13922 builtin and then its argument prototype would still apply. */
13923 char gethostbyname();
13924
13925 int main() {
13926
13927 /* The GNU C library defines this for functions which it implements
13928 to always fail with ENOSYS. Some functions are actually named
13929 something starting with __ and the normal name is an alias. */
13930 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13931 choke me
13932 #else
13933 gethostbyname();
13934 #endif
13935
13936 ; return 0; }
13937 EOF
13938 if { (eval echo configure:13939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13939 rm -rf conftest*
13940 eval "ac_cv_func_gethostbyname=yes"
13941 else
13942 echo "configure: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13944 rm -rf conftest*
13945 eval "ac_cv_func_gethostbyname=no"
13946 fi
13947 rm -f conftest*
13948 fi
13949
13950 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13951 echo "$ac_t""yes" 1>&6
13952 :
13953 else
13954 echo "$ac_t""no" 1>&6
13955 fi
13956
13957 if test $ac_cv_func_gethostbyname = no; then
13958 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13959 echo "configure:13960: checking for gethostbyname in -lnsl" >&5
13960 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13962 echo $ac_n "(cached) $ac_c" 1>&6
13963 else
13964 ac_save_LIBS="$LIBS"
13965 LIBS="-lnsl $LIBS"
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972 char gethostbyname();
13973
13974 int main() {
13975 gethostbyname()
13976 ; return 0; }
13977 EOF
13978 if { (eval echo configure:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13979 rm -rf conftest*
13980 eval "ac_cv_lib_$ac_lib_var=yes"
13981 else
13982 echo "configure: failed program was:" >&5
13983 cat conftest.$ac_ext >&5
13984 rm -rf conftest*
13985 eval "ac_cv_lib_$ac_lib_var=no"
13986 fi
13987 rm -f conftest*
13988 LIBS="$ac_save_LIBS"
13989
13990 fi
13991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13992 echo "$ac_t""yes" 1>&6
13993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13994 else
13995 echo "$ac_t""no" 1>&6
13996 fi
13997
13998 fi
13999
14000 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14001 # socket/setsockopt and other routines are undefined under SCO ODT
14002 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14003 # on later versions), says simon@lia.di.epfl.ch: it contains
14004 # gethostby* variants that don't use the nameserver (or something).
14005 # -lsocket must be given before -lnsl if both are needed.
14006 # We assume that if connect needs -lnsl, so does gethostbyname.
14007 echo $ac_n "checking for connect""... $ac_c" 1>&6
14008 echo "configure:14009: checking for connect" >&5
14009 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14010 echo $ac_n "(cached) $ac_c" 1>&6
14011 else
14012 cat > conftest.$ac_ext <<EOF
14013 #line 14014 "configure"
14014 #include "confdefs.h"
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char connect(); below. */
14017 #include <assert.h>
14018 /* Override any gcc2 internal prototype to avoid an error. */
14019 /* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14021 char connect();
14022
14023 int main() {
14024
14025 /* The GNU C library defines this for functions which it implements
14026 to always fail with ENOSYS. Some functions are actually named
14027 something starting with __ and the normal name is an alias. */
14028 #if defined (__stub_connect) || defined (__stub___connect)
14029 choke me
14030 #else
14031 connect();
14032 #endif
14033
14034 ; return 0; }
14035 EOF
14036 if { (eval echo configure:14037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14037 rm -rf conftest*
14038 eval "ac_cv_func_connect=yes"
14039 else
14040 echo "configure: failed program was:" >&5
14041 cat conftest.$ac_ext >&5
14042 rm -rf conftest*
14043 eval "ac_cv_func_connect=no"
14044 fi
14045 rm -f conftest*
14046 fi
14047
14048 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14049 echo "$ac_t""yes" 1>&6
14050 :
14051 else
14052 echo "$ac_t""no" 1>&6
14053 fi
14054
14055 if test $ac_cv_func_connect = no; then
14056 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14057 echo "configure:14058: checking for connect in -lsocket" >&5
14058 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14060 echo $ac_n "(cached) $ac_c" 1>&6
14061 else
14062 ac_save_LIBS="$LIBS"
14063 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14064 cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 /* Override any gcc2 internal prototype to avoid an error. */
14068 /* We use char because int might match the return type of a gcc2
14069 builtin and then its argument prototype would still apply. */
14070 char connect();
14071
14072 int main() {
14073 connect()
14074 ; return 0; }
14075 EOF
14076 if { (eval echo configure:14077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14077 rm -rf conftest*
14078 eval "ac_cv_lib_$ac_lib_var=yes"
14079 else
14080 echo "configure: failed program was:" >&5
14081 cat conftest.$ac_ext >&5
14082 rm -rf conftest*
14083 eval "ac_cv_lib_$ac_lib_var=no"
14084 fi
14085 rm -f conftest*
14086 LIBS="$ac_save_LIBS"
14087
14088 fi
14089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14090 echo "$ac_t""yes" 1>&6
14091 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14092 else
14093 echo "$ac_t""no" 1>&6
14094 fi
14095
14096 fi
14097
14098 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14099 echo $ac_n "checking for remove""... $ac_c" 1>&6
14100 echo "configure:14101: checking for remove" >&5
14101 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14102 echo $ac_n "(cached) $ac_c" 1>&6
14103 else
14104 cat > conftest.$ac_ext <<EOF
14105 #line 14106 "configure"
14106 #include "confdefs.h"
14107 /* System header to define __stub macros and hopefully few prototypes,
14108 which can conflict with char remove(); below. */
14109 #include <assert.h>
14110 /* Override any gcc2 internal prototype to avoid an error. */
14111 /* We use char because int might match the return type of a gcc2
14112 builtin and then its argument prototype would still apply. */
14113 char remove();
14114
14115 int main() {
14116
14117 /* The GNU C library defines this for functions which it implements
14118 to always fail with ENOSYS. Some functions are actually named
14119 something starting with __ and the normal name is an alias. */
14120 #if defined (__stub_remove) || defined (__stub___remove)
14121 choke me
14122 #else
14123 remove();
14124 #endif
14125
14126 ; return 0; }
14127 EOF
14128 if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14129 rm -rf conftest*
14130 eval "ac_cv_func_remove=yes"
14131 else
14132 echo "configure: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 rm -rf conftest*
14135 eval "ac_cv_func_remove=no"
14136 fi
14137 rm -f conftest*
14138 fi
14139
14140 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14141 echo "$ac_t""yes" 1>&6
14142 :
14143 else
14144 echo "$ac_t""no" 1>&6
14145 fi
14146
14147 if test $ac_cv_func_remove = no; then
14148 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14149 echo "configure:14150: checking for remove in -lposix" >&5
14150 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14152 echo $ac_n "(cached) $ac_c" 1>&6
14153 else
14154 ac_save_LIBS="$LIBS"
14155 LIBS="-lposix $LIBS"
14156 cat > conftest.$ac_ext <<EOF
14157 #line 14158 "configure"
14158 #include "confdefs.h"
14159 /* Override any gcc2 internal prototype to avoid an error. */
14160 /* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14162 char remove();
14163
14164 int main() {
14165 remove()
14166 ; return 0; }
14167 EOF
14168 if { (eval echo configure:14169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14169 rm -rf conftest*
14170 eval "ac_cv_lib_$ac_lib_var=yes"
14171 else
14172 echo "configure: failed program was:" >&5
14173 cat conftest.$ac_ext >&5
14174 rm -rf conftest*
14175 eval "ac_cv_lib_$ac_lib_var=no"
14176 fi
14177 rm -f conftest*
14178 LIBS="$ac_save_LIBS"
14179
14180 fi
14181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14182 echo "$ac_t""yes" 1>&6
14183 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14184 else
14185 echo "$ac_t""no" 1>&6
14186 fi
14187
14188 fi
14189
14190 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14191 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14192 echo "configure:14193: checking for shmat" >&5
14193 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14194 echo $ac_n "(cached) $ac_c" 1>&6
14195 else
14196 cat > conftest.$ac_ext <<EOF
14197 #line 14198 "configure"
14198 #include "confdefs.h"
14199 /* System header to define __stub macros and hopefully few prototypes,
14200 which can conflict with char shmat(); below. */
14201 #include <assert.h>
14202 /* Override any gcc2 internal prototype to avoid an error. */
14203 /* We use char because int might match the return type of a gcc2
14204 builtin and then its argument prototype would still apply. */
14205 char shmat();
14206
14207 int main() {
14208
14209 /* The GNU C library defines this for functions which it implements
14210 to always fail with ENOSYS. Some functions are actually named
14211 something starting with __ and the normal name is an alias. */
14212 #if defined (__stub_shmat) || defined (__stub___shmat)
14213 choke me
14214 #else
14215 shmat();
14216 #endif
14217
14218 ; return 0; }
14219 EOF
14220 if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14221 rm -rf conftest*
14222 eval "ac_cv_func_shmat=yes"
14223 else
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -rf conftest*
14227 eval "ac_cv_func_shmat=no"
14228 fi
14229 rm -f conftest*
14230 fi
14231
14232 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14233 echo "$ac_t""yes" 1>&6
14234 :
14235 else
14236 echo "$ac_t""no" 1>&6
14237 fi
14238
14239 if test $ac_cv_func_shmat = no; then
14240 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14241 echo "configure:14242: checking for shmat in -lipc" >&5
14242 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14244 echo $ac_n "(cached) $ac_c" 1>&6
14245 else
14246 ac_save_LIBS="$LIBS"
14247 LIBS="-lipc $LIBS"
14248 cat > conftest.$ac_ext <<EOF
14249 #line 14250 "configure"
14250 #include "confdefs.h"
14251 /* Override any gcc2 internal prototype to avoid an error. */
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254 char shmat();
14255
14256 int main() {
14257 shmat()
14258 ; return 0; }
14259 EOF
14260 if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14261 rm -rf conftest*
14262 eval "ac_cv_lib_$ac_lib_var=yes"
14263 else
14264 echo "configure: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14266 rm -rf conftest*
14267 eval "ac_cv_lib_$ac_lib_var=no"
14268 fi
14269 rm -f conftest*
14270 LIBS="$ac_save_LIBS"
14271
14272 fi
14273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14274 echo "$ac_t""yes" 1>&6
14275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14276 else
14277 echo "$ac_t""no" 1>&6
14278 fi
14279
14280 fi
14281 fi
14282
14283 # Check for libraries that X11R6 Xt/Xaw programs need.
14284 ac_save_LDFLAGS="$LDFLAGS"
14285 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14286 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14287 # check for ICE first), but we must link in the order -lSM -lICE or
14288 # we get undefined symbols. So assume we have SM if we have ICE.
14289 # These have to be linked with before -lX11, unlike the other
14290 # libraries we check for below, so use a different variable.
14291 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14292 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14293 echo "configure:14294: checking for IceConnectionNumber in -lICE" >&5
14294 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14297 else
14298 ac_save_LIBS="$LIBS"
14299 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14300 cat > conftest.$ac_ext <<EOF
14301 #line 14302 "configure"
14302 #include "confdefs.h"
14303 /* Override any gcc2 internal prototype to avoid an error. */
14304 /* We use char because int might match the return type of a gcc2
14305 builtin and then its argument prototype would still apply. */
14306 char IceConnectionNumber();
14307
14308 int main() {
14309 IceConnectionNumber()
14310 ; return 0; }
14311 EOF
14312 if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14313 rm -rf conftest*
14314 eval "ac_cv_lib_$ac_lib_var=yes"
14315 else
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14318 rm -rf conftest*
14319 eval "ac_cv_lib_$ac_lib_var=no"
14320 fi
14321 rm -f conftest*
14322 LIBS="$ac_save_LIBS"
14323
14324 fi
14325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
14327 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14328 else
14329 echo "$ac_t""no" 1>&6
14330 fi
14331
14332 LDFLAGS="$ac_save_LDFLAGS"
14333
14334 fi
14335
14336
14337 if test "$no_x" = "yes"; then
14338 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14339 fi
14340
14341 GUI_TK_LIBRARY="$X_LIBS"
14342 TOOLKIT_INCLUDE="$X_CFLAGS"
14343 AFMINSTALL=afminstall
14344 COMPILED_X_PROGRAM=0
14345
14346 if test "$wxUSE_NANOX" = "yes"; then
14347 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14348 echo "configure:14349: checking for MicroWindows/NanoX distribution" >&5
14349 if test "x$MICROWIN" = x ; then
14350 echo "$ac_t""not found" 1>&6
14351 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14352 else
14353 echo "$ac_t""$MICROWIN" 1>&6
14354 cat >> confdefs.h <<\EOF
14355 #define wxUSE_NANOX 1
14356 EOF
14357
14358 fi
14359 fi
14360
14361 xpm_link=
14362 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14363 echo "configure:14364: checking for Xpm library" >&5
14364
14365 ac_find_libraries=
14366 for ac_dir in $SEARCH_LIB /usr/lib;
14367 do
14368 for ac_extension in a so sl dylib; do
14369 if test -f "$ac_dir/libXpm.$ac_extension"; then
14370 ac_find_libraries=$ac_dir
14371 break 2
14372 fi
14373 done
14374 done
14375
14376 if test "$ac_find_libraries" != "" ; then
14377
14378 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14379 result=$?
14380 if test $result = 0; then
14381 ac_path_to_link=""
14382 else
14383 ac_path_to_link=" -L$ac_find_libraries"
14384 fi
14385
14386 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14387 xpm_link=" -lXpm"
14388 cat >> confdefs.h <<\EOF
14389 #define wxHAVE_LIB_XPM 1
14390 EOF
14391
14392 echo "$ac_t""found at $ac_find_libraries" 1>&6
14393 else
14394 cat > conftest.$ac_ext <<EOF
14395 #line 14396 "configure"
14396 #include "confdefs.h"
14397
14398 #include <X11/xpm.h>
14399
14400 int main() {
14401
14402 int version;
14403 version = XpmLibraryVersion();
14404
14405 ; return 0; }
14406 EOF
14407 if { (eval echo configure:14408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14408 rm -rf conftest*
14409
14410 xpm_link=" -lXpm"
14411 cat >> confdefs.h <<\EOF
14412 #define wxHAVE_LIB_XPM 1
14413 EOF
14414
14415 echo "$ac_t""found in default search path" 1>&6
14416 COMPILED_X_PROGRAM=0
14417
14418 else
14419 echo "configure: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14421 rm -rf conftest*
14422
14423 echo "$ac_t""no" 1>&6
14424 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14425
14426
14427 fi
14428 rm -f conftest*
14429 fi
14430
14431 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14432 echo "configure:14433: checking for XShapeQueryExtension in -lXext" >&5
14433 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14435 echo $ac_n "(cached) $ac_c" 1>&6
14436 else
14437 ac_save_LIBS="$LIBS"
14438 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14439 cat > conftest.$ac_ext <<EOF
14440 #line 14441 "configure"
14441 #include "confdefs.h"
14442 /* Override any gcc2 internal prototype to avoid an error. */
14443 /* We use char because int might match the return type of a gcc2
14444 builtin and then its argument prototype would still apply. */
14445 char XShapeQueryExtension();
14446
14447 int main() {
14448 XShapeQueryExtension()
14449 ; return 0; }
14450 EOF
14451 if { (eval echo configure:14452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14452 rm -rf conftest*
14453 eval "ac_cv_lib_$ac_lib_var=yes"
14454 else
14455 echo "configure: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 rm -rf conftest*
14458 eval "ac_cv_lib_$ac_lib_var=no"
14459 fi
14460 rm -f conftest*
14461 LIBS="$ac_save_LIBS"
14462
14463 fi
14464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14465 echo "$ac_t""yes" 1>&6
14466
14467 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14468 wxHAVE_XEXT_LIB=1
14469
14470 else
14471 echo "$ac_t""no" 1>&6
14472 fi
14473
14474
14475 if test "$wxUSE_UNICODE" = "yes"; then
14476
14477 succeeded=no
14478
14479 if test -z "$PKG_CONFIG"; then
14480 # Extract the first word of "pkg-config", so it can be a program name with args.
14481 set dummy pkg-config; ac_word=$2
14482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14483 echo "configure:14484: checking for $ac_word" >&5
14484 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14485 echo $ac_n "(cached) $ac_c" 1>&6
14486 else
14487 case "$PKG_CONFIG" in
14488 /*)
14489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14490 ;;
14491 ?:/*)
14492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14493 ;;
14494 *)
14495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14496 ac_dummy="$PATH"
14497 for ac_dir in $ac_dummy; do
14498 test -z "$ac_dir" && ac_dir=.
14499 if test -f $ac_dir/$ac_word; then
14500 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14501 break
14502 fi
14503 done
14504 IFS="$ac_save_ifs"
14505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14506 ;;
14507 esac
14508 fi
14509 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14510 if test -n "$PKG_CONFIG"; then
14511 echo "$ac_t""$PKG_CONFIG" 1>&6
14512 else
14513 echo "$ac_t""no" 1>&6
14514 fi
14515
14516 fi
14517
14518 if test "$PKG_CONFIG" = "no" ; then
14519 echo "*** The pkg-config script could not be found. Make sure it is"
14520 echo "*** in your path, or set the PKG_CONFIG environment variable"
14521 echo "*** to the full path to pkg-config."
14522 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14523 else
14524 PKG_CONFIG_MIN_VERSION=0.9.0
14525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14526 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14527 echo "configure:14528: checking for pangox" >&5
14528
14529 if $PKG_CONFIG --exists "pangox" ; then
14530 echo "$ac_t""yes" 1>&6
14531 succeeded=yes
14532
14533 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14534 echo "configure:14535: checking PANGOX_CFLAGS" >&5
14535 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14536 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14537
14538 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14539 echo "configure:14540: checking PANGOX_LIBS" >&5
14540 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14541 echo "$ac_t""$PANGOX_LIBS" 1>&6
14542 else
14543 PANGOX_CFLAGS=""
14544 PANGOX_LIBS=""
14545 ## If we have a custom action on failure, don't print errors, but
14546 ## do set a variable so people can do so.
14547 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14548
14549 fi
14550
14551
14552
14553 else
14554 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14555 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14556 fi
14557 fi
14558
14559 if test $succeeded = yes; then
14560
14561 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14562 LIBS="$LIBS $PANGOX_LIBS"
14563
14564 else
14565
14566 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14567
14568
14569 fi
14570
14571
14572 succeeded=no
14573
14574 if test -z "$PKG_CONFIG"; then
14575 # Extract the first word of "pkg-config", so it can be a program name with args.
14576 set dummy pkg-config; ac_word=$2
14577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14578 echo "configure:14579: checking for $ac_word" >&5
14579 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14580 echo $ac_n "(cached) $ac_c" 1>&6
14581 else
14582 case "$PKG_CONFIG" in
14583 /*)
14584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14585 ;;
14586 ?:/*)
14587 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14588 ;;
14589 *)
14590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14591 ac_dummy="$PATH"
14592 for ac_dir in $ac_dummy; do
14593 test -z "$ac_dir" && ac_dir=.
14594 if test -f $ac_dir/$ac_word; then
14595 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14596 break
14597 fi
14598 done
14599 IFS="$ac_save_ifs"
14600 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14601 ;;
14602 esac
14603 fi
14604 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14605 if test -n "$PKG_CONFIG"; then
14606 echo "$ac_t""$PKG_CONFIG" 1>&6
14607 else
14608 echo "$ac_t""no" 1>&6
14609 fi
14610
14611 fi
14612
14613 if test "$PKG_CONFIG" = "no" ; then
14614 echo "*** The pkg-config script could not be found. Make sure it is"
14615 echo "*** in your path, or set the PKG_CONFIG environment variable"
14616 echo "*** to the full path to pkg-config."
14617 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14618 else
14619 PKG_CONFIG_MIN_VERSION=0.9.0
14620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14621 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14622 echo "configure:14623: checking for pangoft2" >&5
14623
14624 if $PKG_CONFIG --exists "pangoft2" ; then
14625 echo "$ac_t""yes" 1>&6
14626 succeeded=yes
14627
14628 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14629 echo "configure:14630: checking PANGOFT2_CFLAGS" >&5
14630 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14631 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14632
14633 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14634 echo "configure:14635: checking PANGOFT2_LIBS" >&5
14635 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14636 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14637 else
14638 PANGOFT2_CFLAGS=""
14639 PANGOFT2_LIBS=""
14640 ## If we have a custom action on failure, don't print errors, but
14641 ## do set a variable so people can do so.
14642 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14643
14644 fi
14645
14646
14647
14648 else
14649 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14650 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14651 fi
14652 fi
14653
14654 if test $succeeded = yes; then
14655
14656 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14657 LIBS="$LIBS $PANGOFT2_LIBS"
14658
14659 else
14660
14661 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14662 wxUSE_PRINTING_ARCHITECTURE="no"
14663
14664
14665 fi
14666
14667
14668 succeeded=no
14669
14670 if test -z "$PKG_CONFIG"; then
14671 # Extract the first word of "pkg-config", so it can be a program name with args.
14672 set dummy pkg-config; ac_word=$2
14673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14674 echo "configure:14675: checking for $ac_word" >&5
14675 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14676 echo $ac_n "(cached) $ac_c" 1>&6
14677 else
14678 case "$PKG_CONFIG" in
14679 /*)
14680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14681 ;;
14682 ?:/*)
14683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14684 ;;
14685 *)
14686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14687 ac_dummy="$PATH"
14688 for ac_dir in $ac_dummy; do
14689 test -z "$ac_dir" && ac_dir=.
14690 if test -f $ac_dir/$ac_word; then
14691 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14692 break
14693 fi
14694 done
14695 IFS="$ac_save_ifs"
14696 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14697 ;;
14698 esac
14699 fi
14700 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14701 if test -n "$PKG_CONFIG"; then
14702 echo "$ac_t""$PKG_CONFIG" 1>&6
14703 else
14704 echo "$ac_t""no" 1>&6
14705 fi
14706
14707 fi
14708
14709 if test "$PKG_CONFIG" = "no" ; then
14710 echo "*** The pkg-config script could not be found. Make sure it is"
14711 echo "*** in your path, or set the PKG_CONFIG environment variable"
14712 echo "*** to the full path to pkg-config."
14713 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14714 else
14715 PKG_CONFIG_MIN_VERSION=0.9.0
14716 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14717 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14718 echo "configure:14719: checking for pangoxft" >&5
14719
14720 if $PKG_CONFIG --exists "pangoxft" ; then
14721 echo "$ac_t""yes" 1>&6
14722 succeeded=yes
14723
14724 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14725 echo "configure:14726: checking PANGOXFT_CFLAGS" >&5
14726 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14727 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14728
14729 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14730 echo "configure:14731: checking PANGOXFT_LIBS" >&5
14731 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14732 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14733 else
14734 PANGOXFT_CFLAGS=""
14735 PANGOXFT_LIBS=""
14736 ## If we have a custom action on failure, don't print errors, but
14737 ## do set a variable so people can do so.
14738 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14739
14740 fi
14741
14742
14743
14744 else
14745 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14746 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14747 fi
14748 fi
14749
14750 if test $succeeded = yes; then
14751
14752 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14753 LIBS="$LIBS $PANGOXFT_LIBS"
14754
14755 else
14756
14757 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14758
14759
14760 fi
14761
14762 fi
14763
14764 wxUSE_UNIVERSAL="yes"
14765
14766 if test "$wxUSE_NANOX" = "yes"; then
14767 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14768 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"
14769 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14770 else
14771 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14772 fi
14773
14774 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14775 TOOLKIT=X11
14776 GUIDIST=X11_DIST
14777 fi
14778
14779 if test "$wxUSE_MOTIF" = 1; then
14780 if test "$no_x" = yes; then
14781 # Not all programs may use this symbol, but it does not hurt to define it.
14782 cat >> confdefs.h <<\EOF
14783 #define X_DISPLAY_MISSING 1
14784 EOF
14785
14786 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14787 else
14788 if test -n "$x_includes"; then
14789 X_CFLAGS="$X_CFLAGS -I$x_includes"
14790 fi
14791
14792 # It would also be nice to do this for all -L options, not just this one.
14793 if test -n "$x_libraries"; then
14794 X_LIBS="$X_LIBS -L$x_libraries"
14795 # For Solaris; some versions of Sun CC require a space after -R and
14796 # others require no space. Words are not sufficient . . . .
14797 case "`(uname -sr) 2>/dev/null`" in
14798 "SunOS 5"*)
14799 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14800 echo "configure:14801: checking whether -R must be followed by a space" >&5
14801 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14802 cat > conftest.$ac_ext <<EOF
14803 #line 14804 "configure"
14804 #include "confdefs.h"
14805
14806 int main() {
14807
14808 ; return 0; }
14809 EOF
14810 if { (eval echo configure:14811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14811 rm -rf conftest*
14812 ac_R_nospace=yes
14813 else
14814 echo "configure: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14816 rm -rf conftest*
14817 ac_R_nospace=no
14818 fi
14819 rm -f conftest*
14820 if test $ac_R_nospace = yes; then
14821 echo "$ac_t""no" 1>&6
14822 X_LIBS="$X_LIBS -R$x_libraries"
14823 else
14824 LIBS="$ac_xsave_LIBS -R $x_libraries"
14825 cat > conftest.$ac_ext <<EOF
14826 #line 14827 "configure"
14827 #include "confdefs.h"
14828
14829 int main() {
14830
14831 ; return 0; }
14832 EOF
14833 if { (eval echo configure:14834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14834 rm -rf conftest*
14835 ac_R_space=yes
14836 else
14837 echo "configure: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 rm -rf conftest*
14840 ac_R_space=no
14841 fi
14842 rm -f conftest*
14843 if test $ac_R_space = yes; then
14844 echo "$ac_t""yes" 1>&6
14845 X_LIBS="$X_LIBS -R $x_libraries"
14846 else
14847 echo "$ac_t""neither works" 1>&6
14848 fi
14849 fi
14850 LIBS="$ac_xsave_LIBS"
14851 esac
14852 fi
14853
14854 # Check for system-dependent libraries X programs must link with.
14855 # Do this before checking for the system-independent R6 libraries
14856 # (-lICE), since we may need -lsocket or whatever for X linking.
14857
14858 if test "$ISC" = yes; then
14859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14860 else
14861 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14862 # libraries were built with DECnet support. And karl@cs.umb.edu says
14863 # the Alpha needs dnet_stub (dnet does not exist).
14864 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14865 echo "configure:14866: checking for dnet_ntoa in -ldnet" >&5
14866 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14868 echo $ac_n "(cached) $ac_c" 1>&6
14869 else
14870 ac_save_LIBS="$LIBS"
14871 LIBS="-ldnet $LIBS"
14872 cat > conftest.$ac_ext <<EOF
14873 #line 14874 "configure"
14874 #include "confdefs.h"
14875 /* Override any gcc2 internal prototype to avoid an error. */
14876 /* We use char because int might match the return type of a gcc2
14877 builtin and then its argument prototype would still apply. */
14878 char dnet_ntoa();
14879
14880 int main() {
14881 dnet_ntoa()
14882 ; return 0; }
14883 EOF
14884 if { (eval echo configure:14885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14885 rm -rf conftest*
14886 eval "ac_cv_lib_$ac_lib_var=yes"
14887 else
14888 echo "configure: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 rm -rf conftest*
14891 eval "ac_cv_lib_$ac_lib_var=no"
14892 fi
14893 rm -f conftest*
14894 LIBS="$ac_save_LIBS"
14895
14896 fi
14897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14898 echo "$ac_t""yes" 1>&6
14899 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14900 else
14901 echo "$ac_t""no" 1>&6
14902 fi
14903
14904 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14905 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14906 echo "configure:14907: checking for dnet_ntoa in -ldnet_stub" >&5
14907 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14909 echo $ac_n "(cached) $ac_c" 1>&6
14910 else
14911 ac_save_LIBS="$LIBS"
14912 LIBS="-ldnet_stub $LIBS"
14913 cat > conftest.$ac_ext <<EOF
14914 #line 14915 "configure"
14915 #include "confdefs.h"
14916 /* Override any gcc2 internal prototype to avoid an error. */
14917 /* We use char because int might match the return type of a gcc2
14918 builtin and then its argument prototype would still apply. */
14919 char dnet_ntoa();
14920
14921 int main() {
14922 dnet_ntoa()
14923 ; return 0; }
14924 EOF
14925 if { (eval echo configure:14926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14926 rm -rf conftest*
14927 eval "ac_cv_lib_$ac_lib_var=yes"
14928 else
14929 echo "configure: failed program was:" >&5
14930 cat conftest.$ac_ext >&5
14931 rm -rf conftest*
14932 eval "ac_cv_lib_$ac_lib_var=no"
14933 fi
14934 rm -f conftest*
14935 LIBS="$ac_save_LIBS"
14936
14937 fi
14938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14939 echo "$ac_t""yes" 1>&6
14940 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14941 else
14942 echo "$ac_t""no" 1>&6
14943 fi
14944
14945 fi
14946
14947 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14948 # to get the SysV transport functions.
14949 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14950 # needs -lnsl.
14951 # The nsl library prevents programs from opening the X display
14952 # on Irix 5.2, according to dickey@clark.net.
14953 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14954 echo "configure:14955: checking for gethostbyname" >&5
14955 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14956 echo $ac_n "(cached) $ac_c" 1>&6
14957 else
14958 cat > conftest.$ac_ext <<EOF
14959 #line 14960 "configure"
14960 #include "confdefs.h"
14961 /* System header to define __stub macros and hopefully few prototypes,
14962 which can conflict with char gethostbyname(); below. */
14963 #include <assert.h>
14964 /* Override any gcc2 internal prototype to avoid an error. */
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967 char gethostbyname();
14968
14969 int main() {
14970
14971 /* The GNU C library defines this for functions which it implements
14972 to always fail with ENOSYS. Some functions are actually named
14973 something starting with __ and the normal name is an alias. */
14974 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14975 choke me
14976 #else
14977 gethostbyname();
14978 #endif
14979
14980 ; return 0; }
14981 EOF
14982 if { (eval echo configure:14983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14983 rm -rf conftest*
14984 eval "ac_cv_func_gethostbyname=yes"
14985 else
14986 echo "configure: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14988 rm -rf conftest*
14989 eval "ac_cv_func_gethostbyname=no"
14990 fi
14991 rm -f conftest*
14992 fi
14993
14994 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14995 echo "$ac_t""yes" 1>&6
14996 :
14997 else
14998 echo "$ac_t""no" 1>&6
14999 fi
15000
15001 if test $ac_cv_func_gethostbyname = no; then
15002 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
15003 echo "configure:15004: checking for gethostbyname in -lnsl" >&5
15004 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15006 echo $ac_n "(cached) $ac_c" 1>&6
15007 else
15008 ac_save_LIBS="$LIBS"
15009 LIBS="-lnsl $LIBS"
15010 cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure"
15012 #include "confdefs.h"
15013 /* Override any gcc2 internal prototype to avoid an error. */
15014 /* We use char because int might match the return type of a gcc2
15015 builtin and then its argument prototype would still apply. */
15016 char gethostbyname();
15017
15018 int main() {
15019 gethostbyname()
15020 ; return 0; }
15021 EOF
15022 if { (eval echo configure:15023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 rm -rf conftest*
15024 eval "ac_cv_lib_$ac_lib_var=yes"
15025 else
15026 echo "configure: failed program was:" >&5
15027 cat conftest.$ac_ext >&5
15028 rm -rf conftest*
15029 eval "ac_cv_lib_$ac_lib_var=no"
15030 fi
15031 rm -f conftest*
15032 LIBS="$ac_save_LIBS"
15033
15034 fi
15035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15036 echo "$ac_t""yes" 1>&6
15037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15038 else
15039 echo "$ac_t""no" 1>&6
15040 fi
15041
15042 fi
15043
15044 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15045 # socket/setsockopt and other routines are undefined under SCO ODT
15046 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15047 # on later versions), says simon@lia.di.epfl.ch: it contains
15048 # gethostby* variants that don't use the nameserver (or something).
15049 # -lsocket must be given before -lnsl if both are needed.
15050 # We assume that if connect needs -lnsl, so does gethostbyname.
15051 echo $ac_n "checking for connect""... $ac_c" 1>&6
15052 echo "configure:15053: checking for connect" >&5
15053 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15054 echo $ac_n "(cached) $ac_c" 1>&6
15055 else
15056 cat > conftest.$ac_ext <<EOF
15057 #line 15058 "configure"
15058 #include "confdefs.h"
15059 /* System header to define __stub macros and hopefully few prototypes,
15060 which can conflict with char connect(); below. */
15061 #include <assert.h>
15062 /* Override any gcc2 internal prototype to avoid an error. */
15063 /* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15065 char connect();
15066
15067 int main() {
15068
15069 /* The GNU C library defines this for functions which it implements
15070 to always fail with ENOSYS. Some functions are actually named
15071 something starting with __ and the normal name is an alias. */
15072 #if defined (__stub_connect) || defined (__stub___connect)
15073 choke me
15074 #else
15075 connect();
15076 #endif
15077
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_func_connect=yes"
15083 else
15084 echo "configure: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 rm -rf conftest*
15087 eval "ac_cv_func_connect=no"
15088 fi
15089 rm -f conftest*
15090 fi
15091
15092 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15093 echo "$ac_t""yes" 1>&6
15094 :
15095 else
15096 echo "$ac_t""no" 1>&6
15097 fi
15098
15099 if test $ac_cv_func_connect = no; then
15100 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15101 echo "configure:15102: checking for connect in -lsocket" >&5
15102 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15104 echo $ac_n "(cached) $ac_c" 1>&6
15105 else
15106 ac_save_LIBS="$LIBS"
15107 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15108 cat > conftest.$ac_ext <<EOF
15109 #line 15110 "configure"
15110 #include "confdefs.h"
15111 /* Override any gcc2 internal prototype to avoid an error. */
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char connect();
15115
15116 int main() {
15117 connect()
15118 ; return 0; }
15119 EOF
15120 if { (eval echo configure:15121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15121 rm -rf conftest*
15122 eval "ac_cv_lib_$ac_lib_var=yes"
15123 else
15124 echo "configure: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15126 rm -rf conftest*
15127 eval "ac_cv_lib_$ac_lib_var=no"
15128 fi
15129 rm -f conftest*
15130 LIBS="$ac_save_LIBS"
15131
15132 fi
15133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15134 echo "$ac_t""yes" 1>&6
15135 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15136 else
15137 echo "$ac_t""no" 1>&6
15138 fi
15139
15140 fi
15141
15142 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15143 echo $ac_n "checking for remove""... $ac_c" 1>&6
15144 echo "configure:15145: checking for remove" >&5
15145 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15146 echo $ac_n "(cached) $ac_c" 1>&6
15147 else
15148 cat > conftest.$ac_ext <<EOF
15149 #line 15150 "configure"
15150 #include "confdefs.h"
15151 /* System header to define __stub macros and hopefully few prototypes,
15152 which can conflict with char remove(); below. */
15153 #include <assert.h>
15154 /* Override any gcc2 internal prototype to avoid an error. */
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char remove();
15158
15159 int main() {
15160
15161 /* The GNU C library defines this for functions which it implements
15162 to always fail with ENOSYS. Some functions are actually named
15163 something starting with __ and the normal name is an alias. */
15164 #if defined (__stub_remove) || defined (__stub___remove)
15165 choke me
15166 #else
15167 remove();
15168 #endif
15169
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_func_remove=yes"
15175 else
15176 echo "configure: failed program was:" >&5
15177 cat conftest.$ac_ext >&5
15178 rm -rf conftest*
15179 eval "ac_cv_func_remove=no"
15180 fi
15181 rm -f conftest*
15182 fi
15183
15184 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15185 echo "$ac_t""yes" 1>&6
15186 :
15187 else
15188 echo "$ac_t""no" 1>&6
15189 fi
15190
15191 if test $ac_cv_func_remove = no; then
15192 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15193 echo "configure:15194: checking for remove in -lposix" >&5
15194 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15196 echo $ac_n "(cached) $ac_c" 1>&6
15197 else
15198 ac_save_LIBS="$LIBS"
15199 LIBS="-lposix $LIBS"
15200 cat > conftest.$ac_ext <<EOF
15201 #line 15202 "configure"
15202 #include "confdefs.h"
15203 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15206 char remove();
15207
15208 int main() {
15209 remove()
15210 ; return 0; }
15211 EOF
15212 if { (eval echo configure:15213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15213 rm -rf conftest*
15214 eval "ac_cv_lib_$ac_lib_var=yes"
15215 else
15216 echo "configure: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15218 rm -rf conftest*
15219 eval "ac_cv_lib_$ac_lib_var=no"
15220 fi
15221 rm -f conftest*
15222 LIBS="$ac_save_LIBS"
15223
15224 fi
15225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15226 echo "$ac_t""yes" 1>&6
15227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15228 else
15229 echo "$ac_t""no" 1>&6
15230 fi
15231
15232 fi
15233
15234 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15235 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15236 echo "configure:15237: checking for shmat" >&5
15237 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15239 else
15240 cat > conftest.$ac_ext <<EOF
15241 #line 15242 "configure"
15242 #include "confdefs.h"
15243 /* System header to define __stub macros and hopefully few prototypes,
15244 which can conflict with char shmat(); below. */
15245 #include <assert.h>
15246 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15249 char shmat();
15250
15251 int main() {
15252
15253 /* The GNU C library defines this for functions which it implements
15254 to always fail with ENOSYS. Some functions are actually named
15255 something starting with __ and the normal name is an alias. */
15256 #if defined (__stub_shmat) || defined (__stub___shmat)
15257 choke me
15258 #else
15259 shmat();
15260 #endif
15261
15262 ; return 0; }
15263 EOF
15264 if { (eval echo configure:15265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15265 rm -rf conftest*
15266 eval "ac_cv_func_shmat=yes"
15267 else
15268 echo "configure: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 rm -rf conftest*
15271 eval "ac_cv_func_shmat=no"
15272 fi
15273 rm -f conftest*
15274 fi
15275
15276 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15277 echo "$ac_t""yes" 1>&6
15278 :
15279 else
15280 echo "$ac_t""no" 1>&6
15281 fi
15282
15283 if test $ac_cv_func_shmat = no; then
15284 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15285 echo "configure:15286: checking for shmat in -lipc" >&5
15286 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15288 echo $ac_n "(cached) $ac_c" 1>&6
15289 else
15290 ac_save_LIBS="$LIBS"
15291 LIBS="-lipc $LIBS"
15292 cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15295 /* Override any gcc2 internal prototype to avoid an error. */
15296 /* We use char because int might match the return type of a gcc2
15297 builtin and then its argument prototype would still apply. */
15298 char shmat();
15299
15300 int main() {
15301 shmat()
15302 ; return 0; }
15303 EOF
15304 if { (eval echo configure:15305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15305 rm -rf conftest*
15306 eval "ac_cv_lib_$ac_lib_var=yes"
15307 else
15308 echo "configure: failed program was:" >&5
15309 cat conftest.$ac_ext >&5
15310 rm -rf conftest*
15311 eval "ac_cv_lib_$ac_lib_var=no"
15312 fi
15313 rm -f conftest*
15314 LIBS="$ac_save_LIBS"
15315
15316 fi
15317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15318 echo "$ac_t""yes" 1>&6
15319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15320 else
15321 echo "$ac_t""no" 1>&6
15322 fi
15323
15324 fi
15325 fi
15326
15327 # Check for libraries that X11R6 Xt/Xaw programs need.
15328 ac_save_LDFLAGS="$LDFLAGS"
15329 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15330 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15331 # check for ICE first), but we must link in the order -lSM -lICE or
15332 # we get undefined symbols. So assume we have SM if we have ICE.
15333 # These have to be linked with before -lX11, unlike the other
15334 # libraries we check for below, so use a different variable.
15335 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15336 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15337 echo "configure:15338: checking for IceConnectionNumber in -lICE" >&5
15338 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15340 echo $ac_n "(cached) $ac_c" 1>&6
15341 else
15342 ac_save_LIBS="$LIBS"
15343 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15344 cat > conftest.$ac_ext <<EOF
15345 #line 15346 "configure"
15346 #include "confdefs.h"
15347 /* Override any gcc2 internal prototype to avoid an error. */
15348 /* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15350 char IceConnectionNumber();
15351
15352 int main() {
15353 IceConnectionNumber()
15354 ; return 0; }
15355 EOF
15356 if { (eval echo configure:15357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15357 rm -rf conftest*
15358 eval "ac_cv_lib_$ac_lib_var=yes"
15359 else
15360 echo "configure: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15362 rm -rf conftest*
15363 eval "ac_cv_lib_$ac_lib_var=no"
15364 fi
15365 rm -f conftest*
15366 LIBS="$ac_save_LIBS"
15367
15368 fi
15369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15370 echo "$ac_t""yes" 1>&6
15371 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15372 else
15373 echo "$ac_t""no" 1>&6
15374 fi
15375
15376 LDFLAGS="$ac_save_LDFLAGS"
15377
15378 fi
15379
15380
15381 if test "$no_x" = "yes"; then
15382 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15383 fi
15384
15385 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15386 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15387 AFMINSTALL=afminstall
15388 COMPILED_X_PROGRAM=0
15389
15390 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15391 echo "configure:15392: checking for Motif/Lesstif headers" >&5
15392
15393 ac_find_includes=
15394 for ac_dir in $SEARCH_INCLUDE /usr/include;
15395 do
15396 if test -f "$ac_dir/Xm/Xm.h"; then
15397 ac_find_includes=$ac_dir
15398 break
15399 fi
15400 done
15401
15402 if test "$ac_find_includes" != "" ; then
15403 echo "$ac_t""found in $ac_find_includes" 1>&6
15404
15405 if test "x$ac_find_includes" = "x/usr/include"; then
15406 ac_path_to_include=""
15407 else
15408 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15409 result=$?
15410 if test $result = 0; then
15411 ac_path_to_include=""
15412 else
15413 ac_path_to_include=" -I$ac_find_includes"
15414 fi
15415 fi
15416
15417 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15418 else
15419 cat > conftest.$ac_ext <<EOF
15420 #line 15421 "configure"
15421 #include "confdefs.h"
15422
15423 #include <Xm/Xm.h>
15424
15425 int main() {
15426
15427 int version;
15428 version = xmUseVersion;
15429
15430 ; return 0; }
15431 EOF
15432 if { (eval echo configure:15433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15433 rm -rf conftest*
15434
15435 echo "$ac_t""found in default search path" 1>&6
15436 COMPILED_X_PROGRAM=1
15437
15438 else
15439 echo "configure: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15441 rm -rf conftest*
15442
15443 echo "$ac_t""no" 1>&6
15444 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15445
15446
15447 fi
15448 rm -f conftest*
15449 fi
15450
15451 if test "$COMPILED_X_PROGRAM" = 0; then
15452 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15453 echo "configure:15454: checking for Motif/Lesstif library" >&5
15454
15455 ac_find_libraries=
15456 for ac_dir in $SEARCH_LIB /usr/lib;
15457 do
15458 for ac_extension in a so sl dylib; do
15459 if test -f "$ac_dir/libXm.$ac_extension"; then
15460 ac_find_libraries=$ac_dir
15461 break 2
15462 fi
15463 done
15464 done
15465
15466 if test "$ac_find_libraries" != "" ; then
15467 echo "$ac_t""found at $ac_find_libraries" 1>&6
15468
15469
15470 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15471 result=$?
15472 if test $result = 0; then
15473 ac_path_to_link=""
15474 else
15475 ac_path_to_link=" -L$ac_find_libraries"
15476 fi
15477
15478 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15479 else
15480 save_CFLAGS=$CFLAGS
15481 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15482
15483 cat > conftest.$ac_ext <<EOF
15484 #line 15485 "configure"
15485 #include "confdefs.h"
15486
15487 #include <Xm/Xm.h>
15488
15489 int main() {
15490
15491 int version;
15492 version = xmUseVersion;
15493
15494 ; return 0; }
15495 EOF
15496 if { (eval echo configure:15497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15497 rm -rf conftest*
15498
15499 echo "$ac_t""found in default search path" 1>&6
15500 COMPILED_X_PROGRAM=1
15501
15502 else
15503 echo "configure: failed program was:" >&5
15504 cat conftest.$ac_ext >&5
15505 rm -rf conftest*
15506
15507 echo "$ac_t""no" 1>&6
15508 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15509
15510
15511 fi
15512 rm -f conftest*
15513
15514 CFLAGS=$save_CFLAGS
15515 fi
15516 fi
15517
15518 xpm_link=
15519 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15520 echo "configure:15521: checking for Xpm library" >&5
15521
15522 ac_find_libraries=
15523 for ac_dir in $SEARCH_LIB /usr/lib;
15524 do
15525 for ac_extension in a so sl dylib; do
15526 if test -f "$ac_dir/libXpm.$ac_extension"; then
15527 ac_find_libraries=$ac_dir
15528 break 2
15529 fi
15530 done
15531 done
15532
15533 if test "$ac_find_libraries" != "" ; then
15534
15535 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15536 result=$?
15537 if test $result = 0; then
15538 ac_path_to_link=""
15539 else
15540 ac_path_to_link=" -L$ac_find_libraries"
15541 fi
15542
15543 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15544
15545 xpm_link=" -lXpm"
15546 cat >> confdefs.h <<\EOF
15547 #define wxHAVE_LIB_XPM 1
15548 EOF
15549
15550 echo "$ac_t""found at $ac_find_libraries" 1>&6
15551 else
15552 save_CFLAGS=$CFLAGS
15553 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15554
15555 cat > conftest.$ac_ext <<EOF
15556 #line 15557 "configure"
15557 #include "confdefs.h"
15558
15559 #include <X11/xpm.h>
15560
15561 int main() {
15562
15563 int version;
15564 version = XpmLibraryVersion();
15565
15566 ; return 0; }
15567 EOF
15568 if { (eval echo configure:15569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15569 rm -rf conftest*
15570
15571 xpm_link=" -lXpm"
15572 cat >> confdefs.h <<\EOF
15573 #define wxHAVE_LIB_XPM 1
15574 EOF
15575
15576 echo "$ac_t""found in default search path" 1>&6
15577 COMPILED_X_PROGRAM=0
15578
15579 else
15580 echo "configure: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15582 rm -rf conftest*
15583
15584 echo "$ac_t""no" 1>&6
15585 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15586
15587
15588 fi
15589 rm -f conftest*
15590
15591 CFLAGS=$save_CFLAGS
15592 fi
15593
15594 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15595 echo "configure:15596: checking if we need -lXp and/or -lSM -lICE" >&5
15596 libp_link=""
15597 libsm_ice_link=""
15598 libs_found=0
15599 for libp in "" " -lXp"; do
15600 if test "$libs_found" = "0"; then
15601 for libsm_ice in " -lSM -lICE"; do
15602 if test "$libs_found" = "0"; then
15603 save_LIBS="$LIBS"
15604 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15605 save_CFLAGS=$CFLAGS
15606 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15607
15608 cat > conftest.$ac_ext <<EOF
15609 #line 15610 "configure"
15610 #include "confdefs.h"
15611
15612 #include <Xm/Xm.h>
15613 #include <Xm/List.h>
15614
15615 int main() {
15616
15617 XmString string = NULL;
15618 Widget w = NULL;
15619 int position = 0;
15620 XmListAddItem(w, string, position);
15621
15622 ; return 0; }
15623 EOF
15624 if { (eval echo configure:15625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15625 rm -rf conftest*
15626
15627 libp_link="$libp"
15628 libsm_ice_link="$libsm_ice"
15629 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15630 libs_found=1
15631
15632 else
15633 echo "configure: failed program was:" >&5
15634 cat conftest.$ac_ext >&5
15635 rm -rf conftest*
15636
15637
15638 fi
15639 rm -f conftest*
15640
15641 LIBS="$save_LIBS"
15642 CFLAGS=$save_CFLAGS
15643 fi
15644 done
15645 fi
15646 done
15647
15648 if test "$libs_found" = "0"; then
15649 echo "$ac_t""can't find the right libraries" 1>&6
15650 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15651 fi
15652
15653 save_CFLAGS=$CFLAGS
15654 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15655 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15656 echo "configure:15657: checking for Motif 2" >&5
15657 cat > conftest.$ac_ext <<EOF
15658 #line 15659 "configure"
15659 #include "confdefs.h"
15660
15661 #include <Xm/Xm.h>
15662
15663 int main() {
15664
15665 #if XmVersion < 2000
15666 #error "Not Motif 2"
15667 #endif
15668
15669 ; return 0; }
15670 EOF
15671 if { (eval echo configure:15672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15672 rm -rf conftest*
15673
15674 cat >> confdefs.h <<\EOF
15675 #define __WXMOTIF20__ 1
15676 EOF
15677
15678 echo "$ac_t""found" 1>&6
15679
15680 else
15681 echo "configure: failed program was:" >&5
15682 cat conftest.$ac_ext >&5
15683 rm -rf conftest*
15684
15685 cat >> confdefs.h <<\EOF
15686 #define __WXMOTIF20__ 0
15687 EOF
15688
15689 echo "$ac_t""not found" 1>&6
15690
15691 fi
15692 rm -f conftest*
15693 CFLAGS=$save_CFLAGS
15694
15695 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15696 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15697 TOOLKIT=MOTIF
15698 GUIDIST=MOTIF_DIST
15699 wxHAVE_XEXT_LIB=1
15700 fi
15701
15702 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15703 test "$wxHAVE_XEXT_LIB" = 1; then
15704 save_CFLAGS="$CFLAGS"
15705 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15706
15707 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15708 echo "configure:15709: checking for X11/extensions/shape.h" >&5
15709 cat > conftest.$ac_ext <<EOF
15710 #line 15711 "configure"
15711 #include "confdefs.h"
15712
15713 #include <X11/Xlib.h>
15714 #include <X11/extensions/shape.h>
15715
15716 int main() {
15717
15718 int dummy1, dummy2;
15719 XShapeQueryExtension((Display*)NULL,
15720 (int*)NULL, (int*)NULL);
15721
15722 ; return 0; }
15723 EOF
15724 if { (eval echo configure:15725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15725 rm -rf conftest*
15726
15727 cat >> confdefs.h <<\EOF
15728 #define HAVE_XSHAPE 1
15729 EOF
15730
15731 echo "$ac_t""found" 1>&6
15732
15733 else
15734 echo "configure: failed program was:" >&5
15735 cat conftest.$ac_ext >&5
15736 rm -rf conftest*
15737
15738 echo "$ac_t""not found" 1>&6
15739
15740 fi
15741 rm -f conftest*
15742 CFLAGS="$save_CFLAGS"
15743 fi
15744
15745 if test "$wxUSE_MAC" = 1; then
15746 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15747
15748 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15749 TOOLKIT=MAC
15750 GUIDIST=MACX_DIST
15751 fi
15752
15753 if test "$wxUSE_COCOA" = 1; then
15754 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15755 TOOLKIT=COCOA
15756 GUIDIST=COCOA_DIST
15757 fi
15758
15759 if test "$wxUSE_PM" = 1; then
15760 TOOLKIT=PM
15761 GUIDIST=GTK_DIST
15762 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15763 wxUSE_THREADS="no"
15764 fi
15765
15766 if test "$TOOLKIT" = "PM" ; then
15767 TOOLKIT_DIR="os2"
15768 else
15769 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15770 fi
15771
15772 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15773
15774 if test "$wxUSE_UNIVERSAL" = "yes"; then
15775 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15776
15777 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15778 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15779
15780 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15781 if test "$wxUSE_X11" = 1; then
15782 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15783 else
15784 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15785 fi
15786 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15787 WIDGET_SET=univ
15788 else
15789 ALL_OBJECTS="\$(GUIOBJS)"
15790 ALL_SOURCES="\$(ALL_SOURCES)"
15791 ALL_HEADERS="\$(ALL_HEADERS)"
15792 fi
15793
15794 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15795
15796 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15797 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15798 fi
15799
15800 if test "$wxUSE_HTML" = "yes"; then
15801 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15802 fi
15803
15804 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15805 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15806 fi
15807 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15808 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15809 fi
15810 if test "$wxUSE_LIBPNG" = "builtin" ; then
15811 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15812 fi
15813
15814 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15815 DISTDIR="wx\$(TOOLKIT)"
15816 else
15817 USE_GUI=0
15818
15819 TOOLKIT_DIR="base"
15820
15821 if test "$USE_WIN32" = 1 ; then
15822 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15823 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15824
15825 TOOLKIT="MSW"
15826 else
15827 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15828 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15829 fi
15830
15831 ALL_SOURCES="\$(ALL_SOURCES)"
15832 ALL_HEADERS="\$(ALL_HEADERS)"
15833
15834 PORT_FILES="\${top_srcdir}/src/files.lst"
15835
15836 GUIDIST="BASE_DIST"
15837 DISTDIR="wxBase"
15838 fi
15839
15840
15841
15842
15843 IODBC_C_SRC=""
15844
15845
15846 if test "$TOOLKIT" != "MSW" ; then
15847
15848 if test "$wxUSE_ODBC" != "no" ; then
15849 cat >> confdefs.h <<\EOF
15850 #define wxUSE_ODBC 1
15851 EOF
15852
15853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15854
15855 WXODBCFLAG="-D_IODBC_"
15856
15857
15858 if test "$wxUSE_ODBC" = "sys" ; then
15859
15860 ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15861 echo $ac_n "checking for sql.h""... $ac_c" 1>&6
15862 echo "configure:15863: checking for sql.h" >&5
15863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15864 echo $ac_n "(cached) $ac_c" 1>&6
15865 else
15866 cat > conftest.$ac_ext <<EOF
15867 #line 15868 "configure"
15868 #include "confdefs.h"
15869 #include <sql.h>
15870 EOF
15871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15872 { (eval echo configure:15873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15874 if test -z "$ac_err"; then
15875 rm -rf conftest*
15876 eval "ac_cv_header_$ac_safe=yes"
15877 else
15878 echo "$ac_err" >&5
15879 echo "configure: failed program was:" >&5
15880 cat conftest.$ac_ext >&5
15881 rm -rf conftest*
15882 eval "ac_cv_header_$ac_safe=no"
15883 fi
15884 rm -f conftest*
15885 fi
15886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15887 echo "$ac_t""yes" 1>&6
15888 :
15889 else
15890 echo "$ac_t""no" 1>&6
15891 fi
15892
15893
15894 echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
15895 echo "configure:15896: checking for library containing SQLAllocEnv" >&5
15896 if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15897 echo $ac_n "(cached) $ac_c" 1>&6
15898 else
15899 ac_func_search_save_LIBS="$LIBS"
15900 ac_cv_search_SQLAllocEnv="no"
15901 cat > conftest.$ac_ext <<EOF
15902 #line 15903 "configure"
15903 #include "confdefs.h"
15904 /* Override any gcc2 internal prototype to avoid an error. */
15905 /* We use char because int might match the return type of a gcc2
15906 builtin and then its argument prototype would still apply. */
15907 char SQLAllocEnv();
15908
15909 int main() {
15910 SQLAllocEnv()
15911 ; return 0; }
15912 EOF
15913 if { (eval echo configure:15914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15914 rm -rf conftest*
15915 ac_cv_search_SQLAllocEnv="none required"
15916 else
15917 echo "configure: failed program was:" >&5
15918 cat conftest.$ac_ext >&5
15919 fi
15920 rm -f conftest*
15921 test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15922 LIBS="-l$i $ac_func_search_save_LIBS"
15923 cat > conftest.$ac_ext <<EOF
15924 #line 15925 "configure"
15925 #include "confdefs.h"
15926 /* Override any gcc2 internal prototype to avoid an error. */
15927 /* We use char because int might match the return type of a gcc2
15928 builtin and then its argument prototype would still apply. */
15929 char SQLAllocEnv();
15930
15931 int main() {
15932 SQLAllocEnv()
15933 ; return 0; }
15934 EOF
15935 if { (eval echo configure:15936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15936 rm -rf conftest*
15937 ac_cv_search_SQLAllocEnv="-l$i"
15938 break
15939 else
15940 echo "configure: failed program was:" >&5
15941 cat conftest.$ac_ext >&5
15942 fi
15943 rm -f conftest*
15944 done
15945 LIBS="$ac_func_search_save_LIBS"
15946 fi
15947
15948 echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15949 if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15950 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15951
15952 else :
15953 wxUSE_ODBC=builtin
15954 fi
15955 fi
15956
15957 fi
15958
15959 if test "$wxUSE_ODBC" != "sys" ; then
15960 echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2
15961 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15962 fi
15963 fi
15964
15965 if test "$wxUSE_REGEX" = "builtin" ; then
15966 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15967 fi
15968 if test "$wxUSE_ZLIB" = "builtin" ; then
15969 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15970 fi
15971
15972
15973 if test "$wxUSE_OPENGL" = "yes"; then
15974 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15975 OPENGL_LIBS="-framework OpenGL -framework AGL"
15976 elif test "$wxUSE_MSW" = 1; then
15977 OPENGL_LIBS="-lopengl32 -lglu32"
15978 else
15979 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15980 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15981 echo "configure:15982: checking for GL/gl.h" >&5
15982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15983 echo $ac_n "(cached) $ac_c" 1>&6
15984 else
15985 cat > conftest.$ac_ext <<EOF
15986 #line 15987 "configure"
15987 #include "confdefs.h"
15988 #include <GL/gl.h>
15989 EOF
15990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15991 { (eval echo configure:15992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15993 if test -z "$ac_err"; then
15994 rm -rf conftest*
15995 eval "ac_cv_header_$ac_safe=yes"
15996 else
15997 echo "$ac_err" >&5
15998 echo "configure: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 rm -rf conftest*
16001 eval "ac_cv_header_$ac_safe=no"
16002 fi
16003 rm -f conftest*
16004 fi
16005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16006 echo "$ac_t""yes" 1>&6
16007
16008 found_gl=0
16009
16010 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
16011 echo "configure:16012: checking for -lGL" >&5
16012
16013 ac_find_libraries=
16014 for ac_dir in $SEARCH_LIB /usr/lib;
16015 do
16016 for ac_extension in a so sl dylib; do
16017 if test -f "$ac_dir/libGL.$ac_extension"; then
16018 ac_find_libraries=$ac_dir
16019 break 2
16020 fi
16021 done
16022 done
16023
16024 if test "$ac_find_libraries" != "" ; then
16025
16026 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16027 result=$?
16028 if test $result = 0; then
16029 ac_path_to_link=""
16030 else
16031 ac_path_to_link=" -L$ac_find_libraries"
16032 fi
16033
16034 if test "$ac_path_to_link" != " -L/usr/lib" ; then
16035 LDFLAGS_GL="$ac_path_to_link"
16036 fi
16037
16038
16039 ac_find_libraries=
16040 for ac_dir in $SEARCH_LIB /usr/lib;
16041 do
16042 for ac_extension in a so sl dylib; do
16043 if test -f "$ac_dir/libGLU.$ac_extension"; then
16044 ac_find_libraries=$ac_dir
16045 break 2
16046 fi
16047 done
16048 done
16049
16050 if test "$ac_find_libraries" != "" ; then
16051
16052 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16053 result=$?
16054 if test $result = 0; then
16055 ac_path_to_link=""
16056 else
16057 ac_path_to_link=" -L$ac_find_libraries"
16058 fi
16059
16060 if test "$ac_path_to_link" != " -L/usr/lib" -a \
16061 "$ac_path_to_link" != "$LDFLAGS_GL"; then
16062 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16063 fi
16064
16065 found_gl=1
16066 OPENGL_LIBS="-lGL -lGLU"
16067 echo "$ac_t""yes" 1>&6
16068 fi
16069 fi
16070
16071 if "$found_gl" != 1; then
16072 echo "$ac_t""no" 1>&6
16073 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
16074 echo "configure:16075: checking for -lMesaGL" >&5
16075
16076 ac_find_libraries=
16077 for ac_dir in $SEARCH_LIB /usr/lib;
16078 do
16079 for ac_extension in a so sl dylib; do
16080 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16081 ac_find_libraries=$ac_dir
16082 break 2
16083 fi
16084 done
16085 done
16086
16087 if test "$ac_find_libraries" != "" ; then
16088
16089 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16090 result=$?
16091 if test $result = 0; then
16092 ac_path_to_link=""
16093 else
16094 ac_path_to_link=" -L$ac_find_libraries"
16095 fi
16096
16097 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16098 OPENGL_LIBS="-lMesaGL -lMesaGLU"
16099 echo "$ac_t""yes" 1>&6
16100 else
16101 echo "$ac_t""no" 1>&6
16102 fi
16103 fi
16104
16105 else
16106 echo "$ac_t""no" 1>&6
16107 fi
16108
16109
16110 if test "x$OPENGL_LIBS" = "x"; then
16111 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16112 fi
16113 fi
16114
16115 if test "$wxUSE_OPENGL" = "yes"; then
16116 cat >> confdefs.h <<\EOF
16117 #define wxUSE_OPENGL 1
16118 EOF
16119
16120 cat >> confdefs.h <<\EOF
16121 #define wxUSE_GLCANVAS 1
16122 EOF
16123
16124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16125 fi
16126 fi
16127
16128 if test -z "$TOOLKIT_VPATH" ; then
16129 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16130 fi
16131
16132 if test -n "$TOOLKIT" ; then
16133 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16134 fi
16135
16136 lib_unicode_suffix=
16137 if test "$wxUSE_UNICODE" = "yes"; then
16138 lib_unicode_suffix=u
16139 fi
16140
16141 lib_debug_suffix=
16142 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16143 lib_debug_suffix=d
16144 fi
16145
16146 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16147
16148 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16149 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16150
16151 if test "$cross_compiling" = "yes"; then
16152 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16153 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16154 fi
16155
16156 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16157 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16158 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16159
16160 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16161 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16162
16163 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16164 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16165 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16166 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16167
16168 case "${host}" in
16169 *-*-cygwin* | *-*-mingw32* )
16170
16171
16172
16173 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16174 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16175 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16176 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16177 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16178 else
16179 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16180 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16181 fi
16182 ;;
16183
16184 *-*-darwin* )
16185
16186 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16187 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16188
16189 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16190 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16191 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16192 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16193
16194 if test "$wxUSE_MAC" = 1; then
16195 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16196 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16197 fi
16198 ;;
16199 esac
16200
16201 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16202 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16203
16204 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16205 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16206
16207 if test "$wxUSE_OPENGL" = "yes"; then
16208 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16209 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16210 fi
16211
16212
16213
16214 if test "$wxUSE_SHARED" = "yes"; then
16215 case "${host}" in
16216 *-pc-os2_emx | *-pc-os2-emx | \
16217 *-pc-msdosdjgpp )
16218 wxUSE_SHARED=no
16219 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16220 ;;
16221 esac
16222 fi
16223
16224 if test "$wxUSE_SHARED" = "yes"; then
16225
16226 if test "$wxUSE_OPENGL" = "yes"; then
16227 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16228 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16229 else
16230 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16231 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16232 fi
16233
16234 if test "$GCC" = "yes"; then
16235 PIC_FLAG="-fPIC"
16236 fi
16237
16238
16239
16240 found_versioning=no
16241
16242
16243 if test $found_versioning = no ; then
16244 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16245 echo "configure:16246: checking if the linker accepts --version-script" >&5
16246 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16248 else
16249
16250 echo "VER_1 { *; };" >conftest.sym
16251 echo "int main() { return 0; }" >conftest.cpp
16252
16253 if { ac_try='
16254 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16255 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16256 if test -s conftest.stderr ; then
16257 wx_cv_version_script=no
16258 else
16259 wx_cv_version_script=yes
16260 fi
16261 else
16262 wx_cv_version_script=no
16263 fi
16264 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16265
16266 fi
16267
16268 echo "$ac_t""$wx_cv_version_script" 1>&6
16269 if test $wx_cv_version_script = yes ; then
16270 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16271 fi
16272 fi
16273
16274
16275 SHARED_LD="${CXX} -shared -o"
16276
16277 case "${host}" in
16278 *-hp-hpux* )
16279 if test "$GCC" = "yes"; then
16280 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16281 else
16282 LDFLAGS="$LDFLAGS -L/usr/lib"
16283
16284 SHARED_LD="${CXX} -b -o"
16285 PIC_FLAG="+Z"
16286 fi
16287
16288 if test "$wxUSE_OPENGL" = "yes"; then
16289 WX_ALL_INSTALLED="preinstall_gl"
16290 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16291 else
16292 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16293 fi
16294 ;;
16295
16296 *-*-linux* )
16297 if test "$GCC" != "yes"; then
16298 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16299 echo "configure:16300: checking for Intel compiler" >&5
16300 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16301 echo $ac_n "(cached) $ac_c" 1>&6
16302 else
16303
16304 cat > conftest.$ac_ext <<EOF
16305 #line 16306 "configure"
16306 #include "confdefs.h"
16307
16308 int main() {
16309
16310 #ifndef __INTEL_COMPILER
16311 #error Not icc
16312 #endif
16313
16314 ; return 0; }
16315 EOF
16316 if { (eval echo configure:16317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16317 rm -rf conftest*
16318 wx_cv_prog_icc=yes
16319 else
16320 echo "configure: failed program was:" >&5
16321 cat conftest.$ac_ext >&5
16322 rm -rf conftest*
16323 wx_cv_prog_icc=no
16324
16325 fi
16326 rm -f conftest*
16327
16328 fi
16329
16330 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16331 if test "$wx_cv_prog_icc" = "yes"; then
16332 PIC_FLAG="-KPIC"
16333 fi
16334 fi
16335
16336 if test "$wxUSE_SONAME" = "yes" ; then
16337 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16338 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16339 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16340 fi
16341 ;;
16342
16343 *-*-solaris2* )
16344 if test "$GCC" = yes ; then
16345 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16346 else
16347 SHARED_LD="${CXX} -G -o"
16348 PIC_FLAG="-KPIC"
16349 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16350 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16351 fi
16352 ;;
16353
16354 *-*-darwin* )
16355 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16356 CFLAGS="$CFLAGS -fno-common"
16357 CXXFLAGS="$CXXFLAGS -fno-common"
16358 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16359 PIC_FLAG="-dynamic -fPIC"
16360 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16361 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16362 ;;
16363
16364 *-*-aix* )
16365 if test "$GCC" != "yes"; then
16366 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16367 set dummy makeC++SharedLib; ac_word=$2
16368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16369 echo "configure:16370: checking for $ac_word" >&5
16370 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16371 echo $ac_n "(cached) $ac_c" 1>&6
16372 else
16373 if test -n "$AIX_CXX_LD"; then
16374 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16375 else
16376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16377 ac_dummy="$PATH"
16378 for ac_dir in $ac_dummy; do
16379 test -z "$ac_dir" && ac_dir=.
16380 if test -f $ac_dir/$ac_word; then
16381 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16382 break
16383 fi
16384 done
16385 IFS="$ac_save_ifs"
16386 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16387 fi
16388 fi
16389 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16390 if test -n "$AIX_CXX_LD"; then
16391 echo "$ac_t""$AIX_CXX_LD" 1>&6
16392 else
16393 echo "$ac_t""no" 1>&6
16394 fi
16395
16396
16397 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16398 fi
16399 ;;
16400
16401 *-*-cygwin* | *-*-mingw32* )
16402 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16403
16404 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16405 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16406
16407 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16408
16409 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16410 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16411
16412 if test "$wxUSE_OPENGL" = "yes"; then
16413 LIBS="${LIBS} ${OPENGL_LIBS}"
16414 fi
16415 ;;
16416
16417 *-*-beos* )
16418 SHARED_LD="${LD} -shared -o"
16419 ;;
16420
16421 *-*-irix* )
16422 if test "$GCC" != "yes"; then
16423 PIC_FLAG="-KPIC"
16424 fi
16425 ;;
16426
16427 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16428 *-*-sunos4* | \
16429 *-*-osf* | \
16430 *-*-dgux5* | \
16431 *-*-sysv5* )
16432 ;;
16433
16434 *)
16435 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16436 esac
16437
16438 if test "x$WX_TARGET_LIBRARY" = "x"; then
16439 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16440 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16441 fi
16442
16443 WX_TARGET_LIBRARY_TYPE="so"
16444 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16445 fi
16446
16447 if test "$wxUSE_SHARED" = "no"; then
16448
16449 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16450 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16451 fi
16452
16453 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16454 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16455 fi
16456
16457 if test "$wxUSE_OPENGL" = "yes"; then
16458 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16459 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16460 else
16461 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16462 fi
16463
16464 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16465 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16466
16467 WX_TARGET_LIBRARY_TYPE="a"
16468 INSTALL_LIBRARY='$(INSTALL_DATA)'
16469
16470 STATIC_FLAG="yes"
16471 else
16472 STATIC_FLAG="no"
16473 fi
16474
16475 MACRESCOMP="@#"
16476 MACSETFILE="@#"
16477 MACRESWXCONFIG="#"
16478 if test "$wxUSE_MAC" = 1; then
16479 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16480 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16481 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16482 # Extract the first word of "Rez", so it can be a program name with args.
16483 set dummy Rez; ac_word=$2
16484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16485 echo "configure:16486: checking for $ac_word" >&5
16486 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16487 echo $ac_n "(cached) $ac_c" 1>&6
16488 else
16489 if test -n "$RESCOMP"; then
16490 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16491 else
16492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16493 ac_dummy="$PATH"
16494 for ac_dir in $ac_dummy; do
16495 test -z "$ac_dir" && ac_dir=.
16496 if test -f $ac_dir/$ac_word; then
16497 ac_cv_prog_RESCOMP="Rez"
16498 break
16499 fi
16500 done
16501 IFS="$ac_save_ifs"
16502 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16503 fi
16504 fi
16505 RESCOMP="$ac_cv_prog_RESCOMP"
16506 if test -n "$RESCOMP"; then
16507 echo "$ac_t""$RESCOMP" 1>&6
16508 else
16509 echo "$ac_t""no" 1>&6
16510 fi
16511
16512 # Extract the first word of "DeRez", so it can be a program name with args.
16513 set dummy DeRez; ac_word=$2
16514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16515 echo "configure:16516: checking for $ac_word" >&5
16516 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16517 echo $ac_n "(cached) $ac_c" 1>&6
16518 else
16519 if test -n "$DEREZ"; then
16520 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16521 else
16522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16523 ac_dummy="$PATH"
16524 for ac_dir in $ac_dummy; do
16525 test -z "$ac_dir" && ac_dir=.
16526 if test -f $ac_dir/$ac_word; then
16527 ac_cv_prog_DEREZ="DeRez"
16528 break
16529 fi
16530 done
16531 IFS="$ac_save_ifs"
16532 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16533 fi
16534 fi
16535 DEREZ="$ac_cv_prog_DEREZ"
16536 if test -n "$DEREZ"; then
16537 echo "$ac_t""$DEREZ" 1>&6
16538 else
16539 echo "$ac_t""no" 1>&6
16540 fi
16541
16542 # Extract the first word of "SetFile", so it can be a program name with args.
16543 set dummy SetFile; ac_word=$2
16544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16545 echo "configure:16546: checking for $ac_word" >&5
16546 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16547 echo $ac_n "(cached) $ac_c" 1>&6
16548 else
16549 if test -n "$SETFILE"; then
16550 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16551 else
16552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16553 ac_dummy="$PATH"
16554 for ac_dir in $ac_dummy; do
16555 test -z "$ac_dir" && ac_dir=.
16556 if test -f $ac_dir/$ac_word; then
16557 ac_cv_prog_SETFILE="SetFile"
16558 break
16559 fi
16560 done
16561 IFS="$ac_save_ifs"
16562 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16563 fi
16564 fi
16565 SETFILE="$ac_cv_prog_SETFILE"
16566 if test -n "$SETFILE"; then
16567 echo "$ac_t""$SETFILE" 1>&6
16568 else
16569 echo "$ac_t""no" 1>&6
16570 fi
16571
16572 MACOSX_BUNDLE="bundle"
16573 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16574 MACSETFILE="\$(SETFILE)"
16575 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16576 elif test "$wxUSE_COCOA" = 1; then
16577 # Extract the first word of "Rez", so it can be a program name with args.
16578 set dummy Rez; ac_word=$2
16579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16580 echo "configure:16581: checking for $ac_word" >&5
16581 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16582 echo $ac_n "(cached) $ac_c" 1>&6
16583 else
16584 if test -n "$RESCOMP"; then
16585 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16586 else
16587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16588 ac_dummy="$PATH"
16589 for ac_dir in $ac_dummy; do
16590 test -z "$ac_dir" && ac_dir=.
16591 if test -f $ac_dir/$ac_word; then
16592 ac_cv_prog_RESCOMP="Rez"
16593 break
16594 fi
16595 done
16596 IFS="$ac_save_ifs"
16597 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16598 fi
16599 fi
16600 RESCOMP="$ac_cv_prog_RESCOMP"
16601 if test -n "$RESCOMP"; then
16602 echo "$ac_t""$RESCOMP" 1>&6
16603 else
16604 echo "$ac_t""no" 1>&6
16605 fi
16606
16607 # Extract the first word of "DeRez", so it can be a program name with args.
16608 set dummy DeRez; ac_word=$2
16609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16610 echo "configure:16611: checking for $ac_word" >&5
16611 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16612 echo $ac_n "(cached) $ac_c" 1>&6
16613 else
16614 if test -n "$DEREZ"; then
16615 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16616 else
16617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16618 ac_dummy="$PATH"
16619 for ac_dir in $ac_dummy; do
16620 test -z "$ac_dir" && ac_dir=.
16621 if test -f $ac_dir/$ac_word; then
16622 ac_cv_prog_DEREZ="DeRez"
16623 break
16624 fi
16625 done
16626 IFS="$ac_save_ifs"
16627 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16628 fi
16629 fi
16630 DEREZ="$ac_cv_prog_DEREZ"
16631 if test -n "$DEREZ"; then
16632 echo "$ac_t""$DEREZ" 1>&6
16633 else
16634 echo "$ac_t""no" 1>&6
16635 fi
16636
16637 # Extract the first word of "SetFile", so it can be a program name with args.
16638 set dummy SetFile; ac_word=$2
16639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16640 echo "configure:16641: checking for $ac_word" >&5
16641 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16642 echo $ac_n "(cached) $ac_c" 1>&6
16643 else
16644 if test -n "$SETFILE"; then
16645 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16646 else
16647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16648 ac_dummy="$PATH"
16649 for ac_dir in $ac_dummy; do
16650 test -z "$ac_dir" && ac_dir=.
16651 if test -f $ac_dir/$ac_word; then
16652 ac_cv_prog_SETFILE="SetFile"
16653 break
16654 fi
16655 done
16656 IFS="$ac_save_ifs"
16657 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16658 fi
16659 fi
16660 SETFILE="$ac_cv_prog_SETFILE"
16661 if test -n "$SETFILE"; then
16662 echo "$ac_t""$SETFILE" 1>&6
16663 else
16664 echo "$ac_t""no" 1>&6
16665 fi
16666
16667 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16668 MACSETFILE="\$(SETFILE)"
16669 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16670 else
16671 if test "$wxUSE_PM" = 1; then
16672 MACRESCOMP="emxbind -ep"
16673 fi
16674 fi
16675
16676
16677 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16678 echo "configure:16679: checking for ANSI C header files" >&5
16679 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16680 echo $ac_n "(cached) $ac_c" 1>&6
16681 else
16682 cat > conftest.$ac_ext <<EOF
16683 #line 16684 "configure"
16684 #include "confdefs.h"
16685 #include <stdlib.h>
16686 #include <stdarg.h>
16687 #include <string.h>
16688 #include <float.h>
16689 EOF
16690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16691 { (eval echo configure:16692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16693 if test -z "$ac_err"; then
16694 rm -rf conftest*
16695 ac_cv_header_stdc=yes
16696 else
16697 echo "$ac_err" >&5
16698 echo "configure: failed program was:" >&5
16699 cat conftest.$ac_ext >&5
16700 rm -rf conftest*
16701 ac_cv_header_stdc=no
16702 fi
16703 rm -f conftest*
16704
16705 if test $ac_cv_header_stdc = yes; then
16706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16707 cat > conftest.$ac_ext <<EOF
16708 #line 16709 "configure"
16709 #include "confdefs.h"
16710 #include <string.h>
16711 EOF
16712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16713 egrep "memchr" >/dev/null 2>&1; then
16714 :
16715 else
16716 rm -rf conftest*
16717 ac_cv_header_stdc=no
16718 fi
16719 rm -f conftest*
16720
16721 fi
16722
16723 if test $ac_cv_header_stdc = yes; then
16724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16725 cat > conftest.$ac_ext <<EOF
16726 #line 16727 "configure"
16727 #include "confdefs.h"
16728 #include <stdlib.h>
16729 EOF
16730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16731 egrep "free" >/dev/null 2>&1; then
16732 :
16733 else
16734 rm -rf conftest*
16735 ac_cv_header_stdc=no
16736 fi
16737 rm -f conftest*
16738
16739 fi
16740
16741 if test $ac_cv_header_stdc = yes; then
16742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16743 if test "$cross_compiling" = yes; then
16744 :
16745 else
16746 cat > conftest.$ac_ext <<EOF
16747 #line 16748 "configure"
16748 #include "confdefs.h"
16749 #include <ctype.h>
16750 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16751 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16753 int main () { int i; for (i = 0; i < 256; i++)
16754 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16755 exit (0); }
16756
16757 EOF
16758 if { (eval echo configure:16759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16759 then
16760 :
16761 else
16762 echo "configure: failed program was:" >&5
16763 cat conftest.$ac_ext >&5
16764 rm -fr conftest*
16765 ac_cv_header_stdc=no
16766 fi
16767 rm -fr conftest*
16768 fi
16769
16770 fi
16771 fi
16772
16773 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16774 if test $ac_cv_header_stdc = yes; then
16775 cat >> confdefs.h <<\EOF
16776 #define STDC_HEADERS 1
16777 EOF
16778
16779 fi
16780
16781 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16782 echo "configure:16783: checking for mode_t" >&5
16783 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16784 echo $ac_n "(cached) $ac_c" 1>&6
16785 else
16786 cat > conftest.$ac_ext <<EOF
16787 #line 16788 "configure"
16788 #include "confdefs.h"
16789 #include <sys/types.h>
16790 #if STDC_HEADERS
16791 #include <stdlib.h>
16792 #include <stddef.h>
16793 #endif
16794 EOF
16795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16796 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16797 rm -rf conftest*
16798 ac_cv_type_mode_t=yes
16799 else
16800 rm -rf conftest*
16801 ac_cv_type_mode_t=no
16802 fi
16803 rm -f conftest*
16804
16805 fi
16806 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16807 if test $ac_cv_type_mode_t = no; then
16808 cat >> confdefs.h <<\EOF
16809 #define mode_t int
16810 EOF
16811
16812 fi
16813
16814 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16815 echo "configure:16816: checking for off_t" >&5
16816 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16817 echo $ac_n "(cached) $ac_c" 1>&6
16818 else
16819 cat > conftest.$ac_ext <<EOF
16820 #line 16821 "configure"
16821 #include "confdefs.h"
16822 #include <sys/types.h>
16823 #if STDC_HEADERS
16824 #include <stdlib.h>
16825 #include <stddef.h>
16826 #endif
16827 EOF
16828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16829 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16830 rm -rf conftest*
16831 ac_cv_type_off_t=yes
16832 else
16833 rm -rf conftest*
16834 ac_cv_type_off_t=no
16835 fi
16836 rm -f conftest*
16837
16838 fi
16839 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16840 if test $ac_cv_type_off_t = no; then
16841 cat >> confdefs.h <<\EOF
16842 #define off_t long
16843 EOF
16844
16845 fi
16846
16847 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16848 echo "configure:16849: checking for pid_t" >&5
16849 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16850 echo $ac_n "(cached) $ac_c" 1>&6
16851 else
16852 cat > conftest.$ac_ext <<EOF
16853 #line 16854 "configure"
16854 #include "confdefs.h"
16855 #include <sys/types.h>
16856 #if STDC_HEADERS
16857 #include <stdlib.h>
16858 #include <stddef.h>
16859 #endif
16860 EOF
16861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16862 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16863 rm -rf conftest*
16864 ac_cv_type_pid_t=yes
16865 else
16866 rm -rf conftest*
16867 ac_cv_type_pid_t=no
16868 fi
16869 rm -f conftest*
16870
16871 fi
16872 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16873 if test $ac_cv_type_pid_t = no; then
16874 cat >> confdefs.h <<\EOF
16875 #define pid_t int
16876 EOF
16877
16878 fi
16879
16880 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16881 echo "configure:16882: checking for size_t" >&5
16882 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16883 echo $ac_n "(cached) $ac_c" 1>&6
16884 else
16885 cat > conftest.$ac_ext <<EOF
16886 #line 16887 "configure"
16887 #include "confdefs.h"
16888 #include <sys/types.h>
16889 #if STDC_HEADERS
16890 #include <stdlib.h>
16891 #include <stddef.h>
16892 #endif
16893 EOF
16894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16895 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16896 rm -rf conftest*
16897 ac_cv_type_size_t=yes
16898 else
16899 rm -rf conftest*
16900 ac_cv_type_size_t=no
16901 fi
16902 rm -f conftest*
16903
16904 fi
16905 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16906 if test $ac_cv_type_size_t = no; then
16907 cat >> confdefs.h <<\EOF
16908 #define size_t unsigned
16909 EOF
16910
16911 fi
16912
16913 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16914 echo "configure:16915: checking for uid_t in sys/types.h" >&5
16915 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16916 echo $ac_n "(cached) $ac_c" 1>&6
16917 else
16918 cat > conftest.$ac_ext <<EOF
16919 #line 16920 "configure"
16920 #include "confdefs.h"
16921 #include <sys/types.h>
16922 EOF
16923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16924 egrep "uid_t" >/dev/null 2>&1; then
16925 rm -rf conftest*
16926 ac_cv_type_uid_t=yes
16927 else
16928 rm -rf conftest*
16929 ac_cv_type_uid_t=no
16930 fi
16931 rm -f conftest*
16932
16933 fi
16934
16935 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16936 if test $ac_cv_type_uid_t = no; then
16937 cat >> confdefs.h <<\EOF
16938 #define uid_t int
16939 EOF
16940
16941 cat >> confdefs.h <<\EOF
16942 #define gid_t int
16943 EOF
16944
16945 fi
16946
16947
16948
16949 ac_ext=C
16950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16951 ac_cpp='$CXXCPP $CPPFLAGS'
16952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16954 cross_compiling=$ac_cv_prog_cxx_cross
16955
16956 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16957 echo "configure:16958: checking if size_t is unsigned int" >&5
16958 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16959 echo $ac_n "(cached) $ac_c" 1>&6
16960 else
16961
16962 cat > conftest.$ac_ext <<EOF
16963 #line 16964 "configure"
16964 #include "confdefs.h"
16965 #include <stddef.h>
16966 int main() {
16967
16968 return 0; }
16969
16970 struct Foo { void foo(size_t); void foo(unsigned int); };
16971
16972 int bar() {
16973
16974 ; return 0; }
16975 EOF
16976 if { (eval echo configure:16977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16977 rm -rf conftest*
16978 wx_cv_size_t_is_uint=no
16979 else
16980 echo "configure: failed program was:" >&5
16981 cat conftest.$ac_ext >&5
16982 rm -rf conftest*
16983 wx_cv_size_t_is_uint=yes
16984
16985 fi
16986 rm -f conftest*
16987
16988
16989 fi
16990
16991 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16992
16993 if test "$wx_cv_size_t_is_uint" = "yes"; then
16994 cat >> confdefs.h <<\EOF
16995 #define wxSIZE_T_IS_UINT 1
16996 EOF
16997
16998 else
16999 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
17000 echo "configure:17001: checking if size_t is unsigned long" >&5
17001 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
17002 echo $ac_n "(cached) $ac_c" 1>&6
17003 else
17004 cat > conftest.$ac_ext <<EOF
17005 #line 17006 "configure"
17006 #include "confdefs.h"
17007 #include <stddef.h>
17008 int main() {
17009
17010 return 0; }
17011
17012 struct Foo { void foo(size_t); void foo(unsigned long); };
17013
17014 int bar() {
17015
17016 ; return 0; }
17017 EOF
17018 if { (eval echo configure:17019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17019 rm -rf conftest*
17020 wx_cv_size_t_is_ulong=no
17021 else
17022 echo "configure: failed program was:" >&5
17023 cat conftest.$ac_ext >&5
17024 rm -rf conftest*
17025 wx_cv_size_t_is_ulong=yes
17026
17027 fi
17028 rm -f conftest*
17029
17030 fi
17031
17032 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
17033
17034 if test "$wx_cv_size_t_is_ulong" = "yes"; then
17035 cat >> confdefs.h <<\EOF
17036 #define wxSIZE_T_IS_ULONG 1
17037 EOF
17038
17039 fi
17040 fi
17041
17042 ac_ext=c
17043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17044 ac_cpp='$CPP $CPPFLAGS'
17045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17047 cross_compiling=$ac_cv_prog_cc_cross
17048
17049
17050
17051 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
17052 echo "configure:17053: checking for pw_gecos in struct passwd" >&5
17053 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17054 echo $ac_n "(cached) $ac_c" 1>&6
17055 else
17056
17057 cat > conftest.$ac_ext <<EOF
17058 #line 17059 "configure"
17059 #include "confdefs.h"
17060 #include <pwd.h>
17061 int main() {
17062
17063 char *p;
17064 struct passwd *pw;
17065 p = pw->pw_gecos;
17066
17067 ; return 0; }
17068 EOF
17069 if { (eval echo configure:17070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17070 rm -rf conftest*
17071
17072 wx_cv_struct_pw_gecos=yes
17073
17074 else
17075 echo "configure: failed program was:" >&5
17076 cat conftest.$ac_ext >&5
17077 rm -rf conftest*
17078
17079 wx_cv_struct_pw_gecos=no
17080
17081
17082 fi
17083 rm -f conftest*
17084
17085
17086 fi
17087
17088 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
17089
17090 if test "$wx_cv_struct_pw_gecos" = "yes"; then
17091 cat >> confdefs.h <<\EOF
17092 #define HAVE_PW_GECOS 1
17093 EOF
17094
17095 fi
17096
17097
17098 if test "$wx_cv_sizeof_wchar_t" != "0"; then
17099 cat >> confdefs.h <<\EOF
17100 #define wxUSE_WCHAR_T 1
17101 EOF
17102
17103
17104 WCSLEN_FOUND=0
17105 WCHAR_LINK=
17106 for ac_func in wcslen
17107 do
17108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17109 echo "configure:17110: checking for $ac_func" >&5
17110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17111 echo $ac_n "(cached) $ac_c" 1>&6
17112 else
17113 cat > conftest.$ac_ext <<EOF
17114 #line 17115 "configure"
17115 #include "confdefs.h"
17116 /* System header to define __stub macros and hopefully few prototypes,
17117 which can conflict with char $ac_func(); below. */
17118 #include <assert.h>
17119 /* Override any gcc2 internal prototype to avoid an error. */
17120 /* We use char because int might match the return type of a gcc2
17121 builtin and then its argument prototype would still apply. */
17122 char $ac_func();
17123
17124 int main() {
17125
17126 /* The GNU C library defines this for functions which it implements
17127 to always fail with ENOSYS. Some functions are actually named
17128 something starting with __ and the normal name is an alias. */
17129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17130 choke me
17131 #else
17132 $ac_func();
17133 #endif
17134
17135 ; return 0; }
17136 EOF
17137 if { (eval echo configure:17138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17138 rm -rf conftest*
17139 eval "ac_cv_func_$ac_func=yes"
17140 else
17141 echo "configure: failed program was:" >&5
17142 cat conftest.$ac_ext >&5
17143 rm -rf conftest*
17144 eval "ac_cv_func_$ac_func=no"
17145 fi
17146 rm -f conftest*
17147 fi
17148
17149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17150 echo "$ac_t""yes" 1>&6
17151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17152 cat >> confdefs.h <<EOF
17153 #define $ac_tr_func 1
17154 EOF
17155 WCSLEN_FOUND=1
17156 else
17157 echo "$ac_t""no" 1>&6
17158 fi
17159 done
17160
17161
17162 if test "$WCSLEN_FOUND" = 0; then
17163 if test "$TOOLKIT" = "MSW"; then
17164 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17165 echo "configure:17166: checking for wcslen in -lmsvcrt" >&5
17166 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17168 echo $ac_n "(cached) $ac_c" 1>&6
17169 else
17170 ac_save_LIBS="$LIBS"
17171 LIBS="-lmsvcrt $LIBS"
17172 cat > conftest.$ac_ext <<EOF
17173 #line 17174 "configure"
17174 #include "confdefs.h"
17175 /* Override any gcc2 internal prototype to avoid an error. */
17176 /* We use char because int might match the return type of a gcc2
17177 builtin and then its argument prototype would still apply. */
17178 char wcslen();
17179
17180 int main() {
17181 wcslen()
17182 ; return 0; }
17183 EOF
17184 if { (eval echo configure:17185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17185 rm -rf conftest*
17186 eval "ac_cv_lib_$ac_lib_var=yes"
17187 else
17188 echo "configure: failed program was:" >&5
17189 cat conftest.$ac_ext >&5
17190 rm -rf conftest*
17191 eval "ac_cv_lib_$ac_lib_var=no"
17192 fi
17193 rm -f conftest*
17194 LIBS="$ac_save_LIBS"
17195
17196 fi
17197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17198 echo "$ac_t""yes" 1>&6
17199 WCHAR_OK=1
17200 else
17201 echo "$ac_t""no" 1>&6
17202 fi
17203
17204 else
17205 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17206 echo "configure:17207: checking for wcslen in -lw" >&5
17207 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17209 echo $ac_n "(cached) $ac_c" 1>&6
17210 else
17211 ac_save_LIBS="$LIBS"
17212 LIBS="-lw $LIBS"
17213 cat > conftest.$ac_ext <<EOF
17214 #line 17215 "configure"
17215 #include "confdefs.h"
17216 /* Override any gcc2 internal prototype to avoid an error. */
17217 /* We use char because int might match the return type of a gcc2
17218 builtin and then its argument prototype would still apply. */
17219 char wcslen();
17220
17221 int main() {
17222 wcslen()
17223 ; return 0; }
17224 EOF
17225 if { (eval echo configure:17226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17226 rm -rf conftest*
17227 eval "ac_cv_lib_$ac_lib_var=yes"
17228 else
17229 echo "configure: failed program was:" >&5
17230 cat conftest.$ac_ext >&5
17231 rm -rf conftest*
17232 eval "ac_cv_lib_$ac_lib_var=no"
17233 fi
17234 rm -f conftest*
17235 LIBS="$ac_save_LIBS"
17236
17237 fi
17238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17239 echo "$ac_t""yes" 1>&6
17240
17241 WCHAR_LINK=" -lw"
17242 WCSLEN_FOUND=1
17243
17244 else
17245 echo "$ac_t""no" 1>&6
17246 fi
17247
17248 fi
17249 fi
17250
17251 if test "$WCSLEN_FOUND" = 1; then
17252 cat >> confdefs.h <<\EOF
17253 #define HAVE_WCSLEN 1
17254 EOF
17255
17256 fi
17257
17258 for ac_func in wcsrtombs
17259 do
17260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17261 echo "configure:17262: checking for $ac_func" >&5
17262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17263 echo $ac_n "(cached) $ac_c" 1>&6
17264 else
17265 cat > conftest.$ac_ext <<EOF
17266 #line 17267 "configure"
17267 #include "confdefs.h"
17268 /* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func(); below. */
17270 #include <assert.h>
17271 /* Override any gcc2 internal prototype to avoid an error. */
17272 /* We use char because int might match the return type of a gcc2
17273 builtin and then its argument prototype would still apply. */
17274 char $ac_func();
17275
17276 int main() {
17277
17278 /* The GNU C library defines this for functions which it implements
17279 to always fail with ENOSYS. Some functions are actually named
17280 something starting with __ and the normal name is an alias. */
17281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17282 choke me
17283 #else
17284 $ac_func();
17285 #endif
17286
17287 ; return 0; }
17288 EOF
17289 if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17290 rm -rf conftest*
17291 eval "ac_cv_func_$ac_func=yes"
17292 else
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17295 rm -rf conftest*
17296 eval "ac_cv_func_$ac_func=no"
17297 fi
17298 rm -f conftest*
17299 fi
17300
17301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17302 echo "$ac_t""yes" 1>&6
17303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17304 cat >> confdefs.h <<EOF
17305 #define $ac_tr_func 1
17306 EOF
17307
17308 else
17309 echo "$ac_t""no" 1>&6
17310 fi
17311 done
17312
17313 else
17314 echo "configure: warning: Wide character support is unavailable" 1>&2
17315 fi
17316
17317
17318 ac_ext=C
17319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17320 ac_cpp='$CXXCPP $CPPFLAGS'
17321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17323 cross_compiling=$ac_cv_prog_cxx_cross
17324
17325
17326 for ac_func in vsnprintf
17327 do
17328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17329 echo "configure:17330: checking for $ac_func" >&5
17330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17331 echo $ac_n "(cached) $ac_c" 1>&6
17332 else
17333 cat > conftest.$ac_ext <<EOF
17334 #line 17335 "configure"
17335 #include "confdefs.h"
17336 /* System header to define __stub macros and hopefully few prototypes,
17337 which can conflict with char $ac_func(); below. */
17338 #include <assert.h>
17339 /* Override any gcc2 internal prototype to avoid an error. */
17340 #ifdef __cplusplus
17341 extern "C"
17342 #endif
17343 /* We use char because int might match the return type of a gcc2
17344 builtin and then its argument prototype would still apply. */
17345 char $ac_func();
17346
17347 int main() {
17348
17349 /* The GNU C library defines this for functions which it implements
17350 to always fail with ENOSYS. Some functions are actually named
17351 something starting with __ and the normal name is an alias. */
17352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17353 choke me
17354 #else
17355 $ac_func();
17356 #endif
17357
17358 ; return 0; }
17359 EOF
17360 if { (eval echo configure:17361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17361 rm -rf conftest*
17362 eval "ac_cv_func_$ac_func=yes"
17363 else
17364 echo "configure: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 rm -rf conftest*
17367 eval "ac_cv_func_$ac_func=no"
17368 fi
17369 rm -f conftest*
17370 fi
17371
17372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17373 echo "$ac_t""yes" 1>&6
17374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17375 cat >> confdefs.h <<EOF
17376 #define $ac_tr_func 1
17377 EOF
17378
17379 else
17380 echo "$ac_t""no" 1>&6
17381 fi
17382 done
17383
17384
17385 if test "$ac_cv_func_vsnprintf" = "yes"; then
17386 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17387 echo "configure:17388: checking for vsnprintf declaration" >&5
17388 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17389 echo $ac_n "(cached) $ac_c" 1>&6
17390 else
17391
17392 cat > conftest.$ac_ext <<EOF
17393 #line 17394 "configure"
17394 #include "confdefs.h"
17395
17396 #include <stdio.h>
17397 #include <stdarg.h>
17398
17399 int main() {
17400
17401 char *buf;
17402 va_list ap;
17403 vsnprintf(buf, 10u, "%s", ap);
17404
17405 ; return 0; }
17406 EOF
17407 if { (eval echo configure:17408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17408 rm -rf conftest*
17409 wx_cv_func_vsnprintf_decl=yes
17410 else
17411 echo "configure: failed program was:" >&5
17412 cat conftest.$ac_ext >&5
17413 rm -rf conftest*
17414 wx_cv_func_vsnprintf_decl=no
17415
17416 fi
17417 rm -f conftest*
17418
17419
17420 fi
17421
17422 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17423
17424 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17425 cat >> confdefs.h <<\EOF
17426 #define HAVE_VSNPRINTF_DECL 1
17427 EOF
17428
17429 fi
17430 fi
17431
17432 if test "$wxUSE_UNICODE" = yes; then
17433 for ac_func in fputwc wprintf vswprintf
17434 do
17435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17436 echo "configure:17437: checking for $ac_func" >&5
17437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17438 echo $ac_n "(cached) $ac_c" 1>&6
17439 else
17440 cat > conftest.$ac_ext <<EOF
17441 #line 17442 "configure"
17442 #include "confdefs.h"
17443 /* System header to define __stub macros and hopefully few prototypes,
17444 which can conflict with char $ac_func(); below. */
17445 #include <assert.h>
17446 /* Override any gcc2 internal prototype to avoid an error. */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452 char $ac_func();
17453
17454 int main() {
17455
17456 /* The GNU C library defines this for functions which it implements
17457 to always fail with ENOSYS. Some functions are actually named
17458 something starting with __ and the normal name is an alias. */
17459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17460 choke me
17461 #else
17462 $ac_func();
17463 #endif
17464
17465 ; return 0; }
17466 EOF
17467 if { (eval echo configure:17468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17468 rm -rf conftest*
17469 eval "ac_cv_func_$ac_func=yes"
17470 else
17471 echo "configure: failed program was:" >&5
17472 cat conftest.$ac_ext >&5
17473 rm -rf conftest*
17474 eval "ac_cv_func_$ac_func=no"
17475 fi
17476 rm -f conftest*
17477 fi
17478
17479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17480 echo "$ac_t""yes" 1>&6
17481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17482 cat >> confdefs.h <<EOF
17483 #define $ac_tr_func 1
17484 EOF
17485
17486 else
17487 echo "$ac_t""no" 1>&6
17488 fi
17489 done
17490
17491
17492 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17493 echo "configure:17494: checking for _vsnwprintf" >&5
17494 cat > conftest.$ac_ext <<EOF
17495 #line 17496 "configure"
17496 #include "confdefs.h"
17497 #include <wchar.h>
17498 int main() {
17499 &_vsnwprintf;
17500 ; return 0; }
17501 EOF
17502 if { (eval echo configure:17503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17503 rm -rf conftest*
17504 echo "$ac_t""yes" 1>&6
17505 cat >> confdefs.h <<\EOF
17506 #define HAVE__VSNWPRINTF 1
17507 EOF
17508
17509 else
17510 echo "configure: failed program was:" >&5
17511 cat conftest.$ac_ext >&5
17512 rm -rf conftest*
17513 echo "$ac_t""no" 1>&6
17514 fi
17515 rm -f conftest*;
17516 fi
17517
17518 ac_ext=c
17519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17520 ac_cpp='$CPP $CPPFLAGS'
17521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17523 cross_compiling=$ac_cv_prog_cc_cross
17524
17525
17526
17527
17528 if test "$TOOLKIT" != "MSW"; then
17529
17530
17531
17532 ac_ext=C
17533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17534 ac_cpp='$CXXCPP $CPPFLAGS'
17535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17537 cross_compiling=$ac_cv_prog_cxx_cross
17538
17539
17540
17541 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17542 if test "${with_libiconv_prefix+set}" = set; then
17543 withval="$with_libiconv_prefix"
17544
17545 for dir in `echo "$withval" | tr : ' '`; do
17546 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17547 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17548 done
17549
17550 fi
17551
17552
17553 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17554 echo "configure:17555: checking for iconv" >&5
17555 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17556 echo $ac_n "(cached) $ac_c" 1>&6
17557 else
17558
17559 am_cv_func_iconv="no, consider installing GNU libiconv"
17560 am_cv_lib_iconv=no
17561 cat > conftest.$ac_ext <<EOF
17562 #line 17563 "configure"
17563 #include "confdefs.h"
17564 #include <stdlib.h>
17565 #include <iconv.h>
17566 int main() {
17567 iconv_t cd = iconv_open("","");
17568 iconv(cd,NULL,NULL,NULL,NULL);
17569 iconv_close(cd);
17570 ; return 0; }
17571 EOF
17572 if { (eval echo configure:17573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17573 rm -rf conftest*
17574 am_cv_func_iconv=yes
17575 else
17576 echo "configure: failed program was:" >&5
17577 cat conftest.$ac_ext >&5
17578 fi
17579 rm -f conftest*
17580 if test "$am_cv_func_iconv" != yes; then
17581 am_save_LIBS="$LIBS"
17582 LIBS="$LIBS -liconv"
17583 cat > conftest.$ac_ext <<EOF
17584 #line 17585 "configure"
17585 #include "confdefs.h"
17586 #include <stdlib.h>
17587 #include <iconv.h>
17588 int main() {
17589 iconv_t cd = iconv_open("","");
17590 iconv(cd,NULL,NULL,NULL,NULL);
17591 iconv_close(cd);
17592 ; return 0; }
17593 EOF
17594 if { (eval echo configure:17595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17595 rm -rf conftest*
17596 am_cv_lib_iconv=yes
17597 am_cv_func_iconv=yes
17598 else
17599 echo "configure: failed program was:" >&5
17600 cat conftest.$ac_ext >&5
17601 fi
17602 rm -f conftest*
17603 LIBS="$am_save_LIBS"
17604 fi
17605
17606 fi
17607
17608 echo "$ac_t""$am_cv_func_iconv" 1>&6
17609 if test "$am_cv_func_iconv" = yes; then
17610 cat >> confdefs.h <<\EOF
17611 #define HAVE_ICONV 1
17612 EOF
17613
17614 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17615 echo "configure:17616: checking if iconv needs const" >&5
17616 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17617 echo $ac_n "(cached) $ac_c" 1>&6
17618 else
17619 cat > conftest.$ac_ext <<EOF
17620 #line 17621 "configure"
17621 #include "confdefs.h"
17622
17623 #include <stdlib.h>
17624 #include <iconv.h>
17625 extern
17626 #ifdef __cplusplus
17627 "C"
17628 #endif
17629 #if defined(__STDC__) || defined(__cplusplus)
17630 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17631 #else
17632 size_t iconv();
17633 #endif
17634
17635 int main() {
17636
17637 ; return 0; }
17638 EOF
17639 if { (eval echo configure:17640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17640 rm -rf conftest*
17641 wx_cv_func_iconv_const="no"
17642 else
17643 echo "configure: failed program was:" >&5
17644 cat conftest.$ac_ext >&5
17645 rm -rf conftest*
17646 wx_cv_func_iconv_const="yes"
17647
17648 fi
17649 rm -f conftest*
17650
17651 fi
17652
17653 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17654
17655 iconv_const=
17656 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17657 iconv_const="const"
17658 fi
17659
17660 cat >> confdefs.h <<EOF
17661 #define ICONV_CONST $iconv_const
17662 EOF
17663
17664 fi
17665 LIBICONV=
17666 if test "$am_cv_lib_iconv" = yes; then
17667 LIBICONV="-liconv"
17668 fi
17669
17670
17671 LIBS="$LIBICONV $LIBS"
17672 ac_ext=c
17673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17674 ac_cpp='$CPP $CPPFLAGS'
17675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17677 cross_compiling=$ac_cv_prog_cc_cross
17678
17679
17680 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17681 for ac_func in sigaction
17682 do
17683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17684 echo "configure:17685: checking for $ac_func" >&5
17685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17686 echo $ac_n "(cached) $ac_c" 1>&6
17687 else
17688 cat > conftest.$ac_ext <<EOF
17689 #line 17690 "configure"
17690 #include "confdefs.h"
17691 /* System header to define __stub macros and hopefully few prototypes,
17692 which can conflict with char $ac_func(); below. */
17693 #include <assert.h>
17694 /* Override any gcc2 internal prototype to avoid an error. */
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697 char $ac_func();
17698
17699 int main() {
17700
17701 /* The GNU C library defines this for functions which it implements
17702 to always fail with ENOSYS. Some functions are actually named
17703 something starting with __ and the normal name is an alias. */
17704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17705 choke me
17706 #else
17707 $ac_func();
17708 #endif
17709
17710 ; return 0; }
17711 EOF
17712 if { (eval echo configure:17713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17713 rm -rf conftest*
17714 eval "ac_cv_func_$ac_func=yes"
17715 else
17716 echo "configure: failed program was:" >&5
17717 cat conftest.$ac_ext >&5
17718 rm -rf conftest*
17719 eval "ac_cv_func_$ac_func=no"
17720 fi
17721 rm -f conftest*
17722 fi
17723
17724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17725 echo "$ac_t""yes" 1>&6
17726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17727 cat >> confdefs.h <<EOF
17728 #define $ac_tr_func 1
17729 EOF
17730
17731 else
17732 echo "$ac_t""no" 1>&6
17733 fi
17734 done
17735
17736
17737 if test "$ac_cv_func_sigaction" = "no"; then
17738 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17739 wxUSE_ON_FATAL_EXCEPTION=no
17740 fi
17741
17742 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17743
17744 ac_ext=C
17745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17746 ac_cpp='$CXXCPP $CPPFLAGS'
17747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17749 cross_compiling=$ac_cv_prog_cxx_cross
17750
17751
17752 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17753 echo "configure:17754: checking for sa_handler type" >&5
17754 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17755 echo $ac_n "(cached) $ac_c" 1>&6
17756 else
17757
17758 cat > conftest.$ac_ext <<EOF
17759 #line 17760 "configure"
17760 #include "confdefs.h"
17761 #include <signal.h>
17762 int main() {
17763
17764 extern void testSigHandler(int);
17765
17766 struct sigaction sa;
17767 sa.sa_handler = testSigHandler;
17768
17769 ; return 0; }
17770 EOF
17771 if { (eval echo configure:17772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17772 rm -rf conftest*
17773
17774 wx_cv_type_sa_handler=int
17775
17776 else
17777 echo "configure: failed program was:" >&5
17778 cat conftest.$ac_ext >&5
17779 rm -rf conftest*
17780
17781 wx_cv_type_sa_handler=void
17782
17783 fi
17784 rm -f conftest*
17785
17786 fi
17787
17788 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17789
17790 ac_ext=c
17791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17792 ac_cpp='$CPP $CPPFLAGS'
17793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17795 cross_compiling=$ac_cv_prog_cc_cross
17796
17797
17798 cat >> confdefs.h <<EOF
17799 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17800 EOF
17801
17802 fi
17803 fi
17804
17805 for ac_func in mkstemp mktemp
17806 do
17807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17808 echo "configure:17809: checking for $ac_func" >&5
17809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17810 echo $ac_n "(cached) $ac_c" 1>&6
17811 else
17812 cat > conftest.$ac_ext <<EOF
17813 #line 17814 "configure"
17814 #include "confdefs.h"
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char $ac_func(); below. */
17817 #include <assert.h>
17818 /* Override any gcc2 internal prototype to avoid an error. */
17819 /* We use char because int might match the return type of a gcc2
17820 builtin and then its argument prototype would still apply. */
17821 char $ac_func();
17822
17823 int main() {
17824
17825 /* The GNU C library defines this for functions which it implements
17826 to always fail with ENOSYS. Some functions are actually named
17827 something starting with __ and the normal name is an alias. */
17828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17829 choke me
17830 #else
17831 $ac_func();
17832 #endif
17833
17834 ; return 0; }
17835 EOF
17836 if { (eval echo configure:17837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17837 rm -rf conftest*
17838 eval "ac_cv_func_$ac_func=yes"
17839 else
17840 echo "configure: failed program was:" >&5
17841 cat conftest.$ac_ext >&5
17842 rm -rf conftest*
17843 eval "ac_cv_func_$ac_func=no"
17844 fi
17845 rm -f conftest*
17846 fi
17847
17848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17849 echo "$ac_t""yes" 1>&6
17850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17851 cat >> confdefs.h <<EOF
17852 #define $ac_tr_func 1
17853 EOF
17854 break
17855 else
17856 echo "$ac_t""no" 1>&6
17857 fi
17858 done
17859
17860
17861 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17862 echo "configure:17863: checking for statfs" >&5
17863 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17864 echo $ac_n "(cached) $ac_c" 1>&6
17865 else
17866 cat > conftest.$ac_ext <<EOF
17867 #line 17868 "configure"
17868 #include "confdefs.h"
17869
17870 #if defined(__BSD__)
17871 #include <sys/param.h>
17872 #include <sys/mount.h>
17873 #else
17874 #include <sys/vfs.h>
17875 #endif
17876
17877 int main() {
17878
17879 long l;
17880 struct statfs fs;
17881 statfs("/", &fs);
17882 l = fs.f_bsize;
17883 l += fs.f_blocks;
17884 l += fs.f_bavail;
17885
17886 ; return 0; }
17887 EOF
17888 if { (eval echo configure:17889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17889 rm -rf conftest*
17890
17891 wx_cv_func_statfs=yes
17892
17893 else
17894 echo "configure: failed program was:" >&5
17895 cat conftest.$ac_ext >&5
17896 rm -rf conftest*
17897
17898 wx_cv_func_statfs=no
17899
17900
17901 fi
17902 rm -f conftest*
17903
17904 fi
17905
17906 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17907
17908 if test "$wx_cv_func_statfs" = "yes"; then
17909 wx_cv_type_statvfs_t="struct statfs"
17910 cat >> confdefs.h <<\EOF
17911 #define HAVE_STATFS 1
17912 EOF
17913
17914 else
17915 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17916 echo "configure:17917: checking for statvfs" >&5
17917 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17918 echo $ac_n "(cached) $ac_c" 1>&6
17919 else
17920 cat > conftest.$ac_ext <<EOF
17921 #line 17922 "configure"
17922 #include "confdefs.h"
17923
17924 #include <stddef.h>
17925 #include <sys/statvfs.h>
17926
17927 int main() {
17928
17929 statvfs("/", NULL);
17930
17931 ; return 0; }
17932 EOF
17933 if { (eval echo configure:17934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17934 rm -rf conftest*
17935 wx_cv_func_statvfs=yes
17936 else
17937 echo "configure: failed program was:" >&5
17938 cat conftest.$ac_ext >&5
17939 rm -rf conftest*
17940 wx_cv_func_statvfs=no
17941
17942 fi
17943 rm -f conftest*
17944
17945 fi
17946
17947 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17948
17949 if test "$wx_cv_func_statvfs" = "yes"; then
17950
17951 ac_ext=C
17952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17953 ac_cpp='$CXXCPP $CPPFLAGS'
17954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17956 cross_compiling=$ac_cv_prog_cxx_cross
17957
17958
17959 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17960 echo "configure:17961: checking for statvfs argument type" >&5
17961 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17962 echo $ac_n "(cached) $ac_c" 1>&6
17963 else
17964 cat > conftest.$ac_ext <<EOF
17965 #line 17966 "configure"
17966 #include "confdefs.h"
17967
17968 #include <sys/statvfs.h>
17969
17970 int main() {
17971
17972 long l;
17973 statvfs_t fs;
17974 statvfs("/", &fs);
17975 l = fs.f_bsize;
17976 l += fs.f_blocks;
17977 l += fs.f_bavail;
17978
17979 ; return 0; }
17980 EOF
17981 if { (eval echo configure:17982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17982 rm -rf conftest*
17983 wx_cv_type_statvfs_t=statvfs_t
17984 else
17985 echo "configure: failed program was:" >&5
17986 cat conftest.$ac_ext >&5
17987 rm -rf conftest*
17988
17989 cat > conftest.$ac_ext <<EOF
17990 #line 17991 "configure"
17991 #include "confdefs.h"
17992
17993 #include <sys/statvfs.h>
17994
17995 int main() {
17996
17997 long l;
17998 struct statvfs fs;
17999 statvfs("/", &fs);
18000 l = fs.f_bsize;
18001 l += fs.f_blocks;
18002 l += fs.f_bavail;
18003
18004 ; return 0; }
18005 EOF
18006 if { (eval echo configure:18007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18007 rm -rf conftest*
18008 wx_cv_type_statvfs_t="struct statvfs"
18009 else
18010 echo "configure: failed program was:" >&5
18011 cat conftest.$ac_ext >&5
18012 rm -rf conftest*
18013 wx_cv_type_statvfs_t="unknown"
18014
18015 fi
18016 rm -f conftest*
18017
18018
18019 fi
18020 rm -f conftest*
18021
18022 fi
18023
18024 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18025
18026 ac_ext=c
18027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18028 ac_cpp='$CPP $CPPFLAGS'
18029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18031 cross_compiling=$ac_cv_prog_cc_cross
18032
18033
18034 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18035 cat >> confdefs.h <<\EOF
18036 #define HAVE_STATVFS 1
18037 EOF
18038
18039 fi
18040 else
18041 wx_cv_type_statvfs_t="unknown"
18042 fi
18043 fi
18044
18045 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18046 cat >> confdefs.h <<EOF
18047 #define WX_STATFS_T $wx_cv_type_statvfs_t
18048 EOF
18049
18050 else
18051 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18052 fi
18053
18054 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18055 for ac_func in fcntl flock
18056 do
18057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18058 echo "configure:18059: checking for $ac_func" >&5
18059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18060 echo $ac_n "(cached) $ac_c" 1>&6
18061 else
18062 cat > conftest.$ac_ext <<EOF
18063 #line 18064 "configure"
18064 #include "confdefs.h"
18065 /* System header to define __stub macros and hopefully few prototypes,
18066 which can conflict with char $ac_func(); below. */
18067 #include <assert.h>
18068 /* Override any gcc2 internal prototype to avoid an error. */
18069 /* We use char because int might match the return type of a gcc2
18070 builtin and then its argument prototype would still apply. */
18071 char $ac_func();
18072
18073 int main() {
18074
18075 /* The GNU C library defines this for functions which it implements
18076 to always fail with ENOSYS. Some functions are actually named
18077 something starting with __ and the normal name is an alias. */
18078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18079 choke me
18080 #else
18081 $ac_func();
18082 #endif
18083
18084 ; return 0; }
18085 EOF
18086 if { (eval echo configure:18087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18087 rm -rf conftest*
18088 eval "ac_cv_func_$ac_func=yes"
18089 else
18090 echo "configure: failed program was:" >&5
18091 cat conftest.$ac_ext >&5
18092 rm -rf conftest*
18093 eval "ac_cv_func_$ac_func=no"
18094 fi
18095 rm -f conftest*
18096 fi
18097
18098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18099 echo "$ac_t""yes" 1>&6
18100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18101 cat >> confdefs.h <<EOF
18102 #define $ac_tr_func 1
18103 EOF
18104 break
18105 else
18106 echo "$ac_t""no" 1>&6
18107 fi
18108 done
18109
18110
18111 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
18112 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
18113 wxUSE_SNGLINST_CHECKER=no
18114 fi
18115 fi
18116
18117 for ac_func in timegm
18118 do
18119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18120 echo "configure:18121: checking for $ac_func" >&5
18121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18122 echo $ac_n "(cached) $ac_c" 1>&6
18123 else
18124 cat > conftest.$ac_ext <<EOF
18125 #line 18126 "configure"
18126 #include "confdefs.h"
18127 /* System header to define __stub macros and hopefully few prototypes,
18128 which can conflict with char $ac_func(); below. */
18129 #include <assert.h>
18130 /* Override any gcc2 internal prototype to avoid an error. */
18131 /* We use char because int might match the return type of a gcc2
18132 builtin and then its argument prototype would still apply. */
18133 char $ac_func();
18134
18135 int main() {
18136
18137 /* The GNU C library defines this for functions which it implements
18138 to always fail with ENOSYS. Some functions are actually named
18139 something starting with __ and the normal name is an alias. */
18140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18141 choke me
18142 #else
18143 $ac_func();
18144 #endif
18145
18146 ; return 0; }
18147 EOF
18148 if { (eval echo configure:18149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18149 rm -rf conftest*
18150 eval "ac_cv_func_$ac_func=yes"
18151 else
18152 echo "configure: failed program was:" >&5
18153 cat conftest.$ac_ext >&5
18154 rm -rf conftest*
18155 eval "ac_cv_func_$ac_func=no"
18156 fi
18157 rm -f conftest*
18158 fi
18159
18160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18161 echo "$ac_t""yes" 1>&6
18162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18163 cat >> confdefs.h <<EOF
18164 #define $ac_tr_func 1
18165 EOF
18166
18167 else
18168 echo "$ac_t""no" 1>&6
18169 fi
18170 done
18171
18172
18173 for ac_func in putenv setenv
18174 do
18175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18176 echo "configure:18177: checking for $ac_func" >&5
18177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18178 echo $ac_n "(cached) $ac_c" 1>&6
18179 else
18180 cat > conftest.$ac_ext <<EOF
18181 #line 18182 "configure"
18182 #include "confdefs.h"
18183 /* System header to define __stub macros and hopefully few prototypes,
18184 which can conflict with char $ac_func(); below. */
18185 #include <assert.h>
18186 /* Override any gcc2 internal prototype to avoid an error. */
18187 /* We use char because int might match the return type of a gcc2
18188 builtin and then its argument prototype would still apply. */
18189 char $ac_func();
18190
18191 int main() {
18192
18193 /* The GNU C library defines this for functions which it implements
18194 to always fail with ENOSYS. Some functions are actually named
18195 something starting with __ and the normal name is an alias. */
18196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18197 choke me
18198 #else
18199 $ac_func();
18200 #endif
18201
18202 ; return 0; }
18203 EOF
18204 if { (eval echo configure:18205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18205 rm -rf conftest*
18206 eval "ac_cv_func_$ac_func=yes"
18207 else
18208 echo "configure: failed program was:" >&5
18209 cat conftest.$ac_ext >&5
18210 rm -rf conftest*
18211 eval "ac_cv_func_$ac_func=no"
18212 fi
18213 rm -f conftest*
18214 fi
18215
18216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18217 echo "$ac_t""yes" 1>&6
18218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18219 cat >> confdefs.h <<EOF
18220 #define $ac_tr_func 1
18221 EOF
18222 break
18223 else
18224 echo "$ac_t""no" 1>&6
18225 fi
18226 done
18227
18228
18229 HAVE_SOME_SLEEP_FUNC=0
18230 if test "$USE_BEOS" = 1; then
18231 cat >> confdefs.h <<\EOF
18232 #define HAVE_SLEEP 1
18233 EOF
18234
18235 HAVE_SOME_SLEEP_FUNC=1
18236 fi
18237
18238 if test "$USE_DARWIN" = 1; then
18239 cat >> confdefs.h <<\EOF
18240 #define HAVE_USLEEP 1
18241 EOF
18242
18243 HAVE_SOME_SLEEP_FUNC=1
18244 fi
18245
18246 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18247 POSIX4_LINK=
18248 for ac_func in nanosleep
18249 do
18250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18251 echo "configure:18252: checking for $ac_func" >&5
18252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18253 echo $ac_n "(cached) $ac_c" 1>&6
18254 else
18255 cat > conftest.$ac_ext <<EOF
18256 #line 18257 "configure"
18257 #include "confdefs.h"
18258 /* System header to define __stub macros and hopefully few prototypes,
18259 which can conflict with char $ac_func(); below. */
18260 #include <assert.h>
18261 /* Override any gcc2 internal prototype to avoid an error. */
18262 /* We use char because int might match the return type of a gcc2
18263 builtin and then its argument prototype would still apply. */
18264 char $ac_func();
18265
18266 int main() {
18267
18268 /* The GNU C library defines this for functions which it implements
18269 to always fail with ENOSYS. Some functions are actually named
18270 something starting with __ and the normal name is an alias. */
18271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18272 choke me
18273 #else
18274 $ac_func();
18275 #endif
18276
18277 ; return 0; }
18278 EOF
18279 if { (eval echo configure:18280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18280 rm -rf conftest*
18281 eval "ac_cv_func_$ac_func=yes"
18282 else
18283 echo "configure: failed program was:" >&5
18284 cat conftest.$ac_ext >&5
18285 rm -rf conftest*
18286 eval "ac_cv_func_$ac_func=no"
18287 fi
18288 rm -f conftest*
18289 fi
18290
18291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18292 echo "$ac_t""yes" 1>&6
18293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18294 cat >> confdefs.h <<EOF
18295 #define $ac_tr_func 1
18296 EOF
18297 cat >> confdefs.h <<\EOF
18298 #define HAVE_NANOSLEEP 1
18299 EOF
18300
18301 else
18302 echo "$ac_t""no" 1>&6
18303 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18304 echo "configure:18305: checking for nanosleep in -lposix4" >&5
18305 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18307 echo $ac_n "(cached) $ac_c" 1>&6
18308 else
18309 ac_save_LIBS="$LIBS"
18310 LIBS="-lposix4 $LIBS"
18311 cat > conftest.$ac_ext <<EOF
18312 #line 18313 "configure"
18313 #include "confdefs.h"
18314 /* Override any gcc2 internal prototype to avoid an error. */
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18317 char nanosleep();
18318
18319 int main() {
18320 nanosleep()
18321 ; return 0; }
18322 EOF
18323 if { (eval echo configure:18324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18324 rm -rf conftest*
18325 eval "ac_cv_lib_$ac_lib_var=yes"
18326 else
18327 echo "configure: failed program was:" >&5
18328 cat conftest.$ac_ext >&5
18329 rm -rf conftest*
18330 eval "ac_cv_lib_$ac_lib_var=no"
18331 fi
18332 rm -f conftest*
18333 LIBS="$ac_save_LIBS"
18334
18335 fi
18336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18337 echo "$ac_t""yes" 1>&6
18338
18339 cat >> confdefs.h <<\EOF
18340 #define HAVE_NANOSLEEP 1
18341 EOF
18342
18343 POSIX4_LINK=" -lposix4"
18344
18345 else
18346 echo "$ac_t""no" 1>&6
18347
18348 for ac_func in usleep
18349 do
18350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18351 echo "configure:18352: checking for $ac_func" >&5
18352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18353 echo $ac_n "(cached) $ac_c" 1>&6
18354 else
18355 cat > conftest.$ac_ext <<EOF
18356 #line 18357 "configure"
18357 #include "confdefs.h"
18358 /* System header to define __stub macros and hopefully few prototypes,
18359 which can conflict with char $ac_func(); below. */
18360 #include <assert.h>
18361 /* Override any gcc2 internal prototype to avoid an error. */
18362 /* We use char because int might match the return type of a gcc2
18363 builtin and then its argument prototype would still apply. */
18364 char $ac_func();
18365
18366 int main() {
18367
18368 /* The GNU C library defines this for functions which it implements
18369 to always fail with ENOSYS. Some functions are actually named
18370 something starting with __ and the normal name is an alias. */
18371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18372 choke me
18373 #else
18374 $ac_func();
18375 #endif
18376
18377 ; return 0; }
18378 EOF
18379 if { (eval echo configure:18380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18380 rm -rf conftest*
18381 eval "ac_cv_func_$ac_func=yes"
18382 else
18383 echo "configure: failed program was:" >&5
18384 cat conftest.$ac_ext >&5
18385 rm -rf conftest*
18386 eval "ac_cv_func_$ac_func=no"
18387 fi
18388 rm -f conftest*
18389 fi
18390
18391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18392 echo "$ac_t""yes" 1>&6
18393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18394 cat >> confdefs.h <<EOF
18395 #define $ac_tr_func 1
18396 EOF
18397 cat >> confdefs.h <<\EOF
18398 #define HAVE_USLEEP 1
18399 EOF
18400
18401 else
18402 echo "$ac_t""no" 1>&6
18403 echo "configure: warning: wxSleep() function will not work" 1>&2
18404
18405 fi
18406 done
18407
18408
18409
18410 fi
18411
18412
18413
18414 fi
18415 done
18416
18417 fi
18418
18419 for ac_func in uname gethostname
18420 do
18421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18422 echo "configure:18423: checking for $ac_func" >&5
18423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18424 echo $ac_n "(cached) $ac_c" 1>&6
18425 else
18426 cat > conftest.$ac_ext <<EOF
18427 #line 18428 "configure"
18428 #include "confdefs.h"
18429 /* System header to define __stub macros and hopefully few prototypes,
18430 which can conflict with char $ac_func(); below. */
18431 #include <assert.h>
18432 /* Override any gcc2 internal prototype to avoid an error. */
18433 /* We use char because int might match the return type of a gcc2
18434 builtin and then its argument prototype would still apply. */
18435 char $ac_func();
18436
18437 int main() {
18438
18439 /* The GNU C library defines this for functions which it implements
18440 to always fail with ENOSYS. Some functions are actually named
18441 something starting with __ and the normal name is an alias. */
18442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18443 choke me
18444 #else
18445 $ac_func();
18446 #endif
18447
18448 ; return 0; }
18449 EOF
18450 if { (eval echo configure:18451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18451 rm -rf conftest*
18452 eval "ac_cv_func_$ac_func=yes"
18453 else
18454 echo "configure: failed program was:" >&5
18455 cat conftest.$ac_ext >&5
18456 rm -rf conftest*
18457 eval "ac_cv_func_$ac_func=no"
18458 fi
18459 rm -f conftest*
18460 fi
18461
18462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18463 echo "$ac_t""yes" 1>&6
18464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18465 cat >> confdefs.h <<EOF
18466 #define $ac_tr_func 1
18467 EOF
18468 break
18469 else
18470 echo "$ac_t""no" 1>&6
18471 fi
18472 done
18473
18474
18475
18476 ac_ext=C
18477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18481 cross_compiling=$ac_cv_prog_cxx_cross
18482
18483
18484 for ac_func in strtok_r
18485 do
18486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18487 echo "configure:18488: checking for $ac_func" >&5
18488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18489 echo $ac_n "(cached) $ac_c" 1>&6
18490 else
18491 cat > conftest.$ac_ext <<EOF
18492 #line 18493 "configure"
18493 #include "confdefs.h"
18494 /* System header to define __stub macros and hopefully few prototypes,
18495 which can conflict with char $ac_func(); below. */
18496 #include <assert.h>
18497 /* Override any gcc2 internal prototype to avoid an error. */
18498 #ifdef __cplusplus
18499 extern "C"
18500 #endif
18501 /* We use char because int might match the return type of a gcc2
18502 builtin and then its argument prototype would still apply. */
18503 char $ac_func();
18504
18505 int main() {
18506
18507 /* The GNU C library defines this for functions which it implements
18508 to always fail with ENOSYS. Some functions are actually named
18509 something starting with __ and the normal name is an alias. */
18510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18511 choke me
18512 #else
18513 $ac_func();
18514 #endif
18515
18516 ; return 0; }
18517 EOF
18518 if { (eval echo configure:18519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18519 rm -rf conftest*
18520 eval "ac_cv_func_$ac_func=yes"
18521 else
18522 echo "configure: failed program was:" >&5
18523 cat conftest.$ac_ext >&5
18524 rm -rf conftest*
18525 eval "ac_cv_func_$ac_func=no"
18526 fi
18527 rm -f conftest*
18528 fi
18529
18530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18531 echo "$ac_t""yes" 1>&6
18532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18533 cat >> confdefs.h <<EOF
18534 #define $ac_tr_func 1
18535 EOF
18536
18537 else
18538 echo "$ac_t""no" 1>&6
18539 fi
18540 done
18541
18542
18543 ac_ext=c
18544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18545 ac_cpp='$CPP $CPPFLAGS'
18546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18548 cross_compiling=$ac_cv_prog_cc_cross
18549
18550
18551 INET_LINK=
18552 for ac_func in inet_addr
18553 do
18554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18555 echo "configure:18556: checking for $ac_func" >&5
18556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18557 echo $ac_n "(cached) $ac_c" 1>&6
18558 else
18559 cat > conftest.$ac_ext <<EOF
18560 #line 18561 "configure"
18561 #include "confdefs.h"
18562 /* System header to define __stub macros and hopefully few prototypes,
18563 which can conflict with char $ac_func(); below. */
18564 #include <assert.h>
18565 /* Override any gcc2 internal prototype to avoid an error. */
18566 /* We use char because int might match the return type of a gcc2
18567 builtin and then its argument prototype would still apply. */
18568 char $ac_func();
18569
18570 int main() {
18571
18572 /* The GNU C library defines this for functions which it implements
18573 to always fail with ENOSYS. Some functions are actually named
18574 something starting with __ and the normal name is an alias. */
18575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18576 choke me
18577 #else
18578 $ac_func();
18579 #endif
18580
18581 ; return 0; }
18582 EOF
18583 if { (eval echo configure:18584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18584 rm -rf conftest*
18585 eval "ac_cv_func_$ac_func=yes"
18586 else
18587 echo "configure: failed program was:" >&5
18588 cat conftest.$ac_ext >&5
18589 rm -rf conftest*
18590 eval "ac_cv_func_$ac_func=no"
18591 fi
18592 rm -f conftest*
18593 fi
18594
18595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18596 echo "$ac_t""yes" 1>&6
18597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18598 cat >> confdefs.h <<EOF
18599 #define $ac_tr_func 1
18600 EOF
18601 cat >> confdefs.h <<\EOF
18602 #define HAVE_INET_ADDR 1
18603 EOF
18604
18605 else
18606 echo "$ac_t""no" 1>&6
18607 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18608 echo "configure:18609: checking for inet_addr in -lnsl" >&5
18609 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18611 echo $ac_n "(cached) $ac_c" 1>&6
18612 else
18613 ac_save_LIBS="$LIBS"
18614 LIBS="-lnsl $LIBS"
18615 cat > conftest.$ac_ext <<EOF
18616 #line 18617 "configure"
18617 #include "confdefs.h"
18618 /* Override any gcc2 internal prototype to avoid an error. */
18619 /* We use char because int might match the return type of a gcc2
18620 builtin and then its argument prototype would still apply. */
18621 char inet_addr();
18622
18623 int main() {
18624 inet_addr()
18625 ; return 0; }
18626 EOF
18627 if { (eval echo configure:18628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18628 rm -rf conftest*
18629 eval "ac_cv_lib_$ac_lib_var=yes"
18630 else
18631 echo "configure: failed program was:" >&5
18632 cat conftest.$ac_ext >&5
18633 rm -rf conftest*
18634 eval "ac_cv_lib_$ac_lib_var=no"
18635 fi
18636 rm -f conftest*
18637 LIBS="$ac_save_LIBS"
18638
18639 fi
18640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18641 echo "$ac_t""yes" 1>&6
18642 INET_LINK="nsl"
18643 else
18644 echo "$ac_t""no" 1>&6
18645 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18646 echo "configure:18647: checking for inet_addr in -lresolv" >&5
18647 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18649 echo $ac_n "(cached) $ac_c" 1>&6
18650 else
18651 ac_save_LIBS="$LIBS"
18652 LIBS="-lresolv $LIBS"
18653 cat > conftest.$ac_ext <<EOF
18654 #line 18655 "configure"
18655 #include "confdefs.h"
18656 /* Override any gcc2 internal prototype to avoid an error. */
18657 /* We use char because int might match the return type of a gcc2
18658 builtin and then its argument prototype would still apply. */
18659 char inet_addr();
18660
18661 int main() {
18662 inet_addr()
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_lib_$ac_lib_var=yes"
18668 else
18669 echo "configure: failed program was:" >&5
18670 cat conftest.$ac_ext >&5
18671 rm -rf conftest*
18672 eval "ac_cv_lib_$ac_lib_var=no"
18673 fi
18674 rm -f conftest*
18675 LIBS="$ac_save_LIBS"
18676
18677 fi
18678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18679 echo "$ac_t""yes" 1>&6
18680 INET_LINK="resolv"
18681 else
18682 echo "$ac_t""no" 1>&6
18683 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18684 echo "configure:18685: checking for inet_addr in -lsocket" >&5
18685 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18687 echo $ac_n "(cached) $ac_c" 1>&6
18688 else
18689 ac_save_LIBS="$LIBS"
18690 LIBS="-lsocket $LIBS"
18691 cat > conftest.$ac_ext <<EOF
18692 #line 18693 "configure"
18693 #include "confdefs.h"
18694 /* Override any gcc2 internal prototype to avoid an error. */
18695 /* We use char because int might match the return type of a gcc2
18696 builtin and then its argument prototype would still apply. */
18697 char inet_addr();
18698
18699 int main() {
18700 inet_addr()
18701 ; return 0; }
18702 EOF
18703 if { (eval echo configure:18704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18704 rm -rf conftest*
18705 eval "ac_cv_lib_$ac_lib_var=yes"
18706 else
18707 echo "configure: failed program was:" >&5
18708 cat conftest.$ac_ext >&5
18709 rm -rf conftest*
18710 eval "ac_cv_lib_$ac_lib_var=no"
18711 fi
18712 rm -f conftest*
18713 LIBS="$ac_save_LIBS"
18714
18715 fi
18716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18717 echo "$ac_t""yes" 1>&6
18718 INET_LINK="socket"
18719
18720 else
18721 echo "$ac_t""no" 1>&6
18722 fi
18723
18724
18725 fi
18726
18727
18728 fi
18729
18730
18731
18732 fi
18733 done
18734
18735
18736 for ac_func in inet_aton
18737 do
18738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18739 echo "configure:18740: checking for $ac_func" >&5
18740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18741 echo $ac_n "(cached) $ac_c" 1>&6
18742 else
18743 cat > conftest.$ac_ext <<EOF
18744 #line 18745 "configure"
18745 #include "confdefs.h"
18746 /* System header to define __stub macros and hopefully few prototypes,
18747 which can conflict with char $ac_func(); below. */
18748 #include <assert.h>
18749 /* Override any gcc2 internal prototype to avoid an error. */
18750 /* We use char because int might match the return type of a gcc2
18751 builtin and then its argument prototype would still apply. */
18752 char $ac_func();
18753
18754 int main() {
18755
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18760 choke me
18761 #else
18762 $ac_func();
18763 #endif
18764
18765 ; return 0; }
18766 EOF
18767 if { (eval echo configure:18768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18768 rm -rf conftest*
18769 eval "ac_cv_func_$ac_func=yes"
18770 else
18771 echo "configure: failed program was:" >&5
18772 cat conftest.$ac_ext >&5
18773 rm -rf conftest*
18774 eval "ac_cv_func_$ac_func=no"
18775 fi
18776 rm -f conftest*
18777 fi
18778
18779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18780 echo "$ac_t""yes" 1>&6
18781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18782 cat >> confdefs.h <<EOF
18783 #define $ac_tr_func 1
18784 EOF
18785 cat >> confdefs.h <<\EOF
18786 #define HAVE_INET_ATON 1
18787 EOF
18788
18789 else
18790 echo "$ac_t""no" 1>&6
18791 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18792 echo "configure:18793: checking for inet_aton in -l$INET_LINK" >&5
18793 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18795 echo $ac_n "(cached) $ac_c" 1>&6
18796 else
18797 ac_save_LIBS="$LIBS"
18798 LIBS="-l$INET_LINK $LIBS"
18799 cat > conftest.$ac_ext <<EOF
18800 #line 18801 "configure"
18801 #include "confdefs.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 inet_aton();
18806
18807 int main() {
18808 inet_aton()
18809 ; return 0; }
18810 EOF
18811 if { (eval echo configure:18812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18812 rm -rf conftest*
18813 eval "ac_cv_lib_$ac_lib_var=yes"
18814 else
18815 echo "configure: failed program was:" >&5
18816 cat conftest.$ac_ext >&5
18817 rm -rf conftest*
18818 eval "ac_cv_lib_$ac_lib_var=no"
18819 fi
18820 rm -f conftest*
18821 LIBS="$ac_save_LIBS"
18822
18823 fi
18824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18825 echo "$ac_t""yes" 1>&6
18826 cat >> confdefs.h <<\EOF
18827 #define HAVE_INET_ATON 1
18828 EOF
18829
18830 else
18831 echo "$ac_t""no" 1>&6
18832 fi
18833
18834
18835 fi
18836 done
18837
18838
18839 if test "x$INET_LINK" != "x"; then
18840 cat >> confdefs.h <<\EOF
18841 #define HAVE_INET_ADDR 1
18842 EOF
18843
18844 INET_LINK=" -l$INET_LINK"
18845 fi
18846
18847 fi
18848
18849
18850 cat > confcache <<\EOF
18851 # This file is a shell script that caches the results of configure
18852 # tests run on this system so they can be shared between configure
18853 # scripts and configure runs. It is not useful on other systems.
18854 # If it contains results you don't want to keep, you may remove or edit it.
18855 #
18856 # By default, configure uses ./config.cache as the cache file,
18857 # creating it if it does not exist already. You can give configure
18858 # the --cache-file=FILE option to use a different cache file; that is
18859 # what configure does when it calls configure scripts in
18860 # subdirectories, so they share the cache.
18861 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18862 # config.status only pays attention to the cache file if you give it the
18863 # --recheck option to rerun configure.
18864 #
18865 EOF
18866 # The following way of writing the cache mishandles newlines in values,
18867 # but we know of no workaround that is simple, portable, and efficient.
18868 # So, don't put newlines in cache variables' values.
18869 # Ultrix sh set writes to stderr and can't be redirected directly,
18870 # and sets the high bit in the cache file unless we assign to the vars.
18871 (set) 2>&1 |
18872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18873 *ac_space=\ *)
18874 # `set' does not quote correctly, so add quotes (double-quote substitution
18875 # turns \\\\ into \\, and sed turns \\ into \).
18876 sed -n \
18877 -e "s/'/'\\\\''/g" \
18878 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18879 ;;
18880 *)
18881 # `set' quotes correctly as required by POSIX, so do not add quotes.
18882 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18883 ;;
18884 esac >> confcache
18885 if cmp -s $cache_file confcache; then
18886 :
18887 else
18888 if test -w $cache_file; then
18889 echo "updating cache $cache_file"
18890 cat confcache > $cache_file
18891 else
18892 echo "not updating unwritable cache $cache_file"
18893 fi
18894 fi
18895 rm -f confcache
18896
18897
18898
18899 CPP_MT_FLAG=
18900 if test "$TOOLKIT" != "MSW"; then
18901
18902
18903 THREADS_LINK=
18904 THREADS_CFLAGS=
18905
18906 if test "$wxUSE_THREADS" = "yes" ; then
18907 if test "$USE_BEOS" = 1; then
18908 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18909 wxUSE_THREADS="no"
18910 fi
18911 fi
18912
18913 if test "$wxUSE_THREADS" = "yes" ; then
18914
18915
18916 THREAD_OPTS="-pthread"
18917 case "${host}" in
18918 *-*-solaris2* | *-*-sunos4* )
18919 if test "x$GCC" = "xyes"; then
18920 THREAD_OPTS="-pthreads $THREAD_OPTS"
18921 else
18922 THREAD_OPTS="-mt $THREAD_OPTS"
18923 fi
18924 ;;
18925 *-*-freebsd*)
18926 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18927 ;;
18928 *-*-darwin* | *-*-cygwin* )
18929 THREAD_OPTS=""
18930 ;;
18931 *-*-aix*)
18932 THREAD_OPTS="pthreads"
18933 ;;
18934 *-hp-hpux* )
18935 if test "x$GCC" != "xyes"; then
18936 THREAD_OPTS=""
18937 fi
18938 ;;
18939
18940 *-*-irix* )
18941 if test "x$GCC" = "xyes"; then
18942 THREAD_OPTS=""
18943 fi
18944 ;;
18945
18946 *-*-*UnixWare*)
18947 if test "x$GCC" != "xyes"; then
18948 THREAD_OPTS="-Ethread"
18949 fi
18950 ;;
18951 esac
18952
18953 THREAD_OPTS="$THREAD_OPTS pthread none"
18954
18955 THREADS_OK=no
18956 for flag in $THREAD_OPTS; do
18957 case $flag in
18958 none)
18959 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18960 echo "configure:18961: checking whether pthreads work without any flags" >&5
18961 ;;
18962
18963 -*)
18964 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18965 echo "configure:18966: checking whether pthreads work with $flag" >&5
18966 THREADS_CFLAGS="$flag"
18967 ;;
18968
18969 *)
18970 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18971 echo "configure:18972: checking for the pthreads library -l$flag" >&5
18972 THREADS_LINK="-l$flag"
18973 ;;
18974 esac
18975
18976 save_LIBS="$LIBS"
18977 save_CFLAGS="$CFLAGS"
18978 LIBS="$THREADS_LINK $LIBS"
18979 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18980
18981 cat > conftest.$ac_ext <<EOF
18982 #line 18983 "configure"
18983 #include "confdefs.h"
18984 #include <pthread.h>
18985 int main() {
18986 pthread_create(0,0,0,0);
18987 ; return 0; }
18988 EOF
18989 if { (eval echo configure:18990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18990 rm -rf conftest*
18991 THREADS_OK=yes
18992 else
18993 echo "configure: failed program was:" >&5
18994 cat conftest.$ac_ext >&5
18995 fi
18996 rm -f conftest*
18997
18998 LIBS="$save_LIBS"
18999 CFLAGS="$save_CFLAGS"
19000
19001 echo "$ac_t""$THREADS_OK" 1>&6
19002 if test "x$THREADS_OK" = "xyes"; then
19003 break;
19004 fi
19005
19006 THREADS_LINK=""
19007 THREADS_CFLAGS=""
19008 done
19009
19010 if test "x$THREADS_OK" != "xyes"; then
19011 wxUSE_THREADS=no
19012 echo "configure: warning: No thread support on this system... disabled" 1>&2
19013 else
19014 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19015 LIBS="$THREADS_LINK $LIBS"
19016
19017 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
19018 echo "configure:19019: checking if more special flags are required for pthreads" >&5
19019 flag=no
19020 case "${host}" in
19021 *-aix*)
19022 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19023 flag="-D_THREAD_SAFE"
19024 ;;
19025 *-freebsd*)
19026 flag="-D_THREAD_SAFE"
19027 ;;
19028 *-hp-hpux* )
19029 flag="-D_REENTRANT"
19030 if test "x$GCC" != "xyes"; then
19031 flag="$flag -D_RWSTD_MULTI_THREAD"
19032 fi
19033 ;;
19034 *solaris* | alpha*-osf*)
19035 flag="-D_REENTRANT"
19036 ;;
19037 esac
19038 echo "$ac_t""${flag}" 1>&6
19039 if test "x$flag" != xno; then
19040 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
19041 fi
19042
19043 if test "x$THREADS_CFLAGS" != "x"; then
19044 CFLAGS="$CFLAGS $THREADS_CFLAGS"
19045 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19046 fi
19047 fi
19048 fi
19049
19050 if test "$wxUSE_THREADS" = "yes" ; then
19051 for ac_func in thr_setconcurrency
19052 do
19053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19054 echo "configure:19055: checking for $ac_func" >&5
19055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19056 echo $ac_n "(cached) $ac_c" 1>&6
19057 else
19058 cat > conftest.$ac_ext <<EOF
19059 #line 19060 "configure"
19060 #include "confdefs.h"
19061 /* System header to define __stub macros and hopefully few prototypes,
19062 which can conflict with char $ac_func(); below. */
19063 #include <assert.h>
19064 /* Override any gcc2 internal prototype to avoid an error. */
19065 /* We use char because int might match the return type of a gcc2
19066 builtin and then its argument prototype would still apply. */
19067 char $ac_func();
19068
19069 int main() {
19070
19071 /* The GNU C library defines this for functions which it implements
19072 to always fail with ENOSYS. Some functions are actually named
19073 something starting with __ and the normal name is an alias. */
19074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19075 choke me
19076 #else
19077 $ac_func();
19078 #endif
19079
19080 ; return 0; }
19081 EOF
19082 if { (eval echo configure:19083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19083 rm -rf conftest*
19084 eval "ac_cv_func_$ac_func=yes"
19085 else
19086 echo "configure: failed program was:" >&5
19087 cat conftest.$ac_ext >&5
19088 rm -rf conftest*
19089 eval "ac_cv_func_$ac_func=no"
19090 fi
19091 rm -f conftest*
19092 fi
19093
19094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19095 echo "$ac_t""yes" 1>&6
19096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19097 cat >> confdefs.h <<EOF
19098 #define $ac_tr_func 1
19099 EOF
19100
19101 else
19102 echo "$ac_t""no" 1>&6
19103 fi
19104 done
19105
19106
19107 for ac_hdr in sched.h
19108 do
19109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19111 echo "configure:19112: checking for $ac_hdr" >&5
19112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19113 echo $ac_n "(cached) $ac_c" 1>&6
19114 else
19115 cat > conftest.$ac_ext <<EOF
19116 #line 19117 "configure"
19117 #include "confdefs.h"
19118 #include <$ac_hdr>
19119 EOF
19120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19121 { (eval echo configure:19122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19123 if test -z "$ac_err"; then
19124 rm -rf conftest*
19125 eval "ac_cv_header_$ac_safe=yes"
19126 else
19127 echo "$ac_err" >&5
19128 echo "configure: failed program was:" >&5
19129 cat conftest.$ac_ext >&5
19130 rm -rf conftest*
19131 eval "ac_cv_header_$ac_safe=no"
19132 fi
19133 rm -f conftest*
19134 fi
19135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19136 echo "$ac_t""yes" 1>&6
19137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19138 cat >> confdefs.h <<EOF
19139 #define $ac_tr_hdr 1
19140 EOF
19141
19142 else
19143 echo "$ac_t""no" 1>&6
19144 fi
19145 done
19146
19147 if test "$ac_cv_header_sched_h" = "yes"; then
19148 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
19149 echo "configure:19150: checking for sched_yield" >&5
19150 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19151 echo $ac_n "(cached) $ac_c" 1>&6
19152 else
19153 cat > conftest.$ac_ext <<EOF
19154 #line 19155 "configure"
19155 #include "confdefs.h"
19156 /* System header to define __stub macros and hopefully few prototypes,
19157 which can conflict with char sched_yield(); below. */
19158 #include <assert.h>
19159 /* Override any gcc2 internal prototype to avoid an error. */
19160 /* We use char because int might match the return type of a gcc2
19161 builtin and then its argument prototype would still apply. */
19162 char sched_yield();
19163
19164 int main() {
19165
19166 /* The GNU C library defines this for functions which it implements
19167 to always fail with ENOSYS. Some functions are actually named
19168 something starting with __ and the normal name is an alias. */
19169 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19170 choke me
19171 #else
19172 sched_yield();
19173 #endif
19174
19175 ; return 0; }
19176 EOF
19177 if { (eval echo configure:19178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19178 rm -rf conftest*
19179 eval "ac_cv_func_sched_yield=yes"
19180 else
19181 echo "configure: failed program was:" >&5
19182 cat conftest.$ac_ext >&5
19183 rm -rf conftest*
19184 eval "ac_cv_func_sched_yield=no"
19185 fi
19186 rm -f conftest*
19187 fi
19188
19189 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19190 echo "$ac_t""yes" 1>&6
19191 cat >> confdefs.h <<\EOF
19192 #define HAVE_SCHED_YIELD 1
19193 EOF
19194
19195 else
19196 echo "$ac_t""no" 1>&6
19197
19198 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19199 echo "configure:19200: checking for sched_yield in -lposix4" >&5
19200 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19202 echo $ac_n "(cached) $ac_c" 1>&6
19203 else
19204 ac_save_LIBS="$LIBS"
19205 LIBS="-lposix4 $LIBS"
19206 cat > conftest.$ac_ext <<EOF
19207 #line 19208 "configure"
19208 #include "confdefs.h"
19209 /* Override any gcc2 internal prototype to avoid an error. */
19210 /* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19212 char sched_yield();
19213
19214 int main() {
19215 sched_yield()
19216 ; return 0; }
19217 EOF
19218 if { (eval echo configure:19219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19219 rm -rf conftest*
19220 eval "ac_cv_lib_$ac_lib_var=yes"
19221 else
19222 echo "configure: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19224 rm -rf conftest*
19225 eval "ac_cv_lib_$ac_lib_var=no"
19226 fi
19227 rm -f conftest*
19228 LIBS="$ac_save_LIBS"
19229
19230 fi
19231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19232 echo "$ac_t""yes" 1>&6
19233 cat >> confdefs.h <<\EOF
19234 #define HAVE_SCHED_YIELD 1
19235 EOF
19236 POSIX4_LINK=" -lposix4"
19237 else
19238 echo "$ac_t""no" 1>&6
19239 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19240
19241 fi
19242
19243
19244
19245 fi
19246
19247 fi
19248
19249 HAVE_PRIOR_FUNCS=0
19250 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19251 echo "configure:19252: checking for pthread_attr_getschedpolicy" >&5
19252 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19253 echo $ac_n "(cached) $ac_c" 1>&6
19254 else
19255 cat > conftest.$ac_ext <<EOF
19256 #line 19257 "configure"
19257 #include "confdefs.h"
19258 /* System header to define __stub macros and hopefully few prototypes,
19259 which can conflict with char pthread_attr_getschedpolicy(); below. */
19260 #include <assert.h>
19261 /* Override any gcc2 internal prototype to avoid an error. */
19262 /* We use char because int might match the return type of a gcc2
19263 builtin and then its argument prototype would still apply. */
19264 char pthread_attr_getschedpolicy();
19265
19266 int main() {
19267
19268 /* The GNU C library defines this for functions which it implements
19269 to always fail with ENOSYS. Some functions are actually named
19270 something starting with __ and the normal name is an alias. */
19271 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19272 choke me
19273 #else
19274 pthread_attr_getschedpolicy();
19275 #endif
19276
19277 ; return 0; }
19278 EOF
19279 if { (eval echo configure:19280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19280 rm -rf conftest*
19281 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19282 else
19283 echo "configure: failed program was:" >&5
19284 cat conftest.$ac_ext >&5
19285 rm -rf conftest*
19286 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19287 fi
19288 rm -f conftest*
19289 fi
19290
19291 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19292 echo "$ac_t""yes" 1>&6
19293 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19294 echo "configure:19295: checking for pthread_attr_setschedparam" >&5
19295 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19296 echo $ac_n "(cached) $ac_c" 1>&6
19297 else
19298 cat > conftest.$ac_ext <<EOF
19299 #line 19300 "configure"
19300 #include "confdefs.h"
19301 /* System header to define __stub macros and hopefully few prototypes,
19302 which can conflict with char pthread_attr_setschedparam(); below. */
19303 #include <assert.h>
19304 /* Override any gcc2 internal prototype to avoid an error. */
19305 /* We use char because int might match the return type of a gcc2
19306 builtin and then its argument prototype would still apply. */
19307 char pthread_attr_setschedparam();
19308
19309 int main() {
19310
19311 /* The GNU C library defines this for functions which it implements
19312 to always fail with ENOSYS. Some functions are actually named
19313 something starting with __ and the normal name is an alias. */
19314 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19315 choke me
19316 #else
19317 pthread_attr_setschedparam();
19318 #endif
19319
19320 ; return 0; }
19321 EOF
19322 if { (eval echo configure:19323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19323 rm -rf conftest*
19324 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19325 else
19326 echo "configure: failed program was:" >&5
19327 cat conftest.$ac_ext >&5
19328 rm -rf conftest*
19329 eval "ac_cv_func_pthread_attr_setschedparam=no"
19330 fi
19331 rm -f conftest*
19332 fi
19333
19334 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19335 echo "$ac_t""yes" 1>&6
19336 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19337 echo "configure:19338: checking for sched_get_priority_max" >&5
19338 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19339 echo $ac_n "(cached) $ac_c" 1>&6
19340 else
19341 cat > conftest.$ac_ext <<EOF
19342 #line 19343 "configure"
19343 #include "confdefs.h"
19344 /* System header to define __stub macros and hopefully few prototypes,
19345 which can conflict with char sched_get_priority_max(); below. */
19346 #include <assert.h>
19347 /* Override any gcc2 internal prototype to avoid an error. */
19348 /* We use char because int might match the return type of a gcc2
19349 builtin and then its argument prototype would still apply. */
19350 char sched_get_priority_max();
19351
19352 int main() {
19353
19354 /* The GNU C library defines this for functions which it implements
19355 to always fail with ENOSYS. Some functions are actually named
19356 something starting with __ and the normal name is an alias. */
19357 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19358 choke me
19359 #else
19360 sched_get_priority_max();
19361 #endif
19362
19363 ; return 0; }
19364 EOF
19365 if { (eval echo configure:19366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19366 rm -rf conftest*
19367 eval "ac_cv_func_sched_get_priority_max=yes"
19368 else
19369 echo "configure: failed program was:" >&5
19370 cat conftest.$ac_ext >&5
19371 rm -rf conftest*
19372 eval "ac_cv_func_sched_get_priority_max=no"
19373 fi
19374 rm -f conftest*
19375 fi
19376
19377 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19378 echo "$ac_t""yes" 1>&6
19379 HAVE_PRIOR_FUNCS=1
19380 else
19381 echo "$ac_t""no" 1>&6
19382 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19383 echo "configure:19384: checking for sched_get_priority_max in -lposix4" >&5
19384 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19386 echo $ac_n "(cached) $ac_c" 1>&6
19387 else
19388 ac_save_LIBS="$LIBS"
19389 LIBS="-lposix4 $LIBS"
19390 cat > conftest.$ac_ext <<EOF
19391 #line 19392 "configure"
19392 #include "confdefs.h"
19393 /* Override any gcc2 internal prototype to avoid an error. */
19394 /* We use char because int might match the return type of a gcc2
19395 builtin and then its argument prototype would still apply. */
19396 char sched_get_priority_max();
19397
19398 int main() {
19399 sched_get_priority_max()
19400 ; return 0; }
19401 EOF
19402 if { (eval echo configure:19403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19403 rm -rf conftest*
19404 eval "ac_cv_lib_$ac_lib_var=yes"
19405 else
19406 echo "configure: failed program was:" >&5
19407 cat conftest.$ac_ext >&5
19408 rm -rf conftest*
19409 eval "ac_cv_lib_$ac_lib_var=no"
19410 fi
19411 rm -f conftest*
19412 LIBS="$ac_save_LIBS"
19413
19414 fi
19415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19416 echo "$ac_t""yes" 1>&6
19417
19418 HAVE_PRIOR_FUNCS=1
19419 POSIX4_LINK=" -lposix4"
19420
19421 else
19422 echo "$ac_t""no" 1>&6
19423 fi
19424
19425
19426 fi
19427
19428
19429 else
19430 echo "$ac_t""no" 1>&6
19431 fi
19432
19433
19434 else
19435 echo "$ac_t""no" 1>&6
19436 fi
19437
19438
19439 if test "$HAVE_PRIOR_FUNCS" = 1; then
19440 cat >> confdefs.h <<\EOF
19441 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19442 EOF
19443
19444 else
19445 echo "configure: warning: Setting thread priority will not work" 1>&2
19446 fi
19447
19448 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19449 echo "configure:19450: checking for pthread_cancel" >&5
19450 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19451 echo $ac_n "(cached) $ac_c" 1>&6
19452 else
19453 cat > conftest.$ac_ext <<EOF
19454 #line 19455 "configure"
19455 #include "confdefs.h"
19456 /* System header to define __stub macros and hopefully few prototypes,
19457 which can conflict with char pthread_cancel(); below. */
19458 #include <assert.h>
19459 /* Override any gcc2 internal prototype to avoid an error. */
19460 /* We use char because int might match the return type of a gcc2
19461 builtin and then its argument prototype would still apply. */
19462 char pthread_cancel();
19463
19464 int main() {
19465
19466 /* The GNU C library defines this for functions which it implements
19467 to always fail with ENOSYS. Some functions are actually named
19468 something starting with __ and the normal name is an alias. */
19469 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19470 choke me
19471 #else
19472 pthread_cancel();
19473 #endif
19474
19475 ; return 0; }
19476 EOF
19477 if { (eval echo configure:19478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19478 rm -rf conftest*
19479 eval "ac_cv_func_pthread_cancel=yes"
19480 else
19481 echo "configure: failed program was:" >&5
19482 cat conftest.$ac_ext >&5
19483 rm -rf conftest*
19484 eval "ac_cv_func_pthread_cancel=no"
19485 fi
19486 rm -f conftest*
19487 fi
19488
19489 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19490 echo "$ac_t""yes" 1>&6
19491 cat >> confdefs.h <<\EOF
19492 #define HAVE_PTHREAD_CANCEL 1
19493 EOF
19494
19495 else
19496 echo "$ac_t""no" 1>&6
19497 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19498 fi
19499
19500
19501 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19502 echo "configure:19503: checking for pthread_cleanup_push/pop" >&5
19503 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19504 echo $ac_n "(cached) $ac_c" 1>&6
19505 else
19506
19507 cat > conftest.$ac_ext <<EOF
19508 #line 19509 "configure"
19509 #include "confdefs.h"
19510 #include <pthread.h>
19511 int main() {
19512
19513 pthread_cleanup_push(NULL, NULL);
19514 pthread_cleanup_pop(0);
19515
19516 ; return 0; }
19517 EOF
19518 if { (eval echo configure:19519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19519 rm -rf conftest*
19520
19521 wx_cv_func_pthread_cleanup_push=yes
19522
19523 else
19524 echo "configure: failed program was:" >&5
19525 cat conftest.$ac_ext >&5
19526 rm -rf conftest*
19527
19528 wx_cv_func_pthread_cleanup_push=no
19529
19530 fi
19531 rm -f conftest*
19532
19533 fi
19534
19535 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19536
19537 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19538 cat >> confdefs.h <<\EOF
19539 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19540 EOF
19541
19542 fi
19543
19544
19545 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19546 echo "configure:19547: checking for pthread_mutexattr_t" >&5
19547 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19548 echo $ac_n "(cached) $ac_c" 1>&6
19549 else
19550
19551 cat > conftest.$ac_ext <<EOF
19552 #line 19553 "configure"
19553 #include "confdefs.h"
19554 #include <pthread.h>
19555 int main() {
19556
19557 pthread_mutexattr_t attr;
19558 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19559
19560 ; return 0; }
19561 EOF
19562 if { (eval echo configure:19563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19563 rm -rf conftest*
19564
19565 wx_cv_type_pthread_mutexattr_t=yes
19566
19567 else
19568 echo "configure: failed program was:" >&5
19569 cat conftest.$ac_ext >&5
19570 rm -rf conftest*
19571
19572 wx_cv_type_pthread_mutexattr_t=no
19573
19574
19575 fi
19576 rm -f conftest*
19577
19578 fi
19579
19580 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19581
19582 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19583 cat >> confdefs.h <<\EOF
19584 #define HAVE_PTHREAD_MUTEXATTR_T 1
19585 EOF
19586
19587 else
19588 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19589 echo "configure:19590: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19590 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19591 echo $ac_n "(cached) $ac_c" 1>&6
19592 else
19593
19594 cat > conftest.$ac_ext <<EOF
19595 #line 19596 "configure"
19596 #include "confdefs.h"
19597 #include <pthread.h>
19598 int main() {
19599
19600 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19601
19602 ; return 0; }
19603 EOF
19604 if { (eval echo configure:19605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19605 rm -rf conftest*
19606
19607 wx_cv_type_pthread_rec_mutex_init=yes
19608
19609 else
19610 echo "configure: failed program was:" >&5
19611 cat conftest.$ac_ext >&5
19612 rm -rf conftest*
19613
19614 wx_cv_type_pthread_rec_mutex_init=no
19615
19616
19617 fi
19618 rm -f conftest*
19619
19620 fi
19621
19622 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19623 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19624 cat >> confdefs.h <<\EOF
19625 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19626 EOF
19627
19628 else
19629 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19630 fi
19631 fi
19632 fi
19633
19634 else
19635 if test "$wxUSE_THREADS" = "yes" ; then
19636 case "${host}" in
19637 *-*-mingw32* )
19638 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19639 echo "configure:19640: checking if compiler supports -mthreads" >&5
19640 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19641 echo $ac_n "(cached) $ac_c" 1>&6
19642 else
19643
19644 CFLAGS_OLD="$CFLAGS"
19645 CFLAGS="$CFLAGS -mthreads"
19646 cat > conftest.$ac_ext <<EOF
19647 #line 19648 "configure"
19648 #include "confdefs.h"
19649
19650 int main() {
19651
19652 ; return 0; }
19653 EOF
19654 if { (eval echo configure:19655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19655 rm -rf conftest*
19656 wx_cv_cflags_mthread=yes
19657 else
19658 echo "configure: failed program was:" >&5
19659 cat conftest.$ac_ext >&5
19660 rm -rf conftest*
19661 wx_cv_cflags_mthread=no
19662
19663 fi
19664 rm -f conftest*
19665
19666
19667 fi
19668
19669 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19670
19671 if test "$wx_cv_cflags_mthread" = "yes"; then
19672 CXXFLAGS="$CXXFLAGS -mthreads"
19673 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19674 LDFLAGS="$LDFLAGS -mthreads"
19675 else
19676 CFLAGS="$CFLAGS_OLD"
19677 fi
19678 ;;
19679 esac
19680 fi
19681 fi
19682
19683 if test "$wxUSE_THREADS" = "yes"; then
19684 cat >> confdefs.h <<\EOF
19685 #define wxUSE_THREADS 1
19686 EOF
19687
19688
19689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19690 else
19691 if test "$ac_cv_func_strtok_r" = "yes"; then
19692 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19693 echo "configure:19694: checking if -D_REENTRANT is needed" >&5
19694 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19695 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19696 echo "$ac_t""yes" 1>&6
19697 else
19698 echo "$ac_t""no" 1>&6
19699 fi
19700 fi
19701 fi
19702
19703 if test "$WXGTK20" = 1 ; then
19704 cat >> confdefs.h <<EOF
19705 #define __WXGTK20__ $WXGTK20
19706 EOF
19707
19708 WXGTK12=1
19709 fi
19710
19711 if test "$WXGTK12" = 1 ; then
19712 cat >> confdefs.h <<EOF
19713 #define __WXGTK12__ $WXGTK12
19714 EOF
19715
19716 fi
19717
19718 if test "$WXGTK127" = 1 ; then
19719 cat >> confdefs.h <<EOF
19720 #define __WXGTK127__ $WXGTK127
19721 EOF
19722
19723 fi
19724
19725 WXDEBUG=
19726
19727 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19728 WXDEBUG="-g"
19729 wxUSE_OPTIMISE=no
19730 fi
19731
19732 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19733 wxUSE_DEBUG_INFO=yes
19734 WXDEBUG="-ggdb"
19735 fi
19736
19737 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19738 cat >> confdefs.h <<\EOF
19739 #define WXDEBUG 1
19740 EOF
19741
19742 WXDEBUG_DEFINE="-D__WXDEBUG__"
19743 else
19744 if test "$wxUSE_GTK" = 1 ; then
19745 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19746 fi
19747 fi
19748
19749 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19750 cat >> confdefs.h <<\EOF
19751 #define wxUSE_MEMORY_TRACING 1
19752 EOF
19753
19754 cat >> confdefs.h <<\EOF
19755 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19756 EOF
19757
19758 cat >> confdefs.h <<\EOF
19759 #define wxUSE_DEBUG_NEW_ALWAYS 1
19760 EOF
19761
19762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19763 fi
19764
19765 if test "$wxUSE_DMALLOC" = "yes" ; then
19766 DMALLOC_LIBS="-ldmalloc"
19767 fi
19768
19769 PROFILE=
19770 if test "$wxUSE_PROFILE" = "yes" ; then
19771 PROFILE=" -pg"
19772 fi
19773
19774 CODE_GEN_FLAGS=
19775 CODE_GEN_FLAGS_CXX=
19776 if test "$GCC" = "yes" ; then
19777 if test "$wxUSE_NO_RTTI" = "yes" ; then
19778 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19779 fi
19780 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19781 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19782 fi
19783 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19784 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19785 fi
19786 if test "$USE_WIN32" = 1 ; then
19787 # I'm not even really sure what this was ever added to solve,
19788 # but someone added it for mingw native builds, so I guess
19789 # they had a reason, right??
19790 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19791 fi
19792
19793 case "${host}" in
19794 powerpc*-*-aix* )
19795 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19796 ;;
19797 *-hppa* )
19798 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19799 ;;
19800 esac
19801 fi
19802
19803 OPTIMISE=
19804 if test "$wxUSE_OPTIMISE" = "no" ; then
19805 if test "$GCC" = yes ; then
19806 OPTIMISE="-O0"
19807 fi
19808 else
19809 if test "$GCC" = yes ; then
19810 OPTIMISE="-O2"
19811
19812 case "${host}" in
19813 i586-*-*|i686-*-* )
19814 OPTIMISE="${OPTIMISE} "
19815 ;;
19816 esac
19817 else
19818 OPTIMISE="-O"
19819 fi
19820 fi
19821
19822
19823 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19824 cat >> confdefs.h <<\EOF
19825 #define WXWIN_COMPATIBILITY_2 1
19826 EOF
19827
19828
19829 WXWIN_COMPATIBILITY_2_2="yes"
19830 fi
19831
19832 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19833 cat >> confdefs.h <<\EOF
19834 #define WXWIN_COMPATIBILITY_2_2 1
19835 EOF
19836
19837
19838 WXWIN_COMPATIBILITY_2_4="yes"
19839 fi
19840
19841 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19842 cat >> confdefs.h <<\EOF
19843 #define WXWIN_COMPATIBILITY_2_4 1
19844 EOF
19845
19846 fi
19847
19848
19849 if test "$wxUSE_GUI" = "yes"; then
19850 cat >> confdefs.h <<\EOF
19851 #define wxUSE_GUI 1
19852 EOF
19853
19854
19855 else
19856 cat >> confdefs.h <<\EOF
19857 #define wxUSE_NOGUI 1
19858 EOF
19859
19860 fi
19861
19862
19863 if test "$wxUSE_UNIX" = "yes"; then
19864 cat >> confdefs.h <<\EOF
19865 #define wxUSE_UNIX 1
19866 EOF
19867
19868 fi
19869
19870
19871 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19872 cat >> confdefs.h <<\EOF
19873 #define wxUSE_APPLE_IEEE 1
19874 EOF
19875
19876 fi
19877
19878 if test "$wxUSE_TIMER" = "yes"; then
19879 cat >> confdefs.h <<\EOF
19880 #define wxUSE_TIMER 1
19881 EOF
19882
19883 fi
19884
19885 if test "$wxUSE_WAVE" = "yes"; then
19886 cat >> confdefs.h <<\EOF
19887 #define wxUSE_WAVE 1
19888 EOF
19889
19890 fi
19891
19892 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19893 cat >> confdefs.h <<\EOF
19894 #define wxUSE_CMDLINE_PARSER 1
19895 EOF
19896
19897 fi
19898
19899 if test "$wxUSE_STOPWATCH" = "yes"; then
19900 cat >> confdefs.h <<\EOF
19901 #define wxUSE_STOPWATCH 1
19902 EOF
19903
19904 fi
19905
19906 if test "$wxUSE_DATETIME" = "yes"; then
19907 cat >> confdefs.h <<\EOF
19908 #define wxUSE_DATETIME 1
19909 EOF
19910
19911 fi
19912
19913 if test "$wxUSE_FILE" = "yes"; then
19914 cat >> confdefs.h <<\EOF
19915 #define wxUSE_FILE 1
19916 EOF
19917
19918 fi
19919
19920 if test "$wxUSE_FFILE" = "yes"; then
19921 cat >> confdefs.h <<\EOF
19922 #define wxUSE_FFILE 1
19923 EOF
19924
19925 fi
19926
19927 if test "$wxUSE_FILESYSTEM" = "yes"; then
19928 cat >> confdefs.h <<\EOF
19929 #define wxUSE_FILESYSTEM 1
19930 EOF
19931
19932 fi
19933
19934 if test "$wxUSE_FS_INET" = "yes"; then
19935 cat >> confdefs.h <<\EOF
19936 #define wxUSE_FS_INET 1
19937 EOF
19938
19939 fi
19940
19941 if test "$wxUSE_FS_ZIP" = "yes"; then
19942 cat >> confdefs.h <<\EOF
19943 #define wxUSE_FS_ZIP 1
19944 EOF
19945
19946 fi
19947
19948 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19949 cat >> confdefs.h <<\EOF
19950 #define wxUSE_ZIPSTREAM 1
19951 EOF
19952
19953 fi
19954
19955 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19956 cat >> confdefs.h <<\EOF
19957 #define wxUSE_ON_FATAL_EXCEPTION 1
19958 EOF
19959
19960 fi
19961
19962 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19963 cat >> confdefs.h <<\EOF
19964 #define wxUSE_SNGLINST_CHECKER 1
19965 EOF
19966
19967 fi
19968
19969 if test "$wxUSE_BUSYINFO" = "yes"; then
19970 cat >> confdefs.h <<\EOF
19971 #define wxUSE_BUSYINFO 1
19972 EOF
19973
19974 fi
19975
19976 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19977 cat >> confdefs.h <<\EOF
19978 #define wxUSE_STD_IOSTREAM 1
19979 EOF
19980
19981 fi
19982
19983 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19984 cat >> confdefs.h <<\EOF
19985 #define wxUSE_TEXTBUFFER 1
19986 EOF
19987
19988 fi
19989
19990 if test "$wxUSE_TEXTFILE" = "yes"; then
19991 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19992 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19993 else
19994 cat >> confdefs.h <<\EOF
19995 #define wxUSE_TEXTFILE 1
19996 EOF
19997
19998 fi
19999 fi
20000
20001 if test "$wxUSE_CONFIG" = "yes" ; then
20002 if test "$wxUSE_TEXTFILE" != "yes"; then
20003 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
20004 else
20005 cat >> confdefs.h <<\EOF
20006 #define wxUSE_CONFIG 1
20007 EOF
20008
20009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20010 fi
20011 fi
20012
20013 if test "$wxUSE_INTL" = "yes" ; then
20014 if test "$wxUSE_FILE" != "yes"; then
20015 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
20016 else
20017 cat >> confdefs.h <<\EOF
20018 #define wxUSE_INTL 1
20019 EOF
20020
20021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
20022 GUIDIST="$GUIDIST INTL_DIST"
20023 fi
20024 fi
20025
20026 if test "$wxUSE_LOG" = "yes"; then
20027 cat >> confdefs.h <<\EOF
20028 #define wxUSE_LOG 1
20029 EOF
20030
20031
20032 if test "$wxUSE_LOGGUI" = "yes"; then
20033 cat >> confdefs.h <<\EOF
20034 #define wxUSE_LOGGUI 1
20035 EOF
20036
20037 fi
20038
20039 if test "$wxUSE_LOGWINDOW" = "yes"; then
20040 cat >> confdefs.h <<\EOF
20041 #define wxUSE_LOGWINDOW 1
20042 EOF
20043
20044 fi
20045
20046 if test "$wxUSE_LOGDIALOG" = "yes"; then
20047 cat >> confdefs.h <<\EOF
20048 #define wxUSE_LOG_DIALOG 1
20049 EOF
20050
20051 fi
20052 fi
20053
20054 if test "$wxUSE_LONGLONG" = "yes"; then
20055 cat >> confdefs.h <<\EOF
20056 #define wxUSE_LONGLONG 1
20057 EOF
20058
20059 fi
20060
20061 if test "$wxUSE_GEOMETRY" = "yes"; then
20062 cat >> confdefs.h <<\EOF
20063 #define wxUSE_GEOMETRY 1
20064 EOF
20065
20066 fi
20067
20068 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
20069 cat >> confdefs.h <<\EOF
20070 #define wxUSE_DIALUP_MANAGER 1
20071 EOF
20072
20073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
20074 fi
20075
20076 if test "$wxUSE_STREAMS" = "yes" ; then
20077 cat >> confdefs.h <<\EOF
20078 #define wxUSE_STREAMS 1
20079 EOF
20080
20081 fi
20082
20083
20084 if test "$wxUSE_DATETIME" = "yes"; then
20085 for ac_func in strptime
20086 do
20087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20088 echo "configure:20089: checking for $ac_func" >&5
20089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20090 echo $ac_n "(cached) $ac_c" 1>&6
20091 else
20092 cat > conftest.$ac_ext <<EOF
20093 #line 20094 "configure"
20094 #include "confdefs.h"
20095 /* System header to define __stub macros and hopefully few prototypes,
20096 which can conflict with char $ac_func(); below. */
20097 #include <assert.h>
20098 /* Override any gcc2 internal prototype to avoid an error. */
20099 /* We use char because int might match the return type of a gcc2
20100 builtin and then its argument prototype would still apply. */
20101 char $ac_func();
20102
20103 int main() {
20104
20105 /* The GNU C library defines this for functions which it implements
20106 to always fail with ENOSYS. Some functions are actually named
20107 something starting with __ and the normal name is an alias. */
20108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20109 choke me
20110 #else
20111 $ac_func();
20112 #endif
20113
20114 ; return 0; }
20115 EOF
20116 if { (eval echo configure:20117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20117 rm -rf conftest*
20118 eval "ac_cv_func_$ac_func=yes"
20119 else
20120 echo "configure: failed program was:" >&5
20121 cat conftest.$ac_ext >&5
20122 rm -rf conftest*
20123 eval "ac_cv_func_$ac_func=no"
20124 fi
20125 rm -f conftest*
20126 fi
20127
20128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20129 echo "$ac_t""yes" 1>&6
20130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20131 cat >> confdefs.h <<EOF
20132 #define $ac_tr_func 1
20133 EOF
20134
20135 else
20136 echo "$ac_t""no" 1>&6
20137 fi
20138 done
20139
20140
20141 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
20142 echo "configure:20143: checking for timezone variable in <time.h>" >&5
20143 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20144 echo $ac_n "(cached) $ac_c" 1>&6
20145 else
20146
20147 cat > conftest.$ac_ext <<EOF
20148 #line 20149 "configure"
20149 #include "confdefs.h"
20150
20151 #include <time.h>
20152
20153 int main() {
20154
20155 int tz;
20156 tz = timezone;
20157
20158 ; return 0; }
20159 EOF
20160 if { (eval echo configure:20161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20161 rm -rf conftest*
20162
20163 wx_cv_var_timezone=timezone
20164
20165 else
20166 echo "configure: failed program was:" >&5
20167 cat conftest.$ac_ext >&5
20168 rm -rf conftest*
20169
20170 cat > conftest.$ac_ext <<EOF
20171 #line 20172 "configure"
20172 #include "confdefs.h"
20173
20174 #include <time.h>
20175
20176 int main() {
20177
20178 int tz;
20179 tz = _timezone;
20180
20181 ; return 0; }
20182 EOF
20183 if { (eval echo configure:20184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20184 rm -rf conftest*
20185
20186 wx_cv_var_timezone=_timezone
20187
20188 else
20189 echo "configure: failed program was:" >&5
20190 cat conftest.$ac_ext >&5
20191 rm -rf conftest*
20192
20193 cat > conftest.$ac_ext <<EOF
20194 #line 20195 "configure"
20195 #include "confdefs.h"
20196
20197 #include <time.h>
20198
20199 int main() {
20200
20201 int tz;
20202 tz = __timezone;
20203
20204 ; return 0; }
20205 EOF
20206 if { (eval echo configure:20207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20207 rm -rf conftest*
20208
20209 wx_cv_var_timezone=__timezone
20210
20211 else
20212 echo "configure: failed program was:" >&5
20213 cat conftest.$ac_ext >&5
20214 rm -rf conftest*
20215
20216 if test "$USE_DOS" = 0 ; then
20217 echo "configure: warning: no timezone variable" 1>&2
20218 fi
20219
20220
20221 fi
20222 rm -f conftest*
20223
20224
20225 fi
20226 rm -f conftest*
20227
20228
20229 fi
20230 rm -f conftest*
20231
20232
20233 fi
20234
20235 echo "$ac_t""$wx_cv_var_timezone" 1>&6
20236
20237 if test "x$wx_cv_var_timezone" != x ; then
20238 cat >> confdefs.h <<EOF
20239 #define WX_TIMEZONE $wx_cv_var_timezone
20240 EOF
20241
20242 fi
20243
20244 for ac_func in localtime
20245 do
20246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20247 echo "configure:20248: checking for $ac_func" >&5
20248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20249 echo $ac_n "(cached) $ac_c" 1>&6
20250 else
20251 cat > conftest.$ac_ext <<EOF
20252 #line 20253 "configure"
20253 #include "confdefs.h"
20254 /* System header to define __stub macros and hopefully few prototypes,
20255 which can conflict with char $ac_func(); below. */
20256 #include <assert.h>
20257 /* Override any gcc2 internal prototype to avoid an error. */
20258 /* We use char because int might match the return type of a gcc2
20259 builtin and then its argument prototype would still apply. */
20260 char $ac_func();
20261
20262 int main() {
20263
20264 /* The GNU C library defines this for functions which it implements
20265 to always fail with ENOSYS. Some functions are actually named
20266 something starting with __ and the normal name is an alias. */
20267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20268 choke me
20269 #else
20270 $ac_func();
20271 #endif
20272
20273 ; return 0; }
20274 EOF
20275 if { (eval echo configure:20276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20276 rm -rf conftest*
20277 eval "ac_cv_func_$ac_func=yes"
20278 else
20279 echo "configure: failed program was:" >&5
20280 cat conftest.$ac_ext >&5
20281 rm -rf conftest*
20282 eval "ac_cv_func_$ac_func=no"
20283 fi
20284 rm -f conftest*
20285 fi
20286
20287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20288 echo "$ac_t""yes" 1>&6
20289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20290 cat >> confdefs.h <<EOF
20291 #define $ac_tr_func 1
20292 EOF
20293
20294 else
20295 echo "$ac_t""no" 1>&6
20296 fi
20297 done
20298
20299
20300 if test "$ac_cv_func_localtime" = "yes"; then
20301 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20302 echo "configure:20303: checking for tm_gmtoff in struct tm" >&5
20303 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20304 echo $ac_n "(cached) $ac_c" 1>&6
20305 else
20306
20307 cat > conftest.$ac_ext <<EOF
20308 #line 20309 "configure"
20309 #include "confdefs.h"
20310
20311 #include <time.h>
20312
20313 int main() {
20314
20315 struct tm tm;
20316 tm.tm_gmtoff++;
20317
20318 ; return 0; }
20319 EOF
20320 if { (eval echo configure:20321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20321 rm -rf conftest*
20322
20323 wx_cv_struct_tm_has_gmtoff=yes
20324
20325 else
20326 echo "configure: failed program was:" >&5
20327 cat conftest.$ac_ext >&5
20328 rm -rf conftest*
20329 wx_cv_struct_tm_has_gmtoff=no
20330
20331 fi
20332 rm -f conftest*
20333
20334 fi
20335
20336 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20337 fi
20338
20339 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20340 cat >> confdefs.h <<\EOF
20341 #define WX_GMTOFF_IN_TM 1
20342 EOF
20343
20344 fi
20345
20346 for ac_func in gettimeofday ftime
20347 do
20348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20349 echo "configure:20350: checking for $ac_func" >&5
20350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20351 echo $ac_n "(cached) $ac_c" 1>&6
20352 else
20353 cat > conftest.$ac_ext <<EOF
20354 #line 20355 "configure"
20355 #include "confdefs.h"
20356 /* System header to define __stub macros and hopefully few prototypes,
20357 which can conflict with char $ac_func(); below. */
20358 #include <assert.h>
20359 /* Override any gcc2 internal prototype to avoid an error. */
20360 /* We use char because int might match the return type of a gcc2
20361 builtin and then its argument prototype would still apply. */
20362 char $ac_func();
20363
20364 int main() {
20365
20366 /* The GNU C library defines this for functions which it implements
20367 to always fail with ENOSYS. Some functions are actually named
20368 something starting with __ and the normal name is an alias. */
20369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20370 choke me
20371 #else
20372 $ac_func();
20373 #endif
20374
20375 ; return 0; }
20376 EOF
20377 if { (eval echo configure:20378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20378 rm -rf conftest*
20379 eval "ac_cv_func_$ac_func=yes"
20380 else
20381 echo "configure: failed program was:" >&5
20382 cat conftest.$ac_ext >&5
20383 rm -rf conftest*
20384 eval "ac_cv_func_$ac_func=no"
20385 fi
20386 rm -f conftest*
20387 fi
20388
20389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20390 echo "$ac_t""yes" 1>&6
20391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20392 cat >> confdefs.h <<EOF
20393 #define $ac_tr_func 1
20394 EOF
20395 break
20396 else
20397 echo "$ac_t""no" 1>&6
20398 fi
20399 done
20400
20401
20402 if test "$ac_cv_func_gettimeofday" = "yes"; then
20403 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20404 echo "configure:20405: checking whether gettimeofday takes two arguments" >&5
20405 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20406 echo $ac_n "(cached) $ac_c" 1>&6
20407 else
20408
20409
20410 ac_ext=C
20411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20412 ac_cpp='$CXXCPP $CPPFLAGS'
20413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20415 cross_compiling=$ac_cv_prog_cxx_cross
20416
20417
20418 cat > conftest.$ac_ext <<EOF
20419 #line 20420 "configure"
20420 #include "confdefs.h"
20421
20422 #include <sys/time.h>
20423 #include <unistd.h>
20424
20425 int main() {
20426
20427 struct timeval tv;
20428 gettimeofday(&tv, NULL);
20429
20430 ; return 0; }
20431 EOF
20432 if { (eval echo configure:20433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20433 rm -rf conftest*
20434 wx_cv_func_gettimeofday_has_2_args=yes
20435 else
20436 echo "configure: failed program was:" >&5
20437 cat conftest.$ac_ext >&5
20438 rm -rf conftest*
20439 cat > conftest.$ac_ext <<EOF
20440 #line 20441 "configure"
20441 #include "confdefs.h"
20442
20443 #include <sys/time.h>
20444 #include <unistd.h>
20445
20446 int main() {
20447
20448 struct timeval tv;
20449 gettimeofday(&tv);
20450
20451 ; return 0; }
20452 EOF
20453 if { (eval echo configure:20454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20454 rm -rf conftest*
20455 wx_cv_func_gettimeofday_has_2_args=no
20456 else
20457 echo "configure: failed program was:" >&5
20458 cat conftest.$ac_ext >&5
20459 rm -rf conftest*
20460
20461 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20462 wx_cv_func_gettimeofday_has_2_args=unknown
20463
20464
20465 fi
20466 rm -f conftest*
20467
20468 fi
20469 rm -f conftest*
20470 ac_ext=c
20471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20472 ac_cpp='$CPP $CPPFLAGS'
20473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20475 cross_compiling=$ac_cv_prog_cc_cross
20476
20477
20478 fi
20479
20480 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20481
20482 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20483 cat >> confdefs.h <<\EOF
20484 #define WX_GETTIMEOFDAY_NO_TZ 1
20485 EOF
20486
20487 fi
20488 fi
20489
20490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20491 fi
20492
20493
20494 if test "$wxUSE_SOCKETS" = "yes"; then
20495 if test "$wxUSE_MGL" = "1"; then
20496 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20497 wxUSE_SOCKETS="no"
20498 fi
20499 fi
20500
20501 if test "$wxUSE_SOCKETS" = "yes"; then
20502 if test "$TOOLKIT" != "MSW"; then
20503 echo $ac_n "checking for socket""... $ac_c" 1>&6
20504 echo "configure:20505: checking for socket" >&5
20505 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20506 echo $ac_n "(cached) $ac_c" 1>&6
20507 else
20508 cat > conftest.$ac_ext <<EOF
20509 #line 20510 "configure"
20510 #include "confdefs.h"
20511 /* System header to define __stub macros and hopefully few prototypes,
20512 which can conflict with char socket(); below. */
20513 #include <assert.h>
20514 /* Override any gcc2 internal prototype to avoid an error. */
20515 /* We use char because int might match the return type of a gcc2
20516 builtin and then its argument prototype would still apply. */
20517 char socket();
20518
20519 int main() {
20520
20521 /* The GNU C library defines this for functions which it implements
20522 to always fail with ENOSYS. Some functions are actually named
20523 something starting with __ and the normal name is an alias. */
20524 #if defined (__stub_socket) || defined (__stub___socket)
20525 choke me
20526 #else
20527 socket();
20528 #endif
20529
20530 ; return 0; }
20531 EOF
20532 if { (eval echo configure:20533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20533 rm -rf conftest*
20534 eval "ac_cv_func_socket=yes"
20535 else
20536 echo "configure: failed program was:" >&5
20537 cat conftest.$ac_ext >&5
20538 rm -rf conftest*
20539 eval "ac_cv_func_socket=no"
20540 fi
20541 rm -f conftest*
20542 fi
20543
20544 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20545 echo "$ac_t""yes" 1>&6
20546 :
20547 else
20548 echo "$ac_t""no" 1>&6
20549 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20550 echo "configure:20551: checking for socket in -lsocket" >&5
20551 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20553 echo $ac_n "(cached) $ac_c" 1>&6
20554 else
20555 ac_save_LIBS="$LIBS"
20556 LIBS="-lsocket $LIBS"
20557 cat > conftest.$ac_ext <<EOF
20558 #line 20559 "configure"
20559 #include "confdefs.h"
20560 /* Override any gcc2 internal prototype to avoid an error. */
20561 /* We use char because int might match the return type of a gcc2
20562 builtin and then its argument prototype would still apply. */
20563 char socket();
20564
20565 int main() {
20566 socket()
20567 ; return 0; }
20568 EOF
20569 if { (eval echo configure:20570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20570 rm -rf conftest*
20571 eval "ac_cv_lib_$ac_lib_var=yes"
20572 else
20573 echo "configure: failed program was:" >&5
20574 cat conftest.$ac_ext >&5
20575 rm -rf conftest*
20576 eval "ac_cv_lib_$ac_lib_var=no"
20577 fi
20578 rm -f conftest*
20579 LIBS="$ac_save_LIBS"
20580
20581 fi
20582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20583 echo "$ac_t""yes" 1>&6
20584 if test "$INET_LINK" != " -lsocket"; then
20585 INET_LINK="$INET_LINK -lsocket"
20586 fi
20587 else
20588 echo "$ac_t""no" 1>&6
20589
20590 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20591 wxUSE_SOCKETS=no
20592
20593
20594 fi
20595
20596
20597 fi
20598
20599 fi
20600 fi
20601
20602 if test "$wxUSE_SOCKETS" = "yes" ; then
20603 if test "$TOOLKIT" != "MSW"; then
20604 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20605 echo "configure:20606: checking what is the type of the third argument of getsockname" >&5
20606 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20607 echo $ac_n "(cached) $ac_c" 1>&6
20608 else
20609
20610
20611 ac_ext=C
20612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20613 ac_cpp='$CXXCPP $CPPFLAGS'
20614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20616 cross_compiling=$ac_cv_prog_cxx_cross
20617
20618
20619 cat > conftest.$ac_ext <<EOF
20620 #line 20621 "configure"
20621 #include "confdefs.h"
20622
20623 #include <sys/types.h>
20624 #include <sys/socket.h>
20625
20626 int main() {
20627
20628 socklen_t len;
20629 getsockname(0, 0, &len);
20630
20631 ; return 0; }
20632 EOF
20633 if { (eval echo configure:20634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20634 rm -rf conftest*
20635 wx_cv_type_getsockname3=socklen_t
20636 else
20637 echo "configure: failed program was:" >&5
20638 cat conftest.$ac_ext >&5
20639 rm -rf conftest*
20640 cat > conftest.$ac_ext <<EOF
20641 #line 20642 "configure"
20642 #include "confdefs.h"
20643
20644 #include <sys/types.h>
20645 #include <sys/socket.h>
20646
20647 int main() {
20648
20649 size_t len;
20650 getsockname(0, 0, &len);
20651
20652 ; return 0; }
20653 EOF
20654 if { (eval echo configure:20655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20655 rm -rf conftest*
20656 wx_cv_type_getsockname3=size_t
20657 else
20658 echo "configure: failed program was:" >&5
20659 cat conftest.$ac_ext >&5
20660 rm -rf conftest*
20661 cat > conftest.$ac_ext <<EOF
20662 #line 20663 "configure"
20663 #include "confdefs.h"
20664
20665 #include <sys/types.h>
20666 #include <sys/socket.h>
20667
20668 int main() {
20669
20670 int len;
20671 getsockname(0, 0, &len);
20672
20673 ; return 0; }
20674 EOF
20675 if { (eval echo configure:20676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20676 rm -rf conftest*
20677 wx_cv_type_getsockname3=int
20678 else
20679 echo "configure: failed program was:" >&5
20680 cat conftest.$ac_ext >&5
20681 rm -rf conftest*
20682 wx_cv_type_getsockname3=unknown
20683
20684 fi
20685 rm -f conftest*
20686
20687 fi
20688 rm -f conftest*
20689
20690 fi
20691 rm -f conftest*
20692
20693 ac_ext=c
20694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20695 ac_cpp='$CPP $CPPFLAGS'
20696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20698 cross_compiling=$ac_cv_prog_cc_cross
20699
20700
20701 fi
20702
20703 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20704
20705 if test "$wx_cv_type_getsockname3" = "unknown"; then
20706 wxUSE_SOCKETS=no
20707 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20708 else
20709 cat >> confdefs.h <<EOF
20710 #define SOCKLEN_T $wx_cv_type_getsockname3
20711 EOF
20712
20713 fi
20714 fi
20715 fi
20716
20717 if test "$wxUSE_SOCKETS" = "yes" ; then
20718 cat >> confdefs.h <<\EOF
20719 #define wxUSE_SOCKETS 1
20720 EOF
20721
20722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20723 fi
20724
20725
20726 if test "$wxUSE_GUI" = "yes"; then
20727
20728 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20729 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20730 wxUSE_JOYSTICK=no
20731 fi
20732 if test "$TOOLKIT" = "MOTIF"; then
20733 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20734 wxUSE_JOYSTICK=no
20735 fi
20736 if test "$TOOLKIT" = "X11"; then
20737 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20738 wxUSE_JOYSTICK=no
20739 fi
20740
20741 if test "$TOOLKIT" != "MSW"; then
20742 if test "$wxUSE_JOYSTICK" = "yes"; then
20743 for ac_hdr in linux/joystick.h
20744 do
20745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20747 echo "configure:20748: checking for $ac_hdr" >&5
20748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20749 echo $ac_n "(cached) $ac_c" 1>&6
20750 else
20751 cat > conftest.$ac_ext <<EOF
20752 #line 20753 "configure"
20753 #include "confdefs.h"
20754 #include <$ac_hdr>
20755 EOF
20756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20757 { (eval echo configure:20758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20759 if test -z "$ac_err"; then
20760 rm -rf conftest*
20761 eval "ac_cv_header_$ac_safe=yes"
20762 else
20763 echo "$ac_err" >&5
20764 echo "configure: failed program was:" >&5
20765 cat conftest.$ac_ext >&5
20766 rm -rf conftest*
20767 eval "ac_cv_header_$ac_safe=no"
20768 fi
20769 rm -f conftest*
20770 fi
20771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20772 echo "$ac_t""yes" 1>&6
20773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20774 cat >> confdefs.h <<EOF
20775 #define $ac_tr_hdr 1
20776 EOF
20777
20778 else
20779 echo "$ac_t""no" 1>&6
20780 fi
20781 done
20782
20783 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20784 wxUSE_JOYSTICK=no
20785 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20786 fi
20787 fi
20788 fi
20789
20790 if test "$wxUSE_JOYSTICK" = "yes"; then
20791 cat >> confdefs.h <<\EOF
20792 #define wxUSE_JOYSTICK 1
20793 EOF
20794
20795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20796 fi
20797 fi
20798
20799
20800 if test "$TOOLKIT" != "MSW"; then
20801
20802 HAVE_DL_FUNCS=0
20803 HAVE_SHL_FUNCS=0
20804 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20805 if test "$USE_DARWIN" = 1; then
20806 HAVE_DL_FUNCS=1
20807 else
20808 for ac_func in dlopen
20809 do
20810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20811 echo "configure:20812: checking for $ac_func" >&5
20812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20813 echo $ac_n "(cached) $ac_c" 1>&6
20814 else
20815 cat > conftest.$ac_ext <<EOF
20816 #line 20817 "configure"
20817 #include "confdefs.h"
20818 /* System header to define __stub macros and hopefully few prototypes,
20819 which can conflict with char $ac_func(); below. */
20820 #include <assert.h>
20821 /* Override any gcc2 internal prototype to avoid an error. */
20822 /* We use char because int might match the return type of a gcc2
20823 builtin and then its argument prototype would still apply. */
20824 char $ac_func();
20825
20826 int main() {
20827
20828 /* The GNU C library defines this for functions which it implements
20829 to always fail with ENOSYS. Some functions are actually named
20830 something starting with __ and the normal name is an alias. */
20831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20832 choke me
20833 #else
20834 $ac_func();
20835 #endif
20836
20837 ; return 0; }
20838 EOF
20839 if { (eval echo configure:20840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20840 rm -rf conftest*
20841 eval "ac_cv_func_$ac_func=yes"
20842 else
20843 echo "configure: failed program was:" >&5
20844 cat conftest.$ac_ext >&5
20845 rm -rf conftest*
20846 eval "ac_cv_func_$ac_func=no"
20847 fi
20848 rm -f conftest*
20849 fi
20850
20851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20852 echo "$ac_t""yes" 1>&6
20853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20854 cat >> confdefs.h <<EOF
20855 #define $ac_tr_func 1
20856 EOF
20857
20858 cat >> confdefs.h <<\EOF
20859 #define HAVE_DLOPEN 1
20860 EOF
20861
20862 HAVE_DL_FUNCS=1
20863
20864 else
20865 echo "$ac_t""no" 1>&6
20866 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20867 echo "configure:20868: checking for dlopen in -ldl" >&5
20868 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20870 echo $ac_n "(cached) $ac_c" 1>&6
20871 else
20872 ac_save_LIBS="$LIBS"
20873 LIBS="-ldl $LIBS"
20874 cat > conftest.$ac_ext <<EOF
20875 #line 20876 "configure"
20876 #include "confdefs.h"
20877 /* Override any gcc2 internal prototype to avoid an error. */
20878 /* We use char because int might match the return type of a gcc2
20879 builtin and then its argument prototype would still apply. */
20880 char dlopen();
20881
20882 int main() {
20883 dlopen()
20884 ; return 0; }
20885 EOF
20886 if { (eval echo configure:20887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20887 rm -rf conftest*
20888 eval "ac_cv_lib_$ac_lib_var=yes"
20889 else
20890 echo "configure: failed program was:" >&5
20891 cat conftest.$ac_ext >&5
20892 rm -rf conftest*
20893 eval "ac_cv_lib_$ac_lib_var=no"
20894 fi
20895 rm -f conftest*
20896 LIBS="$ac_save_LIBS"
20897
20898 fi
20899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20900 echo "$ac_t""yes" 1>&6
20901
20902 cat >> confdefs.h <<\EOF
20903 #define HAVE_DLOPEN 1
20904 EOF
20905
20906 HAVE_DL_FUNCS=1
20907 DL_LINK=" -ldl$DL_LINK"
20908
20909 else
20910 echo "$ac_t""no" 1>&6
20911
20912 for ac_func in shl_load
20913 do
20914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20915 echo "configure:20916: checking for $ac_func" >&5
20916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20917 echo $ac_n "(cached) $ac_c" 1>&6
20918 else
20919 cat > conftest.$ac_ext <<EOF
20920 #line 20921 "configure"
20921 #include "confdefs.h"
20922 /* System header to define __stub macros and hopefully few prototypes,
20923 which can conflict with char $ac_func(); below. */
20924 #include <assert.h>
20925 /* Override any gcc2 internal prototype to avoid an error. */
20926 /* We use char because int might match the return type of a gcc2
20927 builtin and then its argument prototype would still apply. */
20928 char $ac_func();
20929
20930 int main() {
20931
20932 /* The GNU C library defines this for functions which it implements
20933 to always fail with ENOSYS. Some functions are actually named
20934 something starting with __ and the normal name is an alias. */
20935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20936 choke me
20937 #else
20938 $ac_func();
20939 #endif
20940
20941 ; return 0; }
20942 EOF
20943 if { (eval echo configure:20944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20944 rm -rf conftest*
20945 eval "ac_cv_func_$ac_func=yes"
20946 else
20947 echo "configure: failed program was:" >&5
20948 cat conftest.$ac_ext >&5
20949 rm -rf conftest*
20950 eval "ac_cv_func_$ac_func=no"
20951 fi
20952 rm -f conftest*
20953 fi
20954
20955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20956 echo "$ac_t""yes" 1>&6
20957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20958 cat >> confdefs.h <<EOF
20959 #define $ac_tr_func 1
20960 EOF
20961
20962 cat >> confdefs.h <<\EOF
20963 #define HAVE_SHL_LOAD 1
20964 EOF
20965
20966 HAVE_SHL_FUNCS=1
20967
20968 else
20969 echo "$ac_t""no" 1>&6
20970 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20971 echo "configure:20972: checking for dld in -lshl_load" >&5
20972 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20974 echo $ac_n "(cached) $ac_c" 1>&6
20975 else
20976 ac_save_LIBS="$LIBS"
20977 LIBS="-lshl_load $LIBS"
20978 cat > conftest.$ac_ext <<EOF
20979 #line 20980 "configure"
20980 #include "confdefs.h"
20981 /* Override any gcc2 internal prototype to avoid an error. */
20982 /* We use char because int might match the return type of a gcc2
20983 builtin and then its argument prototype would still apply. */
20984 char dld();
20985
20986 int main() {
20987 dld()
20988 ; return 0; }
20989 EOF
20990 if { (eval echo configure:20991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20991 rm -rf conftest*
20992 eval "ac_cv_lib_$ac_lib_var=yes"
20993 else
20994 echo "configure: failed program was:" >&5
20995 cat conftest.$ac_ext >&5
20996 rm -rf conftest*
20997 eval "ac_cv_lib_$ac_lib_var=no"
20998 fi
20999 rm -f conftest*
21000 LIBS="$ac_save_LIBS"
21001
21002 fi
21003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21004 echo "$ac_t""yes" 1>&6
21005
21006 HAVE_SHL_FUNCS=1
21007 DL_LINK=" -ldld$DL_LINK"
21008
21009 else
21010 echo "$ac_t""no" 1>&6
21011 fi
21012
21013
21014 fi
21015 done
21016
21017
21018 fi
21019
21020
21021 fi
21022 done
21023
21024
21025 if test "$HAVE_DL_FUNCS" = 1; then
21026 for ac_func in dlerror
21027 do
21028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21029 echo "configure:21030: checking for $ac_func" >&5
21030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21031 echo $ac_n "(cached) $ac_c" 1>&6
21032 else
21033 cat > conftest.$ac_ext <<EOF
21034 #line 21035 "configure"
21035 #include "confdefs.h"
21036 /* System header to define __stub macros and hopefully few prototypes,
21037 which can conflict with char $ac_func(); below. */
21038 #include <assert.h>
21039 /* Override any gcc2 internal prototype to avoid an error. */
21040 /* We use char because int might match the return type of a gcc2
21041 builtin and then its argument prototype would still apply. */
21042 char $ac_func();
21043
21044 int main() {
21045
21046 /* The GNU C library defines this for functions which it implements
21047 to always fail with ENOSYS. Some functions are actually named
21048 something starting with __ and the normal name is an alias. */
21049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21050 choke me
21051 #else
21052 $ac_func();
21053 #endif
21054
21055 ; return 0; }
21056 EOF
21057 if { (eval echo configure:21058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21058 rm -rf conftest*
21059 eval "ac_cv_func_$ac_func=yes"
21060 else
21061 echo "configure: failed program was:" >&5
21062 cat conftest.$ac_ext >&5
21063 rm -rf conftest*
21064 eval "ac_cv_func_$ac_func=no"
21065 fi
21066 rm -f conftest*
21067 fi
21068
21069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21070 echo "$ac_t""yes" 1>&6
21071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21072 cat >> confdefs.h <<EOF
21073 #define $ac_tr_func 1
21074 EOF
21075 cat >> confdefs.h <<\EOF
21076 #define HAVE_DLERROR 1
21077 EOF
21078
21079 else
21080 echo "$ac_t""no" 1>&6
21081 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
21082 echo "configure:21083: checking for dlerror in -ldl" >&5
21083 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21085 echo $ac_n "(cached) $ac_c" 1>&6
21086 else
21087 ac_save_LIBS="$LIBS"
21088 LIBS="-ldl $LIBS"
21089 cat > conftest.$ac_ext <<EOF
21090 #line 21091 "configure"
21091 #include "confdefs.h"
21092 /* Override any gcc2 internal prototype to avoid an error. */
21093 /* We use char because int might match the return type of a gcc2
21094 builtin and then its argument prototype would still apply. */
21095 char dlerror();
21096
21097 int main() {
21098 dlerror()
21099 ; return 0; }
21100 EOF
21101 if { (eval echo configure:21102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21102 rm -rf conftest*
21103 eval "ac_cv_lib_$ac_lib_var=yes"
21104 else
21105 echo "configure: failed program was:" >&5
21106 cat conftest.$ac_ext >&5
21107 rm -rf conftest*
21108 eval "ac_cv_lib_$ac_lib_var=no"
21109 fi
21110 rm -f conftest*
21111 LIBS="$ac_save_LIBS"
21112
21113 fi
21114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21115 echo "$ac_t""yes" 1>&6
21116 cat >> confdefs.h <<\EOF
21117 #define HAVE_DLERROR 1
21118 EOF
21119
21120 else
21121 echo "$ac_t""no" 1>&6
21122 fi
21123
21124 fi
21125 done
21126
21127 fi
21128 fi
21129
21130 if test "$HAVE_DL_FUNCS" = 0; then
21131 if test "$HAVE_SHL_FUNCS" = 0; then
21132 if test "$USE_UNIX" = 1; then
21133 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
21134 wxUSE_DYNAMIC_LOADER=no
21135 wxUSE_DYNLIB_CLASS=no
21136 else
21137 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
21138 fi
21139 fi
21140 fi
21141 fi
21142 fi
21143
21144 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
21145 cat >> confdefs.h <<\EOF
21146 #define wxUSE_DYNAMIC_LOADER 1
21147 EOF
21148
21149 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
21150 cat >> confdefs.h <<\EOF
21151 #define wxUSE_DYNLIB_CLASS 1
21152 EOF
21153
21154 fi
21155
21156
21157 if test "$wxUSE_FONTMAP" = "yes" ; then
21158 cat >> confdefs.h <<\EOF
21159 #define wxUSE_FONTMAP 1
21160 EOF
21161
21162 fi
21163
21164 if test "$wxUSE_UNICODE" = "yes" ; then
21165 cat >> confdefs.h <<\EOF
21166 #define wxUSE_UNICODE 1
21167 EOF
21168
21169
21170 if test "$wxUSE_MSW" != 1; then
21171 wxUSE_UNICODE_MSLU=no
21172 fi
21173
21174 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
21175 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21176 echo "configure:21177: checking for main in -lunicows" >&5
21177 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21179 echo $ac_n "(cached) $ac_c" 1>&6
21180 else
21181 ac_save_LIBS="$LIBS"
21182 LIBS="-lunicows $LIBS"
21183 cat > conftest.$ac_ext <<EOF
21184 #line 21185 "configure"
21185 #include "confdefs.h"
21186
21187 int main() {
21188 main()
21189 ; return 0; }
21190 EOF
21191 if { (eval echo configure:21192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21192 rm -rf conftest*
21193 eval "ac_cv_lib_$ac_lib_var=yes"
21194 else
21195 echo "configure: failed program was:" >&5
21196 cat conftest.$ac_ext >&5
21197 rm -rf conftest*
21198 eval "ac_cv_lib_$ac_lib_var=no"
21199 fi
21200 rm -f conftest*
21201 LIBS="$ac_save_LIBS"
21202
21203 fi
21204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21205 echo "$ac_t""yes" 1>&6
21206
21207 cat >> confdefs.h <<\EOF
21208 #define wxUSE_UNICODE_MSLU 1
21209 EOF
21210
21211
21212 else
21213 echo "$ac_t""no" 1>&6
21214
21215 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21216 Applications will only run on Windows NT/2000/XP!" 1>&2
21217 wxUSE_UNICODE_MSLU=no
21218
21219 fi
21220
21221 fi
21222 fi
21223
21224 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21225 cat >> confdefs.h <<\EOF
21226 #define wxUSE_EXPERIMENTAL_PRINTF 1
21227 EOF
21228
21229 fi
21230
21231
21232 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21233 cat >> confdefs.h <<\EOF
21234 #define wxUSE_POSTSCRIPT 1
21235 EOF
21236
21237 fi
21238
21239 cat >> confdefs.h <<\EOF
21240 #define wxUSE_AFM_FOR_POSTSCRIPT 1
21241 EOF
21242
21243
21244 cat >> confdefs.h <<\EOF
21245 #define wxUSE_NORMALIZED_PS_FONTS 1
21246 EOF
21247
21248
21249
21250 if test "$wxUSE_CONSTRAINTS" = "yes"; then
21251 cat >> confdefs.h <<\EOF
21252 #define wxUSE_CONSTRAINTS 1
21253 EOF
21254
21255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21256 fi
21257
21258 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21259
21260
21261 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21262 cat >> confdefs.h <<\EOF
21263 #define wxUSE_MDI_ARCHITECTURE 1
21264 EOF
21265
21266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21267 fi
21268 fi
21269
21270 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21271 cat >> confdefs.h <<\EOF
21272 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
21273 EOF
21274
21275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21276 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21278 fi
21279 fi
21280
21281 if test "$wxUSE_HELP" = "yes"; then
21282 cat >> confdefs.h <<\EOF
21283 #define wxUSE_HELP 1
21284 EOF
21285
21286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21287
21288 if test "$wxUSE_MSW" = 1; then
21289 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21290 cat >> confdefs.h <<\EOF
21291 #define wxUSE_MS_HTML_HELP 1
21292 EOF
21293
21294 fi
21295 fi
21296
21297 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21298 if test "$wxUSE_HTML" = "yes"; then
21299 cat >> confdefs.h <<\EOF
21300 #define wxUSE_WXHTML_HELP 1
21301 EOF
21302
21303 else
21304 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21305 wxUSE_WXHTML_HELP=no
21306 fi
21307 fi
21308 fi
21309
21310 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21311 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21312 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21313 else
21314 cat >> confdefs.h <<\EOF
21315 #define wxUSE_PRINTING_ARCHITECTURE 1
21316 EOF
21317
21318 fi
21319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21320 fi
21321
21322
21323
21324 if test "$wxUSE_X_RESOURCES" = "yes"; then
21325 cat >> confdefs.h <<\EOF
21326 #define wxUSE_X_RESOURCES 1
21327 EOF
21328
21329 fi
21330
21331
21332 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21333 -o "$wxUSE_CLIPBOARD" = "yes" \
21334 -o "$wxUSE_OLE" = "yes" \
21335 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21336 for ac_hdr in ole2.h
21337 do
21338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21340 echo "configure:21341: checking for $ac_hdr" >&5
21341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21342 echo $ac_n "(cached) $ac_c" 1>&6
21343 else
21344 cat > conftest.$ac_ext <<EOF
21345 #line 21346 "configure"
21346 #include "confdefs.h"
21347 #include <$ac_hdr>
21348 EOF
21349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21350 { (eval echo configure:21351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21352 if test -z "$ac_err"; then
21353 rm -rf conftest*
21354 eval "ac_cv_header_$ac_safe=yes"
21355 else
21356 echo "$ac_err" >&5
21357 echo "configure: failed program was:" >&5
21358 cat conftest.$ac_ext >&5
21359 rm -rf conftest*
21360 eval "ac_cv_header_$ac_safe=no"
21361 fi
21362 rm -f conftest*
21363 fi
21364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21365 echo "$ac_t""yes" 1>&6
21366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21367 cat >> confdefs.h <<EOF
21368 #define $ac_tr_hdr 1
21369 EOF
21370
21371 else
21372 echo "$ac_t""no" 1>&6
21373 fi
21374 done
21375
21376
21377 if test "$ac_cv_header_ole2_h" = "yes" ; then
21378 if test "$GCC" = yes ; then
21379
21380 ac_ext=C
21381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21382 ac_cpp='$CXXCPP $CPPFLAGS'
21383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21385 cross_compiling=$ac_cv_prog_cxx_cross
21386
21387
21388 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21389 echo "configure:21390: checking if g++ requires -fvtable-thunks" >&5
21390 cat > conftest.$ac_ext <<EOF
21391 #line 21392 "configure"
21392 #include "confdefs.h"
21393 #include <windows.h>
21394 #include <ole2.h>
21395 int main() {
21396
21397 ; return 0; }
21398 EOF
21399 if { (eval echo configure:21400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21400 rm -rf conftest*
21401 echo "$ac_t""no" 1>&6
21402 else
21403 echo "configure: failed program was:" >&5
21404 cat conftest.$ac_ext >&5
21405 rm -rf conftest*
21406 echo "$ac_t""yes" 1>&6
21407 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21408 fi
21409 rm -f conftest*
21410 ac_ext=c
21411 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21412 ac_cpp='$CPP $CPPFLAGS'
21413 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21414 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21415 cross_compiling=$ac_cv_prog_cc_cross
21416
21417 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21418 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21419 cat >> confdefs.h <<\EOF
21420 #define wxUSE_OLE 1
21421 EOF
21422
21423
21424 fi
21425
21426 cat >> confdefs.h <<\EOF
21427 #define wxUSE_DATAOBJ 1
21428 EOF
21429
21430 else
21431 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21432
21433 wxUSE_CLIPBOARD=no
21434 wxUSE_DRAG_AND_DROP=no
21435 wxUSE_DATAOBJ=no
21436 wxUSE_OLE=no
21437 fi
21438
21439 if test "$wxUSE_METAFILE" = "yes"; then
21440 cat >> confdefs.h <<\EOF
21441 #define wxUSE_METAFILE 1
21442 EOF
21443
21444
21445 cat >> confdefs.h <<\EOF
21446 #define wxUSE_ENH_METAFILE 1
21447 EOF
21448
21449 fi
21450 fi
21451
21452 if test "$wxUSE_IPC" = "yes"; then
21453 if test "$wxUSE_SOCKETS" != "yes"; then
21454 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21455 fi
21456
21457 cat >> confdefs.h <<\EOF
21458 #define wxUSE_IPC 1
21459 EOF
21460
21461 fi
21462
21463 if test "$wxUSE_CLIPBOARD" = "yes"; then
21464 if test "$wxUSE_MGL" = 1; then
21465 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21466 wxUSE_CLIPBOARD=no
21467 fi
21468
21469 if test "$wxUSE_CLIPBOARD" = "yes"; then
21470 cat >> confdefs.h <<\EOF
21471 #define wxUSE_CLIPBOARD 1
21472 EOF
21473
21474
21475 cat >> confdefs.h <<\EOF
21476 #define wxUSE_DATAOBJ 1
21477 EOF
21478
21479 fi
21480 fi
21481
21482 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21483 if test "$wxUSE_GTK" = 1; then
21484 if test "$WXGTK12" != 1; then
21485 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21486 wxUSE_DRAG_AND_DROP=no
21487 fi
21488 fi
21489
21490 if test "$wxUSE_MOTIF" = 1; then
21491 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21492 wxUSE_DRAG_AND_DROP=no
21493 fi
21494
21495 if test "$wxUSE_X11" = 1; then
21496 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21497 wxUSE_DRAG_AND_DROP=no
21498 fi
21499
21500 if test "$wxUSE_MGL" = 1; then
21501 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21502 wxUSE_DRAG_AND_DROP=no
21503 fi
21504
21505 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21506 cat >> confdefs.h <<\EOF
21507 #define wxUSE_DRAG_AND_DROP 1
21508 EOF
21509
21510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21511 fi
21512
21513 fi
21514
21515 if test "$wxUSE_SPLINES" = "yes" ; then
21516 cat >> confdefs.h <<\EOF
21517 #define wxUSE_SPLINES 1
21518 EOF
21519
21520 fi
21521
21522
21523 USES_CONTROLS=0
21524 if test "$wxUSE_CONTROLS" = "yes"; then
21525 USES_CONTROLS=1
21526 fi
21527
21528 if test "$wxUSE_ACCEL" = "yes"; then
21529 cat >> confdefs.h <<\EOF
21530 #define wxUSE_ACCEL 1
21531 EOF
21532
21533 USES_CONTROLS=1
21534 fi
21535
21536 if test "$wxUSE_BUTTON" = "yes"; then
21537 cat >> confdefs.h <<\EOF
21538 #define wxUSE_BUTTON 1
21539 EOF
21540
21541 USES_CONTROLS=1
21542 fi
21543
21544 if test "$wxUSE_BMPBUTTON" = "yes"; then
21545 cat >> confdefs.h <<\EOF
21546 #define wxUSE_BMPBUTTON 1
21547 EOF
21548
21549 USES_CONTROLS=1
21550 fi
21551
21552 if test "$wxUSE_CALCTRL" = "yes"; then
21553 cat >> confdefs.h <<\EOF
21554 #define wxUSE_CALENDARCTRL 1
21555 EOF
21556
21557 USES_CONTROLS=1
21558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21559 fi
21560
21561 if test "$wxUSE_CARET" = "yes"; then
21562 cat >> confdefs.h <<\EOF
21563 #define wxUSE_CARET 1
21564 EOF
21565
21566 USES_CONTROLS=1
21567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21568 fi
21569
21570 if test "$wxUSE_COMBOBOX" = "yes"; then
21571 cat >> confdefs.h <<\EOF
21572 #define wxUSE_COMBOBOX 1
21573 EOF
21574
21575 USES_CONTROLS=1
21576 fi
21577
21578 if test "$wxUSE_CHOICE" = "yes"; then
21579 cat >> confdefs.h <<\EOF
21580 #define wxUSE_CHOICE 1
21581 EOF
21582
21583 USES_CONTROLS=1
21584 fi
21585
21586 if test "$wxUSE_CHECKBOX" = "yes"; then
21587 cat >> confdefs.h <<\EOF
21588 #define wxUSE_CHECKBOX 1
21589 EOF
21590
21591 USES_CONTROLS=1
21592 fi
21593
21594 if test "$wxUSE_CHECKLST" = "yes"; then
21595 cat >> confdefs.h <<\EOF
21596 #define wxUSE_CHECKLISTBOX 1
21597 EOF
21598
21599 USES_CONTROLS=1
21600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21601 fi
21602
21603 if test "$wxUSE_DISPLAY" = "yes"; then
21604 cat >> confdefs.h <<\EOF
21605 #define wxUSE_DISPLAY 1
21606 EOF
21607
21608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21609 fi
21610
21611 if test "$wxUSE_GAUGE" = "yes"; then
21612 cat >> confdefs.h <<\EOF
21613 #define wxUSE_GAUGE 1
21614 EOF
21615
21616 USES_CONTROLS=1
21617 fi
21618
21619 if test "$wxUSE_GRID" = "yes"; then
21620 cat >> confdefs.h <<\EOF
21621 #define wxUSE_GRID 1
21622 EOF
21623
21624 USES_CONTROLS=1
21625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21626 fi
21627
21628 if test "$wxUSE_IMAGLIST" = "yes"; then
21629 cat >> confdefs.h <<\EOF
21630 #define wxUSE_IMAGLIST 1
21631 EOF
21632
21633 fi
21634
21635 if test "$wxUSE_LISTBOX" = "yes"; then
21636 cat >> confdefs.h <<\EOF
21637 #define wxUSE_LISTBOX 1
21638 EOF
21639
21640 USES_CONTROLS=1
21641 fi
21642
21643 if test "$wxUSE_LISTCTRL" = "yes"; then
21644 if test "$wxUSE_IMAGLIST" = "yes"; then
21645 cat >> confdefs.h <<\EOF
21646 #define wxUSE_LISTCTRL 1
21647 EOF
21648
21649 USES_CONTROLS=1
21650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21651 else
21652 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21653 fi
21654 fi
21655
21656 if test "$wxUSE_NOTEBOOK" = "yes"; then
21657 cat >> confdefs.h <<\EOF
21658 #define wxUSE_NOTEBOOK 1
21659 EOF
21660
21661 USES_CONTROLS=1
21662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21663 fi
21664
21665
21666 if test "$wxUSE_RADIOBOX" = "yes"; then
21667 cat >> confdefs.h <<\EOF
21668 #define wxUSE_RADIOBOX 1
21669 EOF
21670
21671 USES_CONTROLS=1
21672 fi
21673
21674 if test "$wxUSE_RADIOBTN" = "yes"; then
21675 cat >> confdefs.h <<\EOF
21676 #define wxUSE_RADIOBTN 1
21677 EOF
21678
21679 USES_CONTROLS=1
21680 fi
21681
21682 if test "$wxUSE_SASH" = "yes"; then
21683 cat >> confdefs.h <<\EOF
21684 #define wxUSE_SASH 1
21685 EOF
21686
21687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21688 fi
21689
21690 if test "$wxUSE_SCROLLBAR" = "yes"; then
21691 cat >> confdefs.h <<\EOF
21692 #define wxUSE_SCROLLBAR 1
21693 EOF
21694
21695 USES_CONTROLS=1
21696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21697 fi
21698
21699 if test "$wxUSE_SLIDER" = "yes"; then
21700 cat >> confdefs.h <<\EOF
21701 #define wxUSE_SLIDER 1
21702 EOF
21703
21704 USES_CONTROLS=1
21705 fi
21706
21707 if test "$wxUSE_SPINBTN" = "yes"; then
21708 cat >> confdefs.h <<\EOF
21709 #define wxUSE_SPINBTN 1
21710 EOF
21711
21712 USES_CONTROLS=1
21713 fi
21714
21715 if test "$wxUSE_SPINCTRL" = "yes"; then
21716 cat >> confdefs.h <<\EOF
21717 #define wxUSE_SPINCTRL 1
21718 EOF
21719
21720 USES_CONTROLS=1
21721 fi
21722
21723 if test "$wxUSE_SPLITTER" = "yes"; then
21724 cat >> confdefs.h <<\EOF
21725 #define wxUSE_SPLITTER 1
21726 EOF
21727
21728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21729 fi
21730
21731 if test "$wxUSE_STATBMP" = "yes"; then
21732 cat >> confdefs.h <<\EOF
21733 #define wxUSE_STATBMP 1
21734 EOF
21735
21736 USES_CONTROLS=1
21737 fi
21738
21739 if test "$wxUSE_STATBOX" = "yes"; then
21740 cat >> confdefs.h <<\EOF
21741 #define wxUSE_STATBOX 1
21742 EOF
21743
21744 USES_CONTROLS=1
21745 fi
21746
21747 if test "$wxUSE_STATTEXT" = "yes"; then
21748 cat >> confdefs.h <<\EOF
21749 #define wxUSE_STATTEXT 1
21750 EOF
21751
21752 USES_CONTROLS=1
21753 fi
21754
21755 if test "$wxUSE_STATLINE" = "yes"; then
21756 cat >> confdefs.h <<\EOF
21757 #define wxUSE_STATLINE 1
21758 EOF
21759
21760 USES_CONTROLS=1
21761 fi
21762
21763 if test "$wxUSE_STATUSBAR" = "yes"; then
21764 cat >> confdefs.h <<\EOF
21765 #define wxUSE_STATUSBAR 1
21766 EOF
21767
21768 USES_CONTROLS=1
21769
21770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21771 fi
21772
21773 if test "$wxUSE_TABDIALOG" = "yes"; then
21774 cat >> confdefs.h <<\EOF
21775 #define wxUSE_TAB_DIALOG 1
21776 EOF
21777
21778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21779 fi
21780
21781 if test "$wxUSE_TEXTCTRL" = "yes"; then
21782 cat >> confdefs.h <<\EOF
21783 #define wxUSE_TEXTCTRL 1
21784 EOF
21785
21786 USES_CONTROLS=1
21787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21788 fi
21789
21790 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21791 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21792 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21793 wxUSE_TOGGLEBTN=no
21794 fi
21795 if test "$wxUSE_UNIVERSAL" = "yes"; then
21796 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21797 wxUSE_TOGGLEBTN=no
21798 fi
21799
21800 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21801 cat >> confdefs.h <<\EOF
21802 #define wxUSE_TOGGLEBTN 1
21803 EOF
21804
21805 USES_CONTROLS=1
21806 fi
21807 fi
21808
21809 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21810 cat >> confdefs.h <<\EOF
21811 #define wxUSE_TOOLBAR_SIMPLE 1
21812 EOF
21813
21814 wxUSE_TOOLBAR="yes"
21815 USES_CONTROLS=1
21816 fi
21817
21818 if test "$wxUSE_TOOLBAR" = "yes"; then
21819 cat >> confdefs.h <<\EOF
21820 #define wxUSE_TOOLBAR 1
21821 EOF
21822
21823 USES_CONTROLS=1
21824
21825 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21826 wxUSE_TOOLBAR_NATIVE="yes"
21827 fi
21828
21829 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21830 cat >> confdefs.h <<\EOF
21831 #define wxUSE_TOOLBAR_NATIVE 1
21832 EOF
21833
21834 USES_CONTROLS=1
21835 fi
21836
21837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21838 fi
21839
21840 if test "$wxUSE_TOOLTIPS" = "yes"; then
21841 if test "$wxUSE_MOTIF" = 1; then
21842 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21843 else
21844 if test "$wxUSE_UNIVERSAL" = "yes"; then
21845 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21846 else
21847 cat >> confdefs.h <<\EOF
21848 #define wxUSE_TOOLTIPS 1
21849 EOF
21850
21851 fi
21852 fi
21853 fi
21854
21855 if test "$wxUSE_TREECTRL" = "yes"; then
21856 if test "$wxUSE_IMAGLIST" = "yes"; then
21857 cat >> confdefs.h <<\EOF
21858 #define wxUSE_TREECTRL 1
21859 EOF
21860
21861 USES_CONTROLS=1
21862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21863 else
21864 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21865 fi
21866 fi
21867
21868 if test "$wxUSE_POPUPWIN" = "yes"; then
21869 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21870 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21871 else
21872 if test "$wxUSE_MOTIF" = 1; then
21873 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21874 else
21875 if test "$wxUSE_PM" = 1; then
21876 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21877 else
21878 cat >> confdefs.h <<\EOF
21879 #define wxUSE_POPUPWIN 1
21880 EOF
21881
21882
21883 USES_CONTROLS=1
21884 fi
21885 fi
21886 fi
21887 fi
21888
21889 if test "$wxUSE_TIPWINDOW" = "yes"; then
21890 if test "$wxUSE_PM" = 1; then
21891 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21892 else
21893 cat >> confdefs.h <<\EOF
21894 #define wxUSE_TIPWINDOW 1
21895 EOF
21896
21897 fi
21898 fi
21899
21900 if test "$USES_CONTROLS" = 1; then
21901 cat >> confdefs.h <<\EOF
21902 #define wxUSE_CONTROLS 1
21903 EOF
21904
21905 fi
21906
21907
21908
21909 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21910 cat >> confdefs.h <<\EOF
21911 #define wxUSE_DRAGIMAGE 1
21912 EOF
21913
21914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21915 fi
21916
21917 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21918 cat >> confdefs.h <<\EOF
21919 #define wxUSE_ACCESSIBILITY 1
21920 EOF
21921
21922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21923 fi
21924
21925 if test "$wxUSE_MENUS" = "yes"; then
21926 cat >> confdefs.h <<\EOF
21927 #define wxUSE_MENUS 1
21928 EOF
21929
21930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21931 fi
21932
21933 if test "$wxUSE_METAFILE" = "yes"; then
21934 cat >> confdefs.h <<\EOF
21935 #define wxUSE_METAFILE 1
21936 EOF
21937
21938 fi
21939
21940 if test "$wxUSE_MIMETYPE" = "yes"; then
21941 cat >> confdefs.h <<\EOF
21942 #define wxUSE_MIMETYPE 1
21943 EOF
21944
21945 fi
21946
21947 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21948 cat >> confdefs.h <<\EOF
21949 #define wxUSE_SYSTEM_OPTIONS 1
21950 EOF
21951
21952 if test "$TOOLKIT" = "MSW"; then
21953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21954 fi
21955
21956 fi
21957
21958 if test "$wxUSE_PROTOCOL" = "yes"; then
21959 if test "$wxUSE_SOCKETS" != "yes"; then
21960 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21961 wxUSE_PROTOCOL=no
21962 fi
21963
21964 if test "$wxUSE_PROTOCOL" = "yes"; then
21965 cat >> confdefs.h <<\EOF
21966 #define wxUSE_PROTOCOL 1
21967 EOF
21968
21969
21970 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21971 cat >> confdefs.h <<\EOF
21972 #define wxUSE_PROTOCOL_HTTP 1
21973 EOF
21974
21975 fi
21976 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21977 cat >> confdefs.h <<\EOF
21978 #define wxUSE_PROTOCOL_FTP 1
21979 EOF
21980
21981 fi
21982 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21983 cat >> confdefs.h <<\EOF
21984 #define wxUSE_PROTOCOL_FILE 1
21985 EOF
21986
21987 fi
21988 fi
21989 fi
21990
21991 if test "$wxUSE_URL" = "yes"; then
21992 if test "$wxUSE_PROTOCOL" != "yes"; then
21993 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21994 wxUSE_URL=no
21995 fi
21996 if test "$wxUSE_URL" = "yes"; then
21997 cat >> confdefs.h <<\EOF
21998 #define wxUSE_URL 1
21999 EOF
22000
22001 fi
22002 fi
22003
22004 if test "$wxUSE_MINIFRAME" = "yes"; then
22005 cat >> confdefs.h <<\EOF
22006 #define wxUSE_MINIFRAME 1
22007 EOF
22008
22009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
22010 fi
22011
22012 if test "$wxUSE_HTML" = "yes"; then
22013 cat >> confdefs.h <<\EOF
22014 #define wxUSE_HTML 1
22015 EOF
22016
22017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
22018 fi
22019
22020 if test "$wxUSE_VALIDATORS" = "yes"; then
22021 cat >> confdefs.h <<\EOF
22022 #define wxUSE_VALIDATORS 1
22023 EOF
22024
22025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22026 fi
22027
22028 if test "$wxUSE_PALETTE" = "yes" ; then
22029 cat >> confdefs.h <<\EOF
22030 #define wxUSE_PALETTE 1
22031 EOF
22032
22033 fi
22034
22035 if test "$wxUSE_IMAGE" = "yes" ; then
22036 cat >> confdefs.h <<\EOF
22037 #define wxUSE_IMAGE 1
22038 EOF
22039
22040 fi
22041
22042 if test "$wxUSE_GIF" = "yes" ; then
22043 cat >> confdefs.h <<\EOF
22044 #define wxUSE_GIF 1
22045 EOF
22046
22047 fi
22048
22049 if test "$wxUSE_PCX" = "yes" ; then
22050 cat >> confdefs.h <<\EOF
22051 #define wxUSE_PCX 1
22052 EOF
22053
22054 fi
22055
22056 if test "$wxUSE_IFF" = "yes" ; then
22057 cat >> confdefs.h <<\EOF
22058 #define wxUSE_IFF 1
22059 EOF
22060
22061 fi
22062
22063 if test "$wxUSE_PNM" = "yes" ; then
22064 cat >> confdefs.h <<\EOF
22065 #define wxUSE_PNM 1
22066 EOF
22067
22068 fi
22069
22070 if test "$wxUSE_XPM" = "yes" ; then
22071 cat >> confdefs.h <<\EOF
22072 #define wxUSE_XPM 1
22073 EOF
22074
22075 fi
22076
22077 if test "$wxUSE_ICO_CUR" = "yes" ; then
22078 cat >> confdefs.h <<\EOF
22079 #define wxUSE_ICO_CUR 1
22080 EOF
22081
22082 fi
22083
22084 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22085 LIBS=" -lunicows $LIBS"
22086 fi
22087
22088
22089 if test "$wxUSE_CHOICEDLG" = "yes"; then
22090 cat >> confdefs.h <<\EOF
22091 #define wxUSE_CHOICEDLG 1
22092 EOF
22093
22094 fi
22095
22096 if test "$wxUSE_COLOURDLG" = "yes"; then
22097 cat >> confdefs.h <<\EOF
22098 #define wxUSE_COLOURDLG 1
22099 EOF
22100
22101 fi
22102
22103 if test "$wxUSE_FILEDLG" = "yes"; then
22104 cat >> confdefs.h <<\EOF
22105 #define wxUSE_FILEDLG 1
22106 EOF
22107
22108 fi
22109
22110 if test "$wxUSE_FINDREPLDLG" = "yes"; then
22111 cat >> confdefs.h <<\EOF
22112 #define wxUSE_FINDREPLDLG 1
22113 EOF
22114
22115 fi
22116
22117 if test "$wxUSE_FONTDLG" = "yes"; then
22118 cat >> confdefs.h <<\EOF
22119 #define wxUSE_FONTDLG 1
22120 EOF
22121
22122 fi
22123
22124 if test "$wxUSE_DIRDLG" = "yes"; then
22125 if test "$wxUSE_TREECTRL" != "yes"; then
22126 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
22127 else
22128 cat >> confdefs.h <<\EOF
22129 #define wxUSE_DIRDLG 1
22130 EOF
22131
22132 fi
22133 fi
22134
22135 if test "$wxUSE_MSGDLG" = "yes"; then
22136 cat >> confdefs.h <<\EOF
22137 #define wxUSE_MSGDLG 1
22138 EOF
22139
22140 fi
22141
22142 if test "$wxUSE_NUMBERDLG" = "yes"; then
22143 cat >> confdefs.h <<\EOF
22144 #define wxUSE_NUMBERDLG 1
22145 EOF
22146
22147 fi
22148
22149 if test "$wxUSE_PROGRESSDLG" = "yes"; then
22150 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22151 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22152 else
22153 cat >> confdefs.h <<\EOF
22154 #define wxUSE_PROGRESSDLG 1
22155 EOF
22156
22157 fi
22158 fi
22159
22160 if test "$wxUSE_SPLASH" = "yes"; then
22161 cat >> confdefs.h <<\EOF
22162 #define wxUSE_SPLASH 1
22163 EOF
22164
22165 fi
22166
22167 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22168 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22169 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22170 else
22171 cat >> confdefs.h <<\EOF
22172 #define wxUSE_STARTUP_TIPS 1
22173 EOF
22174
22175 fi
22176 fi
22177
22178 if test "$wxUSE_TEXTDLG" = "yes"; then
22179 cat >> confdefs.h <<\EOF
22180 #define wxUSE_TEXTDLG 1
22181 EOF
22182
22183 fi
22184
22185 if test "$wxUSE_WIZARDDLG" = "yes"; then
22186 cat >> confdefs.h <<\EOF
22187 #define wxUSE_WIZARDDLG 1
22188 EOF
22189
22190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22191 fi
22192
22193
22194 if test "$cross_compiling" = "yes"; then
22195 OSINFO="\"$host\""
22196 else
22197 OSINFO=`uname -s -r -m`
22198 OSINFO="\"$OSINFO\""
22199 fi
22200
22201 cat >> confdefs.h <<EOF
22202 #define WXWIN_OS_DESCRIPTION $OSINFO
22203 EOF
22204
22205
22206
22207 if test "x$prefix" != "xNONE"; then
22208 wxPREFIX=$prefix
22209 else
22210 wxPREFIX=$ac_default_prefix
22211 fi
22212
22213 cat >> confdefs.h <<EOF
22214 #define wxINSTALL_PREFIX "$wxPREFIX"
22215 EOF
22216
22217
22218 top_builddir=`pwd`
22219
22220
22221
22222
22223 if test "$wxUSE_MAC" = 1 ; then
22224 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22225 fi
22226 if test "$wxUSE_COCOA" = 1 ; then
22227 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22228 fi
22229
22230
22231 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22232
22233 have_cos=0
22234 have_floor=0
22235 for ac_func in cos
22236 do
22237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22238 echo "configure:22239: checking for $ac_func" >&5
22239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22240 echo $ac_n "(cached) $ac_c" 1>&6
22241 else
22242 cat > conftest.$ac_ext <<EOF
22243 #line 22244 "configure"
22244 #include "confdefs.h"
22245 /* System header to define __stub macros and hopefully few prototypes,
22246 which can conflict with char $ac_func(); below. */
22247 #include <assert.h>
22248 /* Override any gcc2 internal prototype to avoid an error. */
22249 /* We use char because int might match the return type of a gcc2
22250 builtin and then its argument prototype would still apply. */
22251 char $ac_func();
22252
22253 int main() {
22254
22255 /* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22259 choke me
22260 #else
22261 $ac_func();
22262 #endif
22263
22264 ; return 0; }
22265 EOF
22266 if { (eval echo configure:22267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22267 rm -rf conftest*
22268 eval "ac_cv_func_$ac_func=yes"
22269 else
22270 echo "configure: failed program was:" >&5
22271 cat conftest.$ac_ext >&5
22272 rm -rf conftest*
22273 eval "ac_cv_func_$ac_func=no"
22274 fi
22275 rm -f conftest*
22276 fi
22277
22278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22279 echo "$ac_t""yes" 1>&6
22280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22281 cat >> confdefs.h <<EOF
22282 #define $ac_tr_func 1
22283 EOF
22284 have_cos=1
22285 else
22286 echo "$ac_t""no" 1>&6
22287 fi
22288 done
22289
22290 for ac_func in floor
22291 do
22292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22293 echo "configure:22294: checking for $ac_func" >&5
22294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22295 echo $ac_n "(cached) $ac_c" 1>&6
22296 else
22297 cat > conftest.$ac_ext <<EOF
22298 #line 22299 "configure"
22299 #include "confdefs.h"
22300 /* System header to define __stub macros and hopefully few prototypes,
22301 which can conflict with char $ac_func(); below. */
22302 #include <assert.h>
22303 /* Override any gcc2 internal prototype to avoid an error. */
22304 /* We use char because int might match the return type of a gcc2
22305 builtin and then its argument prototype would still apply. */
22306 char $ac_func();
22307
22308 int main() {
22309
22310 /* The GNU C library defines this for functions which it implements
22311 to always fail with ENOSYS. Some functions are actually named
22312 something starting with __ and the normal name is an alias. */
22313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22314 choke me
22315 #else
22316 $ac_func();
22317 #endif
22318
22319 ; return 0; }
22320 EOF
22321 if { (eval echo configure:22322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22322 rm -rf conftest*
22323 eval "ac_cv_func_$ac_func=yes"
22324 else
22325 echo "configure: failed program was:" >&5
22326 cat conftest.$ac_ext >&5
22327 rm -rf conftest*
22328 eval "ac_cv_func_$ac_func=no"
22329 fi
22330 rm -f conftest*
22331 fi
22332
22333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22334 echo "$ac_t""yes" 1>&6
22335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22336 cat >> confdefs.h <<EOF
22337 #define $ac_tr_func 1
22338 EOF
22339 have_floor=1
22340 else
22341 echo "$ac_t""no" 1>&6
22342 fi
22343 done
22344
22345 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22346 echo "configure:22347: checking if floating point functions link without -lm" >&5
22347 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22348 echo "$ac_t""yes" 1>&6
22349 else
22350 echo "$ac_t""no" 1>&6
22351 LIBS="$LIBS -lm"
22352 # use different functions to avoid configure caching
22353 have_sin=0
22354 have_ceil=0
22355 for ac_func in sin
22356 do
22357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22358 echo "configure:22359: checking for $ac_func" >&5
22359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22360 echo $ac_n "(cached) $ac_c" 1>&6
22361 else
22362 cat > conftest.$ac_ext <<EOF
22363 #line 22364 "configure"
22364 #include "confdefs.h"
22365 /* System header to define __stub macros and hopefully few prototypes,
22366 which can conflict with char $ac_func(); below. */
22367 #include <assert.h>
22368 /* Override any gcc2 internal prototype to avoid an error. */
22369 /* We use char because int might match the return type of a gcc2
22370 builtin and then its argument prototype would still apply. */
22371 char $ac_func();
22372
22373 int main() {
22374
22375 /* The GNU C library defines this for functions which it implements
22376 to always fail with ENOSYS. Some functions are actually named
22377 something starting with __ and the normal name is an alias. */
22378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22379 choke me
22380 #else
22381 $ac_func();
22382 #endif
22383
22384 ; return 0; }
22385 EOF
22386 if { (eval echo configure:22387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22387 rm -rf conftest*
22388 eval "ac_cv_func_$ac_func=yes"
22389 else
22390 echo "configure: failed program was:" >&5
22391 cat conftest.$ac_ext >&5
22392 rm -rf conftest*
22393 eval "ac_cv_func_$ac_func=no"
22394 fi
22395 rm -f conftest*
22396 fi
22397
22398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22399 echo "$ac_t""yes" 1>&6
22400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22401 cat >> confdefs.h <<EOF
22402 #define $ac_tr_func 1
22403 EOF
22404 have_sin=1
22405 else
22406 echo "$ac_t""no" 1>&6
22407 fi
22408 done
22409
22410 for ac_func in ceil
22411 do
22412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22413 echo "configure:22414: checking for $ac_func" >&5
22414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22415 echo $ac_n "(cached) $ac_c" 1>&6
22416 else
22417 cat > conftest.$ac_ext <<EOF
22418 #line 22419 "configure"
22419 #include "confdefs.h"
22420 /* System header to define __stub macros and hopefully few prototypes,
22421 which can conflict with char $ac_func(); below. */
22422 #include <assert.h>
22423 /* Override any gcc2 internal prototype to avoid an error. */
22424 /* We use char because int might match the return type of a gcc2
22425 builtin and then its argument prototype would still apply. */
22426 char $ac_func();
22427
22428 int main() {
22429
22430 /* The GNU C library defines this for functions which it implements
22431 to always fail with ENOSYS. Some functions are actually named
22432 something starting with __ and the normal name is an alias. */
22433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22434 choke me
22435 #else
22436 $ac_func();
22437 #endif
22438
22439 ; return 0; }
22440 EOF
22441 if { (eval echo configure:22442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22442 rm -rf conftest*
22443 eval "ac_cv_func_$ac_func=yes"
22444 else
22445 echo "configure: failed program was:" >&5
22446 cat conftest.$ac_ext >&5
22447 rm -rf conftest*
22448 eval "ac_cv_func_$ac_func=no"
22449 fi
22450 rm -f conftest*
22451 fi
22452
22453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22454 echo "$ac_t""yes" 1>&6
22455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22456 cat >> confdefs.h <<EOF
22457 #define $ac_tr_func 1
22458 EOF
22459 have_ceil=1
22460 else
22461 echo "$ac_t""no" 1>&6
22462 fi
22463 done
22464
22465 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22466 echo "configure:22467: checking if floating point functions link with -lm" >&5
22467 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22468 echo "$ac_t""yes" 1>&6
22469 else
22470 echo "$ac_t""no" 1>&6
22471 # not sure we should warn the user, crash, etc.
22472 fi
22473 fi
22474
22475 if test "$wxUSE_GUI" = "yes"; then
22476
22477 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22478
22479
22480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22481 drawing dynamic erase event exec font image \
22482 minimal propsize rotate shaped widgets"
22483
22484 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22485 else
22486 SAMPLES_SUBDIRS="console"
22487 fi
22488
22489
22490 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22491 -I\${top_srcdir}/include \
22492 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22493 $TOOLKIT_INCLUDE"
22494
22495 if test "$wxUSE_GTK" = 1; then
22496 WXCONFIG_INCLUDE=
22497 else
22498 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22499 fi
22500
22501 if test "$GXX" = yes ; then
22502 CXXWARNINGS="-Wall"
22503
22504 if test "$wxUSE_NO_DEPS" = "no" ; then
22505 CFLAGS="-MMD $CFLAGS"
22506 CXXFLAGS="-MMD $CXXFLAGS"
22507 fi
22508 fi
22509
22510 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22511
22512 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22513 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22514 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22515 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22516
22517 LDFLAGS="$LDFLAGS $PROFILE"
22518
22519 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22622 echo "configure:22623: checking whether ${MAKE-make} sets \${MAKE}" >&5
22623 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22624 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22625 echo $ac_n "(cached) $ac_c" 1>&6
22626 else
22627 cat > conftestmake <<\EOF
22628 all:
22629 @echo 'ac_maketemp="${MAKE}"'
22630 EOF
22631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22632 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22633 if test -n "$ac_maketemp"; then
22634 eval ac_cv_prog_make_${ac_make}_set=yes
22635 else
22636 eval ac_cv_prog_make_${ac_make}_set=no
22637 fi
22638 rm -f conftestmake
22639 fi
22640 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22641 echo "$ac_t""yes" 1>&6
22642 SET_MAKE=
22643 else
22644 echo "$ac_t""no" 1>&6
22645 SET_MAKE="MAKE=${MAKE-make}"
22646 fi
22647
22648
22649 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22650 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22651 fi
22652
22653
22654
22655 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22656 wx_cv_if_gnu_make=$IF_GNU_MAKE
22657 wx_cv_path_ifs=$PATH_IFS
22658 wx_cv_program_ext=$PROGRAM_EXT
22659 wx_cv_target_library=$WX_TARGET_LIBRARY
22660 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22661 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22662 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22663 wx_cv_release=${WX_RELEASE}
22664 wx_cv_current=${WX_CURRENT}
22665 wx_cv_revision=${WX_REVISION}
22666 wx_cv_age=${WX_AGE}
22667 wx_cv_use_gui=${USE_GUI}
22668 wx_cv_use_resources=${wxUSE_RESOURCES}
22669 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22670 wx_cv_path_ifs wx_cv_program_ext \
22671 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22672 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22673 wx_cv_use_gui wx_cv_use_resources
22674
22675 subdirs="demos samples utils contrib"
22676
22677
22678 trap '' 1 2 15
22679 cat > confcache <<\EOF
22680 # This file is a shell script that caches the results of configure
22681 # tests run on this system so they can be shared between configure
22682 # scripts and configure runs. It is not useful on other systems.
22683 # If it contains results you don't want to keep, you may remove or edit it.
22684 #
22685 # By default, configure uses ./config.cache as the cache file,
22686 # creating it if it does not exist already. You can give configure
22687 # the --cache-file=FILE option to use a different cache file; that is
22688 # what configure does when it calls configure scripts in
22689 # subdirectories, so they share the cache.
22690 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22691 # config.status only pays attention to the cache file if you give it the
22692 # --recheck option to rerun configure.
22693 #
22694 EOF
22695 # The following way of writing the cache mishandles newlines in values,
22696 # but we know of no workaround that is simple, portable, and efficient.
22697 # So, don't put newlines in cache variables' values.
22698 # Ultrix sh set writes to stderr and can't be redirected directly,
22699 # and sets the high bit in the cache file unless we assign to the vars.
22700 (set) 2>&1 |
22701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22702 *ac_space=\ *)
22703 # `set' does not quote correctly, so add quotes (double-quote substitution
22704 # turns \\\\ into \\, and sed turns \\ into \).
22705 sed -n \
22706 -e "s/'/'\\\\''/g" \
22707 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22708 ;;
22709 *)
22710 # `set' quotes correctly as required by POSIX, so do not add quotes.
22711 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22712 ;;
22713 esac >> confcache
22714 if cmp -s $cache_file confcache; then
22715 :
22716 else
22717 if test -w $cache_file; then
22718 echo "updating cache $cache_file"
22719 cat confcache > $cache_file
22720 else
22721 echo "not updating unwritable cache $cache_file"
22722 fi
22723 fi
22724 rm -f confcache
22725
22726 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22727
22728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22729 # Let make expand exec_prefix.
22730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22731
22732 # Any assignment to VPATH causes Sun make to only execute
22733 # the first set of double-colon rules, so remove it if not needed.
22734 # If there is a colon in the path, we need to keep it.
22735 if test "x$srcdir" = x.; then
22736 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22737 fi
22738
22739 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22740
22741 DEFS=-DHAVE_CONFIG_H
22742
22743 # Without the "./", some shells look in PATH for config.status.
22744 : ${CONFIG_STATUS=./config.status}
22745
22746 echo creating $CONFIG_STATUS
22747 rm -f $CONFIG_STATUS
22748 cat > $CONFIG_STATUS <<EOF
22749 #! /bin/sh
22750 # Generated automatically by configure.
22751 # Run this file to recreate the current configuration.
22752 # This directory was configured as follows,
22753 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22754 #
22755 # $0 $ac_configure_args
22756 #
22757 # Compiler output produced by configure, useful for debugging
22758 # configure, is in ./config.log if it exists.
22759
22760 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22761 for ac_option
22762 do
22763 case "\$ac_option" in
22764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22765 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22766 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22767 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22768 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22769 exit 0 ;;
22770 -help | --help | --hel | --he | --h)
22771 echo "\$ac_cs_usage"; exit 0 ;;
22772 *) echo "\$ac_cs_usage"; exit 1 ;;
22773 esac
22774 done
22775
22776 ac_given_srcdir=$srcdir
22777 ac_given_INSTALL="$INSTALL"
22778
22779 trap 'rm -fr `echo "
22780 wx-config
22781 version-script
22782 src/make.env
22783 src/makeprog.env
22784 src/makelib.env
22785 Makefile
22786 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22787 EOF
22788 cat >> $CONFIG_STATUS <<EOF
22789
22790 # Protect against being on the right side of a sed subst in config.status.
22791 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22792 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22793 $ac_vpsub
22794 $extrasub
22795 s%@SHELL@%$SHELL%g
22796 s%@CFLAGS@%$CFLAGS%g
22797 s%@CPPFLAGS@%$CPPFLAGS%g
22798 s%@CXXFLAGS@%$CXXFLAGS%g
22799 s%@FFLAGS@%$FFLAGS%g
22800 s%@DEFS@%$DEFS%g
22801 s%@LDFLAGS@%$LDFLAGS%g
22802 s%@LIBS@%$LIBS%g
22803 s%@exec_prefix@%$exec_prefix%g
22804 s%@prefix@%$prefix%g
22805 s%@program_transform_name@%$program_transform_name%g
22806 s%@bindir@%$bindir%g
22807 s%@sbindir@%$sbindir%g
22808 s%@libexecdir@%$libexecdir%g
22809 s%@datadir@%$datadir%g
22810 s%@sysconfdir@%$sysconfdir%g
22811 s%@sharedstatedir@%$sharedstatedir%g
22812 s%@localstatedir@%$localstatedir%g
22813 s%@libdir@%$libdir%g
22814 s%@includedir@%$includedir%g
22815 s%@oldincludedir@%$oldincludedir%g
22816 s%@infodir@%$infodir%g
22817 s%@mandir@%$mandir%g
22818 s%@host@%$host%g
22819 s%@host_alias@%$host_alias%g
22820 s%@host_cpu@%$host_cpu%g
22821 s%@host_vendor@%$host_vendor%g
22822 s%@host_os@%$host_os%g
22823 s%@target@%$target%g
22824 s%@target_alias@%$target_alias%g
22825 s%@target_cpu@%$target_cpu%g
22826 s%@target_vendor@%$target_vendor%g
22827 s%@target_os@%$target_os%g
22828 s%@build@%$build%g
22829 s%@build_alias@%$build_alias%g
22830 s%@build_cpu@%$build_cpu%g
22831 s%@build_vendor@%$build_vendor%g
22832 s%@build_os@%$build_os%g
22833 s%@CC@%$CC%g
22834 s%@CPP@%$CPP%g
22835 s%@CXX@%$CXX%g
22836 s%@RANLIB@%$RANLIB%g
22837 s%@AR@%$AR%g
22838 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22839 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22840 s%@INSTALL_DATA@%$INSTALL_DATA%g
22841 s%@STRIP@%$STRIP%g
22842 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22843 s%@YACC@%$YACC%g
22844 s%@LEX@%$LEX%g
22845 s%@LEXLIB@%$LEXLIB%g
22846 s%@LN_S@%$LN_S%g
22847 s%@CXXCPP@%$CXXCPP%g
22848 s%@PKG_CONFIG@%$PKG_CONFIG%g
22849 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22850 s%@GTK_LIBS@%$GTK_LIBS%g
22851 s%@GTK_CONFIG@%$GTK_CONFIG%g
22852 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22853 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22854 s%@X_CFLAGS@%$X_CFLAGS%g
22855 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22856 s%@X_LIBS@%$X_LIBS%g
22857 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22858 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22859 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22860 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22861 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22862 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22863 s%@RESCOMP@%$RESCOMP%g
22864 s%@DEREZ@%$DEREZ%g
22865 s%@SETFILE@%$SETFILE%g
22866 s%@LIBICONV@%$LIBICONV%g
22867 s%@LEX_STEM@%$LEX_STEM%g
22868 s%@PATH_IFS@%$PATH_IFS%g
22869 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22870 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22871 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22872 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22873 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22874 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22875 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22876 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22877 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22878 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22879 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22880 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22881 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22882 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22883 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22884 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22885 s%@WX_ALL@%$WX_ALL%g
22886 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22887 s%@SHARED_LD@%$SHARED_LD%g
22888 s%@PIC_FLAG@%$PIC_FLAG%g
22889 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22890 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22891 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22892 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22893 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22894 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22895 s%@STATIC_FLAG@%$STATIC_FLAG%g
22896 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22897 s%@USE_GUI@%$USE_GUI%g
22898 s%@AFMINSTALL@%$AFMINSTALL%g
22899 s%@WIN32INSTALL@%$WIN32INSTALL%g
22900 s%@TOOLKIT@%$TOOLKIT%g
22901 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22902 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22903 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22904 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22905 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22906 s%@top_builddir@%$top_builddir%g
22907 s%@cross_compiling@%$cross_compiling%g
22908 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22909 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22910 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22911 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22912 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22913 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22914 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22915 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22916 s%@ALL_HEADERS@%$ALL_HEADERS%g
22917 s%@ALL_SOURCES@%$ALL_SOURCES%g
22918 s%@GUIDIST@%$GUIDIST%g
22919 s%@PORT_FILES@%$PORT_FILES%g
22920 s%@DISTDIR@%$DISTDIR%g
22921 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22922 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22923 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22924 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22925 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22926 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22927 s%@EXTRADEFS@%$EXTRADEFS%g
22928 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22929 s%@RESFLAGS@%$RESFLAGS%g
22930 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22931 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22932 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22933 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22934 s%@LIBWXMACRES@%$LIBWXMACRES%g
22935 s%@MACRESCOMP@%$MACRESCOMP%g
22936 s%@MACSETFILE@%$MACSETFILE%g
22937 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22938 s%@GCC@%$GCC%g
22939 s%@DLLTOOL@%$DLLTOOL%g
22940 s%@AS@%$AS%g
22941 s%@NM@%$NM%g
22942 s%@LD@%$LD%g
22943 s%@MAKEINFO@%$MAKEINFO%g
22944 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22945 s%@INSTALL_DIR@%$INSTALL_DIR%g
22946 s%@SET_MAKE@%$SET_MAKE%g
22947 s%@subdirs@%$subdirs%g
22948
22949 CEOF
22950 EOF
22951
22952 cat >> $CONFIG_STATUS <<\EOF
22953
22954 # Split the substitutions into bite-sized pieces for seds with
22955 # small command number limits, like on Digital OSF/1 and HP-UX.
22956 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22957 ac_file=1 # Number of current file.
22958 ac_beg=1 # First line for current file.
22959 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22960 ac_more_lines=:
22961 ac_sed_cmds=""
22962 while $ac_more_lines; do
22963 if test $ac_beg -gt 1; then
22964 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22965 else
22966 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22967 fi
22968 if test ! -s conftest.s$ac_file; then
22969 ac_more_lines=false
22970 rm -f conftest.s$ac_file
22971 else
22972 if test -z "$ac_sed_cmds"; then
22973 ac_sed_cmds="sed -f conftest.s$ac_file"
22974 else
22975 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22976 fi
22977 ac_file=`expr $ac_file + 1`
22978 ac_beg=$ac_end
22979 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22980 fi
22981 done
22982 if test -z "$ac_sed_cmds"; then
22983 ac_sed_cmds=cat
22984 fi
22985 EOF
22986
22987 cat >> $CONFIG_STATUS <<EOF
22988
22989 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22990 version-script
22991 src/make.env
22992 src/makeprog.env
22993 src/makelib.env
22994 Makefile
22995 "}
22996 EOF
22997 cat >> $CONFIG_STATUS <<\EOF
22998 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23000 case "$ac_file" in
23001 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23002 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23003 *) ac_file_in="${ac_file}.in" ;;
23004 esac
23005
23006 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23007
23008 # Remove last slash and all that follows it. Not all systems have dirname.
23009 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23010 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23011 # The file is in a subdirectory.
23012 test ! -d "$ac_dir" && mkdir "$ac_dir"
23013 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23014 # A "../" for each directory in $ac_dir_suffix.
23015 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23016 else
23017 ac_dir_suffix= ac_dots=
23018 fi
23019
23020 case "$ac_given_srcdir" in
23021 .) srcdir=.
23022 if test -z "$ac_dots"; then top_srcdir=.
23023 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23024 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23025 *) # Relative path.
23026 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23027 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23028 esac
23029
23030 case "$ac_given_INSTALL" in
23031 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23032 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23033 esac
23034
23035 echo creating "$ac_file"
23036 rm -f "$ac_file"
23037 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23038 case "$ac_file" in
23039 *Makefile*) ac_comsub="1i\\
23040 # $configure_input" ;;
23041 *) ac_comsub= ;;
23042 esac
23043
23044 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23045 sed -e "$ac_comsub
23046 s%@configure_input@%$configure_input%g
23047 s%@srcdir@%$srcdir%g
23048 s%@top_srcdir@%$top_srcdir%g
23049 s%@INSTALL@%$INSTALL%g
23050 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23051 fi; done
23052 rm -f conftest.s*
23053
23054 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23055 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23056 #
23057 # ac_d sets the value in "#define NAME VALUE" lines.
23058 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23059 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23060 ac_dC='\3'
23061 ac_dD='%g'
23062 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23063 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23064 ac_uB='\([ ]\)%\1#\2define\3'
23065 ac_uC=' '
23066 ac_uD='\4%g'
23067 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23068 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23069 ac_eB='$%\1#\2define\3'
23070 ac_eC=' '
23071 ac_eD='%g'
23072
23073 if test "${CONFIG_HEADERS+set}" != set; then
23074 EOF
23075 cat >> $CONFIG_STATUS <<EOF
23076 CONFIG_HEADERS="setup.h:setup.h.in"
23077 EOF
23078 cat >> $CONFIG_STATUS <<\EOF
23079 fi
23080 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23082 case "$ac_file" in
23083 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23084 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23085 *) ac_file_in="${ac_file}.in" ;;
23086 esac
23087
23088 echo creating $ac_file
23089
23090 rm -f conftest.frag conftest.in conftest.out
23091 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23092 cat $ac_file_inputs > conftest.in
23093
23094 EOF
23095
23096 # Transform confdefs.h into a sed script conftest.vals that substitutes
23097 # the proper values into config.h.in to produce config.h. And first:
23098 # Protect against being on the right side of a sed subst in config.status.
23099 # Protect against being in an unquoted here document in config.status.
23100 rm -f conftest.vals
23101 cat > conftest.hdr <<\EOF
23102 s/[\\&%]/\\&/g
23103 s%[\\$`]%\\&%g
23104 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23105 s%ac_d%ac_u%gp
23106 s%ac_u%ac_e%gp
23107 EOF
23108 sed -n -f conftest.hdr confdefs.h > conftest.vals
23109 rm -f conftest.hdr
23110
23111 # This sed command replaces #undef with comments. This is necessary, for
23112 # example, in the case of _POSIX_SOURCE, which is predefined and required
23113 # on some systems where configure will not decide to define it.
23114 cat >> conftest.vals <<\EOF
23115 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23116 EOF
23117
23118 # Break up conftest.vals because some shells have a limit on
23119 # the size of here documents, and old seds have small limits too.
23120
23121 rm -f conftest.tail
23122 while :
23123 do
23124 ac_lines=`grep -c . conftest.vals`
23125 # grep -c gives empty output for an empty file on some AIX systems.
23126 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23127 # Write a limited-size here document to conftest.frag.
23128 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23129 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23130 echo 'CEOF
23131 sed -f conftest.frag conftest.in > conftest.out
23132 rm -f conftest.in
23133 mv conftest.out conftest.in
23134 ' >> $CONFIG_STATUS
23135 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23136 rm -f conftest.vals
23137 mv conftest.tail conftest.vals
23138 done
23139 rm -f conftest.vals
23140
23141 cat >> $CONFIG_STATUS <<\EOF
23142 rm -f conftest.frag conftest.h
23143 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23144 cat conftest.in >> conftest.h
23145 rm -f conftest.in
23146 if cmp -s $ac_file conftest.h 2>/dev/null; then
23147 echo "$ac_file is unchanged"
23148 rm -f conftest.h
23149 else
23150 # Remove last slash and all that follows it. Not all systems have dirname.
23151 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23152 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23153 # The file is in a subdirectory.
23154 test ! -d "$ac_dir" && mkdir "$ac_dir"
23155 fi
23156 rm -f $ac_file
23157 mv conftest.h $ac_file
23158 fi
23159 fi; done
23160
23161 EOF
23162 cat >> $CONFIG_STATUS <<EOF
23163
23164 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23165 LN_S="${LN_S}"
23166
23167
23168 EOF
23169 cat >> $CONFIG_STATUS <<\EOF
23170
23171 if test ! -h wx-config; then
23172 chmod +x wx-config
23173 mv wx-config wx${TOOLCHAIN_NAME}-config
23174 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23175 fi
23176
23177 if test ! -d lib; then
23178 mkdir lib
23179 fi
23180 if test ! -d lib/wx; then
23181 mkdir lib/wx
23182 fi
23183 if test ! -d lib/wx/include; then
23184 mkdir lib/wx/include
23185 fi
23186 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23187 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23188 fi
23189 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23190 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23191 fi
23192 if test -f setup.h; then
23193 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23194 fi
23195
23196 exit 0
23197 EOF
23198 chmod +x $CONFIG_STATUS
23199 rm -fr confdefs* $ac_clean_files
23200 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23201
23202 if test "$no_recursion" != yes; then
23203
23204 # Remove --cache-file and --srcdir arguments so they do not pile up.
23205 ac_sub_configure_args=
23206 ac_prev=
23207 for ac_arg in $ac_configure_args; do
23208 if test -n "$ac_prev"; then
23209 ac_prev=
23210 continue
23211 fi
23212 case "$ac_arg" in
23213 -cache-file | --cache-file | --cache-fil | --cache-fi \
23214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23215 ac_prev=cache_file ;;
23216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23218 ;;
23219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23220 ac_prev=srcdir ;;
23221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23222 ;;
23223 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23224 esac
23225 done
23226
23227 for ac_config_dir in demos samples utils contrib; do
23228
23229 # Do not complain, so a configure script can configure whichever
23230 # parts of a large source tree are present.
23231 if test ! -d $srcdir/$ac_config_dir; then
23232 continue
23233 fi
23234
23235 echo configuring in $ac_config_dir
23236
23237 case "$srcdir" in
23238 .) ;;
23239 *)
23240 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23241 else
23242 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23243 fi
23244 ;;
23245 esac
23246
23247 ac_popdir=`pwd`
23248 cd $ac_config_dir
23249
23250 # A "../" for each directory in /$ac_config_dir.
23251 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23252
23253 case "$srcdir" in
23254 .) # No --srcdir option. We are building in place.
23255 ac_sub_srcdir=$srcdir ;;
23256 /*) # Absolute path.
23257 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23258 *) # Relative path.
23259 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23260 esac
23261
23262 # Check for guested configure; otherwise get Cygnus style configure.
23263 if test -f $ac_sub_srcdir/configure; then
23264 ac_sub_configure=$ac_sub_srcdir/configure
23265 elif test -f $ac_sub_srcdir/configure.in; then
23266 ac_sub_configure=$ac_configure
23267 else
23268 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23269 ac_sub_configure=
23270 fi
23271
23272 # The recursion is here.
23273 if test -n "$ac_sub_configure"; then
23274
23275 # Make the cache file name correct relative to the subdirectory.
23276 case "$cache_file" in
23277 /*) ac_sub_cache_file=$cache_file ;;
23278 *) # Relative path.
23279 ac_sub_cache_file="$ac_dots$cache_file" ;;
23280 esac
23281 case "$ac_given_INSTALL" in
23282 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23283 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23284 esac
23285
23286 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23287 # The eval makes quoting arguments work.
23288 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23289 then :
23290 else
23291 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23292 fi
23293 fi
23294
23295 cd $ac_popdir
23296 done
23297 fi
23298
23299
23300 echo
23301 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23302 echo ""
23303 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23304
23305 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23306 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23307 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23308
23309 echo " What level of wxWindows compatibility should be enabled?"
23310 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23311 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23312 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23313
23314 echo " Which libraries should wxWindows use?"
23315 echo " jpeg ${wxUSE_LIBJPEG-none}"
23316 echo " png ${wxUSE_LIBPNG-none}"
23317 echo " regex ${wxUSE_REGEX}"
23318 echo " tiff ${wxUSE_LIBTIFF-none}"
23319 echo " zlib ${wxUSE_ZLIB}"
23320
23321 echo ""
23322